A kind of simulative automobile communication test deviceTechnical field
It the utility model is related to automotive electronics detection technique field, more particularly to a kind of simulative automobile communication test device.
Background technology
In recent years, the recoverable amount of automobile improves constantly, and the OBD instrument related to automotive test exploitation also obtainsRapidly develop, " onboard diagnostic system:On-Board Diagnostic, are abbreviated as:OBD”.OBD instrument (OBD) canTo monitor the operation conditions of engine at any time, once finding to be possible to the situation that causes failure, warning can be sent at once, thus intoFor the indispensable instrument of light-duty vehicle.Usually, on automobile be provided be used for record automobile engine operation conditions and and its it is eachThe OBD interfaces of each time segment data of processing system, reading is connected with the OBD interfaces on automobile by using automobile fault diagnostic apparatusAccess evidence, is then connected by data wire with computer again, the read data of display.In addition, engineer surveys to vehicle failureRunin generally requires automobile fault diagnostic apparatus and automobile ECU simulator, computer and external power supply connecting use when sending out, such asShown in Fig. 1, the said equipment is numerous, and computer just includes main frame, display and keyboard and mouse, and it is numb to carry comparisonIt is tired, especially it is unfavorable for the progress of work in the case where field etc. is without external power supply.During vehicle diagnosis is developed, engineeringTeacher needs constantly to carry out communication debugging, automobile computer ECU either wire harness complexity and power supply requirement with automobile computer ECUDeng the communicating interrupt all easily caused by the problems such as laboratory wire harness contacts, and cause the increase of development cost, therefore, engineer hasNecessary to replace automobile ECU to realize the device of ECU commands in return functions laboratory is a kind of, to solve, wire harness is complicated, is easy toThe test of simulated automotive communication interface, not readily portable technical problem.
Utility model content
The purpose of this utility model is to provide a kind of simulative automobile communication test device, according to communication of the present utility modelTest device can quickly collect the fault message of automobile, and energy automatic imitation automobile ECU communication protocol commands reply test, greatlyIt is big to shorten automobile ECU simulated time, efficiency and accuracy rate are improved, to achieve these goals, the utility model is using followingTechnique effect:
According to the one side of this hair utility model, there is provided a kind of simulative automobile communication test device, it is characterised in that:It is described including USB interface, virtual serial port, central controller, logical extension controller, data storage and communications interface unitUSB interface is communicated to connect by virtual serial port and the central controller, and the virtual serial port also communicates with logical extension controllerConnection, the central controller pass through I2C communication bus is connected with logical extension controller, the logical data of the central controllerCommunication interface, the logic level interface of logical extension controller are connected with the communications interface unit respectively, communications interface unitBe connected with the OBD interfaces of automobile, the data-interface of the central controller, the data-interface of logical extension controller respectively with numberConnected according to memory, the data storage is stored using flash storage to communication test data.
Preferably, the communications interface unit comprise at least CAN interface circuit, RS232 bus interface circuits,RS485 bus interface circuits, K bus interface circuits, the first two keys relay, the second two keys relay, the 3rd two keys relayWith the second two keys relay, the output end of the CAN interface circuit and the input terminal contacts of first two keys relayConnection, the output end of the RS232 bus interface circuits and the input contact portion of second two keys relay, it is describedThe output end of RS485 bus interface circuits and the input contact portion of the 3rd two keys relay, the K EBIs electricityThe output end on road and the input contact portion of the 4th two keys relay, the output end of first two keys relay are touchedThe output for exporting terminal contacts, the 4th two keys relay for exporting terminal contacts, the 3rd two keys relay of point, the second two keys relayTerminal contacts pass through bus and the input contact portion of the hilted broadsword relay group, the output end of the hilted broadsword relay group respectivelyContact is connected with the OBD interfaces of the automobile, and the data communication interface of the central controller passes through first passage drive circuitThe control of control terminal with first two keys relay, the control terminal, the 3rd two keys relay of the second two keys relay respectivelyEnd, the control terminal connection of the 4th two keys relay, the logical extension controller pass through second channel drive circuit and the listThe control terminal connection of knife relay group.
Preferably, the K bus interface circuits include buffering drive circuit, resistance R1, resistance R2, resistance R3, resistance R4,Resistance R5, resistance R6, resistance R7, resistance R8, resistance R9, resistance R10, resistance R11, resistance R12, triode Q1, triodeQ2, triode Q3, triode Q4, triode Q5 and diode D1, input and the logical extension control of the buffering drive circuitThe drive output connection of device processed, the output end of buffering drive circuit are connected by resistance R1 with the base stage of the triode Q1,The insurance circuit that is emitted through of the triode Q1 is connected with the signal output part of the logical extension controller, triode Q1Colelctor electrode be connected with resistance R2 one end, the colelctor electrode of the triode Q1 is also connected with diode D1 negative electrodes, the diodeD1 negative electrodes are connected with 5V dc sources, the resistance R2 other end one end with the resistance R3, resistance R4 one end, three respectivelyThe emitter stage connection of pole pipe Q2 emitter stage, triode Q3, the resistance R3 other end are connected with the base stage of the triode Q2,The resistance R4 other end is connected with institute triode Q3 base stage, and triode Q2 colelctor electrode is connected with resistance R5 one end,The one end of the resistance R5 other end respectively with the triode Q4 colelctor electrodes, resistance R6 is connected, triode Q3 colelctor electrodeIt is connected with resistance R7 one end, the one end of the resistance R7 other end respectively with the triode Q5 colelctor electrodes, resistance R8 is connected,The base stage of the triode Q4 is connected by resistance R9 with the first control output end of first passage drive circuit, the triodeQ5 base stage is connected by resistance R10 with the second control output end of first passage drive circuit, the other end of the resistance R6With the first input end contact portion of the 4th two keys relay, the other end of the resistance R8 and the 4th double-pole relaySecond input contact portion of device, the triode Q4 emitter stages are connected to ground by resistance R11, the triode Q5 transmittingsPole is connected to ground by resistance R12.
Preferably, the first passage drive circuit and second channel drive circuit use ULN2003 drivers.
Preferably, the CAN interface circuit is single line CAN bus interface circuit and/or two-wire CAN interfaceCircuit.
The utility model employs above-mentioned technical proposal, and the utility model has following technique effect:
(1), communication test device of the present utility model can quickly collect the fault message of automobile, and can automatic imitation vapourCar ECU communication protocol commands reply test, automatically generate simulated automotive ECU commands in return, when substantially reducing automobile ECU simulationBetween, the efficiency and accuracy rate of vehicle diagnosis are improved, there is good use value.
(2) analog signal of automobile communication, is formed between communication test device and automobile ECU of the present utility model, is avoidedAsking for Communication diagnostic could be completed by connection between substantial amounts of wire harness and exploitation extra diagnostic equipment and automobile ECUTopic, reduces the use of wire harness, improves diagnostic test efficiency, and the utility model principle is simple in construction, and control is easy.
Brief description of the drawings
Fig. 1 is existing simulated automotive fault diagnosis principle structure chart;
Fig. 2 is a kind of simulative automobile communication test schematic diagram of device of the present utility model;
Fig. 3 is communications interface unit schematic diagram of the present utility model;
Fig. 4 is K bus interface circuits schematic diagram of the present utility model;
Embodiment
For the purpose of this utility model, technical scheme and advantage is more clearly understood, referring to the drawings and enumerate excellentEmbodiment is selected, the utility model is further described.However, it is necessary to illustrate, many details listed in specificationIt is specific even without these just for the sake of making reader have a thorough explanation to one or more aspects of the present utility modelDetails can also realize it is of the present utility model these aspect.
As shown in Fig. 2 according to a kind of simulative automobile communication test device of the present utility model, including it is USB interfaces, virtualSerial ports, central controller, logical extension controller, data storage and communications interface unit, the USB interface is by virtually going here and thereMouth communicates to connect with the central controller, and the virtual serial port also communicates to connect with logical extension controller, and the center controlsThe I/O port of device is connected with the IO mouths of logical extension controller, the logical data communication interface of the central controller, logical extension controlThe logic level interface of device processed is connected with the communications interface unit respectively, the OBD interfaces connection of communications interface unit and automobile,Data-interface, the data-interface of logical extension controller of the central controller are connected with data storage respectively.The voidIntending serial ports includes multiple RS232 interfaces and/or RS485 interfaces, is converted to USB interface by RS232 interface, RS485 interfacesRS232 interface and/or RS485 interfaces are communicatively coupled with central controller, logical extension controller respectively, in communication testWhen PC by USB interface, virtual serial port and central processing unit connect, and in real time read central controller collection automobile ECU dataDiagnostic analysis is carried out, its is easy to connect, it is not necessary to too many wire harness, it is possible to carry out communication test and diagnosis, the center controlDevice processed uses STM32F103 processor chips, the model EPM240T100C5N FPGAs that logical extension controller usesDevice.
In the utility model, as shown in figure 3, the communications interface unit comprise at least CAN interface circuit,RS232 bus interface circuits, RS485 bus interface circuits, K bus interface circuits, the first two keys relay, the second double-pole relayDevice, the 3rd two keys relay and the second two keys relay, the output end of the CAN interface circuit and first double-poleThe input contact portion of relay, the output end of the RS232 bus interface circuits are defeated with second two keys relayEnter terminal contacts connection, the output end of the RS485 bus interface circuits and the input terminal contacts of the 3rd two keys relay connectConnect, the output end of the K bus interface circuits and the input contact portion of the 4th two keys relay, first double-poleThe output terminal contacts of relay, the output terminal contacts of the second two keys relay, the output terminal contacts of the 3rd two keys relay, the 4thThe output terminal contacts of two keys relay pass through bus and the input contact portion of the hilted broadsword relay group, the hilted broadsword respectivelyThe output terminal contacts of relay group are connected with the OBD interfaces of the automobile, and the data communication interface of the central controller passes throughFirst passage the drive circuit control terminal with first two keys relay, the control terminal of the second two keys relay, the 3rd respectivelyThe control terminal of two keys relay, the connection of the control terminal of the 4th two keys relay, the logical extension controller pass through second channelDrive circuit is connected with the control terminal of the hilted broadsword relay group, the first passage drive circuit and second channel drive circuitUsing ULN2003 drivers;The CAN interface circuit is that single line CAN bus interface circuit and/or two-wire CAN connectMouth circuit, wherein, two-wire CAN interface circuit is sent and received using TJA1050 Transceiver Datas, and the single line CAN is totalInterface circuit carries out data using AU5790 and sent and received, because central controller directly leads to CAN interface circuitLetter, need to pass through logical extension control when central controller and RS232 bus interface circuits, RS485 bus interface circuits are communicatedDevice processed carries out alternative, and the signal for so only exporting RS232 bus interface circuits or RS485 bus interface circuits is through doubleAfter knife relay, logical extension controller by data/address bus select corresponding to single knife switch, then Communication diagnostic order can be sent outThe OBD interfaces of automobile ECU are delivered to, carry out Communication diagnostic analysis.
In the utility model, as shown in figure 4, the K bus interface circuits include buffering drive circuit Buf1, resistanceR1, resistance R2, resistance R3, resistance R4, resistance R5, resistance R6, resistance R7, resistance R8, resistance R9, resistance R10, resistance R11, electricityHinder R12, triode Q1, triode Q2, triode Q3, triode Q4, triode Q5 and diode D1, the buffering drive circuitInput be connected with the drive output of logical extension controller, the output end of buffering drive circuit passes through resistance R1 and instituteState triode Q1 base stage connection, the signal for being emitted through insurance circuit and the logical extension controller of the triode Q1Output end connects, and triode Q1 colelctor electrode is connected with resistance R2 one end, the colelctor electrode of the triode Q1 also with two polesPipe D1 negative electrodes connect, and diode D1 negative electrodes are connected with 5V dc sources, the resistance R2 other end respectively with the resistance R3One end, resistance R4 one end, triode Q2 emitter stage, triode Q3 emitter stage connection, the resistance R3 other end withThe base stage connection of the triode Q2, the resistance R4 other end are connected with institute triode Q3 base stage, triode Q2 collectionElectrode is connected with resistance R5 one end, the resistance R5 other end respectively with the triode Q4 colelctor electrodes, resistance R6 one endConnection, triode Q3 colelctor electrode is connected with resistance R7 one end, the resistance R7 other end respectively with the triode Q5One end connection of colelctor electrode, resistance R8, the base stage of the triode Q4 pass through resistance R9 and first passage drive circuit firstControl output end is connected, and the base stage of the triode Q5 is exported by the second control of resistance R10 and first passage drive circuitEnd connection, the first input end contact portion of the other end of the resistance R6 and the 4th two keys relay, the resistance R8The other end and the 4th two keys relay the second input contact portion, the triode Q4 emitter stages pass through resistanceR11 is connected to ground, and the triode Q5 emitter stages are connected to ground by resistance R12.Because the K buses of automobile ECU are 12V/5V, and central controller serial ports level mismatch, it is therefore desirable to carry out matching conversion to the level of input.Using four triodesDifferent types of pull-up and drop-down are realized, different types of signal combination can be realized.On triode Q2 and triode Q3 is responsible forSignal is drawn, triode Q4 and triode Q5 are responsible for the transmission of K bus signals, in addition triode Q1 Vin level control VCC levelRealize level conversion.
In the utility model, as shown in Figures 3 and 4, input and the logical extension control of the buffering drive circuit Buf1+ the 5V or+3.3V of the drive output VCC outputs of device processed high level connection, buffering drive circuit Buf1 use SN74LS07Driving chip.The signal output part Vin for being emitted through insurance circuit and the logical extension controller of the triode Q1 is defeatedGoing out -12V~+12V low and high level connection, triode Q1 colelctor electrode leads to diode D1 and is connected with 5V dc sources, so as toMake triode Q1 in the conduction state, then right+- 12V~+12V low and high levels enter respectively by triode Q2, triode Q3Row amplification, input/output end port (I/O) In1 and input/output end port (I/O) In2 output+5V level difference of center controlMake triode Q4, triode Q5 in the conduction state at any time, and conversion is balanced by triode Q4, triode Q5, exportK-Uout1 and K-Uout2 two-way level signals, the now data on K bus interface circuits, and defeated according to logical extension controllerThe specific instructions gone out are responded, and Communication diagnostic order is sent to automobile ECU, and automobile ECU receives K Bus Wire protocol commandsCorresponding reply is carried out afterwards to operate.When automobile ECU complete one reply operation after just in CAN, RS485 buses or RS232Heart bus sends the information comprising feedback command and carries out radiodiagnosis x analysis to central controller, and central controller carries out radiodiagnosis x pointThe result of analysis, which changes character string into and is stored in data storage or directly by USB interface, is sent to PC.
Described above is only preferred embodiment of the present utility model, it is noted that for the common skill of the artFor art personnel, on the premise of the utility model principle is not departed from, some improvements and modifications can also be made, these improve andRetouching also should be regarded as the scope of protection of the utility model.