CN111083702A - ZigBee equipment management method and device for smart home - Google Patents
ZigBee equipment management method and device for smart home Download PDFInfo
- Publication number
- CN111083702A CN111083702A CN201911141382.9A CN201911141382A CN111083702A CN 111083702 A CN111083702 A CN 111083702A CN 201911141382 A CN201911141382 A CN 201911141382A CN 111083702 A CN111083702 A CN 111083702A
- Authority
- CN
- China
- Prior art keywords
- zigbee
- time
- gateway
- zigbee gateway
- information
- 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.)
- Pending
Links
- 238000007726 management method Methods 0.000 title claims abstract description 12
- 238000004891 communication Methods 0.000 claims abstract description 47
- 230000004044 response Effects 0.000 claims abstract description 35
- 238000000034 method Methods 0.000 claims description 22
- 238000003860 storage Methods 0.000 claims description 4
- 230000007246 mechanism Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 230000006399 behavior Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005304 joining Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/40—Connection management for selective distribution or broadcast
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication 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 discloses a ZigBee device management method and a ZigBee device management device for smart home, wherein the ZigBee device scans beacons of a ZigBee gateway on a plurality of preset priority communication channels, acquires device information of the ZigBee gateway, sends an association request command to the ZigBee gateway according to the device information of the ZigBee gateway, confirms that connection with the ZigBee gateway is established after response information sent by the ZigBee gateway is received, and stores a short address and an extended address in the response information. Because the beacon is broadcast on the preset priority communication channels by the specified ZigBee gateway, the scanning network access speed of the ZigBee device can be increased, the response speed of communication between the gateway and the device is increased through a white list mechanism, and the power consumption of the system is reduced.
Description
Technical Field
The embodiment of the invention relates to the technical field of smart home, in particular to a ZigBee equipment management method and a ZigBee equipment management device for smart home.
Background
At present, in order to reduce power consumption and facilitate networking, the intelligent home field mostly adopts a ZigBee wireless communication protocol, ZigBee is a wireless network communication protocol with short distance, low power consumption and low speed, the working frequency is 2.4G, the transmission rate is about 100Kbps, and in the ZigBee network, each device can be divided into according to function roles: a coordinator (gateway), a repeater (heavy current terminal device), and a terminal device (sensor terminal device). Each ZigBee network only allows a ZigBee coordinator, the coordinator selects a channel and a network identification (PAN ID) to establish the communication network, the coordinator is the beginning of the whole network, has the highest authority of the network, is a maintainer of the whole network, and stores network, equipment related information and a binding relation list and a routing list for indirect addressing; the repeater not only can be used as terminal equipment, but also has the function of repeating and forwarding, and can expand network coverage; the terminal device generally refers to a sensor device powered by a battery, such as an intelligent door lock, a door and window magnetic sensor, a smoke sensor, and the like. The household appliances mainly refer to white electricity appliances only.
In the whole ZigBee network communication, the behaviors of the ZigBee gateway and the equipment mainly comprise: (1) accessing the network by the equipment (the equipment is added into the ZigBee network established by the gateway); (2) equipment reconnection (particularly, the equipment is added into a network of a gateway, but the equipment or the gateway is powered off and powered on again or the network signal is not good due to the external environment, so that the equipment or the gateway and the gateway need to be connected again and the like); (3) a device heartbeat reporting mechanism (the latest state that the device reports to the gateway device regularly), and the like. However, in the existing ZigBee standard protocol, no matter ZHA (ZigBee protocol Version1.2) or ZigBee 3.0(ZigBee protocol Version 3.0) is only necessary to define these interaction behaviors, and the specific implementation manner of these interaction behaviors is not further defined; in addition, the implementation modes or contents of various ZigBee wireless systems in the current market for the behaviors are also very different and uneven; meanwhile, the hostile behavior between the gateway and the equipment can prolong the response time (mainly referring to the equipment state or the time for establishing connection) of the system without reason, increase the power consumption of the system and seriously affect the user experience of the smart home.
Disclosure of Invention
The embodiment of the invention provides a ZigBee device management method and a ZigBee device management device for smart home, which are used for optimizing the network access behavior between a ZigBee gateway and a device, accelerating the response speed of communication between the gateway and the device and reducing the power consumption of a system.
In a first aspect, an embodiment of the present invention provides a method for managing ZigBee devices in a smart home, including:
the method comprises the steps that ZigBee equipment scans beacons of a ZigBee gateway on a plurality of preset priority communication channels and obtains equipment information of the ZigBee gateway;
the ZigBee device sends an association request command to the ZigBee gateway according to the device information of the ZigBee gateway;
and the ZigBee device confirms that the ZigBee gateway establishes connection with the ZigBee gateway after confirming that the response information sent by the ZigBee gateway is received, and stores the short address and the extended address in the response information, wherein the response information is sent by the ZigBee gateway after confirming that the ZigBee device is positioned in a white list allowing the device to access.
According to the technical scheme, because the beacon is broadcast on the preset priority communication channels by the specified ZigBee gateway, the scanning network access speed of the ZigBee device can be increased, the response speed of communication between the gateway and the device is increased through a white list mechanism, and the power consumption of the system is further reduced.
Optionally, the method further includes:
if the ZigBee device does not scan the beacons of the ZigBee gateway on the preset priority communication channels, continuing to scan the communication channels except the preset priority communication channels until the beacons of the ZigBee gateway are scanned.
Optionally, after the ZigBee device confirms that the connection with the ZigBee gateway is established, the method further includes:
when the ZigBee device is confirmed to be disconnected from the ZigBee gateway, a reconnection request is sent to the ZigBee gateway at intervals of a first time threshold value within a first time;
if the ZigBee device is not successfully reconnected with the ZigBee gateway within the first time, sending a reconnection request to the ZigBee gateway at intervals of a second time threshold from the first time to a second time;
if the ZigBee device is not successfully reconnected with the ZigBee gateway within the time from the first time to the second time, if the time is greater than the second time, a reconnection request is sent to the ZigBee gateway at intervals of a third time threshold until the ZigBee device is successfully reconnected with the ZigBee gateway;
wherein the first time is less than the second time and less than the third time, and the first time interval is less than the second time interval and less than the third time interval.
Optionally, after the ZigBee device confirms that the connection with the ZigBee gateway is established, the method further includes:
the ZigBee equipment sends heartbeat information to the ZigBee gateway according to a preset time interval and a randomness principle; the preset time interval is configured for the ZigBee device by the ZigBee gateway;
the heartbeat information includes state information or signal strength of the ZigBee device.
In a second aspect, an embodiment of the present invention provides an apparatus for managing ZigBee devices in a smart home, including:
the scanning unit is used for scanning beacons of the ZigBee gateways on a plurality of preset priority communication channels and acquiring equipment information of the ZigBee gateways;
the transmitting unit is used for transmitting an association request command to the ZigBee gateway according to the equipment information of the ZigBee gateway;
and the processing unit is used for confirming that the ZigBee gateway establishes connection with the ZigBee gateway after confirming that the response information sent by the ZigBee gateway is received, and storing the short address and the extended address in the response information, wherein the response information is sent by the ZigBee gateway after confirming that the ZigBee device is positioned in a white list allowing the device to access.
Optionally, the scanning unit is further configured to:
if the beacons of the ZigBee gateway are not scanned on the preset priority communication channels, continuing to scan the communication channels except the preset priority communication channels until the beacons of the ZigBee gateway are scanned.
Optionally, the processing unit is further configured to:
after connection with the ZigBee gateway is confirmed, when disconnection with the ZigBee gateway is confirmed, a reconnection request is sent to the ZigBee gateway at intervals of a first time threshold value within a first time;
if the ZigBee gateway is not reconnected successfully in the first time, a reconnection request is sent to the ZigBee gateway at an interval of a second time threshold value from the first time to a second time;
if the reconnection with the ZigBee gateway is not successful within the first time to the second time, if the reconnection is more than the second time, sending a reconnection request to the ZigBee gateway at intervals of a third time threshold until the reconnection with the ZigBee gateway is successful;
wherein the first time is less than the second time and less than the third time, and the first time interval is less than the second time interval and less than the third time interval.
Optionally, the processing unit is further configured to:
after the connection with the ZigBee gateway is confirmed, heartbeat information is sent to the ZigBee gateway according to a preset time interval and a randomness principle; the preset time interval is configured for the ZigBee device by the ZigBee gateway;
the heartbeat information includes state information or signal strength of the ZigBee device.
In a third aspect, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the ZigBee device management method of the smart home according to the obtained program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the method for managing the ZigBee device of the smart home.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for managing ZigBee devices of a smart home according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for managing ZigBee equipment of a smart home according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 exemplarily shows a system architecture to which an embodiment of the present invention is applicable, and the system architecture may include a terminal device 100, a cloud server 200, a gateway 300, and a smart device 400.
The terminal device 100 is provided with an intelligent home APP for managing the gateway 300 and the intelligent device 400 that can be controlled by the gateway 300. The terminal device 100 can communicate with the cloud server 200 via the internet.
The cloud server 200 is configured to store data required by the terminal device 100 and the gateway 300, and may perform registration authentication on device information of the smart device 400.
The gateway 300 may communicate with the cloud server 200 through a router or a switch, so as to download corresponding control data on the cloud server 200, create a ZigBee network, facilitate access by the smart device 400, and control over the smart device 400.
The smart device 400 may be a ZigBee device having a ZigBee protocol function, which may access the ZigBee network of the gateway 300.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 shows in detail a flow of a method for managing a ZigBee device of a smart home according to an embodiment of the present invention, where the flow may be executed by a device for managing a ZigBee device of a smart home, and the device may be located in the smart device 400 shown in fig. 1, or may be the smart device 400.
As shown in fig. 2, the process specifically includes:
Since the ZigBee device can actively scan for the ZigBee gateways of the surrounding networks, if the beacon is detected within the scanning period, the relevant information of the ZigBee gateways is obtained, and then a connection request is sent to the ZigBee gateways, wherein the scanning sequence is from a low channel to a high channel (from 11 channels to 26 channels) or from the high channel to the low channel (from 26 channels to 11 channels in turn); the device scans once, if no corresponding network is detected, after a period of time, the device node initiates scanning channel again, the time for scanning a single channel is about 1s, so that a scanning period is about 15s, if the gateway channel is at 26 channels and the device starts scanning from 11 channels, the period of time for scanning the gateway channel is longer than 15s in the optical channel scanning period, and the first scanning is not performed.
Therefore, the ZigBee device in the embodiment of the present invention may scan beacons of the ZigBee gateway on a plurality of preset priority communication channels, where the plurality of preset priority communication channels may be set empirically, and when establishing a channel corresponding to the ZigBee gateway, the plurality of preset priority communication channels are preferentially established, for example, 11,15,20,25 communication channels may be preferentially established. Only when the signal quality of the channels is all bad, the communication channels are established by the rest channels according to the sequence of small to large. Therefore, when the ZigBee device scans the communication channels, the plurality of preset priority communication channels are also scanned preferentially, and when the ZigBee device does not scan the beacons of the ZigBee gateway on the plurality of preset priority communication channels, the ZigBee device will not scan the communication channels (from small to large or from large to small) other than the plurality of preset priority communication channels until the beacons of the ZigBee gateway are scanned.
The device information of the ZigBee gateway may be related information of the ZigBee gateway, for example, information such as a SSID of the ZigBee network and an address of the ZigBee gateway.
Step 202, the ZigBee device sends an association request command to the ZigBee gateway according to the device information of the ZigBee gateway.
After the beacon of the ZigBee gateway is scanned, an association request command can be sent to the ZigBee gateway so that the ZigBee gateway replies response information. Generally, after receiving the association request command, the ZigBee gateway immediately replies an acknowledgement frame (ACK), and simultaneously sends connection indication information to its upper layer, indicating that the connection request of the networking device node has been received. But this does not mean that the ZigBee gateway and the ZigBee device have established a connection, but only means that the ZigBee gateway has received a connection request from the ZigBee device. After receiving the connection indication information, the upper layer of the ZigBee gateway determines whether to agree with the joining request of the ZigBee device according to the resource condition (storage space and energy) of the upper layer, and then sends response information to the ZigBee device. If the ZigBee gateway agrees, the ZigBee gateway allocates a short address of 16 bits to the ZigBee device and generates a response message containing a new address and a connection success state.
However, the waiting time is long, and in order to increase the response speed of the ZigBee gateway, the ZigBee gateway in the embodiment of the present invention may determine that the ZigBee device is located in the local white list allowing the device to access after receiving the association request command, and directly send response information to the ZigBee device if the ZigBee device is located in the white list allowing the device to access.
By setting the white list, the response speed of the ZigBee gateway can be improved, and the communication speed between the ZigBee gateway and the ZigBee device is increased.
And 203, after confirming that the response information sent by the ZigBee gateway is received, the ZigBee device confirms that the ZigBee gateway is connected with the ZigBee gateway, and stores the short address and the extended address in the response information.
In an embodiment of the present invention, the response information may include a short address and an extended address. That is, the ZigBee gateway will assign a short address of 16 bits to the ZigBee device, and a corresponding extended address.
And after receiving the ZigBee gateway response information, the ZigBee device immediately replies an acknowledgement frame (Ack) to the ZigBee gateway and stores the short address and the extended address of the ZigBee gateway.
Optionally, the embodiment of the present invention further optimizes a reconnection mechanism of the ZigBee device, specifically:
reconnection of ZigBee devices generally has the following situations:
1. if the ZigBee device is a battery-type power supply device (mainly a sensor-type device or an intelligent door lock) and frequently scans a channel, the ZigBee device can quickly exhaust electric energy;
2. the ZigBee equipment is powered off, the ZigBee gateway is powered off, the ZigBee equipment can actively send a reconnection request to the ZigBee gateway when being powered on, and the ZigBee equipment and the ZigBee gateway can quickly establish communication connection;
3. due to poor surrounding network signals or large surrounding environment interference, the ZigBee gateway and the ZigBee device are frequently disconnected, at this time, the ZigBee device can be frequently in an active reconnection request sending state, and if the ZigBee device is a battery type power supply device (mainly including a sensor type device or an intelligent door lock) and frequently scans a channel, the ZigBee device can also quickly exhaust electric energy.
Based on the above description, the reconnection mechanism for the ZigBee device provided in the embodiment of the present invention specifically includes:
and when the ZigBee device is disconnected from the ZigBee gateway, a reconnection request is sent to the ZigBee gateway at intervals of a first time threshold value in a first moment.
And if the ZigBee device is not successfully reconnected with the ZigBee gateway within the first time, sending a reconnection request to the ZigBee gateway at intervals of a second time threshold from the first time to a second time.
If the ZigBee device is not successfully reconnected with the ZigBee gateway within the first time to the second time, if the connection time is greater than the second time, a reconnection request is sent to the ZigBee gateway at intervals of a third time threshold until the ZigBee device is successfully reconnected with the ZigBee gateway.
The first time is smaller than the second time and smaller than the third time, and the first time interval is smaller than the second time interval and smaller than the third time interval. The first time, the second time, the third time, the first time interval, the second time interval, and the third time interval may be set empirically.
It should be noted that, in the above reconnection process, reconnection needs to be performed immediately after any alarm or manual key pressing and re-power-on triggering of the ZigBee device.
Through the reconnection mechanism, the ZigBee equipment can be successfully reconnected in the shortest time, and the power consumption of the whole machine can be reduced as much as possible.
In order to better improve the communication efficiency between the ZigBee device and the ZigBee gateway, an embodiment of the present invention further provides a heartbeat mechanism, and specifically, the ZigBee device may send heartbeat information to the ZigBee gateway according to a preset time interval and following a randomness principle.
The preset time interval is configured for the ZigBee device by the ZigBee gateway, and the heartbeat information may include state information or signal strength of the ZigBee device.
For example, the following heartbeat mechanism may be set in the implementation process:
a) heartbeat default periods of 180s for heartbeat sensors of ZigBee devices and door lock devices (mainly battery devices), and 60s for strong electric devices (mainly 220V power supply devices);
b) the heartbeat cycles of all ZigBee devices support the configuration of the ZigBee gateway, for example, after the intelligent door lock is connected to the network, the heartbeat of the intelligent door lock is defaulted to 180s, and if a user needs to enhance standby time, the updated heartbeat cycle of the door lock can be 600s or longer through the ZigBee gateway according to the requirements of the user. The heartbeat cycles of all ZigBee devices support user customization;
c) the heartbeat periodic reporting of the ZigBee equipment needs to follow a random principle, for example, the heartbeat period is changed to 200s, the ZigBee equipment needs to report according to a random time interval in each (200-10s, 200+10s) interval, so that the problems that if the number of the ZigBee equipment in a network is too large, the network coverage is too large and the packet loss rate is increased due to reporting of the heartbeat period at the same time are mainly solved;
d) the heartbeat information content of the ZigBee device is defined as follows: (1) the states of the ZigBee devices are required to be included and are sequentially reported according to the increasing sequence of the nodes (for example, four-way node switches are required to periodically report according to one-way states, two-way states, three-way states, four-way states, device signal intensity and one-way states … …); (2) if some ZigBee devices do not have states, such as a scene switch, the heartbeat information content of the ZigBee device is the signal intensity of the ZigBee device; (3) the ZigBee device is powered on or is successfully accessed to the network, the states of all the nodes need to be reported in sequence so as to ensure that the ZigBee gateway can timely acquire the states of all the nodes of the ZigBee device, and if the ZigBee device does not have the states, the signal strength of the ZigBee device is reported.
The above embodiment shows that the ZigBee device scans beacons of the ZigBee gateway on a plurality of preset priority communication channels, acquires device information of the ZigBee gateway, sends an association request command to the ZigBee gateway according to the device information of the ZigBee gateway, confirms that connection with the ZigBee gateway is established after receiving response information sent by the ZigBee gateway, and stores a short address and an extended address in the response message, where the response information is sent by the ZigBee gateway after confirming that the ZigBee device is in a white list allowing access of the device. Because the beacon is broadcast on the preset priority communication channels by the specified ZigBee gateway, the scanning network access speed of the ZigBee device can be increased, the response speed of communication between the gateway and the device is increased through a white list mechanism, and the power consumption of the system is reduced.
Based on the same technical concept, fig. 3 exemplarily shows a structure of an apparatus for managing a ZigBee device of a smart home according to an embodiment of the present invention, where the apparatus may execute a process of managing a ZigBee device of a smart home, and the apparatus may be located in the smart device 400 shown in fig. 1, or may be the smart device 400.
As shown in fig. 3, the apparatus specifically includes:
the scanning unit 301 is configured to scan beacons of a ZigBee gateway on a plurality of preset priority communication channels, and acquire device information of the ZigBee gateway;
a sending unit 302, configured to send an association request command to the ZigBee gateway according to the device information of the ZigBee gateway;
the processing unit 303 is configured to, after receiving a response message sent by the ZigBee gateway, confirm that a connection is established with the ZigBee gateway, and store a short address and an extended address in the response message, where the response message is sent by the ZigBee gateway after confirming that the ZigBee device is in a white list allowing devices to access.
Optionally, the scanning unit 301 is further configured to:
if the beacons of the ZigBee gateway are not scanned on the preset priority communication channels, continuing to scan the communication channels except the preset priority communication channels until the beacons of the ZigBee gateway are scanned.
Optionally, the processing unit 303 is further configured to:
after connection with the ZigBee gateway is confirmed, when disconnection with the ZigBee gateway is confirmed, a reconnection request is sent to the ZigBee gateway at intervals of a first time threshold value within a first time;
if the ZigBee gateway is not reconnected successfully in the first time, a reconnection request is sent to the ZigBee gateway at an interval of a second time threshold value from the first time to a second time;
if the reconnection with the ZigBee gateway is not successful within the first time to the second time, if the reconnection is more than the second time, sending a reconnection request to the ZigBee gateway at intervals of a third time threshold until the reconnection with the ZigBee gateway is successful;
wherein the first time is less than the second time and less than the third time, and the first time interval is less than the second time interval and less than the third time interval.
Optionally, the processing unit 303 is further configured to:
after the connection with the ZigBee gateway is confirmed, heartbeat information is sent to the ZigBee gateway according to a preset time interval and a randomness principle; the preset time interval is configured for the ZigBee device by the ZigBee gateway;
the heartbeat information includes state information or signal strength of the ZigBee device.
Based on the same technical concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the ZigBee device management method of the smart home according to the obtained program.
Based on the same technical concept, the embodiment of the invention also provides a computer-readable non-volatile storage medium, which comprises computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the method for managing the ZigBee device of the smart home.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A ZigBee device management method for smart home is characterized by comprising the following steps:
the method comprises the steps that ZigBee equipment scans beacons of a ZigBee gateway on a plurality of preset priority communication channels and obtains equipment information of the ZigBee gateway;
the ZigBee device sends an association request command to the ZigBee gateway according to the device information of the ZigBee gateway;
and the ZigBee device confirms that the ZigBee gateway establishes connection with the ZigBee gateway after confirming that the response information sent by the ZigBee gateway is received, and stores the short address and the extended address in the response information, wherein the response information is sent by the ZigBee gateway after confirming that the ZigBee device is positioned in a white list allowing the device to access.
2. The method of claim 1, wherein the method further comprises:
if the ZigBee device does not scan the beacons of the ZigBee gateway on the preset priority communication channels, continuing to scan the communication channels except the preset priority communication channels until the beacons of the ZigBee gateway are scanned.
3. The method of claim 1, after the ZigBee device confirms establishment of a connection with the ZigBee gateway, further comprising:
when the ZigBee device is confirmed to be disconnected from the ZigBee gateway, a reconnection request is sent to the ZigBee gateway at intervals of a first time threshold value within a first time;
if the ZigBee device is not successfully reconnected with the ZigBee gateway within the first time, sending a reconnection request to the ZigBee gateway at intervals of a second time threshold from the first time to a second time;
if the ZigBee device is not successfully reconnected with the ZigBee gateway within the time from the first time to the second time, if the time is greater than the second time, a reconnection request is sent to the ZigBee gateway at intervals of a third time threshold until the ZigBee device is successfully reconnected with the ZigBee gateway;
wherein the first time is less than the second time and less than the third time, and the first time interval is less than the second time interval and less than the third time interval.
4. The method of any of claims 1 to 3, further comprising, after the ZigBee device confirms establishment of a connection with the ZigBee gateway:
the ZigBee equipment sends heartbeat information to the ZigBee gateway according to a preset time interval and a randomness principle; the preset time interval is configured for the ZigBee device by the ZigBee gateway;
the heartbeat information includes state information or signal strength of the ZigBee device.
5. The utility model provides a device of zigBee equipment management of intelligence house which characterized in that includes:
the scanning unit is used for scanning beacons of the ZigBee gateways on a plurality of preset priority communication channels and acquiring equipment information of the ZigBee gateways;
the transmitting unit is used for transmitting an association request command to the ZigBee gateway according to the equipment information of the ZigBee gateway;
and the processing unit is used for confirming that the ZigBee gateway establishes connection with the ZigBee gateway after confirming that the response information sent by the ZigBee gateway is received, and storing the short address and the extended address in the response information, wherein the response information is sent by the ZigBee gateway after confirming that the ZigBee device is positioned in a white list allowing the device to access.
6. The apparatus of claim 5, wherein the scanning unit is further to:
if the beacons of the ZigBee gateway are not scanned on the preset priority communication channels, continuing to scan the communication channels except the preset priority communication channels until the beacons of the ZigBee gateway are scanned.
7. The apparatus as recited in claim 5, said processing unit to further:
after connection with the ZigBee gateway is confirmed, when disconnection with the ZigBee gateway is confirmed, a reconnection request is sent to the ZigBee gateway at intervals of a first time threshold value within a first time;
if the ZigBee gateway is not reconnected successfully in the first time, a reconnection request is sent to the ZigBee gateway at an interval of a second time threshold value from the first time to a second time;
if the reconnection with the ZigBee gateway is not successful within the first time to the second time, if the reconnection is more than the second time, sending a reconnection request to the ZigBee gateway at intervals of a third time threshold until the reconnection with the ZigBee gateway is successful;
wherein the first time is less than the second time and less than the third time, and the first time interval is less than the second time interval and less than the third time interval.
8. The apparatus of any of claims 5 to 7, wherein the processing unit is further to:
after the connection with the ZigBee gateway is confirmed, heartbeat information is sent to the ZigBee gateway according to a preset time interval and a randomness principle; the preset time interval is configured for the ZigBee device by the ZigBee gateway;
the heartbeat information includes state information or signal strength of the ZigBee device.
9. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 4 in accordance with the obtained program.
10. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911141382.9A CN111083702A (en) | 2019-11-20 | 2019-11-20 | ZigBee equipment management method and device for smart home |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911141382.9A CN111083702A (en) | 2019-11-20 | 2019-11-20 | ZigBee equipment management method and device for smart home |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111083702A true CN111083702A (en) | 2020-04-28 |
Family
ID=70311329
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911141382.9A Pending CN111083702A (en) | 2019-11-20 | 2019-11-20 | ZigBee equipment management method and device for smart home |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111083702A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111865654A (en) * | 2020-06-04 | 2020-10-30 | 青岛海信智慧家居系统股份有限公司 | Gateway configuration method and device |
CN112087786A (en) * | 2020-09-18 | 2020-12-15 | 四川长虹电器股份有限公司 | Method for maintaining communication by switching channels through ZigBee routing nodes |
CN113596794A (en) * | 2021-07-22 | 2021-11-02 | 杭州萤石软件有限公司 | Channel selection method, device, system and storage medium |
CN114126000A (en) * | 2021-12-07 | 2022-03-01 | 施耐德电气(中国)有限公司 | Networking method and device for intelligent equipment |
CN114585052A (en) * | 2020-12-01 | 2022-06-03 | 深圳绿米联创科技有限公司 | Networking method, networking device, networking gateway and storage medium based on LoRa |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064625A (en) * | 2006-04-27 | 2007-10-31 | 中兴通讯股份有限公司 | Method for managing user side equipment through network address translation gateway |
US20130149966A1 (en) * | 2011-12-13 | 2013-06-13 | Samsung Electronics Co., Ltd. | Communication method, apparatus, and system |
CN104703182A (en) * | 2015-02-13 | 2015-06-10 | 深圳市睿祺智尚科技有限公司 | Zigbee-based networking method and network system |
CN106304141A (en) * | 2015-06-10 | 2017-01-04 | 美的集团股份有限公司 | Networking management method based on ZigBee-network and system |
CN109286593A (en) * | 2017-07-19 | 2019-01-29 | 腾讯科技(深圳)有限公司 | Transmit method and device, computer equipment and the storage medium of reconnection |
CN110278577A (en) * | 2019-06-05 | 2019-09-24 | 青岛海信智慧家居系统股份有限公司 | The sending control method and device of data |
-
2019
- 2019-11-20 CN CN201911141382.9A patent/CN111083702A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064625A (en) * | 2006-04-27 | 2007-10-31 | 中兴通讯股份有限公司 | Method for managing user side equipment through network address translation gateway |
US20130149966A1 (en) * | 2011-12-13 | 2013-06-13 | Samsung Electronics Co., Ltd. | Communication method, apparatus, and system |
CN104703182A (en) * | 2015-02-13 | 2015-06-10 | 深圳市睿祺智尚科技有限公司 | Zigbee-based networking method and network system |
CN106304141A (en) * | 2015-06-10 | 2017-01-04 | 美的集团股份有限公司 | Networking management method based on ZigBee-network and system |
CN109286593A (en) * | 2017-07-19 | 2019-01-29 | 腾讯科技(深圳)有限公司 | Transmit method and device, computer equipment and the storage medium of reconnection |
CN110278577A (en) * | 2019-06-05 | 2019-09-24 | 青岛海信智慧家居系统股份有限公司 | The sending control method and device of data |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111865654A (en) * | 2020-06-04 | 2020-10-30 | 青岛海信智慧家居系统股份有限公司 | Gateway configuration method and device |
CN111865654B (en) * | 2020-06-04 | 2023-05-16 | 青岛海信智慧生活科技股份有限公司 | Gateway configuration method and device |
CN112087786A (en) * | 2020-09-18 | 2020-12-15 | 四川长虹电器股份有限公司 | Method for maintaining communication by switching channels through ZigBee routing nodes |
CN112087786B (en) * | 2020-09-18 | 2022-02-01 | 四川长虹电器股份有限公司 | Method for maintaining communication by switching channels through ZigBee routing nodes |
CN114585052A (en) * | 2020-12-01 | 2022-06-03 | 深圳绿米联创科技有限公司 | Networking method, networking device, networking gateway and storage medium based on LoRa |
CN114585052B (en) * | 2020-12-01 | 2024-05-07 | 深圳绿米联创科技有限公司 | LoRa-based networking method, device, gateway and storage medium |
CN113596794A (en) * | 2021-07-22 | 2021-11-02 | 杭州萤石软件有限公司 | Channel selection method, device, system and storage medium |
CN113596794B (en) * | 2021-07-22 | 2023-07-14 | 杭州萤石软件有限公司 | Channel selection method, device, system and storage medium |
CN114126000A (en) * | 2021-12-07 | 2022-03-01 | 施耐德电气(中国)有限公司 | Networking method and device for intelligent equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111083702A (en) | ZigBee equipment management method and device for smart home | |
CN111726769B (en) | Communication system, method and device for miniature intelligent sensor | |
US9445355B2 (en) | Multi-interface terminal, and neighbor topology discovery and cooperative communication method therefore | |
CN111031565B (en) | Method and device for identifying off-line state of ZigBee device | |
CN102752040B (en) | Hybrid networking and communication method based on wireless and power line carrier | |
JP6637198B2 (en) | Technology for assigning short addresses to network devices | |
CN110177097B (en) | Data transmission method, device and system | |
CN112543466A (en) | Role self-election method and device | |
CN113747478A (en) | Communication method and device | |
CN112671904A (en) | Method and device for transmitting equipment state information, storage medium and electronic device | |
CN113938355A (en) | Data transmission method, system and storage medium | |
CN105451208A (en) | Method and apparatus for achieving device to device (D2D) discovery | |
JP2010050743A (en) | Wireless communication device and control method thereof | |
CN114585052A (en) | Networking method, networking device, networking gateway and storage medium based on LoRa | |
KR101677524B1 (en) | Method, base station, and network system for automatic x2 configuration deletion | |
CN109076426A (en) | A kind of method, base station and the terminal device of switching signal transmission mode | |
JP2018117393A (en) | Gateway device, communication system, power saving control method, and power saving control program | |
CN105472770A (en) | Optimizing method of air interface long connection, equipment and system | |
CN212366921U (en) | Station house monitoring edge agent device based on 5G communication | |
CN102802236B (en) | Method for scanning wireless network, and device for realizing thereof | |
CN105703989A (en) | Internet-of-things system with frequency-division time-shared management means | |
Salehi et al. | Mobile cloud management: A new framework | |
US9736753B2 (en) | Control apparatus and communication control method | |
CN103686666A (en) | Method and device for adjacent region configuration | |
CN113162987A (en) | Method for synchronizing equipment states and public capacity component |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200428 |