A kind of parking space state detector with parking index analytic function and method
Technical field
The present invention relates to the parking space state detector in Internet of Things parking position detector field and method, more particularly, to one
Plant parking space state detector and the method with parking index analytic function, belong to intelligent transportation field.
Background technology
It is continuously increased with urban motor vehicle quantity, parking demand grows with each passing day, parking lot scale is increasing, stop
The problems such as efficiency and parking management low SI, projects.Collect parking stall status data in real time, and generate parking index information, be
Parking guidance system and managing system of car parking provide perception basis, contribute to solving parking difficulty, the difficult problem of management.
In similar products on market: parking space state testing equipment includes the car plate detection of supersonic detector, image recognition
Device, geomagnetism detecting device;Parking index includes parking saturation capacity, parking turnover rate, total, average down time of stopping, berth profit
With the key Characteristics Analysis of Parking such as rate.But, all there are the following problems for various implementation methods:
(1) various detectors do not have parking index analysis ability, only merely detect, upload parking space state data, lack
Ability " is thought deeply " it is impossible to meet the needs of sensor information excavation, single function in the front end of weary internet of things equipment;
(2) parking index analysis is completed by background server software, and framework is complicated, efficiency is low.Detector is by parking space state
Data is sent to server, recycles daemon software analysis parking index.Because parking space state data granularity is little, data volume big,
Therefore daemon software analysis process is complicated and real-time is difficult to ensure, and front-end detector computing resource is wasted.
For problem above, parking space state can be realized using the parking space state detector with parking index analytic function
Detection, parking index analysis, information transfer, history data store calling function.
Patent zl201010604807.8 proposes a kind of side-mounted type wireless parking space state based on ultrasonic detection technology
Detector, for the detection of parking stall seizure condition;Patent zl201010500714.0 proposes to utilize parking stall Car license recognition positioner
Whether identification parking stall is occupied, and identifies car plate;Patent zl201220662916.x discloses a kind of type wireless geomagnetic sensor, realizes
Parking stall detects data and is wirelessly transferred.Apparatus described above, detector all realize parking stall measure and initial data sending function, not
It is related to parking index analysis, history data store such as calls at the function.
Patent zl201210018034.4 propose a kind of based on parking index issue and forecast parking guidance system and its
Method, from empty parking space in parking lot and total Berth number ratio as parking index, and calculated by background server and be published to
In each terminal, with the parking space state detector realization rate with parking index analytic function of the present invention have substantial not
With.
As can be seen here, the parking space state detector with parking index analytic function there is no application or research to be related to, and has
Stronger using value, and constantly expand with parking lot scale, parking space state detector network becomes increasingly complex, single
Status detection function is difficult to meet the needs of Internet of Things perception.
Content of the invention
For solving the deficiencies in the prior art, the present invention provides a kind of parking space state detection with parking index analytic function
Device and method, break through the pattern of existing parking stall measure system " headend equipment detects, back-end server is analyzed ", will stop data analysis
Function is integrated in headend equipment, improves the intellectual analysis ability of parking space state detection, reduces the complexity of parking stall measure system;Institute
The dead ship condition detector stated take into account parking space state detection, data upload function, and realize parking index analysis, historical data
Storage calling function.
The technical solution adopted in the present invention is:
A kind of parking space state detection and analysis method, comprise the following steps:
(1) start the detection function of parking stall measure sensor, periodically obtain current vehicle using parking space state analytic unit
The empty full state in position, and empty for current parking stall full status information is transferred to centralized Control coordination unit, if test result twice in front and back
Different, then carry out next step, otherwise, continue this step;
(2) current time is obtained by clock unit, current time information is associated with empty full status values, during formation
Sequence-status data table, and be stored in data storage cell, form sequential-slip condition database;
(3) search for sequential-slip condition database, according to parking index analysis method, by parking index analytic unit difference
Calculate each parking index requiring in the time period, and by parking index information transmission to centralized Control coordination unit;Wherein, institute
The parking index stated includes stop total, average down time and berth occupancy;
And the described sum that stops is total parking quantity within certain working hour for the parking stall, its computation model:
, wherein m is this parking stall parking total quantity in this period, and k is the empty full state value in parking stall in this period
Record strip number, siParking stall sky for i-th record expires state value, and s when parking stall takiesi=1, on the contrary si=0;
Described average down time is the average time all parking cars on parking stall, its computation model:
, wherein t is average down time, tiFor the down time of i-th car, m is to stop sum in this parking stall
Amount;
Described berth occupancy is service efficiency in certain working time section for the parking stall, its computation model:
,
Wherein g is berth occupancy, and n is the total time of this period, tiFor the down time of i-th car, m stops for this parking stall
Car total quantity.
(4) received empty for parking stall full state with transmitting element with parking index data active upload to outside by information
Equipment or system;
(5) information receives the data query instruction receiving external equipment or system with transmitting element, and sends concentration control to
Coordination unit processed, centralized Control coordination unit searches for sequential-status data table according to query statement, calculates and requires in the time period
Parking index, and reply parking index full status information empty with parking stall to external equipment or system.
Wherein, also including in the above-mentioned methods is stopped by centralized Control coordination unit drive control takies the step of indicator lamp
Suddenly.
And a kind of parking stall with parking index analytic function being applied to above-mentioned parking space state detection and analysis method
State detector, including parking stall measure sensor, parking space state analytic unit, clock unit, data storage cell, parking index
Analytic unit, centralized Control coordination unit, information receive and transmitting element;Described parking stall measure sensor, parking space state analysis
Unit connects with centralized Control coordination unit unidirectional sequence;Described clock unit and information are received and are all controlled with concentrating with transmitting element
Coordination unit diconnected processed;And described data storage cell, parking index analytic unit and centralized Control coordination unit then two
Two diconnecteds formed closed-loop paths, and described information receive with transmitting element simultaneously with external equipment or system connectivity;
And the occupancy indicator lamp that stops is also associated with described centralized Control coordination unit.
Wherein, described parking stall measure sensor be ultrasonic detection sensor, image recognition car plate detection sensor or
At least one in geomagnetism detecting sensor.When for ultrasonic detection sensor, its detection range is 2cm -450cm, and
It is output as pulse signal.
Further, described parking space state analytic unit, parking index analytic unit, centralized Control coordination unit are by one piece
Flush bonding processor is constituted;Or described parking space state analytic unit, parking index analytic unit, centralized Control coordination unit
Can also be made up of polylith flush bonding processor.
Further, described information receives single with centralized Control coordination by wirelessly or non-wirelessly communication mode with transmitting element
First diconnected.
Additionally, described centralized Control coordination unit is also associated with stopping takies indicator lamp.
The beneficial effects of the present invention is: realize parking stall empty full state-detection, parking index analysis, information transfer, history
Data storage calling function, extends the simple function pattern of current parking stall state detector, there is provided deeper increment
Information, provides perception information for parking guidance system with managing system of car parking, contributes to solving parking difficulty, the difficult problem of management,
Improve the intellectual analysis level of detection, reduce parking stall measure system complexity, enrich the applied field of parking space state detector
Scape.
Brief description:
Fig. 1 is internal structure schematic diagram of the present invention;
Fig. 2 is workflow diagram of the present invention;
Fig. 3 is parking index calculation flow chart of the present invention;
Fig. 4 is present invention application exemplary plot.
Specific embodiment:
Below in conjunction with the accompanying drawings the present invention is done with specific introduction.
Embodiment one
As shown in Figure 1: the present embodiment is a kind of parking space state detector with parking index analytic function, including parking stall
Detection sensor, described parking stall measure sensor adopts ultrasonic distance measuring module hc-sr04, and range finding detection range is 2cm-
450cm, is output as pulse signal;Certainly, described parking stall measure sensor can also be using image recognition car plate detection sensing
At least one in device or geomagnetism detecting sensor;Above-mentioned parking stall measure sensor is used for unloading lot detection seizure condition, generates
Original analog signal or data signal, and output a signal to parking space state analytic unit.
Parking space state detector described in the present embodiment also include parking space state analytic unit, parking index analytic unit,
Centralized Control coordination unit, clock unit, data storage cell, information receive and transmitting element;Described parking stall measure sensor,
Parking space state analytic unit connects with centralized Control coordination unit unidirectional sequence;Described clock unit and information receive and send list
Unit all with centralized Control coordination unit diconnected;And described data storage cell, parking index analytic unit and centralized Control
Coordination unit then one closed-loop path of diconnected formation two-by-two;And be also associated with stopping on described centralized Control coordination unit
Car takies indicator lamp;Whether occupied it is used to refer to parking stall.
Wherein, the parking space state analytic unit of the present embodiment and parking index analytic unit, centralized Control coordination unit close
Three is one, using one piece of embedded chip stm32f103vet6;Certainly, described parking space state analytic unit, parking index divide
Analysis unit, centralized Control coordination unit can also be made up of polylith flush bonding processor;Described clock unit adopts pcf8563
Clock/calendar chip, can realize the time synchronized renewal in minute, hour, day, the moon, year, make parking stall shape to stm32f103vet6
State detector is without external reference clock correction;Clock unit is connected with iic interface with embedded chip stm32f103vet6;
Described data storage cell adopts sd card, and capacity is 4gb;Described sd card and embedded chip stm32f103vet6 are with spi interface
Connect;Described data storage cell provides memory space for embedded chip stm32f103vet6, preserves real-time parking stall and takies shape
State and instant time, form the time series database of parking stall seizure condition.
Above-mentioned parking space state analytic unit receives the primary signal of parking stall measure sensor, draws car after analyzing and processing
Position whether occupied conclusion, conclusion is exported centralized Control coordination unit;And described parking index analytic unit has meter
Calculation ability, the data being preserved according to parking index analysis method and time series database, calculate parking sum in certain time period,
The average parking index such as down time, berth occupancy, will calculate conclusion and export centralized Control coordination unit;Centralized Control is assisted
Adjust the control logic between cell processing unit it is ensured that synchronizing information between each unit, realize data receiver parsing and send
Drive.
And, in this embodiment, described information receives and adopts high speed can transceiving chip tja1050 with transmitting element, adopts
It is connected with system with external equipment with the wire communication mode of can bus;Certainly, described information receives also may be used with transmitting element
To be connected with system with external equipment using wireless communication mode;Received by centralized Control coordination unit activation bit and send
Unit externally sends information, or receives external information, realizes Frame upload, response, reception.
The detection of parking space state information, storage, analysis, transmission flow and function are concentrated on single parking space state by the present invention
On detector;Single parking space state is detected and analysis by parking stall measure cycle sensor, obtain real-time parking stall empty full
State;Status information and time pairing are formed the sequential-shape of parking stall seizure condition by parking space state analytic unit and clock unit
State database, and be stored in memory;Centralized Control coordination unit carries out in depth to parking space state information, and according to number
Read parking space state information according to interface protocol and obtain parking index, received by information and transmitting element, actively or passively
The parking space state with time tag and parking index information are provided.
Embodiment two
As shown in Figure 2: the present embodiment is the parking space state inspection of the parking space state detector with parking index analytic function
Survey and analysis method, comprise the following steps:
(1) parking space state detector is arranged on place directly over the center of parking garage parking stall, and detection direction is underface,
Supply lines, order wire are laid by crane span structure, conduit;The present embodiment, from the sensor based on ultrasonic detection technology, is installed
3 meters of eminences directly over each parking stall center;It is of course also possible to from the sensor based on image recognition car plate detection technique,
It is arranged on the positive front upper place in opposite parking stall of this parking stall, shooting direction is to face parking stall to be detected;If parking space state detector is pacified
It is contained in motor pool, then select the sensor based on geomagnetism detecting technology, immediately below the center of parking stall installed outdoors, patch ground
Face is installed;Certainly, described geomagnetism detecting sensor can also be arranged on immediately below the center of indoor parking position, and pastes ground
Install.
Open parking stall state detector, obtain the empty full state in current parking stall using parking space state analytic unit periodicity, and
Empty for current parking stall full status information is transferred to centralized Control coordination unit, if test result is different twice in front and back, under carrying out
One step, otherwise, continues this step;
(2) current time is obtained by clock unit, current time information is associated with empty full status values, during formation
Sequence-status data table, and be stored in data storage cell, the sequential-status data library structure of formation and content are as shown in table 1:
M- slip condition database structure and content example table during table 1
;
(3) as shown in figure 3, search sequential-slip condition database, according to parking index analysis method, divided by parking index
Analysis unit calculates each parking index requiring in the time period respectively, and wherein, it is total, average that described parking index includes parking
Down time and berth occupancy;And by parking index information transmission to centralized Control coordination unit;The present embodiment sets front 12
Hour is analysis time section, and with table 1 data instance, calculation procedure is as follows:
(1) search for the data record in 12 hours sections in database, draw 2014-11-13 06:46 to current
8 of 2014-11-13 18:45 are recorded as effectively analyzing object;
(2) calculate the parking of this parking stall total:
Stop sum:;
Each vehicle parking time is respectively 41min, 100min, 139min, 22min;
(3) calculate average down time:
Average down time:;
(4) calculate berth occupancy:
Berth occupancy:;
Obtain this parking stall parking of first 12 hours sum and be 4, average down time is 75.5min, and berth occupancy is
41.91%.
(4) as shown in Figure 4: the present embodiment passes through information and receives empty for parking stall completely state and parking index with transmitting element
Data active upload, to external equipment and background server, is also equipped with application software in background server;Wherein, described outside
Equipment includes taking indicator lamp by the parking of centralized Control coordination unit drive control;When parking stall takies, parking is driven to account for
It is changed into red with indicator lamp;Conversely, being then changed into green;The parking space state detector of the present embodiment adopts wired biography of can bus
Defeated connected mode is connected with zone controller and background server, it is of course also possible to adopt the connection side such as rs485 bus, netting twine
Formula;Can also adopt and be wirelessly transferred connected mode, the such as connected mode such as wireless networking mechanics of communication zigbee, wi-fi.
(5) information receives the information inquiry instruction receiving region of acceptance controller and background server with transmitting element, and
Send centralized Control coordination unit to, centralized Control coordination unit, according to the parking space state in query statement search time section, is counted
Calculate the parking index requiring in the time period, and response query statement.
The above is only the preferred embodiment of patent of the present invention it is noted that common skill for the art
For art personnel, on the premise of without departing from patent principle of the present invention, some improvements and modifications can also be made, these improve and
Retouching also should be regarded as the protection domain of patent of the present invention.