CN104252784A - ZigBee earth induction-based vehicle detection system - Google Patents

ZigBee earth induction-based vehicle detection system Download PDF

Info

Publication number
CN104252784A
CN104252784A CN201410419554.5A CN201410419554A CN104252784A CN 104252784 A CN104252784 A CN 104252784A CN 201410419554 A CN201410419554 A CN 201410419554A CN 104252784 A CN104252784 A CN 104252784A
Authority
CN
China
Prior art keywords
module
vehicle
read
zigbee
value
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
CN201410419554.5A
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.)
Suqian College
Original Assignee
Suqian College
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 Suqian College filed Critical Suqian College
Priority to CN201410419554.5A priority Critical patent/CN104252784A/en
Publication of CN104252784A publication Critical patent/CN104252784A/en
Pending legal-status Critical Current

Links

Landscapes

  • Traffic Control Systems (AREA)

Abstract

The invention discloses a ZigBee earth induction-based vehicle detection system, which comprises a microprocessor module. The ZigBee earth induction-based vehicle detection system is characterized in that the microprocessor module is respectively connected with a reset module, a sensor module, a power module, a radio frequency module, a serial debugging module and a writer module; the whole system is powered up by the power module. The ZigBee earth induction-based vehicle detection system disclosed by the invention has the advantages that a vehicle detection device taking the microprocessor module MC13213 as the core and integrating the ZigBee wireless network technology and the earth magnetism detection technology has a function of synchronously processing earth magnetism nodes; flexible single or Ad-Hoc network control can be realized, so that the goal that the accuracy of relevant parameters of a vehicle are improved is further achieved.

Description

A kind of vehicle detecting system based on ZigBee earth induction
Technical field
The present invention relates to a kind of vehicle detecting system based on ZigBee wireless earth induction, belong to wireless network and built-in field.
Background technology
Vehicle detecting system is the important component part that intelligent traffic is built, and employs new technology, new method makes vehicle detecting system have the features such as high-technicalization, easier for installation, the construction period is shorter.
Some vehicle detecting systems are there are both at home and abroad, the tunnel illumination intelligent controlling device etc. of the application earth magnetism vehicle detection of a kind of earth magnetism vehicle detection apparatus of Beijing Cheng Da transport science and techonologies company limited, the method for acquiring transportation traffic speed based on geomagnetic sensing technology of Beijing Jiaotong University, Mechano-Electronic Designing research Inst. of Zhejiang Prov.The essential information of vehicle can be obtained, also can carry out Wireless Data Transmission.But, due to adopted detection method limitation, make determination data error comparatively large, following wisdom transport development requirement can not be complied with.
ZigBee is the low-consumption wireless LAN protocol based on IEEE 802.15.4 standard, and it is the wireless communication technology of a kind of short distance, low-power consumption.ZigBee is automatically controlling and remote control field has and uses comparatively widely, be characterized in closely, low complex degree, self-organization, low-power consumption, low rate, low cost, support great deal of nodes, support multiple network topology, fast, reliably, safety.So ZigBee technology meets the requirement of flexible networking in short haul connection to a certain extent.
Based on the design of clock synchronous ZigBee wireless earth induction vehicle detecting system, that the technology such as integrated wireless ZigBee, clock synchronous and geomagnetism detecting realize detecting and certainly organizing networking, can improve on the parameter accuracy rate bases such as institute's measuring car length, the speed of a motor vehicle further, the problems such as the intelligent level that solution Current vehicle detects is low, stability is on the low side.
Summary of the invention
In order to solve the problem, the object of the present invention is to provide a kind of magnetic induction velocity-measuring system based on ZigBee wireless sense network to be incorporated in vehicle detecting system by sensor to go, for vehicle detecting system adds New function, except traditional vehicle that can detect arrives and leaves, and test the speed, the function that measuring car is long, and the data recorded can be beamed back service end for Information Statistics.
The technical solution used in the present invention is as follows:
A kind of vehicle detecting system based on ZigBee earth induction, mainly comprise microprocessor module, power module, sensor assembly, AccessPort module, radio-frequency module, write device module, reseting module, wherein, described sensor assembly, AccessPort module, radio-frequency module, write device module, reseting module are connected with microprocessor module respectively, and power module is that whole system is powered.
Described microprocessor module is MC13213.
Described sensor assembly MAG3110 is connected with MCU by iic bus, AccessPort module is connected with microprocessor module with serial ports 1 by serial ports 0, radio-frequency module is connected with microprocessor module by connectivity port, resets and is connected with microprocessor module by download port with write device control module.
Microprocessor module MC13213: inner integrated ZigBee technology, provides the functions such as A/D conversion, general purpose I/O simultaneously.
Power module: adopt a way switch formula voltage stabilizing chip, 12V power supply can be provided for single lamp control module; 3.3v power supply is provided to Zigbee module.
Sensor assembly: whether have vehicle pass through, thus carry out the automatic switch of street lamp if using geomagnetic technology to detect.
AccessPort module: for connecting PC, is convenient to debugging and maintenance.
Radio-frequency module: for increasing the module of controller network service distance.
Write device module: provide a kind of DLL (dynamic link library), for programming to microprocessor module MC13213 and upgrading.
The computing method of described sensor assembly are, if read value be 1 expression can read sensor data, then immediately read is set to 0; Data are read by call function MAG3110GetData (); MAG3110GetData () suction parameter quotes 16 signed number arrays that a length is 3; First Getsuc is set to 1,16 signed magnitudes being read X, Y, Z by iic bus successively from MAG3110 register put into array, just Getsuc are set to 0 once there be a numerical value read error and exit function.
If Getsuc is 1 expression digital independent success, call function Judge () judges whether have vehicle to pass through afterwards; Successively the initial value arranged when these data read and initialization is contrasted from Z to X in Judge () function, just Cur_Time be set to the value of current TIMER if differ by more than threshold value and return 1; If change all just returns 0 in threshold value;
If Judge () returns 0 expression do not have vehicle from top process, count is set to 0; If Judge () returns 1 indicate that vehicle passes through from top.Then pass2 is judged, if pass2 have received the timestamp from another sensor node before being 1 expression, so utilize Cur_Time value to deduct Got_Time value obtain the mistiming of car above two nodes; Distance is utilized to obtain speed divided by the time.
This control system of advantage of the present invention with microprocessor module MC13213 for core, the vehicle detection apparatus of integrated ZigBee radio network technique, geomagnetism detecting technology, there is earth magnetism synchronisation of nodes processing capacity, separate unit or MANET flexibly can be realized control, reach the object improving vehicle related parameters accuracy rate further.
Accompanying drawing explanation
Fig. 1 is that present system forms block diagram.
Fig. 2 is that vehicle of the present invention is through node A schematic diagram.
Fig. 3 is that vehicle of the present invention is through Node B schematic diagram.
Fig. 4 is clock synchronous sequential chart in the present invention.
Fig. 5 is operating sensor partial process view of the present invention.
Fig. 6 is that the present invention judges Vehicle Flow figure.
Fig. 7 is that the present invention receives processing flow chart.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further elaborated:
As shown in Figure 1, based on the vehicle detecting system based on ZigBee earth induction, comprise seven parts, microprocessor module MC13213, sensor assembly, power module, serial port module, reset and debugging writing module, radio-frequency module respectively, wherein, described biography sensor assembly, power module, serial port module, reset and debugging writing module, radio-frequency module, be connected with microprocessor module MC13213 respectively, and power module is that microprocessor module MC13213 powers.Wherein, MC13213 minimum system comprises power circuit, crystal oscillating circuit, reset circuit, debugging write interface circuit etc., and minimum system to make MCU internal processes normally run necessary peripheral circuit.
Network-termination device is Control peripheral circuit on the one hand, gathers simulated data on the other hand, and real-time intelligent response environment parameter also sends to coordinator these simulated datas by wireless network simultaneously.
Fig. 2,3 is sensor node schematic diagram, vehicle sends the instant time to Node B through node A time, just wait for after the node time of receipt (T of R) that vehicle is from process above oneself, is calculating the average velocity of vehicle between AB instantaneously through waiting, and is sending to other Controlling vertex immediately.Other Controlling vertex are the directions that B knows car by the source address that data send, and then street lamp more sends related command signal according to the travel speed of car and direction, can calculate Vehicle length simultaneously.
Fig. 4 is clock synchronous sequential chart, uses collaborative the testing the speed of two nodes first to need first to complete clock synchronous.Because sensor sample frequency is more much lower than the frequency of microprocessor, and it is higher to the requirement of time to test the speed, so must use the digital independent of timer timing and control sensor.Timer uses the timer 1 of microprocessor internal, and every 16 μ s produce and once overflow interruption.Be provided with Two Variables, the variable tick_tock of 16 is used for controlling sensor and reads, and 32 bit variable TIMER are used for timing.Sensor sample frequency is 80Hz, so once sample every 12.5ms, be 781.25 divided by 16 μ s, removing decimal is 781, each timer overflows interruption tick_tock and adds one, reads a secondary data and allow TIMER add one whenever tick_tock is more than or equal to 781 time.So each reading time interval is 12.5ms-4 μ s, is very little, can ignores as vehicle speed measuring by the error of 4 μ s.TIMER from zero to spilling the time of needs more than 2 days, so can every 24 hours or a 12 hours synchronous time.
Due to two nodes all for other Controlling vertex provide service and this clock only between A, B two nodes effectively, so use broadcast to realize synchronously with reference to the method for message.Utilize other to control street-lamp node K as with reference to node, send broadcasting packet to adjacent node A and Node B.Suppose that the time delay that this arrives node A and Node B with reference to broadcasting packet is equal, i.e. TAx=TBX.Node A receives with reference to after broadcasting packet, and transmission immediately includes the message of TAx information to Node B, so Node B just can calculate the time interval Dt receiving two messages, its numerical value is TBy-TBx.Because node A is adjacent with Node B site, relative to radio wave propagation speed, can think that the message that node j sends to node i arrives instantaneously.So the time difference that can obtain between node A, B is exactly Dt.The clock time of node A and Node B can be made thus to be consistent.
Master routine is initialization modules at the beginning, and reads primary transducer data as initial value, and then enter major cycle, major cycle divides three parts: operating sensor, reception process and calculating Vehicle length.
Concrete control procedure:
Be illustrated in figure 5 operating sensor partial process view, if read value be 1 expression can read sensor data, then immediately read is set to 0.Data are read by call function MAG3110GetData ().MAG3110GetData () suction parameter quotes 16 signed number arrays that a length is 3.First Getsuc is set to 1,16 signed magnitudes being read X, Y, Z by iic bus successively from MAG3110 register put into array, just Getsuc are set to 0 once there be a numerical value read error and exit function.
If Getsuc is 1 expression digital independent success, call function Judge () judges whether have vehicle to pass through afterwards.Successively the initial value arranged when these data read and initialization is contrasted from Z to X in Judge () function, just Cur_Time be set to the value of current TIMER if differ by more than threshold value and return 1; If change all just returns 0 in threshold value.
Judge Vehicle Flow figure as shown in Figure 6, if Judge () returns 0 expression do not have vehicle from top process, count is set to 0; If Judge () returns 1 indicate that vehicle passes through from top.Then pass2 is judged, if pass2 have received the timestamp from another sensor node before being 1 expression, so utilize Cur_Time value to deduct Got_Time value obtain the mistiming of car above two nodes.Distance is utilized to obtain speed divided by the time.
Be illustrated in figure 7 reception processing flow chart, g_nRFDataFlag is that 1 expression interrupting receive is to Frame.First pass interruption prevents again receiving data and current data is covered.Then by the data Replica in reception buffer zone out.Then judge whether network number, source address, destination address meet the requirements, nonconformingly will directly to abandon, just two in Frame are taken out a time if all met the requirements, and judge command bit, if timestamp (0 × 40) just puts 1 pass2; If synch command (0 × 50) is just set to tick_tock and TIMER the analog value in Frame; If speed (0 × 60) is with regard to extraction rate value, juxtaposition computational length flag.
Judge need not need to calculate Vehicle length, the computational length when two zone bits all meet according to zone bit.According to Lc=Vsp*Dc* (12.5/1000) can calculate by the length of vehicle.
In formula, Vsp is the average velocity of car between two nodes (unit: meter per second m/s), Dc be time-out count variable count record pass through to time when leaving at car, unit 12.5ms, takes advantage of 12.5/1000 namely to obtain the time (unit: second s).Lc is the length (unit: rice m) of the car calculated.
This system adopts magnetic field, MAG3110 tri-axle magnetometer measures road surface, is defined the process of vehicle by vehicle through the strong changes of magnetic field of out-of-date generation.Exceed according to the changes of magnetic field that adjacent node is measured threshold time to calculate vehicle speed in conjunction with the distance between earth magnetism node, and determine working direction, the length of vehicle can also be calculated.Solve the stationary problem between each earth magnetism node simultaneously.
Based on clock synchronous ZigBee wireless earth induction vehicle detecting system, by Clock Synchronization Technology, carry out vehicle detection by magnetic field sensor and utilize ZigBee to carry out the wireless transmission of signal, making the data such as detection system is more intelligent, performance is more stable, institute's measuring car length, the speed of a motor vehicle more accurate.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those of ordinary skill in the art are in the technical scope disclosed by the present invention; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, the protection domain that protection scope of the present invention should limit with claims is as the criterion.

Claims (4)

1., based on a vehicle detecting system for Zig Bee earth induction, comprise microprocessor module.It is characterized in that: microprocessor module respectively with reseting module, sensor assembly, power module, radio-frequency module, AccessPort module, write device model calling, power module is that whole system is powered.
2. a kind of vehicle detecting system based on Zig Bee earth induction according to claim 1, is characterized in that: described microprocessor module is MC13213, inner integrated Zig Bee technology, provides A/D conversion, general purpose I/O function simultaneously.
3. a kind of vehicle detecting system based on Zig Bee earth induction according to claim 1, it is characterized in that: described sensor assembly is connected with MCU by iic bus, AccessPort module is connected with microprocessor module with serial ports 1 by serial ports 0, radio-frequency module is connected with microprocessor module by connectivity port, resets and is connected with microprocessor module by download port with write device control module.
4. a kind of vehicle detecting system based on Zig Bee earth induction according to claim 1, is characterized in that: the computing method of described sensor assembly are, if read value be 1 expression can read sensor data, then immediately read is set to 0; Data are read by call function MAG3110GetData (); MAG3110GetData () suction parameter quotes 16 signed number arrays that a length is 3; First Getsuc is set to 1,16 signed magnitudes being read X, Y, Z by iic bus successively from MAG3110 register put into array, just Getsuc are set to 0 once there be a numerical value read error and exit function.
If Getsuc is 1 expression digital independent success, call function Judge () judges whether have vehicle to pass through afterwards; Successively the initial value arranged when these data read and initialization is contrasted from Z to X in Judge () function, just Cur_Time be set to the value of current TIMER if differ by more than threshold value and return 1; If change all just returns 0 in threshold value;
If Judge () returns 0 expression do not have vehicle from top process, count is set to 0; If Judge () returns 1 indicate that vehicle passes through from top.Then pass2 is judged, if pass2 have received the timestamp from another sensor node before being 1 expression, so utilize Cur_Time value to deduct Got_Time value obtain the mistiming of car above two nodes; Distance is utilized to obtain speed divided by the time.
CN201410419554.5A 2014-10-19 2014-10-19 ZigBee earth induction-based vehicle detection system Pending CN104252784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410419554.5A CN104252784A (en) 2014-10-19 2014-10-19 ZigBee earth induction-based vehicle detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410419554.5A CN104252784A (en) 2014-10-19 2014-10-19 ZigBee earth induction-based vehicle detection system

Publications (1)

Publication Number Publication Date
CN104252784A true CN104252784A (en) 2014-12-31

Family

ID=52187638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410419554.5A Pending CN104252784A (en) 2014-10-19 2014-10-19 ZigBee earth induction-based vehicle detection system

Country Status (1)

Country Link
CN (1) CN104252784A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815964A (en) * 2020-09-02 2020-10-23 四川九通智路科技有限公司 Traffic flow detection system and method based on geomagnetic sensing type spike

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11328579A (en) * 1998-05-18 1999-11-30 Kokusai Electric Co Ltd Passing vehicle detecting device
CN101236697A (en) * 2007-08-08 2008-08-06 中科院嘉兴中心微系统所分中心 Wireless sensor network system and detection method utilizing huge magneto-resistance magnetic-sensing technology for detecting vehicle information
CN101694746A (en) * 2009-10-19 2010-04-14 浙江大学 Magnetic resistant vehicle quantity and speed detecting node based on Zigbee wireless protocol and use methods thereof
CN102496287A (en) * 2011-12-22 2012-06-13 曹全 Weak magnetic digital sensing vehicle detection system and detection method employed by same
CN103354032A (en) * 2013-06-22 2013-10-16 太仓博天网络科技有限公司 Wireless vehicle information detection system based on magnetoresistive sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11328579A (en) * 1998-05-18 1999-11-30 Kokusai Electric Co Ltd Passing vehicle detecting device
CN101236697A (en) * 2007-08-08 2008-08-06 中科院嘉兴中心微系统所分中心 Wireless sensor network system and detection method utilizing huge magneto-resistance magnetic-sensing technology for detecting vehicle information
CN101694746A (en) * 2009-10-19 2010-04-14 浙江大学 Magnetic resistant vehicle quantity and speed detecting node based on Zigbee wireless protocol and use methods thereof
CN102496287A (en) * 2011-12-22 2012-06-13 曹全 Weak magnetic digital sensing vehicle detection system and detection method employed by same
CN103354032A (en) * 2013-06-22 2013-10-16 太仓博天网络科技有限公司 Wireless vehicle information detection system based on magnetoresistive sensor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815964A (en) * 2020-09-02 2020-10-23 四川九通智路科技有限公司 Traffic flow detection system and method based on geomagnetic sensing type spike
CN111815964B (en) * 2020-09-02 2020-12-29 四川九通智路科技有限公司 Traffic flow detection system and method based on geomagnetic sensing type spike

Similar Documents

Publication Publication Date Title
CN201741262U (en) Wireless mine monitoring system
CN104361765B (en) Parking space detecting system based on magnetoresistive sensor and ZigBee
CN105070052A (en) Wireless communication system and method used for intelligent traffic monitoring
CN109375046A (en) A kind of non-formula electric energy meter of registering one's residence of multi-frequency based on plc communication technology is visited one house after another examination device and method
CN106297318A (en) A kind of magnetic detection system at a distance based on radio spread spectrum communication
CN103344994A (en) Distributed transient electromagnetic data acquisition system based on wireless sensor network
Jing et al. Intelligent agriculture system based on LoRa and Qt technology
CN103325228A (en) Transient electromagnetic data acquisition system and method based on wireless sensor network
CN102438202A (en) Voice broadcasting system based on Zigbee wireless location
CN103888529B (en) Method, system and device for data wireless transmitting and receiving
CN104252784A (en) ZigBee earth induction-based vehicle detection system
CN103337198A (en) Wireless Hart parking space detecting system
CN103491630B (en) Node positioning method and device in a kind of radio sensing network based on TDOA
CN208383332U (en) A kind of ship base low-power consumption measurement system for sea water temperature based on LoRa
CN206833004U (en) Triple channel wireless seismic detector data collecting system
CN115565356A (en) Internet of things intelligent electric energy meter detection device based on Bluetooth communication protocol
CN203278857U (en) Dual-path IEC61850 message receiving and transmitting device based on CRIO (Core-Router Integrated Overlay) platform
CN203325177U (en) Meter reading system based on low-power-consumption wireless technology
CN101753241A (en) Network synchronization method and system
CN205317966U (en) High accuracy multichannel automatic meteorological station atmospheric pressure examination appearance
CN205261238U (en) Gas pipe network leaks transient pressure ripples detection and analysis system
CN205157817U (en) Be applied to wireless sensing of meteorological monitoring system device
CN204066398U (en) Traffic detection system
CN203192220U (en) Intelligent meter reading concentrator
CN106781614A (en) Public transport based on ZigBee and WI FI is arrived at a station information display system

Legal Events

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

Application publication date: 20141231

RJ01 Rejection of invention patent application after publication