[go: up one dir, main page]

CN203217791U - Magnetic field sensor-based vehicle parking state detection device - Google Patents

Magnetic field sensor-based vehicle parking state detection device Download PDF

Info

Publication number
CN203217791U
CN203217791U CN 201320098388 CN201320098388U CN203217791U CN 203217791 U CN203217791 U CN 203217791U CN 201320098388 CN201320098388 CN 201320098388 CN 201320098388 U CN201320098388 U CN 201320098388U CN 203217791 U CN203217791 U CN 203217791U
Authority
CN
China
Prior art keywords
magnetic field
field sensor
detection device
data
processor
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.)
Expired - Lifetime
Application number
CN 201320098388
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.)
Guilin Feiyu Technology Corp ltd
Original Assignee
GUILIN FEIYU ELECTRONIC TECHNOLOGY 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 GUILIN FEIYU ELECTRONIC TECHNOLOGY CO LTD filed Critical GUILIN FEIYU ELECTRONIC TECHNOLOGY CO LTD
Priority to CN 201320098388 priority Critical patent/CN203217791U/en
Application granted granted Critical
Publication of CN203217791U publication Critical patent/CN203217791U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Geophysics And Detection Of Objects (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The utility model discloses a magnetic field sensor-based vehicle parking state detection device comprising a power source, a detector and a data processing and transmission module, wherein a power management module of the magnetic field sensor-based vehicle parking state detection device is respectively connected with a processor and a magnetic field sensor, the processor is respectively in two-way data connection with the magnetic field sensor and a PC machine serial port communication tool, and the PC serial port communication tool is in two-way wireless connection with an upper position machine. The magnetic field sensor is characterized that under the affection of external magnetic field interference sources, and data of a magnetic field in each direction greatly change; and the characteristics of the magnetic field sensor are utilized by the detection device, the detection device determines whether a vehicle is parked in an area according to the amplitude of change, and the detection device cannot be easily affected by the interference of temperature change or windy or snowy weather. The detection device is advantaged by reliable performance, convenience of installation, economical price, and application to an intelligent management system of a large parking lot.

Description

Park the state detection device based on the vehicle of magnetic field sensor
Technical field
The utility model relates to a kind of motor vehicle detector, relates in particular to based on the vehicle of magnetic field sensor and parks the state detection device.
Background technology
Along with the high speed development of urban transportation, the city vehicle owning amount is more and more, and the parking lot is also more and more increasing, and it is particularly important that the management in parking lot just seems.Particularly how large parking lot knows in time whether the parking stall does not have car, and shows in real time exactly at Control Room, carries out intelligent management, is the key that presses for solution.The mode of some present detection vehicles, as buried coil, photoelectric tube etc., exist power consumption big, damage easily, problem such as reliability is low.
Summary of the invention
The utility model provides a kind of vehicle based on magnetic field sensor to park the state detection device, this device has utilized magnetic field sensor under the influence that the external magnetic field interference source is arranged, magnetic field data on all directions takes place more significantly to change, judge according to the amplitude situation that changes whether this zone has vehicle to park, do not allow to be subject to temperature variation and the interference of wind and snow weather, dependable performance, easy for installation, price economy, can apply in the intellectualized management system of large parking lot.
Vehicle based on magnetic field sensor of the present utility model is parked the state detection device, comprise power supply, detector, data processing and transport module, its power management module connects processor and magnetic field sensor respectively, processor is connected with PC serial communication instrument bi-directional data with magnetic field sensor respectively, and PC serial communication instrument is connected with the host computer double-direction radio.
Described processor adopting LPM0 sleep mode, inner integrated record of keys initial value and detection time setting module, the CPU of processor adopting is MSP430G2313.
Described magnetic field sensor adopts HMC5983, and magnetic field sensor is arranged to the SPI communication interface.
For the ease of data transmission and processing, processor and sensor communication adopt the SPI interface.
Further, in order to guarantee can to receive and dispatch data accurately in the communication process, processor is communicated by letter with PC serial communication instrument and is adopted the USART interface.
Vehicle based on magnetic field sensor of the present utility model is parked the state detection device, following characteristics are arranged: 1, sampling super low-power consumption microprocessor MSP430G2313, when not detecting, allow magnetic field sensor and microprocessor enter the low-power consumption park mode, can realize the operation of low power consumption high efficiency; 2, can set up the time of detection and the sensitivity of detection on their own according to client's demand; 3, sampling three-axle magnetic field HMC5983 induction detects, and can realize that 3 D stereo detects, and has guaranteed to detect the accuracy that vehicle is parked; 4, under strong magnetic environment, the energy operate as normal; Eliminate when strong magnetic interference, can realize automatically restoring to original state, not disturbed by external magnetic field; After vehicle is placed a period of time, when car is left this parking stall, the data when can allow magnetic field data return to no car; Externally under the strong magnetic interference, situation about being magnetized has taken place in magnetic field sensor, can manually realize recording again initial condition data; 5, according to variation of temperature, set the auto thermal compensation technology, compensation is owing to the changes of magnetic field of temperature difference reason generation automatically; Can realize round-the-clock, full weather work.
At unattended large parking lot, to realize detecting the situation of parking whether vehicle is arranged on certain parking stall automatically, this equipment is installed in the centre position on parking stall; In the time of above vehicle is parked in, automatically determine, and to send a signal to host computer be main frame that main frame upgrades the parking situation of parking display screen according to the instruction that receives, and realizes unmanned control, and can accurately guide the driver to be parked in correct position.
Description of drawings
Fig. 1 is the hardware configuration synoptic diagram that the vehicle based on magnetic field sensor of the present utility model is parked the state detection device;
Fig. 2 is processor internal processes structural drawing;
Fig. 3 is the process flow diagram of operation HMC5983;
Fig. 4 is the process flow diagram that serial ports receives custom protocol;
Fig. 5 judges to have or not the car algorithm flow chart.
Embodiment
The power management module that vehicle based on magnetic field sensor of the present utility model is parked the state detection device connects processor and magnetic field sensor respectively, processor is connected with PC serial communication instrument bi-directional data with magnetic field sensor respectively, and PC serial communication instrument is connected with the host computer double-direction radio.As Fig. 1.
Described processor adopting LPM0 sleep mode, inner integrated magnetic field detection algorithm, communication data agreement are explained, the record of keys initial value and detection time setting module, the CPU of processor adopting is MSP430G2313.
Described magnetic field sensor adopts HMC5983, and magnetic field sensor is arranged to the SPI communication interface.
Processor and sensor communication adopt the SPI interface.Processor is communicated by letter with PC serial communication instrument and is adopted the USART interface.PC serial communication instrument is connected with the host computer double-direction radio that upper computer software has been installed with the serial communication protocol of definition mode voluntarily.
Processor adopting low power processor chip MSP430G2313, being under the low-power consumption mode, only need the electric current of 1uA, use inner crystal oscillator, communicate by letter with sensor HMC5983 and to adopt the SPI interface, before reading HMC5983, this sensor has been carried out the related register configuration, guaranteed accuracy and high efficiency that magnetic field data reads, at the inner integrated magnetic field detection algorithm of processor, the communication data agreement is explained, the record of keys initial value, and set detection time.In order to guarantee under low-power consumption mode, to move, adopt the LPM0 sleep mode, mainly interrupt waking up CPU by serial ports interruption, external key interruption or timer and carry out work, pass through serial communication, according to our agreement can allocating and measuring time, the sensitivity of allocating and measuring need to determine whether minute book terrestrial magnetic field data; Used external interrupt in this chip, timer interrupts, and serial ports receives to send and interrupts, FLASH data read-write operation, simulation SPI operation.Specifically see Fig. 2.
Magnetic field sensor HMC5983 passes through periphery circuit design, this sensor is arranged to the SPI communication interface, use ceramic condenser that HMC5983 is carried out reset operation, the ceramic condenser equivalent series impedance must be less than 200 milliohms, otherwise will exert an influence to reset circuit.The single power supply mode that HMC5983 adopts, supply voltage 3V adopts four line communication modes, the port that four lines are respectively the corresponding CPU of SPI_CS(is P1.5), SPI_SCK(P2.0), SPI_SDO (P2.2), SPI_SDI (P2.1); The sequence of operation of read-write HMC5983 is:
The operation note (comprising configuration register A, configuration register B, mode register) of configuration HMC5983 reads the three-axle magnetic field The data and reads mode continuously; The mode of configuration register A be adopt average use be 8 mean values as output valve, the output speed of data is: 15Hz, the normal metering system of measurement pattern; The mode of configuration register B is: gain is configured to ± 1.3Ga, and the scope of output is-2048 ∽+2047; Mode register: be configured to the continuous coverage pattern, upgraded data when three axis data in register, the RDY port will be exported high level.Communication interface adopts the SPI communication of standard, that HMC5983 supports standard and pattern fast, frequency of operation is respectively 100KHz and 400KHz, but do not support fast mode, need external pull-up resistor [if the STM32 port arrangement being become " multiplexing recommend output " mode (under the situation of use Hardware I 2C)], if with Simulation with I 2C then port will be arranged to " drawing on the inside " pattern; In the process of measuring, do not need HMC5883L is carried out reset operation, the operation that can reset automatically in inside, after resetting, can be automatically the magnetic field data that reads under the positive pulse be deducted the data that read under the negative pulse again divided by 2, send into respective shaft to register in, it is poor to offset inner deviation and temperature drift; In reading the process of HMC5983, adopt the mode that reads continuously, in the process of whole measurement, be that register upgrades later value for what guarantee to read at every turn, just be provided with a decision content, read and write continuously after the XYZ three-axle magnetic field data of a HMC583, the data of a configuration register A are read in the capital automatically, if write the data of 0xFO, then continue read-write three-axle magnetic field data, incorrect just the continuation waited for.
The process flow diagram of whole operation HMC5983 is illustrated in fig. 3 shown below, in to the SPI initialization procedure, having set its frequency of operation earlier is 1MHz, P2.0, the P2.2 of MSP430G2313 processor are set to output port, the direction register of this single-chip microcomputer is set at output type, the direction register of P2.1 is set at input type.P1.5 is as the selecting side of SPI, and also the direction initialization register is output type;
The HMC-5983 configuration, the register A of configuration HMC5983, register B, mode register; Register A is configured to serviceability temperature measurement result is compensated automatically, the numerical value of employing carries out 8 average just output later on, and the output speed of data is 15Hz; Configuration register B is configured to the magnetic field data gain of measuring ± 1.3 Ga, just can remove automatically after each measurement is correct; The configuration mode register adopts four-wire system SPI pattern, and the result who measures is carried out the test constantly mode;
The test constantly mode in magnetic field is: read-write sequence adopts the SPI read-write sequence of standard, enable the CS end, to SCK signal end clock signal, write at the address 0xC3 that rising edge of clock signal will be read and write continuously, next the XYZ magnetic field data to 6 bytes reads, when reading, high-order preceding, 16 is one group of data, and three groups of data are deposited respectively, and recycling average value filtering algorithm is got 10 times on average to the result who measures.Guarantee the correctness of measurement result.
For the work that guarantees that CPU can be stable, adopted the clock of inner 1MHz to carry out work, disposed the storage mode of inner FLASH, the working method of timer A0, initialization has been carried out in SPI operation to the HMC5983 operation, and configuration HMC5983 working method, disposed the external interrupt mode, be used for an external button and record once local magnetic field data; Accurate for the result who guarantees to measure, the minimum requirement of sensitivity is set to 40.Can under low-power consumption mode, carry out work in order to guarantee total system, it is 20Hz that the timer A0 interruption execution time is set, for the port that cooperates this system arranges the time that has or not car of judging, set an intermediate variable register, be in shown in the following table 1 when detecting the port level, to change at the setting-up time that interrupts the A0 the inside, timer is according to the time of setting so, and timing wake-up CPU execution reading magnetic field sensor and judgement have or not the state of vehicle.
Table 1 is set table detection time
SEL2 pin level SEL1 pin level Set the interval time of detecting vehicle
0 0 1 second
0 1 2 seconds
1 0 5 seconds
1 1 10 seconds
Disposed HMC5983 and utilized temperature to carry out automatic compensation, read the three-axle magnetic field The data and read mode continuously; The mode of configuration register A be adopt average use be 8 mean values as output valve, the output speed of data is: 15Hz, the normal metering system of measurement pattern; The mode of configuration register B is: gain is configured to ± 1.3Ga, and the scope of output is-2048 ∽+2047; Allow HMC5983 in the process of not carrying out data acquisition, enter low-power consumption mode.
In the utility model, power management module adopts low-power consumption, the power regulator module of band Enable Pin, and stable output 3V allows processor and sensor can guarantee stable operation.
In the utility model, vehicle is parked the data of situation and sensor need pass through the serial communication mode, and data are sent to host computer, and the protocol format of transmission adopts the agreement of the serial communication of definition mode voluntarily.
The baud rate of serial communication is: 19200;
The communication protocol of instruction is as follows:
Instruction data length order number magnetic field sensitivity minute book terrestrial magnetic field standby adding up and order fulfillment sign detection time
0xB5 0x62 0x0B 0xA1 0x00 0x00 0x0A 0x00 0x00 0x00 0x00 0x00 0xAA
Concrete as:
0xB5 0x62 0x0B 0xA1 0x00 0x28 0x0A 0x00 0x0A 0x00 0x00 0xE8 0xAA
It all is to operate with sexadecimal that serial data sends
Concrete as:
0xB5 0x62 0x0B 0xA1 0x00 0x28 0x0A 0x00 0x0A 0x00 0x00 0xE8 0xAA
Table 2 order format instruction card
Figure DEST_PATH_RE-DEST_PATH_IMAGE002
Referring to Fig. 4.In order to guarantee to receive and dispatch data accurately in the communication process, serial ports receives and operates with interrupt mode, in case there are data to send to processor, processor will wake dormant state up, data are received and judge whether these data meet the demands, judge that whether to be the foundation of protocol data that we define be: begin to add up to check bit all data before from the data length byte, and get surplus to 255, if the data check of result of calculation and transmission and equating, then command reception success, to receive data, according to the particular content in agreement regulation, resolve the data message of each byte; Data receive successfully and then send a string character " OK " to host computer, and the expression data receive successfully.In agreement, magnetic field sensitivity has directly determined to judge the changes of magnetic field size of vehicle institute perception, if the data of magnetic field sensitivity are more little, it is just more obvious that the perception vehicle is parked situation, otherwise then more not obvious.Instruction main effect in minute book terrestrial magnetic field is to allow host computer send one " 0X0A " instruction, just can record at that time magnetic field data automatically in the inside FLASH of MCU, and preservation; Also allow simultaneously content in next bar instruction as the time of reading magnetic field data, running time to magnetic field also can be recorded (also can pass through outside port SEL1, the interval time that magnetic field data is read in the port level decision of SEL2) at interval by this string instruction.
Use the wireless data transmission radio station, the data of three-axle magnetic field are sent to the upper computer software of main frame by serial ports, upper computer software is presented at the three-axle magnetic field data in real time on the screen, the energy Real Time Observation is to the situation of change of three-axle magnetic field data on the screen, under the situation of no car, three data are exactly local magnetic field data, but when having car above magnetic field sensor, three data will have greatly changed.
Have, during no car, the data of magnetic field sensor perception can have obvious variation, and with MATLAB decision algorithm is analyzed and summed up to three axis data; The formula of algorithm is as follows:
Figure DEST_PATH_RE-DEST_PATH_IMAGE004
(formula 1-1)
Wherein
Figure DEST_PATH_RE-DEST_PATH_IMAGE006
, the rate of change of magnetic that expression has or not vehicle to park;
Figure DEST_PATH_RE-DEST_PATH_IMAGE008
,
Figure DEST_PATH_RE-DEST_PATH_IMAGE010
,
Figure DEST_PATH_RE-DEST_PATH_IMAGE012
, the expression current time to HMC5983 collect X, Y, Z axis values;
,
Figure DEST_PATH_RE-DEST_PATH_IMAGE014
,
Figure DEST_PATH_RE-DEST_PATH_IMAGE016
, expression HMC5983 measured when terrestrial magnetic field X, Y, Z axis values.
When headstock has with a certain distance from magnetic field sensor, the axial output data of each of magnetic field sensor HMC5983 almost do not change, when vehicle slowly when the magnetic field sensor, skew has taken place towards the moving direction of car near the magnetic field of vehicle, the installation direction of supposing magnetic field sensor is X-axis towards the dead ahead that vehicle moves, then X-axis is sensitive axis of sensor, the magnetic field data output of X-axis will take place than significant change, in vehicle advances process, the vehicle front-wheel is by the top of magnetic field sensor, because wheel is to contain iron-nickel alloy, will cause that bigger variation takes place the three-axle magnetic field data, the Y-axis data will be sensitive axis this moment, the Y-axis magnetic field data also just changes, if vehicle continues to move ahead, when near engine the time, X-axis and Z axle all are sensitive axes, and the data of this diaxon have bigger variation; If when the fast magnetic field sensor of car, bigger variation will take place again in X-axis, the output of Z axle, because the boot of vehicle generally all is equipped with spare tire, certain interference be caused in the magnetic field of X, Z-direction.When vehicle kept away the magnetic field sensor top, each output was returned to original state.
When vehicle is parked in the magnetic field sensor top, comparatively obvious variation has taken place in stabilizing magnetic field on every side, disturbance local Distribution of Magnetic Field, this disturbance just can be pounced on HMC5983 and be grasped this item number and it is believed that breath, utilizes following formula 1-1 just can accurately judge the situation of parking of vehicle.
The utility model at different automobile types, has been gathered mass data by in real process, by analysis, the summation setting value of changes of magnetic field amount is 50, and the Sensitirity va1ue that corresponding detection just has or not vehicle to park is 50, the induction above 50 has car to park, and does not park otherwise just there is car; In order to guarantee to detect the reliability of vehicle, detecting has under the car situation, and bigger variation can take place the Z axis data, therefore when judgement had car, if sensitivity surpasses 25, but the data variation amount of Z axle surpassed 10, also be judged to be no car, under other situations, just regard as no car; The removing of XYZ three-axis reference value need be decided according to the situation of change of summation, if be in 2 minutes in the time, the variable quantity that total variable quantity is no more than three of 15, XYZ is no more than 5, then can remove one time reference value automatically; Removing reference value like this is in order to prevent long-time placement, the influence that magnetic field data generation drift produces.Concrete judgement has or not the algorithm flow of car referring to Fig. 5.

Claims (4)

1. park the state detection device based on the vehicle of magnetic field sensor, comprise power supply, detector, data processing and transport module, it is characterized in that: power management module connect magnetic field sensor respectively and adopt LPM0 sleep mode, inner integrated record of keys initial value and detection time setting module processor, processor is connected with PC serial communication instrument bi-directional data with magnetic field sensor respectively, and PC serial communication instrument is connected with the host computer double-direction radio.
2. park the state detection device according to the vehicle based on magnetic field sensor of claim 1, it is characterized in that: magnetic field sensor is arranged to the SPI communication interface.
3. park the state detection device according to the vehicle based on magnetic field sensor of claim 1, it is characterized in that: processor and sensor communication adopt the SPI interface.
4. park the state detection device according to the vehicle based on magnetic field sensor of claim 1, it is characterized in that: processor is communicated by letter with PC serial communication instrument and is adopted the USART interface.
CN 201320098388 2013-03-05 2013-03-05 Magnetic field sensor-based vehicle parking state detection device Expired - Lifetime CN203217791U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201320098388 CN203217791U (en) 2013-03-05 2013-03-05 Magnetic field sensor-based vehicle parking state detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201320098388 CN203217791U (en) 2013-03-05 2013-03-05 Magnetic field sensor-based vehicle parking state detection device

Publications (1)

Publication Number Publication Date
CN203217791U true CN203217791U (en) 2013-09-25

Family

ID=49207308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201320098388 Expired - Lifetime CN203217791U (en) 2013-03-05 2013-03-05 Magnetic field sensor-based vehicle parking state detection device

Country Status (1)

Country Link
CN (1) CN203217791U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104183141A (en) * 2014-08-28 2014-12-03 哈尔滨工程大学 Wireless geomagnetism carport detector based on Internet of Things
CN111047907A (en) * 2019-12-25 2020-04-21 深圳人人停技术有限公司 Parking space management method, device, equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104183141A (en) * 2014-08-28 2014-12-03 哈尔滨工程大学 Wireless geomagnetism carport detector based on Internet of Things
CN111047907A (en) * 2019-12-25 2020-04-21 深圳人人停技术有限公司 Parking space management method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103150929A (en) Magnetic field sensor-based vehicle parking state detection system
CN104541228B (en) Support is provided for equipment state
CN107846459A (en) A kind of urban air-quality real-time monitoring system based on LoRa technologies
CN104391250A (en) Electric vehicle battery mobile phone monitoring system
CN201210054Y (en) Multifunctional GPS navigation apparatus
CN202075802U (en) Automobile test recording instrument
CN103794058A (en) Method and device for detecting vehicle based on state machine
CN203217791U (en) Magnetic field sensor-based vehicle parking state detection device
CN105902217A (en) Intelligent shower system based on STM32
CN206146465U (en) Box transformer monitoring device
CN201166867Y (en) Apparatus for measuring road
CN201387628Y (en) Training class hour recorder of drivers
CN202434049U (en) Water meter data acquirer
CN201707792U (en) Reluctance vehicle number and speed detection node based on Zigbee protocol
CN202615465U (en) On-board unit
CN203414978U (en) Active wireless temperature and humidity label
CN104155966A (en) Automobile CDC data acquisition analysis apparatus
CN209802669U (en) Vehicle reliability test data collection and analysis system based on gyroscope
Liao et al. Mixed traffic information collection system based on pressure sensor
CN202815101U (en) Detection system
CN2725525Y (en) Water level and water temperature automatic collecting device for downhole
CN202167068U (en) GPS driving recorder used in driving training
CN106441408A (en) Low-power measuring system
CN207224994U (en) Automobile tire intelligent monitor system
CN214096085U (en) Electronic speed-measuring odometer circuit system based on single chip microcomputer

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 541004, Guilin, the Guangxi Zhuang Autonomous Region, Seven Star Road, Chaoyang Road, information industry park D-12, Guilin electricity supplier Valley B block 3 Building

Patentee after: GUILIN FEIYU TECHNOLOGY Corp.,Ltd.

Address before: 541004 the Guangxi Zhuang Autonomous Region Guilin Qixing District Chaoyang Road Information Industrial Park Yu technology building four floor tejet Feiyu Technology

Patentee before: Guilin Feiyu Electronic Technology Co.,Ltd.

CX01 Expiry of patent term

Granted publication date: 20130925

CX01 Expiry of patent term