CN102393738B - Diagnostic device and test method of automobile electronic control unit (ECU) - Google Patents

Diagnostic device and test method of automobile electronic control unit (ECU) Download PDF

Info

Publication number
CN102393738B
CN102393738B CN 201110424456 CN201110424456A CN102393738B CN 102393738 B CN102393738 B CN 102393738B CN 201110424456 CN201110424456 CN 201110424456 CN 201110424456 A CN201110424456 A CN 201110424456A CN 102393738 B CN102393738 B CN 102393738B
Authority
CN
China
Prior art keywords
module
request message
test
information
main controller
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.)
Active
Application number
CN 201110424456
Other languages
Chinese (zh)
Other versions
CN102393738A (en
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.)
Harbin University of technology high tech Development Corporation
Original Assignee
Harbin Institute of Technology
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 Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN 201110424456 priority Critical patent/CN102393738B/en
Publication of CN102393738A publication Critical patent/CN102393738A/en
Application granted granted Critical
Publication of CN102393738B publication Critical patent/CN102393738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A diagnostic device and a test method of an automobile electronic control unit (ECU), which belongs to the automobile electronic technology field, are disclosed. By using a current special diagnostic tool, diagnosis service parameter test of a network layer and an application layer is difficult to be independently realized. By using the device and the test of the invention, the above problem can be solved. The diagnostic device of the automobile ECU comprises: a main controller module, a CAN data communication module, a USB interface module, a K wire data communication module and a test project indication module. By using the test method of an automobile ECU, a data link layer data length test, a filling test, a network layer control parameter test, a time parameter test, an unexpected frame test and an application layer diagnosis service test can be realized. The device and the method of the invention are used for realizing the comprehensive test of the network layer and application layer diagnosis service and the service parameter independently.

Description

The diagnostic device of vehicle electronic control unit and method of testing
Technical field
The present invention relates to a kind of diagnostic device and method of testing of vehicle electronic control unit, belong to technical field of automotive electronics.
Background technology
The diagnostic test technologies of vehicle electronic control unit not only can reduce the workload that services a car, improve the economic benefit of auto repair, and can also make objective evaluation to vehicle product quality or repair quality, for the rational modification of automotive engineering or maintenance technique provides basic data.In recent years, constantly towards electronization, intelligentized future development, the diagnostic test of ECU (Electrical Control Unit) comprehensively and efficiently becomes all more important than ever along with automobile.
Present vehicle electronic control unit ECU(Electronic Control Unit) generally follow the diagnostic norms of ISO14229/ISO14230/ISO15765/ISO15031, and adopt some separate diagnostic instruments to develop and test.But existing separate diagnostic instrument is only applicable to the test of application layer diagnosis service, realize the test of network layer and application layer diagnosis service parameter, needs the extra conversion equipment that increases, so that complex structure.In addition, in diagnostic norms, network layer parameter is more, and test sequence is had relatively high expectations, and each assembly plant is different to the definition of parameter, makes very difficulty of network layer and application layer diagnosis service parameter test.
This invention produces under this technical background just, and it provides a kind of effective diagnostic device and method of testing for service testing and the service parameter testing of diagnosis electronic control unit.
Summary of the invention
The objective of the invention is to be difficult to independently to realize for solving existing separate diagnostic instrument this problem of test of network layer and application layer diagnosis service parameter, a kind of diagnostic device and method of testing of vehicle electronic control unit is provided.
The diagnostic device of vehicle electronic control unit, it comprises main controller module, data communication module and usb interface module,
Described main controller module is used for receiving the request message information that usb interface module transmits, the described request message information is processed, obtain the required diagnosis request message of test, and described diagnosis request message is sent to the message data communication module, main controller module also is used for the real-time diagnosis response message that the receive data communication module sends, and described real-time diagnosis response message is sent to usb interface module;
The detection signal input/output terminal of described data communication module is connected with the detection signal input/output terminal of main controller module, the data communication module is used for the diagnosis request message that main controller module sends is sent to vehicle electronic control unit to be measured, and the real-time diagnosis response message that vehicle electronic control unit to be measured returns is sent to main controller module, realize the two-way communication between main controller module and vehicle electronic control unit to be measured;
The instruction control signal input/output terminal of described usb interface module is connected with the instruction control signal input/output terminal of main controller module, the request message information that usb interface module is used for host computer is sent sends main controller module to, and the real-time diagnosis response message that usb interface module also is used for main controller module is returned sends to host computer.
Further, data communication module of the present invention is any one in CAN data communication module and K line data communication module,
Described CAN data communication module is used for receiving the differential signal data that send on the CAN network, and with the mutual conversion of serial data in differential signal data and main controller module, CAN data communication module is used for realizing the two-way communication between main controller module and vehicle electronic control unit to be measured;
Described K line data communication module is a K line communication network of building based on K radiodiagnosis x agreement, K line data communication module is used for realizing the two-way communication between main controller module and vehicle electronic control unit to be measured, also for realizing signal data on the K spider lines and the mutual conversion of main controller module serial data.
Further, the diagnostic device of vehicle electronic control unit of the present invention also comprises the test event indicating module, the indication control signal input end of described test event indicating module is connected with the indication control signal output terminal of main controller module, and the test event indicating module is used to indicate ongoing test event.
Further, main controller module of the present invention comprises storer, usb data transceiver module, control information processing module, test packet generation module and packet sending and receiving module,
Described storer be used for recording the message information that main controller module receives and process after message information; Described usb data transceiver module is used for receiving the request message information that usb interface module sends, the described request message information comprises application layer diagnosis information on services and control information, described control information comprises test event flag information and parameter modification information, request message information is sent to the control information processing module, and diagnoses information on services to be kept in storer application layer; Described usb data transceiver module also is sent to usb interface module for the real-time diagnosis response message that will be recorded in storer;
Described control information processing module is analyzed request message information, control information and application layer diagnosis information on services are decomposed, by the test event that the test event flag information judgement of control information will be carried out, the test request message (TRM) that test event is corresponding is kept in storer;
Described test packet generation module, read test request message (TRM) corresponding to test event that the analysis of control information processing module obtains from storer, utilize parameter modification information, the application layer diagnosis information on services of storing in storer is reconstructed, obtain to be used for the diagnosis request message of network layer parameter test, and described diagnosis request message is sent to the packet sending and receiving module;
Described packet sending and receiving module sends to the data communication module with described diagnosis request message, and the receive data communication module returns to the real-time diagnosis response message, and described real-time diagnosis response message is sent to the control information processing module.
The method of testing of vehicle electronic control unit is based on that the diagnostic device of vehicle electronic control unit realizes, described method comprises:
A, usb interface module receive the request message information that host computer sends, and the described request message information is sent to main controller module, and described request message information comprises application layer diagnosis information on services and control information;
B, main controller module extract control information and the control information that receives are analyzed, and obtain Item Mark information to be tested, judge test event corresponding to Item Mark information to be tested, obtain test request message (TRM) corresponding to test event;
C, main controller module generate the diagnosis request message that is used for the network layer parameter test of project to be tested, and described diagnosis request message are sent to vehicle electronic control unit to be measured by the data communication module according to described test request message (TRM) content;
D, main controller module receive by the data communication module real-time diagnosis response message that vehicle electronic control unit to be measured returns, and are transmitted to host computer by usb interface module.
Further, the structure of the diagnosis of the application layer described in method of testing A of the present invention information on services is followed the structural requirement of the diagnosis service of ISO15765-3 CAN application layer protocol defined; Described control information comprises test event flag information and parameter modification information.
Further, the main controller module described in method of testing B of the present invention is analyzed the control information that receives, and extracts the test event flag information of control information, the test event that judgement will be carried out; Described project to be tested comprises that data in link layer length testing, filler test, network layer are controlled parameter testing, frame test and application layer diagnosis service testing are tested, do not expected to time parameter, the form of described test request message (TRM) is 8 bytes, front 5 are carried application layer diagnosis information on services, and rear 3 comprise 1 bit test Item Mark position and 2 parameter modification information.
Further, in method of testing C of the present invention, the diagnosis request message of network layer parameter test is CAN radiodiagnosis x request message or K radiodiagnosis x request message, the mode that obtains the diagnosis request message of network layer parameter test is, the test request message (TRM) corresponding according to test event, utilize parameter modification information, the application layer diagnosis information on services that obtains in steps A is reconstructed, obtains to be used for the diagnosis request message of network layer parameter test.
Further, method of testing of the present invention,
The process that obtains CAN radiodiagnosis x request message is:
E1, main controller module after test packet generation module, Clock management resume module, generate the CAN radiodiagnosis x request message of project to be tested according to described test request message (TRM) content;
F1, main controller module send to vehicle electronic control unit to be measured by the data communication module with CAN radiodiagnosis x request message, and vehicle electronic control unit to be measured returns to CAN radiodiagnosis x response message;
G1, main controller module receive by the data communication module CAN radiodiagnosis x response message that vehicle electronic control unit to be measured returns, and are transmitted to host computer by usb interface module and store.
The process that obtains K radiodiagnosis x request message is:
E2, main controller module after test packet generation module, Clock management resume module, generate the K radiodiagnosis x request message of project to be tested according to described test request message (TRM) content;
F2, main controller module send to vehicle electronic control unit to be measured by the data communication module with K radiodiagnosis x request message, and vehicle electronic control unit to be measured returns to K radiodiagnosis x response message;
G2, main controller module receive by the data communication module K radiodiagnosis x response message that vehicle electronic control unit to be measured returns, and are transmitted to host computer by usb interface module and store.
Further, the Clock management module in method of testing of the present invention is used for controlling reception or sending required time interval between two adjacent messages, and the time interval of described requirement is maximum time interval or minimum interval.
The present invention can realize CAN bus diagnostic service testing and service parameter testing, and data are carried out real-time analysis and record, generates corresponding test report.
Advantage of the present invention:
One: in a circuit board, simple in structure, making originally needs the test system structure of subtest equipment to be simplified with CAN data communication module, usb interface module, K line data communication module integration in the present invention.
Two: the present invention can be applied to multiple vehicle electronic control unit to be measured, real-time record test request message (TRM) and vehicle electronic control unit to be measured returns to response message, described request message and response message are stored in the test report of generation, facilitate the technician to search analysis.
Three: the method for testing of vehicle electronic control unit of the present invention not only can be completed the attainable traditional application layer diagnosis of separate diagnostic instrument service testing, can also independently complete the test of network layer and application layer diagnosis service parameter, make the diagnostic test technologies of vehicle electronic control unit more perfect.
Description of drawings
Fig. 1 is the structural representation of the diagnostic device of embodiment one described vehicle electronic control unit;
Fig. 2 is the structural representation of the diagnostic device of embodiment three described vehicle electronic control units;
Fig. 3 is the connection diagram of embodiment four described main controller modules;
Fig. 4 is data transmission flow process figure in the described main controller module of embodiment five.
Embodiment
embodiment one: present embodiment is described below in conjunction with Fig. 1, present embodiment comprises main controller module 1, data communication module 2 and usb interface module 3, described main controller module 1 is used for receiving the request message information that usb interface module 3 transmits, the described request message information is processed, obtain the required diagnosis request message of test, and described diagnosis request message is sent to message data communication module 2, main controller module 1 also is used for the real-time diagnosis response message that receive data communication module 2 sends, and described real-time diagnosis response message is sent to usb interface module 3,
The detection signal input/output terminal of described data communication module 2 is connected with the detection signal input/output terminal of main controller module 1, data communication module 2 is used for the diagnosis request message that main controller module 1 sends is sent to vehicle electronic control unit to be measured, and the real-time diagnosis response message that vehicle electronic control unit to be measured returns is sent to main controller module 1, realize the two-way communication between main controller module 1 and vehicle electronic control unit to be measured;
The instruction control signal input/output terminal of described usb interface module 3 is connected with the instruction control signal input/output terminal of main controller module 1, the request message information that usb interface module 3 is used for host computer is sent sends main controller module 1 to, and the real-time diagnosis response message that usb interface module 3 also is used for main controller module 1 is returned sends to host computer.
The diagnostic device of the described vehicle electronic control unit of present embodiment is applicable to test the test based on the network layer of the vehicle electronic control unit of ISO15765-2, ISO15765-3 diagnostic norms and application layer diagnosis service parameter.
The main control chip of the described main controller module 1 of present embodiment adopts MC9S12HZ256 to realize, mainly complete the data transmission of USB host-host protocol structure, the data transmission of CAN bus network layer, application layer diagnosing protocol structure, complete the analysis of control information, the management of clock, the generation of test packet, above function are all that the MCU of main controller module 1 completes by software, and main controller module 1 is the core of whole diagnostic device.
The described data communication module 2 of present embodiment is responsible for receiving the signal data that sends on network, completes the data-switching that receives normal serial data with main controller module 1.
The described usb interface module 3 of crossing of present embodiment is based on the USB standard agreement, complete and upper computer software between control information, diagnosis request message data receiver, real-time diagnosis response message data send.
In the diagnostic device of the described vehicle electronic control unit of present embodiment, described usb interface module 3 is connected with host computer, the request message information of upper computer analyzing software is passed transmission main controller module 1, process through 1 pair of information that receives of main controller module, obtain the required diagnosis request message of test, and will diagnose request message to pass to vehicle electronic control unit to be measured by data communication module 2, vehicle electronic control unit to be measured is diagnosed detection.Described data communication module 2 sends the real-time diagnosis response message that diagnosis detects to main controller module 1, conversion through main controller module 1, real-time diagnosis response message after processing is transferred to host computer by usb interface module 3 records and generate test report, described test report is an Excel form.
Adopt the described diagnostic device testing automobile of present embodiment electronic control unit to have following advantage:
One: present embodiment is integrated in data communication module 2, usb interface module 3 in a circuit board, and is simple in structure, and making originally needs the test system structure of subtest equipment to be simplified.
Two: present embodiment can be applied to multiple vehicle electronic control unit to be measured, the real-time diagnosis response message that real-time record diagnosis request message and vehicle electronic control unit to be measured return, described diagnosis request message and real-time diagnosis response message are stored in the test report of generation, facilitate the technician to search analysis.
Three: the method for testing of the described vehicle electronic control unit of present embodiment not only can be completed the attainable traditional application layer diagnosis of separate diagnostic instrument service testing, can also independently complete the test of network layer and application layer diagnosis service parameter, make the diagnostic test technologies of vehicle electronic control unit more perfect.
Embodiment two: the difference of present embodiment and embodiment one is, the described data communication module 2 of present embodiment is any one in CAN data communication module and K line data communication module, described CAN data communication module is used for receiving the differential signal data that send on the CAN network, and with the mutual conversion of serial data in differential signal data and main controller module 1, CAN data communication module is used for realizing the two-way communication between main controller module 1 and vehicle electronic control unit to be measured; Described K line data communication module is a K line communication network of building based on K radiodiagnosis x agreement, K line data communication module is used for realizing the two-way communication between main controller module 1 and vehicle electronic control unit to be measured, also for realizing signal data on the K spider lines and the mutual conversion of main controller module 1 serial data.
In the diagnostic device of the described vehicle electronic control unit of present embodiment, main controller module 1 is according to the test request message (TRM) content, after CAN line test packet generation module, Clock management resume module, generate the CAN radiodiagnosis x request message of project to be tested, by CAN line data communication module, main controller module 1 sends to vehicle electronic control unit to be measured with CAN radiodiagnosis x request message, the real-time CAN radiodiagnosis x response message that acquisition is returned, and be transmitted to host computer by usb interface module 3 and store the generation test report.
The chip of the described CAN line of present embodiment data communication module adopts TJA1040 to realize.
In the diagnostic device of the described vehicle electronic control unit of present embodiment, main controller module 1 is according to the test request message (TRM) content, after K line test packet generation module, Clock management resume module, generate the real-time K radiodiagnosis x request message of project to be tested, by K line data communication module, main controller module 1 sends to vehicle electronic control unit to be measured with K radiodiagnosis x request message, the K radiodiagnosis x response message that acquisition is returned, and be transmitted to host computer by usb interface module 3 and store the generation test report.
The chip of the described K line of present embodiment data communication module adopts MC33290 to realize.
The diagnostic device of the described vehicle electronic control unit of present embodiment is realized detection to vehicle electronic control unit by CAN radiodiagnosis x or K radiodiagnosis x.
Embodiment three: present embodiment is described below in conjunction with Fig. 2, the difference of present embodiment and embodiment one is, described it comprise test event indicating module 4, the indication control signal input end of described test event indicating module 4 is connected with the indication control signal output terminal of main controller module 1, and test event indicating module 4 is used to indicate ongoing test event.
The described test event indicating module 4 of present embodiment shows ongoing test event by pilot lamp, and operating personnel are played a suggesting effect.
Embodiment four: present embodiment is described below in conjunction with Fig. 3, the difference of present embodiment and embodiment one is, the described main controller module 1 of present embodiment comprises storer 11, usb data transceiver module 12, control information processing module 13, test packet generation module 14 and packet sending and receiving module 15
Described storer 11 be used for recording the message information that main controller module 1 receives and process after message information;
Described usb data transceiver module 12 is used for receiving the request message information that usb interface module 3 sends, the described request message information comprises application layer diagnosis information on services and control information, described control information comprises test event flag information and parameter modification information, request message information is sent to control information processing module 13, and diagnoses information on services to be kept in storer 11 application layer; Described usb data transceiver module 12 also is sent to usb interface module 3 for the real-time diagnosis response message that will be recorded in storer 11;
13 pairs of request message information of described control information processing module are analyzed, control information and application layer diagnosis information on services are decomposed, by the test event that the test event flag information judgement of control information will be carried out, the test request message (TRM) that test event is corresponding is kept in storer 11;
Described test packet generation module 14, read control information processing module 13 and analyze test request message (TRM) corresponding to test event that obtains from storer 11, utilize parameter modification information, application layer diagnosis information on services to storage in storer 11 is reconstructed, obtain to be used for the diagnosis request message of network layer parameter test, and described diagnosis request message is sent to packet sending and receiving module 15;
Described packet sending and receiving module 15 sends to data communication module 2 with described diagnosis request message, and receive data communication module 2 returns to the real-time diagnosis response message, and described real-time diagnosis response message is sent to control information processing module 13.
Embodiment five: below in conjunction with Fig. 4, present embodiment is described, the method for testing of the described vehicle electronic control unit of present embodiment is based on the described diagnostic device of embodiment one and realizes, described method comprises:
A, usb interface module 3 receive the request message information that host computer sends, and the described request message information is sent to main controller module 1, and described request message information comprises application layer diagnosis information on services and control information;
B, main controller module 1 extract control information and the control information that receives are analyzed, and obtain Item Mark information to be tested, judge test event corresponding to Item Mark information to be tested, obtain test request message (TRM) corresponding to test event;
C, main controller module 1 generate the diagnosis request message that is used for the network layer parameter test of project to be tested, and described diagnosis request message are sent to vehicle electronic control unit to be measured by data communication module 2 according to described test request message (TRM) content;
D, main controller module 1 receive by data communication module 2 the real-time diagnosis response message that vehicle electronic control unit to be measured returns, and are transmitted to host computer by usb interface module 3.
Use the described method of testing of present embodiment, under the control of main controller module 1, content according to test request message (TRM), can realize data length test and the filler test of data link layer, network layer is controlled parameter testing, time parameter test and is not expected the frame test, the diagnosis service testing of application layer, described diagnosis service layer satisfies the regulation of ISO15765-3CAN application layer protocol.
In the described method of present embodiment, main controller module 1 is realized comprising CAN packet sending and receiving module, usb data transceiver module, control information processing module, CAN test packet generation module, the function of Clock management module.
Adopt the described method of testing of present embodiment can realize CAN bus diagnostic service testing and service parameter testing, and data are carried out real-time analysis and record, generate corresponding test report, be used for checking the parameter calibration of producer whether correct.Described method of testing can be applied to multiple vehicle electronic control unit.
As shown in Figure 3, in the described method of testing of present embodiment, under the control of main controller module (1), the transmitting procedure of information data has been passed through the standardization of USB host-host protocol, serial port communicating protocol, CAN diagnostic network layer protocol and four agreements of CAN diagnostic application layer protocol.
In present embodiment, the method for main controller module 1 reception and processing request message information is:
Step 1, main controller module 1 carry out initialization with data communication module 2;
Step 2, main controller module 1 carry out initialization with usb interface module 3;
Step 3, main controller module 1 carry out initialization with the Clock management module;
Step 4, main controller module 1 judge whether usb interface module 3 receives request message information, judgment result is that to be, execution in step five, and the determination result is NO, returns to step 4;
Step 5, main controller module 1 are control information and application layer diagnosis information on services with the request message information decomposition that receives, and control information is stored;
Step 6,1 pair of control information of having stored of main controller module are analyzed, and according to analysis result, call the message generation module for application layer diagnosis information on services, generate corresponding test request message (TRM);
Step 7, main controller module 1 send to vehicle electronic control unit to be measured with test request message (TRM) by data communication module 2, return to step 4.
In the method for described main controller module 1 reception and processing request message information, main controller module 1 carries out initialization with data communication module 2, usb interface module 3 and Clock management module at first respectively; Main controller module 1 is waited for usb interface module 3 receive interruptions, when main controller module 1 is received down trigger, produce interrupt identification, the request message information that 1 pair of main controller module receives is decomposed, the control information that obtains is stored, call message production module according to control information and application layer diagnosis information on services, generate corresponding test request message (TRM), test request message (TRM) is sent to vehicle electronic control unit to be measured, wait for the vehicle electronic control unit response.
Described single frames parameter testing control information comprises: single frames parameter testing sign and single frames length are revised information.
Use the described method of testing of present embodiment and can complete the attainable traditional application layer diagnosis of separate diagnostic instrument service testing, can also independently complete the test of network layer and application layer diagnosis service parameter, make the diagnostic test technologies of vehicle electronic control unit more perfect.
Embodiment six: the difference of present embodiment and embodiment five is, the structural requirement that the diagnosis that the application layer described in A diagnoses the structure of information on services to follow ISO15765-3 CAN application layer protocol defined is served; Described control information comprises test event flag information and parameter modification information.
Embodiment seven: the difference of present embodiment and embodiment five is, 1 pair of control information that receives of the main controller module described in B is analyzed, and extracts the test event flag information of control information, the test event that judgement will be carried out; Described project to be tested comprises that data in link layer length testing, filler test, network layer are controlled parameter testing, frame test and application layer diagnosis service testing are tested, do not expected to time parameter, the form of described test request message (TRM) is 8 bytes, front 5 are carried application layer diagnosis information on services, and rear 3 comprise 1 bit test Item Mark position and 2 parameter modification information.
Embodiment eight: the difference of present embodiment and embodiment five is, in C, the diagnosis request message of network layer parameter test is CAN radiodiagnosis x request message or K radiodiagnosis x request message,
The mode that obtains the diagnosis request message of network layer parameter test is, the test request message (TRM) corresponding according to test event, utilize parameter modification information, the application layer diagnosis information on services that obtains in A is reconstructed, obtain to be used for the diagnosis request message of network layer parameter test.
Embodiment nine: below in conjunction with Fig. 4, present embodiment is described, the difference of present embodiment and embodiment eight is, the process that obtains CAN radiodiagnosis x request message is:
E1, main controller module 1 after test packet generation module, Clock management resume module, generate the CAN radiodiagnosis x request message of project to be tested according to described test request message (TRM) content;
F1, main controller module 1 send to vehicle electronic control unit to be measured by data communication module 2 with CAN radiodiagnosis x request message, and vehicle electronic control unit to be measured returns to CAN radiodiagnosis x response message;
G1, main controller module 1 receive by data communication module 2 the CAN radiodiagnosis x response message that vehicle electronic control units to be measured return, and are transmitted to host computer by usb interface module 3 and store.
The process that obtains K radiodiagnosis x request message is:
E2, main controller module 1 after test packet generation module, Clock management resume module, generate the K radiodiagnosis x request message of project to be tested according to described test request message (TRM) content;
F2, main controller module 1 send to vehicle electronic control unit to be measured by data communication module 2 with K radiodiagnosis x request message, and vehicle electronic control unit to be measured returns to K radiodiagnosis x response message;
G2, main controller module 1 receive by data communication module 2 the K radiodiagnosis x response message that vehicle electronic control units to be measured return, and are transmitted to host computer by usb interface module 3 and store.
Embodiment ten: the difference of present embodiment and embodiment nine is, described Clock management module is used for controlling reception or sending required time interval between two adjacent messages, and the time interval of described requirement is maximum time interval or minimum interval.

Claims (7)

1. the diagnostic device of vehicle electronic control unit, it comprises main controller module (1), data communication module (2) and usb interface module (3),
Described main controller module (1) is used for receiving the request message information that usb interface module (3) transmits, the described request message information is processed, obtain the required diagnosis request message of test, and described diagnosis request message is sent to message data communication module (2), main controller module (1) also is used for the real-time diagnosis response message that receive data communication module (2) sends, and described real-time diagnosis response message is sent to usb interface module (3);
The detection signal input/output terminal of described data communication module (2) is connected with the detection signal input/output terminal of main controller module (1), data communication module (2) is used for the diagnosis request message that main controller module (1) sends is sent to vehicle electronic control unit to be measured, and the real-time diagnosis response message that vehicle electronic control unit to be measured returns is sent to main controller module (1), realize the two-way communication between main controller module (1) and vehicle electronic control unit to be measured;
The instruction control signal input/output terminal of described usb interface module (3) is connected with the instruction control signal input/output terminal of main controller module (1), the request message information that usb interface module (3) is used for host computer is sent sends main controller module (1) to, the real-time diagnosis response message that usb interface module (3) also is used for main controller module (1) is returned sends to host computer
It is characterized in that:
Described main controller module (1) comprises storer (11), usb data transceiver module (12), control information processing module (13), test packet generation module (14) and packet sending and receiving module (15),
Described storer (11) be used for recording the message information that main controller module (1) receives and process after message information;
Described usb data transceiver module (12) is used for receiving the request message information that usb interface module (3) sends, the described request message information comprises application layer diagnosis information on services and control information, described control information comprises test event flag information and parameter modification information, request message information is sent to control information processing module (13), and diagnoses information on services to be kept in storer (11) application layer; Described usb data transceiver module (12) also is sent to usb interface module (3) for the real-time diagnosis response message that will be recorded in storer (11);
Described control information processing module (13) is analyzed request message information, control information and application layer diagnosis information on services are decomposed, by the test event that the test event flag information judgement of control information will be carried out, the test request message (TRM) that test event is corresponding is kept in storer (11); Described test packet generation module (14), read test request message (TRM) corresponding to test event that control information processing module (13) analysis obtains from storer (11), utilize parameter modification information, application layer diagnosis information on services to storage in storer (11) is reconstructed, obtain to be used for the diagnosis request message of network layer parameter test, and described diagnosis request message is sent to packet sending and receiving module (15);
Described packet sending and receiving module (15) sends to data communication module (2) with described diagnosis request message, and receive data communication module (2) returns to the real-time diagnosis response message, and described real-time diagnosis response message is sent to is kept in storer (11).
2. the method for testing of vehicle electronic control unit is characterized in that: it is based on diagnostic device claimed in claim 1 and realizes, described method comprises:
A, usb interface module (3) receive the request message information that host computer sends, and the described request message information is sent to main controller module (1), and described request message information comprises application layer diagnosis information on services and control information;
B, main controller module (1) extract control information and the control information that receives are analyzed, and obtain Item Mark information to be tested, judge test event corresponding to Item Mark information to be tested, obtain test request message (TRM) corresponding to test event;
C, main controller module (1) are according to described test request message (TRM) content, generate the diagnosis request message that is used for the network layer parameter test of project to be tested, and described diagnosis request message is sent to vehicle electronic control unit to be measured by data communication module (2);
D, main controller module (1) receive by data communication module (2) the real-time diagnosis response message that vehicle electronic control unit to be measured returns, and are transmitted to host computer by usb interface module (3).
3. the method for testing of vehicle electronic control unit according to claim 2 is characterized in that:
The structure of the application layer diagnosis information on services described in A is followed the structural requirement of the diagnosis service of ISO15765-3 CAN application layer protocol defined; Described control information comprises test event flag information and parameter modification information.
4. the method for testing of vehicle electronic control unit according to claim 2 is characterized in that:
Main controller module described in B (1) is analyzed the control information that receives, extract the test event flag information of control information, the test event that judgement will be carried out, described test event comprises that data in link layer length testing, filler test, network layer are controlled parameter testing, frame test and application layer diagnosis service testing are tested, do not expected to time parameter, the form of described test request message (TRM) is 8 bytes, front 5 are carried application layer diagnosis information on services, and rear 3 comprise 1 bit test Item Mark position and 2 parameter modification information.
5. the method for testing of vehicle electronic control unit according to claim 2 is characterized in that:
In C, the diagnosis request message of network layer parameter test is CAN radiodiagnosis x request message or K radiodiagnosis x request message,
The mode that obtains the diagnosis request message of network layer parameter test is, the test request message (TRM) corresponding according to test event, utilize parameter modification information, the application layer diagnosis information on services that obtains in A is reconstructed, obtain to be used for the diagnosis request message of network layer parameter test.
6. the method for testing of vehicle electronic control unit according to claim 5 is characterized in that:
The process that obtains CAN radiodiagnosis x request message is:
E1, main controller module (1) after test packet generation module, Clock management resume module, generate the CAN radiodiagnosis x request message of project to be tested according to described test request message (TRM) content;
F1, main controller module (1) send to vehicle electronic control unit to be measured by data communication module (2) with CAN radiodiagnosis x request message, and vehicle electronic control unit to be measured returns to CAN radiodiagnosis x response message;
G1, main controller module (1) receive by data communication module (2) the CAN radiodiagnosis x response message that vehicle electronic control unit to be measured returns, and are transmitted to host computer by usb interface module (3) and store;
The process that obtains K radiodiagnosis x request message is:
E2, main controller module (1) after test packet generation module, Clock management resume module, generate the K radiodiagnosis x request message of project to be tested according to described test request message (TRM) content;
F2, main controller module (1) send to vehicle electronic control unit to be measured by data communication module (2) with K radiodiagnosis x request message, and vehicle electronic control unit to be measured returns to K radiodiagnosis x response message;
G2, main controller module (1) receive by data communication module (2) the K radiodiagnosis x response message that vehicle electronic control unit to be measured returns, and are transmitted to host computer by usb interface module (3) and store.
7. the method for testing of vehicle electronic control unit according to claim 6 is characterized in that:
Described Clock management module is used for controlling reception or sending required time interval between two adjacent messages, and the time interval of described requirement is maximum time interval or minimum interval.
CN 201110424456 2011-12-16 2011-12-16 Diagnostic device and test method of automobile electronic control unit (ECU) Active CN102393738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110424456 CN102393738B (en) 2011-12-16 2011-12-16 Diagnostic device and test method of automobile electronic control unit (ECU)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110424456 CN102393738B (en) 2011-12-16 2011-12-16 Diagnostic device and test method of automobile electronic control unit (ECU)

Publications (2)

Publication Number Publication Date
CN102393738A CN102393738A (en) 2012-03-28
CN102393738B true CN102393738B (en) 2013-06-05

Family

ID=45861073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110424456 Active CN102393738B (en) 2011-12-16 2011-12-16 Diagnostic device and test method of automobile electronic control unit (ECU)

Country Status (1)

Country Link
CN (1) CN102393738B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455022B (en) * 2012-06-01 2015-12-02 北汽福田汽车股份有限公司 A kind of diagnostic method of controlled vehicle-mounted electrical device and device
CN102707710A (en) * 2012-06-01 2012-10-03 浙江吉利汽车研究院有限公司杭州分公司 Diagnosis function verification method and system for automobile electronic control unit
CN102798833B (en) * 2012-08-23 2015-01-07 浙江吉利汽车研究院有限公司杭州分公司 Automatic test system and method for diagnosis instrument
CN102890503B (en) * 2012-10-18 2015-10-28 重庆长安汽车股份有限公司 A kind of controller CAN interface function Auto-Test System and method for testing and analyzing
CN102929277B (en) * 2012-11-22 2015-01-07 山东省科学院自动化研究所 Universal test tool for autobody electronic unit and working method thereof
CN103440187A (en) * 2013-08-15 2013-12-11 上海固泰科技有限公司 Hardware script-based automated CAN (Controller Area Network) bus test method
CN103513651B (en) * 2013-09-27 2016-02-10 潍柴动力股份有限公司 A kind of ECU data detection method and device
CN104657302B (en) * 2013-11-22 2017-07-11 北汽福田汽车股份有限公司 CAN signal for the controller of automobile transmits verification method and system
CN105094062A (en) * 2014-04-30 2015-11-25 惠州市德赛西威汽车电子有限公司 Vehicle-mounted remote control system data acquisition and debugging method
CN104063251B (en) * 2014-07-02 2017-11-10 东风电子科技股份有限公司 The system and method for renewal engine controller program and the data of being communicated based on K lines
CN104076814A (en) * 2014-07-09 2014-10-01 哈尔滨工业大学 Automobile ECU measurement system based on hardware-in-loop simulation
CN104483960B (en) * 2014-11-10 2017-04-19 深圳市元征科技股份有限公司 Automobile diagnosis communication module data transceiving parallel processing method
CN106325235A (en) * 2015-07-03 2017-01-11 深圳市赛格导航科技股份有限公司 Automotive electronic product production test system and method based on CAN bus
CN106802587A (en) * 2015-11-26 2017-06-06 河北优控新能源科技有限公司 A kind of inexpensive USB-CAN converters for new energy vehicle controller
CN106371429A (en) * 2016-11-12 2017-02-01 驭联智能科技发展(上海)有限公司 Inside-vehicle equipment centralized detection method and system
CN108427405A (en) * 2018-04-13 2018-08-21 深圳新动力教育科技有限公司 A kind of automobile real-time diagnosis agency supporting multi-user operation and its data processing method
CN109445412A (en) * 2018-10-26 2019-03-08 天津英创汇智汽车技术有限公司 A kind of condition detection method and device
CN110266561B (en) * 2019-06-27 2022-04-01 西安微电子技术研究所 Portable Space Wire router test system and test method
CN112485579A (en) * 2020-11-25 2021-03-12 上汽通用五菱汽车股份有限公司 Function tester and testing method for electronic gear shifter
CN113253033A (en) * 2021-05-25 2021-08-13 科世达(上海)机电有限公司 Simulation power supply testing arrangement
CN113867325A (en) * 2021-10-27 2021-12-31 国核自仪系统工程有限公司 Communication diagnosis method and system for instrument control system
CN114137937B (en) * 2021-11-25 2024-01-26 北京经纬恒润科技股份有限公司 Automatic diagnosis function test method and system
CN115766889A (en) * 2022-09-28 2023-03-07 成都赛力斯科技有限公司 Data frame structure and data communication method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477371A (en) * 2008-01-05 2009-07-08 深圳市元征软件开发有限公司 Apparatus and method for reading, recording and analyzing data of vehicle electric control system
KR20090087597A (en) * 2008-02-13 2009-08-18 주식회사 만도 System for diagnosing electronic control units and method therefor
CN201212955Y (en) * 2008-07-03 2009-03-25 郭春勇 Detection device for electronic control unit
CN101916087B (en) * 2009-12-24 2012-11-28 浙江吉利汽车研究院有限公司 Diagnostic testing system based on CANoe
CN101807068B (en) * 2010-02-12 2014-12-24 深圳市元征软件开发有限公司 Universal bus parallelism-based vehicle diagnosis system and method

Also Published As

Publication number Publication date
CN102393738A (en) 2012-03-28

Similar Documents

Publication Publication Date Title
CN102393738B (en) Diagnostic device and test method of automobile electronic control unit (ECU)
CN107222362B (en) Automatic test platform for finished vehicle CAN network and optimization method thereof
CN101916087B (en) Diagnostic testing system based on CANoe
CN106341294B (en) Portable MVB protocol analysis equipment and MVB data processing method
CN103139011A (en) Integrated fault diagnosis and prognosis for in-vehicle communications
CN103457804A (en) Consistency testing platform of train network communication products
CN103647684A (en) System and method for testing urban rail train security detection sensing network
CN103530211A (en) PCIE loop back self-test method based on UVM platform
CN102621436A (en) Single vehicle debugging test stand and debugging method
CN110958295A (en) Testing method and system based on vehicle-mounted ATP equipment
CN212694288U (en) TBOX detection device
CN108599989B (en) MVB bus detection method and device
CN102355378B (en) Carrier channel testing system
CN103888323A (en) Ethernet equipment first-operation behavior consistency testing method and device
CN103532686B (en) Serial data transmission circuit and control method thereof with line sequence self-adaptive
CN110888011A (en) In-situ test method and test device based on testability modeling
CN103746865A (en) Node application layer equipment simulation testing system in CAN communication system
CN102075370A (en) Calibration and verification system of engine control model (ECM) communication based on virtual network and virtual node
CN109587015B (en) TCN-CAN network communication test platform
CN210014916U (en) Motor vehicle detection control instrument and control circuit thereof
CN102890494A (en) Functional verification method of automobile diagnosis instrument
CN105974221A (en) Universal adapter for multi-channel bus interface module testing
CN101930233A (en) Debugging system and method for CAN (Controller Area Network) bus controller
CN112684780A (en) Control panel interface assembly for railway locomotive
CN109547297A (en) A kind of locomotive FIP Instruction Network Test System Platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200330

Address after: 150001 No. 118 West straight street, Nangang District, Heilongjiang, Harbin

Patentee after: Harbin University of technology high tech Development Corporation

Address before: 150000 Harbin, Nangang, West District, large straight street, No. 92

Patentee before: HARBIN INSTITUTE OF TECHNOLOGY