The application claims priority to China Patent Application No. 201510881519.X, filed on Dec. 3, 2015 the content of which are hereby incorporated by reference in their entirety.
The present invention relates to a network system, particularly relates to a Zigbee network system having a backup function and a backup method thereof.
A Zigbee network is generally consisted of a Zigbee coordinator, some routers and an end device. One router has one terminal connected with the Zigbee coordinator and the other terminal connected with the end device. When the Zigbee coordinator launches, it may generate an identification (ID) for forming the Zigbee network. Based on the existence of the Zigbee coordinator in the current Zigbee network, it is necessary for another one that would like to join the current Zigbee network to be converted into the one of router function before it joins the current Zigbee network. As a result, there is only one Zigbee coordinator for a Zigbee network. The single Zigbee coordinator needs to be interrupted for the replacement of another one of normal function, once it is abnormal in the Zigbee network. In this case, the Zigbee network needs to be reinitialized for recovery of functions in the Zigbee network. However, it is inconvenient for user to interrupt data transmission for the replacement of the Zigbee coordinator of normal function and wait for the reinitialization success on the Zigbee network to resend data. As a result, data transmission is delayed by the replacement of the Zigbee coordinator and the reinitialization of the Zigbee network.
One of current resolution approaches is to amend the source code of a router to make the router capable of operating as the Zigbee coordinator and become a new Zigbee coordinator, because the functions of the router are same as the ones of the Zigbee coordinator. Provided that a primary Zigbee coordinator is functioning abnormally, it may be replaced by a new Zigbee coordinator and the new Zigbee coordinator needs to be initialized. However, the initialization of the new Zigbee coordinator needs to reform the Zigbee network and the identification, search all previous apparatuses within the Zigbee network, and enable all the apparatuses rejoin the Zigbee network. Though such approach makes the Zigbee coordinator of back-up function, however, it is not seamless transition.
Another one of resolution approaches utilizes double-hard design. A physical layer/MAC layer at the bottom layer of the Zigbee network plays a main role on making a copy (back-up). Usually the main Zigbee coordinator is in charge of operating and judged whether operating normally by an added software (SW) layer. Once the main Zigbee coordinator is judged to function abnormally, a back-up Zigbee coordinator is launched to transmit data between the back-up Zigbee coordinator at the bottom layer and the application layer of an upper layer, so as to enable the Zigbee network operate normally. However, such a pure-hardware back-up approach can not enable the Zigbee network operate normally if there are troubles on a network or the application layer.
Accordingly, a main objective of the present invention provides a back-up Zigbee coordinator to be assigned in a Zigbee network system. Network group data stored in a primary Zigbee coordinator can be instantly back-up to the back-up Zigbee coordinator, so that the back-up Zigbee coordinator can instantly replace a damaged Zigbee coordinator without reinitializing the Zigbee network. As a result, a damaged Zigbee coordinator can not interrupt data transmission in the Zigbee network, so that user can seamlessly go on data transmission.
Accordingly, a Zigbee network system includes: a primary Zigbee coordinator; a Zigbee router wirelessly connected with the primary Zigbee coordinator; and a back-up Zigbee coordinator communicatively coupled with the primary Zigbee coordinator and configured to receive a network group data from the primary Zigbee coordinator, wherein the back-up Zigbee coordinator is further configured to send a query signal to the primary Zigbee coordinator, and includes a first wireless transceiver configured to become operational to wirelessly connect with the Zigbee router if the back-up Zigbee coordinator does not receive a query response indicating the primary Zigbee coordinator is functioning normally.
Accordingly a Zigbee coordinator configured to communicatively couple with a counterpart Zigbee coordinator is provided herein, the Zigbee coordinator comprising: a communication module configured to send a query signal to the counterpart Zigbee coordinator, and further configured to receive a network group data from the counterpart Zigbee coordinator; a storage module configured to store the network group data; and a wireless transceiver configured to become operative to wirelessly connect the Zigbee coordinator with a Zigbee router if the Zigbee coordinator does not receive a query response indicating the counterpart Zigbee coordinator is functioning normally.
Accordingly, a method for substituting a primary Zigbee coordinator in a Zigbee network system includes: providing a back-up Zigbee coordinator communicatively coupled with the primary Zigbee coordinator, the back-up Zigbee coordinator comprising a memory storing a network group data received from the primary Zigbee coordinator; querying if the primary Zigbee coordinator is functioning normally; and if the primary Zigbee coordinator is not functioning normally, connecting the back-up Zigbee coordinator to the Zigbee network system using the network group data.
A Zigbee network system is disclosed in the present invention, in which structures and principles of router and Zigbee coordinator are well known by one of general knowledge in the field, so they will not be illustrated in detail. The presently described embodiments will be understood by reference to the drawings, but the sizes or ratios of components shown in drawings are not intended to limit the scope of the disclosure.
The present invention relates to a Zigbee network system, and particularly relates to a Zigbee network system with a backup Zigbee coordinator, at least a router, and a primary Zigbee coordinator.
Please refer to
Shown in
Please refer to
In the embodiment, the first communication module 13 sends the query signals under some situations: the back-up Zigbee coordinator 1 is turned on or connected completely with the primary Zigbee coordinator 2; and the back-up Zigbee coordinator 1 has been turned on and linked with the primary Zigbee coordinator 2, such as in the case of network group data updated, the second communication module 23 actively outputs the network group data stored in the second storing module 24 to the first communication module 13, and the back-up Zigbee coordinator 1 may update the network group data at ally time.
In the embodiment, if the primary Zigbee coordinator 2 is wired connected to the back-up Zigbee coordinator 1 and the back-up Zigbee coordinator 1 can not instantly receive the normal signal from the primary Zigbee coordinator 2, the primary Zigbee coordinator 2 is determined to be abnormal. Provided that the primary Zigbee coordinator 2 is wirelessly connected to the back-up Zigbee coordinator 1, the first processing module 12 of the back-up Zigbee coordinator 1 may further set a counter indicative of a number of times that the first communication module 13 does not receive the normal signal from the second communication module 23 of the primary Zigbee coordinator 2. For example, if the first communication module 13 of the back-up Zigbee coordinator 1 sends the query signal to the second communication module 23 of the primary Zigbee coordinator 2, but the number of times that the first communication module 13 does not receive the normal signals feedback from the second communication module 23 of the primary Zigbee coordinator 2 has reached a threshold, the primary Zigbee coordinator 2 will be determined to be abnormal. The threshold of the number of times aforementioned may be set to be three, but is not limited to in the present invention.
Next,
Shown in
Next, please refer to
Step S1: In the case that the primary Zigbee coordinator 2 is the main coordinator of the Zigbee network system, the primary Zigbee coordinator 2 is connected to the routers 31 and 32 via the RF of the second wireless transceiver 21, and the first wireless transceiver 11 of the back-up Zigbee coordinator 1 is at a turn-off state. Next, go to step S2.
Step S2: the first communication module 13 of the back-up Zigbee coordinator 1 sends out a query signal to the second communication module 23 of the primary Zigbee coordinator 2. Next, go to step S3.
Step S3: the network group data stored in the second storing module 24 is outputted to the first communication module 13 by the second communication module 23 in the light of the query signal, and the first communication module 13 transmits the network group data to the first storing module 14 for back-up storing. Next, go to step S4.
Step S4: In the case that the back-up Zigbee coordinator 1 has been turned-on and linked with the primary Zigbee coordinator 2, if the network group data is updated, the second communication module 23 actively outputs the network group data stored in the second storing module 24 to the first communication module 13, so as to the back-up Zigbee coordinator 1 may update the network group data at any time. Next, go to step S5.
Step S5: the query signal is sent to the second communication module 23 by the first communication module 13 every one second. After the second communication module 23 receives the query signal, the second processing module 22 determines whether the second communication module 23 outputs the normal signal to the first communication module 13, and then the first communication module 13 outputs the normal signal to the first processing module 12. Next, go to step S6.
Step S6: whether the primary Zigbee coordinator 2 is functioning abnormally is judged by the first processing module 12 in the light of the received situation of normal signal. If the first processing module 12 judges the first communication module 13 does not receive the normal signal, the primary Zigbee coordinator 2 is determined to be abnormal, and go to step S7.
Step S7: the first wireless transceiver 11 is turned on to enable the first wireless transceiver 11 generate RF. At the moment, with the RF of the first wireless transceiver 11, the routers 31 and 32 connect the first wireless transceiver 11 to assign the back-up Zigbee coordinator 1 as the main coordinator of the Zigbee. Next, go to step S8.
Step S8: the back-up Zigbee coordinator 1 sends mail to the user mailbox 5 to notify user to recover the primary Zigbee coordinator 2 or install another back-up Zigbee coordinator (not shown in figure) into the Zigbee network system.
On the other hand, if the primary Zigbee coordinator 2 judges the first communication module 13 has received the normal signal in step S6, the primary Zigbee coordinator 2 is determined to be functioning normally, and step 5 in which the query signal is sent to the second communication module 23 every time interval can be executed again.
In the embodiment, the Zigbee network system may be a mesh type system, star type or tree type one, but it is not limited to in the present invention.
In the embodiment, user may judge whether the primary Zigbee coordinator 2 is abnormal by checking log of network data from the primary Zigbee coordinator 2.
In these embodiments, the network group data stored in the primary Zigbee coordinator 2 can be instantly back-up into the back-up Zigbee coordinator 1, and the back-up Zigbee coordinator 1 can instantly replace the malfunction primary Zigbee coordinator 2 without reinitializing the Zigbee network. Accordingly, a malfunction Zigbee coordinator can not interrupt data transmission in the Zigbee network in the present invention, so that user can seamlessly go on data transmission.
While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
201510881519.X | Dec 2015 | CN | national |