A kind of magnitude of traffic flow method for real-time monitoring based on smart phone
Technical field
The present invention relates to a kind of traffic throughput monitor systems, hand over more particularly to a kind of real-time online based on smart phone
Through-current capacity monitors system.
Background technique
With China's expanding economy, city automobile ownership is increasing, and city vehicle congestion constantly aggravates, this existing
As especially prominent during festivals or holidays.
The mode of existing most common monitoring traffic congestion is that manpower monitoring is monitored with camera probe.When certain a road section occurs
When traffic congestion, by the driver link traffic police on the section, dredged according to field condition after traffic police arrives at.This mode is not only
Waste of manpower, and efficiency is lower.Another way is directly to judge road using the image in camera probe shooting street with this
Jam situation.There are two disadvantages for this method:First, the light such as this method is not suitable for night, incity bridge is got down the highway
The dim place of line;Second, probe installation number is difficult to realize comprehensively monitor when few, and installation of popping one's head in excessively will lead to prison
Control cost is substantially increased.
For this purpose, novel traffic flow monitoring means are suggested.Such as《A kind of road traffic flow of the patent No. 201110439431
Amount acquisition and prediction technique》The traffic throughput monitor system of proposition being monitored using electromagnetic induction method.When vehicle is by pacifying
When filling the road surface of electromagnetic coil, electromagnetic detection signal changes, and system is counted by the variation of statistics electromagnetic signal and crossed
The quantity of vehicle, and the parameters such as vehicle flowrate in specified period, average speed, occupation rate and traffic density are obtained, realize traffic flow
The monitoring of amount.But electromagnetic coil needs excavated pavement during installation, and installation process is inconvenient.Also it has been proposed that using ultrasonic wave
The speed of method or Doppler method monitoring vehicle, but ultrasonic wave, vulnerable to ambient temperature, airflow influence, Doppler method is unable to monitor static
Or the object of low-speed motion.《201320243123 combined type traffic flow monitoring of the patent No.》It then proposes a kind of by a variety of detection systems
System carries out the method integrated while monitored, and to reduce interference of the external environment to monitoring result, but the monitoring that composite algorithm uses is set
Standby more, processing data are huger, complicated integral structure, and higher cost.In addition, above-mentioned monitoring method does not have drafting number
The function of word map, and gained information can not be sent to driver by wireless network.
Currently, thering is system described in related patents to have the function that gained traffic information is sent to driver, such as《The patent No.
201210202111 vehicle flowrate monitoring devices》, which is onboard equipped with terminal module, and the entrance on road installs master control mould
Block, each other receiving and transmitting signal.Main control end receives the signal that terminal transmits, and determines speed and the position of vehicle, carries out to all data
Processing, analyzes current road conditions, and gained information is sent to terminal.But the system cost is higher, the discrepancy of automobile and each road
Mouth requires installation main control module to realize the information exchange with terminal module.
In contrast, the more comprehensive system of low in cost and function has《A kind of unconscious ginseng of the patent No. 201210551324
With magnitude of traffic flow real-time monitoring system》.The invention is a kind of based on Android operation system, wireless communication technique and network technology
Traffic flow monitoring technology.Its working principle is that:1)It is mounted on the mobile phone end software for having acceleration transducer function
The acceleration and GPS coordinate information of mobile phone are actively acquired, and is uploaded to server;2)Server divides institute's value
Analysis calculates somewhere using acceleration change and GPS coordinate information and traffic jam occurs, and sends information to smart phone;
3)Traffic information is shown in a graphical form on the cartographic information at mobile phone end interface.Deficiency existing for the system
Be in:First, which is based primarily upon Android operation system, and the mobile phone terminal of other operating systems is not available, server
The information of vehicle where these mobile phones can not be obtained;Second, the system using the acceleration change of equipment as judge road conditions according to
According to(Automobile can frequent start and stop, acceleration, acceleration when encountering traffic jam), but the pedestrian of road can also carry equipped with the system
Equipment, their acceleration and location information can also be gathered by the server and be difficult to distinguish with vehicle, so as to cause data appearance
It is chaotic;Third, the system do not have the function of traffic accident monitoring.
To sum up, need a new traffic throughput monitor system at present, can real time on-line monitoring traffic flow information, be
Need to know traffic information appoint can people provide real-time road condition information, the situation of traffic congestion is effectively relieved with this.
Summary of the invention
1, the purpose of the present invention.
For the present invention in order to solve conditions for equipment use limitation in the prior art, project amount is big, is easy between at high cost, signal
Interference, and the problems such as traffic information real-time delivery data are not comprehensive enough, and propose a kind of traffic based on mobile communications device
Flow method for real-time monitoring.
2, the technical solution adopted in the present invention.
Real-time online traffic throughput monitor system based on smart phone of the invention, including with navigation locating function
Communication device is monitored in accordance with the following steps:
Step 1, initialization, communication device initialization, which receives, comes from the current traffic information of server, collects the communication device
Position and speed information;
After step 2, information are collected, the location information of communication device is analyzed and determined, is judged whether in urban district or public affairs
On the road, 3 are gone to step if on urban district or highway,;If current to server inquiry not on urban district or highway
Traffic information;
The position and speed information of communication device is uploaded to server by wireless network by step 3;
Step 4, according to velocity estimated crossing, be divided into unobstructed road conditions, peak period road conditions, traffic congestion road conditions, crossroad,
Accident road conditions:
The speed of service of unobstructed its vehicle of road conditions is fast, and VELOCITY DISTRIBUTION is steadily without larger fluctuation;
Peak period road conditions are in the road of peak period on and off duty, and road side is in unobstructed state, and the road other side is slightly gathered around
Stifled, running velocity is slower;
Traffic congestion road conditions, when traffic congestion, the travel speed of vehicle is very slow;
Crossroad, road side speed are intended to 0 gradually, and other side car speed is fast, and vehicle is more discrete;
Accident road conditions, once there is traffic accident, accident vehicle speed is 0, and the speed of surrounding vehicles is in central distribution, i.e.,
Closer to the scene of the accident, the speed of vehicle is slower;
Step 5 makes road conditions numerical map after carrying out road condition analyzing, and sends communication device for map.
In further specific embodiment, mobile communications device is positioned by GPS or Beidou or Galileo.
In further specific embodiment, completes the step 5 and satisfy the need automatically after communication device obtains map later
Condition is analyzed, and selects the most suitable route that reaches the destination for driver.
In further specific embodiment, traffic accident occurs for somewhere at this time, and system can sound an alarm, and mark accident
Spot.
3, beneficial effects of the present invention.
(1)Wide coverage:Lack the place of camera to die Dorfstrasse, highway etc., performance is better than existing prison
Examining system.
(2)It is low in cost:This system is low in cost, can be realized without increasing any hardware device, as long as existing intelligence
Mobile phone has GPS and network function substantially, on mobile communication devices installation and operation software, greatly reduces traffic monitoring people
The investment of power and material resources.
(3)Real-time:This system is capable of the information of each smart phone upload of reception, and rapidly by current traffic information
Reach communication device, realize real-time monitoring, transmitted data amount is within 16 bytes, it is only necessary to upload position that GPS gathers arrive and
Velocity information;Obtained when inquiry roads information be by compression processing expression the road degree of crowding data, every 100 meters
Within 4 bytes, any time anywhere can inquire road.
(4)It is for the entire people:This system needs the whole people to participate in, and traffic information is reached server by smart phone by user, this
Sample server could obtain the traffic information in all sections in the whole nation.Meanwhile any user can inquire any road of any moment
The traffic conditions on road.
(5)Safety is easy-to-use:Based on cloud data processing, need to agree to collect data and upload by user;Has traffic
Accident monitoring function.
(6)The traffic accident monitoring function of this system, can allow traffic police to obtain accident information in time, user is according to gained
Information avoids the expansion that section occurs for accident to help accident treatment to work as far as possible.
Detailed description of the invention
Fig. 1 is car speed distribution map when the road is clear,
Car speed distribution map when Fig. 2 is up/down class peak period,
Car speed distribution map when Fig. 3 is traffic congestion,
Fig. 4 is car speed distribution map at crossroad,
Fig. 5 is car speed distribution map when there is traffic accident,
Fig. 6 is the numerical map drawn after road condition analyzing,
Fig. 7 is this system operation principle schematic diagram,
Fig. 8 is this system work flow diagram, and wherein left figure is communication device software workflow, and right figure is server work
Process.
Specific embodiment
In order to enable the auditor especially public of Patent Office that technical spirit of the invention is more clearly understood and have
Beneficial effect, applicant will elaborate by way of examples below, but be not to this hair to the description of embodiment
The limitation of bright scheme, the made only formal but not substantive equivalent transformation of any design according to the present invention are all answered
It is considered as technical solution of the present invention scope.
Embodiment
Mobile communications device must have the positioning functions such as GPS or Beidou or Galileo.This system operation is mounted on logical
Software on T unit obtains position and the velocity information of vehicle in real time.
Communication device receives the current traffic information from server automatically after software operation, and starts to collect communication dress
Set the position and speed information of position.After information has been collected, software is first handled the location information of equipment, and judgement is set
For whether on urban district or highway.If equipment is on a highway, software is again uploaded gained information by wireless network
To server.
After server is collected into speed and the location information of equipment, start to analyze road conditions.The computation model of analysis
According to being:The distribution situation of running velocity is also different when road conditions difference.This system obtains all devices on certain section of highway
Speed, and the jam situation in the section is determined with this at velocity contour according to these numeric renderings.Specifically, unobstructed road
The speed of service of its vehicle of road is fast, and VELOCITY DISTRIBUTION is steadily as shown in Figure 1 without larger fluctuation.Road in peak period on and off duty
Road, road side are in unobstructed state, and congestion is omited in the road other side, and running velocity is slower, but VELOCITY DISTRIBUTION relatively it is steady such as
Shown in Fig. 2.When traffic congestion, the travel speed of vehicle is very slow, and distribution is as shown in Figure 3.At crossroad(When sending out a warning),
VELOCITY DISTRIBUTION is usually as shown in figure 4, road side speed is intended to 0 gradually, and other side car speed is fast, and vehicle is more discrete.
Once there is traffic accident, accident vehicle speed is 0, and the speed of surrounding vehicles is in central distribution, i.e., closer to the scene of the accident, vehicle
Speed it is slower as shown in Figure 5.
After software upload information, server handles all data, draws out the numerical map such as Fig. 6 for describing road conditions
It is shown, and send cartographic information to all communication devices.Equipment can also automatically analyze road conditions after obtaining map, be
Driver selects the most suitable route that reaches the destination.