Interface integrated circuit and vehicle diagnostic device for vehicle diagnostics/programming
For vehicle diagnostics/programming interface integrated circuit and vehicle diagnostic device technical field
This patent disclosure relates generally to field of vehicle diagnostics, more particularly relate to vehicle diagnostics/programming interface integrated circuit and the vehicle diagnostic device including the interface integrated circuit.
Moreover, it relates to a kind of communication means carried out data transmission between microprocessor and onboard diagnostic system by above-mentioned interface integrated circuit and corresponding communication system.Background technique
With the development of science and technology, the complexity of vehicle increases increasingly, application of the electron controls technology on vehicle is also increasingly extensively and profoundly.For the ease of equipped with electronic control unit (Electronic Control Uni t, ECU the diagnosis of the situation of vehicle), onboard diagnostic system (on-board diagnos t ics, OBD) and vehicle diagnostic device are developed.In vehicle diagnostics, vehicle diagnostic device passes through the vehicle diagnostics/programming interface being arranged on vehicle and 0BD is established and communicated to connect, and sends vehicle condition inquiry signal and parameter setting signal to 0BD, and receive vehicle condition from 0BD and characterize signal.However, vehicle diagnostics/programming interface on different types of vehicle often supports different communication protocol, the interface circuit different according to different communication protocol designs is not only resulted in the need for, but also current vehicle diagnostic device is made to lack versatility.Summary of the invention
In order to improve the versatility of vehicle diagnostic equipment and realize other purposes, the present invention is made.On the one hand, the present invention provides a kind of for vehicle diagnostics/programming interface integrated circuit, the interface integrated circuit is connected between the microprocessor an of outside and vehicle diagnostics/programming interface of an outside, vehicle diagnostics/the programming interface is further coupled to onboard diagnostic system, diagnose/program to Vehicle Electronic Control Unit, which includes:
One communication control unit, the communication control unit includes multiple communication protocol nucleus modules, each communication protocol nucleus module sends and receivees data according to a kind of communication protocol, and each communication protocol nucleus module can switch between vehicle condition inquiry and parameter setting mode and vehicle condition obtaining mode;And
A port driving unit, the port driving unit include multiple drivers, multiple drive
Each of dynamic device driver all includes multiple drive modules, and multiple drive modules in each driver are respectively correspondingly connected to corresponding multiple communication protocol nucleus modules in the communication control unit;
For the communication control unit, in vehicle condition inquiry and parameter setting mode, each communication protocol nucleus module receives the vehicle condition inquiry signal for meeting corresponding communication protocol and/or parameter setting signal from microprocessor, converts thereof into and is suitble to inquire signal by the received vehicle condition of correspondingly connected drive module institute and/or parameter setting signal is then sent to correspondingly connected drive module;In vehicle condition obtaining mode, each communication protocol nucleus module receives the vehicle condition characterization signal for meeting corresponding communication protocol from correspondingly connected drive module, converts thereof into and is suitble to be then sent to the microprocessor by the received vehicle condition characterization signal of microprocessor;
For the port driving unit, in vehicle condition inquiry and parameter setting mode, each drive module receives the vehicle condition inquiry signal for meeting corresponding communication protocol or parameter setting signal from correspondingly connected communication protocol nucleus module, the signal level that the vehicle condition inquires signal or parameter setting signal is converted into the signal level for being suitble to be handled by onboard diagnostic system, and the vehicle condition by conversion is inquired into signal or parameter setting signal, onboard diagnostic system is sent to by vehicle diagnostics/programming interface;In the vehicle condition obtaining mode, each drive module, which is received, characterizes signal from the vehicle condition of onboard diagnostic system via vehicle diagnostics/programming interface, the signal level of vehicle condition characterization signal is converted into being suitble to by the signal level of correspondingly connected communication protocol nucleus module and microprocessor processes, and the vehicle condition characterization signal by conversion is sent to correspondingly connected communication protocol nucleus module.
In a preferred embodiment, wherein multiple communication protocol nucleus module of the communication control unit includes HSCAN nucleus module, SWCAN nucleus module, LSCAN nucleus module, 708 nucleus module of Π, J1850-PWM nucleus module, J1850-VPW nucleus module, two or more in KSCI nucleus module and KN nucleus module, accordingly, multiple drive module of each driver of the port driving unit includes HSCAN drive module, SWCAN drive module, LSCAN drive module, 708 drive module of Π, J1850-PWM drive module, J1850-VPW drive module, K/SCI drive module and Two or more in KN drive module.
In a preferred embodiment, which further includes Digital Logic control unit, which connect with the communication control unit and the port driving unit,
To control the selection for selecting to be connected and control the communication control unit and carrying out communication pattern that the port driving unit carries out communication channel.
In a preferred embodiment, which further includes program voltage unit, which connect with the Digital Logic control unit, is programmed required operating voltage to Vehicle Electronic Control Unit for generating.
In a preferred embodiment, the interface integrated circuit further includes internal electric source unit, the internal electric source unit is connect with each unit inside interface integrated circuit, to generate voltage required for this works for vehicle diagnostics/programming interface integrated circuit.
In a preferred embodiment, the interface integrated circuit further includes analog-to-digital conversion sampling unit, the analog-to-digital conversion sampling unit is connect with the Digital Logic control unit and the communication control unit, carries out the analog signal of the characterization vehicle condition from onboard diagnostic system to be sampled and transformed into digital signal.
In a preferred embodiment; the interface integrated circuit further includes over-temperature protection unit; the over-temperature protection unit is connected to the Digital Logic control unit; to detect the temperature for vehicle diagnostics/programming interface integrated circuit; and when detecting that this is used for the temperature of vehicle diagnostics/programming interface integrated circuit more than wealthy value, signal that other units indicated this for vehicle diagnostics/programming interface integrated circuit entirety or its inside stop working is issued.
On the other hand, the present invention also provides a kind of vehicle diagnostic devices, are used for vehicle diagnostics/programming interface integrated circuit including above-mentioned.
Yet another aspect, the present invention also provides a kind of communication means, for carrying out data communication between a microprocessor and an onboard diagnostic system by communication control unit and port driving unit, the communication control unit includes multiple communication protocol nucleus modules, each communication protocol nucleus module sends and receivees data according to a kind of communication protocol, and each communication protocol nucleus module can switch between vehicle condition inquiry and parameter setting mode and vehicle condition obtaining mode;The port driving unit includes multiple drivers, each of multiple driver driver all includes multiple drive modules, and multiple drive modules in each driver are respectively correspondingly connected to corresponding multiple communication protocol nucleus modules in the communication control unit;The communication means is characterized in that,
In vehicle condition inquiry and parameter setting mode,
(1) each communication protocol nucleus module in communication control unit receives the vehicle condition inquiry signal for meeting corresponding communication protocol and/or parameter setting signal from microprocessor, by its turn
It changes into and is suitble to be then sent to correspondingly connected drive module by the correspondingly connected received vehicle condition inquiry signal of drive module institute and/or parameter setting signal;
(2) each drive module receives the vehicle condition inquiry signal for meeting corresponding communication protocol or parameter setting signal from correspondingly connected communication protocol nucleus module, the signal level that the vehicle condition inquires signal or parameter setting signal is converted into the signal level for being suitble to be handled by onboard diagnostic system, and the vehicle condition by conversion is inquired into signal or parameter setting signal and is sent to onboard diagnostic system via vehicle diagnostics/programming interface;
In vehicle condition obtaining mode,
(3) each drive module in the driving unit of port, which is received, characterizes signal from the vehicle condition of onboard diagnostic system via vehicle diagnostics/programming interface, the signal level of vehicle condition characterization signal is converted into being suitble to by the signal level of correspondingly connected communication protocol nucleus module and microprocessor processes, and the vehicle condition characterization signal by conversion is sent to correspondingly connected communication protocol nucleus module;
(4) each communication protocol nucleus module receives the vehicle condition characterization signal for meeting corresponding communication protocol from correspondingly connected drive module, it converts thereof into and is suitble to characterize signal by the received vehicle condition of microprocessor, be then sent to the microprocessor.
In addition, the present invention also provides a kind of for vehicle diagnostics/programming communication system, comprising: a microprocessor;
One vehicle diagnostics/programming interface, is connected to onboard diagnostic system, diagnose/program to Vehicle Electronic Control Unit;And
It is used for vehicle diagnostics/programming interface integrated circuit according to above-mentioned, which to be connected between the microprocessor and the vehicle diagnostics/programming interface, to carry out data communication between microprocessor and onboard diagnostic system.
By using the combination for the communication control unit and the port driving unit including multiple drivers for including multiple communication protocol nucleus modules, the invention allows to obtain any collocation of the transmitting-receiving of the signal of various communications protocols, so as to flexibly be adapted to various.In addition, having no effect on the work of the corresponding communication link of other drivers when a certain drive corruption.Detailed description of the invention
Exemplary implementation scheme of the invention is described with reference to the accompanying drawing, it should be clearly understood that above and other aspects, features and advantages of the invention from the description.In the drawing:
Fig. 1 is the schematic diagram of an embodiment according to the present invention for vehicle diagnostics/programming interface integrated circuit.
Fig. 2 is the schematic diagram for illustrating in greater detail an embodiment according to the present invention for vehicle diagnostics/programming interface integrated circuit.
Fig. 3 is the block diagram according to the present invention for connecting between vehicle diagnostics/programming interface integrated circuit and microprocessor and vehicle diagnostics/programming interface.
Fig. 4 illustrates in greater detail the connection between each unit inside the interface integrated circuit of Fig. 3.Specific embodiment
A specific embodiment of the invention is described below with reference to accompanying drawings.
In the context of the invention, term " vehicle " includes Lu Yongche, duck, ship and aircraft.In addition, term " diagnosis/programming interface " refers to the interface for diagnosing and/or programming.
Fig. 1 is the schematic diagram of an embodiment according to the present invention for vehicle diagnostics/programming interface integrated circuit.
It include communication control unit 110 and port driving unit 120 for vehicle diagnostics/programming interface integrated circuit.
Communication control unit 110 includes multiple communication protocol nucleus modules, such as, one or more HSCAN nucleus modules 111, SWCAN nucleus module 112, LSCAN nucleus module 113, J1708 nucleus module 114, J1850-PWM nucleus module 115, J1850-VPW nucleus module 116, KSCI nucleus module 117 and KN nucleus module 118, any combination including one or more of which.The communication protocol nucleus module can be the bus transceiver that can support various communications protocols, or can also include that transmission clock, data, the communication for the signals such as making to can control meet π.
Port driving unit 120 includes multiple drivers, for example, 13 driver 1201A, 1201B ..., 1201K and 1201L.For simplicity, a driver 1201A is illustrated only in Fig. 1.Driver 1201A includes multiple drive module 121A-128A, for example, HSCAN drive module 121A, SWCAN drive module 122A, LSCAN drive module 123A, J1708 drive module 124A, J1850-PWM drive module 125A, J1850-VPW drive module 126A, K/SCI drive module 127A and KN drive module 128A.Each drive module in driver
Communication protocol nucleus module corresponding in communication control unit is connected, such as, HSCAN drive module 121A is connect with HSCAN nucleus module 111, SWCAN drive module 122A is connect with SWCAN nucleus module 112, LSCAN drive module 123A is connect with LSCAN nucleus module 11 3, 1708 drive module 124A of J is connect with 708 nucleus module 114 of Π, J 1850-PWM drive module 125A is connect with J 1850-PWM nucleus module 115, J 1850-VPW drive module 126A is connect with J 1850-VPW nucleus module 116, K/SC I drive module 127A is connect with KSCI nucleus module 117, and KN drive module 128A is connect with KN nucleus module 118.
Preferably, the external input/output interface of multiple drive module 121A-128A of driver 1201A can be one, such as, all drive modules are all connected to a pin P0RT1 of interface integrated circuit in 1201A, and drive module all in 1201B is all connected to another pin P0RT2 of interface integrated circuit etc..
Furthermore it is preferred that each driver can be realized with multiple groups M0S.
Fig. 2 is the schematic diagram for illustrating in greater detail an embodiment according to the present invention for vehicle diagnostics/programming interface integrated circuit.
Similar with Fig. 1, the port driving unit 120 in Fig. 2 may also comprise multiple drivers, for example, 13 driver 1201A, 1201B ..., 1201K and 1201L.For simplicity, 1201A and 1201B are only diagrammatically illustrated in Fig. 2.Driver 1201A, 1201B ..., each of 1201K and 1201L may comprise HSCAN drive module, SWCAN drive module, LSCAN drive module, 708 drive module of Π, J 1850-PWM drive module, J 1850-VPW drive module, K/SCI drive module and KN drive module.Each drive module of each driver can mode identical with each drive module of driver 1201A in Fig. 1, connect respectively with HSCAN nucleus module 111, SWCAN nucleus module 112, LSCAN nucleus module 11 3,1708 nucleus module 114 of J, J 1850-PWM nucleus module 115, J 1850-VPW nucleus module 116, KSCI nucleus module 117 and the KN nucleus module 118 in communication control unit 110.Configuration in this way, it can obtain any collocation of the transmitting-receiving of the signal of various communications protocols, such as four in 13 drivers communicate for the communication of Π 708, five for KSCI for HSCAN communication, four, so as to flexibly be adapted to the communication needs of various.Furthermore, it is possible to parallel processing be realized, to realize more efficient communication efficiency.In addition, having no effect on the work of the corresponding communication link of other drivers when a certain drive corruption.
Fig. 3 is the block diagram according to the present invention for connecting between vehicle diagnostics/programming interface integrated circuit and microprocessor and vehicle diagnostics/programming interface.
The microprocessor 300 of an outside and vehicle diagnostics/programming interface 400 of an outside are connected to for vehicle diagnostics/programming interface integrated circuit 200.Vehicle diagnostics/the programming interface 400 is connected with onboard diagnostic system, diagnose/program to Vehicle Electronic Control Unit.In use, microprocessor 300, interface integrated circuit 200 and vehicle diagnostics/programming interface 400 link together, form vehicle diagnostics channel, microprocessor 300 is communicated via interface integrated circuit 200, vehicle diagnostics/programming interface 400 with onboard diagnostic system, to read diagnostic data from onboard diagnostic system by vehicle diagnostics/programming interface 400 or data are arranged to Vehicle Electronic Control Unit write parameters.
Interface integrated circuit 200 is other than including communication control unit 110 and port driving unit 120; it may also include Digital Logic control unit 230, program voltage unit 240, internal electric source unit 250, one or more of analog-to-digital conversion sampling unit 260 and over-temperature protection unit 270.
The connection between each unit inside the interface integrated circuit of Fig. 3 and their connections between external microprocessor and vehicle diagnosis/programming interface are illustrated in further detail in Fig. 4.
Digital Logic control unit 230 includes multiple registers and corresponding logic controller, to control each unit inside entire interface integrated circuit.As shown in Fig. 4, Digital Logic control unit 230 can be connect with communication control unit 110 and port driving unit 120, for configuring the cooperation pattern of multiple drive modules in multiple communication protocol nucleus modules of communication control unit 110 and multiple drivers of port driving unit 120.Digital Logic control unit 230 can also be connect with microprocessor 300, be responsible for cooperateing with the processing for carrying out diagnosis control instruction with microprocessor 300.Digital Logic control unit 230 receives the diagnosis control instruction from microprocessor 300, after treatment, is controlled accordingly other units in interface integrated circuit 200.
Program voltage unit 240 is programmed required operating voltage to Vehicle Electronic Control Unit for generating.Program voltage unit 240 include: the adjustable low pressure difference linear voltage regulator of voltage (LD0), with the LD0 divider connecting and logic controller.Microprocessor 300 is by issuing control instruction to Digital Logic control unit 230, to control program voltage needed for the LD0 in program voltage unit 240 generates vehicle ECU programming.Program voltage unit 240 has the characteristics that output response is rapid, output is stablized, driving capability is strong, noise is low, can provide program voltage for the ECU programming of most vehicles currently on the market.
Internal electric source unit 250 works required voltage for generating interface integrated circuit 200.Internal electric source unit 250 includes: three low pressure difference linear voltage regulator LD0 ,-a DC-DC
(DC-DC) Switching Power Supply.Internal electric source unit 250 runs required supply voltage for providing interface integrated circuit 200, it can be powered by external cell or power supply adaptor, or by vehicle diagnostics/programming interface 400 by vehicle power supply (such as+4 V of direct current to+40 V of direct current), and can support heavy truck.After the LD0 and DC-DC Switching Power Supply processing, required operating voltage is provided for the normal work of other units in interface integrated circuit 200.Portability is improved so that the volume and weight of final products all greatly reduces due to by the way of 200 in-line power of interface integrated circuit, reducing peripheral power supply processing part.
Analog-to-digital conversion sampling unit 260 is for carrying out the analog signal of the characterization vehicle condition via vehicle diagnostics/programming interface from onboard diagnostic system to be sampled and transformed into digital signal.Analog-to-digital conversion sampling unit 260 includes reference voltage source, the analog-digital converter for sampled reference reference
(such as 10 b i t analog-digital converters) and multiple channels switching switch.Wherein the reference voltage source both can choose builtin voltage as reference, also can choose external voltage as reference.By switching, the time sharing sampling and numeral output to multiple analog input signals can be realized.Analog-to-digital conversion sampling unit 260 is connected to Digital Logic control unit 230 and communication control unit 110.
Over-temperature protection unit 270 is used to detect the temperature of interface integrated circuit 200, and when the temperature for detecting interface integrated circuit 200 is more than wealthy value, issues the signal for indicating that other units that interface integrated circuit 200 is whole or it is internal stop working.Over-temperature protection unit 270 includes temperature sensor and port short-circuit detecting circuit.Over-temperature protection unit is connected to Digital Logic control unit 230.Once over-temperature protection unit 270 detects that 200 temperature of interface integrated circuit is excessively high; the situation is just reported into Digital Logic control unit 230; Digital Logic control unit 230 determines whether other units of down interface integrated circuit 200 according to the data reported, to avoid the damage of interface integrated circuit 200.
Preferably, the present invention also provides a kind of including the above-mentioned vehicle diagnostic device for vehicle diagnostics/programming interface integrated circuit.
Moreover it is preferred that the present invention also provides a kind of corresponding communication means, for carrying out data communication between microprocessor and onboard diagnostic system by communication control unit and port driving unit although being not shown.The communication control unit includes multiple communication protocol nucleus modules, each communication protocol nucleus module sends and receivees data according to a kind of communication protocol, and each communication protocol nucleus module can switch between vehicle condition inquiry and parameter setting mode and vehicle condition obtaining mode;The port driving unit includes multiple drivers, in multiple driver
Each driver includes multiple drive modules, and multiple drive modules in each driver are respectively correspondingly connected to corresponding multiple communication protocol nucleus modules in the communication control unit.The communication means is characterized in that, in vehicle condition inquiry and parameter setting mode,
(1) each communication protocol nucleus module in communication control unit receives the vehicle condition inquiry signal for meeting corresponding communication protocol and/or parameter setting signal from microprocessor, it converts thereof into and is suitble to be then sent to correspondingly connected drive module by the correspondingly connected received vehicle condition inquiry signal of drive module institute and/or parameter setting signal;
(2) each drive module receives the vehicle condition inquiry signal for meeting corresponding communication protocol or parameter setting signal from correspondingly connected communication protocol nucleus module, the signal level that the vehicle condition inquires signal or parameter setting signal is converted into the signal level for being suitble to be handled by onboard diagnostic system, and the vehicle condition by conversion is inquired into signal or parameter setting signal and is sent to onboard diagnostic system via vehicle diagnostics/programming interface;
In vehicle condition obtaining mode,
(3) each drive module in the driving unit of port, which is received, characterizes signal from the vehicle condition of onboard diagnostic system via vehicle diagnostics/programming interface, the signal level of vehicle condition characterization signal is converted into being suitble to by the signal level of correspondingly connected communication protocol nucleus module and microprocessor processes, and the vehicle condition characterization signal by conversion is sent to correspondingly connected communication protocol nucleus module;
(4) each communication protocol nucleus module receives the vehicle condition characterization signal for meeting corresponding communication protocol from correspondingly connected drive module, it converts thereof into and is suitble to characterize signal by the received vehicle condition of microprocessor, be then sent to the microprocessor.
Preferably, the present invention also provides a kind of communication systems for vehicle diagnostics, comprising: a microprocessor;
One vehicle diagnostics/programming interface, is connected to onboard diagnostic system, diagnose/program to Vehicle Electronic Control Unit;And
Above-mentioned interface integrated circuit, the interface integrated circuit are connected between the microprocessor and the vehicle diagnostics/programming interface, to carry out data communication between the microprocessor and the onboard diagnostic system according to above-mentioned communication means.
Although instantiating the present invention above in conjunction with specific embodiment, but it should be appreciated that the present invention is not limited thereto.Under the premise without departing from the spirit and scope of the present invention, a variety of remodeling can be carried out to the present invention.