Intelligent automotive light control system based on OBD interface
Technical field
The application belongs to Vehicle lighting field of intelligent control, particularly relates to a kind of intelligent automotive light control based on OBD interface
System processed.
Background technology
AUTHORITATIVE DATA shows, the vehicle accident of 60% occurred at night, and 22% occurs the situation in bad weather, only 18%
Occur on light good daytime.Therefore, vehicle light illumination is closely related with traffic safety.On the one hand, the car light of light distribution effect difference
The lighting requirement of the complex road conditions such as abrupt slope, sharp turn cannot be met;On the other hand, in running at high speed, human eye is in the shape of constant tension
State, bad illuminating effect easily causes Driver Vision tired, thus causes the generation of vehicle accident.But great majority are driven
For the person of sailing, car light controls to be still limited to light or extinguish, the most also cannot be according to outside concrete environment and reality
Time traffic information realize the intelligentized control method of vehicle light illumination pattern.
At present the technical scheme about intelligent automotive light substantially can be divided into two categories below:
(1) by installing related sensor collection running information at automobile external, car light is controlled further according to relevant information
Follow-up steering, it is achieved the intelligentized control method of car light.As Chinese patent application 201510148964.5 discloses a kind of modularity
Autonomous type car headlamp follower steering device, this device includes car light and drives the motor of car light action, in device
It is additionally provided with gyroscope and the acceleration sensor of sensing vehicle acceleration information of sensing vehicle heading.
(2) based on network technology, the real-time running information that electrical control unit unit (ECU) is internal is read, further according to row
Car data information, it is achieved the intelligentized control method of car light.As Chinese patent application the 200810151503.3rd disclose a kind of based on
The adaptive front lighting lamp system control system of network technology and control method thereof, the AFS controller in this system by CAN/LIN with
Vehicle body network couples, and with vehicle body information such as read direction dish corner, speed and suspension height, thus realizes the intelligent control of car light
System.
Although above two scheme has certain actual effect, but all there are some problems.Such as, at car in scheme (1)
External gyroscope and acceleration sensor in lamp, on the one hand add cost;On the other hand also increase installation difficulty, reduce and be
The practicality of system.And the running information that outer sensor records is for actual travelling data, there is certain mistake
Difference.In scheme (2), AFS controller can only read the heat transfer agent of vehicle body by specific a kind of agreement, and this kind of mode can only pin
To specific vehicle, it is not suitable for using the vehicle of other bus protocols.It addition, this system can only read direction dish corner, speed
Running information simple with suspension height etc., for vehicle body lists such as navigator fix, change speed gear box and engine management systems (EMS)
The control information of unit all cannot read.
OBD interface is the external interface of vehicle self-carrying, and it is a part for vehicle-mounted self-diagnosis system.At car running process
In, vehicle-mounted self-diagnosis module can monitor the operation conditions of vehicle body electric-control system and related circuit in real time.Although automobile OBD goes out
It is now to facilitate the maintenance of vehicle to obtain the DTC of automobile, but excellent by its uniqueness in terms of vehicular data acquisition
Gesture can carry out systematized scanning (including navigation system, automobile dynamic system, body control system etc.) to automobile, from
And obtain various valuable information in driving conditions.Such as: the speed in vehicle a certain moment, acceleration, steering wheel angle, position
Put.Therefore, application interface related with OBD is far beyond the category of fault detect.
Utility model content
The purpose of this utility model is to provide a kind of intelligent automotive light control system based on OBD interface, existing to overcome
Deficiency in scheme.
For achieving the above object, the following technical scheme of this utility model offer:
The embodiment of the present application discloses a kind of intelligent automotive light control system based on OBD interface, including information acquisition unit
With intelligent automotive light control unit, described information acquisition unit reads running information by automobile OBD interface and uses radio communication
Mode running information is sent to intelligent automotive light control unit, described intelligent automotive light control unit is according to received driving
Information controls the conversion of vehicle light illumination pattern.
Described information acquisition unit, including:
OBD connector, realizes grafting with vehicle-mounted OBD interface;
Transceiver, is connected between described OBD connector and the first processing module, at least includes CAN transceiver, K line and L
Line transceiver and J1850 transceiver, transceiver reads running information by OBD connector from vehicle-mounted OBD interface, turns through over level
After changing circuit, send this information to the first processing module;
First processing module, after the travelling data received being processed and being decoded according to respective bus agreement,
By the communication between the first wireless transmit/receive units realization and intelligent automotive light control unit;
First wireless transmit/receive units, is connected to the outfan of the first processing module.
K line and L line transceiver refer to be integrated with K line and two kinds of agreements of L line on same chip.
Preferably, in above-mentioned intelligent automotive light control system based on OBD interface, described intelligent automotive light control unit,
Including:
Second wireless transmit/receive units, realizes radio communication with described first wireless transmit/receive units, and receives at first
The information of vehicles of reason module;
Image sensing module, gathers real-time road condition information, and two-dimensional image data is passed to the second processing module;
Spatial light modulator module, receives the control instruction of the second processing module, and spatial points distribution of light intensity is carried out height
Frequency modulation system, exports suitable light illumination mode;
Second processing module, is connected to image sensing module, the second wireless transmit/receive units and spatial light modulator mould
Block, receives the incoming view data of image sensing module and the travelling data of the first processing module reading, and by numeral
Image information and the analyzing and processing of travelling data information, control spatial light modulator module and export suitable light illumination mode.
Preferably, in above-mentioned intelligent automotive light control system based on OBD interface, described first processing module uses U.S.
The 16 8-digit microcontroller PIC24HJ128GP504 that Microchip company of state produces, described CAN transceiver, K line and L line transceiver
It is respectively adopted integrated chip MCP2551, L9637D and XG7100 with J1850 transceiver.
Preferably, in above-mentioned intelligent automotive light control system based on OBD interface, described information acquisition unit also includes
Angular-rate sensor and acceleration transducer, described angular-rate sensor and acceleration transducer use integrated six axle motion process
Device MPU-6050, this MPU-6050 are connected to described first processing module.
Preferably, in above-mentioned intelligent automotive light control system based on OBD interface, described information acquisition unit also includes
At least in order to the data storage of storage line car data, described memorizer uses Flash memory chip W25Q256FV.
Preferably, in above-mentioned intelligent automotive light control system based on OBD interface, described first processing module, transmitting-receiving
Device, data storage, angular-rate sensor and acceleration transducer are integrated on same circuit board.
Preferably, in above-mentioned intelligent automotive light control system based on OBD interface, described intelligent automotive light control unit is also
Including light source body module, described light source body module is connected to actuator, and this actuator includes vertically adjusting executor and water
Flat revolution executor.
Compared with existing scheme, the utility model has the advantage of: incorporate the Vehicle Body Bus agreement of current main-stream, pass through
Agreement Self Matching identification process, it is possible to meet the demand of different automobile types information gathering.And information acquisition unit can overall be made
It is one and patches device, directly read running information from the OBD interface of vehicle self, it is not necessary to install extra senser element additional, become
This is cheap, has the strongest practical value.
Accompanying drawing explanation
In order to be illustrated more clearly that this utility model application or technical scheme of the prior art, below will to embodiment or
In description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only
Some embodiments described in this utility model application, for those of ordinary skill in the art, are not paying creative labor
On the premise of Dong, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 show intelligent automotive light control system principle based on OBD interface in this utility model application specific embodiment
Block diagram.
Fig. 2 show Vehicle Body Bus protocol self-adapting flow chart in this utility model application specific embodiment.
Detailed description of the invention
Below in conjunction with the accompanying drawing in this utility model application embodiment, to the technology in this utility model application embodiment
Scheme is described in detail, it is clear that described embodiment is only the section Example in this utility model application, and not
It it is whole embodiments.Based on the embodiment in this utility model application, those of ordinary skill in the art are not making creation
Property work on the premise of the every other embodiment that obtained, broadly fall into the scope of this utility model application protection.
Intelligent automotive light control system based on OBD interface, including information acquisition unit and intelligent automotive light control unit, information
Running information is sent to intelligent vehicle by the way of automobile OBD interface reads running information and uses radio communication by collecting unit
Lamp control unit, described intelligent automotive light control unit controls the conversion of vehicle light illumination pattern according to received running information.
The mode of radio communication is preferably bluetooth.
Shown in Fig. 1, information acquisition unit, including:
OBD connector, can realize grafting with vehicle-mounted OBD interface;
Transceiver, is connected between OBD connector and the first processing module, including CAN transceiver, K line and L line transceiver
With J1850 transceiver, transceiver reads travelling data information by OBD connector from vehicle-mounted OBD interface, through level conversion electricity
After the conversion of road, this running information is sent to the first processing module;
First processing module, after processing travelling data information and being decoded according to respective bus agreement, passes through
Communication between the first wireless transmit/receive units realization and intelligent automotive light control unit;
First wireless transmit/receive units, is connected to the outfan of the first processing module.
Preferably, the first processing module uses 16 8-digit microcontrollers that Microchip company of the U.S. produces
PIC24HJ128GP504, described CAN transceiver, K line and L line transceiver and J1850 transceiver are respectively adopted integrated chip
MCP2551, L9637D and XG7100.
Further, information acquisition unit also includes angular-rate sensor and acceleration transducer, angular-rate sensor and
Acceleration transducer is connected to the first processing module.Preferably, angular-rate sensor and acceleration transducer use integrated six axles
Motion process device MPU-6050.
Further, information acquisition unit also includes at least data storage in order to storage line car data, it is preferred that institute
State memorizer and use Flash memory chip W25Q256FV.
Further, the first processing module, data storage, angular-rate sensor, acceleration transducer and transceiver collection
Become on same circuit board.
Car light follow-up steering includes that the vertical of car light adjusts and horizontal rotation.Further, light source body module (car light) is even
Being connected to actuator, this actuator includes vertically adjusting executor and horizontal rotation executor.
In this technical scheme, transceiver uses discrete chip based on CAN, K line and L line and J1850 agreement, permissible
Running information is accurately read, it is adaptable to different automobile types from OBD interface;Angular-rate sensor and acceleration transducer are in order to obtain car
Movement locus and the tilt angle information of vehicle body;Information acquisition unit can use as an overall module, passes through
OBD connector and OBD interface realize grafting, the first processing module, angular-rate sensor, acceleration transducer and transceiver simultaneously
Being integrated on same circuit board, volume is little, can be with shade in same housing.This information acquisition unit after certain vehicle is extracted,
Can be applied equally to the vehicle of other vehicles, only the OBD interface of itself and vehicle self need to be docked.
Wherein, level shifting circuit is mainly used to realize the first processing module operation level and each bus protocol varying level
Conversion between standard.The level mark that first microprocessor can identify will be transformed into by the different level standard of various agreements
Accurate.
Intelligent automotive light control unit includes light source body module, image sensing module, the second processing module and spatial light modulation
Device module.
Light source body module, for producing stable light field output.
Image sensing module, by high speed photography perception external world real-time road condition information, and the two dimension list that will get
Color image data are passed in the second processing module.
Second processing module connects image sensing module, the second wireless transmit/receive units and spatial light modulator module respectively,
Receive the incoming view data of image sensing module and the information of vehicles of the first processing module, and by digital image information
With the analyzing and processing of information of vehicles, control spatial light modulator module and produce suitable light illumination mode.
Spatial light modulator module, receives the control instruction of the second processing module, by DMD (DMD)
The control of every micro mirror deflection angle, it is achieved the high frequency modulated to spatial points distribution of light intensity, thus output suitably illuminates mould
Formula.
In this technical scheme, by Real-time Collection external image, it is achieved according to light situation, the sleet sky of vehicle front
The real-time road condition informations such as gas, sharp turn, abrupt slope dynamically adjust the light illumination mode of front car light, can be effectively improved travel safety.
Fig. 2 show Vehicle Body Bus protocol self-adapting flow chart in this utility model application specific embodiment.
As it can be seen, it mainly comprises the steps that
(1), connect intelligent automotive light control system based on OBD interface and start;
(2), the first processing module carries out variable-definition and initialization operation;
(3), mate according to the bus protocol specified by the first processing module.I.e. to the vehicle body number corresponding to this agreement
According to sending one group of specific check code in bus, while sending, read from bus, by the signal read and sending out
The signal gone is compared, if identical, then it is believed that the match is successful;
(4) if the match is successful for the first time, then the bus transceiver of correspondence is used to set up OBD interface and the first processing module
Communication network between (microcontroller), if for the first time it fails to match, then returns step (3), proceed bus protocol
Join;
(5) if all it fails to match for the bus protocol of test, then " it fails to match " information is returned.
In sum, in this case, intelligent automotive light control system is based on OBD interface and spatial light modulator, by OBD interface
Obtain the running informations such as the speed of vehicle, acceleration, position, obtain the environment residing for vehicle by image sensing module simultaneously and believe
Breath, can dynamically adjust the light illumination mode of front car light, improve travel safety, improve driving experience.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality
Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating
Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to
Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that
Including process, method, article or the equipment of described key element there is also other identical element.
The above is only the detailed description of the invention of the application, it is noted that for the ordinary skill people of the art
For Yuan, on the premise of without departing from the application principle, it is also possible to make some improvements and modifications, these improvements and modifications also should
It is considered as the protection domain of the application.