CN104955016A - Method of automatically joining ZigBee network and terminal equipment - Google Patents

Method of automatically joining ZigBee network and terminal equipment Download PDF

Info

Publication number
CN104955016A
CN104955016A CN201410119993.4A CN201410119993A CN104955016A CN 104955016 A CN104955016 A CN 104955016A CN 201410119993 A CN201410119993 A CN 201410119993A CN 104955016 A CN104955016 A CN 104955016A
Authority
CN
China
Prior art keywords
terminal equipment
network
zigbee
equipment
beacon
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.)
Granted
Application number
CN201410119993.4A
Other languages
Chinese (zh)
Other versions
CN104955016B (en
Inventor
沈胜文
殷俊
张兴明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201410119993.4A priority Critical patent/CN104955016B/en
Publication of CN104955016A publication Critical patent/CN104955016A/en
Application granted granted Critical
Publication of CN104955016B publication Critical patent/CN104955016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of communication, and particularly relates to a method of automatically joining a ZigBee network and terminal equipment, so as to solve the problem that when the terminal equipment in the ZigBee network does not receive an updating request broadcasted by a coordinator in the prior art, the user equipment is off the network. According to the embodiment of the invention, the terminal equipment detects disconnection of a link between the terminal equipment itself and a network management node; the terminal equipment acquires Beacon information of other terminal equipment in a signal range; the terminal equipment determines reference terminal equipment with the same extPANID and with a larger updateID sequence number than that of the terminal equipment to serve as reference terminal equipment; and according to the PANID of the reference terminal equipment, automatic switching is carried out, and the ZigBee network is joined. After the terminal equipment is sure to be off the original network, the network is joined again through actively scanning other equipment terminals in the signal range, and reliability of the ZigBee network equipment is improved.

Description

A kind of method and terminal equipment automatically adding ZigBee-network
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and the terminal equipment that automatically add ZigBee-network.
Background technology
ZigBee be a kind of closely, low complex degree, low-power consumption, low data rate, low cost two-way wireless communication technology, be the IEEE802.15.4 agreement that family short distance communication is formulated specially based on IEEE working group, mainly be suitable for automatically controlling and remote control field, various equipment can be embedded.ZigBee-network is operated in 2.4G frequency range, containing multiple ZigBee PAN(Personal Area Network PAN (Personal Area Network) in each channel), a ZigBee PAN is usually by a management node, multiple father node and multiple terminal equipment composition, each father node links with multiple terminal equipment, and terminal equipment is linked by father node and management node.Typical ZigBee PAN comprises a telegon, multiple router and multiple terminal equipment; Telegon is as management node, and router is as father node.
During a ZigBee PAN network construction, using the MAC Address of telegon or other the unique identification information title as this network, be called extended network identifier extPANID, the extPANID of each ZigBee PAN network is unique, and not along with the parameter of this network changes.During ZigBee PAN network construction, telegon selects a channel to carry out networking, after determining channel, telegon generates a PAN ID(Personal Area Network ID, PAN (Personal Area Network) identifier), then the PANID in telegon scanning channel, if this PANID is used by adjacent networks, then another PANID of telegon meeting regeneration, until finally determine the PANID of this network.After PANID determined by telegon, as needs upgrade network parameter, telegon broadcast update request, update request comprises the parameter of the ZigBee PAN network after networking; After other equipment in ZigBee PAN network receive update request, automatically configure according to the network parameter in update request.When the parameter of ZigBee PAN network changes, the network parameter after changing determined by telegon, and generate update request according to the network parameter after change, telegon broadcast update request, after other equipment in network receive update request, automatically carry out network parameter renewal according to the network parameter in update request.Wherein telegon is that the update request of each generation generates a sequence number, and the sequencing generated in order to identification renewal request, the update request information sequence number of generation is designated updateID.After other equipment in network receive update request, determine whether to upgrade according to update request according to the updateID of update request.In prior art, when the network parameter in ZigBee PAN network changes, PANID as ZigBeePAN network changes, then telegon generates update request according to the network parameter after change, this update request broadcasted by telegon, after other equipment in network receive this update request, carry out update process according to the network parameter in update request; If but in the process upgraded, terminal equipment fails to receive this update request, after ZigBee PAN network upgrades, this terminal equipment will be caused from net.
Therefore, in prior art when the terminal equipment in ZigBee PAN network does not receive the update request of telegon broadcast, this subscriber equipment can be caused from net.
Summary of the invention
The invention provides a kind of method and the terminal equipment that automatically add ZigBee-network, with solve in prior art when the terminal equipment in ZigBee PAN network do not receive telegon broadcast update request time, cause the off-grid problem of this subscriber equipment.
Embodiments provide a kind of method automatically adding ZigBee-network, the method comprises:
Terminal equipment detects the link interruption between the management node in self and ZigBee-network;
Described end-point device broadcast beacon Beacon information acquisition request, receive the Beacon information that the other-end equipment in its range of signal sends according to Beacon information acquisition request, described Beacon information comprises the extended network identifier extPANID of ZigBee-network corresponding to terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID;
Described terminal equipment determines that the terminal equipment identical with self extPANID is for treating reference terminal equipment, treats that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of described terminal equipment as reference terminal equipment using described;
Described terminal equipment carries out update process according to the PANID of ZigBee-network corresponding to the reference terminal equipment determined to the network parameter of self, and is switched to ZigBee-network corresponding to reference terminal equipment.After in above-described embodiment, terminal equipment determines self to depart from former network, by obtaining the Beacon information of other device ends in its range of signal, according to the Beacon information determination reference terminal equipment of other device ends, network parameter according to reference terminal equipment carries out update process to the network parameter of self, determines the network finally rejoined; When avoiding terminal equipment in prior art owing to not receiving the update request of telegon broadcast, the problem causing this subscriber equipment to be lost, improves the reliability of ZigBee-network equipment.
The beacon Beacon information that terminal equipment described in the embodiment of the present invention sends according to the other-end equipment in its range of signal received, determine to treat reference terminal equipment, specifically comprise:
Described terminal equipment is by the channels broadcast beacon Beacon information acquisition request in its current network parameter, receive in its range of signal, the Beacon information of the other-end equipment transmission of same channel, described terminal equipment selects the terminal equipment identical with self extPANID as treating reference terminal equipment.
In above-described embodiment, whether terminal equipment is determined in its range of signal containing the terminal equipment identical with self extPANID according to its channel, if having, then using this equipment as treating reference terminal equipment; Whether terminal device prioritizes detects containing needing reference terminal equipment in the terminal equipment with its same channel, to reduce the network parameter needing after terminal equipment adds new network to change.
The beacon Beacon information that terminal equipment described in the embodiment of the present invention sends according to the other-end equipment in its range of signal received, determine to treat reference terminal equipment, specifically comprise:
Described terminal equipment, in its range of signal, does not get the terminal equipment identical with self extPANID in the other-end equipment of same channel; Or, the terminal equipment of the updateID sequence number of described terminal equipment is not more than in its range of signal that described terminal equipment is determined with the updateID sequence number of the reference terminal equipment for the treatment of of its use same channel;
Then described terminal equipment is by other channels broadcast beacons Beacon information acquisition request, receive the Beacon information of all terminal equipment transmissions in its range of signal, described terminal equipment determines that the terminal equipment identical with self extPANID is as treating reference terminal equipment.
Reference terminal equipment is treated when not finding in the terminal equipment of terminal equipment same channel in its range of signal in above-described embodiment, then search for the terminal equipment of other channels in its range of signal, by active searching other-end equipment, determine the network rejoined, ensure that the communication of other equipment in terminal equipment and network, improve the reliability of ZigBee-network.
The beacon Beacon information that terminal equipment described in the embodiment of the present invention sends according to the other-end equipment in its range of signal received, determine to treat reference terminal equipment, specifically comprise:
Described terminal equipment does not find in its range of signal identical with self extPANID treats reference terminal equipment; Or the updateID sequence number of the reference terminal equipment for the treatment of in its range of signal that described terminal equipment is determined is not more than the terminal equipment of the updateID sequence number of described terminal equipment;
Then determine to there is physical fault between described terminal equipment and ZigBee-network, described terminal equipment keeps former network parameter constant.
If terminal equipment does not search reference terminal equipment in its range of signal in above-described embodiment, then there is physical fault in that determines terminal equipment or ZigBee-network, keeps the former network parameter of terminal equipment constant, after waiting for that physical fault is repaired, rejoins network.
Terminal equipment described in the embodiment of the present invention detects the link interruption between the management node in self and ZigBee-network, specifically comprises:
Described terminal equipment is linked to management node by father node, and described terminal equipment is according to the link interruption between the link quality information determination terminal equipment between the father node detected and terminal equipment and described father node;
After the link interruption between father node determined by described terminal equipment, cycle sends the information comprising the ID of described terminal equipment to described management node, if the continuous X of a described terminal equipment cycle does not receive the confirmation that described management node sends, then determine the link interruption between described terminal equipment and described management node; Described confirmation is the information that management node generates according to the information comprising the ID of terminal equipment received; Wherein X is positive integer.
After in above-described embodiment, the link interruption between self and father node determined by terminal equipment, determine whether linking between terminal equipment with management node interrupts, if interrupt, then determine that this terminal equipment is from net, again search for the network parameter after the former network change of this terminal equipment; If link non-terminal between terminal equipment with management node, then determine that father node breaks down, this terminal equipment does not need to change network parameter; By linking situation between terminal equipment with management node, judging whether to need to rejoin new network, improve the reliability of network.
Embodiments provide a kind of terminal equipment automatically adding ZigBee-network, described terminal equipment comprises:
Network detection module, for detecting the link interruption between the management node in self and ZigBee-network;
Beacon message acquisition module, for broadcast beacon Beacon information acquisition request, receive the Beacon information that the other-end equipment in its range of signal sends according to Beacon information acquisition request, described Beacon information comprises the extended network identifier extPANID of ZigBee-network corresponding to terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID;
Reference device determination module, for determining that the terminal equipment identical with self extPANID is for treating reference terminal equipment, treat that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of described terminal equipment as reference terminal equipment using described;
Network handover module, for carrying out update process according to the PANID of ZigBee-network corresponding to the reference terminal equipment determined to the network parameter of self, and is switched to ZigBee-network corresponding to reference terminal equipment.
After in above-described embodiment, terminal equipment determines self to depart from former network, by obtaining the Beacon information of other device ends in its range of signal, according to the Beacon information determination reference terminal equipment of other device ends, network parameter according to reference terminal equipment carries out update process to the network parameter of self, determines the network finally rejoined; When avoiding terminal equipment in prior art owing to not receiving the update request of telegon broadcast, cause the off-grid problem of this subscriber equipment, improve the reliability of ZigBee-network equipment.
The acquisition module of beacon message described in the embodiment of the present invention specifically for:
By the channels broadcast beacon Beacon information acquisition request in described terminal equipment current network parameter, receive in its range of signal, the Beacon information of the other-end equipment transmission of same channel;
Described reference device determination module, specifically for: select the terminal equipment identical with self extPANID as treating reference terminal equipment.
In above-described embodiment, whether terminal equipment is determined in its range of signal containing the terminal equipment identical with self extPANID according to its channel, if having, then using this equipment as treating reference terminal equipment; Whether terminal device prioritizes detects containing needing reference terminal equipment in the terminal equipment with its same channel, to reduce the network parameter needing after terminal equipment adds new network to change.
The acquisition module of beacon message described in the embodiment of the present invention specifically for:
The terminal equipment identical with self extPANID is not got in described terminal equipment range of signal with the other-end equipment of its use same channel; Or, be not more than the terminal equipment of the updateID sequence number of described terminal equipment with the updateID sequence number of the reference terminal equipment for the treatment of of its use same channel in the described terminal equipment range of signal determined; Then adopt other channels broadcast beacons Beacon information acquisition request, receive the Beacon information of all terminal equipment transmissions in its range of signal;
Described reference device determination module, specifically for: determine that the terminal equipment identical with self extPANID is as treating reference terminal equipment.
When terminal equipment is in its range of signal in above-described embodiment, do not find in the terminal equipment of same channel and treat reference terminal equipment, then search for the terminal equipment of other channels in its range of signal, by active searching other-end equipment, determine the network rejoined, ensure that the communication of other equipment in terminal equipment and network, improve the reliability of ZigBee-network.
Network handover module described in the embodiment of the present invention specifically for:
Do not find in described terminal equipment range of signal and identical with self extPANID treat reference terminal equipment; Or the updateID sequence number of the reference terminal equipment for the treatment of in the described terminal equipment range of signal determined is not more than the terminal equipment of the updateID sequence number of described terminal equipment; Then determine to there is physical fault between described terminal equipment and ZigBee-network, described terminal equipment keeps former network parameter constant.
If terminal equipment does not search reference terminal equipment in its range of signal in above-described embodiment, then there is physical fault in that determines terminal equipment or ZigBee-network, keeps the former network parameter of terminal equipment constant, after waiting for that physical fault is repaired, rejoins network.
The detection module of network described in the embodiment of the present invention specifically for:
Management node is linked to, according to the link interruption between the link-quality indication information determination terminal equipment between the father node detected and described terminal equipment and described father node by father node;
After determining the link interruption between father node, cycle sends the information comprising the ID of described terminal equipment to described management node, if the continuous X of a described terminal equipment cycle does not receive the confirmation that described management node sends, then determine the link interruption between described terminal equipment and described management node; Described confirmation is the information that management node generates according to the information comprising the ID of terminal equipment received; Wherein X is positive integer.
After in above-described embodiment, the link interruption between self and father node determined by terminal equipment, determine whether linking between terminal equipment with management node interrupts, if interrupt, then determine that this terminal equipment is from net, again search for the network parameter after the former network change of this terminal equipment; If link non-terminal between terminal equipment with management node, then determine that father node breaks down, this terminal equipment does not need to change network parameter; By linking situation between terminal equipment with management node, judging whether to need to rejoin new network, improve the reliability of network.
Link interruption between the management node that in the embodiment of the present invention, terminal equipment detects in self and ZigBee-network; Terminal equipment obtains the beacon Beacon information of the other-end equipment in its range of signal, and Beacon information comprises extended network identifier extPANID, PAN (Personal Area Network) identifier PANID, update request information updateID; Terminal equipment determines that the terminal equipment identical with self extPANID is for treating reference terminal equipment, will treat that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of terminal equipment as reference terminal equipment; Terminal equipment automatically switches according to the PANID of the reference terminal equipment determined and enters ZigBee-network.After terminal equipment determines self to depart from former network, by other device ends in its range of signal of active scan, determine the network finally rejoined; When avoiding terminal equipment in prior art owing to not receiving the update request of telegon broadcast, cause the off-grid problem of this subscriber equipment, improve the reliability of ZigBee-network equipment.
Accompanying drawing explanation
Fig. 1 is a kind of schematic flow sheet automatically adding the method for ZigBee-network in the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet automatically adding the concrete grammar of ZigBee-network in the embodiment of the present invention;
Fig. 3 is a kind of schematic diagram automatically adding the terminal equipment of ZigBee-network in the embodiment of the present invention.
Embodiment
Embodiments provide a kind of method and the terminal equipment that automatically add ZigBee-network, after terminal equipment determines self to depart from former network, by other device ends in its range of signal of active scan, determine the network finally rejoined; When avoiding terminal equipment in prior art owing to not receiving the update request of telegon broadcast, cause the off-grid problem of this subscriber equipment, improve the reliability of ZigBee-network equipment.
Below in conjunction with Figure of description, the embodiment of the present invention is further described.
As shown in Figure 1, be the method automatically adding ZigBee-network a kind of in the embodiment of the present invention, the method comprises:
Step 101: terminal equipment detects the link interruption between the management node in self and ZigBee-network;
Step 102: end-point device broadcast beacon Beacon information acquisition request, receive the Beacon information that the other-end equipment in its range of signal sends according to Beacon information acquisition request, Beacon information comprises the extended network identifier extPANID of ZigBee-network corresponding to terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID;
Step 103: terminal equipment determines that the terminal equipment identical with self extPANID is for treating reference terminal equipment, will: treat that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of terminal equipment as reference terminal equipment;
Step 104: terminal equipment carries out update process according to the PANID of ZigBee-network corresponding to the reference terminal equipment determined to the network parameter of self, and switch and enter ZigBee-network corresponding to reference terminal equipment.
Wherein, link interruption between the management node that in step 101, terminal equipment detects in self and ZigBee-network, specifically comprise: terminal equipment is linked to management node by father node, link-quality indication information between terminal equipment cycle detection father node and terminal equipment, if the link-quality indication information between terminal equipment and father node is 0, then determine the link interruption between terminal equipment and father node; After the link interruption between father node determined by terminal equipment, cycle sends the information comprising the ID of terminal equipment to management node, if the continuous X of a terminal equipment cycle does not receive the confirmation that management node sends, then determine the link interruption between terminal equipment and management node; Confirmation is the information that management node generates according to the information comprising the ID of terminal equipment received; Wherein X is positive integer;
If terminal equipment receives the confirmation that management node sends, then determine that linking between terminal equipment with management node is not interrupted, determine that father node breaks down, terminal equipment does not need to change network parameter.
Linked by father node between terminal equipment with management node, when link-quality indication information between terminal equipment and the father node of active link is 0, terminal equipment can be linked with management node by other nodes, if terminal equipment can be linked with management node by other links, then determine that the father node that active link is corresponding is abnormal, terminal equipment is still at net, and terminal equipment does not need to change network parameter.
Or linked by father node between terminal equipment with management node, communication can be carried out between different terminal equipment in consolidated network, when link-quality indication information between terminal equipment and father node is 0, terminal equipment is linked with management node by other-end equipment, if terminal equipment can be linked with management node by other-end equipment, then determine that father node is abnormal, terminal equipment is still at net, and terminal equipment does not need to change network parameter; The father node of the other-end linking of devices wherein selected is different from the father node that this terminal equipment links.
In step 102, the beacon Beacon information that terminal equipment sends according to the other-end equipment in its range of signal received, determine to treat reference terminal equipment, specifically comprise: terminal equipment determines that it is after net, and terminal equipment adopts the channels broadcast beacon Beacon information acquisition request in its current network parameter; After the other-end equipment identical with terminal equipment channel receives this beacon Beacon information acquisition request, the Beacon information of self is sent to the terminal equipment sending the request of acquisition, wherein Beacon information comprises the extended network identifier extPANID of a terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID.Extended network identifier extPANID is identifier unique in a ZigBee-network, usually using the extPANID of the MAC Address of each management node as this ZigBee-network; Or using the extPANID of other identification informations of management node as this ZigBee-network; Or name for this ZigBee-network, name name is referred to as the extPANID of this ZigBee-network; The extended network identifier extPANID of each ZigBee-network determines just no longer to change afterwards.PANID is generated by management node when ZigBee-network is set up, and ZigBee-network can detect and avoid the PANID that different ZigBee PAN correspondences repeats and the conflict produced.Before ZigBee-network is set up, management node can scan the PANID in current operating channel, if PANID is used, then can select another PANID.After ZigBee-network upgrades network parameter, the PANID of ZigBee-network also can change usually thereupon, but current of each ZigBee-network can use a PANID.When the parameter of ZigBee PAN network changes, management node determines the network parameter after changing, and generate update request according to the network parameter after change, management node broadcast update request, after other equipment in network receive update request, automatically carry out network parameter renewal according to the network parameter in update request.Wherein management node is that the update request of each generation generates a sequence number, and the sequencing generated in order to identification renewal request, the update request information sequence number of generation is designated updateID.After other equipment in network receive update request, determine whether to upgrade according to update request according to the updateID of update request, the sequence number of updateID new is under normal circumstances greater than the sequence number of original updateID.
In step 103, terminal equipment determines that the terminal equipment identical with self extPANID is for treating reference terminal equipment, specifically comprise: in terminal equipment determination range of signal with the beacon Beacon information of the other-end equipment of its use same channel, using the terminal equipment identical with self extPANID as treating reference terminal equipment; If in terminal equipment range of signal with the other-end equipment of its use same channel in do not find and treat reference terminal equipment, then in terminal equipment determination range of signal with the beacon Beacon information of the other-end equipment of its use different channels, using the terminal equipment identical with self extPANID as treating reference terminal equipment.If terminal equipment does not search and treats reference terminal equipment in the scope of its quorum sensing inhibitor, then determine to there is physical fault between this terminal equipment and former ZigBee-network, then terminal equipment keeps original network parameter constant, and process ends.
In step 103, to treat that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of terminal equipment as reference terminal equipment, specifically comprise: terminal equipment obtain in its range of signal with the updateID sequence number of the reference terminal equipment for the treatment of of its use same channel, the reference terminal equipment for the treatment of updateID sequence number being greater than the updateID sequence number of terminal equipment is as with reference to terminal equipment; If terminal equipment in its range of signal with its use same channel treat do not determine reference terminal equipment in reference terminal equipment, then terminal equipment adopts other channels broadcast beacons Beacon information acquisition request, receive the Beacon information of all terminal equipment transmissions in its range of signal, using the terminal equipment identical with self extPANID as treating reference terminal equipment; Terminal equipment obtain in its range of signal with the updateID sequence number of the reference terminal equipment for the treatment of of its use different channels, the reference terminal equipment for the treatment of updateID sequence number being greater than the updateID sequence number of terminal equipment is as with reference to terminal equipment.
In step 103, the beacon Beacon information that terminal equipment sends according to the other-end equipment in its range of signal received, determine to treat reference terminal equipment, specifically comprise: terminal equipment does not find in its range of signal identical with self extPANID treats reference terminal equipment; Or the updateID sequence number of the reference terminal equipment for the treatment of in its range of signal that terminal equipment is determined is not more than the terminal equipment of the updateID sequence number of described terminal equipment; Then determine to there is physical fault between terminal equipment and ZigBee-network, terminal equipment keeps former network parameter constant.
In step 104, terminal equipment carries out update process according to the PANID of ZigBee-network corresponding to the reference terminal equipment determined to the network parameter of self, and switching enters ZigBee-network corresponding to reference terminal equipment, specifically comprise: if terminal equipment determines in its range of signal to be reference terminal equipment with the reference terminal equipment for the treatment of of its use same channel, then terminal equipment carries out update process according to the PANID of ZigBee-network corresponding to reference terminal equipment to the network parameter of self, switches and enters ZigBee-network corresponding to reference terminal equipment; If terminal equipment determines in its range of signal to be reference terminal equipment with the reference terminal equipment for the treatment of of its use different channels, then terminal equipment is according to its network channel of the channel-changing of reference terminal equipment, according to the PANID of ZigBee-network corresponding to reference terminal equipment, update process is carried out to the network parameter of self again, switch and enter ZigBee-network corresponding to reference terminal equipment.
As shown in Figure 2, be the concrete grammar automatically adding ZigBee-network a kind of in the embodiment of the present invention, the method comprises:
Step 201: terminal equipment detects that between itself and father node, link-quality indication information is 0;
Step 202: the terminal equipment cycle sends the information comprising this terminal equipment ID to management node;
Step 203: terminal equipment judges whether to receive within continuous 5 cycles the confirmation that management node generates according to terminal equipment ID, if do not receive, performs step 204, otherwise performs step 215;
Step 204: terminal equipment is by the channels broadcast beacon Beacon information acquisition request in its current network parameter, receive in its range of signal, the Beacon information of the other-end equipment transmission of same channel, wherein Beacon information comprises extended network identifier extPANID, PAN (Personal Area Network) identifier PANID, update request information updateID;
Step 205: whether terminal equipment judges containing the terminal equipment identical with self extPANID in other-end equipment, if containing, perform step 206, otherwise perform step 209;
Step 206: the terminal equipment identical with self extPANID as treating reference terminal equipment, and obtaining and treat the updateID sequence number of reference device by terminal equipment;
Step 207: terminal equipment judges to treat whether the updateID sequence number of reference device is greater than the updateID sequence number of terminal equipment, if be greater than, performs step 208, otherwise performs step 209;
Step 208: updateID sequence number is greater than terminal equipment and treats that reference device is as reference equipment by terminal equipment, and according to the PANID of ZigBee-network corresponding to reference device, update process is carried out to the network parameter of self, and switching enters ZigBee-network corresponding to reference terminal equipment, process ends;
Step 209: terminal equipment adopts other channels broadcast beacons Beacon information acquisition request, receives the Beacon information of all terminal equipment transmissions in its range of signal;
Step 210: whether terminal equipment judges containing the terminal equipment identical with self extPANID in other-end equipment, if containing, perform step 211, otherwise perform step 215;
Step 211: the terminal equipment identical with self extPANID as treating reference terminal equipment, and obtaining and treat the updateID sequence number of reference device by terminal equipment;
Step 212: terminal equipment judges to treat whether the updateID sequence number of reference device is greater than the updateID sequence number of terminal equipment, if be greater than, performs step 213, otherwise performs step 215;
Step 213: updateID sequence number is greater than terminal equipment and treats that reference device is as reference equipment by terminal equipment;
Step 214: terminal equipment is according to its channel of the channel-changing of reference terminal equipment, according to the PANID of ZigBee-network corresponding to reference terminal equipment, update process is carried out to the network parameter of self again, and switching enters ZigBee-network corresponding to reference terminal equipment, and process ends;
Step 215: terminal equipment keeps its original network parameter constant, and process ends.
Based on same inventive concept, a kind of terminal equipment automatically adding ZigBee-network is additionally provided in the embodiment of the present invention, the principle of dealing with problems due to this terminal equipment and the embodiment of the present invention be a kind of, and automatically to add the method for ZigBee-network similar, therefore the enforcement of this terminal equipment see the enforcement of method, can repeat part and repeats no more.
As shown in Figure 3, be the terminal equipment automatically adding ZigBee-network a kind of in the embodiment of the present invention, this terminal equipment comprises network detection module 301, beacon message acquisition module 302, reference device determination module 303, network handover module 304:
Network detection module 301, for detecting the link interruption between the management node in self and ZigBee-network;
Beacon message acquisition module 302, for broadcast beacon Beacon information acquisition request, receive the Beacon information that the other-end equipment in its range of signal sends according to Beacon information acquisition request, Beacon information comprises the extended network identifier extPANID of ZigBee-network corresponding to terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID;
Reference device determination module 303, for determining that the terminal equipment identical with self extPANID is for treating reference terminal equipment, will treat that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of terminal equipment as reference terminal equipment;
Network handover module 304, for carrying out update process according to the PANID of ZigBee-network corresponding to the reference terminal equipment determined to the network parameter of self, and switches and enters ZigBee-network corresponding to reference terminal equipment.
Wherein, network detection module 301 specifically for: terminal equipment is linked to management node by father node, link-quality indication information between network detection module 301 cycle detection father node and terminal equipment, if the link-quality indication information between terminal equipment and father node is 0, then determine the link interruption between terminal equipment and father node; After determining the link interruption between terminal equipment and father node, cycle sends the information comprising the ID of terminal equipment to management node, if continuous X the cycle does not receive the confirmation that management node sends, then determine the link interruption between terminal equipment and management node; Confirmation is the information that management node generates according to the information comprising the ID of terminal equipment received; Wherein X is positive integer;
If network detection module 301 receives the confirmation that management node sends, then determine that linking between terminal equipment with management node is not interrupted, determine that father node breaks down, determine that terminal equipment does not need to change network parameter.
Linked by father node between terminal equipment with management node, when the link-quality indication information that network detection module 301 is determined between terminal equipment and father node is 0, if network detection module 301 is determined to be linked with management node by other nodes, then determine that father node is abnormal, terminal equipment is still at net, and terminal equipment does not need to change network parameter.Or linked by father node between terminal equipment with management node, communication can be carried out between different terminal equipment in consolidated network, when the link-quality indication information that network detection module 301 is determined between terminal equipment and father node is 0, network detection module 301 notification terminal equipment is linked with management node by other-end equipment, if network detection module 301 determines that terminal equipment can be linked with management node by other-end equipment, then determine that father node is abnormal, terminal equipment is still at net, terminal equipment does not need to change network parameter, the father node of the other-end linking of devices wherein selected is different from the father node that this terminal equipment links.
Beacon message acquisition module 302 specifically for: determine terminal equipment from net after, adopt the channels broadcast beacon Beacon information acquisition request in its current network parameter; Receive the other-end equipment identical with terminal equipment present channel and receive the Beacon information that this beacon Beacon information acquisition request sends, wherein Beacon information comprises the extended network identifier extPANID of a terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID.Extended network identifier extPANID is identifier unique in a ZigBee-network, usually using the extPANID of the MAC Address of each management node as this ZigBee-network; Or using the extPANID of other identification informations of management node as this ZigBee-network; Or name for this ZigBee-network, name name is referred to as the extPANID of this ZigBee-network; The extended network identifier extPANID of each ZigBee-network determines just no longer to change afterwards.PANID is generated by management node when ZigBee-network is set up, and ZigBee-network can detect and avoids the PANID of different ZigBee PAN correspondence repetitions and produce conflict.Before ZigBee-network is set up, management node can scan the PANID in present channel, if PANID is used, then can select another PANID.After ZigBee-network upgrades network parameter, the PANID of ZigBee-network also can change usually thereupon, but current of each ZigBee-network can use a PANID.When the parameter of ZigBee PAN network changes, management node determines the network parameter after changing, and generate update request according to the network parameter after change, management node broadcast update request, after other equipment in network receive update request, automatically carry out network parameter renewal according to the network parameter in update request.Wherein management node is that the update request of each generation generates a sequence number, and the sequencing generated in order to identification renewal request, the update request information sequence number of generation is designated updateID.After other equipment in network receive update request, determine whether to upgrade according to update request according to the updateID of update request, the sequence number of updateID new is under normal circumstances greater than the sequence number of original updateID.
Reference device determination module 303 specifically for: determine in terminal equipment range of signal with the beacon Beacon information of the other-end equipment of its use channel, using the terminal equipment identical with self extPANID as treating reference terminal equipment; If in terminal equipment range of signal with the other-end equipment of its use same channel in do not find and treat reference terminal equipment, then beacon message acquisition module 302 determine in terminal equipment range of signal with the beacon Beacon information of the other-end equipment of its use different channels, reference device determination module 303 using the terminal equipment identical with self extPANID as treating reference terminal equipment.If reference device determination module 303 does not search and treats reference terminal equipment in the scope of its quorum sensing inhibitor, then determine to there is physical fault between this terminal equipment and former ZigBee-network, then terminal equipment keeps original network parameter constant.
Reference device determination module 303 specifically for: obtain in terminal equipment range of signal with the updateID sequence number of the reference terminal equipment for the treatment of of its use same channel, the reference terminal equipment for the treatment of updateID sequence number being greater than the updateID sequence number of terminal equipment is as with reference to terminal equipment; If reference device determination module 303 in terminal equipment range of signal with its use same channel treat do not determine reference terminal equipment in reference terminal equipment, then beacon message acquisition module 302 adopts other channels broadcast beacons Beacon information acquisition request, to receive in its range of signal the Beacon information that all terminal equipments send, reference device determination module 303 using the terminal equipment identical with self extPANID as treating reference terminal equipment; Reference device determination module 303 obtain in terminal equipment range of signal with the updateID sequence number of the reference terminal equipment for the treatment of of its use different channels, the reference terminal equipment for the treatment of updateID sequence number being greater than the updateID sequence number of terminal equipment is as with reference to terminal equipment.
Reference device determination module 303 specifically for: do not find in the range of signal of terminal equipment and identical with self extPANID treat reference terminal equipment; Or the updateID sequence number of the reference terminal equipment for the treatment of in the terminal equipment range of signal determined is not more than the terminal equipment of the updateID sequence number of described terminal equipment; Then determine to there is physical fault between terminal equipment and ZigBee-network, terminal equipment keeps former network parameter constant.
Network handover module 304 specifically for: if reference device determination module 303 determines in terminal equipment range of signal to be reference terminal equipment with the reference terminal equipment for the treatment of of its use same channel, then according to the PANID of ZigBee-network corresponding to reference terminal equipment, update process is carried out to the network parameter of self, switch and enter ZigBee-network corresponding to reference terminal equipment; If reference device determination module 303 determines in terminal equipment range of signal to be reference terminal equipment with the reference terminal equipment for the treatment of of its use different channels, then network handover module 304 is according to the channel-changing terminal equipment channel of reference terminal equipment, according to the PANID of ZigBee-network corresponding to reference terminal equipment, update process is carried out to the network parameter of self again, switch and enter ZigBee-network corresponding to reference terminal equipment.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. automatically add a method for ZigBee-network, it is characterized in that, the method comprises:
Terminal equipment detects the link interruption between the management node in self and ZigBee-network;
Described end-point device broadcast beacon Beacon information acquisition request, receive the Beacon information that the other-end equipment in its range of signal sends according to Beacon information acquisition request, described Beacon information comprises the extended network identifier extPANID of ZigBee-network corresponding to terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID;
Described terminal equipment determines that the terminal equipment identical with self extPANID is for treating reference terminal equipment, treats that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of described terminal equipment as reference terminal equipment using described;
Described terminal equipment carries out update process according to the PANID of ZigBee-network corresponding to the reference terminal equipment determined to the network parameter of self, and switches and enter ZigBee-network corresponding to reference terminal equipment.
2. the method for claim 1, is characterized in that, the beacon Beacon information that described terminal equipment sends according to the other-end equipment in its range of signal received, and determines to treat reference terminal equipment, specifically comprises:
Described terminal equipment is by the channels broadcast beacon Beacon information acquisition request in its current network parameter, receive in its range of signal, the Beacon information of the other-end equipment transmission of same channel, described terminal equipment selects the terminal equipment identical with self extPANID as treating reference terminal equipment.
3. method as claimed in claim 2, is characterized in that, the beacon Beacon information that described terminal equipment sends according to the other-end equipment in its range of signal received is determined to treat reference terminal equipment, specifically comprised:
Described terminal equipment, in its range of signal, does not get the terminal equipment identical with self extPANID in the other-end equipment of same channel; Or, the terminal equipment of the updateID sequence number of described terminal equipment is not more than in its range of signal that described terminal equipment is determined with the updateID sequence number of the reference terminal equipment for the treatment of of its use same channel;
Then described terminal equipment is by other channels broadcast beacons Beacon information acquisition request, receive the Beacon information of all terminal equipment transmissions in its range of signal, described terminal equipment determines that the terminal equipment identical with self extPANID is as treating reference terminal equipment.
4. method as claimed in claim 3, is characterized in that, the beacon Beacon information that described terminal equipment sends according to the other-end equipment in its range of signal received is determined to treat reference terminal equipment, specifically comprised:
Described terminal equipment does not find in its range of signal identical with self extPANID treats reference terminal equipment; Or the updateID sequence number of the reference terminal equipment for the treatment of in its range of signal that described terminal equipment is determined is not more than the terminal equipment of the updateID sequence number of described terminal equipment;
Then determine to there is physical fault between described terminal equipment and ZigBee-network, described terminal equipment keeps former network parameter constant.
5. the method as described in as arbitrary in Claims 1 to 4, is characterized in that, described terminal equipment detects the link interruption between the management node in self and ZigBee-network, specifically comprises:
Described terminal equipment is linked to management node by father node, and described terminal equipment is according to the link interruption between the link quality information determination terminal equipment between the father node detected and terminal equipment and described father node;
After the link interruption between father node determined by described terminal equipment, cycle sends the information comprising the ID of described terminal equipment to described management node, if the continuous X of a described terminal equipment cycle does not receive the confirmation that described management node sends, then determine the link interruption between described terminal equipment and described management node; Described confirmation is the information that management node generates according to the information comprising the ID of terminal equipment received; Wherein X is positive integer.
6. automatically add a terminal equipment for ZigBee-network, it is characterized in that, described terminal equipment comprises:
Network detection module, for detecting the link interruption between the management node in self and ZigBee-network;
Beacon message acquisition module, for broadcast beacon Beacon information acquisition request, receive the Beacon information that the other-end equipment in its range of signal sends according to Beacon information acquisition request, described Beacon information comprises the extended network identifier extPANID of ZigBee-network corresponding to terminal equipment, PAN (Personal Area Network) identifier PANID, update request information updateID;
Reference device determination module, for determining that the terminal equipment identical with self extPANID is for treating reference terminal equipment, treat that in reference terminal equipment, updateID sequence number is greater than the terminal equipment of the updateID sequence number of described terminal equipment as reference terminal equipment using described;
Network handover module, for carrying out update process according to the PANID of ZigBee-network corresponding to the reference terminal equipment determined to the network parameter of self, and switches and enters ZigBee-network corresponding to reference terminal equipment.
7. terminal equipment as claimed in claim 6, is characterized in that, described beacon message acquisition module specifically for:
By the channels broadcast beacon Beacon information acquisition request in described terminal equipment current network parameter, receive in its range of signal, the Beacon information of the other-end equipment transmission of same channel;
Described reference device determination module, specifically for: select the terminal equipment identical with self extPANID as treating reference terminal equipment.
8. terminal equipment as claimed in claim 7, is characterized in that, described beacon message acquisition module specifically for:
In described terminal equipment range of signal, in the other-end equipment of same channel, do not get the terminal equipment identical with self extPANID; Or, be not more than the terminal equipment of the updateID sequence number of described terminal equipment with the updateID sequence number of the reference terminal equipment for the treatment of of its use same channel in the described terminal equipment range of signal determined; Then by other channels broadcast beacons Beacon information acquisition request, receive the Beacon information of all terminal equipment transmissions in its range of signal;
Described reference device determination module, specifically for: determine that the terminal equipment identical with self extPANID is as treating reference terminal equipment.
9. terminal equipment as claimed in claim 8, is characterized in that, described network handover module specifically for:
Do not find in described terminal equipment range of signal and identical with self extPANID treat reference terminal equipment; Or the updateID sequence number of the reference terminal equipment for the treatment of in the described terminal equipment range of signal determined is not more than the terminal equipment of the updateID sequence number of described terminal equipment; Then determine to there is physical fault between described terminal equipment and ZigBee-network, described terminal equipment keeps former network parameter constant.
10. the terminal equipment as described in as arbitrary in claim 6 ~ 9, is characterized in that, described network detection module specifically for:
Management node is linked to, according to the link interruption between the link quality information determination terminal equipment between the father node detected and described terminal equipment and described father node by father node;
After determining the link interruption between father node, cycle sends the information comprising the ID of described terminal equipment to described management node, if the continuous X of a described terminal equipment cycle does not receive the confirmation that described management node sends, then determine the link interruption between described terminal equipment and described management node; Described confirmation is the information that management node generates according to the information comprising the ID of terminal equipment received; Wherein X is positive integer.
CN201410119993.4A 2014-03-27 2014-03-27 A kind of method and terminal device being automatically added to ZigBee-network Active CN104955016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410119993.4A CN104955016B (en) 2014-03-27 2014-03-27 A kind of method and terminal device being automatically added to ZigBee-network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410119993.4A CN104955016B (en) 2014-03-27 2014-03-27 A kind of method and terminal device being automatically added to ZigBee-network

Publications (2)

Publication Number Publication Date
CN104955016A true CN104955016A (en) 2015-09-30
CN104955016B CN104955016B (en) 2018-08-07

Family

ID=54169292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410119993.4A Active CN104955016B (en) 2014-03-27 2014-03-27 A kind of method and terminal device being automatically added to ZigBee-network

Country Status (1)

Country Link
CN (1) CN104955016B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105960027A (en) * 2016-05-05 2016-09-21 四川九洲电器集团有限责任公司 ZigBee network networking method and ZigBee coordinator
CN107148027A (en) * 2017-06-20 2017-09-08 钟小磊 Solve the method and device of ZigBee internetwork communications
CN108064089A (en) * 2017-12-11 2018-05-22 湖北大学 A kind of non-stop layer node Ad Hoc network method based on ZigBee
CN108684030A (en) * 2018-08-30 2018-10-19 新华三技术有限公司 A kind of method and device of detection network identity conflict
CN108770045A (en) * 2018-06-05 2018-11-06 云丁智能科技(北京)有限公司 Method of network entry, relevant device and network system
CN109041152A (en) * 2018-07-13 2018-12-18 青岛海信智慧家居系统股份有限公司 A kind of method and apparatus of network reconfiguration
CN109580217A (en) * 2018-09-27 2019-04-05 中北大学 A kind of fault monitoring method of wind turbine gearbox
CN111542098A (en) * 2020-05-20 2020-08-14 青岛海信智慧家居系统股份有限公司 Communication connection method of ZigBee device and related device
CN111787511A (en) * 2020-07-13 2020-10-16 重庆大学 Zigbee network and node switching method thereof
US11593124B2 (en) 2020-01-14 2023-02-28 The Toronto-Dominion Bank System and method for automated configuration of a computing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114845A (en) * 2006-07-25 2008-01-30 华为技术有限公司 Information transmission method, device and system
CN101895963A (en) * 2010-07-16 2010-11-24 华为技术有限公司 Method and device for network access of equipment in wireless sensor network
CN103139083A (en) * 2011-11-29 2013-06-05 上海贝尔股份有限公司 Multicast method and device wide in sensor network based on network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114845A (en) * 2006-07-25 2008-01-30 华为技术有限公司 Information transmission method, device and system
CN101895963A (en) * 2010-07-16 2010-11-24 华为技术有限公司 Method and device for network access of equipment in wireless sensor network
CN103139083A (en) * 2011-11-29 2013-06-05 上海贝尔股份有限公司 Multicast method and device wide in sensor network based on network

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105960027A (en) * 2016-05-05 2016-09-21 四川九洲电器集团有限责任公司 ZigBee network networking method and ZigBee coordinator
CN107148027A (en) * 2017-06-20 2017-09-08 钟小磊 Solve the method and device of ZigBee internetwork communications
CN108064089A (en) * 2017-12-11 2018-05-22 湖北大学 A kind of non-stop layer node Ad Hoc network method based on ZigBee
CN108064089B (en) * 2017-12-11 2020-05-22 湖北大学 ZigBee-based non-central node ad hoc network method
CN108770045A (en) * 2018-06-05 2018-11-06 云丁智能科技(北京)有限公司 Method of network entry, relevant device and network system
CN109041152A (en) * 2018-07-13 2018-12-18 青岛海信智慧家居系统股份有限公司 A kind of method and apparatus of network reconfiguration
CN108684030B (en) * 2018-08-30 2020-12-11 新华三技术有限公司 Method and device for detecting network identification conflict
CN108684030A (en) * 2018-08-30 2018-10-19 新华三技术有限公司 A kind of method and device of detection network identity conflict
CN109580217A (en) * 2018-09-27 2019-04-05 中北大学 A kind of fault monitoring method of wind turbine gearbox
US11593124B2 (en) 2020-01-14 2023-02-28 The Toronto-Dominion Bank System and method for automated configuration of a computing device
CN111542098A (en) * 2020-05-20 2020-08-14 青岛海信智慧家居系统股份有限公司 Communication connection method of ZigBee device and related device
CN111787511A (en) * 2020-07-13 2020-10-16 重庆大学 Zigbee network and node switching method thereof
CN111787511B (en) * 2020-07-13 2021-09-07 重庆大学 Zigbee network and node switching method thereof

Also Published As

Publication number Publication date
CN104955016B (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN104955016A (en) Method of automatically joining ZigBee network and terminal equipment
CN101286781B (en) Method for terminating connection relation of wireless relay station
JP4690333B2 (en) Method and apparatus for improving handoff between sectors and / or cells in a multi-carrier wireless communication system
CN101287268B (en) Method for updating connection relation of wireless relay station
CN107113681A (en) A kind of signaling optimization method and apparatus
JP5692234B2 (en) Radio base station apparatus, terminal apparatus, radio communication system, and radio communication method in radio base station apparatus
CN101287178A (en) Adaptive management method of wireless transmission network including base stations and wireless relaying stations
CN102870469A (en) Mobile communication terminal and method in mobile communication system
CN101287284A (en) Method for apparatus to join wireless transmission network
CN102986273A (en) Carrier-aggregation-based handover method
KR101518148B1 (en) Cell specifying method, base station, mobile station
CN104080133A (en) Mobility optimization method, user device and access network device
CN105657735A (en) Mobile terminal, network access controller and network switching method and system
CN103209467B (en) Access the method and apparatus of multiple ZigBee-network
RU2675621C2 (en) Fast handover transmission method, fast handover transmission device, service base station and terminal
CN109863779B (en) Method, apparatus, node and system for controlling measurements in a wireless communication network
CN107409334A (en) Terminal, terminal operation method, transmission coordinator unit, base station and the operating method for transmitting coordinator unit
CN104754616A (en) Method, device and system for processing unnecessary switching
US20050148349A1 (en) Cell selection on transitioning from dedicated mode in wireless communications devices
CN102196485B (en) Method and system for reducing unnecessary switching in LTE (Long Term Evolution) system
WO2013067860A1 (en) Mobility management method, system and device
KR20200118602A (en) System and method for establishing route path in a multiple hop newwork
CN111464996B (en) DECT resource coordination method and system based on network
CN106686693B (en) System information transmission method and device
CN104754765A (en) Wireless local area network connection determining method, device and system in heterogeneous network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant