Specific embodiment
The main thought of the present invention is that when parking stall magnetic strength intensity data is changed greatly, wireless parking stall detection node is adopted
The sensing data collected is reported with smaller report cycle.When parking stall the variation of magnetic strength intensity data is small, wireless parking stall inspection
It surveys node and the sensing data collected is reported using larger report cycle.Wherein the sensing data can be ground magnetic induction number
According to.Further, the wireless parking stall detection node of the present invention counts the number for reporting sensing data, when reaching certain amount
When, it is desirable that is be connected with wireless parking stall detection node carries out response without router.
The present invention reduces the data volume transmitted in wireless channel by this way, and the probability of channel congestion is reduced with this,
The work efficiency of raising system.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with drawings and the specific embodiments, to this
Invention is described in further detail.
With reference to intelligent parking lot wireless communication network system structure diagram shown in FIG. 1, to technical scheme
It illustrates.
The intelligent parking lot cordless communication network can include one or more wireless parking stall detection nodes 110-1,110-
2nd ... 110-N, one or more wireless router 120-1 ... 120-N, one or more wireless access point devices 130.
Parking stall detection node 110 that each is wireless is mainly responsible for a certain range of sensing data of acquisition, and by acquisition
Sensing data reports wireless access point device 130 by wireless router 120.The a certain range includes at least the face of a parking stall
Product.The sensing data can be the ground magnetic strength intensity data of parking stall.
Specifically, wireless parking stall detection node 110 can be correspondingly arranged in each parking stall.Each wireless parking stall measure section
Point 110 can include sensing unit, monitoring unit, communication unit.Wherein:Sensing unit can gather the sensing of corresponding parking stall
Data.Control unit can monitor collection period/sampling interval of the sensing data of sensing unit, supervision and reporting sensing data
Period/interval etc..Communication unit can be controlled by the control unit, and realized sensing data or said the upper of sensing data
Pass etc..
The sensing data that wireless parking stall detection node 110 is gathered has certain regularity, the regularity and parking stall shape
The variation of the ground magnetic strength intensity data of the parking stall caused by the variation of state or the variation of parking stall surrounding enviroment is related.For example, work as
In the occupied one section of longer time in parking stall, the sensing unit in wireless parking stall detection node 110, the sensing data of acquisition will not
It has greatly changed, alternatively, when parking space state changes, that is, when having vehicle into or out parking stall, wireless parking stall measure section
Sensing unit in point 110, the sensing data of acquisition can send larger variation.The present invention is according to this regularity, and control is respectively
A wireless parking stall detection node 110-1,110-2 ... 110-N gathers sensing data, for example, when sensing data variation is small,
The sensing data that sensing unit gathers is reported using the larger cycle;When sensing data changes greatly, using the smaller cycle
To report the sensing data that sensing unit gathers.So as to pass through the implementation method of this mechanism so that majority of case, it is each
Wireless parking stall detection node 110-1,110-2 ... 110-N sends the sensing that its sensing unit gathers using the larger cycle
Data.In this way, the overabundance of data transmitted in wireless channel can be effectively prevented from and cause the generation of wireless channel congestion problems.It adopts
The fluctuating change of the mode reported data being combined with large period and minor cycle, parking stall can also be tracked magnetic induction.When
Detector node uses minor cycle reported data when peripherally magnetic induction variation is more than pre-determined threshold, when variation is less than pre- gating
In limited time using large period reported data, such reported data can with tracking parking stall in time magnetic induction big minor swing.
In systems, can set a certain number of wireless router 120-1 ... 120-N, it is wireless with one or more
Parking stall measure node 110-1,110-2 ... 110-N carries out wireless connection, also, each wireless router 120 can be used for
The sensing data reported from corresponding wireless parking stall detection node 110 is received, and the sensing data is sent to wirelessly
Access point apparatus 130.
Wireless access point device 130 can be used for the sensing data that each wireless parking stall detection node 110 of processing reports, and
The parking space state for corresponding to parking stall to each wireless parking stall detection node 110 is updated in real time.In addition, wireless access point device
130 can also be into system wireless parking stall detection node 110, wireless router 120 send control information.Such as:Again open
Dynamic, closing, parameter configuration etc..
According to an embodiment of the invention, a kind of intelligent parking lot wireless communications method is provided.Below in conjunction with Fig. 1 and Fig. 2,
Intelligent parking lot wireless communications method according to an embodiment of the invention is illustrated.
With reference to figure 1- Fig. 2, wherein, Fig. 2 is the stream of intelligent parking lot wireless communications method according to an embodiment of the invention
Cheng Tu.
At step S210, intiating radio parking stall measure node is used to gather and report the relevant number of parking stall sensing data
According to, and establish and connect with wireless router.
It can be to initial samples value(X0), the first counter/count value(n), the second counter/count value(k)It carries out just
Beginningization.
Sampled value refers to the sensing data of this parking stall of wireless parking stall detection node acquisition/sampling.
Initial samples value is for a reference value compared with sampled value.The sampled value that last sampling can be obtained
XpAs this initial samples value X0.That is, X0=Xp.Or obtained sampled value will can be for the first time sampled as initial samples
Value.Or a rational numerical value is pre-set as initial samples value according to practical experience.
First counter is used to count the sensing data of wireless parking stall detection node 110 acquisition.First counting
The count value n of device may be greater than the natural number equal to 0.
The sensing data that second counter is used to report wireless parking stall detection node 110 counts.Second counting
The count value k of device may be greater than the natural number equal to 0.It can be by being counted to the number for reporting sensing data, to determine
It is fixed that wireless router 120 whether is needed to carry out response to wireless parking stall detection node 110.
Initialize each wireless parking stall detection node 110-1,110-2 ..., can be by one or more during 110-N
Wireless parking stall detection node 110-1,110-2 ... 110-N and wireless router 120-1 ... one in 120-N is wireless
Router 120 carry out wireless connection, to will each wireless parking stall detection node 110-1,110-2 ... 110-N gather biography
Feel data, be reported to wireless router 120 connected to it, and pass through wireless router 120 and be sent to sensing data wirelessly
Access point apparatus 130(For example, data processing server, cloud processing server etc.).Specifically, in each wireless parking stall measure
Node 110-1,110-2 ... 110-N initial phases, i.e., each wireless parking stall detection node 110-1,110-2 ...
110-N start when, then can to each wireless router 120-1 ... 120-N sends access request.In position, with transmission
A closest wireless router 120 of the wireless parking stall detection node 110 of access request, can carry out the access request
Verification when wireless router 120 is verified the access request, and adds in the wireless parking stall detection node of request to sending
110 respond(It is successfully accessed confirmation)When, then the company between wireless parking stall detection node 110 and the wireless router 120
It connects and is established.
At step S220, the sensing data of the wireless corresponding parking stall of parking stall detection node acquisition, and for the sensing of acquisition
Data are counted.
Here, mainly by each wireless parking stall detection node 110-1,110-2 ... sensing unit in 110-N carries out
The acquisition of sensing data.Sensing unit is sampled(Acquisition)Sensing data, that is, sampled value Xc, sampled value XcIt can be ground magnetic strength
Intensity data.
Can by each wireless parking stall detection node 110-1,110-2 ... the control unit in 110-N, it is default to adopt
Sample interval Tc, according to sampling interval Tc, every a sampling interval Tc, sensing unit is i.e. pair in wireless parking stall detection node 110
The sensing data of parking stall is sampled once.
Sensing unit often samples a sampled value Xc, control unit, that is, control counter carries out accumulating operation, e.g., to first
Count value n carries out add-one operation, n=n+1.The number sampled with the wireless parking stall detection node 110 of cumulative calculation.
In one embodiment, wireless parking stall detection node 110, which may be employed, different reports interval to report sensing number
According to.Specifically, it can be preset by the control unit of wireless parking stall detection node 110 and report interval T, interval is reported according to this
T, interval T is reported every one, and wireless parking stall detection node 110 reports a sampled value Xc.Wherein, interval T is reported at one
It is interior, one or more sampling intervals T can be includedc, in other words, in a report cycle T, wireless parking stall detection node
110 can be according to sampling interval Tc, gather one or more sampled value Xc.Further, can be preset by control unit more
It is a to report interval T.According to the situation of change of sensing data, wireless parking stall detection node 110 can select different to report interval
To report sampled value Xc.Preferably, default two report interval to the present invention, and first reports interval N1, second reports interval N2,
In:N1< N2.Numerical value smaller first may be employed when sensing data changes greatly and report interval N1(Minor cycle), when sensing number
According to variation hour may be employed numerical value it is larger second report interval N2(Large period).Wherein, this first report interval N1With second
Report interval N2Zero numerical value is all greater than, which can be used to indicate that the number of acquisition sensing data, in other words, first
Report interval N1Interval N is reported with second2It is reported once after can representing acquisition how many times sensing data.In unit interval, adopt
Interval N is reported with first1The number of sensing data is reported to be more than and reports interval N using second2Report the number of sensing data.
At step S230, judge whether the variable quantity of the sensing data of acquisition is more than predetermined threshold S.
It can be with preset one variation threshold value(S)That is predetermined threshold S, for judging that wireless parking stall detection node 110 gathers
Correspondence parking stall sensing data(Sampled value Xc)Variable quantity whether reach the degree that parking space state can be made to change.
Specifically, this sampled value XcCompared with initial samples value X0Variable quantity whether beyond variation threshold value S, e.g.,
Judge | Xc-X0|>Whether S is true.Sampled value X currently preferred, that last sampling is obtainedpInitial as this is adopted
Sample value then measures this sampled value XcCompared with last time sampled value XpVariation whether beyond variation threshold value S, e.g., judge | Xc-
Xp|>Whether S is true.
If so, i.e. this sampled value XcWith initial samples value X0Absolute value of the difference be more than predetermined threshold value S, | Xc-X0|>
S, then enter step S240, and parking space state may change.
If not, i.e. this sampled value XcWith initial samples value X0Absolute value of the difference be less than or equal to predetermined threshold value S, |
Xc-X0|≤S then enters step S260, and parking space state remains unchanged, and can postpone sampled value XcReport, to reduce in channel
The data volume of transmission.
At step S240, by initial samples value X0It is assigned a value of this sampled value Xc.In other words, by this sampled value XcIt replaces
For original initial samples value X0, by this sampled value XcAs new when carrying out judging whether to need to report sensing data next time
Initial samples value X0, i.e. XcAs X0, such as:X0=Xc。
At step S250, judge whether current first count value n reports interval N more than first1。
When current first count value n reports interval N more than first1When, then enter step S280.
When current first count value n reports interval N less than or equal to first1When, then S220 is entered step, continues acquisition originally
The sensing data of parking stall.
It is similar with step S240 at step S260, by initial samples value X0It is assigned a value of this sampled value Xc。
At step S270, judge whether current first count value n reports interval N more than second2。
When current first count value n reports interval N more than second2When, then enter step S280.
When current first count value n reports interval N less than or equal to second2When, then S220 is entered step, continues acquisition originally
The sensing data of parking stall.
At step S280, by the sampled value X of this acquisitioncWireless router 120 is reported to, and to reporting sampled value Xc
Number counted.
Wireless parking stall detection node 110 is by sampled value XcCoupled wireless router 120 is reported to, and returns to step
Rapid S210.Specifically, can by each wireless parking stall detection node 110-1,110-2 ... communication unit in 110-N will
Need the sensing data reported be sent to each wireless router 120-1 ... the communication unit in 120-N, then by each nothing
Line router 120-1 ... sensing data is sent to the communication in wireless access point device 130 by the communication unit in 120-N
Unit, can be again by wireless access point(AP)External network and application interface in equipment 130 subsequently locate sensing data
Reason.
As this sampled value XcWith initial samples value X0Absolute value of the difference be more than predetermined threshold value S when, represent parking space state can
To change, compared to the situation that parking space state remains unchanged, at this moment, wireless parking stall detection node 110 needs to connect to it
Whether the wireless router 120 connect reports substantial amounts of sampled value, real to analyze parking space state will pass through these sampled values
Changed.Further, by the way that current first count value n and numerically smaller first are reported interval N1Compared
Compared with to determine whether to report sampled value, wireless parking stall detection node 110 gathers sensing data N1It is secondary to report once.So
It realizes, when the sensing data of the parking stall of acquisition changes greatly, using the minor cycle(First reports interval N1)To report sensing
Data.
As this sampled value XcWith initial samples value X0Absolute value of the difference be less than or equal to predetermined threshold value S when, represent parking stall
State does not change, and larger change will not occur for the sensing data that wireless parking stall detection node 110 collects, at this moment, wirelessly
Real-time report sensing data is not required in parking stall measure node 110.It is possible to further by by current first count value n with
Numerically larger first report interval N2It is compared, often gathers N2It is secondary to report a sensing data.It is thereby achieved that it is adopting
The sensing data variation hour of the parking stall of collection, using large period(Second reports interval N2)Carry out reported data, to reduce sensing number
According to number is reported, the energy consumption of wireless parking stall detection node 110 and the probability of channel congestion are reduced, improve wireless transmission can
By property.
Further, wireless parking stall detection node 110 reports the sampled value X that this is gatheredcWhen, it is necessary to report number into
Row is accumulative, in other words, using the second counter k to reporting sampled value XcNumber counted.Such as to the second count value k
It adds up, k=k++.
In one embodiment, in order to be further reduced the quantity for the information/data transmitted in channel, wireless parking stall measure
Node 110 can utilize answering interval N3Carry out requirement wireless router 120 connected to it and carry out response.Wireless router 120
Response, then it represents that wireless router 120 has received the sensing data that wireless parking stall detection node 110 reports.Specifically, may be used
Answering interval N is preset with the control unit by wireless parking stall detection node 1103, every an answering interval N3, then wireless vehicle
Position detection node 110 requires wireless router 120 connected to it to carry out response.Wherein, each answering interval N3In can wrap
Containing one or more sampling interval Tc.In other words, in an answering interval N3Interior, wireless parking stall detection node 110 can basis
Sampling interval TcThe one or more sampled value X of acquisitionc.Further, in each answering interval N3When inside reporting sensing data, nothing
Wireless router 120 is needed to carry out response, i.e., wireless parking stall detection node 110 reports sensing data using unresponsive mode.More into
One step, answering interval N3It can represent that wireless parking stall detection node 110 reports the number of sensing data.It that is to say, wirelessly
Parking stall measure node 110 often reports N3Secondary sensing data requires 120 response of wireless router once.
Answering interval N3Refer to, wireless parking stall detection node 110 needs after sensing data is sent to wireless router 120
Receive the cycle of the answer signal of wireless router.Parking stall detection node 110 that 120 response of wireless router is wireless is for example, nothing
An information is replied/fed back to line router 120 to wireless parking stall detection node 110, to show that wireless router has been received by section
The sensing data that point is sent.Wireless router 120 represents wireless parking stall measure without the wireless parking stall detection node 110 of response
Node 110 need not judge whether wireless router receives sensing number after sensing data is sent to wireless router 120
According to without the wireless parking stall detection node 110 of reply/feedback, whether it receives from wireless parking stall measure wireless router 120
The sensing data that node is sent, this is wireless, and parking stall detection node 110 is also not concerned with whether wireless router 120 receives its transmission
Sensing data.
Fig. 3 is the flow chart of intelligent parking lot wireless communications method according to another embodiment of the present invention.
At step S310, intiating radio parking stall measure node is used to gather and report the relevant number of parking stall sensing data
According to, and establish and connect with wireless router.
Step S310 is similar to step S210, it is necessary to initialize the first counter/count value n, the second counter/counting
Value k.Also need to initialization answer failed counter/count value m.
The answer failed counter can be used for counting the number of answer failed.In other words, whenever wireless vehicle
Position detection node 110 requires 120 response of wireless router, and wireless parking stall detection node 110 does not receive wireless router 120 and makees
For response feedback/recovery information when, then the number of answer failed is counted using the answer failed counter, to obtain
Answer failed count value m, the m are the natural number more than or equal to zero.
It is similar to step S220-S280 at step S320, the sensing number of the wireless corresponding parking stall of parking stall detection node acquisition
According to further reporting the sensing data of acquisition, and counted for the number to reporting sensing data.
At step S330, judge whether current second count value k is more than answering interval N3。
When current second count value k is more than answering interval N3When, then enter step S340.
When current second count value k is less than or equal to answering interval N3When, then return to step S320, continues to reporting sensing
The number of data is counted.
At step S340, while sensing data is reported, it is desirable that wireless router response.
Wireless parking stall detection node 110 reports the sensing data of this acquisition to wireless router 120 connected to it, and
It is required that 120 response of wireless router, to determine that wireless router 120 has been received by sensing data.
At step S350, judge whether to receive the response from wireless router.
Wireless parking stall detection node 110 judges whether to receive send from wireless router 120 connected to it, use
Reply/feedback information of sensing data has been received in expression(Response).
It if receiving the response of wireless router 120, enters step at S310, it is possible to further to the second count value
It is initialized.
If not receiving the response of wireless router 120, enter step at S360.
At step S360, the number of answer failed is added up.
When not receiving the response of wireless router 120, wireless parking stall detection node 110 to response fail count value m into
Row is accumulative, such as carries out accumulating operation, m=m+1.
At step S370, judge whether current answer failed count value m is more than answer failed threshold value M.
Answer failed threshold value M can be used for weighing the whether already off connection of both sides to communicate, the answer failed
Threshold value M can carry out pre-set empirical value according to application scenarios.
When answer failed count value m is more than answer failed threshold value M, then S380 is entered step.
When answer failed count value m is less than or equal to answer failed threshold value M, then return to step S340, wireless parking stall are examined
It surveys node 110 and continues 120 response of requirement wireless router, to avoid the last time information of 120 response of wireless router is required to lose
It loses, wireless router 120 is caused not receive the information that wireless parking stall detection node 120 requires response.
At step S380, connection is re-established between wireless parking stall detection node 110 and wireless router 120.
Can communication unit dormancy be controlled for a period of time by the control unit in wireless parking stall detection node 110, then by
The communication unit is opened in control unit control.After communication unit is opened, access request can be sent to wireless router 120,
And after the wireless router 120 is verified, wireless parking stall detection node 110 and wireless router 120 establish connection.
After wireless parking stall detection node 110 and wireless router 120 re-establish connection, return to step S310, again
Start initialization step, further, it is possible to be initialized to the second count value.
The present invention reports interval to report sampled value using difference, and interval, sampling are reported using smaller when sampled value changes greatly
Value variation hour reports interval using larger, avoids in the case where parking space state does not change, reports substantial amounts of sampling
Value, is reduced the data volume transmitted in wireless channel, the probability of channel congestion is reduced with this.Further, the present invention works as node
When reporting the sampled value to reach certain amount, it is desirable that whether wireless router response, other situations should without paying close attention to wireless router
It answers, the probability of channel congestion is reduced with this.Further, wireless parking stall detection node of the invention is mainly responsible for sensing data
Acquisition when necessary, can also be based on these sensing datas and carry out parking space information judgement, wireless parking stall measure is improved with this
The work efficiency of node.
The present invention also provides a kind of intelligent parking lot wireless communication systems.
Within the system, it can include being used to gather for intiating radio parking stall measure node and parking stall is reported to sense number
The module connected is established according to relevant data, and with wireless router.The specific embodiment of the module is referred to step
S210。
The sensing data of corresponding parking stall is gathered for wireless parking stall detection node, and is carried out for the sensing data to acquisition
The module of counting.The specific embodiment of the module is referred to step S220.
For judging whether the sensing data of acquisition is more than the module of predetermined threshold S.It that is to say for by each of parking stall
Module of a sampled value compared with the variable quantity of initial samples value compared with default variation threshold value, wherein:If variation
Amount is more than variation threshold value, then reports sampled value using the minor cycle;If variable quantity is less than variation threshold value, using on large period
Report sampled value.Wherein, sampled value is sensing data.Further, the minor cycle includes one or more sampling intervals;Large period bag
Include one or more sampling intervals;The one or more that minor cycle includes is using interval more than the one or more that large period includes
Using interval.The specific embodiment of the module is referred to step S230.
For by initial samples value X0It is assigned a value of this sampled value XcModule.The specific embodiment of the module can join
According to step S240, step S260.
For judging whether current first count value n reports interval N more than first1Module.The specific implementation of the module
Mode is referred to step S250.
For judging whether current first count value n reports interval N more than second2Module.The specific implementation of the module
Mode is referred to step S270.
For the sampled value X for gathering thiscWireless router 120 is reported to, and to reporting sampled value XcNumber carry out
The module of counting.The specific embodiment of the module is referred to step S280.
It is used to gather the relevant data of parking stall sensing data, and and wireless routing for intiating radio parking stall measure node
Device establishes the module of connection, and the specific embodiment of the module is referred to step S310.
The sensing data of corresponding parking stall is gathered for wireless parking stall detection node, further reports the sensing data of acquisition,
And it for the number of sensing data is reported to carry out counting module, that is to say for being counted to the sampled value reported, to obtain
The module of second count value.The specific embodiment of the module is referred to step S320.
For judging whether current second count value k is more than answering interval N3Module.Further, further include when second
When count value is more than answering interval, the module of wireless router response is required while sampled value is reported.When not receiving nothing
During the response message of line router, the module that is counted to the response frequency of failure.The specific embodiment of the module can join
According to step S330, step S340.
For judging whether to receive the module of the response from wireless router.The specific embodiment of the module can join
According to step S350.
For carrying out accumulative module to the number of answer failed.The specific embodiment of the module is referred to step
S360。
For judging whether current answer failed count value m is more than the module of answer failed threshold value M.The specific reality of the module
The mode of applying is referred to step S370.
For when the number of answer failed is more than answer failed threshold value, the mould being connected to be re-established with wireless router
Block.The specific embodiment of the module is referred to step S380.
Due to the specific embodiment of the modules included by the system of the present invention and the step in the method for the present invention
Specific embodiment be corresponding, since Fig. 1-Fig. 3 being described in detail, thus in order not to obscure this hair
It is bright, no longer the detail of modules is described herein.
The foregoing is merely the embodiment of the present invention, are not intended to limit the invention, for those skilled in the art
For member, the invention may be variously modified and varied.Any modification within the spirit and principles of the invention, being made,
Equivalent substitution, improvement etc., should be included within scope of the presently claimed invention.