The content of the invention
To overcome above-mentioned the shortcomings of the prior art, the purpose of the present invention is that providing one kind is based on stelliform connection topology configuration
Internet of Things network communication system, gateway device and method, a simple star-like Internet of Things topological structure is realized with relatively low resource,
And ensure that data transfer is quick and stablizes between gateway device and each label.
For the above-mentioned purpose, technical scheme provided by the invention is as follows:
A kind of Internet of Things network communication system based on stelliform connection topology configuration, including:
Cloud server, it is unique corresponding to each label that gateway device need to be managed for being communicated with gateway device
Identification information informs the gateway device, and receives the label data for each label that the gateway device collects;
Gateway device, after the unique mark of each label is obtained, carry out communication with each label and shake hands, using time division multiplexing machine
System gathers the label data of each label, and the label data of collection is sent into the cloud server;
Multiple labels, carried out data transmission according to time division multiplexed scheme and the gateway device.
Further, the gateway device is communicated based on 802.15.4 physical links layer protocol with each label.
Further, the gateway device sends broadcast frame with the forms of broadcasting and carries out communication with each label and shake hands.
Further, the time division multiplexed scheme is as starting point, by afterwards at the time of sending broadcast frame using gateway device
Split when time is by default time step etc., each label sends number of tags according to the period of segmentation to the gateway device
According to.
To reach above-mentioned purpose, the present invention also provides a kind of gateway device, including:
Mark acquiring unit, for obtaining unique identification information corresponding to each label of cloud server transmission;
Generation unit is indexed, all labels for being managed the gateway device generate index information;
Handshake elements are communicated, are shaken hands for carrying out communication with each label, and believe the index when establishing communication and shaking hands
Breath informs each label;
Label data acquiring unit, sent for receiving and distinguishing each label according to unique mark according to time division multiplexed scheme
Label data, and be uploaded to cloud server.
Further, the communication handshake elements send broadcast frame with the forms of broadcasting, in the confirmation signal for receiving each label
After shake hands success.
Further, as starting point at the time of the time division multiplexed scheme sends broadcast frame using the gateway device, by it
Time afterwards at preset timed intervals step-length etc. when split, each label is according to the index information, and be sequentially delayed Interval*
Index sends label data, wherein, index is the index information, and Interval is preset time step-length.
To reach above-mentioned purpose, the present invention also provides a kind of Internet of Things communication means based on stelliform connection topology configuration, including
Following steps:
Step 1, gateway device obtain the unique mark of each label from cloud server;
Step 2, the gateway device carry out communication with each label and shaken hands after the unique mark of each label is obtained, and use
Time division multiplexed scheme gathers the label data of each label;
The label data of acquisition is sent to cloud server by step 3, the gateway device.
Further, step 2 includes:
All labels generation index information managed the gateway device;
The gateway device carries out communication with label and shaken hands, and informs the index information respectively when establishing communication and shaking hands
Label;
The number of tags that the gateway device is received and sent according to each label of unique mark differentiation according to time division multiplexed scheme
According to.
Further, as starting point at the time of the time division multiplexed scheme sends broadcast frame using the gateway device, by it
Time afterwards at preset timed intervals step-length etc. when split, each label is according to the index information, and be sequentially delayed Interval*
Index sends label data, wherein, index is the index information, and Interval is preset time step-length.
Compared with prior art, a kind of Internet of Things network communication system based on stelliform connection topology configuration of the present invention, gateway device and
The beneficial effect of method is:
The present invention a kind of Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration in gateway by setting
The standby communication between label, based on 802.15.4 physical layer protocol stacks, using time-multiplexed backoff technique, with relatively low resource
A simple star-like Internet of Things topological structure is realized, and ensures that data transfer is quick and stablizes between gateway and label, saves
Resource, avoids that be wirelessly transferred may existing transmission collision.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented
Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures
Part, one of those is only symbolically depicted, or only marked one of those.Herein, "one" is not only represented
" only this ", the situation of " more than one " can also be represented.
In one embodiment of the invention, as shown in figure 3, a kind of Internet of Things Netcom based on stelliform connection topology configuration of the present invention
Letter system, including:Cloud server 10, gateway device 20 and multiple labels 30.
Wherein, cloud server 10, for being communicated with gateway device 20, each label that gateway device 20 need to be managed
Corresponding unique identification information informs the gateway device 20, and receives the information for each label 30 that gateway device 20 collects.
That is, each label 30 corresponds to a unique mark, the unique mark of each label is sent to gateway by cloud server 10
After equipment 20, the unique mark that the can of gateway device 20 includes in the wireless data packet by each label for judging to receive is believed
Cease to distinguish different labels, in the specific embodiment of the invention, each label is using short address (Short Address) as only
One mark, cloud server 10 is communicated with gateway device 20 by WIFI or 3G network, but the present invention is not limited.
Gateway device 20, after the unique mark of each label is obtained, carry out communication with each label and shake hands, using time division multiplexing
Mechanism gather the label information of each label, and the label information of collection is sent to cloud server 10.Of the invention specific
, can be in the form of broadcasting using short after gateway device 20 obtains short address (the Short Address) of each label in embodiment
Distinguish each label and carry out communication with each label 30 and shake hands (Association) in address.On the one hand because saving cost, the opposing party
Face is in short supply because of RAM the and Flash resources entrained by gateway device itself, and gateway device 20 is directly based upon in the present invention
802.15.4 physical link layer protocol is communicated with each label 30, although the short address so as each tags unique identifier can
Think and distinguish different labels, but concurrency conflict existing for wireless receiving and dispatching is not resolved still but, therefore, in order to solve concurrently to rush
It is prominent, it is ensured that the stabilization of packet dealing, data transfer of the present invention between gateway device 20 and label 30 is using time division multiplexing
Backoff technique, time division multiplexing is that different signals is transmitted using the different periods of same physical connection, using the time be used as letter
Number segmentation parameter, the time of channel transmission information is divided into some time piece, and these time slots are distributed into each label
Use, conflict so as to avoid between numerous labels and gateway device existing for data transfer.Specifically, the present invention uses
As starting point at the time of time division multiplexed scheme can send broadcast frame using gateway device, the time afterwards is pressed into default time step,
Such as 50ms, split when waiting, carried out data transmission according to the period of segmentation and each label.
Label 30, label information gateway device 20 is carried out data transmission according to time division multiplexed scheme.Specifically, each label
As starting point at the time of sending broadcast frame using gateway device, the time afterwards is split by default time step, according to segmentation
Period sends label data to gateway device 20.Here label data can be the data message that label includes in itself, also
Can include label 30 to gather the environmental information obtained by sensor.
In another embodiment of the present invention, as shown in figure 4, a kind of Internet of Things based on stelliform connection topology configuration of the present invention
The gateway device of communication system, including:Mark acquiring unit 201, index generation unit 202, communication handshake elements 203 and mark
Sign data capture unit 204.
Mark acquiring unit 201, for obtaining unique identification information corresponding to each label of cloud server transmission, so
The unique mark (such as short address) that gateway device can includes in the wireless data packet by judging received label
To distinguish different labels;
Generation unit 202 is indexed, all labels for being managed the gateway device generate index information, each label pair
Unique mark, and corresponding different index information are answered, so that gateway device realizes gateway device and label by the index information
The control on the transmitting-receiving opportunity of packet.
Handshake elements 203 are communicated, are shaken hands for carrying out communication with label 30 so as to follow-up data transfer.Have in the present invention
In body embodiment, communication handshake elements 203 carry out communication with each label in the form of broadcast and shaken hands (Association), i.e., logical
Interrogating handshake elements 203 can be with forms of broadcasting transmission beacon (Beacon) frame, success of being shaken hands after the confirmation signal of each label is received,
It should be noted that index information corresponding to each label can be informed each label by communication handshake elements 203 while foundation is shaken hands
30。
Label data acquiring unit 204, the label data sent for receiving label 30 according to time division multiplexed scheme, and will
Obtain label data and be uploaded to cloud server.
Fig. 5 is the topology diagram of the Internet of Things network communication system based on stelliform connection topology configuration of the specific embodiment of the invention.
In the specific embodiment of the invention, so that one based on the logistics supervision scheme of 802.15.4 communications as an example, with star topology network
Based on structure, supervised using a center gateway (Gateway) it is each be attached to the label superscribed (Tag), collection is each
The real time environment information (environmental information here can be obtained by sensor) for the parcel that label (Tag) is collected into, and in unification
Pass in gateway (Gateway), then by gateway (Gateway) by WiFi, 3G network uploads to cloud server, such user
Can each label of Real Time Observation on the server status information.
According to 802.15.4 agreements, each label (Tag) has the short address (Short Address) of oneself as unique
Indicate, the short address (Short Address) contained in the wireless data packet that gateway (Gateway) can be received by judgement
To distinguish different label (Tag).Specifically, each label that cloud server needs to manage by network signals gateway it is short
Location (Short Address), after gateway obtains the short address of each label (Tag), carried out in the form of broadcast with each label (Tag)
Communication is shaken hands (Association), and informs the index information (Index) corresponding to each label (Tag) itself, this index
Control of the information relationship to the transmitting-receiving opportunity of data transfer between follow-up gateway and label.
In order to solve concurrency conflict, it is ensured that the stabilization of packet dealing between label and gateway, the present invention is to label (Tag)
Data transfer between gateway (Gateway) uses time-multiplexed backoff technique, i.e., at the time of sending broadcast frame with gateway
For starting point (0 point), by the time afterwards at preset timed intervals step-length Interval (50ms) etc. when split, each label (Tag)
According to resulting index information (index) when being shaken hands with gateway communication, the 50*index that is sequentially delayed is sent, using 50 labels as
Example, the sequential that it is transmitted are as shown in Figure 6.
Fig. 7 is the workflow schematic diagram of gateway and label in the specific embodiment of the invention:
For gateway portion:After gateway is opened and obtains short address corresponding to each label of cloud server transmission, hair
Send the beacon frame of the forms of broadcasting to be shaken hands to carry out communication with label, and inform the index information corresponding to each label itself;Receive
The label data that all labels return, and data are uploaded to cloud server.
For label segment:Collecting sensor data after label starts;Wait gateway broadcasts form beacon frame with net
Close handshake communication;If receiving beacon frame, corresponding back off time (Index*Interval) is waited to return to the label of response afterwards
Data, if not being connected to beacon frame, then it represents that carrying out shake communication fails, then continues collecting sensor data,
In the present invention, label (Tag) with gateway (Gateway) after shaking hands for first time is connected (Association),
Sequential is mutually in step, and only to ensure label (Tag) and gateway (Gateway) configuration identical gap afterwards, synchronous to recover
(Resume) stability of communication, is just may insure, requirement of this process to sequential is very high, it is necessary at the beginning of design, just really
The accuracy of insurance system clock.For Communications failure (Lost sync) situation of reply burst, by the time of the Tag Resume
In advance, to ensure that label (Tag) can synchronously succeed next time.
It should be noted that communication all between label (Tag) and gateway (Gateway) is all by central node gateway
(Gateway) periodically initiate, label (Tag) does not have permission actively initiates to ask to gateway.
It can be seen that the Internet of Things communication system architecture according to the present invention, it is only necessary to improve the protocol layer of addition self-demand, addition
Or new or existing node device is removed, the Internet of things system of simple and stable can be realized with extension.
In another embodiment of the present invention, as shown in figure 8, a kind of Internet of Things based on stelliform connection topology configuration of the present invention
Communication means, comprise the following steps:
Step 801, gateway device obtains the unique mark of each label from cloud server.That is, each label pair
A unique mark is answered, the unique mark of each label can be sent to gateway device and judge what is received will pass through by cloud server
The unique identification information included in the wireless data packet of each label distinguishes different labels.In specific embodiment of the invention weight,
Each label is used as unique mark using short address (Short Address), and gateway device is taken by WIFI or 3G network from high in the clouds
Business device obtains the unique mark.
Step 802, the gateway device carries out communication with each label and shaken hands, adopt after the unique mark of each label is obtained
The label data of each label is gathered with time-multiplexed mechanism.That is, when gateway device obtains the short address of each label
After (Short Address), it can distinguish each label using short address in the form of broadcasting and carry out communication with each label and shake hands
(Association).Gateway device is directly based upon 802.15.4 physical links layer protocol and communicated with each label in the present invention,
And in order to solve concurrency conflict, it is ensured that the stabilization of packet dealing, the present invention use in the data transfer of gateway device and label
Time-multiplexed backoff technique.Specifically, step 802 further comprises:
Step S1, unique identification information corresponding to each label that cloud server is sent is obtained, such gateway device can
It is different to distinguish with the unique mark (such as short address) included in the wireless data packet by judging received label
Label;
Step S2, all labels generation index information managed the gateway device, each label correspond to unique mark, and
Corresponding different index information, when realizing the transmitting-receiving of gateway device and label data bag by the index information so as to gateway device
The control of machine;
Step S3, the gateway device carry out communication with label and shaken hands so as to follow-up data transfer.Of the invention specific
In embodiment, gateway device carries out communication and shaken hands (Association) in the form of broadcasting with each label, i.e. gateway device can be with
Forms of broadcasting transmission beacon (Beacon) frame, success of being shaken hands after the confirmation signal of each label is received, it should be noted that, gateway is set
For while foundation is shaken hands, index information corresponding to each label can be informed each label;
Step S4, the gateway device receive the label data that each label is sent according to time division multiplexed scheme.
Step 803, the label data of acquisition is sent to cloud server by the gateway device.
In summary, the present invention a kind of Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration is led to
Communication excessively between gateway device and label, based on 802.15.4 physical layer protocol stacks, using time-multiplexed backoff technique, with
Relatively low resource realizes a simple star-like Internet of Things topological structure, and ensure between gateway and label data transfer quick and
It is stable, resource is saved, avoids that be wirelessly transferred may existing transmission collision.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.