A networking method and networking system of Zigbee Mesh network
By selecting the child node device with the largest signal strength as the backup parent node device in advance in the Zigbee Mesh network, the problem of slow routing switching after multiple child node devices is lost is solved, fast routing switching and low signaling overhead are achieved, ensuring the network Recovery and data transfer stability.
Patent Information
- Application Number
- CN202411273814.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-12
AI Technical Summary
In Zigbee Mesh network, when multiple brother node devices lose contact with the common parent node device, each need to re-find the parent node device, resulting in slow routing switching and large signaling overhead, which can easily cause service delays and network congestion.
Select a child node device with the largest signal strength in advance as the backup parent node device, store neighbor tables and routing tables, and automatically upgrade to the parent node function when the parent node device is lost, replacing the missing parent node device and recovering when the downgrade is downgraded. The child node function ensures fast routing switching and low signaling overhead.
It saves time to select alternate parent node devices after missing contact, reduces time for child node devices to search for parent node devices separately, realizes fast routing switching and low signaling overhead, and ensures the stability of network recovery and data transmission.
Smart Images

Figure CN118828781B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a networking method and a networking system for a Zigbee Mesh network. Background Art
[0002] The network group has a routing discovery function, which can realize network self-healing, multi-level jump and optimal network path transmission. The router is an important participant. If a router is damaged and some of its sub-devices are far away from other routers, exceeding the effective distance of the radio frequency signal, it will cause the sub-node devices to be off the network.
[0003] In the prior art, we found that after a child node device loses connection with a parent node device, the usual approach is to re-find a parent node device at the same level as the original parent node device. This situation is often applicable to a group of descendant node devices under the child node device. At this time, re-finding a parent node device is a faster way. However, there is another situation where multiple brother child node devices lose connection with a common parent node device at the same time. They need to re-find a parent node device. When a large number of node devices re-enter the network, the routing switching is slow and the signaling overhead is large, which can easily cause service delays and network congestion. Summary of the invention
[0004] The purpose of this application is to propose a networking method and networking system of a Zigbee Mesh network to solve the technical problems mentioned in the above background technology section.
[0005] In the first aspect, the present application proposes a networking method for a Zigbee Mesh network, wherein the Zigbee Mesh network includes: a coordinator, a router, and multiple terminal devices, wherein the coordinator is connected to at least one of the routers and at least one of the terminal devices respectively; a routing table is established for communication connection between each of the routers and the terminal devices connected thereto.
[0006] In each of the routing tables, the router is set as a parent node device, the terminal device is set as a child node device, the parent node device stores a neighbor table and the routing table; the neighbor table is established by communication connection between the plurality of parent node devices; in each of the routing tables, one of the terminal devices is also set as a standby parent node device; the networking method comprises:
[0007] S11: The parent node device sends the neighbor table and the routing table to the standby parent node device;
[0008] S12: the standby parent node device sends a request message to the parent node device every first set time, wherein the request message includes device information of the standby parent node device;
[0009] S13: Determine whether the standby parent node device receives a response from the parent node device within the second set time. If so, return to step S11. If not, determine that the parent node device is disconnected and set it as a disconnected parent node device, and proceed to step S14.
[0010] S14: upgrading the function of the standby parent node device to a parent node function to replace the parent node function of the lost parent node device;
[0011] S15: The standby parent node device queries the neighbor table every third set time. If it is found that the neighbor table includes the device information of the lost parent node device, the parent node function is downgraded to the child node function, and the function of the lost parent node device is restored to the parent node function, and the process returns to step S11.
[0012] In a specific embodiment, before step S11, the method further includes:
[0013] Step S10: All the child node devices send signals to the parent node device, and the parent node device calculates the signal strength values of the child node devices and selects the child node device with the largest signal strength value as the standby parent node device.
[0014] In a specific embodiment, the neighbor table includes device information of all the parent node devices in communication connection.
[0015] In a specific embodiment, querying the neighbor table in step S15 specifically includes: the standby parent node device sends link status information to all the parent node devices in the neighbor table, and receives device information sent by all the parent node devices in response to the link status information.
[0016] In a specific embodiment, in step S15, the standby parent node device is downgraded from the parent node function to the child node function, specifically, the standby parent node device disconnects the communication connection with other parent node devices in the neighbor table, only connects to the parent node device in the routing table, and downgrades the function to the child node function.
[0017] In a specific embodiment, step S15 also includes: the backup parent node device queries the neighbor table every third set time. If it is found that the number of other parent node devices in the neighbor table that communicate with the lost parent node device is n-1, then the function of the backup parent node device is downgraded to a child node, and n is the total number of the lost parent node device and other parent node devices that communicated with it before the loss of connection.
[0018] The second aspect of the present application provides a networking system of a Zigbee Mesh network, comprising: a coordinator, a router, and a plurality of terminal devices, wherein the coordinator is respectively connected to at least one of the routers and at least one of the terminal devices;
[0019] The communication connection between the multiple routers establishes a neighbor table, and the communication connection between each router and the terminal device connected thereto establishes a routing table; characterized in that:
[0020] In each of the routing tables, the router is set as a parent node device, the terminal device is set as a child node device, one of the terminal devices is also configured as a standby parent node device, and the parent node device stores the neighbor table and the routing table;
[0021] The standby parent node device is configured as:
[0022] S21: receiving the neighbor table and the routing table of the parent node device into a storage area;
[0023] S22: sending request information to the parent node device every first set time, wherein the request information includes device information of the standby parent node device;
[0024] S23: Determine whether a response from the parent node device is received within the second set time, if so, return to step S21; if not, determine that the connection with the parent node device is lost, and proceed to step S24;
[0025] S24: The function of the standby parent node device is upgraded to the parent node function, replacing the parent node function of the lost parent node device;
[0026] S25: Send query information to all the parent node devices according to the neighbor table at a third set time interval. If it is found that the query reply information includes the device information of the lost parent node device, the function of the standby parent node device is downgraded to a child node function, and return to step S21.
[0027] In a specific embodiment, the second set time is smaller than the first set time, and the first set time is smaller than the third set time.
[0028] In a specific embodiment, it also includes:
[0029] The parent node device is configured as:
[0030] S51: Acquire the signal of each of the sub-node devices, calculate the signal strength value of each of the sub-node devices, and compare the signal strength values of each of the sub-node devices;
[0031] S52: configuring the child node device with the largest signal strength value as the standby parent node device.
[0032] In a specific embodiment, it also includes:
[0033] The parent node device is configured as:
[0034] S53: Sending the neighbor table and the routing table to the standby parent node device;
[0035] S54: receiving request information sent by each of the sub-node devices at a first set time interval.
[0036] This application has the following effects:
[0037] 1. The backup parent node device of the present application has been determined before the parent node device loses connection, which is equivalent to selecting the successor after the accident in advance, saving the time of determining how to select other backup parent node devices after the loss of connection.
[0038] 2. In this application, when the shared parent node device loses connection, the backup parent node device will automatically search for the associated child node device, reducing the time for each child node device to search for the parent node device individually.
[0039] 3. The parent node device of this application uses the signal strength value to select the best backup parent node device, and selects the child node device with the strongest signal strength value from the original parent node device as the backup parent node device. This can ensure that each child node device can quickly get in touch with the backup parent node device after losing contact with the parent node device, and the backup parent node device can also quickly get in touch with the neighbors of the original parent node device.
[0040] 4. Child node devices can only send and receive data to parent node devices and cannot be used for data forwarding with other parent node devices. This application can achieve the switching of data forwarding functions of backup parent node devices by selecting successors in advance and sending neighbor tables and routing tables. The routing switching is fast and the signaling overhead is small.
[0041] 5. The child node device is usually dormant, and the reception is closed at this time. All messages sent to the child node device are first sent to its parent node device for temporary storage. The child node device will wake up once at a fixed time, and then query the parent node device for any messages. Through this mechanism, the child node device can promptly find out whether it has lost contact with the parent node device. If the child node device is a backup parent node device, it will automatically upgrade its function to a router function when the parent node device loses contact.
[0042] 6. When the standby parent node device is upgraded to a router function, it will periodically query the neighbor table. If it is found that the neighbor table includes the device information of the lost parent node device, it means that the function of the lost parent node device has been restored. Then, the function of the parent node will be downgraded to the child node function, and the original network structure will be automatically restored. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0044] Figure 1 This is a brief flowchart of the networking method of the Zigbee Mesh network of the present application;
[0045] Figure 2 This is a workflow diagram of the backup parent node of this application;
[0046] Figure 3 This is a schematic diagram of an embodiment of a network connection before the parent node device loses connection;
[0047] Figure 4 It is a schematic diagram of an embodiment of a network connection after a parent node device loses connection;
[0048] Figure 5 It is a schematic diagram of the working configuration process of the standby parent node device in the networking system of the Zigbee Mesh network of this application;
[0049] Figure 6 It is a schematic diagram of the working configuration process of the parent node device in the networking system of the Zigbee Mesh network of this application; DETAILED DESCRIPTION
[0050] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0051] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0052] First preferred embodiment:
[0053] Please refer to Figure 1 and Figure 2The present application proposes a networking method of a Zigbee Mesh network, wherein the Zigbee Mesh network includes: a coordinator, a router, and a plurality of terminal devices, wherein the coordinator is connected to at least one router and at least one terminal device respectively; a routing table is established between each router and the terminal device connected thereto, wherein the method is characterized in that:
[0054] In each routing table, the router is set as a parent node device, the terminal device is set as a child node device, the parent node device stores a neighbor table and a routing table; a neighbor table is established for communication connection between multiple parent node devices; in each routing table, one of the terminal devices is also set as a standby parent node device; the networking method includes:
[0055] S11: The parent node device sends the neighbor table and routing table to the standby parent node device;
[0056] S12: The standby parent node device sends a request message to the parent node device every first set time, where the request message includes device information of the standby parent node device;
[0057] S13: Determine whether the standby parent node device receives a response from the parent node device within the second set time. If so, return to step S11. If not, determine that the parent node device is disconnected and set it as a disconnected parent node device, and proceed to step S14.
[0058] S14: Upgrading the function of the standby parent node device to the parent node function to replace the parent node function of the lost parent node device;
[0059] S15: The standby parent node device queries the neighbor table every third set time. If it is found that the neighbor table includes the device information of the lost parent node device, the parent node function is downgraded to the child node function, and the function of the lost parent node device is restored to the parent node function, and the process returns to step S11.
[0060] In a specific embodiment, the parent node device is a coordinator or a router, and the standby parent node device is a terminal device. There are three types of devices in the Zigbee network structure: coordinator, router, and end device. A zigbee network consists of a coordinator, multiple routers, and multiple end devices. If device A accesses the network through device B, then B is the parent node device of A, and A is the child node device of B. A can be a router or a terminal, and B can be a coordinator or a router.
[0061] Coordinator: Creates a Zigbee network. Coordinator automatically selects (or can specify) a channel and corresponding network identifier (PANID) based on user-level definitions and scans the RF environment to start the network.
[0062] Router: Maintains the Zigbee network, (1) joins the network and allows other routers and terminal devices to join the network; (2) finds and optimizes paths and forwards data packets; (3) assists its child node devices in network communication. The Zigbee protocol uses a hybrid routing mechanism of Cluster Tree + AODVjr to achieve network self-healing, multi-hop, low-overhead and other functions through routers. The router needs to be powered by a stable power supply and cannot enter sleep mode. The data saved for the terminal device can only be released after the terminal device obtains it.
[0063] Terminal device: The end node of the Zigbee network, also known as the child node device, can send and receive data, but cannot forward data. It can use the coordinator or router as its parent node device. After joining the network, it will periodically poll the parent node device to see if it has its own data. If it loses connection with the parent node device, the child node device will send a re-entry application, and other nearby routers will reply after receiving it, and then the child node device will use other routers as the parent node device. At the same time, the child node device can sleep and wake up, so there will be a certain delay, and it can also be powered by batteries.
[0064] Zigbee's MESH networking method has a routing discovery function, which can realize network self-healing, multi-level jumps and optimal network path transmission. The router is an important participant. If a router is damaged, all the child node devices connected to the router will be disconnected from the network. Although the child node device will send a re-networking application after finding that it has lost connection with the parent node device for a period of time, it will wait for other nearby routers to receive the network access request, reply to confirm, and then re-connect to the network. However, this speed is very slow. If there are a large number of child node devices, waiting until each child node device completes the network access request + reply confirmation + re-connection will seriously affect network repair and network performance.
[0065] The technical solution proposed in this application can effectively solve this situation. This application selects a suitable child node device as an alternative route in advance, that is, a standby parent node device. Normally, the router synchronizes network layer related information such as neighbor tables and routing tables to the standby parent node device, and then the standby parent node device saves the information to the flash. When the router works abnormally, the standby parent node device switches its function to a router in time, actively connects to all child node devices associated with the original router, and assumes the work of the original router. When the original router resumes normal function, the standby parent node device is restored to a terminal device with child node function.
[0066] The standby parent node device is determined before the parent node device loses connection, which is equivalent to selecting the successor in advance after the accident occurs, saving the time of determining how to select other parent node devices after the loss of connection. This application can achieve the switching of the standby parent node device to complete the data forwarding function by selecting the successor in advance and sending the neighbor table and routing table, with fast routing switching and low signaling overhead.
[0067] In a specific embodiment, the neighbor table includes device information of all parent node devices in communication connection.
[0068] In a specific embodiment, querying the neighbor table in step S15 specifically includes: the standby parent node device sends link status information to all parent node devices in the neighbor table, and receives device information sent by all parent node devices in response to the link status information.
[0069] In a specific embodiment, the second setting time is less than the first setting time, and the first setting time is less than the third setting time. Preferably, the first setting time is 3s, the third setting time is 15s, and the second setting time is 2s, but the first setting time, the second setting time and the third setting time can be set according to actual needs, and the present embodiment is not limited thereto. The standby parent node device keeps sending request information to the parent node device every first setting time, and the parent node device quickly responds to the request information of the standby parent node device and sends a response information to the standby parent node device. The first setting time can be slightly longer than the second setting time, because the second setting time is sufficient for a short response time, and the first setting time and the second setting time are both relatively short, so that it can be ensured that the parent node device is quickly queried whether it is lost, but the third setting time can be set to be relatively long, at least longer than the first setting time, because once the parent node device loses connection, most of them will recover in a longer time, at least greater than 15s. At this time, because there is a standby parent node device to take over the routing task of the lost parent node device, even if the lost parent node device is not found to be reconnected in the fastest time, it will not have much impact on the current routing function, and the signaling overhead can also be reduced.
[0070] In the specific embodiment of step S15, the function of the standby parent node device is downgraded to a child node function, specifically, the standby parent node device disconnects the communication connection with other parent node devices in the neighbor table, connects only to the parent node device in the routing table, and downgrades the function to a child node function.
[0071] Because the child node device is usually dormant, the reception is closed at this time. All messages sent to the child node device are first sent to its parent node device for temporary storage. The child node device will wake up once at a fixed time, and then query the parent node device for messages. Through this mechanism, the child node device can promptly find out whether it has lost contact with the parent node device. If the child node device is a backup router, that is, a backup parent node device, it will automatically upgrade its function to a router function when it loses contact with the parent node device.
[0072] In the specific embodiment of step S15, after the standby router is upgraded to the router function, the neighbor table is queried every third set time, that is, link status information is regularly sent to obtain the neighbor routers around it and receive the response of the neighbor routers. If the response of the lost parent node device is found after a period of time, that is, the lost parent node device is repaired and resumes normal operation, the function of the standby router is automatically downgraded to a terminal device.
[0073] In a specific embodiment, if the standby parent node device finds a response from the lost parent node device, and the number of other parent node devices in the neighbor table that communicate with the lost parent node device is n-1, where n is the total number of the lost parent node device and other parent node devices that communicated with it before the loss of connection, then it means that the lost parent node device has been repaired and resumed normal operation, and the function of the standby parent node device has been downgraded to a child node function.
[0074] By determining the total number of other parent node devices, it can be further determined whether the lost parent node device has established communication with other parent nodes in addition to the standby parent node device. If the correct communication is not established, there will be a total of n-1 parent nodes. If n-1 parent nodes appear in the neighbor table, the function of the standby parent node device will not be downgraded, because the lost parent node device has not established complete communication with other parent node devices. If n parent nodes appear in the neighbor table, it means that the lost parent node device has been repaired and has established complete communication with other parent node devices, and the function of the standby parent node device is downgraded to a terminal device.
[0075] Based on the first embodiment, the method may further include before step S11:
[0076] S10: All child node devices send signals to the parent node device. The parent node device calculates the signal strength values (RSSI) of all child node devices. If the signal strength is less than the threshold, it is discarded. If the signal strength is greater than the threshold, the child node device with the largest signal strength value is selected as the backup parent node device. Then, information is sent to inform the backup parent node device. After receiving the confirmation signal, the network layer related information such as the neighbor table and routing table is synchronized to the backup parent node device.
[0077] Each child node device has only one parent node device (router or coordinator), and each parent node device has only one backup parent node device. All information sent to the child node device must first be sent to its parent node device and then forwarded. During the information transmission process, the parent node device can obtain the RSSI value of the child node device. The larger the RSSI value, the closer the distance between the child node device and the parent node device is or the less signal obstruction between them. The parent node device uses the signal strength to select the best backup parent node device. By selecting the backup parent node device that is closest to the original parent node device and has the highest signal strength value, it can ensure that each child node device can quickly contact the backup parent node device after losing contact with the parent node device, and the backup parent node device can also quickly contact the neighbors of the original parent node device.
[0078] According to the technical solution of the present application, when the shared parent node device loses connection, the backup parent node device will automatically search for other parent node devices in the neighbor table and child node devices in the routing table, reducing the time for each child node device to search for a new parent node device individually.
[0079] Please continue to refer to Figure 3 and Figure 4 In the figure, C is the coordinator, R1~R6 are parent node devices (routers), T1~T3 are child node devices (terminal devices) connected to R1, T4 is a child node device connected to C, and T5 is a child node device connected to R2. For the parent node device R1, T1 has the largest signal strength value, so T1 is set as the backup parent node device R1' of R1. Figure 3 It shows the communication connection relationship before the parent node device R1 loses connection. Figure 4 It shows the communication connection relationship that after the parent node device R1 is disconnected, the standby parent node device R1'(T1) is functionally upgraded to replace the disconnected parent node device R1.
[0080] Second preferred embodiment:
[0081] The present application also proposes a networking system of a Zigbee Mesh network, comprising: a coordinator, a router, and a plurality of terminal devices, wherein the coordinator is respectively connected to at least one router and at least one terminal device;
[0082] A neighbor table is established for communication connections between multiple routers, and a routing table is established for communication connections between each router and the terminal device connected thereto; characterized in that:
[0083] In each routing table, the router is set as a parent node device, and the terminal device is set as a child node device. One of the terminal devices is also configured as a standby parent node device. The parent node device stores a neighbor table and a routing table.
[0084] like Figure 5As shown, the standby parent node device is configured as:
[0085] S21: receiving the neighbor table and routing table of the parent node device to the storage area;
[0086] S22: sending a request message to the parent node device every first set time, where the request message includes device information of the standby parent node device;
[0087] S23: Determine whether a response from the parent node device is received within the second set time, if so, return to step S21; if not, determine that the connection with the parent node device is lost, and proceed to step S24;
[0088] S24: The function of the standby parent node device is upgraded to the parent node function, replacing the parent node function of the disconnected parent node device;
[0089] S25: Send query information to all parent node devices according to the neighbor table at a third set time interval. If it is found that the query reply information includes the device information of the lost parent node device, the function of the standby parent node device is downgraded to the child node function, and return to step S21.
[0090] like Figure 6 As shown, the parent node device is configured as:
[0091] S51: Acquire the signal of each sub-node device, calculate the signal strength value of each sub-node device, and compare the signal strength values of each sub-node device;
[0092] S52: Configure the child node device with the largest signal strength value as a backup parent node device.
[0093] S53: Send the neighbor table and routing table to the standby parent node device;
[0094] S54: Receive request information sent by each sub-node device every first set time.
[0095] The parent node device selects the best backup parent node device by the signal strength value, and selects the child node device that is closest to the original parent node device and has the highest signal strength value as the backup parent node device. This can ensure that each child node device can quickly get in touch with the backup parent node device after losing contact with the parent node device, and the backup parent node device can also quickly get in touch with the neighbors of the original parent node device.
[0096] In summary, this application has the following effects:
[0097] 1. The backup parent node device of the present application has been determined before the parent node device loses connection, which is equivalent to selecting the successor after the accident in advance, saving the time of determining how to select other backup parent node devices after the loss of connection.
[0098] 2. In this application, when the shared parent node device loses connection, the backup parent node device will automatically search for the associated child node device, reducing the time for each child node device to search for the parent node device individually.
[0099] 3. The parent node device of this application uses the signal strength value to select the best backup parent node device, and selects the child node device with the strongest signal strength value from the original parent node device as the backup parent node device. This can ensure that each child node device can quickly get in touch with the backup parent node device after losing contact with the parent node device, and the backup parent node device can also quickly get in touch with the neighbors of the original parent node device.
[0100] 4. Child node devices can only send and receive data to parent node devices and cannot be used for data forwarding with other parent node devices. This application can achieve the switching of data forwarding functions of backup parent node devices by selecting successors in advance and sending neighbor tables and routing tables. The routing switching is fast and the signaling overhead is small.
[0101] 5. The child node device is usually dormant, and the reception is closed at this time. All messages sent to the child node device are first sent to its parent node device for temporary storage. The child node device will wake up once at a fixed time, and then query the parent node device for any messages. Through this mechanism, the child node device can promptly find out whether it has lost contact with the parent node device. If the child node device is a backup parent node device, it will automatically upgrade its function to a router function when the parent node device loses contact.
[0102] 6. When the standby parent node device is upgraded to a router function, it will periodically query the neighbor table. If it is found that the neighbor table includes the device information of the lost parent node device, it means that the function of the lost parent node device has been restored. Then, the function of the parent node will be downgraded to the child node function, and the original network structure will be automatically restored.
[0103] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for networking a Zigbee Mesh network, the Zigbee Mesh network comprising: A coordinator, a router, and a plurality of terminal devices, wherein the coordinator is connected to at least one of the routers and at least one of the terminal devices respectively; a routing table is established for communication connection between each of the routers and the terminal devices connected thereto, characterized in that: In each of the routing tables, the router is set as a parent node device, the terminal device is set as a child node device, the parent node device stores a neighbor table and the routing table; a plurality of the parent node devices are connected to establish the neighbor table; in each of the routing tables, one of the terminal devices is also set as a standby parent node device; the networking method comprises: S11: the parent node device sends the neighbor table and the routing table to the standby parent node device, wherein the neighbor table includes device information of all the parent node devices in communication connection; S12: the standby parent node device sends a request message to the parent node device every first set time, wherein the request message includes device information of the standby parent node device; S13: Determine whether the standby parent node device receives a response from the parent node device within the second set time. If so, return to step S11. If not, determine that the parent node device is disconnected and set it as a disconnected parent node device, and proceed to step S14. S14: upgrading the function of the standby parent node device to a parent node function to replace the parent node function of the lost parent node device; S15: The backup parent node device queries the neighbor table every third set time. If it is found that the neighbor table includes the device information of the lost parent node device, and the number of the lost parent node device communicating with other parent node devices is n-1, where n is the total number of the lost parent node device and other parent node devices that communicated with it before the loss of connection, then the backup parent node device disconnects the communication connection with other parent node devices in the neighbor table, connects only to the parent node device of the routing table, and reduces its function to a child node function. The function of the lost parent node device is restored to the parent node function, and returns to step S11.
2. The networking method of the Zigbee Mesh network according to claim 1, characterized in that: Before step S11, the method further includes: Step S10: All the child node devices send signals to the parent node device, and the parent node device calculates the signal strength values of the child node devices and selects the child node device with the largest signal strength value as the standby parent node device.
3. The networking method of the Zigbee Mesh network according to claim 2, characterized in that: In step S15, querying the neighbor table specifically includes: the standby parent node device sends link status information to all the parent node devices in the neighbor table, and receives device information sent by all the parent node devices in response to the link status information.
4. A Zigbee Mesh network networking system, comprising: A coordinator, a router, and a plurality of terminal devices, wherein the coordinator is respectively connected to at least one of the routers and at least one of the terminal devices; The communication connection between the multiple routers establishes a neighbor table, and the communication connection between each router and the terminal device connected thereto establishes a routing table; characterized in that: In each of the routing tables, the router is set as a parent node device, the terminal device is set as a child node device, one of the terminal devices is also configured as a standby parent node device, and the parent node device stores the neighbor table and the routing table; The standby parent node device is configured as: S21: receiving the neighbor table and the routing table of the parent node device to a storage area, wherein the neighbor table includes device information of all the parent node devices in communication connection; S22: sending request information to the parent node device every first set time, wherein the request information includes device information of the standby parent node device; S23: Determine whether a response from the parent node device is received within the second set time, if so, return to step S21; if not, determine that the connection with the parent node device is lost, and proceed to step S24; S24: The function of the standby parent node device is upgraded to the parent node function, replacing the parent node function of the lost parent node device; S25: Send query information to all the parent node devices therein according to the neighbor table at third set intervals. If it is found that the query reply information includes the device information of the lost parent node device, and the number of the lost parent node device communicating with other parent node devices is n-1, where n is the total number of the lost parent node device and other parent node devices that communicated with it before the loss of connection, then the standby parent node device disconnects the communication connection with other parent node devices in the neighbor table, connects only to the parent node device in the routing table, reduces its function to a child node function, and returns to step S21.
5. The Zigbee Mesh network networking system according to claim 4, characterized in that: The second set time is shorter than the first set time, and the first set time is shorter than the third set time.
6. The Zigbee Mesh network networking system according to claim 5, characterized in that: Also includes: The parent node device is configured as: S51: Acquire the signal of each of the sub-node devices, calculate the signal strength value of each of the sub-node devices, and compare the signal strength values of each of the sub-node devices; S52: configuring the child node device with the largest signal strength value as the standby parent node device.
7. The Zigbee Mesh network networking system according to claim 6, characterized in that: The parent node device is also configured as: S53: Sending the neighbor table and the routing table to the standby parent node device; S54: receiving request information sent by each of the sub-node devices at every first set time.
Citation Information
Patent Citations
Method for quickly repairing Zigbee wireless sensor network
CN102076053A
Gradient-based wireless sensor network (WSN) topology maintenance method and packet forwarding method
CN102088751A