Embodiment
Embodiments of the invention provide a kind of information-pushing method based on Zigbee, may further comprise the steps:
Embodiments of the invention provide a kind of information-pushing method based on Zigbee, as shown in Figure 3, comprising:
The user terminal of step s301, judgement access network is for needing to receive the specific user terminal of data.
Concrete, also comprise before this step: under beacon enabled mode, informing user terminal had its data to read; Or enable under the mode data that need user terminal to read to be identified at non-beacon.
This determination methods specifically comprises: under beacon enables mode, receive that user terminal sends obtain request of data the time, judge that this user terminal is for needing to receive the specific user terminal of data; Or enable under the mode at non-beacon, obtain request of data and the local sign that receive that user terminal regularly sends have when needing data that this user terminal reads, judge that this user terminal is for needing to receive the specific user terminal of data.
Step s302, data are sent to this specific user terminal.
Concrete, data are specifically comprised to the step that this specific user terminal sends:
(1) moves a timer in advance in this locality, when the timer of operation in advance arrives Preset Time, data are sent to this specific user terminal.
(2) move a timer in advance in this locality, and user terminal quantity in the estimation network.When user terminal quantity is not more than preset value in the estimation network, immediately data are sent to this specific user terminal; When user terminal quantity is greater than preset value in the estimation network, after the timer of the local operation in advance of wait arrives Preset Time, data are sent to this specific user terminal.
For above-mentioned any method, the send mode of data comprises: all user terminals in network carry out the broadcasting of data; Or carry out the multicast of data to user terminal associated with the data.
Whether the embodiment of the application of the invention provides the information-pushing method based on Zigbee, before data are sent to specific user terminal, be that the user terminal that needs to receive data is judged to user terminal in advance.This implementation method can be to need controlling to the message that user terminal pushes, and have network and lay the advantage convenient, that cost is low.
Below enabling to enable two kinds of information-pushing methods under the pattern with non-beacon with regard to beacon respectively describes respectively.According to the characteristics of Zigbee network, in an embodiment of the present invention, information release terminal must remain the status of network coordinator.
When specific implementation, each embodiment needs to take appropriate measures, and prevents from the user terminal that sends information is repeated transmission information.According to setting, user terminal can begin into network process under user's indication, also can begin automatically into network process; According to setting, whether after receiving that information release terminal has the indication of its data, whether user terminal can be selected this indication to be preserved, can select to point out the user to receive this indication; According to setting, user terminal can be initiated request of data from the trend information release terminal, or initiates request of data under user's indication; If user terminal has been stored the data indication of certain information release terminal, read this data the user, perhaps user terminal and corresponding information release terminal lose related after, can select whether to delete this data and indicate.
In the embodiment of the invention one, be example with information release terminal and the user terminal that works under the non-beacon enable mode.In the present embodiment, information release terminal adopts the mode of the information of the regularly publishing information of carrying out to push.Concrete, information release terminal can be broadcasted to all user terminals, also can carry out multicast at the user terminal of request msg.The time interval that information pushes can be to be set by user terminal, also can dynamically determine by information release terminal.
The idiographic flow that information pushes may further comprise the steps as shown in Figure 4:
Step s401, information release terminal are enabled a timer, and timer arrives Preset Time and just sends data;
The network of step s402, user terminal access information issue terminal;
The data that step s403, information release terminal will need user terminal to read identify;
The user terminal of step s404, access network is regularly to the information release terminal request msg, and this request of data can send by the data request command frame of Zigbee;
Step s405, information release terminal confirm that to the request of data of user terminal this affirmation can send by the affirmation command frame of Zigbee;
Step s406, judge whether timer arrives Preset Time, if arrive execution in step s407; Otherwise the Preset Time of waiting timer arrives;
Step s407, information release terminal are just to user terminal to transmit data, and data can send by the Frame of Zigbee, and the replacement timer;
Step s408, user terminal receive the data of information release terminal, confirm to information release terminal, and this affirmation can send by the affirmation command frame of Zigbee.
In the embodiment of the invention two, be example with information release terminal and the user terminal that works under the non-beacon enable mode.In the present embodiment, information release terminal adopts different information published methods according to the quantity of user terminal.Concrete, information release terminal is taked different information published methods according to the quantity of user terminal in the network environment: if user terminal is less, after receiving the user terminal data request, directly to this user terminal to transmit data; If user terminal is more, just adopt the mode that regularly sends, push to the user terminal information of carrying out.Push with the mode of the regular transmission information information of carrying out, can broadcast to all user terminals, also can carry out multicast at the user terminal that sends request of data.The time interval that information pushes can be to be set by user terminal, also can dynamically determine by information release terminal.
For the method for information release terminal estimating user terminal data, the request of data that receives in what or unit interval of the association request that can receive in what or unit interval according to the equipment room channel confliction that takes place in the unit interval what etc. standard judge.
The idiographic flow that information pushes may further comprise the steps as shown in Figure 5:
The quantity of step s501, information release terminal estimating user terminal if user terminal is more, is enabled a timer, and timer arrives Preset Time and just sends data;
The network of step s502, user terminal access information issue terminal;
The data that step s503, information release terminal will need user terminal to read identify;
The user terminal of step s504, access network is regularly to the information release terminal request msg, and this request of data can send by the data request command frame of Zigbee;
Step s505, information release terminal confirm that to the request of data of user terminal this affirmation can send by the affirmation command frame of Zigbee;
If step s506 user terminal is less, after receiving user terminal requests, with regard to execution in step s507.If user terminal is more and timer arrives Preset Time, execution in step s507, and replacement timer; Otherwise, the arrival of the Preset Time of waiting timer;
Step s507, information release terminal are to user terminal to transmit data, and data can send by the Frame of Zigbee.
Step s508, user terminal receive the data of information release terminal, confirm to information release terminal, and this affirmation can send by the affirmation command frame of Zigbee.
In the embodiment of the invention three, be example with information release terminal and the user terminal that works under the beacon enable mode.In the present embodiment, information release terminal adopts the mode of the information of the regularly publishing information of carrying out to push.Concrete, information release terminal adopts the mode of the regular transmission information information of carrying out to push, and can broadcast to all user terminals, also can carry out multicast at the user terminal that sends request of data.The time interval that information pushes can be to be set by user terminal, also can dynamically determine by information release terminal.
The idiographic flow that information pushes may further comprise the steps as shown in Figure 6:
Step s601, information release terminal are enabled a timer, and timer arrives Preset Time and just sends data;
The network of step s602, user terminal access information issue terminal;
Step s603, information release terminal informing user terminal have its data to read, and this notice can realize that informing user terminal has its data to read by add indication in beacon;
The user terminal of step s604, access network is to the information release terminal request msg, and this request of data can send by the data request command frame of Zigbee;
Step s605, information release terminal confirm that to the request of data of user terminal this affirmation can send by the affirmation command frame of Zigbee;
If step s606 timer arrives Preset Time, with regard to execution in step s607, and the replacement timer; Otherwise, the arrival of the Preset Time of waiting timer;
Step s607, information release terminal are to user terminal to transmit data, and data can send by the Frame of Zigbee;
Step s608, user terminal receive the data of information release terminal, confirm to information release terminal, and this affirmation can send by the affirmation command frame of Zigbee.
In the embodiment of the invention four, be example with information release terminal and the user terminal that works under the beacon enable mode.In the present embodiment, information release terminal adopts different information published methods according to the quantity of user terminal.Concrete, information release terminal is taked different information published methods according to the quantity of user terminal in the network environment: if user terminal is less, after receiving the user terminal data request, just to this user terminal to transmit data; If user terminal is more, just adopt the mode that regularly sends, push to the user terminal information of carrying out.When pushing with the mode of the regular transmission information information of carrying out, can broadcast to all user terminals, also can carry out multicast at the user terminal that sends request of data.The time interval that information pushes can be to be set by user terminal, also can dynamically determine by information release terminal.
For the method for information release terminal estimating user terminal data, the request of data that receives in what or unit interval of the association request that can receive in what or unit interval according to the equipment room channel confliction that takes place in the unit interval what etc. judge.
The idiographic flow that information pushes may further comprise the steps as shown in Figure 7:
The quantity of step s701, information release terminal estimating user terminal if user terminal is more, is then enabled a timer, and timer arrives Preset Time and just sends data;
The network of step s702, user terminal access information issue terminal;
Step s703, information release terminal informing user terminal have its data to read, and this notice can realize that informing user terminal has its data to read by add indication in beacon;
The user terminal of step s704, access network is to the information release terminal request msg, and this request of data can send by the data request command frame of Zigbee;
Step s705, information release terminal confirm that to the request of data of user terminal this affirmation can send by the affirmation command frame of Zigbee;
If step s706 user terminal is less, after receiving user terminal requests, with regard to execution in step s707; If user terminal is more and timer when arriving Preset Time, execution in step s707 and the timer of resetting; Otherwise, the arrival of the Preset Time of waiting timer;
Step s707, information release terminal are to user terminal to transmit data, and data can send by the Frame of Zigbee;
Step s708, user terminal receive the data of information release terminal, confirm to information release terminal, and this affirmation can send by the affirmation command frame of Zigbee.
Whether the embodiment of the application of the invention provides the information-pushing method based on Zigbee, before data are sent to specific user terminal, be that the user terminal that needs to receive data is judged to user terminal in advance.This implementation method can be applied under the pattern that beacon enables to enable with non-beacon, to need controlling to the message that user terminal pushes, and has network and lays the advantage convenient, that cost is low.
Embodiments of the invention also provide a kind of information transmission system based on Zigbee, as shown in Figure 8, comprise information release terminal 10 and at least one user terminal 20.Wherein information release terminal 10 is used for judging that the user terminal 20 of access network is when needing the specific user terminal of reception data, and data are sent to this specific user terminal 20.
Concrete, the structure of this information release terminal 10 further comprises as shown in Figure 9:
Judging unit 11 is used for judging whether the user terminal 20 of access network is the specific user terminal that needs to receive data.
Transmitting element 12, being used for judging the user terminal 20 of access network when judging unit 11 is when needing the specific user terminal of reception data, and data are sent to this specific user terminal 20.
As shown in figure 10, this information release terminal 10 also comprises:
Notification unit 13 was used for transmitting element 12 sends data to user terminal 20 before, and informing user terminal 20 has its data to read.
Identify unit 14 is used for the data that need user terminal 20 to read are identified, and notice judging unit 11 judges whether the user terminal 20 of access network is the specific user terminal that needs to receive data.
As shown in figure 11, this judging unit 11 specifically comprises:
First judgment sub-unit 111 is used under beacon enables mode, receive that user terminal 20 sends obtain request of data the time, judge that user terminal 20 is for needing to receive the specific user terminal of data; Or
Second judgment sub-unit 112, be used for enabling under the mode at non-beacon, obtain request of data and the local sign that receive that user terminal 20 regularly sends have when needing data that user terminal 20 reads, judge that user terminal 20 is for needing to receive the specific user terminal of data.
Shown in Figure 12 A, transmitting element 12 can comprise:
First timer 121 is used for timing;
First sends subelement 122, is used for when first timer 121 timing arrive Preset Time, and data are sent to specific user terminal 20.When data send, can carry out the broadcasting of data to all user terminals in the network; Or for the multicast that carries out data at the user terminal of asking these data.
Shown in Figure 12 B, transmitting element 12 can also comprise:
Quantity survey subelement 123 is for the quantity of estimation network user terminal; This quantity survey subelement is specifically as follows the first quantity survey subelement, be used for what of the request of data that receives in what or unit interval of the association request that receives in what or the unit interval according to the equipment room channel confliction that takes place in the unit interval, the quantity of user terminal in the estimation network.
Second timer 124 is used for timing;
Second sends subelement 125, is used for when quantity survey subelement 123 estimation network user terminal quantity are not more than preset value, immediately data is sent to specific user terminal 20; When user terminal quantity is greater than preset value in quantity survey subelement 123 estimation networks, after 124 timing of wait second timer arrive Preset Time, data are sent to specific user terminal 20.When data send, can carry out the broadcasting of data to all user terminals in the network; Or for the multicast that carries out data at the user terminal of asking these data.
Whether the embodiment of the application of the invention provides information transmission system and equipment based on Zigbee, before data are sent to specific user terminal, be that the user terminal that needs to receive data is judged to user terminal in advance.This implementation method can be applied under the pattern that beacon enables to enable with non-beacon, to need controlling to the message that user terminal pushes, and has network and lays the advantage convenient, that cost is low.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize based on such understanding by the mode that software adds necessary general hardware platform, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.