A method and system for fast identification of zigbee devices
By introducing a fast network access process and encryption protocol, the problems of long network access time and poor stability of Zigbee devices have been solved, realizing a fast and secure network access method that is suitable for devices with multiple endpoints and multiple cluster attributes and is compatible with traditional devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-04
- Publication Date
- 2026-05-29
AI Technical Summary
The existing Zigbee device network access process is time-consuming and unstable, especially in the case of multiple endpoints and multiple clusters, which affects the user experience and is prone to failure due to communication interference or device failure.
A fast network access process is introduced, in which fast network access data is pre-stored through Zigbee devices. After the gateway detects the data, it directly parses the cluster attribute information and switches to the normal network access process when necessary. Combined with encryption protocols, data security is ensured.
Significantly shortens network access time, improves stability, is suitable for multi-endpoint and multi-cluster attribute devices, is compatible with traditional devices, and ensures the continuity and security of the network access process.
Smart Images

Figure CN122120758A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Zigbee communication technology, and in particular to a method and system for rapid identification and network access of Zigbee devices. Background Technology
[0002] Zigbee technology, as a low-power, low-data-rate, short-range wireless communication technology, is widely used in smart homes, industrial control, and the Internet of Things (IoT). In a Zigbee smart home system, Zigbee devices need to successfully connect to the network before they can communicate with other devices in the home network, such as gateways and mobile apps, to achieve functions such as remote control and status feedback.
[0003] In existing technologies, Zigbee devices typically use a standard network entry process to complete the network entry operation. This standard network entry process includes: after the network entry request begins, the device first sends an announcement message and TransportKey information to the gateway. The gateway uses this information to identify the device's network entry status, such as new entry, re-entry, or exit. Subsequently, the node device network entry stage begins, where the gateway obtains the device's node descriptor, endpoint (ep) list, and simple descriptors containing input and output cluster information for each endpoint through the coordinator. Finally, the logical device network entry stage begins, where the gateway reads the clusters and corresponding attributes within each endpoint one by one. Only after all attributes of all clusters have been read is the device considered to have successfully entered the network.
[0004] However, the above-mentioned ordinary network access process has obvious drawbacks: on the one hand, reading the cluster attributes of each endpoint one by one is time-consuming, especially when the Zigbee device contains multiple endpoints and each endpoint corresponds to multiple clusters and attributes, the network access process will take up a lot of time and seriously affect the user experience; on the other hand, if one or more attributes cannot be read due to communication interference, equipment failure or other reasons, it will cause the entire network access process to stagnate or become abnormal, which will not only further prolong the network access time, but may even cause the network access to fail, resulting in poor stability.
[0005] Therefore, optimizing the network access process for Zigbee devices, shortening the network access time, and improving network access stability have become urgent technical problems to be solved in this field. Summary of the Invention
[0006] In view of this, in order to overcome the problems of long time and poor stability of the ordinary network access process of Zigbee devices in the prior art, the purpose of this invention is to provide a fast identification and network access method and system for Zigbee devices. By introducing a fast network access process and realizing flexible switching between the ordinary network access process and the fast network access process, the network access time is greatly shortened and the network access stability is improved.
[0007] This invention is achieved using the following technical solution:
[0008] In a first aspect, the present invention provides a method for rapid identification and network access of Zigbee devices, involving interactive entities including a mobile APP, a server, a Zigbee device, a gateway, and a gateway coordinator connected to the gateway, the method comprising the following steps: S1: The Zigbee device is placed in the network access state. The mobile APP sends a request to add the Zigbee device to the server through the cloud. The server forwards the add request to the gateway. S2: After receiving the add request, the gateway sends a device search and network access trigger message to the gateway coordinator, causing the gateway coordinator to enter the Zigbee device signal receiving state; S3: The Zigbee device initiates the network access process, sending announcement information and TransportKey information to the gateway coordinator. The gateway coordinator feeds back the information to the gateway, and the gateway identifies the network access status of the Zigbee device based on the received information. S4: The gateway controls the gateway coordinator to obtain the node descriptor, endpoint list, and simple descriptor of each endpoint of the Zigbee device, wherein the simple descriptor contains cluster information of input endpoints and output endpoints; S5: During the network access process, the gateway detects in real time whether it receives fast network access data sent by the Zigbee device; wherein, the fast network access data is pre-stored by the Zigbee device and contains all clusters corresponding to each endpoint of the Zigbee device and all attribute information of each cluster; S6: If the gateway does not receive the fast network access data within a preset time, it controls the Zigbee device to continue to perform the normal network access process, that is, the gateway coordinator reads the attributes of all clusters in each endpoint of the Zigbee device one by one. After all attributes are read, the Zigbee device completes the network access. S7: If the gateway receives the fast network access data, it triggers a process switch and controls the Zigbee device to switch from the normal network access process to the fast network access process; the gateway parses the received fast network access data, extracts the cluster information corresponding to each endpoint of the Zigbee device and the attribute information of each cluster, and stores the parsed cluster attribute information in the local database; S8: Based on the stored cluster attribute information, the gateway initiates the logical device network access process. When reading the attributes of each endpoint cluster through the gateway coordinator, a verification operation is performed on each attribute to be read: if the information of the attribute to be read already exists in the local database, the reading operation of the attribute is skipped; if the information of the attribute to be read does not exist in the local database, the attribute is read from the Zigbee device through the gateway coordinator. S9: After all the attributes that need to be read have been processed, it is determined that the Zigbee device has successfully joined the network. The gateway will then send the network access success information back to the mobile APP via the server and the cloud.
[0009] As a further aspect of the present invention, in step S3, the Zigbee device initiates the normal network access process by default; in step S5, after initiating the normal network access process, the Zigbee device begins to periodically broadcast and send the fast network access data.
[0010] As a further aspect of the present invention, in step S5, the fast network access data is encrypted by the Zigbee device using a preset encryption protocol before being sent; after receiving the fast network access data, the gateway decrypts it using a decryption protocol corresponding to the encryption protocol before parsing it.
[0011] As a further aspect of the present invention, the encryption protocol is the Advanced Encryption Standard (AES) protocol.
[0012] As a further aspect of the present invention, in step S7, after the gateway parses the fast network access data, it further includes a verification step: if the verification finds that the parsed cluster attribute information is missing or abnormal, it sends a retransmission request to the Zigbee device to request the retransmission of the missing or abnormal cluster attribute information.
[0013] As a further aspect of the present invention, if the gateway still cannot obtain complete and valid cluster attribute information after sending a retransmission request, it controls the Zigbee device to automatically switch from the fast network access process back to the normal network access process and continues to execute step S6.
[0014] As a further aspect of the present invention, in step S8, when skipping the read operation of the stored attribute, the gateway also performs a recording step: recording the name of the skipped attribute and its corresponding endpoint information and cluster information, generating a skip record and synchronizing it to the server for backup.
[0015] As a further aspect of the present invention, the method further includes step S10: the gateway synchronizes the skip record to the server for backup.
[0016] As a further aspect of the present invention, in step S9, after determining that the Zigbee device has successfully joined the network, the gateway will also synchronize the complete network joining information of the Zigbee device to the server. The complete network joining information includes at least the device identifier, the network joining time, and the final list of cluster attribute information.
[0017] Secondly, the present invention also provides a fast identification and network access system for Zigbee devices, used to implement the above-mentioned fast identification and network access method for Zigbee devices. The fast identification and network access system includes: a mobile APP, a server, Zigbee devices, a gateway, and a gateway coordinator. The mobile app is used to send a request to the cloud to add a Zigbee device, receive feedback information on successful network access, and display the network access result. The server is used to forward communication data between the mobile APP and the gateway, and to back up network access related information from the gateway. The Zigbee device includes a built-in storage module and a communication module. The storage module is used to pre-store fast network access data and encryption keys. The communication module is used to send network access related information and the fast network access data according to a preset protocol, and supports switching between the normal network access process and the fast network access process. The gateway coordinator is used to relay communication between the gateway and the Zigbee device, and to feed back the information sent by the gateway and the Zigbee device to the gateway, while executing the attribute reading instructions issued by the gateway. The gateway is communicatively connected to the server and the gateway coordinator, and is used to coordinate and control the entire network access process, including: receiving device addition requests forwarded by the server, identifying the network access status of Zigbee devices, detecting and parsing and storing fast network access data, controlling the switching of the network access process and device attribute reading operations, and reporting the network access results to the server.
[0018] As a further aspect of the present invention, the gateway further includes: The parsing module is used to parse the fast network access data and various network access information from the Zigbee device; The storage module is used to store the cluster attribute information parsed by the parsing module; The verification module is used to verify whether the device attributes to be read have been stored in the storage module during the logical device network access process, so as to decide whether to skip or perform the read operation.
[0019] Compared with existing technologies, the present invention provides a method and system for rapid identification and network access of Zigbee devices, which has the following advantages: 1. Significantly reduced network access time: This invention introduces a fast network access process. After the gateway receives the fast network access data sent by the Zigbee device, it can directly parse and store the cluster attribute information of each endpoint. In the subsequent attribute reading stage, the stored attributes are skipped, and there is no need to read all attributes one by one. This significantly reduces the time spent on attribute reading, and is especially suitable for Zigbee devices with multiple endpoints and multiple cluster attributes, which greatly improves the user experience.
[0020] 2. Improve network access stability: In the ordinary network access process, the failure to read a single attribute will affect the entire network access process. However, in this invention, on the one hand, the reading of stored attributes is skipped, reducing the probability of reading failure; on the other hand, if there are some missing data in the fast network access data, it is only necessary to re-transmit or read the missing attributes, without having to re-execute the entire process. Moreover, if the re-transmission fails, it can switch back to the ordinary network access process, ensuring the continuity and stability of the network access process.
[0021] 3. Strong compatibility: This invention adopts the mode of "default normal network access + on-demand switching fast network access", which does not completely abandon the normal network access process. It supports both new Zigbee devices with fast network access data reporting function and traditional Zigbee devices that do not support this function, and has a wide range of applications.
[0022] 4. Data transmission security: By using encryption protocols to transmit data for rapid network access, the system effectively prevents data from being tampered with or stolen during transmission, thus ensuring the security of the home network.
[0023] These or other aspects of the invention will become more apparent from the following description of embodiments. It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the accompanying drawings used in the description of the exemplary embodiments or related technologies will be briefly introduced below. The drawings are used to provide a further understanding of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the present invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart illustrating the rapid identification and network access method for Zigbee devices in an embodiment of the present invention.
[0025] Figure 2 This is a structural block diagram of the Zigbee device rapid identification and network access system in an embodiment of the present invention.
[0026] Figure reference numerals: 1-Mobile APP, 2-Cloud, 3-Server, 4-Gateway, 5-Gateway Coordinator, 6-Zigbee Device, 41-Resolution Module, 42-Storage Module, 43-Verification Module, 61-Storage Module, 62-Communication Module. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0028] In some of the processes described in the specification, claims, and accompanying drawings of this invention, multiple operations appearing in a specific order are included. However, it should be clearly understood that these operations may not be executed in the order they appear herein, or may be executed in parallel. The operation numbers, such as 101, 102, etc., are merely used to distinguish different operations and do not represent any execution order. Furthermore, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions such as "first," "second," etc., in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to different types.
[0029] The technical solutions in the exemplary embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described exemplary embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0030] See Figure 1 As shown in the figure, an embodiment of the present invention provides a method for rapid identification and network access of Zigbee devices. The interactive entities involved include a mobile APP, a server, a Zigbee device, a gateway, and a gateway coordinator connected to the gateway. The method includes the following steps: S1: The Zigbee device is placed in the network access state. The mobile APP sends a request to add the Zigbee device to the server through the cloud. The server forwards the add request to the gateway.
[0031] In this step, the user operates the mobile app to initiate a request to add a Zigbee device. This request is sent to the server via the cloud. Here, the mobile app and the cloud communicate using the HTTPS protocol to ensure the secure transmission of request information.
[0032] S2: After receiving the add request, the gateway sends a device search and network access trigger message to the gateway coordinator, causing the gateway coordinator to enter the Zigbee device signal receiving state.
[0033] In this step, after receiving the add request, the server performs a validity check on the request, such as checking whether the user account is logged in and whether it has the permission to add the device. After the verification is successful, the request is forwarded to the gateway of the corresponding home network. The gateway and the server communicate using the MQTT protocol to adapt to the low power consumption and low speed communication requirements of IoT devices.
[0034] After receiving the add request, the gateway sends a device search command and a network access trigger signal to the gateway coordinator. After receiving the signal, the gateway coordinator switches to the Zigbee communication frequency band, such as 2.4GHz, and enters the device information receiving state.
[0035] S3: The Zigbee device initiates the network access process, sending announcement information and TransportKey information to the gateway coordinator. The gateway coordinator feeds back the information to the gateway, and the gateway identifies the network access status of the Zigbee device based on the received information.
[0036] In this step, the Zigbee device initiates the normal network access process by default.
[0037] Users can put Zigbee devices (such as Zigbee smart switches) into network access mode, for example, by pressing and holding the device's reset button for 3 seconds. Then, the device will start the normal network access process by default, broadcasting an announcement message and transportKey information to the gateway coordinator. After receiving the information, the gateway coordinator will package it and send it back to the gateway. The gateway will parse the transportKey information and identify the device as a newly accessed device.
[0038] S4: The gateway controls the gateway coordinator to obtain the node descriptor, endpoint list, and simple descriptor of each endpoint of the Zigbee device, wherein the simple descriptor contains cluster information of input endpoints and output endpoints.
[0039] In this step, the gateway sends a command to the gateway coordinator to obtain basic device information. The gateway coordinator establishes a temporary communication link with the Zigbee device and sequentially obtains the device's node descriptor (including device model, manufacturer information, etc.), endpoint list (this smart switch contains 2 endpoints, corresponding to the switch control function and status feedback function respectively), and simple descriptors of each endpoint (e.g., the input cluster of endpoint 1 is 0x0006 and the output cluster is 0x0001; the input cluster of endpoint 2 is 0x000A and the output cluster is 0x0019).
[0040] S5: During the network access process, the gateway detects in real time whether it receives fast network access data sent by the Zigbee device; wherein, the fast network access data is pre-stored by the Zigbee device and contains all clusters corresponding to each endpoint of the Zigbee device and all attribute information of each cluster.
[0041] In this step, after initiating the normal network access process, the Zigbee device begins periodically broadcasting the fast network access data. This fast network access data is encrypted by the Zigbee device using a preset encryption protocol before being sent. Upon receiving the fast network access data, the gateway decrypts it using a decryption protocol corresponding to the encryption protocol before parsing it. The encryption protocol is the Advanced Encryption Standard (AES) protocol.
[0042] While acquiring basic information, the Zigbee device's built-in communication module broadcasts fast network access data according to a preset period, such as once every second. This fast network access data is pre-stored in the storage module when the device leaves the factory and contains all clusters and attribute information corresponding to the two endpoints. For example, cluster 0x0006 of endpoint 1 corresponds to attributes 0x0000 (switch status) and 0x0001 (switch mode); cluster 0x000A of endpoint 2 corresponds to attributes 0x0000 (voltage value) and 0x0001 (current value), and the data is encrypted using AES-128.
[0043] S6: If the gateway does not receive the fast network access data within a preset time, it controls the Zigbee device to continue to execute the normal network access process, that is, the gateway coordinator reads the attributes of all clusters in each endpoint of the Zigbee device one by one. After all attributes are read, the Zigbee device completes the network access.
[0044] S7: If the gateway receives the fast network access data, it triggers a process switch and controls the Zigbee device to switch from the normal network access process to the fast network access process; the gateway parses the received fast network access data, extracts the cluster information corresponding to each endpoint of the Zigbee device and the attribute information of each cluster, and stores the parsed cluster attribute information in the local database.
[0045] In this step, after parsing the fast network access data, the gateway also includes a verification step: if the verification finds that the parsed cluster attribute information is missing or abnormal, it sends a retransmission request to the Zigbee device to request the retransmission of the missing or abnormal cluster attribute information. If the gateway still cannot obtain complete and valid cluster attribute information after sending the retransmission request, it controls the Zigbee device to automatically switch from the fast network access process back to the normal network access process, and continues to execute step S6.
[0046] After receiving the fast network access data, the gateway uses a preset key to decrypt it through its built-in parsing module, successfully parsing all cluster attribute information and storing the information in a local storage module, such as a Flash memory. At the same time, it sends a process switching confirmation signal to the Zigbee device. After receiving the signal, the device stops the subsequent operations of the normal network access process and switches to the fast network access process.
[0047] S8: Based on the stored cluster attribute information, the gateway initiates the logical device network access process. When reading the attributes of each endpoint cluster through the gateway coordinator, a verification operation is performed on each attribute to be read: if the information of the attribute to be read already exists in the local database, the reading operation of the attribute is skipped; if the information of the attribute to be read does not exist in the local database, the attribute is read from the Zigbee device through the gateway coordinator.
[0048] In this step, when skipping the read operation of the stored attribute, the gateway also performs a recording step: recording the name of the skipped attribute and its corresponding endpoint information and cluster information, generating a skip record and synchronizing it to the server for backup.
[0049] For example, the gateway initiates the logical device network access process, sending an attribute read command to the gateway coordinator. The command contains a list of attributes to be read. The gateway coordinator initiates attribute read requests sequentially according to the list, while the gateway's built-in verification module verifies in real time whether the attributes to be read have been stored. When reading attribute 0x0000 of cluster 0x0006 of endpoint 1, if the verification module detects that the attribute has been stored and parsed from the fast network access data, it will skip the reading operation and record the skip information of the attribute.
[0050] When reading attribute 0x0002 (power value) of cluster 0x000A at endpoint 2, the verification module detects that the attribute information is not in the local storage. The gateway coordinator then sends a read request to the Zigbee device and successfully obtains the value of the attribute, such as 5W.
[0051] S9: After all the attributes that need to be read have been processed, it is determined that the Zigbee device has successfully joined the network. The gateway will then send the network access success information back to the mobile APP via the server and the cloud.
[0052] In this step, after determining that the Zigbee device has successfully joined the network, the gateway will also synchronize the complete network joining information of the Zigbee device to the server. The complete network joining information includes at least the device identifier, the network joining time, and the final list of cluster attribute information.
[0053] The information for successful network access includes the device's unique identifier, network access time, and complete information on the attributes of each endpoint cluster. The network access result is synchronized to the server for backup, and simultaneously fed back to the mobile APP through the server and cloud. The APP interface displays "Device added successfully" and updates the home device list. Users can remotely control the Zigbee smart switch through the APP.
[0054] If the Zigbee device in this embodiment does not support fast network access data reporting, such as a traditional Zigbee sensor, the gateway will never receive fast network access data. The device will continue to execute the normal network access process. The gateway will read all cluster attributes one by one through the gateway coordinator. After all attributes are read, the network access will be completed.
[0055] In an embodiment of the present invention, the method further includes step S10: the gateway synchronizes the skip record to the server for backup.
[0056] The fast network access method for Zigbee devices in this invention can solve the problems of long processing time and poor stability in the ordinary network access process of Zigbee devices in the prior art. By introducing a fast network access process and realizing flexible switching between the ordinary network access process and the fast network access process, when the gateway receives the fast network access data sent by the Zigbee device, it can directly parse and store the attribute information of each endpoint cluster. In the subsequent attribute reading stage, the stored attributes are skipped, and there is no need to read all attributes one by one, which significantly reduces the time spent on attribute reading. It is especially suitable for Zigbee devices with multiple endpoints and multiple cluster attributes, which greatly improves the user experience, significantly shortens the network access time, and improves the stability of network access.
[0057] Moreover, in the normal network access process, the failure to read a single attribute will affect the entire network access process. However, in this embodiment of the invention, on the one hand, the reading of the stored attributes is skipped, which reduces the probability of reading failure; on the other hand, if there are some missing data in the fast network access data, it is only necessary to re-transmit or read the missing attributes, without having to re-execute the entire process. Furthermore, if the re-transmission fails, it can switch back to the normal network access process, thus ensuring the continuity and stability of the network access process.
[0058] This invention adopts a mode that combines default normal network access with on-demand fast network access, without completely abandoning the normal network access process. It supports both new Zigbee devices with fast network access data reporting function and traditional Zigbee devices that do not support this function, making it widely applicable. By using an encrypted protocol to transmit fast network access data, it effectively prevents data from being tampered with or stolen during transmission, thus ensuring the security of home networks.
[0059] It should be understood that although the above description follows a certain order, these steps are not necessarily executed in that order. Unless otherwise expressly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, some steps in this embodiment may include multiple steps or multiple stages, which are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed alternately or in turn with other steps or at least a portion of the steps or stages in other steps.
[0060] See Figure 2 As shown in the figure, an embodiment of the present invention also provides a fast identification and network access system for Zigbee devices. The fast identification and network access system includes: a mobile APP, a cloud, a server, a gateway, a gateway coordinator, and a Zigbee device. The mobile APP is connected to the cloud for communication, the cloud is connected to the server for communication, the server is connected to the gateway for communication, the gateway is connected to the gateway coordinator through a UART interface, and the gateway coordinator is connected to the Zigbee device through Zigbee wireless communication.
[0061] The mobile app is used to send a request to the cloud to add a Zigbee device, receive feedback information on successful network access, and display the network access result. The server is used to forward communication data between the mobile APP and the gateway, and to back up network access related information from the gateway. The Zigbee device includes a built-in storage module and a communication module. The storage module is used to pre-store fast network access data and encryption keys. The communication module is used to send network access related information and the fast network access data according to a preset protocol, and supports switching between the normal network access process and the fast network access process. The gateway coordinator is used to relay communication between the gateway and the Zigbee device, and to feed back the information sent by the gateway and the Zigbee device to the gateway, while executing the attribute reading instructions issued by the gateway. The gateway is communicatively connected to the server and the gateway coordinator, and is used to coordinate and control the entire network access process, including: receiving device addition requests forwarded by the server, identifying the network access status of Zigbee devices, detecting and parsing and storing fast network access data, controlling the switching of the network access process and device attribute reading operations, and reporting the network access results to the server.
[0062] In this embodiment, the Zigbee device has a built-in storage module and a communication module. The storage module stores fast network access data, encryption keys, and basic device information. The communication module uses a CC2530 chip, supports the Zigbee 3.0 protocol, and is used to send various network access information and receive gateway commands. The gateway has a built-in parsing module, a storage module, and a verification module. The parsing module uses an STM32F103 chip to parse encrypted data and device information. The storage module is a 16GB Flash memory. The verification module is integrated into the parsing module for fast verification of attribute information. The gateway coordinator uses a CC2531 chip and acts as the coordinator of the Zigbee network, realizing communication relay between the gateway and the Zigbee device.
[0063] The working process of this system is the same as that of the above-described method embodiments, and will not be repeated here.
[0064] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for rapid identification and network access of Zigbee devices, involving interactive entities including a mobile APP, a server, Zigbee devices, a gateway, and a gateway coordinator connected to the gateway, characterized in that, The method includes the following steps: S1: The Zigbee device is placed in the network access state. The mobile APP sends a request to add the Zigbee device to the server through the cloud. The server forwards the add request to the gateway. S2: After receiving the add request, the gateway sends a device search and network access trigger message to the gateway coordinator, causing the gateway coordinator to enter the Zigbee device signal receiving state; S3: The Zigbee device initiates the network access process, sending announcement information and TransportKey information to the gateway coordinator. The gateway coordinator feeds back the information to the gateway, and the gateway identifies the network access status of the Zigbee device based on the received information. S4: The gateway controls the gateway coordinator to obtain the node descriptor, endpoint list, and simple descriptor of each endpoint of the Zigbee device, wherein the simple descriptor contains cluster information of input endpoints and output endpoints; S5: During the network access process, the gateway detects in real time whether it receives fast network access data sent by the Zigbee device; wherein, the fast network access data is pre-stored by the Zigbee device and contains all clusters corresponding to each endpoint of the Zigbee device and all attribute information of each cluster; S6: If the gateway does not receive the fast network access data within a preset time, it controls the Zigbee device to continue to perform the normal network access process, that is, the gateway coordinator reads the attributes of all clusters in each endpoint of the Zigbee device one by one. After all attributes are read, the Zigbee device completes the network access. S7: If the gateway receives the fast network access data, it triggers a process switch and controls the Zigbee device to switch from the normal network access process to the fast network access process; the gateway parses the received fast network access data, extracts the cluster information corresponding to each endpoint of the Zigbee device and the attribute information of each cluster, and stores the parsed cluster attribute information in the local database; S8: Based on the stored cluster attribute information, the gateway initiates the logical device network access process. When reading the attributes of each endpoint cluster through the gateway coordinator, a verification operation is performed on each attribute to be read: if the information of the attribute to be read already exists in the local database, the reading operation of the attribute is skipped; if the information of the attribute to be read does not exist in the local database, the attribute is read from the Zigbee device through the gateway coordinator. S9: After all the attributes that need to be read have been processed, it is determined that the Zigbee device has successfully joined the network. The gateway will then send the network access success information back to the mobile APP via the server and the cloud.
2. The method for rapid identification and network access of Zigbee devices as described in claim 1, characterized in that, If a sensitive entity is present, in step S3, the Zigbee device will initiate the normal network access process by default; in step S5, after initiating the normal network access process, the Zigbee device will begin to periodically broadcast and send the fast network access data.
3. The method for rapid identification and network access of Zigbee devices as described in claim 2, characterized in that, In step S5, the fast network access data is encrypted by the Zigbee device using a preset encryption protocol before being sent. After receiving the fast network access data, the gateway decrypts it using a decryption protocol corresponding to the encryption protocol before parsing it.
4. The method for rapid identification and network access of Zigbee devices as described in claim 3, characterized in that, The encryption protocol is the Advanced Encryption Standard (AES) protocol.
5. The method for rapid identification and network access of Zigbee devices as described in claim 1, characterized in that, In step S7, after the gateway parses the fast network access data, it also... The verification step includes: if the verification finds that the parsed cluster attribute information is missing or abnormal, a retransmission request is sent to the Zigbee device to request the retransmission of the missing or abnormal cluster attribute information.
6. The method for rapid identification and network access of Zigbee devices as described in claim 5, characterized in that, If the gateway still cannot obtain complete and valid cluster attribute information after sending a retransmission request, it controls the Zigbee device to automatically switch from the fast network access process back to the normal network access process and continues to execute step S6.
7. The method for rapid identification and network access of Zigbee devices as described in claim 1, characterized in that, In step S8, when skipping the read operation of the stored attribute, the gateway also performs a recording step: recording the name of the skipped attribute and its corresponding endpoint information and cluster information, generating a skip record and synchronizing it to the server for backup.
8. The method for rapid identification and network access of Zigbee devices as described in claim 1, characterized in that, In step S9, after determining that the Zigbee device has successfully joined the network, the gateway will also synchronize the complete network joining information of the Zigbee device to the server. The complete network joining information includes at least the device identifier, the network joining time, and the final list of cluster attribute information.
9. A rapid identification and network access system for Zigbee devices, characterized in that, The system is used to perform the fast identification and network access method for Zigbee devices as described in any one of claims 1-8. The fast identification and network access system includes: a mobile APP, a server, a Zigbee device, a gateway, and a gateway coordinator. The mobile app is used to send a request to the cloud to add a Zigbee device, receive feedback information on successful network access, and display the network access result. The server is used to forward communication data between the mobile APP and the gateway, and to back up network access related information from the gateway. The Zigbee device includes a built-in storage module and a communication module. The storage module is used to pre-store fast network access data and encryption keys. The communication module is used to send network access related information and the fast network access data according to a preset protocol, and supports switching between the normal network access process and the fast network access process. The gateway coordinator is used to relay communication between the gateway and the Zigbee device, and to feed back the information sent by the gateway and the Zigbee device to the gateway, while executing the attribute reading instructions issued by the gateway. The gateway is communicatively connected to the server and the gateway coordinator, and is used to coordinate and control the entire network access process, including: receiving device addition requests forwarded by the server, identifying the network access status of Zigbee devices, detecting and parsing and storing fast network access data, controlling the switching of the network access process and device attribute reading operations, and reporting the network access results to the server.
10. The rapid identification and network access system for Zigbee devices as described in claim 9, characterized in that, The gateway also includes: The parsing module is used to parse the fast network access data and various network access information from the Zigbee device; The storage module is used to store the cluster attribute information parsed by the parsing module; The verification module is used to verify whether the device attributes to be read have been stored in the storage module during the logical device network access process, so as to decide whether to skip or perform the read operation.