Embodiment
Main thought of the present invention is, when ground, parking stall magnetic strength intensity data changes greatly, wireless parking stall detection node adopts less report cycle to report the sensing data collecting.When the magnetic strength intensity data variation hour of ground, parking stall, wireless parking stall detection node adopts larger report cycle to report the sensing data collecting.Wherein this sensing data can be ground magnetic strength intensity data.Further, parking stall detection node that the present invention is wireless, to reporting the number of times of sensing data to count, when reaching some, requires and replying without router that wireless parking stall detection node is connected.
The present invention has reduced the data volume of transmitting in wireless channel by which, with this, reduce the probability of channel congestion, improves the operating efficiency of system.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
Intelligent parking lot wireless communication network system structural representation in conjunction with shown in Fig. 1, describes technical scheme of the present invention.
This intelligent parking lot cordless communication network can comprise one or more wireless parking stall detection node 110-1,110-2 ... 110-N, one or more wireless router 120-1 ... 120-N, one or more wireless access point device 130.
Main being responsible for of parking stall detection node that each is wireless 110 gathers the sensing data in certain limit, and the sensing data of collection is reported to wireless access point device 130 by wireless router 120.This certain limit at least comprises the area of a parking stall.This sensing data can be the ground magnetic strength intensity data of parking stall.
Particularly, can wireless parking stall detection node 110 be set in each parking stall correspondence.Each is wireless, and parking stall detection node 110 can comprise sensing unit, monitoring unit, communication unit.Wherein: sensing unit, can gather the sensing data of corresponding parking stall.Control unit, the collection period/sampling interval of sensing data that can monitoring sensor unit, the period/interval of supervision and reporting sensing data etc.Communication unit, can be controlled by this control unit, and realize sensing data, sensing data uploads etc. in other words.
The sensing data that wireless parking stall detection node 110 gathers has certain regularity, and this regularity is relevant to the variation of the ground magnetic strength intensity data of the variation of parking space state or caused this parking stall of variation of parking stall surrounding enviroment.For example, when parking stall is in the occupied one longer period, sensing unit in wireless parking stall detection node 110, the sensing data gathering can not have greatly changed, or, when parking space state changes, while having vehicle enter or go out parking stall, sensing unit in wireless parking stall detection node 110, the sensing data of collection can send larger variation.The present invention is according to this regularity, control each wireless parking stall detection node 110-1,110-2 ... 110-N gathers sensing data, for example, when sensing data variation hour, adopts the larger cycle to report the sensing data of sensing unit collection; When sensing data changes greatly, adopt the less cycle to report the sensing data of sensing unit collection.Thereby the implementation method by this mechanism, makes most applications, each is wireless parking stall detection node 110-1,110-2 ... 110-N sends with the larger cycle sensing data that its sensing unit gathers.Like this, can effectively avoid the overabundance of data transmitting in wireless channel and cause the generation of wireless channel congestion problems.The mode reported data that employing large period and minor cycle combine, the fluctuation that can also follow the tracks of ground, parking stall magnetic induction changes.When the magnetic induction variation peripherally of detector node is greater than default thresholding, adopt minor cycle reported data, adopt large period reported data when variation is less than default thresholding, reported data can be followed the tracks of the large minor swing of ground, parking stall magnetic induction in time like this.
In system, can arrange some wireless router 120-1 ... 120-N, with one or more wireless parking stall detection node 110-1,110-2 ... 110-N carries out wireless connections, and, the sensing data that each wireless router 120 can report from the wireless parking stall detection node 110 corresponding with it for reception, and this sensing data is sent to wireless access point device 130.
The sensing data that wireless access point device 130 can report for the treatment of each wireless parking stall detection node 110, and the parking space state of each detection node 110 corresponding parking stall, wireless parking stall is carried out to real-time renewal.In addition, wireless access point device 130 can also send control information to wireless parking stall detection node 110, the wireless router 120 in system.Such as: restart, close, parameter configuration etc.
According to embodiments of the invention, provide a kind of intelligent parking lot wireless communications method.Below in conjunction with Fig. 1 and Fig. 2, intelligent parking lot wireless communications method is according to an embodiment of the invention described.
With reference to figure 1-Fig. 2, wherein, Fig. 2 is the flow chart of intelligent parking lot wireless communications method according to an embodiment of the invention.
At step S210 place, intiating radio parking stall measure node is used for gathering and report the data that parking stall sensing data is relevant, and connects with wireless router.
Can be to initial sampled value (X
0), the first counter/count value (n), the second counter/count value (k) carry out initialization.
Sampled value refers to the sensing data of this parking stall of wireless parking stall detection node collection/sampling.
Initial sampled value is the fiducial value for comparing with sampled value.The sampled value X that last time sampling can be obtained
pas this initial sampled value X
0.That is, X
0=X
p.Or can be using the sampled value that sampling obtains for the first time as initial sampled value.Or set in advance a rational numerical value as initial sampled value according to practical experience.
The first counter is counted for the sensing data that wireless parking stall detection node 110 is gathered.The count value n of this first counter is more than or equal to 0 natural number.
The second counter is counted for the sensing data that wireless parking stall detection node 110 is reported.The count value k of this second counter is more than or equal to 0 natural number.Can, by reporting the number of times of sensing data to count, determine whether needing 120 pairs of wireless parking stall detection node 110 of wireless router to reply.
At each wireless parking stall detection node 110-1 of initialization, 110-2, during 110-N, can be by one or more wireless parking stall detection node 110-1, 110-2, 110-N and wireless router 120-1, a wireless router 120 in 120-N carries out wireless connections, in order to by each wireless parking stall detection node 110-1, 110-2, the sensing data that 110-N gathers, report connected wireless router 120, and by wireless router 120, sensing data is for example sent to wireless access point device 130(, data processing server, cloud processing server etc.).Particularly, each wireless parking stall detection node 110-1,110-2 ... 110-N initial phase, each wireless parking stall detection node 110-1,110-2 ... when 110-N starts, can to each wireless router 120-1 ... 120-N sends access request.In position, a wireless router 120 nearest with the wireless parking stall detection node 110 that sends access request, can verify this access request, when 120 pairs of these access requests of wireless router are verified, and when sending the wireless parking stall detection node 110 joining request and make response (access successfully confirm), being connected between wireless parking stall detection node 110 and this wireless router 120 is established.
At step S220 place, wireless parking stall detection node gathers the sensing data of corresponding parking stall, and counts for the sensing data gathering.
Here, mainly by each wireless parking stall detection node 110-1,110-2 ... sensing unit in 110-N carries out the collection of sensing data.The sample sensing data of (collection) of sensing unit is sampled value X
c, this sampled value X
cit can be ground magnetic strength intensity data.
Can pass through each wireless parking stall detection node 110-1,110-2 ... control unit in 110-N, default sampling interval T
c, according to this sampling interval T
c, every a sampling interval T
c, in the detection node 110 of wireless parking stall, sensing unit carries out once sampling to the sensing data of parking stall.
The every once sampling sampled value of sensing unit X
c, control unit is that control counter carries out accumulating operation, as, the first count value n is carried out to add-one operation, n=n+1.Number of times with 110 samplings of the wireless parking stall of cumulative calculation detection node.
In one embodiment, wireless parking stall detection node 110 can adopt the different intervals that reports to report sensing data.Particularly, control unit that can be by wireless parking stall detection node 110 is default report interval T, according to this, reports interval T, reports interval T every one, and wireless parking stall detection node 110 reports sampled value X one time
c.Wherein, at one, report in interval T, can comprise one or more sampling interval T
c, that is to say, in a report cycle T, wireless parking stall detection node 110 can be according to sampling interval T
c, gather one or more sampled value X
c.Further, can preset a plurality of interval T that report by control unit.According to the situation of change of sensing data, wireless parking stall detection node 110 can select the different intervals that reports to report sampled value X
c.Preferably, default two report interval in the present invention, and first reports interval N
1, second reports interval N
2, wherein: N
1< N
2.When sensing data changes greatly, can adopt numerical value less first report interval N
1(minor cycle), when sensing data change hour can adopt numerical value greatly second report interval N
2(large period).Wherein, this first reports interval N
1with second report interval N
2be to be all greater than zero numerical value, this numerical value can gather the number of times of sensing data for expression, that is to say, first reports interval N
1with second report interval N
2after can representing to gather how many times sensing data, report once.In unit interval, adopt first to report interval N
1report the number of times of sensing data to be greater than and adopt second to report interval N
2report the number of times of sensing data.
At step S230 place, whether the variable quantity of the sensing data that judgement gathers is greater than predetermined threshold S.
Can a preset variation threshold value (S) be predetermined threshold S, for judging sensing data (the sampled value X of the corresponding parking stall that wireless parking stall detection node 110 gathers
c) variable quantity whether reach the degree that can make parking space state change.
Particularly, this sampled value X
cwith respect to initial sampled value X
0variable quantity whether exceed and change threshold value S, as, judgement | X
c-X
0| whether >S sets up.The present invention is preferred, the sampled value X that last time sampling is obtained
pas this initial sampled value, measure this sampled value X
cwith respect to sampled value X last time
pvariation whether exceed and change threshold value S, as, judgement | X
c-X
p| whether >S sets up.
If set up, i.e. this sampled value X
cwith initial sampled value X
0the absolute value of difference be greater than predetermined threshold value S, | X
c-X
0| >S, enter step S240, parking space state may change.
If be false, i.e. this sampled value X
cwith initial sampled value X
0the absolute value of difference be less than or equal to predetermined threshold value S, | X
c-X
0|≤S, enter step S260, parking space state remains unchanged, and can postpone sampled value X
creport, to reduce the data volume of transmitting in channel.
At step S240 place, by initial sampled value X
0assignment is this sampled value X
c.In other words, by this sampled value X
csubstitute original initial sampled value X
0, by this sampled value X
cnew initial sampled value X when carrying out judging whether next time to report sensing data
0, i.e. X
cbecome X
0, as: X
0=X
c.
At step S250 place, judge whether current the first count value n is greater than first and reports interval N
1.
When being greater than first, current the first count value n reports interval N
1time, enter step S280.
When being less than or equal to first, current the first count value n reports interval N
1time, enter step S220, continue to gather the sensing data of this parking stall.
At step S260 place, with step, S240 is similar, by initial sampled value X
0assignment is this sampled value X
c.
At step S270 place, judge whether current the first count value n is greater than second and reports interval N
2.
When being greater than second, current the first count value n reports interval N
2time, enter step S280.
When being less than or equal to second, current the first count value n reports interval N
2time, enter step S220, continue to gather the sensing data of this parking stall.
At step S280 place, by the sampled value X of this collection
creport to wireless router 120, and to reporting sampled value X
cnumber of times count.
Wireless parking stall detection node 110 is by sampled value X
creport to coupled wireless router 120, and return to step S210.Concrete, can pass through each wireless parking stall detection node 110-1,110-2 ... the sensing data that communication unit in 110-N reports needs send to each wireless router 120-1 ... communication unit in 120-N, again by each wireless router 120-1 ... communication unit in 120-N is sent to the communication unit in wireless access point device 130 by sensing data, and external network and the application interface in WAP (wireless access point) (AP) equipment 130 carries out subsequent treatment to sensing data again.
As this sampled value X
cwith initial sampled value X
0the absolute value of difference while being greater than predetermined threshold value S, represent that parking space state can change, situation about remaining unchanged compared to parking space state, at this moment, wireless parking stall detection node 110 need to report a large amount of sampled values to connected wireless router 120, so that by the change of having analyzed the whether real generation of parking space state of these sampled values.Further, by current the first count value n is reported to interval N with numerically less first
1compare, determine whether to report sampled value, wireless parking stall detection node 110 gathers sensing data N
1inferior reporting once.So, realized, when the sensing data in the parking stall gathering changes greatly, (first reports interval N to adopt the minor cycle
1) report sensing data.
As this sampled value X
cwith initial sampled value X
0the absolute value of difference while being less than or equal to predetermined threshold value S, represent that parking space state does not change, can there is not larger change in the sensing data that wireless parking stall detection node 110 collects, at this moment, wireless parking stall detection node 110 does not need real-time report sensing data.Further, can by by current the first count value n with numerically larger first report interval N
2compare every collection N
2the inferior sensing data that reports a time.Therefore, realized, in the sensing data variation hour of the parking stall gathering, (second reports interval N to adopt large period
2) carry out reported data, to reduce sensing data, report number of times, reduced the energy consumption of wireless parking stall detection node 110 and the probability of channel congestion, improved the reliability of wireless transmission.
Further, wireless parking stall detection node 110 reports the sampled value X of this collection
ctime, need to that is to say reporting number of times to add up, utilize the second counter k to reporting sampled value X
cnumber of times count.For example the second count value k is added up, k=k++.
In one embodiment, in order further to reduce the quantity of the information/data of transmitting in channel, wireless parking stall detection node 110 can be utilized answering interval N
3come the connected wireless router 120 of requirement to reply.Wireless router 120 is replied, and represents that wireless router 120 received the sensing data that wireless parking stall detection node 110 reports.Particularly, can preset answering interval N by the control unit of wireless parking stall detection node 110
3, every an answering interval N
3, wireless parking stall detection node 110 requires connected wireless router 120 to reply.Wherein, each answering interval N
3in can comprise one or more sampling interval T
c.That is to say, at an answering interval N
3in, wireless parking stall detection node 110 can be according to sampling interval T
cgather one or more sampled value X
c.Further, at each answering interval N
3while inside reporting sensing data, without wireless router 120, reply, wireless parking stall detection node 110 adopts nonreply mode to report sensing data.Further, this answering interval N
3can represent that wireless parking stall detection node 110 reports the number of times of sensing data.That is to say, wireless parking stall detection node 110 often reports N
3inferior sensing data, requires wireless router 120 to reply once.
Answering interval N
3refer to, wireless parking stall detection node 110 send sensing data to wireless router 120 after, the cycle that need to receive the answer signal of wireless router.Wireless router 120 is for example replied wireless parking stall detection node 110, and wireless router 120 is to an information of reply/feedback of wireless parking stall detection node 110, to show that wireless router has received the sensing data that node sends.Wireless router 120 is without replying wireless parking stall detection node 110, represent that wireless parking stall detection node 110 is after transmission sensing data is to wireless router 120, do not need to judge whether wireless router receives sensing data, also without replying/feed back wireless parking stall detection node 110, whether it receives the sensing data sending from wireless parking stall detection node to wireless router 120, and parking stall detection node 110 that this is wireless is not paid close attention to the sensing data whether wireless router 120 receives its transmission yet.
Fig. 3 is the flow chart of intelligent parking lot wireless communications method according to another embodiment of the present invention.
At step S310 place, intiating radio parking stall measure node is used for gathering and report the data that parking stall sensing data is relevant, and connects with wireless router.
This step S310 is similar to step S210, needs initialization the first counter/count value n, the second counter/count value k.Also need initialization answer failed counter/count value m.
This answer failed counter, the number of times that can answer failure for correspondence is counted.That is to say, whenever requiring wireless router 120, wireless parking stall detection node 110 replys, and wireless parking stall detection node 110 do not receive wireless router 120 as reply feedback/recovery information time, utilize this answer failed counter to count the number of times of answer failed, to obtain answer failed count value m, this m is more than or equal to zero natural number.
At step S320 place, S220-S280 is similar to step, and wireless parking stall detection node gathers the sensing data of corresponding parking stall, further reports the sensing data of collection, and for to reporting the number of times of sensing data to count.
At step S330 place, judge whether current the second count value k is greater than answering interval N
3.
When current the second count value k is greater than answering interval N
3time, enter step S340.
When current the second count value k is less than or equal to answering interval N
3time, return to step S320, continue reporting the number of times of sensing data to count.
At step S340 place, when reporting sensing data, require wireless router to reply.
Wireless parking stall detection node 110 reports the sensing data of this collection to connected wireless router 120, and requires wireless router 120 to reply, to determine that wireless router 120 has received sensing data.
At step S350 place, judge whether to receive replying from wireless router.
That wireless parking stall detection node 110 judges whether to receive is that send from connected wireless router 120, for representing to receive the reply/feedback information (replying) of sensing data.
If receive replying of wireless router 120, enter step S310 place, further, can carry out initialization to the second count value.
If do not receive replying of wireless router 120, enter step S360 place.
At step S360 place, the number of times of answer failed is added up.
When not receiving the replying of wireless router 120,110 pairs of wireless parking stall detection node are replied fail count value m and are added up, as carry out accumulating operation, m=m+1.
At step S370 place, judge whether current answer failed count value m is greater than answer failed threshold value M.
Whether this answer failed threshold value M, can disconnect for weighing the both sides that communicate, and this answer failed threshold value M can be the empirical value setting in advance according to application scenarios.
When answer failed count value m is greater than answer failed threshold value M, enter step S380.
When answer failed count value m is less than or equal to answer failed threshold value M, return to step S340, wireless parking stall detection node 110 continues to require wireless router 120 to reply, with the information dropout of avoiding the last time to require wireless router 120 to reply, cause wireless router 120 not receive wireless parking stall detection node 120 and require the information of replying.
At step S380 place, between wireless parking stall detection node 110 and wireless router 120, re-establish connection.
Can control communication unit dormancy a period of time by the control unit in wireless parking stall detection node 110, then control and open this communication unit by this control unit.After communication unit is unlocked, can send access request to wireless router 120, and after this wireless router 120 is verified, wireless parking stall detection node 110 and wireless router 120 connect.
In wireless parking stall detection node 110 and wireless router 120, re-establish after connection, return to step S310, restart initialization step, further, can carry out initialization to the second count value.
The present invention adopts difference to report interval to report sampled value, when changing greatly, sampled value adopts the less interval that reports, sampled value variation hour adopts the interval that reports greatly, avoid in the situation that parking space state does not change, report a large amount of sampled values, reduce the data volume of transmitting in wireless channel, with this, reduced the probability of channel congestion.Further, the present invention, when node reports sampled value to reach some, requires wireless router to reply, and whether other situations reply without paying close attention to wireless router, with this, reduce the probability of channel congestion.Further, wireless parking stall of the present invention detection node is mainly responsible for the collection of sensing data, when being necessary, also can carry out parking space information judgement based on these sensing datas, with this, improves the operating efficiency of wireless parking stall detection node.
The present invention also provides a kind of intelligent parking lot wireless communication system.
In this system, can comprise for intiating radio parking stall measure node for gathering and report the data that parking stall sensing data is relevant, and the module connecting with wireless router.The embodiment of this module can be with reference to step S210.
For wireless parking stall detection node, gather the sensing data of corresponding parking stall, and for the module that the sensing data gathering is counted.The embodiment of this module can be with reference to step S220.
For judging whether the sensing data of collection is greater than the module of predetermined threshold S.That is to say the module for each sampled value of parking stall is compared with respect to the variable quantity of initial sampled value and default variation threshold value, wherein: if variable quantity is greater than variation threshold value, adopt the minor cycle to report sampled value; If variable quantity is less than variation threshold value, adopt large period to report sampled value.Wherein, sampled value is sensing data.Further, the minor cycle comprises one or more sampling intervals; Large period comprises one or more sampling intervals; One or more employings interval that minor cycle comprises is greater than one or more employings interval that large period comprises.The embodiment of this module can be with reference to step S230.
Be used for initial sampled value X
0assignment is this sampled value X
cmodule.The embodiment of this module can be with reference to step S240, step S260.
Be used for judging whether current the first count value n is greater than first and reports interval N
1module.The embodiment of this module can be with reference to step S250.
Be used for judging whether current the first count value n is greater than second and reports interval N
2module.The embodiment of this module can be with reference to step S270.
Be used for the sampled value X of this collection
creport to wireless router 120, and to reporting sampled value X
cthe module counted of number of times.The embodiment of this module can be with reference to step S280.
For intiating radio parking stall measure node for gathering the data that parking stall sensing data is relevant, and the module connecting with wireless router, the embodiment of this module can be with reference to step S310.
For wireless parking stall detection node, gather the sensing data of corresponding parking stall, further report the sensing data of collection, and for reporting the number of times of sensing data to carry out counting module, that is to say for the sampled value reporting is counted, to obtain the module of the second count value.The embodiment of this module can be with reference to step S320.
Be used for judging whether current the second count value k is greater than answering interval N
3module.Further, also comprise when the second count value is greater than answering interval the module that requires wireless router to reply when reporting sampled value.When not receiving the response message of wireless router, the module of counting replying the frequency of failure.The embodiment of this module can be with reference to step S330, step S340.
For judging whether to receive the module of replying from wireless router.The embodiment of this module can be with reference to step S350.
For the number of times of answer failed being carried out to the module of accumulative total.The embodiment of this module can be with reference to step S360.
For judging whether current answer failed count value m is greater than the module of answer failed threshold value M.The embodiment of this module can be with reference to step S370.
For when the number of times of answer failed is greater than answer failed threshold value, re-establish with wireless router the module being connected.The embodiment of this module can be with reference to step S380.
Because the embodiment of the included modules of system of the present invention is corresponding with the embodiment of step in method of the present invention, owing to Fig. 1-Fig. 3 being described in detail, so for not fuzzy the present invention, no longer the detail of modules is described at this.
The foregoing is only embodiments of the invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in claim scope of the present invention.