ZigBee network access processing method, device, equipment and system
Through the ZigBee gateway device automatically identifying and processing network access requests, the problem of cumbersome and low efficiency of ZigBee network access methods in the prior art is solved, and efficient automatic network access and simplified maintenance of smart home devices is realized.
Patent Information
- Application Number
- CN202111253949.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-10-27
AI Technical Summary
The access method of the existing ZigBee network is cumbersome, time-consuming and labor-intensive, has low network access efficiency, and is complex in the later maintenance, making it difficult to meet the needs of large-scale smart home devices.
The ZigBee gateway device receives network access requests from multiple devices, determines the target device with network access permission, and performs network access processing when the preset conditions are met, so that the target device automatically joins the network, and avoids users manually scanning and accessing one by one.
It realizes automatic network access processing of batch equipment, improves network access efficiency, simplifies operations, reduces the complexity of subsequent maintenance, and is suitable for network access of large-scale smart home devices.
Smart Images

Figure CN114007276B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless network technology, and in particular to a method, device, equipment and system for processing network access in a ZigBee network. Background Art
[0002] With the continuous development of Internet of Things technology and the continuous improvement of people's living standards, smart home devices are entering every household more and more widely. In order to realize the intelligent control of smart home devices, it is usually necessary to connect each smart home device to a wireless network, such as a ZigBee network. The current way for a whole set of smart home devices to access the ZigBee network is usually for users to scan the QR code on each smart home device one by one through their terminal devices, thereby manually connecting each smart home device to the ZigBee network one by one. However, for large-scale smart home devices, such as when there are dozens or even more smart home devices, the access method of the ZigBee network not only has high requirements for users and is difficult for ordinary users to complete, but also has problems such as cumbersome operation, time-consuming and labor-intensive, low network access efficiency, and high complexity of later maintenance. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, equipment and system for processing access to a ZigBee network, so as to solve the problems existing in the access method of the existing ZigBee network, such as cumbersome operation, time-consuming and labor-intensive, low network access efficiency, and high complexity of subsequent maintenance.
[0004] To solve the above technical problems, the embodiments of the present application are implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for processing network access to a ZigBee network, which is applied to a ZigBee gateway device, and the method includes:
[0006] Receive ZigBee network access requests sent by multiple ZigBee devices to be connected to the network;
[0007] Determine, according to the network access request, a target ZigBee device among the multiple ZigBee devices that has network access authority to the ZigBee network;
[0008] If it is determined that the preset network access condition is met, network access processing is performed on the target ZigBee device so that the target ZigBee device joins the ZigBee network.
[0009] In a second aspect, an embodiment of the present application provides a ZigBee network access processing device, which is applied to a ZigBee gateway device, and the device includes:
[0010] A receiver, used for receiving a ZigBee network access request sent by a plurality of ZigBee devices to be connected to the network;
[0011] The processor is used to determine a target ZigBee device having network access rights of the ZigBee network among the multiple ZigBee devices according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network.
[0012] In a third aspect, an embodiment of the present application provides a network access processing system for a ZigBee network, including: a ZigBee gateway device and a plurality of ZigBee devices;
[0013] The ZigBee device sends a request for accessing the ZigBee network to the ZigBee gateway device according to its own device information;
[0014] The ZigBee gateway device receives the network access request and determines a target ZigBee device among the multiple ZigBee devices that has network access rights to the ZigBee network according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network.
[0015] In a fourth aspect, an embodiment of the present application provides a network access processing device for a ZigBee network, comprising: a processor, and a memory electrically connected to the processor. The memory stores a computer program, and the processor is used to call and execute the computer program from the memory to implement the steps of the method provided in the first aspect above.
[0016] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect are implemented.
[0017] In the embodiment of the present application, the ZigBee gateway device receives the network access request of the ZigBee network sent by multiple ZigBee devices to be connected to the network; determines the target ZigBee device with the network access permission of the ZigBee network among the multiple ZigBee devices according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network. Thus, the network access processing of each target ZigBee device with network access permission is completed through the communication and interaction between the ZigBee gateway device and multiple ZigBee devices, without the need for the user to scan the ZigBee devices one by one to manually connect each ZigBee device to the ZigBee network; not only the automatic network access processing of batch ZigBee devices is realized, and the network access efficiency of ZigBee devices is improved; but also the operation is simple and convenient, saving time and effort, and reducing the complexity of subsequent maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 A schematic diagram of a first flow chart of a method for processing network access to a ZigBee network provided in an embodiment of this specification;
[0020] Figure 2 A second flow chart of a method for processing network access to a ZigBee network provided in an embodiment of this specification;
[0021] Figure 3 A third flow chart of a method for processing network access to a ZigBee network provided in an embodiment of this specification;
[0022] Figure 4 A fourth flow chart of a method for processing network access to a ZigBee network provided in an embodiment of this specification;
[0023] Figure 5 A fifth flow chart of a method for processing network access to a ZigBee network provided in an embodiment of this specification;
[0024] Figure 6 A sixth flow chart of a method for processing network access to a ZigBee network provided in an embodiment of this specification;
[0025] Figure 7A seventh flow chart of a method for processing network access to a ZigBee network provided in an embodiment of this specification;
[0026] Figure 8 A schematic diagram of the module composition of a ZigBee network access processing device provided in an embodiment of this specification;
[0027] Fig. 9 A schematic diagram of a first composition of a ZigBee network access processing system provided in an embodiment of this specification;
[0028] Fig.10 A second schematic diagram of the composition of a ZigBee network access processing system provided in an embodiment of this specification;
[0029] Fig.11 A schematic diagram of the composition of a ZigBee network access processing device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0031] Figure 1 A schematic diagram of a method for processing a ZigBee network access is provided for one or more embodiments of this specification, and is applied to a ZigBee gateway device, see Figure 1 , the method may include the following steps:
[0032] Step 102, receiving a ZigBee network access request sent by a plurality of ZigBee devices to be connected to the network;
[0033] The network access processing method of the ZigBee network provided in the embodiments of this specification can be applied to the network access scenario of a whole set of smart home devices, that is, the multiple ZigBee devices to be networked can be multiple smart home devices. Specifically, after the user (such as the staff who installs the smart home device or the owner of the smart home device) installs the ZigBee gateway device and each ZigBee device to the corresponding position at the installation site (such as a home, an office, etc.), the ZigBee gateway device and each ZigBee device are powered on. After the ZigBee gateway device is powered on, the network parameters of the ZigBee network to be created are determined, and the ZigBee network is created according to the determined network parameters. After the ZigBee device is powered on, it scans the various networks in the environment, and determines the ZigBee network to be joined from the scanned networks according to the preset network parameters, that is, the ZigBee network created by the ZigBee gateway device. The ZigBee device sends a network access request for the ZigBee network to the ZigBee gateway device according to its own device information, and the ZigBee gateway device receives the network access request sent by each ZigBee device. When the ZigBee gateway device receives the network access request, it can also send request response data to the corresponding ZigBee device to establish an association with the ZigBee device at the physical layer. The network parameters may include the channel information of the configured channel, the network identifier (PANID) of the ZigBee network, etc. The same network parameters may be preset in each device when the ZigBee gateway device and the ZigBee device leave the factory. The device information may include the 64-bit EUI (64-bit Extended Unique Identifier) address of the ZigBee device, the device serial number, etc. The EUI address may also be called a MAC address, a long address, etc.
[0034] Furthermore, in order to ensure safety, when installing the ZigBee gateway device and each ZigBee device at the installation site, the power switch at the installation site is usually turned off to make each device in a power-off state. After the installation is completed, the power switch is turned on, and the ZigBee gateway device and each ZigBee device are powered on. In order to avoid that each ZigBee device is powered on at the same time, and sends a network access request to the ZigBee gateway device at the same time, resulting in data blocking and reducing network access efficiency. In one or more embodiments of the present application, the network access request time can also be pre-set in each ZigBee device. Accordingly, after each ZigBee device is powered on, if it is determined that its own network access request time has arrived, it sends a network access request of the ZigBee network to the ZigBee gateway device; wherein the network access request time of different ZigBee devices is the same or different. For example, the network access request time is pre-set in some ZigBee devices to the 10th second after power-on, and the network access request time is pre-set in another part of the ZigBee devices to the 40th second after power-on, etc.
[0035] It should be pointed out that the application scenario of the ZigBee network access processing method provided in the embodiments of this specification is not limited to the network access scenario of the above-mentioned smart home devices, but can also be applied to the network access scenarios of other types of devices, which can be set according to needs in actual applications.
[0036] Step 104, determining a target ZigBee device having access rights to the ZigBee network among the multiple ZigBee devices according to the network access request;
[0037] Considering that the environment where the ZigBee gateway device is located may not only contain the target ZigBee device, but also other types of ZigBee devices. Since the other types of ZigBee devices may also send network access requests to the ZigBee gateway device, in order to ensure the accuracy of the network access operation and thus achieve effective control of the target ZigBee device, the ZigBee gateway device determines the target ZigBee device with the network access authority of the ZigBee network among the corresponding multiple ZigBee devices according to the network access request.
[0038] Step 106: If it is determined that the preset network access conditions are met, network access processing is performed on the target ZigBee device so that the target ZigBee device joins the ZigBee network.
[0039] It is understandable that when the ZigBee gateway device receives the network access request, it only establishes an association with the corresponding ZigBee device at the physical layer, and at this time, each ZigBee device has not actually joined the ZigBee network. When the ZigBee gateway device determines that the target ZigBee device has network access permission and meets the preset network access conditions, it performs network access processing on the target ZigBee device so that the target ZigBee device joins the ZigBee network.
[0040] In the embodiment of this specification, the ZigBee gateway device receives the network access request of the ZigBee network sent by multiple ZigBee devices to be connected to the network; determines the target ZigBee device with the network access permission of the ZigBee network among the multiple ZigBee devices according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network. Thus, the network access processing of each target ZigBee device with network access permission is completed through the communication and interaction between the ZigBee gateway device and multiple ZigBee devices, without the need for the user to scan the ZigBee devices one by one to manually connect each ZigBee device to the ZigBee network; not only does it realize the automatic network access processing of batch ZigBee devices, but it also improves the network access efficiency of ZigBee devices; it is also simple and convenient to operate, saving time and effort, and reducing the complexity of subsequent maintenance.
[0041] Still taking ZigBee devices as smart home devices as an example, usually, users obtain the status information of ZigBee devices from the server corresponding to the ZigBee devices, so as to perform intelligent control on the ZigBee devices. In order to ensure accurate control of ZigBee devices by users, in one or more embodiments of the present application, the server stores the device information of each corresponding ZigBee device. Figure 2 As shown, step 104 may include the following steps 104-2 to 104-6:
[0042] Step 104-2, determining the network access information of the corresponding ZigBee device according to the network access request;
[0043] Specifically, the device information of the corresponding ZigBee device is obtained from the network access request, and a network address is allocated to the ZigBee device; the obtained device information and the allocated network address are determined as the network access information of the ZigBee device. The network address can be a 16-bit address, which can also be called a short address.
[0044] Step 104-4, sending the network access information to the pre-associated server, so that the server verifies whether the corresponding ZigBee device is a legitimate device according to the network access information;
[0045] When the server receives the network access information, it obtains the device information from the network access information and determines whether the pre-stored device information includes the obtained device information. If so, it determines that the corresponding ZigBee device is a legal device, and generates a verification result representing a legal device based on the corresponding device information and the preset legal identification; if not, it determines that the corresponding ZigBee device is an illegal device, and generates a verification result representing an illegal device based on the corresponding device information and the preset illegal identification; and sends the generated verification results to the ZigBee gateway device.
[0046] Furthermore, the association method between the ZigBee gateway device and the server can be set according to the actual application needs. In a feasible implementation, the user at the installation site can operate the terminal device to complete the association between the ZigBee gateway device and the server in advance. Specifically, the terminal device can respond to the user's device association operation, obtain the device information of the ZigBee gateway device submitted by the user and the device information of the server to be associated; and associate the ZigBee gateway device to the server based on the acquired device information. After the association is successful, the ZigBee gateway device can obtain the IP address of the server, and send the determined network access information to the server based on the IP address. In another feasible implementation, the IP address and other information of the server can be preset in the ZigBee gateway device to realize the association between the ZigBee gateway device and the server; accordingly, the ZigBee gateway device sends the determined network access information to the corresponding server based on the preset IP address.
[0047] Step 104 - 6 , receiving the verification result sent by the server, and determining the ZigBee device corresponding to the verification result characterized as a legitimate device as a target ZigBee device having access rights to the ZigBee network.
[0048] Specifically, the ZigBee gateway device receives the verification result sent by the server, obtains the device information and the corresponding identification information from the verification result, and if it is determined that the obtained identification information is a preset legal identification, the ZigBee device corresponding to the corresponding device information is determined as a target ZigBee device with access rights to the ZigBee network; if it is determined that the obtained identification information is a preset illegal identification, the ZigBee device corresponding to the corresponding device information is determined as an illegal ZigBee device that does not have access rights to the ZigBee network.
[0049] It should be pointed out that the verification result and the method of determining the target device based on the verification result are not limited to the above-mentioned method, and can be set according to the actual application needs.
[0050] By sending the network access information of each ZigBee device to the associated server, not only the network access permission of each ZigBee device is verified, but also the network access information of batches of ZigBee devices is synchronized to the server. Compared with the existing method where users scan the QR code of ZigBee devices one by one and synchronize the network access information of ZigBee devices to the server one by one, the synchronization efficiency of network access information to the server is greatly improved.
[0051] Further, in order to enable the ZigBee gateway device to maintain valid network access information, thereby completing the smooth network access of the target ZigBee device, in one or more embodiments of the present application, Figure 3 As shown, after step 104-2, the following step 104-3 may be included, and after step 104-6, the following steps 104-8 and 104-10 may be included:
[0052] Step 104-3, saving the determined network access information;
[0053] Step 104-8, if it is determined according to the verification result that there is an illegal ZigBee device without network access authority among the multiple ZigBee devices, the network access information of the illegal ZigBee device is removed from the saved network access information;
[0054] Step 104-10, synchronizing the saved network access information of the target ZigBee device to the pre-associated terminal device.
[0055] Among them, the association between the ZigBee gateway device and the terminal device can be completed by the user at the installation site operating the terminal device in advance. When the terminal device receives the network access information synchronized by the ZigBee gateway device, the network access information can be displayed so that the user at the installation site can check whether each target ZigBee device to be connected to the network is associated with the ZigBee gateway device according to the network access information. After the user determines that each target ZigBee device to be connected to the network is associated with the ZigBee gateway device, the terminal device can be operated to send a network access processing instruction to the ZigBee gateway device. Correspondingly, in the aforementioned step 106, determining that the preset network access conditions are met may include: if the network access processing instruction sent by the pre-associated terminal device is obtained, it is determined that the preset network access conditions are met.
[0056] In order to further reduce user operations, after the user determines that all target ZigBee devices to be connected to the network are associated with the ZigBee gateway device, the user can send a network access processing instruction to the ZigBee gateway device without operating the terminal device. Accordingly, in the aforementioned step 106, determining that the preset network access condition is met may include: if it is determined that no network access cancellation instruction is obtained within a preset time after synchronizing the network access information to the terminal device, then determining that the preset network access condition is met.
[0057] In the above-mentioned method of synchronizing network access information from the ZigBee gateway device to the terminal device, the user does not need to operate the terminal device to scan the QR code on the ZigBee device one by one to obtain the relevant information of the corresponding ZigBee device, which not only reduces user operations but also greatly improves the synchronization efficiency of the network access information to the terminal device.
[0058] Further, in order to prevent illegal ZigBee devices from occupying resources, in one or more embodiments of the present application, Figure 4 As shown, the method may further include the following steps 105:
[0059] Step 105: If it is determined that there is an illegal ZigBee device without network access authority among the multiple ZigBee devices, a network disconnection instruction is sent to the illegal ZigBee device to cause the illegal ZigBee device to cancel its association with the ZigBee network.
[0060] In order to ensure the communication efficiency with the target ZigBee device, in one or more embodiments of the present application, Figure 5 As shown, step 106 may include the following steps 106-2 to 106-6:
[0061] Step 106-2, if it is determined that the preset network access conditions are met, then according to the determined channel information of the working channel, a channel switching instruction is broadcast based on the current configuration channel, so that the target ZigBee device switches the current configuration channel to the working channel according to the channel switching instruction;
[0062] Specifically, if it is determined that the preset network access conditions are met, the channels in the current environment are scanned; each channel except the configuration channel among the scanned channels is determined as a candidate channel; the working channel is screened from the candidate channels according to a preset method; and based on the channel information of the screened working channel, a channel switching instruction is broadcast based on the current configuration channel.
[0063] In a feasible implementation, the above-mentioned screening of the working channel from the candidate channels according to a preset method may include: obtaining energy information of each candidate channel, determining the candidate channel with the least interference according to the obtained energy information, and determining the candidate channel with the least interference as the working channel.
[0064] It should be pointed out that the method of screening working channels is not limited to the above method, and other methods can be set as needed in actual applications.
[0065] Step 106-4, switching the channel of the ZigBee gateway device from the configuration channel to the determined working channel, and receiving the switching response data sent by the target ZigBee device based on the working channel;
[0066] Step 106-6: If it is determined according to the switching response data that all target ZigBee devices have successfully switched, it is determined that all target ZigBee devices have successfully joined the ZigBee network.
[0067] Among them, the switching response data may include the device information of the corresponding target ZigBee device. After the ZigBee gateway device receives the switching response data, it obtains the device information from the switching response data and matches the device information with the device information in the saved network access information. If the match is successful, it is determined that the corresponding target ZigBee device has been switched successfully, that is, it has successfully joined the ZigBee network; when it is determined according to the switching response data that each target ZigBee device has been switched successfully, it is determined that each target ZigBee device has successfully joined the ZigBee network.
[0068] Furthermore, considering that there may be target ZigBee devices that have not successfully joined the ZigBee network in actual applications, since the target ZigBee devices that have not successfully joined the ZigBee network are still in the previous configuration channel, the ZigBee gateway device switches the channel to the configuration channel again, and performs joining processing on the target ZigBee devices that have not successfully joined the ZigBee network based on the configuration channel. Figure 6 As shown, step 106 may also include the following steps 106-8 and 106-10:
[0069] Step 106-8, if it is determined according to the switching response data that there is a target ZigBee device that has not successfully joined the ZigBee network, then the working channel is switched to the configuration channel;
[0070] Step 106-10: broadcast a channel switching instruction based on the configured channel, or send a channel switching instruction to the target ZigBee devices that have not successfully joined the ZigBee network based on the configured channel, until it is determined that all target ZigBee devices have successfully joined the ZigBee network.
[0071] Furthermore, after the ZigBee gateway device determines that all target ZigBee devices have successfully joined the ZigBee network, it can also broadcast a specified message. When each device in the environment where the ZigBee gateway device is located obtains the specified message, it no longer sends a network access request to the ZigBee gateway device.
[0072] Therefore, by scanning various channels in the environment and selecting the best working channel, which has the characteristics of small interference, the subsequent communication efficiency with ZigBee devices can be improved.
[0073] In a specific embodiment, the user operates the terminal device in advance to complete the association between the ZigBee gateway device, the terminal device and the server, and the user operates the terminal device to send a network access processing instruction to the ZigBee gateway device. Figure 7 As shown, the method may include the following steps:
[0074] Step 202, the ZigBee gateway device is powered on and determines the network parameters of the ZigBee network to be created;
[0075] Step 204, the ZigBee gateway device creates a ZigBee network according to the network parameters;
[0076] Step 206, the ZigBee device is powered on, and if it is determined that the preset network access request time has arrived, it scans various networks in the environment, and determines the ZigBee network to be joined from the scanned networks according to the preset network parameters;
[0077] Step 208, the ZigBee device sends a request to join the ZigBee network to the ZigBee gateway device according to its own device information;
[0078] Step 210, the ZigBee gateway device receives the network access request, obtains device information from the network access request, and allocates a network address to the corresponding ZigBee device;
[0079] Step 212, the ZigBee gateway device determines the device information and the network address as network access information, saves each network access information, and sends each network access information to the associated server;
[0080] Step 214, the server obtains device information from the received network access information, verifies whether the corresponding ZigBee device is a legitimate device based on the obtained device information and the stored device information, and generates a verification result;
[0081] Step 216, the server sends the verification result to the ZigBee gateway device;
[0082] Step 218, the ZigBee gateway device determines whether there is an illegal ZigBee device without network access authority according to the received verification result;
[0083] Step 220: If the ZigBee gateway device determines that there is an illegal ZigBee device, it sends an off-network instruction to the illegal ZigBee device and deletes the network access information of the illegal ZigBee device from the stored network access information;
[0084] Step 222, the ZigBee gateway device synchronizes the saved network access information of each target ZigBee device with network access permission to the associated terminal device;
[0085] Step 224, the terminal device displays the synchronized network access information, and upon detecting the user's network access processing operation, sends a network access processing instruction to the ZigBee gateway device;
[0086] Step 226, the ZigBee gateway device scans channels in the environment according to the received network access processing instruction; determines each channel except the configuration channel among the scanned channels as a candidate channel, and selects a working channel from the candidate channels according to a preset method;
[0087] Step 228, the ZigBee gateway device broadcasts a channel switching instruction based on the current configuration channel according to the channel information of the filtered working channel;
[0088] Step 230: The ZigBee device switches the configured channel to the working channel according to the acquired channel switching instruction, and sends switching response data to the ZigBee gateway device based on the working channel.
[0089] Step 232: If the ZigBee gateway device determines, based on the received switching response data, that each target ZigBee device has successfully switched, then it determines that each target ZigBee device has successfully joined the ZigBee network.
[0090] The specific implementation process of the above steps 202 to 232 can be found in the above related descriptions, and the repeated parts will not be repeated here. It should be pointed out that Figure 7 It is only for illustration and not for limitation, and some operations can be implemented in other ways. In addition, in the above network access process, some operations based on the ZigBee protocol are not described in detail in this application, and the relevant provisions of the ZigBee protocol can be referred to.
[0091] In the embodiment of this specification, the ZigBee gateway device receives the network access request of the ZigBee network sent by multiple ZigBee devices to be connected to the network; determines the target ZigBee device with the network access permission of the ZigBee network among the multiple ZigBee devices according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network. Thus, the network access processing of each target ZigBee device with network access permission is completed through the communication and interaction between the ZigBee gateway device and multiple ZigBee devices, without the need for the user to scan the ZigBee devices one by one to manually connect each ZigBee device to the ZigBee network; not only does it realize the automatic network access processing of batch ZigBee devices, but it also improves the network access efficiency of ZigBee devices; it is also simple and convenient to operate, saving time and effort, and reducing the complexity of subsequent maintenance.
[0092] Based on the same technical concept, one or more embodiments of this specification also provide a ZigBee network access processing device. Figure 8 A schematic diagram of the module composition of a ZigBee network access processing device provided by one or more embodiments of this specification is as follows: Figure 8 As shown, the device comprises:
[0093] The receiver 301 is used to receive the ZigBee network access request sent by multiple ZigBee devices to be connected to the network;
[0094] The processor 302 is used to determine a target ZigBee device having network access rights of the ZigBee network among the multiple ZigBee devices according to the network access request; if it is determined that the preset network access conditions are met, perform network access processing on the target ZigBee device so that the target ZigBee device joins the ZigBee network.
[0095] Optionally, the processor 302 is further configured to:
[0096] Determining the network access information of the corresponding ZigBee device according to the network access request; and
[0097] Sending the network access information to a pre-associated server, so that the server verifies whether the corresponding ZigBee device is a legitimate device according to the network access information;
[0098] Receiving the verification result sent by the server;
[0099] The ZigBee device corresponding to the verification result representing the legitimate device is determined as a target ZigBee device having access rights to the ZigBee network.
[0100] Optionally, the device further comprises: a memory and a transmitter;
[0101] The memory is used to store the network access information;
[0102] Accordingly, the processor 302 is further configured to:
[0103] If it is determined according to the verification result that there is an illegal ZigBee device without the network access authority among the multiple ZigBee devices, the network access information of the illegal ZigBee device is removed from the stored network access information;
[0104] The transmitter is used to synchronize the network access information of the target ZigBee device stored in the memory to a pre-associated terminal device.
[0105] Optionally, the processor 302 is further configured to:
[0106] If it is determined that there is an illegal ZigBee device without the network access authority among the multiple ZigBee devices, a network-leaving instruction is sent to the illegal ZigBee device, so that the illegal ZigBee device cancels its association with the ZigBee network.
[0107] Optionally, the processor 302 is further configured to:
[0108] According to the determined channel information of the working channel, broadcast a channel switching instruction based on the current configuration channel, so that the target ZigBee device switches the current configuration channel to the working channel according to the channel switching instruction;
[0109] Switching the configuration channel to the working channel;
[0110] Receiving switching response data sent by the target ZigBee device based on the working channel;
[0111] If it is determined according to the switching response data that each of the target ZigBee devices has successfully switched, it is determined that each of the target ZigBee devices has successfully joined the ZigBee network.
[0112] Optionally, the processor 302 is further configured to:
[0113] If it is determined according to the switching response data that there is a target ZigBee device that has not successfully joined the ZigBee network, switching the working channel to the configuration channel;
[0114] The channel switching instruction is broadcasted based on the configuration channel, or a channel switching instruction is sent to target ZigBee devices that have not successfully joined the ZigBee network based on the configuration channel until it is determined that each of the target ZigBee devices has successfully joined the ZigBee network.
[0115] Optionally, the processor 302 is further configured to:
[0116] Scan channels in the current environment;
[0117] Determine each channel among the scanned channels except the configured channel as a candidate channel;
[0118] The working channel is screened from the candidate channels according to a preset method.
[0119] Optionally, the processor 302 is further configured to:
[0120] Power on and determine the network parameters of the ZigBee network to be created;
[0121] The ZigBee network is created according to the network parameters.
[0122] The network access processing device of the ZigBee network provided in the embodiment of this specification receives the network access request of the ZigBee network sent by multiple ZigBee devices to be connected to the network; determines the target ZigBee device with the network access permission of the ZigBee network among the multiple ZigBee devices according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network. Thus, the network access processing of each target ZigBee device with network access permission is completed through the ZigBee gateway device communicating and interacting with multiple ZigBee devices, without the need for the user to scan the ZigBee devices one by one to manually connect each ZigBee device to the ZigBee network; not only does it realize the automatic network access processing of batch ZigBee devices, and improves the network access efficiency of ZigBee devices; it is also simple and convenient to operate, saving time and effort, and reducing the complexity of subsequent maintenance.
[0123] In addition, for the above-mentioned device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. In addition, it should be noted that among the various components of the device of the present invention, the components are logically divided according to the functions to be implemented, but the present invention is not limited thereto, and the various components can be re-divided or combined as needed.
[0124] Based on the same technical concept, one or more embodiments of this specification also provide a ZigBee network access processing system. Fig. 9 A schematic diagram of a ZigBee network access processing system provided in one or more embodiments of this specification; Fig. 9 As shown, the system includes: a ZigBee gateway device 401 and a plurality of ZigBee devices 402;
[0125] The ZigBee device 402 sends a request for accessing the ZigBee network to the ZigBee gateway device 401 according to its own device information;
[0126] The ZigBee gateway device 401 receives the network access request and determines the target ZigBee device 402 with network access permission of the ZigBee network among the multiple ZigBee devices 402 according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device 402 is processed for network access so that the target ZigBee device 402 joins the ZigBee network.
[0127] Alternatively, if Fig.10 As shown, the system further includes: a user terminal device 403 and a server 404 corresponding to the target ZigBee device 402;
[0128] The terminal device 403, in response to the device association operation of the user, associates the ZigBee gateway device 401 with the server 404 according to the acquired device information of the ZigBee gateway device 401 and the device information of the server 404; and receives the network access information of the target ZigBee device 402 synchronized by the ZigBee gateway device 401;
[0129] The ZigBee gateway device 401 determines the network access information of the corresponding ZigBee device 402 according to the network access request; sends the network access information to the server 404, receives the verification result sent by the server 404, and determines the target ZigBee device 402 having the network access right of the ZigBee network among the multiple ZigBee devices 402 according to the verification result; and synchronizes the network access information of the target ZigBee device 402 to the terminal device 403;
[0130] The server 404 verifies whether the corresponding ZigBee device 402 is a legitimate device according to the received network access information, and sends the verification result to the ZigBee gateway device 401 .
[0131] Optionally, if the ZigBee device 402 determines that its own network access request time has arrived, it sends a ZigBee network access request to the ZigBee gateway device 401 according to its own device information; wherein the network access request times of different ZigBee devices 402 are the same or different.
[0132] The embodiment of this specification provides a network access processing system for a ZigBee network, in which a ZigBee gateway device receives a network access request for a ZigBee network sent by multiple ZigBee devices to be connected to the network; a target ZigBee device with network access rights among the multiple ZigBee devices is determined according to the network access request; if it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network. Thus, the network access processing of each target ZigBee device with network access rights is completed through the ZigBee gateway device communicating and interacting with multiple ZigBee devices, without the need for the user to scan the ZigBee devices one by one to manually connect each ZigBee device to the ZigBee network; not only does it realize the automatic network access processing of batch ZigBee devices, and improves the network access efficiency of ZigBee devices; it is also simple and convenient to operate, saving time and effort, and reducing the complexity of subsequent maintenance.
[0133] In addition, for the above-mentioned system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0134] Based on the same technical concept, the embodiment of the present application also provides a network access processing device of a ZigBee network, such as Fig.11 As shown. The network access processing device of the ZigBee network may have relatively large differences due to different configurations or performances, and may include one or more processors 501 and memory 502, and the memory 502 may store one or more storage applications or data. Among them, the memory 502 can be a short-term storage or a permanent storage. The application stored in the memory 502 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the network access processing device of the ZigBee network. Furthermore, the processor 501 can be configured to communicate with the memory 502, and execute a series of computer executable instructions in the memory 502 on the network access processing device of the ZigBee network. The network access processing device of the ZigBee network may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input and output interfaces 505, and one or more keyboards 506.
[0135] Specifically in this embodiment, the network access processing device of the ZigBee network includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the network access processing device of the ZigBee network, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:
[0136] Receive ZigBee network access requests sent by multiple ZigBee devices to be connected to the network;
[0137] Determine, according to the network access request, a target ZigBee device among the multiple ZigBee devices that has network access authority to the ZigBee network;
[0138] If it is determined that the preset network access condition is met, network access processing is performed on the target ZigBee device so that the target ZigBee device joins the ZigBee network.
[0139] An embodiment of the present application further proposes a storage medium, which stores one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute the various processes of the above-mentioned ZigBee network access processing method embodiment and can achieve the same technical effect. To avoid repetition, they are not repeated here.
[0140] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0141] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0142] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0143] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0146] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0147] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0148] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0149] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0150] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0151] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0152] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for processing access to a ZigBee network, characterized in that: Applied to a ZigBee gateway device, the method comprises: Receive ZigBee network access requests sent by multiple ZigBee devices to be connected to the network; Determine, according to the network access request, a target ZigBee device among the multiple ZigBee devices that has network access authority to the ZigBee network; If it is determined that the preset network access conditions are met, the target ZigBee device is subjected to network access processing so that the target ZigBee device joins the ZigBee network; wherein the preset network access conditions include: within a preset time after synchronizing network access information to a pre-associated terminal device, no network access cancellation instruction is obtained; the network access information is determined based on the network access request; When it is determined that the target ZigBee devices among the multiple ZigBee devices have successfully joined the ZigBee network, a designated message is broadcasted to make the multiple ZigBee devices stop sending the network access requests.
2. The method according to claim 1, wherein determining, according to the network access request, a target ZigBee device among the plurality of ZigBee devices having network access rights to the ZigBee network comprises: Determine the network access information of the corresponding ZigBee device according to the network access request; Sending the network access information to a pre-associated server, so that the server verifies whether the corresponding ZigBee device is a legitimate device according to the network access information; Receiving the verification result sent by the server; The ZigBee device corresponding to the verification result characterized as a legitimate device is determined as a target ZigBee device having network access authority of the ZigBee network.
3. The method according to claim 2, after determining the network access information of the corresponding ZigBee device, further comprising: Saving the network access information; After receiving the verification result sent by the server, the method further includes: If it is determined according to the verification result that there is an illegal ZigBee device without the network access authority among the multiple ZigBee devices, the network access information of the illegal ZigBee device is removed from the stored network access information; The saved network access information of the target ZigBee device is synchronized to the pre-associated terminal device.
4. The method according to claim 1, further comprising: If it is determined that there is an illegal ZigBee device without the network access authority among the multiple ZigBee devices, a network-leaving instruction is sent to the illegal ZigBee device, so that the illegal ZigBee device cancels its association with the ZigBee network.
5. The method according to claim 1, wherein the step of performing network access processing on the target ZigBee device comprises: According to the determined channel information of the working channel, broadcast a channel switching instruction based on the current configuration channel, so that the target ZigBee device switches the current configuration channel to the working channel according to the channel switching instruction; Switching the configuration channel to the working channel; Receiving switching response data sent by the target ZigBee device based on the working channel; If it is determined according to the switching response data that each of the target ZigBee devices has successfully switched, it is determined that each of the target ZigBee devices has successfully joined the ZigBee network.
6. The method according to claim 5, further comprising: If it is determined according to the switching response data that there is a target ZigBee device that has not successfully joined the ZigBee network, switching the working channel to the configuration channel; The channel switching instruction is broadcasted based on the configuration channel, or a channel switching instruction is sent to target ZigBee devices that have not successfully joined the ZigBee network based on the configuration channel until it is determined that each of the target ZigBee devices has successfully joined the ZigBee network.
7. The method according to claim 5, further comprising: Scan channels in the current environment; Determine each channel among the scanned channels except the configured channel as a candidate channel; The working channel is screened from the candidate channels according to a preset method.
8. The method according to claim 1, before receiving the ZigBee network access requests sent by the plurality of ZigBee devices to be connected to the network, further comprising: Power on and determine the network parameters of the ZigBee network to be created; The ZigBee network is created according to the network parameters.
9. A network access processing device for a ZigBee network, characterized in that: Applied to ZigBee gateway equipment, the device comprises: A receiver, used for receiving a ZigBee network access request sent by a plurality of ZigBee devices to be connected to the network; A processor is used to determine a target ZigBee device with network access rights to the ZigBee network among the multiple ZigBee devices according to the network access request; if it is determined that the preset network access conditions are met, perform network access processing on the target ZigBee device to enable the target ZigBee device to join the ZigBee network; wherein the preset network access conditions include: within a preset time after synchronizing network access information to a pre-associated terminal device, no network access cancellation instruction is obtained; the network access information is determined based on the network access request; when it is determined that the target ZigBee devices among the multiple ZigBee devices have all successfully joined the ZigBee network, broadcast a specified message to enable the multiple ZigBee devices to stop sending the network access requests.
10. A ZigBee network access processing system, characterized in that: Including: ZigBee gateway device and multiple ZigBee devices; The ZigBee device sends a request for accessing the ZigBee network to the ZigBee gateway device according to its own device information; The ZigBee gateway device receives the network access request and determines, according to the network access request, a target ZigBee device among the multiple ZigBee devices that has network access rights to the ZigBee network; If it is determined that the preset network access conditions are met, the target ZigBee device is processed for network access so that the target ZigBee device joins the ZigBee network; wherein the preset network access conditions include: no network access cancellation instruction is obtained within a preset time after synchronizing the network access information to the pre-associated terminal device; the network access information is determined based on the network access request; when it is determined that the target ZigBee devices among the multiple ZigBee devices have successfully joined the ZigBee network, a specified message is broadcast to cause the multiple ZigBee devices to stop sending the network access requests.
11. The system according to claim 10, characterized in that The system further comprises: a user's terminal device and a server corresponding to the target ZigBee device; The terminal device, in response to the device association operation of the user, associates the ZigBee gateway device with the server according to the acquired device information of the ZigBee gateway device and the device information of the server; and receives the network access information of the target ZigBee device synchronized by the ZigBee gateway device; The ZigBee gateway device determines the network access information of the corresponding ZigBee device according to the network access request; sends the network access information to the server, receives the verification result sent by the server, and determines the target ZigBee device with the network access right of the ZigBee network among the multiple ZigBee devices according to the verification result; and synchronizes the network access information of the target ZigBee device to the terminal device; The server verifies whether the corresponding ZigBee device is a legitimate device according to the received network access information, and sends the verification result to the ZigBee gateway device.
12. The system according to claim 10, characterized in that If the ZigBee device determines that its own network access request time has arrived, it sends a network access request of the ZigBee network to the ZigBee gateway device according to its own device information; wherein the network access request times of different ZigBee devices are the same or different.
13. A network access processing device for a ZigBee network, characterized in that: include: A processor, a memory electrically connected to the processor, the memory storing a computer program, and the processor being configured to call and execute the computer program from the memory to implement the steps of the method according to any one of claims 1 to 8.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Network access method, related equipment and network system
CN108770045A
Equipment network access method, device and system, electronic equipment and storage medium
CN110430557A
Network access method, device and system
CN112260780A
