CN106792999B - Zigbee gateway equipment, zigbee child node and zigbee networking method - Google Patents
Zigbee gateway equipment, zigbee child node and zigbee networking method Download PDFInfo
- Publication number
- CN106792999B CN106792999B CN201710114981.6A CN201710114981A CN106792999B CN 106792999 B CN106792999 B CN 106792999B CN 201710114981 A CN201710114981 A CN 201710114981A CN 106792999 B CN106792999 B CN 106792999B
- Authority
- CN
- China
- Prior art keywords
- zigbee
- character sequence
- identification information
- characters
- node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/16—Gateway arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides zigbee gateway equipment, zigbee child nodes and a zigbee networking method. The zigbee networking method comprises the following steps: acquiring the MAC address and manufacturer information of a zigbee child node; coding and integrating the MAC address and the manufacturer information to obtain identification information; and sending the identification information to the zigbee gateway device so that the zigbee gateway device determines whether the zigbee child nodes are allowed to access the network. The zigbee gateway equipment, the zigbee sub-nodes and the zigbee networking method provided by the invention ensure the successful network access probability of the zigbee sub-nodes and improve the efficiency of zigbee networking.
Description
Technical Field
The invention relates to a communication engineering technology, in particular to zigbee gateway equipment, a zigbee child node and a zigbee networking method.
Background
The Zigbee technology of the wireless personal area network is a wireless communication technology which has low cost, low complexity, low power consumption, large network capacity and reliability, conforms to the IEEE.802.15.4 protocol, and is a new standard specially established by the Zigbee alliance for home short-distance communication.
When equipment based on the zigbee technology is used for networking, a zigbee child node respectively sends identification information of the zigbee child node, namely a Media Access Control (MAC) address and manufacturer information, to zigbee gateway equipment, and after the zigbee gateway equipment receives the identification information sent by one zigbee child node, the zigbee gateway equipment judges whether the zigbee child node is allowed to be added to a zigbee network or Access the zigbee network, and then receives the identification information sent by another zigbee child node.
In the networking method, because the MAC address and the manufacturer information are respectively sent to the zigbee gateway device, the zigbee gateway device has a misjudgment condition (that is, the MAC address and the manufacturer information sent by the same zigbee child node are not corresponded together), so that the zigbee child node fails to access the network; and the zigbee gateway equipment processes the messages sent by the zigbee child nodes one by one, and if the number of the child nodes is large, the gateway does not receive the information of part of the zigbee child nodes due to network congestion, too low gateway processing speed and the like, so that the network access failure of the part of the zigbee child nodes is caused.
Disclosure of Invention
The invention provides zigbee gateway equipment, zigbee child nodes and a zigbee networking method, and aims to solve the technical problem that the networking equipment and the networking method in the prior art easily cause network access failure of the zigbee child nodes.
The invention provides zigbee gateway equipment, which comprises: a receiver, a cache memory and a processor; the cache memory is respectively connected with the receiver and the processor;
the receiver is used for receiving identification information sent by a first zigbee sub-node and sending the identification information to the cache memory, wherein the identification information is obtained by coding and integrating a Media Access Control (MAC) address and manufacturer information of the first zigbee sub-node;
the cache memory is used for caching the identification information and sending the cached identification information in the corresponding preset time length to the processor at intervals of preset time length;
and the processor is used for determining a second zigbee sub-node allowed to enter the network in each first zigbee sub-node according to the cached identification information in a preset time length.
The zigbee gateway device comprises a decoder and a controller which are connected in sequence;
the decoder is used for decoding the cached identification information to obtain a first character sequence and a second character sequence, wherein the first character sequence is used for indicating the MAC address, and the second character sequence is used for indicating the manufacturer information;
the controller is used for judging whether the manufacturer information is target manufacturer information, and if so, taking the first zigbee subnode corresponding to the MAC address as a second zigbee subnode, wherein the target manufacturer information is manufacturer information corresponding to zigbee equipment which allows network access.
A zigbee gateway device as described above, further comprising a transmitter coupled to the processor;
the processor is further configured to determine, in the first zigbee child node, a third zigbee child node that is not allowed to access the network according to the cached identification information within a preset time length;
the transmitter is configured to send an access failure message to the third zigbee sub-node, where the access failure message is used to indicate that the third zigbee sub-node fails to access the zigbee network.
The present invention also provides a zigbee sub-node, comprising: the processor comprises a controller and an encoder which are sequentially connected, and the encoder is also connected with the transmitter;
the controller is used for acquiring the Media Access Control (MAC) address and the manufacturer information of the zigbee child node;
the encoder is used for encoding and integrating the MAC address and the manufacturer information to obtain identification information;
the transmitter is used for transmitting the identification information to zigbee gateway equipment so that the zigbee gateway equipment determines whether to allow the zigbee child nodes to access the network.
The zigbee sub-node as described above, the controller further configured to: converting the MAC address into a first character sequence, and acquiring the total number M of characters of the first character sequence and the total number N of characters of a second character sequence corresponding to the manufacturer information;
the encoder is specifically configured to: and coding the first character sequence and the second character sequence according to the total number M and the total number N of the characters to obtain the identification information.
The invention also provides a zigbee networking system, which comprises the zigbee gateway equipment and the zigbee child nodes.
The invention also provides a zigbee networking method, which is applied to zigbee gateway equipment and comprises the following steps:
receiving identification information sent by a first zigbee child node, and caching the identification information to a cache memory, wherein the identification information is obtained by coding and integrating a Media Access Control (MAC) address and manufacturer information of the first zigbee child node, and the first zigbee child node is a zigbee device to be accessed to the network;
and acquiring cached identification information from the cache memory at intervals of preset time length, and determining a second zigbee sub-node allowed to access the network in each first zigbee sub-node according to the cached identification information in the preset time length.
In the method, the determining, according to the identification information cached in the preset time duration, a second zigbee child node allowed to access the network in each of the first zigbee child nodes includes:
decoding the cached identification information to obtain a first character sequence and a second character sequence, wherein the first character sequence is used for indicating the MAC address, and the second character sequence is used for indicating the manufacturer information;
and judging whether the manufacturer information is target manufacturer information, if so, taking the first zigbee child node corresponding to the MAC address as a second zigbee child node, wherein the target manufacturer information is manufacturer information corresponding to zigbee equipment allowing network access.
The method as described above, further comprising:
determining a third zigbee sub-node which is not allowed to access the network in the first zigbee sub-node according to the cached identification information within a preset time length;
and sending an access failure message to the third zigbee sub-node, wherein the access failure message is used for indicating that the third zigbee sub-node fails to access the zigbee network.
The invention also provides a zigbee networking method, which is applied to the zigbee child nodes and comprises the following steps:
acquiring a Media Access Control (MAC) address and manufacturer information of the zigbee child node;
coding and integrating the MAC address and the manufacturer information to obtain identification information;
and sending the identification information to zigbee gateway equipment so that the zigbee gateway equipment determines whether the zigbee child nodes are allowed to access the network.
The method for coding and integrating the MAC address and the vendor information to obtain the identification information includes:
converting the MAC address into a first character sequence;
acquiring the total number M of the characters of the first character sequence, and acquiring the total number N of the characters of a second character sequence corresponding to the manufacturer information;
and coding the first character sequence and the second character sequence according to the total number M and the total number N of the characters to obtain the identification information.
As described above, the encoding the first character sequence and the second character sequence according to the total number M of characters and the total number N of characters to obtain the identification information includes:
coding the first character sequence and the second character sequence according to the total number M and the total number N of the characters to obtain a third character sequence;
forming a fourth character sequence by the numeric characters corresponding to the total number N of the characters and a first preset character, wherein the numeric characters are positioned in front of the first preset character;
combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and using the fifth character sequence as the identification information; wherein the fourth character sequence precedes the third character sequence.
The method for encoding the first character sequence and the second character sequence according to the total number M and the total number N of characters to obtain a third character sequence includes:
alternately arranging the characters in the first character sequence and the characters in the second character sequence according to the arrangement sequence of the characters in the first character sequence and the arrangement sequence of the characters in the second character sequence;
if M is larger than N, taking the characters in the rest first character sequence as 2N +1 to N + M characters of the third character sequence according to the character sequence in the first character sequence;
and if M is less than N, alternately arranging a second preset character and the characters in the rest second character sequences according to the character sequence in the second character sequence until the characters in the second character sequence are arranged completely.
The zigbee networking method comprises the following steps: acquiring the MAC address and manufacturer information of a zigbee child node; coding and integrating the MAC address and the manufacturer information to obtain identification information; and sending the identification information to the zigbee gateway device so that the zigbee gateway device determines whether the zigbee child nodes are allowed to access the network. The zigbee gateway equipment, the zigbee sub-nodes and the zigbee networking method provided by the invention ensure the successful network access probability of the zigbee sub-nodes and improve the efficiency of zigbee networking.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on the drawings without inventive labor.
Fig. 1 is a first schematic structural diagram of a Zigbee sub-node according to the present invention;
fig. 2 is a first schematic diagram illustrating a Zigbee child node acquiring an MAC address and vendor information according to the present invention;
fig. 3 is a schematic diagram ii illustrating that a Zigbee child node acquires an MAC address and vendor information according to the present invention;
fig. 4 is a first schematic structural diagram of a Zigbee gateway device provided in the present invention;
fig. 5 is a schematic structural diagram of a Zigbee networking system provided in the present invention;
FIG. 6 is a first flowchart of a zigbee networking method according to the present invention;
FIG. 7 is a second flowchart of a zigbee networking method according to the present invention;
FIG. 8 is a flowchart III of a zigbee networking method provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a Zigbee sub-node provided in the present invention, and referring to fig. 1, the Zigbee sub-node of the present embodiment includes: a processor 11 and a transmitter 12, wherein the processor 11 comprises a controller 111 and an encoder 112 which are connected in sequence, and the encoder 112 is also connected with the transmitter 12;
the controller 111 is configured to obtain a media access control MAC address and vendor information of a zigbee child node;
the encoder 112 is configured to encode and integrate the MAC address and the vendor information to obtain identification information;
the transmitter 12 is configured to transmit the identification information to the zigbee gateway device, so that the zigbee gateway device determines whether to allow the zigbee child nodes to enter the network.
Specifically, the Zigbee child node in this embodiment is one of Zigbee devices, and includes a router and a terminal device, and the Zigbee child node in this embodiment is a node to be added to a Zigbee network.
The Zigbee sub-node of this embodiment includes: a processor 11 and a transmitter 12, wherein the processor 11 comprises a controller 111 and an encoder 112 connected in sequence, and the encoder 112 is further connected with the transmitter 12.
The controller 111 is configured to obtain a MAC address and vendor information of a zigbee sub-node.
The method for acquiring the MAC address and the vendor information of the zigbee child node may be implemented by the following embodiments. Fig. 2 is a first schematic diagram illustrating a Zigbee child node acquiring an MAC address and vendor information according to the present invention;
fig. 3 is a schematic diagram ii illustrating that a Zigbee child node acquires an MAC address and vendor information according to the present invention;
one possible implementation is: referring to fig. 2, after the auxiliary device 31 scans the two-dimensional code on the zigbee sub-node 32 and obtains the MAC address and the vendor information of the zigbee sub-node 32, the auxiliary device sends the MAC address and the vendor information of the zigbee sub-node 32 to the zigbee sub-node 32, and after the MAC address and the vendor information of the zigbee sub-node 32 are received by the controller 111 of the zigbee sub-node 32, the controller 111 obtains the MAC address and the vendor information of the zigbee sub-node.
Another possible implementation is: referring to fig. 3, after a user manually inputs the MAC address and the vendor information of the zigbee sub-node 32 through the user interface of the zigbee sub-node 32, and clicks the determination button, the processor of the zigbee sub-node 32 obtains an input instruction of the user, and controls to send the MAC address and the vendor information of the zigbee sub-node to the controller according to the input instruction of the user, and the controller 111 obtains the MAC address and the vendor information of the zigbee sub-node.
Of course, the controller 111 may also obtain the MAC address and the vendor information in other manners, which is not limited in this embodiment.
The controller 111 is further configured to convert the MAC address into a first character sequence, and obtain a total number M of characters of the first character sequence and a total number N of characters of a second character sequence corresponding to the manufacturer information;
the encoder 112 is configured to encode and integrate the MAC address and the vendor information to obtain identification information; in this embodiment, the encoder encodes and integrates the MAC address and the manufacturer information to obtain a piece of information, where the piece of information is identification information of the zigbee child node. In this embodiment, the method for encoding and integrating the MAC address and the manufacturer information by the encoder 112 may adopt various methods as long as the MAC address and the manufacturer information are integrated into one piece of information.
The following describes a preferred method for encoding and integrating the MAC address and the vendor information to obtain a piece of information.
The encoder is configured to encode the first character sequence and the second character sequence according to the total number M of characters and the total number N of characters to obtain identification information, and specifically includes: coding the first character sequence and the second character sequence according to the total number M and the total number N of the characters to obtain a third character sequence; forming a fourth character sequence by the numeric characters corresponding to the total number N of the characters and the first preset character, wherein the numeric characters are positioned in front of the first preset character; combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as identification information; the fourth character sequence is located before the third character sequence, the number characters except the first preset character in the fourth character sequence are used for indicating the total number of the characters of the manufacturer information, and when decoding, the manufacturer information can be decoded according to the encoding rule and the number characters, and then the MAC address is decoded. .
One possible implementation manner of encoding the first character sequence and the second character sequence according to the total number M and the total number N of characters to obtain the third character sequence is as follows:
alternately arranging the characters in the first character sequence and the characters in the second character sequence according to the arrangement sequence of the characters in the first character sequence and the arrangement sequence of the characters in the second character sequence;
if M is larger than N, taking characters in the rest first character sequence as 2N +1 to N + M characters of a third character sequence according to the character sequence in the first character sequence;
and if the M is less than the N, alternately arranging second preset characters and the characters in the rest second character sequences according to the character sequence in the second character sequence until the characters in the second character sequence are arranged completely.
It can be understood by those skilled in the art that "the first character sequence and the second character sequence are encoded according to the total number M of characters and the total number N of characters to obtain the third character sequence", other implementation manners may also be adopted, and the embodiment is not limited.
The following describes, by way of specific examples, an encoding process of a preferred method in which the processor encodes and integrates the MAC address and the vendor information to obtain a piece of information.
If the MAC address of one Zigbee node is 0123456789ABCDEF after being converted into the first character sequence, and the second character sequence Sengled corresponding to the vendor information, it is counted that the total number of characters of the first character sequence is M16, and the total number of characters of the second character sequence N is 7,M > N, then according to the sequence of characters in the first character sequence and the sequence of characters in the second character sequence, the first 7 characters of the first character sequence and the first 7 characters of the second character sequence are alternately arranged to obtain the first 14 characters of the third character sequence, then according to the sequence of characters in the first character sequence, the characters in the remaining first character sequence are used as the 15 th to 23 th characters of the third character sequence, and the finally obtained third character sequence is as follows: 0S1e2n3g4l5e6d789ABCDEF.
The fourth character sequence is obtained as follows: and combining the numeric character 7 corresponding to the total number of characters N7 and the first preset character 0 to form a fourth character sequence, wherein the numeric character 7 is positioned before the first preset character 0, and the obtained fourth character sequence is as follows 70. Of course, the first preset character may also be other characters, and the embodiment is not limited.
Combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as the identification information; and the fourth character sequence is positioned before the third character sequence, and the finally obtained identification information is as follows: 700S1e2n3g4l5e6d789ABCDEF.
If the MAC address of one Zigbee node is 0123456789ABCDEF after being converted into the first character sequence, and the second character sequence segledshanghaibj corresponding to the vendor information counts that the total number of characters of the first character sequence is M16, the total number of characters of the second character sequence is 17, M is less than N, then according to the sequence of characters in the first character sequence and the sequence of characters in the second character sequence, the 16 characters of the first character sequence and the first 16 characters of the second character sequence are alternately arranged to obtain the first 32 characters of the third character sequence, and then according to the sequence of characters in the second character sequence, the second preset character 0 and the remaining characters in the second character sequence are alternately arranged until the characters in the second character sequence are arranged, and the finally obtained third character sequence is as follows: 0S1e2n3g4l5e6d7S8H9AANBGCHDAEIFB0J. Of course, the second preset character may also be other characters, and this embodiment is not limited.
The fourth character sequence is obtained as follows: and combining the numeric character 17 corresponding to the total number N17 of the characters and the first preset character 0 to form a fourth character sequence, wherein the numeric character 17 is located before the first preset character 0, and the obtained fourth character sequence is as follows 170. Of course, the first preset character may also be other characters, and this embodiment is not limited.
Combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as the identification information; wherein, the fourth character sequence is located before the third character sequence, and the final identification information is: 1700S1e2n3g4l5e6d7S8H9AANBGCHDAEIFB0J.
In this embodiment, the MAC address and the manufacturer information are coded and integrated to obtain the identification information with only one piece of information, which can greatly reduce the occurrence of network access failure of the zigbee child node due to the fact that the zigbee gateway device judges the MAC address and the manufacturer information sent by the same zigbee child node as the information sent by two different zigbee child nodes, and ensure the probability of successful network access of the zigbee child node.
The transmitter 12 is configured to, after the encoder encodes and integrates the MAC address and the manufacturer information to obtain the identification information, transmit the identification information to the zigbee gateway device, so that the zigbee gateway device determines whether to allow the zigbee child node to access the network. The method for determining whether to allow the zigbee child node to access the network by the zigbee gateway device may adopt a method for determining whether to allow the zigbee child node to access the network by the zigbee gateway device in the next embodiment, which is not limited in this embodiment.
The zigbee child node of the present embodiment includes: the processor comprises a controller and an encoder which are sequentially connected, and the encoder is also connected with the transmitter; the controller is used for acquiring the Media Access Control (MAC) address and the manufacturer information of the zigbee child node; the encoder is used for encoding and integrating the MAC address and the manufacturer information to obtain identification information; the transmitter 12 is configured to transmit the identification information to the zigbee gateway device, so that the zigbee gateway device determines whether to allow the zigbee child nodes to enter the network. The zigbee child node guarantees the probability of successful network access of the zigbee child node.
Fig. 4 is a schematic structural diagram of a Zigbee gateway device provided in the present invention, referring to fig. 4, the Zigbee gateway device of the present embodiment includes a receiver 21, a cache memory 22, and a processor 23; the cache memory 22 is connected to the receiver 21 and the processor 23, respectively.
The receiver 21 is configured to receive identification information sent by the first zigbee sub-node, and send the identification information to the cache memory 22, where the identification information is obtained by encoding and integrating a MAC address of the first zigbee sub-node and vendor information;
the cache memory 23 is configured to cache the identification information, and send the cached identification information in the corresponding preset duration to the processor 23 at intervals of the preset duration;
the processor 23 is configured to determine, from the cached identification information within the preset time duration, a second zigbee child node permitted to access the network among the first zigbee child nodes.
Specifically, the Zigbee gateway device of this embodiment is one of the Zigbee devices, and may also be referred to as a coordinator, and is used as a node for data aggregation.
The Zigbee gateway device of this embodiment includes a receiver 21, a cache memory 22, and a processor 23; the cache memory 22 is connected to the receiver 21 and the processor 23, respectively. The first zigbee sub-node of this embodiment may be a zigbee sub-node in the previous embodiment, and the first zigbee sub-node is a zigbee device to be networked.
The receiver 21 is configured to receive identification information sent by the first zigbee sub-node, and send the identification information to the cache memory 22, where the identification information is obtained by encoding and integrating a MAC address of the first zigbee sub-node and vendor information; in this embodiment, the identification information received by the receiver may be the identification information obtained by the first zigbee child node by using the coding integration method in the previous embodiment, which is not described in detail in this embodiment.
The cache memory 22 is configured to cache the identification information, and send the cached identification information in the corresponding preset duration to the processor 23 at intervals of the preset duration. In this embodiment, after receiving the identification information sent by the first Zigbee sub-node, the receiver 21 of the Zigbee gateway device does not directly send the identification information to the processor of the Zigbee gateway device to determine whether the first Zigbee sub-node allows to join the Zigbee network, but caches the identification information to the cache memory 22 created on the Zigbee gateway device, and sends the cached identification information within the corresponding preset duration to the processor 23 at every preset duration; for example, if the preset time duration is 3S, the identification information cached from the first time to the second time is sent to the processor 23, and then the identification information cached from the second time to the third time is sent to the processor 23, where the time duration between the first time and the second time is 3S, and the time duration between the second time and the third time is 3S, and the above steps are performed in a loop.
When the number of the sub-nodes is large, the cache memory 22 may greatly reduce the occurrence of a phenomenon that the Zigbee gateway device does not receive a part of Zigbee sub-nodes to access the network, due to network congestion, too low gateway processing speed, and the like.
The processor 23 is configured to receive the cached identification information within the preset time duration sent by the cache memory 22, and determine, according to the cached identification information within the preset time duration, a second zigbee sub-node that is allowed to access the network among the first zigbee sub-nodes.
The following describes the specific operation of the processor 23 by processing the identification information of a first zigbee sub-node by the processor 23. The identification information of the first zigbee child node is referred to herein as first cached identification information.
The processor 23 includes a decoder 231 and a controller 232 connected in sequence; the decoder 231 is configured to decode the first cached identification information to obtain a first character sequence and a second character sequence, where the first character sequence is used to indicate a first MAC address, and the second character sequence is used to indicate first vendor information; it will be appreciated by those skilled in the art that the decoding method of the processor 23 of the zigbee gateway device of the present embodiment needs to correspond to the encoding method of the encoder of the processor of the first zigbee sub-node.
The decoder 231 is configured to decode the first cached identification information to obtain a first character sequence and a second character sequence, where the first character sequence is used to indicate a first MAC address, and when the second character sequence is used to indicate first vendor information, the decoder 231 is specifically configured to decode the first cached identification information to obtain a fourth character sequence and a third character sequence, and determine a total number of characters of the first vendor information according to the fourth character sequence; and obtaining a second character sequence from the third character sequence according to the total number of the characters of the first manufacturer information, and removing each second preset character in the remaining characters in the third character sequence to obtain a first character sequence, wherein the first character sequence is used for indicating a first MAC address, and the second character sequence is used for indicating the first manufacturer information.
More specifically, when the processor 23 of the zigbee gateway device decodes, the fourth character sequence and the third character sequence are obtained according to the first cached identification information, and a specific obtaining process of the fourth character sequence is as follows: determining the position of a first preset character according to a preset first preset character, and regarding the condition that the first preset character is 0, taking the 0 character which appears for the first time in the first cached identification information as the first preset character; a character sequence formed by the first preset character and the previous digital character is a fourth character sequence, and after the character corresponding to the fourth character sequence is removed from the first cached identification information, the remaining characters form a third character sequence; removing the first preset characters in the fourth character sequence, wherein the remaining digital characters are the total number of characters of the first manufacturer information, obtaining a second character sequence in the third character sequence according to the total number of characters of the first manufacturer information and a coding rule, and removing each second preset character in the remaining characters (each character included in the second character sequence is removed by the third character sequence) in the third character sequence to obtain a first character sequence; for the case that the second character is 0, 0 appearing for the first time in the characters left after the third character sequence removes the second character sequence is not removed, because the first bit of the MAC address is definitely 0.
The controller 232 is configured to determine whether the first vendor information is target vendor information, and if so, take the first zigbee child node corresponding to the first MAC address as the second zigbee child node, where the target vendor information is vendor information corresponding to a zigbee device allowed to access the network. The target vendor information has at least one, and can be stored in the processor 23 of the zigbee gateway device in the form of a list; at this time, it is only necessary to determine whether the target vendor information list includes the first vendor information, and if the first vendor information exists in the target vendor information list, it indicates that the first zigbee sub-node allows accessing the zigbee network, and the first zigbee sub-node is one of the second zigbee sub-nodes.
Further, the zigbee gateway device further includes a transmitter 24, the transmitter 24 is connected to the processor 23, and the processor 23 is further configured to determine, according to the cached identification information within the preset time duration, a third zigbee child node that is not allowed to access the network among the first zigbee child nodes; the transmitter 24 is configured to transmit an access failure message to the third zigbee sub-node, where the access failure message is used to indicate that the third zigbee sub-node fails to access the zigbee network.
That is, if the first zigbee sub-node allows accessing the zigbee network, the zigbee gateway device may not send any message to the first zigbee sub-node, and if the first zigbee sub-node does not receive any message within the preset time, it indicates that the first zigbee sub-node has accessed the zigbee network, and the information may be transmitted through the zigbee network. If the first zigbee sub-node does not allow the access to the zigbee network, the zigbee gateway device sends an access failure message to the first zigbee sub-node to notify the first zigbee sub-node (which may also be referred to as the third zigbee sub-node) of the failure to access the zigbee network.
In this embodiment, the processor acquires the cached identification information from the cache memory at intervals of the preset duration, and determines the second zigbee sub-node allowed to access the network from the first zigbee sub-node according to the cached identification information within the preset duration, so that the second zigbee sub-node allowed to access the network can be quickly screened out, and the efficiency of zigbee networking is improved.
The Zigbee gateway device of this embodiment includes a receiver, a cache memory, and a processor; the cache memory is connected with the receiver and the processor respectively. The receiver is used for receiving the identification information sent by the first zigbee child node and sending the identification information to the cache memory, wherein the identification information is obtained by coding and integrating the MAC address of the first zigbee child node and the manufacturer information; the cache memory is used for caching the identification information and sending the cached identification information in the corresponding preset time length to the processor at intervals of the preset time length; and the processor is used for determining a second zigbee sub node allowed to access the network in each first zigbee sub node according to the cached identification information in the preset time length. The Zigbee gateway device of this embodiment ensures the probability of successful network access of Zigbee child nodes, and improves the efficiency of Zigbee networking.
Fig. 5 is a schematic structural diagram of a Zigbee networking system provided in the present invention, including a Zigbee gateway device 51 and a Zigbee sub-node 52 according to the above embodiments.
In the networking system of this embodiment, by using the zigbee gateway device 51 according to the above embodiment and the zigbee subnode 52 according to the above embodiment, the probability of successful network access of the zigbee subnode is ensured, and the efficiency of zigbee networking is improved.
Fig. 6 is a first flowchart of a zigbee networking method provided in the present invention, which is applied to a zigbee child node, as shown in fig. 6, the method of this embodiment may include:
step S101, obtaining a Media Access Control (MAC) address and manufacturer information of a zigbee child node;
step S102, coding and integrating the MAC address and the manufacturer information to obtain identification information;
and step S103, sending the identification information to the zigbee gateway equipment so that the zigbee gateway equipment determines whether to allow the zigbee child nodes to access the network.
Specifically, the method of the present embodiment may be implemented based on the apparatus shown in fig. 1.
Step S101 in this embodiment may be implemented based on the controller of the apparatus shown in fig. 1, where the method for acquiring the MAC address and the vendor information of the zigbee sub-node may be acquired based on the manner shown in fig. 2 or fig. 3, and the specific acquisition method refers to the acquisition method set forth in the embodiment corresponding to fig. 1, and is not described again in this embodiment.
Step S102 may be implemented based on the processor shown in fig. 1, and obtains a piece of information after encoding and integrating the MAC address and the manufacturer information, where the piece of information is identification information of a corresponding zigbee sub-node. In this embodiment, a method for coding and integrating the MAC address and the manufacturer information may adopt various methods as long as the MAC address and the manufacturer information are integrated into one piece of information.
After the MAC address and the manufacturer information are integrated into one piece of information to obtain the identification information of the corresponding zigbee sub node, the identification information is sent to the zigbee gateway equipment, so that the zigbee gateway equipment can determine whether the zigbee sub node is allowed to access the network.
The zigbee networking method comprises the following steps: acquiring the MAC address and manufacturer information of a zigbee child node; coding and integrating the MAC address and the manufacturer information to obtain identification information; and sending the identification information to the zigbee gateway equipment so that the zigbee gateway equipment determines whether the zigbee child nodes are allowed to access the network. The zigbee networking method carries out coding integration on the MAC address and the manufacturer information to obtain the identification information with only one piece of information, so that the occurrence of the situation that the zigbee child node fails to access the network due to the fact that the zigbee gateway device judges the MAC address and the manufacturer information sent by the same zigbee child node as the information sent by two different zigbee child nodes can be greatly reduced, and the probability of successful network access of the zigbee child node is guaranteed.
The above embodiment will be described in detail with reference to specific examples.
Fig. 7 is a flowchart of a zigbee networking method according to a second embodiment of the present invention, which is applied to a zigbee word node, and the method of the present embodiment is a detailed description of a step "encode and integrate a MAC address and vendor information to obtain identification information", where referring to fig. 7, the method of the present embodiment includes:
step S201, converting the MAC address into a first character sequence, and obtaining a total number M of characters of the first character sequence and a total number N of characters of a second character sequence corresponding to the manufacturer information.
Step S202, according to the total number M and the total number N of the characters, the first character sequence and the second character sequence are coded to obtain identification information;
specifically, in general, the MAC addresses of zigbee sub-nodes are not in the form of a pure character sequence, but have colons between characters, and therefore, the MAC addresses of zigbee sub-nodes need to be converted into a character sequence, referred to herein as a first character sequence. After the first character sequence is obtained, the total number M of characters of the first character sequence and the total number N of characters of the second character sequence corresponding to the manufacturer information may be counted.
According to the total number M and the total number N of the characters, the first character sequence and the second character sequence are coded to obtain identification information, and the method specifically comprises the following steps:
coding the first character sequence and the second character sequence according to the total number M and the total number N of the characters to obtain a third character sequence; forming a fourth character sequence by the numeric characters corresponding to the total number N of the characters and the first preset character, wherein the numeric characters are positioned in front of the first preset character; combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as the identification information; the fourth character sequence is located before the third character sequence, the number characters except the first preset character in the fourth character sequence are used for indicating the total number of the characters of the manufacturer information, and when decoding, the manufacturer information can be decoded according to the encoding rule and the number characters, and then the MAC address is decoded.
The method comprises the following steps of coding a first character sequence and a second character sequence according to the total number M and the total number N of characters to obtain a third character sequence:
alternately arranging the characters in the first character sequence and the characters in the second character sequence according to the arrangement sequence of the characters in the first character sequence and the arrangement sequence of the characters in the second character sequence;
if M is larger than N, taking the characters in the rest first character sequence as 2N +1 to N + M characters of the third character sequence according to the character sequence in the first character sequence;
and if the M is less than the N, alternately arranging second preset characters and the characters in the rest second character sequences according to the character sequence in the second character sequence until the characters in the second character sequence are arranged completely.
The following describes the procedure "encode and integrate the MAC address and the vendor information to obtain the identification information" by a specific example.
If the MAC address of one Zigbee node is 0123456789ABCDEF after being converted into the first character sequence, and the second character sequence Sengled corresponding to the vendor information, it is counted that the total number of characters of the first character sequence is M is 16, and the total number of characters of the second character sequence N is 7, which indicates that M > N, then according to the sequence of characters in the first character sequence and the sequence of characters in the second character sequence, the first 7 characters of the first character sequence and the first 7 characters of the second character sequence are alternately arranged to obtain the first 14 characters of the third character sequence, then according to the sequence of characters in the first character sequence, the characters in the remaining first character sequence are used as the 15 th to 23 th characters of the third character sequence, and the finally obtained third character sequence is as follows: 0S1e2n3g4l5e6d789ABCDEF.
The fourth character sequence is obtained as follows: and combining the numeric character 7 corresponding to the total number of characters N7 and the first preset character 0 to form a fourth character sequence, wherein the numeric character 7 is positioned before the first preset character 0, and the obtained fourth character sequence is as follows 70. Of course, the first preset character may also be other characters, and the embodiment is not limited.
Combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as the identification information; and the fourth character sequence is positioned before the third character sequence, and the finally obtained identification information is as follows: 700S1e2n3g4l5e6d789ABCDEF.
If the MAC address of one Zigbee node is 0123456789ABCDEF after being converted into the first character sequence, and the second character sequence segledshanghaibj corresponding to the vendor information counts that the total number of characters of the first character sequence is 16, the total number of characters of the second character sequence is 17, and it indicates that M is less than N, then according to the order of characters in the first character sequence and the order of characters in the second character sequence, the 16 characters of the first character sequence and the first 16 characters of the second character sequence are alternately arranged to obtain the first 32 characters of the third character sequence, and then according to the order of characters in the second character sequence, the second preset character 0 and the remaining characters in the second character sequence are alternately arranged until the characters in the second character sequence are arranged, and the finally obtained third character sequence is as follows: 0S1e2n3g4l5e6d7S8H9AANBGCHDAEIFB0J. Of course, the second predetermined character may also be other characters, and the embodiment is not limited.
The fourth character sequence is obtained as follows: and (3) forming a fourth character sequence by the numeric character 17 corresponding to the total number of characters N17 and the first preset character 0, wherein the numeric character 17 is positioned before the first preset character 0, and the obtained fourth character sequence is as follows 170. Of course, the first preset character may also be other characters, and the embodiment is not limited.
Combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as the identification information; wherein, the fourth character sequence is located before the third character sequence, and the final identification information is: 1700S1e2n3g4l5e6d7S8H9AANBGCHDAEIFB0J.
In this embodiment, the encoding integration of the MAC address and the manufacturer information is realized by alternately arranging the characters corresponding to the MAC address and the manufacturer information.
Fig. 8 is a flowchart three of a zigbee networking method provided in the present invention, where the flowchart is applied to a zigbee gateway device, and as shown in fig. 8, the method in this embodiment may include:
step S301, receiving identification information sent by the first zigbee sub-node, and caching the identification information to a cache memory, wherein the identification information is obtained by coding and integrating a Media Access Control (MAC) address and manufacturer information of the first zigbee sub-node, and the first zigbee sub-node is a zigbee device to be networked.
Step S302, the cached identification information is obtained from the cache memory at intervals of preset time length, and according to the cached identification information in the preset time length, a second zigbee sub-node allowing network access is determined in each first zigbee sub-node.
Specifically, the method of this embodiment may be implemented based on the Zigbee gateway device shown in fig. 4, and the first Zigbee sub-node in this embodiment may be the Zigbee sub-node in the embodiment shown in fig. 1.
In step S301, the identification information received by the Zigbee gateway device may be the identification information obtained by the first Zigbee child node by using the code integration method in the embodiment shown in fig. 6 to 7, which is not described in detail in this embodiment. This step may be implemented based on the receiver in the Zigbee gateway device shown in fig. 4. The method comprises the steps of receiving identification information obtained by coding and integrating the MAC address and the manufacturer information sent by the first zigbee child node, and ensuring the successful network access probability of the zigbee child node.
After receiving the identification information sent by the first Zigbee sub-node, the Zigbee gateway device does not directly judge whether the first Zigbee sub-node allows to join the Zigbee network, but caches the identification information in a cache memory created on the Zigbee gateway device, and sends the cached identification information in the corresponding preset time length to a processor of the Zigbee gateway device every preset time length; for example, if the preset time duration is 3S, the identification information cached from the first time to the second time is sent to the processor 23, and then the identification information cached from the second time to the third time is sent to the processor 23, where the time duration between the first time and the second time is 3S, and the time duration between the second time and the third time is 3S, and the above steps are performed in a circulating manner.
After receiving the cached identification information within the preset time length, the processor of the Zigbee gateway device determines, according to the cached identification information within the preset time length, a second Zigbee sub-node that is allowed to access the network in each first Zigbee sub-node, including:
decoding the first cached identification information to obtain a first character sequence and a second character sequence, wherein the first character sequence is used for indicating a first MAC address, and the second character sequence is used for indicating first manufacturer information; and the first cached identification information is any cached identification information in the preset duration. It will be appreciated by those skilled in the art that the decoding method of the present embodiment needs to be the same as the encoding method of the identification information.
Specifically, the method comprises the following steps: decoding the first cached identification information to obtain a first character sequence and a second character sequence, where the first character sequence is used to indicate a first MAC address, and the second character sequence is used to indicate first vendor information, and the method specifically includes: decoding the first cached identification information to obtain a fourth character sequence and a third character sequence, and determining the total number of characters of the first manufacturer information according to the fourth character sequence; and obtaining a second character sequence from the third character sequence according to the total number of the characters of the first manufacturer information, and removing each second preset character in the remaining characters in the third character sequence to obtain a first character sequence, wherein the first character sequence is used for indicating a first MAC address, and the second character sequence is used for indicating the first manufacturer information.
More specifically, when the first cached identification information is decoded, a fourth character sequence and a third character sequence are obtained according to the first cached identification information, and a specific obtaining process of the fourth character sequence is as follows: determining the position of a first preset character according to a preset first preset character, and regarding the condition that the first preset character is 0, taking the 0 character which appears for the first time in the first cached identification information as the first preset character; a character sequence formed by the first preset character and the previous digital character is a fourth character sequence, and after the character corresponding to the fourth character sequence is removed from the first cached identification information, the remaining characters form a third character sequence; removing the first preset characters in the fourth character sequence, wherein the remaining digital characters are the total number of characters of the first manufacturer information, obtaining a second character sequence in the third character sequence according to the total number of characters of the first manufacturer information and a coding rule, and removing each second preset character in the remaining characters (each character included in the second character sequence is removed by the third character sequence) in the third character sequence to obtain a first character sequence; for the case that the second character is 0, 0 appearing for the first time in the characters left after the third character sequence removes the second character sequence is not removed, because the first bit of the MAC address is definitely 0.
And judging whether the first manufacturer information is target manufacturer information, if so, taking the first zigbee subnode corresponding to the first MAC address as a second zigbee subnode, wherein the target manufacturer information is manufacturer information corresponding to zigbee equipment allowing network access. The target manufacturer information has at least one, and can be stored in the zigbee gateway device in a list form, at this time, it is only required to judge whether the target manufacturer information list has the first manufacturer information obtained by decoding the identification information sent by the first zigbee sub-node, and if the first manufacturer information exists in the target manufacturer information list, it indicates that the first zigbee sub-node corresponding to the first MAC address allows access to the zigbee network, and the first zigbee sub-node is one of the second zigbee sub-nodes.
Similarly, if the first vendor information exists in the target vendor information list, it indicates that the first zigbee child node corresponding to the first MAC address is not allowed to access the zigbee network, and the first zigbee child node is one of the third zigbee child nodes.
After determining the third zigbee sub-node, sending an access failure message to the third zigbee sub-node, where the access failure message is used to indicate that the third zigbee sub-node fails to access the zigbee network
That is, if the first zigbee sub-node allows accessing the zigbee network, the zigbee gateway device may not send any message to the first zigbee sub-node, and if the first zigbee sub-node does not receive any message within the preset time, it indicates that the first zigbee sub-node has accessed the zigbee network, and the information may be transmitted through the zigbee network. If the first zigbee sub-node does not allow access to the zigbee network, the zigbee gateway device sends an access failure message to the first zigbee sub-node to notify the first zigbee sub-node (which may also be referred to as the third zigbee sub-node) of the failure to access the zigbee network.
And processing each cached identification information in the preset time length according to the same method.
When the number of the sub-nodes is large, the cached identification information is obtained from the cache memory at intervals of the preset duration, and the second zigbee sub-node allowed to access the network is determined in the first zigbee sub-node according to the cached identification information in the preset duration, so that the second zigbee sub-node allowed to access the network can be rapidly screened out, and the efficiency of zigbee networking is improved.
The zigbee networking method provided by the embodiment includes: receiving identification information sent by a first zigbee child node, and caching the identification information into a cache memory, wherein the identification information is obtained by coding and integrating a Media Access Control (MAC) address and manufacturer information of the first zigbee child node, and the first zigbee child node is zigbee equipment to be accessed to a network; and acquiring the cached identification information from the cache memory at intervals of preset time length, and determining a second zigbee sub-node allowed to access the network in each first zigbee sub-node according to the cached identification information in the preset time length. The zigbee networking method provided in this embodiment receives identification information obtained by encoding and integrating the MAC address and the vendor information sent by the first zigbee child node, acquires cached identification information from the cache memory every preset time interval, and determines the second zigbee child node allowed to access the network in the first zigbee child node according to the cached identification information within the preset time interval, thereby improving the efficiency of zigbee networking while ensuring the success rate of zigbee child node access.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A zigbee gateway device, comprising: a receiver, a cache memory and a processor; the cache memory is respectively connected with the receiver and the processor;
the receiver is used for receiving identification information sent by a first zigbee sub-node and sending the identification information to the cache memory, wherein the identification information is obtained by coding and integrating a Media Access Control (MAC) address and manufacturer information of the first zigbee sub-node;
the cache memory is used for caching the identification information and sending the cached identification information in the corresponding preset time length to the processor at intervals of preset time length;
the processor is used for determining a second zigbee sub-node allowed to access the network in each first zigbee sub-node according to the cached identification information within the preset time length.
2. The zigbee gateway device of claim 1, wherein the processor comprises a decoder and a controller connected in series;
the decoder is used for decoding the cached identification information to obtain a first character sequence and a second character sequence, wherein the first character sequence is used for indicating the MAC address, and the second character sequence is used for indicating the manufacturer information;
the controller is configured to determine whether the vendor information is target vendor information, and if so, take the first zigbee child node corresponding to the MAC address as a second zigbee child node, where the target vendor information is vendor information corresponding to a zigbee device allowed to access a network.
3. The zigbee gateway device of claim 2, further comprising a transmitter, the transmitter being connected to the processor;
the processor is further configured to determine, in the first zigbee child node, a third zigbee child node that is not allowed to access the network according to the cached identification information within a preset time length;
the transmitter is configured to send an access failure message to the third zigbee sub-node, where the access failure message is used to indicate that the third zigbee sub-node fails to access the zigbee network.
4. A zigbee sub-node, comprising: the processor comprises a controller and an encoder which are sequentially connected, and the encoder is also connected with the transmitter;
the controller is used for acquiring a Media Access Control (MAC) address and manufacturer information of the zigbee child node;
the encoder is used for encoding and integrating the MAC address and the manufacturer information to obtain identification information;
the transmitter is used for transmitting the identification information to zigbee gateway equipment so that the zigbee gateway equipment determines whether the zigbee child nodes are allowed to access the network;
the controller is further configured to: converting the MAC address into a first character sequence, and acquiring the total number M of characters of the first character sequence and the total number N of characters of a second character sequence corresponding to the manufacturer information;
the encoder is specifically configured to:
coding the first character sequence and the second character sequence according to the total number M and the total number N of the characters to obtain a third character sequence;
forming a fourth character sequence by using the numeric characters corresponding to the total number N of the characters and a first preset character, wherein the numeric characters are positioned in front of the first preset character;
combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as the identification information; wherein the fourth character sequence precedes the third character sequence.
5. A zigbee networking system comprising a zigbee gateway device according to any one of claims 1~3 and a zigbee sub-node according to claim 4.
6. A zigbee networking method is applied to a zigbee gateway device, and comprises the following steps:
receiving identification information sent by a first zigbee child node, and caching the identification information to a cache memory, wherein the identification information is obtained by coding and integrating a Media Access Control (MAC) address and manufacturer information of the first zigbee child node, and the first zigbee child node is a zigbee device to be accessed to the network;
and acquiring cached identification information from the cache memory at intervals of preset time length, and determining a second zigbee sub-node allowed to access the network in each first zigbee sub-node according to the cached identification information in the preset time length.
7. The method as claimed in claim 6, wherein the determining, in each of the first zigbee sub-nodes, a second zigbee sub-node allowed to enter the network according to the identification information cached within the preset time duration includes:
decoding the cached identification information to obtain a first character sequence and a second character sequence, wherein the first character sequence is used for indicating the MAC address, and the second character sequence is used for indicating the manufacturer information;
and judging whether the manufacturer information is target manufacturer information, if so, taking the first zigbee child node corresponding to the MAC address as a second zigbee child node, wherein the target manufacturer information is manufacturer information corresponding to zigbee equipment allowing network access.
8. The method of claim 7, further comprising:
determining a third zigbee sub-node which is not allowed to access the network in the first zigbee sub-node according to the cached identification information within a preset time length;
and sending an access failure message to the third zigbee sub-node, wherein the access failure message is used for indicating that the third zigbee sub-node fails to access the zigbee network.
9. A zigbee networking method is applied to a zigbee child node, and comprises the following steps:
acquiring a Media Access Control (MAC) address and manufacturer information of the zigbee child node;
coding and integrating the MAC address and the manufacturer information to obtain identification information;
sending the identification information to zigbee gateway equipment so that the zigbee gateway equipment determines whether the zigbee child nodes are allowed to access the network;
the encoding and integrating the MAC address and the manufacturer information to obtain the identification information comprises the following steps:
converting the MAC address into a first character sequence;
acquiring the total number M of the characters of the first character sequence, and acquiring the total number N of the characters of a second character sequence corresponding to the manufacturer information;
coding the first character sequence and the second character sequence according to the total number M and the total number N of the characters to obtain a third character sequence;
forming a fourth character sequence by using the numeric characters corresponding to the total number N of the characters and a first preset character, wherein the numeric characters are positioned in front of the first preset character;
combining the fourth character sequence and the third character sequence to obtain a fifth character sequence, and taking the fifth character sequence as the identification information; wherein the fourth character sequence precedes the third character sequence.
10. The method according to claim 9, wherein the encoding the first character sequence and the second character sequence according to the total number M and the total number N of characters to obtain a third character sequence comprises:
alternately arranging the characters in the first character sequence and the characters in the second character sequence according to the arrangement sequence of the characters in the first character sequence and the arrangement sequence of the characters in the second character sequence;
if M is larger than N, taking the characters in the rest first character sequence as 2N +1 to N + M characters of the third character sequence according to the character sequence in the first character sequence;
and if M is less than N, alternately arranging a second preset character and the characters in the rest second character sequences according to the character sequence in the second character sequence until the characters in the second character sequence are arranged completely.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710114981.6A CN106792999B (en) | 2017-02-28 | 2017-02-28 | Zigbee gateway equipment, zigbee child node and zigbee networking method |
PCT/CN2018/077199 WO2018157771A1 (en) | 2017-02-28 | 2018-02-26 | Zigbee gateway device, zignee child node and zigbee networking methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710114981.6A CN106792999B (en) | 2017-02-28 | 2017-02-28 | Zigbee gateway equipment, zigbee child node and zigbee networking method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106792999A CN106792999A (en) | 2017-05-31 |
CN106792999B true CN106792999B (en) | 2023-04-07 |
Family
ID=58960246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710114981.6A Active CN106792999B (en) | 2017-02-28 | 2017-02-28 | Zigbee gateway equipment, zigbee child node and zigbee networking method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106792999B (en) |
WO (1) | WO2018157771A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10666735B2 (en) | 2014-05-19 | 2020-05-26 | Auerbach Michael Harrison Tretter | Dynamic computer systems and uses thereof |
CN106792999B (en) * | 2017-02-28 | 2023-04-07 | 生迪智慧科技有限公司 | Zigbee gateway equipment, zigbee child node and zigbee networking method |
CN108924906A (en) * | 2018-07-04 | 2018-11-30 | 广州市安宜智能科技股份有限公司 | Smart machine control method, ZigBee gateway and storage medium |
CN110972148B (en) * | 2019-11-14 | 2022-08-09 | 惠州市千秋软件开发有限公司 | ZigBee device networking method |
CN113395721B (en) * | 2021-06-07 | 2023-10-31 | 阳光电源股份有限公司 | Wireless networking method, node and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106304059A (en) * | 2015-05-19 | 2017-01-04 | 美的集团股份有限公司 | ZigBee-network subnetting management method and system |
CN106412803A (en) * | 2016-09-30 | 2017-02-15 | 美的智慧家居科技有限公司 | Terminal, ZigBee device, gateway, ZigBee device network configuration system and method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7433356B2 (en) * | 2004-05-13 | 2008-10-07 | International Business Machines Corporation | Methods and apparatus for creating addresses |
US8149849B2 (en) * | 2006-08-31 | 2012-04-03 | Sony Ericsson Mobile Communications Ab | Zigbee/IP gateway |
CN105610866A (en) * | 2016-02-18 | 2016-05-25 | 四川长虹电器股份有限公司 | System and method for automatically accessing intelligent equipment to home wireless local area network |
CN106792999B (en) * | 2017-02-28 | 2023-04-07 | 生迪智慧科技有限公司 | Zigbee gateway equipment, zigbee child node and zigbee networking method |
CN206674205U (en) * | 2017-02-28 | 2017-11-24 | 生迪智慧科技有限公司 | Zigbee gateway devices, zigbee child nodes and zigbee group network systems |
-
2017
- 2017-02-28 CN CN201710114981.6A patent/CN106792999B/en active Active
-
2018
- 2018-02-26 WO PCT/CN2018/077199 patent/WO2018157771A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106304059A (en) * | 2015-05-19 | 2017-01-04 | 美的集团股份有限公司 | ZigBee-network subnetting management method and system |
CN106412803A (en) * | 2016-09-30 | 2017-02-15 | 美的智慧家居科技有限公司 | Terminal, ZigBee device, gateway, ZigBee device network configuration system and method |
Also Published As
Publication number | Publication date |
---|---|
CN106792999A (en) | 2017-05-31 |
WO2018157771A1 (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106792999B (en) | Zigbee gateway equipment, zigbee child node and zigbee networking method | |
US9794376B2 (en) | Compression devices, decompression devices, compression methods, and decompression methods | |
KR20190066065A (en) | Encoding and decoding methods and devices | |
CN106487454B (en) | Sound wave configuration method and configuration system of Internet of things intelligent equipment | |
US11240709B2 (en) | Data transmission method and related device | |
US20150124773A1 (en) | Data transmission method and system, and device, method for acquiring data by terminal, and terminal | |
WO2013070174A1 (en) | Compression devices, decompression devices, compression methods, and decompression methods | |
CN105101102A (en) | Multicast transmission method, information extraction method and corresponding terminal and equipment | |
CN103229444B (en) | Coding/decoding method, Apparatus and system | |
CN104429013B (en) | Method, user equipment and the base station of transmitting feedback information | |
CN113783660B (en) | Transmission method, transmitting terminal and receiving terminal | |
CN117336534A (en) | Data transmission method, device, electronic equipment and storage medium | |
CN114389758A (en) | Data transmission method and device | |
CN110505013B (en) | Control method and system for screen-free equipment distribution network, electronic equipment and storage medium | |
CN109347605B (en) | Encoding method, decoding method and device, and computer readable storage medium | |
CN106471785B (en) | Virtual carrier sensing method and device | |
US9930145B2 (en) | System and method of header compression for online network codes | |
Steinberg | Channels with cooperation links that may be absent | |
CN206674205U (en) | Zigbee gateway devices, zigbee child nodes and zigbee group network systems | |
WO2022078316A1 (en) | Communication decoding method and apparatus, and storage medium, chip and related device | |
CN113163428B (en) | 5G data transmission method with low complexity, low time delay and low signaling overhead | |
US20180069659A1 (en) | Method for processing signaling sub-segment, processing apparatus, access point, and station | |
WO2014131199A1 (en) | Method, device and system for synchronizing forward error correction code words | |
CN105103515B (en) | A kind of method, apparatus and system of data processing | |
US10742783B2 (en) | Data transmitting apparatus, data receiving apparatus and method thereof having encoding or decoding functionalities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |