CN108694833A - Traffic abnormal incident detecting system based on binary sensor - Google Patents

Traffic abnormal incident detecting system based on binary sensor Download PDF

Info

Publication number
CN108694833A
CN108694833A CN201810784186.2A CN201810784186A CN108694833A CN 108694833 A CN108694833 A CN 108694833A CN 201810784186 A CN201810784186 A CN 201810784186A CN 108694833 A CN108694833 A CN 108694833A
Authority
CN
China
Prior art keywords
state
value detector
sensor
value
detector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810784186.2A
Other languages
Chinese (zh)
Inventor
李明
张奔牛
李文钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Jiaotong University
CSCEC Xinjiang Construction and Engineering Group Co Ltd
Original Assignee
Chongqing Jiaotong University
CSCEC Xinjiang Construction and Engineering Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Jiaotong University, CSCEC Xinjiang Construction and Engineering Group Co Ltd filed Critical Chongqing Jiaotong University
Priority to CN201810784186.2A priority Critical patent/CN108694833A/en
Publication of CN108694833A publication Critical patent/CN108694833A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0108Measuring and analyzing of parameters relative to traffic conditions based on the source of data
    • G08G1/0116Measuring and analyzing of parameters relative to traffic conditions based on the source of data from roadside infrastructure, e.g. beacons

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The traffic abnormal incident detecting system based on binary sensor that the present invention relates to a kind of, belongs to traffic accident detection technique field, this method comprises the following steps:S1:Every three two-value detectors are constituted into one group of sensor, by multigroup sensor arrangement in the both sides in track, wherein every group of two two-value detectors are arranged in the side of road, remain the other side that next two-value detector is arranged into road;S2:Sensor hardware system and sensor network are built according to multigroup sensor;S3:The operation method of sensor hardware system is set;S4:It is required according to management and control center, data is submitted according to identity ID.It is small, easy to maintain that the obtained system of the design method has many advantages, such as that small, easy for installation, road pavement is destroyed.If installed and used on a large scale in real road, it will greatly improve the accuracy of highway accident detection.

Description

Traffic abnormal incident detecting system based on binary sensor
Technical field
The invention belongs to traffic accident detection technique fields, are related to a kind of traffic abnormal incident inspection based on binary sensor Examining system.
Background technology
Traffic abnormal incident detection is that highway fortune pipe portion door carries out operation management and control, traffic information publication and traffic guidance Basis, personal injury, property loss and avoid secondary traffic accident caused by reducing traffic accident etc. and have and is important Effect.With the increase of the development and traffic information detection means of intelligent transport technology, using traffic information detection means into Row anomalous event automatic identification has very important theoretical and reality for Improving Expressway management level and service level Meaning.
Traffic information is the key that whether portraying and reflect traffic behavior normally, and it is then traffic abnormity thing to obtain traffic information A link the most basic and important in part identification process.For the site environment that highway has a very wide distribution in this way, obtain Take traffic information other than considering its intuitive factor, it is necessary to consider its price, many economic factors such as transmission cost. Studies have shown that classical California algorithms (also known as California algorithm) are as the ginseng for assessing new traffic state judging algorithm performance Algorithm is examined, condition discrimination principle is:The traffic state data compared between adjacent inspection stations differentiates traffic behavior, main traffic shape State parameter is occupation rate.As can be seen that utilizing this traffic state data, highway can be realized by suitable algorithm The detection of traffic abnormal incident.In order to improve the accuracy of detection, the required traffic state data of detection algorithm can also have The magnitude of traffic flow, average speed etc., same classical MacMaster algorithms just need the support of multiple traffic state datas.In order to Highway regulatory level is improved, more accurate intelligent transportation accident detection algorithm is all being studied by each state.It is thus right More stringent requirements are proposed for the sensor of acquisition traffic information.Can obtain multiple traffic state datas, transmission method flexibly, valence The cheap research direction as this sensor of lattice.
Invention content
In view of this, there is simple in structure, strong antijamming capability, cheap the purpose of the present invention is to provide a kind of Traffic abnormal incident detecting system based on binary sensor.
In order to achieve the above objectives, the present invention provides the following technical solutions:
Traffic abnormal incident detecting system based on binary sensor, this method comprise the following steps:
S1:Every three two-value detectors are constituted into one group of sensor, by multigroup sensor arrangement in the both sides in track, In every group of two two-value detectors be arranged in the side of road, remain the other side that next two-value detector is arranged into road;
S2:Sensor hardware system and sensor network are built according to multigroup sensor;
S3:The operation method of sensor hardware system is set;
S4:It is required according to administrative center, data is submitted according to identity ID.
Further, sensor hardware system includes microcontroller in step S2, and each detector is connected to the microcontroller, And it is communicated by serial ports TTL or RS232, every group of sensor is provided with independent identity ID.
Further, sensor network includes multigroup sensor hardware system in step S2, and every group of sensing hardware system is logical It crosses wireless-transmission network and is connected to management and control center.
Further, step S3 is specifically comprised the following steps:
S31:Initialization system is zeroed out operation to register, intermediate variable, timer, reads toggle switch numerical value, The identity ID of baud rate in serial data transmission and management and control centre management software is set;
S32:According to the variation of the state of two-value detector level, and the location logic relationship of two-value detector is combined, obtained Take traffic state data;
S33:Sensor hardware system carries out serial data transmission with management and control center.
Further, step S32 is specifically comprised the following steps:
S321:When vehicle passes through two-value detector, the state of two-value detector is recorded;
S322:The state of the two-value detector recorded and two-value detector current state are compared;
S323:If it is determined that the state for two-value detector changes with two-value detector current state, then start timing Device;
If it is determined that not change, then the state of first two-value detector is become 1, and execute S327;
S324:Whether judgement timer overflows, if not overflowing, the current state of first two-value detector 1 is set, if timer overflows, variable T=maximum clocking values, and two-value detector current state sets 1;
S325:Judge second two-value detector state, if second two-value detector state is 1, second two-value The current state of detector sets 1, and count value adds 1, if second two-value detector state is not 1, turns S326;
S326:Judge third two-value detector state, if third two-value detector state is 1, third two-value The current state of detector sets 1, and count value P=P+1, if third two-value detector state is not 1, turns S327;
S327:Judge whether the state of three two-value detectors is 0 successively, if the state of any two-value detector is determined as It is not 0, then is transferred to the state judgement of next two-value detector;
If the state of first two-value detector is 0, timer, and T=T+ clocking values, first two-value detection are closed The current state of device is set to 0;
If the state of second two-value detector is 0, the current state of second two-value detector is set to 0;
If the state of third two-value detector is 0, the current state of third two-value detector is set to 0;
S328:Data are subjected to serial ports output, and circulation step S321.
Further, the step S33 is comprised the following steps:
S331:Serial data is read, and judges whether identity ID matches, is terminated if identity ID is mismatched, S332 is executed if identity ID matchings;
S332:Whether decision instruction is flow, if so, serial ports sends three two-value detector current state values and counting Value P, and S333 is executed, if it is not, then executing S333;
S333:Whether decision instruction is time occupancy, if so, serial ports sends variable T, and S334 is executed, if it is not, then Execute S334;
S334:Three two-value detector current states, count value and variable T are set to 0;
S335:Terminate.
The beneficial effects of the present invention are:The present invention proposes a kind of design method of accident detection sensor.It should Design method is based on two-value detector, has simple in structure, strong antijamming capability, lower-price characteristic.Two-value state recognition Algorithm can provide a variety of traffic state datas, due to use standard serial port transmission data, can easily with market mainstream Wireless communication module is coupled, and the setting of sensor self ID can make the topological structure of data wireless-transmission network more flexible more Sample.It is small, easy to maintain that the design also has many advantages, such as that small, easy for installation, road pavement is destroyed.If big in real road It installs and uses to scale, it will greatly improve the accuracy of highway accident detection.
Description of the drawings
In order to keep the purpose of the present invention, technical solution and advantageous effect clearer, the present invention provides following attached drawing and carries out Explanation:
Fig. 1 is two-value detector fitting arrangement of the present invention;
Fig. 2 is overall structure of the present invention;
Fig. 3 is sensor hardware system circuit diagram of the embodiment of the present invention;
Fig. 4 is two-value detector state algorithm flow chart of the present invention;
Fig. 5 is serial data transfer process figure of the present invention.
Specific implementation mode
Below in conjunction with attached drawing, the preferred embodiment of the present invention is described in detail.
1, system overall architecture residing for sensor describes
By three two-value detectors test segment is equably laid in as the sensor that constitutes of detection device, detector I, III is respectively at the both sides in unidirectional two track;Detector I and II is laid in the upper and lower spatial position of road homonymy, such as Fig. 1 institutes Show.
Each sensor using serial ports (TTL or RS232) by by ISM band communication module (wireless serial server, ZigBee, 433M etc.) wireless-transmission network and the management and control center PC that constitute constitute network connection, and oneself can be arranged in each sensor Oneself ID, facilitates networking, management and control centre management software (including accident detection algorithm) can according to the ID of each sensor with It exchanges data.Shown in overall architecture Fig. 2.
2, sensor hardware system
SCM uses AT89S52, it is a kind of low-power consumption, high-performance CMOS microcontroller, has 8K system programmables Flash storage can meet design requirement completely.It provides two kinds of serial modes of TTL and RS232 to draw, using UM3221E realities Show conversion of the Transistor-Transistor Logic level to standard RS232 level, to facilitate various wireless transport modules to plug into.Two-value detector passes through respectively The P of AT89S520.0,P0.1,P0.2It is input to AT89S52, toggle switch SW1And SW2Pass through P respectively1.0~P1.7And P2.0~P2.7It is defeated Enter and realizes the setting of sensor ID and the setting of serial port baud rate to AT89S52.Physical circuit is as shown in Figure 3.
3, sensing algorithm designs
3.1 system initialization
Initialization section mainly completes the structure of timer.Related register used in two-value state recognition algorithm, The clear operation of intermediate variable, timer;Read toggle switch numerical value, the baud rate in setting serial data transmission and setting Respond the identity ID etc. of management and control centre management software.
3.2 two-value state recognition algorithms
Two-value state recognition algorithm is the core of Sensor Design, it passes through the shape to three two-value detector level The judgement of state, in conjunction with logical relations such as its positions, can effectively remove all kinds of obstacles (winged insect etc.), required for accurately obtaining Traffic state data.Specific algorithm flow is as shown in Figure 4.
Wherein, P0.0~P0.2Represent the P of AT89S52 chips00~2 pin .P of port0.0It is connected to first two-value detection Device, P0.1It is connected to second two-value detector, P0.2It is connected to third two-value detector.R0Indicate P0.0Current state;R1Indicate P0.1 Current state;R2Indicate P0.2Current state;P represents count value;T represents variable.
Two-value detector is sequentially placed along experiment road section length direction, for three two-value detectors.
Serial ports is initialized first.It changes when vehicle can trigger receiving-end state by two-value detector, makes P0.0By 0 Become 1, i.e., high level become from low level, then with current state R0It compares.If there is a change, then bootrom timer Timing.If it is not, then first two-value detector state becomes 1.Then and so on, judge second and third two-value detector State.Two-value detector is often triggered once, and count value P just increases once.When vehicle sails out of first two-value detector inspection Survey range, P0.0Become 0 from 1, i.e., low level is become from high level, when at this moment closing chip timer, first two-value detection Device state reverts to 0.Then the state of second and third two-value detector is judged successively.
3.3 serial datas transmit
Serial data transmission is mainly divided into two parts, and a part is to read director data, and instruction is sent by management and control centre punch one, Two bytes, respectively represent:ID and which kind of traffic state data (only with two, latter six reserved);Another part is to send number According to as long as the ID in the director data read is equal with the ID of oneself, the traffic state data specified is sent to management and control Center.It is as shown in Figure 5 that serial data transmits program structure.
Judge to complete each time, a serial ports will be inquired, judges whether that data are submitted in requirement.If it is not, then continuing Cycle criterion.Instruction is sent out it is desirable that flow or time occupancy data if so, just seeing.After data have been sent, hold Row clear operation.
The present invention proposes a kind of design method of accident detection sensor.The design method is detected based on two-value Device, two-value detector are proposed relative to general analog detector, reflect that the information at scene only has " whether there is or not " two states, Without considering the problems of " size " (such as laser, other detection devices infrared, that take binary feature), therefore this detection The sensor that device is constituted have simple in structure, strong antijamming capability, lower-price characteristic, be particularly suitable for highway this The place that sample has a very wide distribution carries out traffic information detection.Two-value state recognition algorithm can provide a variety of traffic state datas, Due to using standard serial port transmission data, can be easily coupled with the wireless communication module of market mainstream, sensor self ID Setting the topological structure of data wireless-transmission network can be made more flexible various.The design also has small, installation side Just, road pavement destroys the advantages that small, easy to maintain.If installed and used on a large scale in real road, it will greatly improve The accuracy of highway accident detection.
Finally illustrate, preferred embodiment above is only to illustrate the technical solution of invention and unrestricted, although passing through Above preferred embodiment is described in detail the present invention, however, those skilled in the art should understand that, can be in shape Various changes are made in formula and to it in details, without departing from claims of the present invention limited range.

Claims (6)

1. the traffic abnormal incident detecting system based on binary sensor, it is characterised in that:The system comprises the following steps:
S1:Every three two-value detectors are constituted into one group of sensor, by multigroup sensor arrangement in the both sides in track, wherein often Two two-value detectors of group are arranged in the side of road, remain the other side that next two-value detector is arranged into road;
S2:Sensor hardware system and sensor network are built according to multigroup sensor;
S3:The operation method of sensor hardware system is set;
S4:It is required according to management and control center, data is submitted according to identity ID.
2. the traffic abnormal incident detecting system according to claim 1 based on binary sensor, it is characterised in that:Step Sensor hardware system includes microcontroller in S2, and each detector is connected to the microcontroller, and by serial ports TTL or RS232 is communicated, and every group of sensor is provided with independent identity ID.
3. the traffic abnormal incident detecting system according to claim 2 based on binary sensor, it is characterised in that:Step Sensor network includes multigroup sensor hardware system in S2, and every group of sensing hardware system is connected to by wireless-transmission network Management and control center.
4. the traffic abnormal incident detecting system according to claim 3 based on binary sensor, it is characterised in that:Step S3 is specifically comprised the following steps:
S31:Initialization system is zeroed out operation to register, intermediate variable, timer, reads toggle switch numerical value, setting The identity ID of baud rate and management and control centre management software in serial data transmission;
S32:According to the variation of the state of two-value detector level, and the location logic relationship of two-value detector is combined, obtains and hand over Logical state parameter;
S33:Sensor hardware system carries out serial data transmission with management and control center.
5. the traffic abnormal incident detecting system according to claim 4 based on binary sensor, it is characterised in that:Step S32 is specifically comprised the following steps:
S321:When vehicle passes through two-value detector, the state of two-value detector is recorded;
S322:The state of the two-value detector recorded and two-value detector current state are compared;
S323:If it is determined that the state for two-value detector changes with two-value detector current state, then start timer;
If it is determined that not change, then the state of first two-value detector is become 1, and execute S327;
S324:Whether judgement timer overflows, if not overflowing, the current state of first two-value detector sets 1, If timer overflows, variable T=maximum clocking values, and two-value detector current state sets 1;
S325:Judge second two-value detector state, if second two-value detector state is 1, second two-value detection The current state of device sets 1, and count value adds 1, if second two-value detector state is not 1, turns S326;
S326:Judge third two-value detector state, if third two-value detector state is 1, the detection of third two-value The current state of device sets 1, and count value P=P+1, if third two-value detector state is not 1, turns S327;
S327:Judge whether the state of three two-value detectors is 0 successively, if the state of any two-value detector be determined as be not 0, then it is transferred to the state judgement of next two-value detector;
If the state of first two-value detector is 0, timer, and T=T+ clocking values are closed, first two-value detector Current state is set to 0;
If the state of second two-value detector is 0, the current state of second two-value detector is set to 0;
If the state of third two-value detector is 0, the current state of third two-value detector is set to 0;
S328:Data are subjected to serial ports output, and circulation step S321.
6. the traffic abnormal incident detecting system according to claim 5 based on binary sensor, it is characterised in that:It is described Step S33 is comprised the following steps:
S331:Serial data is read, and judges whether identity ID matches, is terminated if identity ID is mismatched, if body Part mark ID matchings then execute S332;
S332:Whether decision instruction is flow, if so, serial ports sends three two-value detector current state values and count value P, And S333 is executed, if it is not, then executing S333;
S333:Whether decision instruction is time occupancy, if so, serial ports sends variable T, and S334 is executed, if it is not, then executing S334;
S334:Three two-value detector current states, count value and variable T are set to 0;
S335:Terminate.
CN201810784186.2A 2018-07-17 2018-07-17 Traffic abnormal incident detecting system based on binary sensor Pending CN108694833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810784186.2A CN108694833A (en) 2018-07-17 2018-07-17 Traffic abnormal incident detecting system based on binary sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810784186.2A CN108694833A (en) 2018-07-17 2018-07-17 Traffic abnormal incident detecting system based on binary sensor

Publications (1)

Publication Number Publication Date
CN108694833A true CN108694833A (en) 2018-10-23

Family

ID=63851644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810784186.2A Pending CN108694833A (en) 2018-07-17 2018-07-17 Traffic abnormal incident detecting system based on binary sensor

Country Status (1)

Country Link
CN (1) CN108694833A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3079587A (en) * 1958-11-05 1963-02-26 Lab For Electronics Inc Interlinking system for traffic actuated control apparatus
GB1247635A (en) * 1969-04-01 1971-09-29 Gulf & Western Industries Traffic actuated traffic control system
CN1984236A (en) * 2005-12-14 2007-06-20 浙江工业大学 Method for collecting characteristics in telecommunication flow information video detection
CN101510358A (en) * 2009-03-20 2009-08-19 吉林大学 Method and apparatus for processing real time statistical vehicle flowrate using video image
CN102136194A (en) * 2011-03-22 2011-07-27 浙江工业大学 Road traffic condition detection device based on panorama computer vision
CN102289939A (en) * 2011-07-05 2011-12-21 北京航空航天大学 Vehicle/traffic flow detection method based on three-axle magnetoresistive sensor
CN103971524A (en) * 2014-05-21 2014-08-06 电子科技大学 Traffic flow detection method based on machine vision
CN104183127A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Traffic surveillance video detection method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3079587A (en) * 1958-11-05 1963-02-26 Lab For Electronics Inc Interlinking system for traffic actuated control apparatus
GB1247635A (en) * 1969-04-01 1971-09-29 Gulf & Western Industries Traffic actuated traffic control system
CN1984236A (en) * 2005-12-14 2007-06-20 浙江工业大学 Method for collecting characteristics in telecommunication flow information video detection
CN101510358A (en) * 2009-03-20 2009-08-19 吉林大学 Method and apparatus for processing real time statistical vehicle flowrate using video image
CN102136194A (en) * 2011-03-22 2011-07-27 浙江工业大学 Road traffic condition detection device based on panorama computer vision
CN102289939A (en) * 2011-07-05 2011-12-21 北京航空航天大学 Vehicle/traffic flow detection method based on three-axle magnetoresistive sensor
CN104183127A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Traffic surveillance video detection method and device
CN103971524A (en) * 2014-05-21 2014-08-06 电子科技大学 Traffic flow detection method based on machine vision

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李坤: "基于巨磁阻传感器的交通流量采集系统的设计", 《设计应用》 *
李文钊 等: "基于二值检测器的交通异常事件传感器设计", 《计算技术与自动化》 *

Similar Documents

Publication Publication Date Title
CN102110365B (en) Road condition prediction method and road condition prediction system based on space-time relationship
CN103258427B (en) Urban expressway traffic real-time monitoring system and method based on information physical network
CN103557884B (en) A kind of Fusion method for early warning of electric power line pole tower monitoring
CN107992067A (en) Unmanned plane inspection fault diagnosis system based on integrated gondola and AI technologies
CN106297252B (en) A kind of industrial park air pollution surveillance system
CN201839317U (en) Tunnel safety quick detection system based on wireless sensor network
CN102917024B (en) Based on milk quality monitoring system and the monitoring method thereof of cloud computing and RFID
CN106209457B (en) Cope with the method for secret protection and system of bypass attack in smart home environment
KR20210041957A (en) Real time monitoring system and method for agriculture and farming by using IoT sensors
CN105243418A (en) Pedestrian flow counting method and device based on infrared temperature measurement sensor
CN101609168B (en) Vehicle detecting system and method based on wireless earth induction
CN106209982A (en) Tire pressure monitoring method based on wireless senser
CN101751018A (en) Distributing data monitoring and prealarming system under test environment
CN105933463B (en) City personnel based on smart machine identification information pass in and out city monitoring method and system
CN106292611A (en) A kind of wisdom agricultural control system based on cloud computing
CN108694833A (en) Traffic abnormal incident detecting system based on binary sensor
CN106290772A (en) A kind of sewage monitoring system
CN101087311A (en) Intelligent AD-HOC self-adapted sensor network based on multi-protocol module structure
CN113807404A (en) Intelligent monitoring and emergency system of intelligent traffic network for multi-source information fusion
CN203204860U (en) Parking spot management system
CN106443130B (en) A kind of voltage monitoring system
CN112114229A (en) Power distribution network fault positioning method, device and system
CN106412073B (en) A kind of network system for detection of building fire equipment
CN206532314U (en) Car wheel-set information gathering instrument and car wheel-set information acquisition system
CN106952485B (en) Crossroad intelligent traffic light network control system capable of processing emergency

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181023