Wifi label timing reporting system and WIFI label launching technique
Technical field
The present invention relates to the wireless sensor network communications fields, in particular to Wifi label timing reporting system and WIFI label
Launching technique.
Background technique
Derivative product probably has three categories in RFID technique: passive RFID product, active RFID product, semi-active
RFID product.Active RFID product, is slowly to grow up recent years, and the characteristic of far distance automatic identification determines
Its huge application space and market potential quality.In far distance automatic identification field, such as intelligent prison, intelligent hospital, intelligent parking
, intelligent transportation, smart city, there is major application in the fields such as the wisdom earth and Internet of Things.Active RFID is in the different army in this field
Protrusion belongs to far distance automatic identification class.Product groundwork frequency has hyperfrequency 433MHZ, microwave 2.45GHZ and 5.8GHZ.
The active label battery life of the prior art is short, and cruising ability is weaker, and that there are individual node capacity is small (general
In 500) the problem of;Secondly, the corollary equipment total price of the prior art is higher, and configurability is poor.
Summary of the invention
It is an object of the invention to: Wifi label timing reporting system and WIFI label launching technique are provided, not only
It solves that existing active label battery life is short, and cruising ability is weaker, and there is a problem of that individual node capacity is small, also solve
The corollary equipment total price of the prior art is higher, and the problem of configurability difference.
The technical solution adopted by the invention is as follows:
Wifi label timing reporting system and WIFI label launching technique, including WIFI receiver and several WIFI are marked
Label, it is characterised in that: the WIFI label includes WIFI mould group, single-chip microcontroller, power supply, and the WIFI mould group and power supply are and monolithic
Machine connection;
Further include WIFI label launching technique, the WIFI label launching technique the following steps are included:
Step 1: single-chip microcontroller powers on, and WIFI mould group is started;
Step 2:WIFI mould group is communicated with WIFI receiver;
Step 3: after communication, WIFI mould group is sent to end signal to single-chip microcontroller;
Step 4: dormancy time is arranged in single-chip microcontroller, and controls WIFI mould group dormancy;
Step 5: single-chip microcontroller carries out suspend mode;
Step 6: single-chip microcontroller timing wake-up enters step 1.
Wifi label timing reporting system and WIFI label launching technique of the invention is received by WIFI mould group and WIFI
The cooperation of device completes label data and reports work, and configurability is strong, and communication time is short, increases the safety that data report,
Cost is relatively low for corollary equipment, has stronger practicability;By the cooperation of single-chip microcontroller and WIFI mould group, WIFI mould group can control
Suspend mode and starting are carried out, and by the setting of dormancy time, makes single-chip microcontroller in no data transmission, dormant state is kept, into one
The saving electric quantity of power supply of step makes WIFI label have good cruising ability;By WIFI label launching technique, control is single in time
Piece machine suspend mode, and control WIFI mould group dormancy, the power savings being optimal.
Further, the following steps are included: single-chip microcontroller powers on, transmission WIFI mould group starts the specific steps of the step 1
Instruction and the group initialization directive of WIFI mould, WIFI mould group are initialized.By the initialization after each suspend mode of WIFI mould group, make
Any one secondary label data transmitting process of WIFI mould group all presses predetermined system work, not label data before by WIFI mould group before
Emit the data influence that process generates.
Further, the step 2 comprising the following specific steps
Step 201:WIFI mould group sends label data to WIFI receiver;
Step 202:WIFI mould group receives the reply data from WIFI receiver;
Step 203:WIFI mould group monitors the reply data from WIFI receiver, if listening to response, carries out
Step 204;If WIFI receiver dont answer, return step 201 carries out step when the preset upper limit is wanted in repetition step 203 arrival
204;
Step 204: communication terminates.By the monitoring to reply data, the judgement whether communication terminates is made, it is ensured that label
Data report flow it is complete;WIFI receiver dont answer is carried out the setting for repeating to send label data by WIFI mould group, kept away
When from arriving signal interference, there is a situation where label datas to fail to report, it is ensured that the accuracy of label data;By the way that WIFI mould group is arranged
Carry out repeating to send the setting of the maximum number of times of label data, it is ensured that WIFI mould group, can be after in the case where being disturbed or failure
It is continuous to execute subsequent action.
Further, the specific steps of the step 3 include:
S301: single-chip microcontroller is set as normal hibernation time and abnormal dormancy time;
S302: the reason of communication terminates is judged according to the communication process of step 203, if in step 203, listening to response
In the case where single-chip microcontroller use the normal hibernation time;If repeating step 203 arrival wants the preset upper limit, single-chip microcontroller is stopped using abnormal
It sleeps the time;
S303: dormancy instruction is sent to WIFI mould group, WIFI mould group carries out suspend mode.By carrying out normal hibernation time and different
Normal dormancy time is respectively set, and abnormal dormancy time is shorter than the normal hibernation time, after shorter abnormal dormancy time, monolithic
Machine wakes up, and then wakes up WIFI mould group, restarts report flow, guarantees the timeliness reported.
Further, the WIFI label further includes wake-up switch, and the power supply and single-chip microcontroller are connect with wake-up switch.
WIFI mould group can not only be waken up by the timer of single-chip microcontroller, can also be carried out physics wake-up by wake-up switch, be needed in user
It wants to give the correct time on WIFI label, physics wake-up can be carried out by wake-up switch, play the purpose timely used.
It further, further include simulation MAC Address step, the simulation MAC Address between the step 1 and step 201
Step includes WIFI receiver and WIFI Mo Zu simulates the first virtual mac address and the second virtual mac address respectively, and by
One virtual mac address, the second virtual mac address replace respectively WIFI receiver initial MAC Address and WIFI mould group it is initial
MAC Address is communicated;WIFI receiver is set as only receiving the label data from the second virtual mac address, WIFI mould
Group is set as only receiving the reply data that the WIFI receiver from the first virtual mac address is made.It is virtual by simulation first
MAC Address and the second virtual mac address, and the communication MAC for limiting WIFI receiver and WIFI mould group is limited, even if same
It is provided with more set systems in one region, is also possible to prevent to influence each other between not homologous ray;Wifi label in same system by
It is communicated in the second Virtual MAC all used to WIFI receiver, only communication packet is different, so in WIFI receiver,
All WIFI mould groups are all identical MAC Address, and the received WIFI number of labels of WIFI receiver can be made unrestricted.
Further, the step 2 further include: in step 201, WIFI mould group encrypts label data, WIFI
Receiver is decrypted after receiving frontier inspection data, carries out good protection to label data, avoids label data by others' malice
Obtain label data.
In conclusion by adopting the above-described technical solution, the beneficial effects of the present invention are:
1. Wifi label timing reporting system of the invention and WIFI label launching technique are connect by WIFI mould group and WIFI
The cooperation of device is received, label data is completed and reports work, configurability is strong, and communication time is short, increases the safety that data report
Property, cost is relatively low for corollary equipment, has stronger practicability;
2. Wifi label timing reporting system and WIFI label launching technique of the invention pass through single-chip microcontroller and WIFI mould group
Cooperation, can control WIFI mould group to carry out suspend mode and starting, and by the setting of dormancy time, transmit single-chip microcontroller in no data
When, dormant state is kept, electric quantity of power supply is further saved, makes WIFI label that there is good cruising ability;
3. Wifi label timing reporting system and WIFI label launching technique of the invention pass through WIFI label launching technique,
Timely control single chip computer suspend mode, and control WIFI mould group dormancy, the power savings being optimal.
4. Wifi label timing reporting system and WIFI label launching technique of the invention pass through virtual by simulation first
MAC Address and the second virtual mac address, and the communication MAC for limiting WIFI receiver and WIFI mould group is limited, even if same
It is provided with more set systems in one region, is also possible to prevent to influence each other between not homologous ray;Wifi label in same system by
It is communicated in the second Virtual MAC all used to WIFI receiver, only communication packet is different, so in WIFI receiver,
All WIFI mould groups are all identical MAC Address, and the received WIFI number of labels of WIFI receiver can be made unrestricted, are solved single
The small problem of a node capacity.
5. Wifi label timing reporting system and WIFI label launching technique of the invention are relative to RFID label tag, WIFI mark
Label can be communicated with WIFI receiver in omnidirectional limitation in the coverage area of receiver, and generally applicable by WIFI receiver grade
The mode of connection, expands the coverage area, and then uses in the biggish usage scenario of area, is rapidly performed by label data and reports.
Detailed description of the invention
Examples of the present invention will be described by way of reference to the accompanying drawings, in which:
Fig. 1 is a kind of flow chart of WIFI label launching technique of the invention;
Fig. 2 is the electrical connection diagram of single-chip microcontroller of the invention;
Fig. 3 is the electrical connection diagram of WIFI mould group of the invention.
Specific embodiment
All features disclosed in this specification or disclosed all methods or in the process the step of, in addition to mutually exclusive
Feature and/or step other than, can combine in any way.
It elaborates below with reference to Fig. 1 to Fig. 3 to the present invention.
Embodiment one
Wifi label timing reporting system and WIFI label launching technique, including WIFI receiver and several WIFI are marked
Label, it is characterised in that: the WIFI label includes WIFI mould group, single-chip microcontroller, power supply, and the WIFI mould group and power supply are and monolithic
Machine connection;
The WIFI mould group selects ESP8266 mould group;
The single-chip microcontroller selects single-chip microcontroller STM8L101;
Further include WIFI label launching technique, the WIFI label launching technique the following steps are included:
Step 1: single-chip microcontroller powers on, and WIFI mould group is started;
Step 2:WIFI mould group is communicated with WIFI receiver;
Step 3: after communication, WIFI mould group is sent to end signal to single-chip microcontroller;
Step 4: dormancy time is arranged in single-chip microcontroller, and controls WIFI mould group dormancy;
Step 5: single-chip microcontroller carries out suspend mode;
Step 6: single-chip microcontroller timing wake-up enters step 1.
RFID label tag of the RFID label tag only within the scope of reader antenna orientation velocity of wave can just be read and write, of the invention
Relative to RFID label tag, WIFI label can be in the covering of receiver for Wifi label timing reporting system and WIFI label launching technique
Omnidirectional limitation is communicated with WIFI receiver in range, and generally applicable by the cascade mode of WIFI receiver, expands covering
Range, and then used in the biggish usage scenario of area, it is rapidly performed by label data and reports;It is connect by WIFI mould group and WIFI
The cooperation of device is received, label data is completed and reports work, configurability is strong, and communication time is short, increases the safety that data report
Property, cost is relatively low for corollary equipment, has stronger practicability;By the cooperation of single-chip microcontroller and WIFI mould group, WIFI can control
Mould group carries out suspend mode and starting, and by the setting of dormancy time, makes single-chip microcontroller in no data transmission, keep dormant state,
It is further to save electric quantity of power supply, make WIFI label that there is good cruising ability;Pass through WIFI label launching technique and time control
Single-chip microcontroller suspend mode processed, and control WIFI mould group dormancy, the power savings being optimal.
Specifically, label data is stored in WIFI mould group, single-chip microcontroller dormancy time is set;By power supply to single-chip microcontroller
It powers on, and then sends enabled instruction to WIFI mould group, the starting of WIFI mould group;WIFI receiver is constantly monitored by broadcast mode
From the signal of WiFi label transmission in effective range, verify whether it is legal link setup Shen according to the requirement of communications protocol
Please, it and executes and the communication of WIFI mould group;The end signal from WIFI mould group is received by single-chip microcontroller, and controls WIFI mould
Group carries out suspend mode;Single-chip microcontroller starts timing dormancy and timing wake-up, and then wakes up WIFI mould group in a dormant state, opens again
Beginning report flow.
Embodiment two
On the basis of example 1, the specific steps of the step 1 are sent the following steps are included: single-chip microcontroller powers on
WIFI mould group enabled instruction and WIFI mould group initialization directive, WIFI mould group are initialized.Pass through each suspend mode of WIFI mould group
Initialization afterwards makes any one secondary label data transmitting process of WIFI mould group all work by predetermined system, not by WIFI mould before
The data influence that label data transmitting process generates before group.
Embodiment three
On the basis of the above embodiments, the step 2 comprising the following specific steps
Step 201:WIFI mould group sends label data to WIFI receiver;
Step 202:WIFI mould group receives the reply data from WIFI receiver;
Step 203:WIFI mould group monitors the reply data from WIFI receiver, if listening to response, carries out
Step 204;If WIFI receiver dont answer, return step 201 carries out step when the preset upper limit is wanted in repetition step 203 arrival
204;
Step 204: communication terminates.By the monitoring to reply data, the judgement whether communication terminates is made, it is ensured that label
Data report flow it is complete;WIFI receiver dont answer is carried out the setting for repeating to send label data by WIFI mould group, kept away
When from arriving signal interference, there is a situation where label datas to fail to report, it is ensured that the accuracy of label data;By the way that WIFI mould group is arranged
Carry out repeating to send the setting of the maximum number of times of label data, it is ensured that WIFI mould group, can be after in the case where being disturbed or failure
It is continuous to execute subsequent action.
Further, the specific steps of the step 3 include:
S301: single-chip microcontroller is set as normal hibernation time and abnormal dormancy time;
S302: the reason of communication terminates is judged according to the communication process of step 203, if in step 203, listening to response
In the case where single-chip microcontroller use the normal hibernation time;If repeating step 203 arrival wants the preset upper limit, single-chip microcontroller is stopped using abnormal
It sleeps the time;
S303: dormancy instruction is sent to WIFI mould group, WIFI mould group carries out suspend mode.By carrying out normal hibernation time and different
Normal dormancy time is respectively set, and abnormal dormancy time is shorter than the normal hibernation time, after shorter abnormal dormancy time, monolithic
Machine wakes up, and then wakes up WIFI mould group, restarts report flow, guarantees the timeliness reported.
Example IV
On the basis of the above embodiments, the WIFI label further includes wake-up switch, the power supply and single-chip microcontroller with
Wake-up switch connection.WIFI mould group can not only be waken up by the timer of single-chip microcontroller, can also carry out physics by wake-up switch
It wakes up, needs to give the correct time on WIFI label in user, physics wake-up can be carried out by wake-up switch, play the purpose timely used.
Embodiment five
It on the basis of the above embodiments, further include simulation MAC Address step between the step 1 and step 201, it is described
Simulating MAC Address step includes that WIFI receiver and WIFI Mo Zu simulate the first virtual mac address and the second Virtual MAC respectively
Address, and the initial MAC Address and WIFI of WIFI receiver are replaced by the first virtual mac address, the second virtual mac address respectively
The initial MAC Address of mould group is communicated;WIFI receiver is set as only receiving the number of tags from the second virtual mac address
According to WIFI mould group is set as only receiving the reply data that the WIFI receiver from the first virtual mac address is made.Pass through simulation
First virtual mac address and the second virtual mac address, and the communication MAC for limiting WIFI receiver and WIFI mould group is limited,
Even if being provided with more set systems in the same area, it is also possible to prevent to influence each other between not homologous ray;In same system
Wifi label is since the second Virtual MAC all used is communicated to WIFI receiver, and only communication packet is different, so connecing in WIFI
Receive device apparently, all WIFI mould groups are all identical MAC Address, and the received WIFI number of labels of WIFI receiver can be made unrestricted
System, solves the problems, such as that individual node capacity is small.
Embodiment six
On the basis of the above embodiments, the step 2 further include: in step 201, WIFI mould group to label data into
Row encryption, WIFI receiver are decrypted after receiving frontier inspection data, carry out good protection to label data, avoid label data
Label data is maliciously obtained by others.
The above, only the preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, it is any
Those skilled in the art within the technical scope disclosed by the invention, can without the variation that creative work is expected or
Replacement, should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be limited with claims
Subject to fixed protection scope.