CN109219081B - Network optimization method after ZigBee coordinator is re-networked - Google Patents

Network optimization method after ZigBee coordinator is re-networked Download PDF

Info

Publication number
CN109219081B
CN109219081B CN201811198951.9A CN201811198951A CN109219081B CN 109219081 B CN109219081 B CN 109219081B CN 201811198951 A CN201811198951 A CN 201811198951A CN 109219081 B CN109219081 B CN 109219081B
Authority
CN
China
Prior art keywords
network
zigbee coordinator
coordinator
access request
zigbee
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
Application number
CN201811198951.9A
Other languages
Chinese (zh)
Other versions
CN109219081A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201811198951.9A priority Critical patent/CN109219081B/en
Publication of CN109219081A publication Critical patent/CN109219081A/en
Application granted granted Critical
Publication of CN109219081B publication Critical patent/CN109219081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a network optimization method after a ZigBee coordinator is re-networked, and belongs to the technical field of ZigBee wireless communication. The invention solves the problem that the coordinator which has terminal equipment to access the network can repeatedly send wrong data requests to the ZigBee coordinator due to the network recovery mechanism of a protocol stack after the coordinator is reset and the network is reestablished at present, and the technical scheme is characterized in that: the ZigBee coordinator receives a reset instruction; the ZigBee coordinator broadcasts a sub-device off-network instruction; the ZigBee coordinator clears the network information and resets the re-networking; when the terminal equipment initiates a network re-access request message to the ZigBee coordinator, the ZigBee coordinator judges whether the equipment association table is empty, if so, the ZigBee coordinator does not send a network re-access request response message and sends a plaintext leave command; otherwise, judging whether the equipment association table has equipment initiating the network re-access request message, if not, not sending a network access request response message and sending a plaintext leave command, otherwise, sending the network access request response message to the terminal equipment.

Description

Network optimization method after ZigBee coordinator is re-networked
Technical Field
The invention relates to a ZigBee wireless communication technology, in particular to a technology of a network optimization method after a ZigBee coordinator is re-established with a network.
Background
With the deep development and maturity of internet technology, the coming call of the internet of things era is increasing day by day, and the internet of things is definitely developed as a strategic emerging industry in the national twelve-five planning. Smart homes are more and more common, and smart home products produced by the smart homes are full of precious. With the popularization of consumption concept, the smart home industry will inevitably have explosive growth. The ZigBee specification is already perfect after 20 years of development, and the ZigBee networking technology which has the advantages of low power consumption, large network capacity, ad hoc networking, safety and small time delay is bound to take a very large share in the field of smart home. The stability and reliability of the built ZigBee network are important parts influencing the experience of consumers.
For the coordinator which has terminal equipment to access the network, after the coordinator resets and reestablishes the network, due to the network recovery mechanism of the protocol stack, the following errors occur: firstly, the original network access terminal equipment can initiate a rejoin request to a coordinator which establishes a new network by mistake; secondly, the new network coordinator removes the information of the original network equipment and cannot correctly respond to the rejoin request of the original network-accessing terminal equipment, and the network state judges that a rejoin response is sent out by mistake; thirdly, the network layer key of the newly-built network is different from the original network layer key, so that the terminal cannot correctly analyze the leave command of the coordinator, and therefore the join request or the data request is continuously retransmitted, network congestion is finally caused, and the reliability of the newly-built network is reduced.
Disclosure of Invention
The invention aims to provide a network optimization method after a ZigBee coordinator is re-established, which solves the problem that network congestion is caused because a network recovery mechanism of a protocol stack can repeatedly send wrong data requests to the ZigBee coordinator after the coordinator which has terminal equipment to access the network is reset and re-established at present.
The invention solves the technical problem, and adopts the technical scheme that: the network optimization method after the ZigBee coordinator is re-networked comprises the following steps:
step 1, a ZigBee coordinator receives a reset instruction;
step 2, broadcasting a terminal device off-network instruction by the ZigBee coordinator;
step 3, the ZigBee coordinator clears the network information and resets the reconstructed network;
step 4, when the terminal equipment initiates a network re-access request message to the ZigBee coordinator, the ZigBee coordinator judges whether the equipment association table is empty, if yes, the ZigBee coordinator does not send a network re-access request response message, sends a plaintext leave command, and enters step 6; otherwise, entering step 5;
step 5, judging whether the equipment association table has equipment initiating a network re-access request message, if not, not sending a network access request response message, sending a plaintext leave command, and entering step 6, otherwise, sending a network access request response message to the terminal equipment;
and 6, ending.
Specifically, in step 4, after initiating a network re-entry request message to the ZigBee coordinator, the terminal device receives a network entry request response message, determines whether network re-entry is successful, sets a data request polling cycle if network re-entry is successful, normally initiates data information after the data request polling cycle is successfully set, and if network re-entry is not successful, the terminal device initiates a network re-entry request message to the ZigBee coordinator again until network re-entry is successful.
Furthermore, when the terminal equipment initiates a re-network access request message to the ZigBee coordinator again, the number of times of initiating the re-network access request message to the ZigBee coordinator again is regulated to be at most three times, and when the number of times exceeds three times, alarm information is sent out.
The beneficial effects of the invention are that, by the network optimization method after the ZigBee coordinator is re-established, after the coordinator is re-established and the network is re-established, the coordinator and the terminal can accurately judge the network state of the coordinator and the terminal, prevent the coordinator and the terminal from sending wrong data requests and replies, and effectively reduce invalid data packets in the newly established network, thereby improving the network quality and improving the network stability.
Drawings
Fig. 1 is a flowchart illustrating a process of receiving a rejoin request after a ZigBee coordinator resets a re-network according to an embodiment.
Fig. 2 is a flowchart of rejoin after the terminal is offline in the embodiment.
The method includes the steps that a request message for network re-entry is a re-network-entry request message, a response message for network entry request is a re-network-entry response message, a data request is a data request, a leave is a plaintext, and a poll rate is a network monitoring speed.
Detailed Description
The technical solution of the present invention is described in detail below with reference to the embodiments and the accompanying drawings.
The invention relates to a network optimization method after a ZigBee coordinator is re-networked, which comprises the following steps:
step 1, a ZigBee coordinator receives a reset instruction;
step 2, broadcasting a terminal device off-network instruction by the ZigBee coordinator;
step 3, the ZigBee coordinator clears the network information and resets the reconstructed network;
step 4, when the terminal equipment initiates a network re-access request message to the ZigBee coordinator, the ZigBee coordinator judges whether the equipment association table is empty, if yes, the ZigBee coordinator does not send a network re-access request response message, sends a plaintext leave command, and enters step 6; otherwise, entering step 5;
step 5, judging whether the equipment association table has equipment initiating a network re-access request message, if not, not sending a network access request response message, sending a plaintext leave command, and entering step 6, otherwise, sending a network access request response message to the terminal equipment;
and 6, ending.
In the method, in step 4, after initiating a network re-access request message to the ZigBee coordinator, the terminal device receives a network access request response message, determines whether network re-access is successful, sets a data request polling period if the network re-access is successful, normally initiates data information after the network re-access request message is successfully set, and initiates the network re-access request message to the ZigBee coordinator again if the network re-access is unsuccessful until network re-access is successful.
In practical application, when the terminal equipment initiates a re-network access request message to the ZigBee coordinator again, the number of times of initiating the re-network access request message to the ZigBee coordinator again is regulated to be at most three times, and when the number of times exceeds three times, alarm information is sent out.
Examples
The network optimization method after the ZigBee coordinator is re-networked in the embodiment comprises the following two aspects of optimization:
firstly, a coordinator optimization scheme: the flowchart of the process of receiving the join request after the ZigBee coordinator resets the re-networking is shown in fig. 1.
Wherein, the optimization scheme comprises: initiatively disconnecting the terminal equipment from the network before resetting the coordinator, and reducing the number of original network access equipment initiating a join request after resetting and reestablishing the network by the coordinator; increasing judgment on the state of the self equipment after the coordinator is reset, and preventing the coordinator from responding to a join request initiated by the original network terminal incorrectly after the coordinator is reset; increasing judgment on a network access equipment association table, judging whether the equipment initiating the rejoin request is network access terminal equipment or original network terminal equipment, and not replying the rejoin response to the request of the original network terminal equipment; and fourthly, for the original network terminal equipment which judges the self state wrongly and continuously sends the data request, the coordinator sends the off-network command of the plaintext.
Secondly, a terminal optimization scheme: the process diagram of rejoin after the terminal is offline is shown in fig. 2.
Wherein, the optimization scheme comprises: firstly, judging a starting mode by an optimized terminal, setting the poll rate of the terminal to be longer, reducing the sending frequency of a terminal for sending a join request or a data request, and reducing the occupied time of equipment for a channel; and secondly, state judgment of whether the terminal rejoin succeeds is added, so as to prevent the terminal from initiating an erroneous data request after misjudging the state.
In practical application, the ZigBee coordinator can perform the following settings:
(1) the coordinator actively sends a network quitting command: before the coordinator is reset, the coordinator broadcasts and sends a network quitting command, and the command can quit the non-low-power-consumption equipment. After the above operations are completed, the coordinator resets and re-establishes the network.
(2) Setting a poll rate: and the original network terminal equipment which does not receive the off-network instruction scans the channel after discovering the off-network, sends a join request after discovering the new network of the original coordinator, and sets the poll rate to be longer time, thereby reducing the channel blockage caused by quickly sending the data request.
(3) Traversing the coordinator device association table: after the coordinator reestablishes the network, the original network-accessing device scans a new network and sends a rejoin request, the coordinator traverses the device association table of the coordinator, and if the device is empty or is not found, the device is not replied to a rejoin response.
(4) Sending an off-network instruction in a clear text: and judging the network state of the terminal equipment by mistake, and considering that the terminal equipment which restores the network can continuously retransmit the data request. Because the coordinator and the terminal have different network keys, the two parties cannot successfully communicate, and therefore the original network equipment can be disconnected by sending a network disconnection instruction instead of a plaintext, and the terminal is prevented from repeatedly sending data requests.
(5) And (3) increasing judgment on the network state: after the terminal sends the rejoin request, whether the terminal receives the rejoin response is detected, and whether the terminal recovers the network successfully is judged. If successful, the information is normally sent; if unsuccessful, then the join request is retransmitted, or the sleep state is entered.

Claims (3)

1. The network optimization method after the ZigBee coordinator is re-networked is characterized by comprising the following steps:
step 1, a ZigBee coordinator receives a reset instruction;
step 2, broadcasting a terminal device off-network instruction by the ZigBee coordinator;
step 3, the ZigBee coordinator clears the network information and resets the reconstructed network;
step 4, when the terminal equipment initiates a network re-access request message to the ZigBee coordinator, the ZigBee coordinator judges whether the equipment association table is empty, if yes, the ZigBee coordinator does not send a network re-access request response message, sends a plaintext leave command, and enters step 6; otherwise, entering step 5;
step 5, judging whether the equipment association table has equipment initiating a network re-access request message, if not, not sending a network access request response message, sending a plaintext leave command, and entering step 6, otherwise, sending a network access request response message to the terminal equipment;
and 6, ending.
2. The method for optimizing the network after the ZigBee coordinator is re-networked according to claim 1, wherein in the step 4, after the terminal device initiates a re-networking request message to the ZigBee coordinator, a network access request response message is received, whether re-networking is successful or not is judged, if so, a data request polling period is set, after the setting is successful, data information is normally initiated, and if not, the terminal device initiates a re-networking request message to the ZigBee coordinator again until re-networking is successful.
3. The method for optimizing the network after the ZigBee coordinator is re-networked according to claim 2, wherein when the terminal device initiates a re-networking request message to the ZigBee coordinator again, the number of times of initiating the re-networking request message to the ZigBee coordinator again is specified to be at most three times, and when the number of times exceeds three times, the alarm information is sent out.
CN201811198951.9A 2018-10-15 2018-10-15 Network optimization method after ZigBee coordinator is re-networked Active CN109219081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811198951.9A CN109219081B (en) 2018-10-15 2018-10-15 Network optimization method after ZigBee coordinator is re-networked

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811198951.9A CN109219081B (en) 2018-10-15 2018-10-15 Network optimization method after ZigBee coordinator is re-networked

Publications (2)

Publication Number Publication Date
CN109219081A CN109219081A (en) 2019-01-15
CN109219081B true CN109219081B (en) 2021-06-25

Family

ID=64980106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811198951.9A Active CN109219081B (en) 2018-10-15 2018-10-15 Network optimization method after ZigBee coordinator is re-networked

Country Status (1)

Country Link
CN (1) CN109219081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112865300A (en) * 2020-12-31 2021-05-28 浙江华电器材检测研究所有限公司 ZigBee-based power quality monitoring system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1994693A1 (en) * 2006-03-03 2008-11-26 Koninklijke Philips Electronics N.V. Clear channel reporting and assisting orphaned nodes in a wireless network
CN102340855A (en) * 2011-11-15 2012-02-01 江南大学 Low energy-consumption data acquisition method based on Zigbee wireless sensor network
CN103442370A (en) * 2013-08-27 2013-12-11 西安嵌牛电子科技有限公司 ZigBee networking system and networking method
CN204157061U (en) * 2014-05-08 2015-02-11 福建格通电子信息科技有限公司 A kind of networking control system of ZigBee equipment
CN107872810A (en) * 2017-11-16 2018-04-03 广东创达自动化装备有限公司 A kind of ZigBee intelligent networkings method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101828412B1 (en) * 2011-12-13 2018-02-13 삼성전자주식회사 Communication method, communication apparatus and communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1994693A1 (en) * 2006-03-03 2008-11-26 Koninklijke Philips Electronics N.V. Clear channel reporting and assisting orphaned nodes in a wireless network
CN102340855A (en) * 2011-11-15 2012-02-01 江南大学 Low energy-consumption data acquisition method based on Zigbee wireless sensor network
CN103442370A (en) * 2013-08-27 2013-12-11 西安嵌牛电子科技有限公司 ZigBee networking system and networking method
CN204157061U (en) * 2014-05-08 2015-02-11 福建格通电子信息科技有限公司 A kind of networking control system of ZigBee equipment
CN107872810A (en) * 2017-11-16 2018-04-03 广东创达自动化装备有限公司 A kind of ZigBee intelligent networkings method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ZigBee的无线传感网络中协调器建立新网络的优化改进;卢涛,高骋飞,袁幸杰;《电子科学技术》;20151130;第2卷(第6期);全文 *

Also Published As

Publication number Publication date
CN109219081A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
US10645618B2 (en) Link failure recovery method and apparatus
CN107508714B (en) Method and device for carrying out network configuration on Bluetooth equipment based on Bluetooth mesh
EP3029987B1 (en) Communication mode switching method and device
CN105916100B (en) Method, device and communication system for acting heartbeat packet
CN107567107B (en) Data transmission method and device
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
WO2019196885A1 (en) Beam restoration method and apparatus
JPWO2005114914A1 (en) Wireless LAN device having terminal function, wireless LAN device having base station function, and wireless network provided with this wireless LAN device
CN103516588A (en) Method and system of background processing of client-side
CN102685777A (en) Data concurrent transmission system and method based on jamming margin
CN105376766A (en) Internet-of-things data transmission method
CN109219081B (en) Network optimization method after ZigBee coordinator is re-networked
US11528345B2 (en) Data transmission method and system, and apparatus
CN103516766A (en) Method and system of communication between client-side and application server
US20190174471A1 (en) Signal Transmission Mode Switching Method, Base Station, and Terminal Device
US11917543B2 (en) Bluetooth-based data transmission method and data receiving method, communicating apparatus and computer storage medium
CN114125052B (en) Target operation execution method and device, storage medium and electronic device
CN107889189B (en) Beacon frame sending method and device
CN103812618A (en) Grouped data transmission method for wireless trunked communication system
CN113746217A (en) Wireless equipment matching communication method and system based on trend judgment and electronic equipment
CN107846403B (en) Method and system for communication between SIM card and application server
CN113938348A (en) Wireless communication method and communication system based on LoRa technology
CN114143904A (en) CPE management method based on 5G fusion network shunt
CN104038955A (en) Fault detection and processing method in mobile communication system, and base station
CN107547315A (en) A kind of method and apparatus for optimizing data communication

Legal Events

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