CN106200609A - Automatically the device and method of engine of heavy-duty car ECU software version is tested - Google Patents

Automatically the device and method of engine of heavy-duty car ECU software version is tested Download PDF

Info

Publication number
CN106200609A
CN106200609A CN201510213026.9A CN201510213026A CN106200609A CN 106200609 A CN106200609 A CN 106200609A CN 201510213026 A CN201510213026 A CN 201510213026A CN 106200609 A CN106200609 A CN 106200609A
Authority
CN
China
Prior art keywords
module
engine
heavy
duty car
detection terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510213026.9A
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.)
Jiao Tianjianche Networked Information Technology Co Ltd In Shaanxi
Original Assignee
Jiao Tianjianche Networked Information Technology Co Ltd In Shaanxi
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 Jiao Tianjianche Networked Information Technology Co Ltd In Shaanxi filed Critical Jiao Tianjianche Networked Information Technology Co Ltd In Shaanxi
Priority to CN201510213026.9A priority Critical patent/CN106200609A/en
Publication of CN106200609A publication Critical patent/CN106200609A/en
Pending legal-status Critical Current

Links

Abstract

The device and method of a kind of automatic test engine of heavy-duty car ECU software version is provided, solves the problem that engine of heavy-duty car ECU occurs unauthorized software brush machine to cause unstable factor.Connect tested engine of heavy-duty car ECU CAN controller and detection terminal CAN controller with plain conductor, form physical connection, make engine of heavy-duty car ECU and detection terminal carry out information by CAN mutual.Detection terminal includes CAN controller, detection terminal CPU, human-computer interaction device, power module, clock module, detection terminal is connected by Handshake Protocol foundation with engine of heavy-duty car ECU, engine of heavy-duty car ECU includes the detection data of software version number by CAN passback, the Monitoring Data that engine of heavy-duty car ECU is returned by detection terminal imports software version logical algorithm unit, detects that whether the most legal the software version of engine of heavy-duty car ECU is.

Description

Automatically the device and method of engine of heavy-duty car ECU software version is tested
Technical field
The invention belongs to automotive electronics application, be specifically related to a kind of test engine of heavy-duty car ECU automatically The method and apparatus of software version.
Background technology
At present, the heavy-duty car CAN bus control system product of domestic-developed mainly includes vehicle body central controller CU and combination instrument IC and vehicle body load driver three part.As the vehicle body central controller of Vehicle Body Bus gateway, It on the one hand can be with vehicle engine assembly such as electric-control motor, the automatically controlled list of anti-lock braking system ABS/ASR Unit realizes communication for information and shares, and on the other hand vehicle body central controller needs to include Assembled lamp photoswitch by collection, The substantial amounts of switching signals such as windscreen wiper/wash switch, body light switch and key switch, it is achieved the control to body electric system Function.Additionally, in some cases, vehicle body central controller also needs to gather some sensor signals such as speed sensing Device signal, fuel-quantity transducer signal, baroceptor signal etc., by signals such as speed, amount of fuel and braking pressures It is sent to combination instrument by CAN.Combination instrument resolves the disappearing from vehicle body central controller received Breath, is shown signals such as speed, engine speed, amount of fuel, engine water temperatures by pointer instrument, The fault alarm information that simultaneously be there is currently by automobile points out driver in the way of liquid crystal display and buzzer warning. Vehicle body load driver receives and parses through the various switching value messages that vehicle body central controller sends, and completes corresponding vehicle body The control of load such as various electromagnetic valves, car light, windscreen wiper/spray motor etc..Visible vehicle body central controller is backstage letter The central hub that breath processes, its effect and status are particularly significant.
And engine of heavy-duty car ECU is heavy-duty car CAN bus control system next one core cell, weight Type automobile engine is as the core component of heavy-duty car, mechanical part and the guarantor of electronic control unit to these parts Support and data monitoring is a particularly important function.
For heavy-duty car CAN bus product existing on market, when engine of heavy-duty car ECU occurs Unauthorized software brush machine, causes engine of heavy-duty car ECU to form software unstable factor, especially at night Between or during vile weather down train, engine of heavy-duty car ECU once breaks down, and may cause at car load In state of paralysis, thus cause automobile to stop immediately and the most again cannot start, this can give normal produce and Life brings great inconvenience.
Summary of the invention
The software version brush that it is an object of the invention to overcome without approval and authorize enters engine of heavy-duty car ECU, The device and method of a kind of automatic test engine of heavy-duty car ECU software version is provided.Solve heavy-duty car There is unauthorized software brush machine in Engine ECU, causes engine of heavy-duty car ECU to form software unstable The problem of factor.
To achieve these goals, the technical solution used in the present invention is:
The device of a kind of automatic test engine of heavy-duty car ECU software version, including detection terminal, detection is eventually End include detect terminal CAN controller (24), detection terminal CPU, human-computer interaction device, power module, Clock module, specifically:
CAN controller (30) interface of tested engine of heavy-duty car ECU (22) connects detection terminal CAN controller (24) interface, constitutes CAN communication system;
Described detection terminal CAN controller (24) connects detection terminal CPU;
Described human-computer interaction device includes that bound of parameter face device, output display device, man-machine interaction are specified in input Device connects detection terminal CPU;
Described detection terminal CPU obtains the data of the appointment parameter that human-computer interaction device is inputted, and detects terminal The data of this appointment parameter are transferred to engine of heavy-duty car ECU by CAN controller, and heavy-duty car starts The appointment parameter obtained is verified by machine ECU, if the consistent Monitoring Data that then sends is to detection terminal, this monitoring Data include Engine ECU software version number;
Described detection terminal CPU includes that software version logical algorithm unit, software version logical algorithm unit receive During the Monitoring Data that engine of heavy-duty car ECU sends, start with logical algorithm and carry out engine of heavy-duty car ECU software version confirms, software version logical algorithm unit connects output display device, and this confirmation result is by defeated Go out display device output.
Further, described output display device includes display screen and sound prompt device;Connect with plain conductor CAN controller (30) interface of tested engine of heavy-duty car ECU (22) and detection terminal (26) Detection terminal CAN controller (24) interface;The clock module of described detection terminal uses clock brilliant Shake;Described power module uses power supply control chip.
Further, described appointment parameter includes time, Motor Number, the unique sequence numbers of detection terminal self One or any two combinations or all.
Further, described detection terminal CPU includes actively shaking hands module, and module of actively shaking hands is according to man-machine friendship The appointment parameter that device is inputted mutually generates handshake authentication code, and module of actively shaking hands connects detection terminal CAN Controller, handshake authentication code is transferred to engine of heavy-duty car ECU by detection terminal CAN controller;
Engine of heavy-duty car ECU includes that handshake data mates module, Engine ECU handshake data coupling module After receiving handshake authentication code, solve this appointment parameter according to inversely decoding, verify whether consistent with self initial parameter, If consistent, shake hands successfully, and then send Engine ECU software by Engine ECU handshake data coupling module Version number is to detecting terminal, if inconsistent, Engine ECU does not send software version number, or Engine ECU Software version be unauthorized version, Engine ECU can not send software version number.
Further, time that described module of actively shaking hands is inputted according to human-computer interaction device, Motor Number, The unique sequence numbers of detection terminal self is synthetically generated handshake authentication code jointly, is sent out to Engine ECU by bus Send, described handshake data coupling module this handshake authentication code inversely decoding is solved the time of obtaining, Motor Number, The unique sequence numbers of detection terminal self.
Further, described module of actively shaking hands include the acquisition that is sequentially connected with specify parameter module, encrypting module, Data outputting module, wherein obtain specify parameter module, by human-computer interaction device input time, Motor Number, Detection terminal unique sequence numbers carries out storing and being transferred to encrypting module;Encrypting module, starts according to input parameter and adds Data are encrypted by close algorithm, connect data outputting module after encryption;Data outputting module is by bus even Connecing the handshake data coupling module of heavy-duty engine ECU, handshake data coupling module includes deciphering module, by solution Data are decrypted by close algorithm.
Further, described software version logical algorithm unit includes that the calibrating being sequentially connected with starts module, judgement Tachometer value module, judgement send message time module, start to send handshake message module, Monitoring Data acquisition module, Monitoring Data acquisition module connection judgment message respectively sends cycle module, judges Version module, it is judged that message sends Cycle module connects calibrating number of times accumulator module, and calibrating number of times accumulator module connects calibrating number of times judge module, calibrating Number of times judge module connection judgment Version module, it is judged that Version module connects version abnormal alarm module, version respectively Normal module, version abnormal alarm module, the normal module of version be all connected with calibrating and terminate module, wherein:
Calibrating starts module, carries out connection judgment tachometer value module after Initialize installation;Judge tachometer value module, logical Cross bus and obtain engine speed, it may be judged whether reach the tachometer value set, when reaching rear connection judgment transmission message Between module, the tachometer value not up to set, then connect calibrating number of times judge module;
Judge send message time module, it may be judged whether reach set send message time, when reached between after, Connect and start to send handshake message module;
Start to send handshake message module, the handshake authentication code specifying parameter to generate is sent to Engine ECU, so Rear connection Monitoring Data acquisition module;
Monitoring Data acquisition module, it may be judged whether receive the Monitoring Data that Engine ECU returns, Monitoring Data bag Include the data of software version number, receive then connection judgment Version module, do not receive then connection judgment message and send the cycle Module;
Judge that the data of the Version module software version number to receiving are compared, as consistent or legal, connect version Normal module, as inconsistent or non-rule connects version abnormal alarm module;
The normal module of version, connects output display device, version normal information is exported with the form of acousto-optic-electric;
Judge that message sends cycle module, it is judged that wait that the time that Monitoring Data returns is the most overtime, as time-out then connects Connect calibrating number of times accumulator module, otherwise connect Monitoring Data acquisition module;
Calibrating number of times accumulator module, to shaking hands every time, the failed number of times of time-out adds up, and cumulative data is sent to inspection Determine number of times judge module;
Calibrating number of times judge module, when examining and determine number of times cumulative data and exceeding setting value, connects version abnormal alarm mould Block, otherwise connection judgment sends message time module.
Version abnormal alarm module, connects output display device, version abnormal information is exported with the form of acousto-optic-electric.
Further, including tested engine of heavy-duty car ECU (22) and detection terminal (26);Detection terminal (26) mainly it is made up of two parts: a part is to detect the CAN controller (24) of terminal (26) i.e. CAN physical layer;Another part is that microcontroller i.e. detects terminal (26) CPU and other auxiliary element The detection terminal software version logic algorithm unit of composition, the CAN physical layer of detection terminal (26) and inspection Survey between terminal (26) software version logical algorithm unit by 4 plain conductors connect positive sources, power supply ground, CAN sends signal and CAN receives signal;The CAN controller (24) of detection terminal (26) is by CAN Bus signals is converted to TTL reception signal (28) and is input to detect terminal software version logic algorithm unit (27) In, and produced TTL by detection terminal software version logic algorithm unit (27) and send signal (25) by detection The CAN controller (24) of terminal (26) is converted to CAN signal, is sent in CAN; Tested engine of heavy-duty car ECU (22) is controlled by the CAN of engine of heavy-duty car ECU (22) Device (30), is converted to TTL by the Monitoring instruction CAN signal received from detection terminal (26) and receives Signal is input to engine of heavy-duty car ECU (22), and engine of heavy-duty car ECU (22) is by Monitoring Data TTL It is total that transmission signal (31) is converted to CAN by the CAN controller (30) of engine of heavy-duty car ECU Line signal replys Monitoring Data to detecting terminal (26).
A kind of method of automatic test engine of heavy-duty car ECU software version, uses detection terminal, and detection is eventually End includes human-computer interaction device, CAN controller, detection terminal CPU, power module, including walking as follows Rapid:
The first step, is entered by CAN between engine of heavy-duty car ECU (22) and detection terminal (26) Row connects;
Second step, sends Monitoring instruction, prison by detection terminal (26) to engine of heavy-duty car ECU (22) Surveying instruction and include instruction of shaking hands, after shaking hands successfully, number is monitored in engine of heavy-duty car ECU (22) passback accordingly According to, Monitoring Data includes the information of the software version of engine of heavy-duty car ECU, and otherwise, heavy-duty car starts Machine ECU does not return corresponding Monitoring Data;
3rd step, after shaking hands successfully, Monitoring Data is transmitted into the software version logical algorithm list of detection terminal CPU Unit, the software version of this unit detection engine of heavy-duty car ECU, if engine of heavy-duty car ECU software It is incorrect that version is detected version, and display screen and voice message by detection terminal provide warning, tested heavy type Automobile engine ECU software version fails to reach the requirement of current complete machine solidification version;If heavy-duty car starts Machine ECU software version is detected version and correctly reaches the requirement of current complete machine solidification version, determines heavy vapour with this Car engine ECU software version.
Further, the rotary speed data that startup receives engine of heavy-duty car ECU transmission in detection terminal every time reaches After requiring to detection terminal calibrating, when arriving detection terminal monitoring message delivery time, detection terminal sends detection report Literary composition, when detecting terminal and receiving the Monitoring Data that engine of heavy-duty car ECU sends, starts with logical algorithm Carry out engine of heavy-duty car ECU software version to confirm;If confirm as authorizing perhaps can engine of heavy-duty car ECU software version, then this calibrating terminates;If until the next transmission cycle after detection terminal detection messages transmission When all not receiving the Monitoring Data that engine of heavy-duty car ECU sends in a period of time before beginning, then circulation is held The above-mentioned logic flow of row, to more than set point number, does not the most all receive the monitoring that engine of heavy-duty car ECU sends The Monitoring Data that data or the engine of heavy-duty car ECU that receives send through logical algorithm confirm as unauthorized or The engine of heavy-duty car ECU software version of license, then being considered as this engine of heavy-duty car ECU software version is Illegal version;By this event with the alarm form of acousto-optic-electric, by detection terminal alarms.
Accompanying drawing explanation
Fig. 1 is the process box of an embodiment of the device of test engine of heavy-duty car ECU software version automatically Figure;
Fig. 2 is an enforcement of the detection terminal of the device of test engine of heavy-duty car ECU software version automatically The structured flowchart of example;
Fig. 3 is the part electricity of an embodiment of the device of test engine of heavy-duty car ECU software version automatically Road schematic diagram;
Fig. 4 is another portion of an embodiment of the device of test engine of heavy-duty car ECU software version automatically Parallel circuit schematic diagram;
Fig. 5 is the circuit board of an embodiment of the device of test engine of heavy-duty car ECU software version automatically Connect figure;
Fig. 6 is that the work of an embodiment of the device of test engine of heavy-duty car ECU software version automatically is patrolled Collect flow chart;
Fig. 7 is that the device of test engine of heavy-duty car ECU software version automatically is shaken hands with Engine ECU and number Flow chart according to an embodiment of exchange verification;
Fig. 8 is the active of detection terminal CPU of the device of test engine of heavy-duty car ECU software version automatically Shake hands the structure chart of an embodiment of module;
Fig. 9 is the software of detection terminal CPU of the device of test engine of heavy-duty car ECU software version automatically The structure chart of one embodiment of version logic algorithm unit.
Detailed description of the invention
In conjunction with drawings and the specific embodiments, the present invention is further described:
Automatically the device of test engine of heavy-duty car ECU software version is by engine of heavy-duty car ECU and detection Terminal, is connected into a CAN communication system by two plain conductors, constitutes whole heavy-duty car and starts The device of machine ECU software version.Engine of heavy-duty car ECU include CPU and CAN controller and Some other auxiliary element such as clock crystal oscillator, power supply control chip etc.;Detection terminal includes that CPU and CAN is total Lane controller and some other auxiliary element such as clock crystal oscillator, power supply control chip etc..Also include man-machine interaction Device, human-computer interaction device includes that bound of parameter face device, output display device, human-computer interaction device are specified in input Connect detection terminal CPU;Described output display device includes display screen and sound prompt device;Described appointment Parameter includes or any two combinations or complete of the unique sequence numbers of time, Motor Number, detection terminal self Portion.In practical operation, system designer can be arranged according to the various unique identifiers of device or detection terminal Become the appointment parameter of device, then to dress by the way of conventional operation method is encrypted or synthesizes identifying code Put and carry out framework.
Detection terminal (26) is mainly made up of two parts: a part is the CAN control of detection terminal (26) Device processed (24) i.e. CAN physical layer;Another part be microcontroller i.e. detect terminal (26) CPU and The detection terminal software version logic algorithm unit of other auxiliary element composition, the CAN of detection terminal (26) is total It is connected power supply by 4 plain conductors between line physical layer with detection terminal (26) software version logical algorithm unit Positive pole, power supply ground, CAN send signal and CAN receives signal;The CAN control of detection terminal (26) CAN signal is converted to TTL reception signal (28) and is input to detect terminal software version by device processed (24) In logical algorithm unit (27), and produced TTL by detection terminal software version logic algorithm unit (27) and send Signal (25) is converted to CAN signal by the CAN controller (24) of detection terminal (26), It is sent in CAN;Tested engine of heavy-duty car ECU (22) passes through engine of heavy-duty car ECU (22) CAN controller (30), will be from detection terminal (26) the Monitoring instruction CAN signal that receive Be converted to TTL reception signal and be input to engine of heavy-duty car ECU (22), engine of heavy-duty car ECU (22) Monitoring Data TTL is sent the signal (31) the CAN controller (30) by engine of heavy-duty car ECU Be converted to CAN signal and reply Monitoring Data to detecting terminal (26).
Fig. 1 present invention is used for the work block diagram of the device of test engine of heavy-duty car ECU software version automatically, Including engine of heavy-duty car ECU device (22) and detection terminal (26).Two parts are by holding wire CAN_L (29) Connect with CAN_H (23) plain conductor and realize communicating.Its heavy Duty Automobile Engine ECU device 22 is main Will by engine of heavy-duty car ECU CPU device 20, engine of heavy-duty car ECU CAN controller 30, Holding wire CAN_TX 31 and holding wire CAN_RX 21 forms;Detection terminal 26 is total by detection terminal CAN Lane controller 24 and detection terminal CPU 27 are connected by holding wire CAN_RX 28 and CAN_TX 25.
Engine of heavy-duty car ECU CPU 20 transmits TTL signal 31 to engine of heavy-duty car ECU CAN Bus control unit 30, engine of heavy-duty car ECU CAN controller is realized by transmission CAN signal 29 Communication with detection terminal CAN controller 24;After detection terminal receives CAN signal, to detection eventually End CPU 27 sends TTL signal 28, and detection terminal CPU 27 sends TTL signal and feeds back to detection eventually after processing End CAN controller 24, terminal CAN controller 24 feeds back CAN message 23 to heavy-duty car and sends out Motivation ECU CAN controller 30, engine of heavy-duty car ECU CAN controller 30 is to heavy type Automobile engine ECU CPU 20 feeds back TTL information 21, thus completes whole communication process.
The present invention of Fig. 2 the present embodiment is for the device knot of test engine of heavy-duty car ECU software version automatically Structure block diagram.It is mainly by detection terminal CAN controller 24, power module 06, detection terminal CPU 27 Form with clock module 09.Power module 06 is total to detection terminal CAN by circuit 16 and circuit 15 respectively Lane controller 24 and detection terminal CPU 27 supply electricity;Clock module 09 passes through circuit 17 to detection terminal CPU transmits temporal information.Detection terminal CAN controller and detection terminal CPU are believed by transmission TTL Number realize communication.
Fig. 3 is the schematic diagram of device automatically testing engine of heavy-duty car ECU software version of the present embodiment, it Mainly turned 3.3V LDO power supply chip LM1117-33 and CPU by CAN transceiver TJA1040,5V LPC1768 is constituted.Powered to CPU LPC1768 and CAN transceiver TJA1040 by power supply chip. CPU LPC176845 pin P0.0 connects CAN transceiver TJA10404 pin rxd, 46 pin P0.0 Connect CAN transceiver TJA10401 pin txd.
Fig. 6 is that the device software function of the engine of heavy-duty car ECU software version of test automatically of the present embodiment is real Existing logical flow chart.After calibrating function starts, it is judged that check whether rotating speed reaches the tachometer value Kr/min set, should Kr/min tachometer value is set by system designer, if do not reached, returns operation;If reached, detect whether Arriving and send the detection messages time, if do not reached, returning;If reached, perform to start to send a frame detection report Literary composition.Detect whether to receive engine of heavy-duty car ECU Monitoring Data, if it is, detection confirms that heavy-duty car is sent out Motivation ECU version is the most illegal, is, directly performs the abnormal report calibrating of engine of heavy-duty car ECU version different Often warning message;Otherwise performing heavy truck automobile engine ECU version normal, calibrating function terminates.Detect whether Receive engine of heavy-duty car ECU Monitoring Data, if it does not, detect whether to send beyond next frame detection messages Cycle Nms, continues detection if it is not, then return;If it is, perform calibrating number of times to add 1;Then calibrating is detected Whether number of times, more than or equal to 3, detects whether to reach to send the detection messages time if it is not, then return;If it is, Performing the abnormal calibrating abnormal alarm information of reporting of engine of heavy-duty car ECU version, calibrating function terminates.Calibrating Number of times can also be other numerical value beyond 3.The most all do not receive the monitoring that engine of heavy-duty car ECU sends The Monitoring Data that data or the engine of heavy-duty car ECU that receives send through logical algorithm confirm as unauthorized or The engine of heavy-duty car ECU software version of license, then being considered as this engine of heavy-duty car ECU software version is Illegal version.By this event with the alarm form of acousto-optic-electric, by detection terminal alarms.
Fig. 7 be a kind of automatic test engine of heavy-duty car ECU software version of the present embodiment device with start Machine ECU shakes hands and data exchange checking process figure.Automatically the dress of engine of heavy-duty car ECU software version is tested The module of actively shaking hands put sends according to time, Motor Number to Engine ECU, and test heavy-duty car is sent out automatically The handshake authentication code of the device unique sequence numbers synthesis of motivation ECU software version.Engine ECU handshake data Joining after module receives this signal, pick out time, Motor Number according to inversely decoding, test heavy-duty car starts automatically The device unique sequence numbers of machine ECU software version, verifies whether consistent with initial parameter.If consistent, shake hands into Merit, and then send Engine ECU software version number to automatically surveying by Engine ECU handshake data coupling module The device of examination engine of heavy-duty car ECU software version.If inconsistent or Engine ECU is software version Unauthorized version, then Engine ECU does not send software version number.In like manner Engine ECU handshake data coupling mould Group uses anti-manner of decryption, decrypted symbols.
Fig. 8, Fig. 9 are to the device of a kind of automatic test engine of heavy-duty car ECU software version of the present embodiment Concrete module is further described:
Parameter module, encrypting module, data outputting module are specified in the acquisition that module of actively shaking hands includes being sequentially connected with, Wherein obtain and specify parameter module, by the time of human-computer interaction device input, Motor Number, the unique sequence of detection terminal Row number carry out storing and being transferred to encrypting module;Encrypting module, starts AES according to input parameter and enters data Row encryption, connects data outputting module after encryption;Data outputting module connects heavy-duty engine by bus The handshake data coupling module of ECU, handshake data coupling module includes deciphering module, data is entered with decipherment algorithm Row deciphering.
Software version logical algorithm unit includes that the calibrating being sequentially connected with starts module, judges tachometer value module, judgement Sending message time module, start to send handshake message module, Monitoring Data acquisition module, Monitoring Data obtains mould Block connection judgment message respectively sends cycle module, judges Version module, it is judged that message sends cycle module and connects inspection Determining number of times accumulator module, calibrating number of times accumulator module connects calibrating number of times judge module, and calibrating number of times judge module is even Connect judgement Version module, it is judged that Version module connects version abnormal alarm module, the normal module of version, version respectively The normal module of abnormal alarm module, version is all connected with calibrating and terminates module, wherein:
Calibrating starts module, carries out connection judgment tachometer value module after Initialize installation;Judge tachometer value module, logical Cross bus and obtain engine speed, it may be judged whether reach the tachometer value set, when reaching rear connection judgment transmission message Between module, the tachometer value not up to set, then connect calibrating number of times judge module;
Judge send message time module, it may be judged whether reach set send message time, when reached between after, Connect and start to send handshake message module;
Start to send handshake message module, the handshake authentication code specifying parameter to generate is sent to Engine ECU, so Rear connection Monitoring Data acquisition module;
Monitoring Data acquisition module, it may be judged whether receive the Monitoring Data that Engine ECU returns, Monitoring Data bag Include the data of software version number, receive then connection judgment Version module, do not receive then connection judgment message and send the cycle Module;
Judge that the data of the Version module software version number to receiving are compared, as consistent or legal, connect version Normal module, as inconsistent or non-rule connects version abnormal alarm module;
The normal module of version, connects output display device, version normal information is exported with the form of acousto-optic-electric;
Judge that message sends cycle module, it is judged that wait that the time that Monitoring Data returns is the most overtime, as time-out then connects Connect calibrating number of times accumulator module, otherwise connect Monitoring Data acquisition module;
Calibrating number of times accumulator module, to shaking hands every time, the failed number of times of time-out adds up, and cumulative data is sent to inspection Determine number of times judge module;
Calibrating number of times judge module, when examining and determine number of times cumulative data and exceeding setting value, connects version abnormal alarm mould Block, otherwise connection judgment sends message time module.
Version abnormal alarm module, connects output display device, version abnormal information is exported with the form of acousto-optic-electric.
Above module of actively shaking hands, concrete the setting of each module of each module of software version logical algorithm unit Meter and executive mode are the technological means that those skilled in the art are capable of.
A kind of method of automatic test engine of heavy-duty car ECU software version, uses detection terminal, and detection is eventually End includes human-computer interaction device, CAN controller, detection terminal CPU, power module, including walking as follows Rapid:
The first step, is entered by CAN between engine of heavy-duty car ECU (22) and detection terminal (26) Row connects;
Second step, sends Monitoring instruction, prison by detection terminal (26) to engine of heavy-duty car ECU (22) Surveying instruction and include instruction of shaking hands, after shaking hands successfully, number is monitored in engine of heavy-duty car ECU (22) passback accordingly According to, Monitoring Data includes the information of the software version of engine of heavy-duty car ECU, and otherwise, heavy-duty car starts Machine ECU does not return corresponding Monitoring Data;
3rd step, after shaking hands successfully, Monitoring Data is transmitted into the software version logical algorithm list of detection terminal CPU Unit, the software version of this unit detection engine of heavy-duty car ECU, if engine of heavy-duty car ECU software It is incorrect that version is detected version, and display screen and voice message by detection terminal provide warning, tested heavy type Automobile engine ECU software version fails to reach the requirement of current complete machine solidification version;If heavy-duty car starts Machine ECU software version is detected version and correctly reaches the requirement of current complete machine solidification version, determines heavy vapour with this Car engine ECU software version.
In the methods described above, startup receives, in detection terminal, the rotating speed that engine of heavy-duty car ECU sends every time After data reach to detect terminal calibrating requirement, when arriving detection terminal monitoring message delivery time, detection terminal sends Detection messages, when detecting terminal and receiving the Monitoring Data that engine of heavy-duty car ECU sends, starts with and patrols Collect algorithm and carry out the confirmation of engine of heavy-duty car ECU software version;If confirm as authorizing perhaps can heavy-duty car Engine ECU software version, then this calibrating terminates;If until next after detection terminal detection messages transmission The transmission cycle start before a period of time in all do not receive engine of heavy-duty car ECU send Monitoring Data time, Then circulation performs above-mentioned logic flow to more than set point number, does not the most all receive engine of heavy-duty car ECU and sends out The Monitoring Data that the Monitoring Data sent or the engine of heavy-duty car ECU received send is confirmed as through logical algorithm Unauthorized perhaps can engine of heavy-duty car ECU software version, then be considered as this engine of heavy-duty car ECU soft Part version is illegal version;By this event with the alarm form of acousto-optic-electric, by detection terminal alarms.
Finally should be noted that: above example is only in order to illustrate that the technical scheme of this case is not intended to limit;To the greatest extent This case has been described in detail by pipe with reference to preferred embodiment, those of ordinary skill in the field it is understood that Still the detailed description of the invention of this case can be modified or portion of techniques feature is carried out equivalent;And not Departing from the spirit of this case technical scheme, it all should be contained in the middle of the technical scheme scope that this case is claimed.

Claims (10)

1. the device of an automatic test engine of heavy-duty car ECU software version, it is characterised in that include that detection is eventually End, detection terminal includes detecting terminal CAN controller (24), detection terminal CPU, man-machine interaction Device, power module, clock module, specifically:
CAN controller (30) interface of tested engine of heavy-duty car ECU (22) connects detection Terminal CAN controller (24) interface, constitutes CAN communication system;
Described detection terminal CAN controller (24) connects detection terminal CPU;
Described human-computer interaction device includes that bound of parameter face device, output display device are specified in input, man-machine Interactive device connects detection terminal CPU;
Described detection terminal CPU obtains the data of the appointment parameter that human-computer interaction device is inputted, and detection is eventually The data of this appointment parameter are transferred to engine of heavy-duty car ECU, heavy vapour by end CAN controller The appointment parameter obtained is verified by car engine ECU, then sends Monitoring Data to detection eventually as consistent End, this Monitoring Data includes Engine ECU software version number;
Described detection terminal CPU includes software version logical algorithm unit, software version logical algorithm unit When receiving the Monitoring Data that engine of heavy-duty car ECU sends, start with logical algorithm and carry out heavy vapour Car engine ECU software version confirms, software version logical algorithm unit connects output display device, should Confirm that result is exported by output display device.
The device of a kind of automatic test engine of heavy-duty car ECU software version the most according to claim 1, its Being characterised by, described output display device includes display screen and sound prompt device;Connect with plain conductor CAN controller (30) interface of tested engine of heavy-duty car ECU (22) and detection terminal (26) Detection terminal CAN controller (24) interface;The clock module of described detection terminal uses clock Crystal oscillator;Described power module uses power supply control chip.
The device of a kind of automatic test engine of heavy-duty car ECU software version the most according to claim 1, its Being characterised by, described appointment parameter includes time, Motor Number, the unique sequence numbers of detection terminal self One or any two combinations or all.
4. according to the arbitrary described a kind of automatic test engine of heavy-duty car ECU software version of claims 1 to 3 Device, it is characterised in that
Described detection terminal CPU includes actively shaking hands module, and module of actively shaking hands is according to human-computer interaction device The appointment parameter inputted generates handshake authentication code, and module of actively shaking hands connects detection terminal CAN control Device processed, handshake authentication code is transferred to engine of heavy-duty car ECU by detection terminal CAN controller;
Engine of heavy-duty car ECU includes that handshake data mates module, and Engine ECU handshake data is mated After module receives handshake authentication code, solve this appointment parameter according to inversely decoding, verify whether original with self Parameter is consistent, if consistent, shakes hands successfully, and then is sent by Engine ECU handshake data coupling module Engine ECU software version number is to detecting terminal, if inconsistent, Engine ECU does not send software version Number, or the software version of Engine ECU is unauthorized version, Engine ECU can not send software version This number.
The device of a kind of automatic test engine of heavy-duty car ECU software version the most according to claim 4, its Be characterised by, time that described module of actively shaking hands is inputted according to human-computer interaction device, Motor Number, The unique sequence numbers of detection terminal self is synthetically generated handshake authentication code, jointly by bus to Engine ECU Sending, this handshake authentication code inversely decoding is solved the time of obtaining, starts by described handshake data coupling module Plane No., the unique sequence numbers of detection terminal self.
The device of a kind of automatic test engine of heavy-duty car ECU software version the most according to claim 4, its Be characterised by, described module of actively shaking hands include the acquisition that is sequentially connected with specify parameter module, encrypting module, Data outputting module, wherein obtains and specifies parameter module, by time, the electromotor of human-computer interaction device input Number, detection terminal unique sequence numbers carry out storing and being transferred to encrypting module;Encrypting module, according to input ginseng Number starts AES and is encrypted data, connects data outputting module after encryption;Data output mould Block connects the handshake data coupling module of heavy-duty engine ECU by bus, and handshake data coupling module includes Data are decrypted by deciphering module with decipherment algorithm.
7. according to the arbitrary described a kind of automatic test engine of heavy-duty car ECU software version of claims 1 to 3 Device, it is characterised in that described software version logical algorithm unit includes that the calibrating being sequentially connected with starts mould Block, judge tachometer value module, judge send message time module, start to send handshake message module, monitoring Data acquisition module, Monitoring Data acquisition module connection judgment message respectively sends cycle module, judges version Module, it is judged that message sends cycle module and connects calibrating number of times accumulator module, and calibrating number of times accumulator module connects Calibrating number of times judge module, examines and determine number of times judge module connection judgment Version module, it is judged that Version module is respectively Connecting version abnormal alarm module, the normal module of version, version abnormal alarm module, the normal module of version are equal Connect calibrating and terminate module, wherein:
Calibrating starts module, carries out connection judgment tachometer value module after Initialize installation;Judge tachometer value module, Obtain engine speed by bus, it may be judged whether reach the tachometer value set, reach rear connection judgment and send Message time module, the tachometer value not up to set, then connect calibrating number of times judge module;
Judge to send message time module, it may be judged whether reach the time sending message set, when reached After between, connect and start to send handshake message module;
Start to send handshake message module, the handshake authentication code specifying parameter to generate is sent to electromotor ECU, then connects Monitoring Data acquisition module;
Monitoring Data acquisition module, it may be judged whether receive the Monitoring Data that Engine ECU returns, monitors number According to including the data of software version number, receive then connection judgment Version module, do not receive then connection judgment message Send cycle module;
Judge that the data of the Version module software version number to receiving are compared, as consistent or legal, connect The normal module of version, as inconsistent or non-rule connects version abnormal alarm module;
The normal module of version, connects output display device, version normal information is exported with the form of acousto-optic-electric;
Judge that message sends cycle module, it is judged that wait that the time that Monitoring Data returns is the most overtime, such as time-out Then connect calibrating number of times accumulator module, otherwise connect Monitoring Data acquisition module;
Calibrating number of times accumulator module, to shaking hands every time, the failed number of times of time-out adds up, and cumulative data sends Give calibrating number of times judge module;
Calibrating number of times judge module, when examining and determine number of times cumulative data and exceeding setting value, connects the abnormal report of version Alert module, otherwise connection judgment sends message time module.
Version abnormal alarm module, connects output display device, by version abnormal information with the form of acousto-optic-electric Output.
8. according to the arbitrary described a kind of automatic test engine of heavy-duty car ECU software version of claims 1 to 3 Device, it is characterised in that include tested engine of heavy-duty car ECU (22) and detection terminal (26);Inspection Survey terminal (26) to be mainly made up of two parts: a part is the CAN controller of detection terminal (26) (24) i.e. CAN physical layer;Another part be microcontroller i.e. detect terminal (26) CPU and The detection terminal software version logic algorithm unit of other auxiliary element composition, the CAN of detection terminal (26) Between bus physical layer and detection terminal (26) software version logical algorithm unit by 4 plain conductors even Connect positive source, power supply ground, CAN sends signal and CAN receives signal;The CAN of detection terminal (26) CAN signal is converted to TTL reception signal (28) and is input to detection eventually by bus control unit (24) In end software version logical algorithm unit (27), and by detection terminal software version logic algorithm unit (27) Produce TTL and send the signal (25) CAN controller (24) conversion by detection terminal (26) For CAN signal, it is sent in CAN;Tested engine of heavy-duty car ECU (22) is passed through The CAN controller (30) of engine of heavy-duty car ECU (22), will connect from detection terminal (26) The Monitoring instruction CAN signal received is converted to TTL reception signal and is input to engine of heavy-duty car Monitoring Data TTL is sent signal (31) by ECU (22), engine of heavy-duty car ECU (22) to be passed through The CAN controller (30) of engine of heavy-duty car ECU is converted to CAN signal and replys prison Survey data to detecting terminal (26).
9. the method for an automatic test engine of heavy-duty car ECU software version, it is characterised in that use detection eventually End, detection terminal includes human-computer interaction device, CAN controller, detection terminal CPU, power module, Comprise the steps:
The first step, total by CAN between engine of heavy-duty car ECU (22) and detection terminal (26) Line is attached;
Second step, sends Monitoring instruction by detection terminal (26) to engine of heavy-duty car ECU (22), Monitoring instruction includes instruction of shaking hands, and after shaking hands successfully, engine of heavy-duty car ECU (22) passback is corresponding Monitoring Data, Monitoring Data includes the information of the software version of engine of heavy-duty car ECU, otherwise, weight Type automobile engine ECU does not return corresponding Monitoring Data;
3rd step, after shaking hands successfully, Monitoring Data is transmitted into the software version logic of detection terminal CPU and calculates Method unit, the software version of this unit detection engine of heavy-duty car ECU, if engine of heavy-duty car ECU software version be detected version incorrect then by the detection display screen of terminal and voice message to responding Accusing, tested engine of heavy-duty car ECU software version fails to reach the requirement of current complete machine solidification version; If engine of heavy-duty car ECU software version is detected version correctly reaches current complete machine solidification version Requirement, determines engine of heavy-duty car ECU software version with this.
The method of a kind of automatic test engine of heavy-duty car ECU software version the most according to claim 9, its Being characterised by, the rotary speed data that startup receives engine of heavy-duty car ECU transmission in detection terminal every time reaches After detection terminal calibrating requires, when arriving detection terminal monitoring message delivery time, detection terminal sends detection Message, when detecting terminal and receiving the Monitoring Data that engine of heavy-duty car ECU sends, starts with logic Algorithm carries out engine of heavy-duty car ECU software version and confirms;If confirm as authorizing perhaps can heavy-duty car Engine ECU software version, then this calibrating terminates;If until next after detection terminal detection messages transmission The individual transmission cycle start before a period of time in all do not receive engine of heavy-duty car ECU send Monitoring Data Time, then circulation performs above-mentioned logic flow to more than set point number, does not the most all receive engine of heavy-duty car Monitoring Data that ECU sends or the Monitoring Data that the engine of heavy-duty car ECU that receives sends are through logic Algorithm confirm as unauthorized perhaps can engine of heavy-duty car ECU software version, then be considered as this heavy-duty car Engine ECU software version is illegal version;By this event with the alarm form of acousto-optic-electric, by detection eventually End is reported to the police.
CN201510213026.9A 2015-04-29 2015-04-29 Automatically the device and method of engine of heavy-duty car ECU software version is tested Pending CN106200609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510213026.9A CN106200609A (en) 2015-04-29 2015-04-29 Automatically the device and method of engine of heavy-duty car ECU software version is tested

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510213026.9A CN106200609A (en) 2015-04-29 2015-04-29 Automatically the device and method of engine of heavy-duty car ECU software version is tested

Publications (1)

Publication Number Publication Date
CN106200609A true CN106200609A (en) 2016-12-07

Family

ID=57458168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510213026.9A Pending CN106200609A (en) 2015-04-29 2015-04-29 Automatically the device and method of engine of heavy-duty car ECU software version is tested

Country Status (1)

Country Link
CN (1) CN106200609A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874055A (en) * 2017-03-07 2017-06-20 上海怿星电子科技有限公司 A kind of method and apparatus for writing with a brush dipped in Chinese ink test automatically for automobile ECU program
CN107807627A (en) * 2017-09-30 2018-03-16 上海富欣智能交通控制有限公司 Electrical equipment input state real-time display system and its display methods
CN109582573A (en) * 2018-11-23 2019-04-05 江西洪都航空工业集团有限责任公司 Test missile-borne integration control plane software version method
CN111078458A (en) * 2019-12-31 2020-04-28 潍柴动力股份有限公司 Electronic control unit, software compatibility detection method and device thereof, and automobile
CN111796583A (en) * 2020-08-21 2020-10-20 上海星融汽车科技有限公司 Vehicle ECU (electronic control Unit) identification method and system and vehicle diagnosis equipment
US10865726B2 (en) 2018-02-04 2020-12-15 Ehsanollah Zadpour Fault diagnosis of electronic control unit (ECU)
CN112445197A (en) * 2019-09-02 2021-03-05 北京新能源汽车股份有限公司 Controller version information verification method, processor and whole vehicle test system
CN113037725A (en) * 2021-02-26 2021-06-25 上海钧正网络科技有限公司 Riding test method, server, test pile and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5530360A (en) * 1994-12-09 1996-06-25 Chrysler Corporation Apparatus and method for diagnosing faults in a vehicle electrical system
CN102033541A (en) * 2009-09-30 2011-04-27 比亚迪股份有限公司 System for testing automobile instrument with controller area network (CAN) bus and testing method thereof
CN103197666A (en) * 2013-03-26 2013-07-10 重庆邮电大学 General-type handheld automobile fault diagnostic instrument
CN103901823A (en) * 2012-12-25 2014-07-02 联合汽车电子有限公司 Vehicle-mounted remote terminal
CN204536901U (en) * 2015-04-29 2015-08-05 陕西中交天健车联网信息技术有限公司 The device of automatic test engine of heavy-duty car ECU software version

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5530360A (en) * 1994-12-09 1996-06-25 Chrysler Corporation Apparatus and method for diagnosing faults in a vehicle electrical system
CN102033541A (en) * 2009-09-30 2011-04-27 比亚迪股份有限公司 System for testing automobile instrument with controller area network (CAN) bus and testing method thereof
CN103901823A (en) * 2012-12-25 2014-07-02 联合汽车电子有限公司 Vehicle-mounted remote terminal
CN103197666A (en) * 2013-03-26 2013-07-10 重庆邮电大学 General-type handheld automobile fault diagnostic instrument
CN204536901U (en) * 2015-04-29 2015-08-05 陕西中交天健车联网信息技术有限公司 The device of automatic test engine of heavy-duty car ECU software version

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐乐: "《基于CAN总线的通用型汽车ECU故障诊断仪的研究与设计》", 《中国优秀硕士学位论文全文数据库》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874055A (en) * 2017-03-07 2017-06-20 上海怿星电子科技有限公司 A kind of method and apparatus for writing with a brush dipped in Chinese ink test automatically for automobile ECU program
CN106874055B (en) * 2017-03-07 2020-01-31 上海怿星电子科技有限公司 method and device for automatic flash test of automobile ECU program
CN107807627A (en) * 2017-09-30 2018-03-16 上海富欣智能交通控制有限公司 Electrical equipment input state real-time display system and its display methods
CN107807627B (en) * 2017-09-30 2020-04-21 上海富欣智能交通控制有限公司 Real-time display system and method for input state of electrical equipment
US10865726B2 (en) 2018-02-04 2020-12-15 Ehsanollah Zadpour Fault diagnosis of electronic control unit (ECU)
CN109582573A (en) * 2018-11-23 2019-04-05 江西洪都航空工业集团有限责任公司 Test missile-borne integration control plane software version method
CN112445197A (en) * 2019-09-02 2021-03-05 北京新能源汽车股份有限公司 Controller version information verification method, processor and whole vehicle test system
CN112445197B (en) * 2019-09-02 2022-03-22 北京新能源汽车股份有限公司 Controller version information verification method, processor and whole vehicle test system
CN111078458A (en) * 2019-12-31 2020-04-28 潍柴动力股份有限公司 Electronic control unit, software compatibility detection method and device thereof, and automobile
CN111078458B (en) * 2019-12-31 2023-09-15 潍柴动力股份有限公司 Electronic control unit, software compatibility detection method and device thereof and automobile
CN111796583A (en) * 2020-08-21 2020-10-20 上海星融汽车科技有限公司 Vehicle ECU (electronic control Unit) identification method and system and vehicle diagnosis equipment
CN113037725A (en) * 2021-02-26 2021-06-25 上海钧正网络科技有限公司 Riding test method, server, test pile and readable storage medium

Similar Documents

Publication Publication Date Title
CN106200609A (en) Automatically the device and method of engine of heavy-duty car ECU software version is tested
CN204536901U (en) The device of automatic test engine of heavy-duty car ECU software version
WO2016180075A1 (en) Remote detection method and system for smart electric vehicle and code table of system
CN104228715B (en) Connect detection device and vehicle-mounted relay
US9836904B2 (en) Key fob dongle
CN110233768B (en) UDS-based CAN bus test system and CAN bus test method
WO2015192652A1 (en) Real-time vehicle operation monitoring system and method based on mobile terminal
CN111275920A (en) Vehicle, user communication terminal and collision accident detection processing method
CN107097646B (en) The method that alarm indication is handled
CN111199030A (en) Vehicle, vehicle equipment and automatic activation method of vehicle-mounted third-party application software
US11850901B2 (en) Control system for a towed vehicle
CN112230624B (en) Control system and method for vehicle door lock
CN105405258A (en) Vehicle fault alarming method and device
CN206422329U (en) Automobile OBD interface protectors
EP2789127B1 (en) Self-learning automotive data logger identifying automotive messages transmitted over a can bus connecting automotive electronic control units
CN101072153A (en) CAN bus type automobile anti-theft alarm method and its device
CN111124443A (en) Vehicle, vehicle equipment and vehicle instrument upgrading method
CN109606105A (en) A kind of intelligent vehicle safety method, equipment and system
KR101297024B1 (en) Method and apparatus for fault diagnosis network of car using can communication
KR101565346B1 (en) Method and system for providing vehicle security service
CN110843705A (en) Vehicle-mounted CAN bus monitoring system
EP3121753B1 (en) System for controlling the communication between a main device and an auxiliary device and associated main device and auxiliary device used in the system
CN111210541A (en) Vehicle, vehicle equipment and intelligent speed limit information prompting method
CN111071192A (en) Vehicle, vehicle equipment and vehicle collision automatic processing method
CN206884945U (en) A kind of GES control device

Legal Events

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

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication