CN102917384B - Hot backup method of coordinators in Zigbee network - Google Patents
Hot backup method of coordinators in Zigbee network Download PDFInfo
- Publication number
- CN102917384B CN102917384B CN201210402728.8A CN201210402728A CN102917384B CN 102917384 B CN102917384 B CN 102917384B CN 201210402728 A CN201210402728 A CN 201210402728A CN 102917384 B CN102917384 B CN 102917384B
- Authority
- CN
- China
- Prior art keywords
- coordinator
- backup
- zigbee network
- master
- telegon
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a hot backup method of coordinators in a Zigbee network. The hot backup method is characterized in that a plurality of coordinators are arranged, and each coordinator has a coordinator work mode and a non-coordinator work mode; after each coordinator is started by a self hardware MAC (Media Access Control) address, an ambient environment is firstly scanned, if the Zigbee network is not found, the coordinator works in the coordinator work mode and establishes the Zigbee network, otherwise, standby coordinators in the non-coordinator work mode are taken to enter the existing Zigbee network; and the standby coordinator sends a data package for maintaining movable connection to a main coordinator at intervals, if the standby coordinator does not receive a response package of the main coordinator, one standby coordinator is selected from all the standby coordinators as the main coordinator according to a predetermined rule, and the selected standby coordinator takes a stored MAC address of the original main coordinator as a self MAC address and switches to the coordinator work mode. According to the hot backup method of the coordinator in the Zigbee network, the smooth seamless switching between the main coordinator and each standby coordinator can be realized.
Description
Technical field
The present invention relates to the hot spare method of telegon in a kind of Zigbee network.
Background technology
In Zigbee network, network is set up in the effect of telegon, and in actual environment, telegon often carries the communication with external network (as IP network).In Zigbee network, router and terminal node have multiple usually; thus redundancy and reliability can be improved by increasing node; but coordinator node can only have one in Zigbee network, therefore usually can encounter telegon fault and cause Zigbee network to set up or cannot communicate with outside.Thus need to increase telegon to improve the reliability of network in Zigbee network, prevent the generation of Single Point of Faliure.Owing to can only there be a telegon in Zigbee network, thus when telegon goes wrong, the telegon that artificial replacement is new usually, can affect promptness and the reliability of network service in replacement process.So in highly reliable communication network, need the hot spare method of Zigbee network telegon, when a telegon lost efficacy, can automatically enable telegon for subsequent use.
Traditional hot spare method needs to connect heartbeat between master coordinator, standby telegon, thus Install and configure more complicated, when there being multiple backup coordinator, this mode becomes and is difficult to realize, and backup coordinator does not participate in other work under normal circumstances, causes the waste of resource.
Summary of the invention
Technical problem to be solved by this invention be for above-mentioned prior art provide a kind of provide multiple backup coordinator, simultaneously multiple backup coordinator also can participate in Zigbee network work when not using as master coordinator and between master coordinator and backup coordinator can smooth and seamless switching telegon Zigbee network in the hot spare method of telegon.
The present invention solves the problems of the technologies described above adopted technical scheme: the hot spare method of telegon in this Zigbee network, is characterized in that:
(1), the foundation of master coordinator and backup coordinator:
Multiple telegon is set, each telegon all has two kinds of mode of operations, first mode of operation is telegon mode of operation, and the second mode of operation is non-coordinator mode of operation, and non-coordinator mode of operation comprises router mode of operation and/or terminal node mode of operation;
After each telegon starts with hardware mac address own, first scanning Zigbee network around, if do not find Zigbee network, this telegon then enters telegon mode of operation and sets up a Zigbee network, otherwise just adds existing Zigbee network with non-coordinator mode of operation; The telegon setting up Zigbee network is called master coordinator, and the telegon adding existing Zigbee network with non-coordinator mode of operation is all called backup coordinator; Backup coordinator adds existing Zigbee network with router or terminal node identity, this is done to utilize Zigbee network effectively to communicate;
Backup coordinator is registered to master coordinator after adding existing Zigbee network, master coordinator sends backup coordinator list and master coordinator MAC Address data to backup coordinator, and backup coordinator stores these data after receiving backup coordinator list and master coordinator MAC Address data;
(2), the switching of master coordinator and backup coordinator:
Backup coordinator sends at set intervals and keeps the packet be flexibly connected to master coordinator, and starts timer; Send it back after master coordinator receives and should wrap, backup coordinator resets timer after receiving response;
The packet that master coordinator is flexibly connected according to the maintenance received dynamically updates backup coordinator list;
If the timer expiry of backup coordinator, then all backup coordinator select a backup coordinator as master coordinator according to established rule, and all the other backup coordinator communicate with new master coordinator; The MAC Address of the former master coordinator that the backup coordinator chosen is preserved using it as oneself MAC Address and be switched to telegon mode of operation, be thus level and smooth and transparent concerning this switching other nodes in Zigbee network;
Selecting an established rule as master coordinator in all backup coordinator is: sort to all backup coordinator, successively preferentially select according to clooating sequence and determine master coordinator, or all backup coordinator determine master coordinator according to the rules of competition, or all backup coordinator hold consultation election to determine master coordinator.
Compared with prior art, the invention has the advantages that:
(1), between master coordinator and backup coordinator achieve hot standby by radio communication and exchanges data, and handoff procedure is smoothly transparent, substantially increases the reliability of Zigbee network;
(2), master coordinator and backup coordinator utilize original Zigbee network to carry out radio communication, improve the reliability of communication and reduce the difficulty of deployment, eliminate the physical connection requirements between master coordinator, backup coordinator, as long as new backup coordinator just can be disposed in the place having Zigbee network to cover, and dispose multiple backup coordinator and also become possibility, multiple backup coordinator uses as router or terminal node in Zigbee network, can not waste resource; And by the Zigbee network that the present invention sets up, there is autonomous feature, thus can in running, dynamically increase and decrease the deployment of backup coordinator and original Zigbee network can not be destroyed;
(3), master coordinator and backup coordinator be global function Zigbee node, possesses the function of telegon, router and terminal node, only need enable or disable partial function, be applicable to the Zigbee node that hardware resource is limited when thus switching;
(4), when backup coordinator serves as router, data retransmission work can be participated in, the reliability of Zigbee network can be improved and expand Zigbee network coverage.
Accompanying drawing explanation
Fig. 1 is the deployment way schematic diagram that in the embodiment of the present invention, Zigbee telegon is hot standby;
Fig. 2 is the hot spare method flow chart of telegon in Zigbee network in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing embodiment, the present invention is described in further detail.
The hot spare method of telegon in Zigbee network provided by the invention, first need to set up a master coordinator and multiple backup coordinator, its concrete grammar is:
Multiple telegon is set, each telegon all has two kinds of mode of operations, first mode of operation is telegon mode of operation, and the second mode of operation is non-coordinator mode of operation, and non-coordinator mode of operation comprises router mode of operation and/or terminal node mode of operation;
After each telegon starts with hardware mac address own, first scanning Zigbee network around, if do not find Zigbee network, this telegon then enters telegon mode of operation and sets up a Zigbee network, otherwise just adds existing Zigbee network with non-coordinator mode of operation; The telegon setting up Zigbee network is called master coordinator, and the telegon adding existing Zigbee network with non-coordinator mode of operation is all called backup coordinator; Backup coordinator adds existing Zigbee network with router or terminal node identity;
Backup coordinator is registered to master coordinator after adding existing Zigbee network, master coordinator sends backup coordinator list and master coordinator MAC Address data to backup coordinator, and backup coordinator stores these data after receiving backup coordinator list and master coordinator MAC Address data; Shown in Figure 1
In addition, coordination for subsequent use its dynamically can increase and decrease in running, this mode can not destroy original Zigbee network.
When master coordinator lost efficacy, the process that backup coordinator switches was, shown in Figure 2:
Backup coordinator sends at set intervals and keeps the packet (namely Keep Alive wraps) be flexibly connected to master coordinator, and starts timer; Send it back after master coordinator receives and should wrap, backup coordinator resets timer after receiving response;
The packet that master coordinator is flexibly connected according to the maintenance received dynamically updates backup coordinator list;
If the timer expiry of backup coordinator, then all backup coordinator select a backup coordinator as master coordinator according to established rule, and all the other backup coordinator communicate with new master coordinator; The MAC Address of the former master coordinator that the backup coordinator chosen is preserved using it as oneself MAC Address and be switched to telegon mode of operation.
Selecting an established rule as master coordinator in all backup coordinator is: sort to all backup coordinator, successively preferentially select according to clooating sequence and determine master coordinator, or all backup coordinator determine master coordinator according to the rules of competition, or all backup coordinator hold consultation election to determine master coordinator.
Claims (2)
1. the hot spare method of telegon in Zigbee network, is characterized in that:
(1), the foundation of master coordinator and backup coordinator:
Multiple telegon is set, each telegon all has two kinds of mode of operations, first mode of operation is telegon mode of operation, and the second mode of operation is non-coordinator mode of operation, and non-coordinator mode of operation comprises router mode of operation and/or terminal node mode of operation;
After each telegon starts with hardware mac address own, first scanning Zigbee network around, if do not find Zigbee network, this telegon then enters telegon mode of operation and sets up a Zigbee network, otherwise just adds existing Zigbee network with non-coordinator mode of operation; The telegon setting up Zigbee network is called master coordinator, and the telegon adding existing Zigbee network with non-coordinator mode of operation is all called backup coordinator; Backup coordinator adds existing Zigbee network with router or terminal node identity;
Backup coordinator is registered to master coordinator after adding existing Zigbee network, master coordinator sends backup coordinator list and master coordinator MAC Address data to backup coordinator, and backup coordinator stores these data after receiving backup coordinator list and master coordinator MAC Address data;
(2), the switching of master coordinator and backup coordinator:
Backup coordinator sends at set intervals and keeps the packet be flexibly connected to master coordinator, and starts timer; Send it back after master coordinator receives and should wrap, backup coordinator resets timer after receiving response;
The packet that master coordinator is flexibly connected according to the maintenance received dynamically updates backup coordinator list;
If the timer expiry of backup coordinator, then all backup coordinator select a backup coordinator as master coordinator according to established rule, and all the other backup coordinator communicate with new master coordinator; The MAC Address of the former master coordinator that the backup coordinator chosen is preserved using it as oneself MAC Address and be switched to telegon mode of operation.
2. the hot spare method of telegon in Zigbee network according to claim 1, it is characterized in that: selecting an established rule as master coordinator in all backup coordinator is: sort to all backup coordinator, successively preferentially select according to clooating sequence and determine master coordinator, or all backup coordinator determine master coordinator according to the rules of competition, or all backup coordinator hold consultation election to determine master coordinator.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210402728.8A CN102917384B (en) | 2012-10-19 | 2012-10-19 | Hot backup method of coordinators in Zigbee network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210402728.8A CN102917384B (en) | 2012-10-19 | 2012-10-19 | Hot backup method of coordinators in Zigbee network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102917384A CN102917384A (en) | 2013-02-06 |
CN102917384B true CN102917384B (en) | 2015-03-25 |
Family
ID=47615576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210402728.8A Active CN102917384B (en) | 2012-10-19 | 2012-10-19 | Hot backup method of coordinators in Zigbee network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102917384B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581792A (en) * | 2013-10-17 | 2015-04-29 | 新普斯有限公司 | Zigbee backup system |
CN103826253A (en) * | 2014-02-26 | 2014-05-28 | 江苏林洋电子股份有限公司 | ZigBee network coordinator redundancy backup method |
CN105376695B (en) * | 2015-10-09 | 2018-08-17 | 佛山科学技术学院 | Wireless communications method based on IEEE802-15-4 standards |
CN105578519B (en) * | 2015-12-21 | 2021-07-16 | 联想(北京)有限公司 | Zigbee node upgrading method and control server |
EP3513620A4 (en) * | 2016-09-13 | 2020-05-13 | InterDigital CE Patent Holdings | Method and apparatus for controlling network sensors |
CN106658576B (en) * | 2016-10-19 | 2021-03-12 | 北京三快在线科技有限公司 | Data processing method, device and network system |
CN107872810A (en) * | 2017-11-16 | 2018-04-03 | 广东创达自动化装备有限公司 | A kind of ZigBee intelligent networkings method |
CN114071433B (en) * | 2020-07-30 | 2023-06-02 | 西门子(中国)有限公司 | Anti-interference method, device and system for Zigbee network |
CN112188536B (en) * | 2020-09-24 | 2022-10-18 | 杭州萤石软件有限公司 | Zigbee network disaster recovery backup system, method, device and storage medium |
CN112584404A (en) * | 2020-11-24 | 2021-03-30 | 广州朗国电子科技有限公司 | Gateway and identity switching method thereof |
CN112788638A (en) * | 2020-12-26 | 2021-05-11 | 湖北民族大学 | Wireless sensor network mirror image network |
CN113840021B (en) * | 2021-10-30 | 2024-08-20 | 黑龙江中龙电凯智能管控科技有限公司 | Zigbee node network address allocation method based on signal strength |
CN118400790B (en) * | 2024-06-25 | 2024-08-30 | 广州旋坤信息科技有限公司 | System for wireless node joins network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350637A (en) * | 2008-09-05 | 2009-01-21 | 清华大学 | Networking method for two-channel wireless sensing terminal based on Zigbee |
CN101404845A (en) * | 2008-11-14 | 2009-04-08 | 中山大学 | Road illumination monitoring system based on ZigBee technology |
CN102149116A (en) * | 2011-04-02 | 2011-08-10 | 迈普通信技术股份有限公司 | Backup method and device for coordinator of wireless private area network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8510025B2 (en) * | 2009-04-02 | 2013-08-13 | Trafficcast International, Inc. | Method and system for a traffic management network |
-
2012
- 2012-10-19 CN CN201210402728.8A patent/CN102917384B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350637A (en) * | 2008-09-05 | 2009-01-21 | 清华大学 | Networking method for two-channel wireless sensing terminal based on Zigbee |
CN101404845A (en) * | 2008-11-14 | 2009-04-08 | 中山大学 | Road illumination monitoring system based on ZigBee technology |
CN102149116A (en) * | 2011-04-02 | 2011-08-10 | 迈普通信技术股份有限公司 | Backup method and device for coordinator of wireless private area network |
Also Published As
Publication number | Publication date |
---|---|
CN102917384A (en) | 2013-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102917384B (en) | Hot backup method of coordinators in Zigbee network | |
CN100373799C (en) | A method for warm back-up of broad band switch-in server | |
CN104205748B (en) | Has redundancy between the frame of coordinated traffic direction | |
JP5727055B2 (en) | System and method for session resiliency in a geographically redundant gateway | |
CN102647486B (en) | Address distribution method, equipment and system | |
CN102035676B (en) | ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault | |
CN105722055B (en) | A kind of WLAN WLAN user loaming method, device and system | |
US9215642B2 (en) | Service packet forwarding and processing method and system, and access point AP | |
CN103929333A (en) | Implementation method for SDN controller pool | |
CN101841462B (en) | Method, device and system for informing VRRP state information | |
CN103607293B (en) | A kind of flow rate protecting method and equipment | |
CN105515812A (en) | Fault processing method of resources and device | |
CN105024836B (en) | Method and device for switching primary Service Router (SR) and standby SR and SR | |
US9608859B2 (en) | System, apparatus and method for reducing failover time through redundancy using virtual access points | |
CN100492984C (en) | Method for realizing data transfer backup through address interpretation protocol messages | |
CN104980965A (en) | Wireless system with wired fault self-restoring function and self-restoring method thereof | |
CN105472049B (en) | CGN backup protection method and device for carrier-grade network address conversion | |
CN102388570B (en) | Single board running method and system under active-standby mode | |
CN101729426A (en) | Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP) | |
CN102447615A (en) | Switching method and router | |
CN103491590A (en) | Method for achieving next-generation wireless sensor network route | |
CN105007587A (en) | Multi-network coverage apparatus and method having network selection function | |
CN102209035B (en) | Traffic forwarding method and devices | |
CN113709046A (en) | PRP-based cross-three-layer exchange parallel redundancy method | |
CN102904705B (en) | Method and equipment for synchronizing batch of stacking systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 315800 Songshan Road, Beilun District, Zhejiang, No. 1299, No. Patentee after: Ningbo Haibo Group Co. Ltd. Address before: 315800 Songshan Road, Beilun District, Zhejiang, No. 1299, No. Patentee before: Beicang Haibo Fine Machinery Mfg. Co., Ltd., Ningbo |
|
CP01 | Change in the name or title of a patent holder |