ECU communication voltage range test system and test method

By designing the ECU communication voltage range test system, using the instructions of the bus analysis equipment and the upper computer to control the power supply equipment and external terminal import switches, the problem of low automation of the ECU communication voltage range test in new energy vehicles is solved, and high stability and reliability are achieved test results of sexuality.

CN114779748BActive Publication Date: 2024-11-08DEEPAL AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210590717.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-11-08
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

It is difficult for the prior art to realize automated testing of the communication voltage range of electronic control units (ECUs) of new energy vehicles, resulting in long test time, low degree of automation, and unstable and reliable.

Method used

An ECU communication voltage range test system is designed, including an ECU to be tested, a power supply device, a bus analysis device and a host computer. By adjusting the power supply voltage and detecting communication messages, the power supply device and external control are controlled by the commands of the bus analysis device and the host computer. The terminal introduces the switch to realize automated testing of the ECU communication voltage range.

Benefits of technology

It realizes automated testing of the ECU communication voltage range, and compares the power supply voltage and duration with the preset threshold range, ensuring the stability and reliability of the test results, and simplifying the test system structure and circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114779748B_ABST
    Figure CN114779748B_ABST
Patent Text Reader

Abstract

The invention relates to an ECU communication voltage range test system, comprising: an ECU to be tested, a power supply device, a bus analysis device and a host computer; the power supply device is electrically connected to the ECU to be tested through a power control switch; the host computer communicates with the bus analysis device through a signal line, and the bus analysis device communicates with the power supply device through the signal line; the host computer determines whether the communication voltage range of the ECU to be tested meets a preset standard based on a first type of power supply voltage corresponding to an abnormal communication message sent by the ECU to be tested, a second type of power supply voltage corresponding to the ECU to be tested no longer sending a communication message, a third type of power supply voltage corresponding to the ECU to be tested resuming sending a normal communication message, and a time length from when the power supply voltage of the power supply device is adjusted to the third type of power supply voltage to when the ECU to be tested resumes sending a first frame of communication message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of testing, and more particularly to an ECU communication voltage range testing system and a testing method. Background Art

[0002] With the promotion and popularization of new energy vehicles, more and more new energy vehicles will be launched on the market, and there are more and more electronic control units in new energy vehicles. This puts higher requirements on the qualification testing of related electronic products, such as short test time, high degree of automation, stability and reliability, etc. Summary of the invention

[0003] The present invention provides an ECU communication voltage range testing system and method, which can realize automatic testing of the communication voltage range for enabling the ECU to perform CAN communication.

[0004] The technical solution of the present invention is:

[0005] The present invention provides an ECU communication voltage range test system, comprising:

[0006] ECU under test, power supply equipment, bus analysis equipment and host computer;

[0007] The power supply device is electrically connected to the ECU to be tested through a power control switch;

[0008] The host computer communicates with the bus analysis device through the signal line, the bus analysis device communicates with the power supply device through the signal line, and the ECU to be tested is connected to the bus analysis device through the CAN_high signal line and the CAN_low signal line;

[0009] A set terminal resistor is connected between the CAN_high signal line and the CAN_low signal line. A series branch consisting of an external terminal introduction resistor and an external terminal introduction switch is also connected between the CAN_high signal line and the CAN_low signal line. The power control switch and the external terminal introduction switch are controlled by the bus analysis device.

[0010] When testing the communication voltage range of the ECU to be tested, the bus analysis device controls the power control switch to close based on the instruction of the host computer, and the host computer also selects whether the bus analysis device controls the external terminal import switch to close based on the configuration information of the ECU to be tested;

[0011] The bus analysis device controls the power supply device to adjust the power supply voltage to the ECU to be tested based on the instructions of the host computer. Each time the power supply device adjusts the power supply voltage, the bus analysis device re-detects the communication messages transmitted on the CAN_high signal line and the CAN_low signal line.

[0012] The upper computer determines whether the communication voltage range of the ECU under test meets the preset standard based on the first type of power supply voltage corresponding to the abnormal communication message sent by the ECU under test, the second type of power supply voltage corresponding to the ECU under test no longer sending communication messages, the third type of power supply voltage corresponding to the ECU under test resuming sending normal communication messages, and the time from the time the power supply voltage of the power supply equipment is adjusted to the third type of power supply voltage to the time when the ECU under test resumes sending the first frame of communication messages.

[0013] Preferably, the bus analysis device first controls the power supply voltage of the power supply device to gradually decrease from a preset initial power supply voltage to a preset minimum power supply voltage, and records the first power supply voltage Verror1 corresponding to the first frame communication message in which the message failure occurs from the ECU to be tested, and then records the second power supply voltage Vstop1 corresponding to the ECU to be tested no longer sending communication messages; finally, the power supply voltage of the power supply device is controlled to gradually increase from the second power supply voltage Vstop1 to the third power supply voltage Vstart1 that enables the ECU to be tested to resume sending normal communication messages with a preset step length, and records the first time length tLowRecoverDiff1 from the time when the power supply voltage of the power supply device is restored to the third power supply voltage Vstart1 to the time when the ECU to be tested resumes sending the first frame of normal communication messages;

[0014] The bus analysis device first controls the power supply voltage of the power supply device to gradually increase from a preset initial power supply voltage to a preset maximum power supply voltage, and records the fourth power supply voltage Verror2 corresponding to the first frame communication message in which the message failure occurs from the ECU under test, and then records the fifth power supply voltage Vstop2 corresponding to the ECU under test no longer sending the communication message; finally, the power supply voltage of the power supply device is controlled to gradually decrease from the fifth power supply voltage Vstop2 to the sixth power supply voltage Vstart2 that enables the ECU under test to resume sending normal communication messages with a preset step length, and records the second time length tLowRecoverDiff2 from the time when the power supply voltage of the power supply device is restored to the sixth power supply voltage Vstart2 to the time when the ECU under test resumes sending the first frame of normal communication message;

[0015] The upper computer implements a communication voltage range test on the ECU to be tested based on whether the first power supply voltage Verror1, the second power supply voltage Vstop1, the third power supply voltage Vstart1, the first time length t LowRecoverDiff1, the fourth power supply voltage Verror2, the fifth power supply voltage Vstop2, the sixth power supply voltage Vstart2 and the second time length t LowRecoverDiff2 are within their respective corresponding preset thresholds.

[0016] Preferably, when the host computer recognizes that the configuration information of the ECU to be tested includes the terminal resistance, it controls the external terminal import switch to be closed through the bus analysis device;

[0017] When the host computer recognizes that the configuration information of the ECU to be tested does not include the terminal resistance, it controls the external terminal import switch to be disconnected through the bus analysis device.

[0018] Preferably, the bus analysis device identifies whether the power control switch is correctly closed by determining whether the voltage detected by a voltage detection point arranged between the power control switch and the ECU to be tested is equal to the supply voltage of the power device.

[0019] Preferably, the resistance of the external terminal introduction resistor and the set terminal resistor are both 120Ω.

[0020] The present invention provides a method for testing an ECU communication voltage range, the method comprising:

[0021] Step S1, establishing a physical connection of an ECU communication voltage range test system; the ECU communication voltage range test system is the system described in claim 1;

[0022] Step S2, the host computer receives the start command input by the tester;

[0023] Step S3, the host computer controls the bus analysis device to start up based on the start-up instruction, and after the bus analysis device starts up, controls the power supply device to output an initial power supply voltage;

[0024] Step S4, the host computer selects whether to control the external terminal import switch to close through the bus analysis device according to the configuration information of the ECU to be tested;

[0025] Step S5, the host computer controls the power control switch to close through the bus analysis device;

[0026] Step S6, the bus analysis device controls the power supply device to gradually increase from a preset initial power supply voltage to a preset maximum power supply voltage and gradually decrease from the initial power supply voltage to a preset minimum power supply voltage according to the instruction of the host computer, and the bus analysis device detects the communication messages output by the ECU to be tested under different power supply voltages;

[0027] Step S7, the upper computer determines whether the communication voltage range of the ECU under test meets the preset standard based on the first type of power supply voltage corresponding to the abnormal communication message sent by the ECU under test, the second type of power supply voltage corresponding to the ECU under test no longer sending communication messages, the third type of power supply voltage corresponding to the ECU under test resuming sending normal communication messages, and the time from the power supply voltage of the power supply equipment being adjusted to the third type of power supply voltage to the time when the ECU under test resumes sending the first frame of communication messages.

[0028] Preferably, step S6 comprises:

[0029] Step S611, the bus analysis device controls the power supply device to gradually reduce the power supply voltage from the initial power supply voltage to the power supply device to the preset minimum power supply voltage according to the instruction of the host computer, and the bus analysis device collects the communication messages transmitted on the CAN_high signal line and the CAN_low signal line;

[0030] In step S612, the bus analysis device first records the first power supply voltage Verror1 corresponding to the first frame of communication message in which the message failure occurs in the ECU under test, and then records the second power supply voltage Vstop1 corresponding to the ECU under test no longer sending communication messages; finally, the power supply voltage of the power supply device is controlled to gradually increase from the second power supply voltage Vstop1 to the third power supply voltage Vstart1 at a preset step size so that the ECU under test resumes sending normal communication messages, and the first time length t LowRecoverDiff1 from the time when the power supply voltage of the power supply device is restored to the third power supply voltage Vstart1 to the time when the ECU under test resumes sending the first frame of normal communication message is received.

[0031] Preferably, step S6 further includes:

[0032] Step S621, the bus analysis device controls the power supply device to gradually increase the power supply voltage from the initial power supply voltage to the preset maximum power supply voltage according to the instruction of the host computer, and the bus analysis device collects the communication messages transmitted on the CAN_high signal line and the CAN_low signal line;

[0033] In step S622, the bus analysis device first records the fourth power supply voltage Verror2 corresponding to the first frame of communication message in which the message failure occurs in the ECU under test, and then records the fifth power supply voltage Vstop2 corresponding to the ECU under test no longer sending communication messages; finally, the power supply voltage of the power supply device is controlled to decrease and increase by a preset step size from the fifth power supply voltage Vstop2 to the sixth power supply voltage Vstart2 at which the ECU under test resumes sending normal communication messages, and records the second time length t LowRecoverDiff2 from the time when the power supply voltage of the power supply device is restored to the sixth power supply voltage Vstart2 to the time when the ECU under test resumes sending the first frame of normal communication message.

[0034] Preferably, step S7 includes:

[0035] If the first power supply voltage Verror1, the second power supply voltage Vstop1, the third power supply voltage Vstart1, the first time length t LowRecoverDiff1, the fourth power supply voltage Verror2, the fifth power supply voltage Vstop2, the sixth power supply voltage Vstart2 and the second time length tLowRecoverDiff2 are all within their respective corresponding preset thresholds, it is determined that the communication voltage range test of the ECU to be tested has passed.

[0036] Preferably, in step S611, the bus analysis device controls the power supply device to gradually reduce the supply voltage of the power supply device in a first preset processing manner as follows:

[0037] The bus analysis device controls the power supply voltage of the power supply device to decrease from a preset initial voltage with a first preset step length, until the power supply voltage of the power supply device decreases to the first preset voltage, and then decreases the power supply voltage of the power supply device with a second preset step length, until the power supply voltage of the power supply device decreases to the second preset voltage, and then decreases the power supply voltage of the power supply device to a preset minimum power supply voltage with a third preset step length;

[0038] Step S621, the bus analysis device controls the power supply device to gradually increase the supply voltage of the power supply device in a second preset processing manner:

[0039] The bus analysis device controls the power supply voltage of the power supply device to increase from a preset initial voltage with a first preset step length until the power supply voltage of the power supply device increases to a third preset voltage and then increases the power supply voltage of the power supply device with a second preset step length until the power supply voltage of the power supply device increases to a fourth preset voltage and then increases the power supply voltage of the power supply device with a third preset step length to a preset maximum power supply voltage;

[0040] The first preset step size, the second preset step size and the third preset step size decrease in sequence.

[0041] The beneficial effects of the present invention are:

[0042] The communication voltage range of the ECU to be tested is tested automatically; specifically, by adjusting the power supply voltage of the ECU to be tested, the power supply voltage corresponding to the normal communication message sent by the ECU to be tested, the power supply voltage corresponding to the first error frame message sent by the ECU to be tested, the power supply voltage corresponding to the communication message no longer sent by the ECU to be tested, and the power supply voltage corresponding to the normal communication message sent by the ECU to be tested are detected, and the time from the moment when the power supply voltage of the power supply device is adjusted to the power supply voltage that makes the ECU to be tested resume to send normal communication messages to the time when the ECU to be tested resumes to send normal communication messages for the first time is detected, and these power supply voltages and time lengths are compared with the pre-calibrated threshold ranges. When these power supply voltages and time lengths are within the corresponding preset threshold ranges, it is determined that the communication voltage range of the ECU to be tested meets the standard, and the obtained test results are directly and intuitively output using the interface of the host computer. The test system that implements this test method has a simple structure and a simple and reliable circuit; in actual testing, it is only necessary to adjust the power supply voltage of the power supply device to achieve the required parameter detection, so that the test results of the system are highly stable and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 : is a principle block diagram of the ECU communication voltage range test system in this embodiment;

[0044] Figure 2 Schematic diagram of the flow of the low-voltage communication voltage range test method of the ECU in this embodiment;

[0045] Figure 3 It is a flowchart of the high-voltage communication voltage range testing method of the ECU in this embodiment. DETAILED DESCRIPTION

[0046] The present invention is further described below. The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not intended to limit the scope of the present invention.

[0047] Figure 1The schematic diagram of an ECU communication voltage range test system of the present invention is as follows: 1 is a host computer, 2 is a power supply device, 3 is a bus analysis device, 4 is an ECU to be tested, 11 is a power control switch, 12 is an external terminal import switch, 14 is a design terminal resistor, 15 is an external terminal import resistor, the resistance values ​​of the design terminal resistor and the external terminal import resistor are both 120 ohms, and the resistance value is the value calibrated by the CAN bus protocol, 21, 22, and 23 are sampling ports of the bus analysis device 3, wherein 21 is a sampling port for detecting the voltage of the voltage monitoring point between the power control switch and the ECU to be tested, 22 and 23 are implemented for detecting the communication messages on the CAN_high signal line and the CAN_low signal line, 31 is a serial communication interface for realizing communication between the host computer 1 and the bus analysis device 3, and 32 is a serial communication port for realizing communication between the bus analysis device 3 and the power supply device 2.

[0048] The connection of the above test system is as follows Figure 1 As shown: the host computer 1 is connected to the bus analysis device 3 through serial communication, the bus analysis device 3 is connected to the power supply device 2 through serial communication, and other electrical connections refer to the schematic diagram.

[0049] The working principle of the above test system is as follows:

[0050] After the ECU 4 to be tested is connected to the test system, the operator clicks on the operation interface of the host computer 1: perform the ECU communication voltage range test, and then the host computer 1 controls the bus analysis device 3 to start through the serial communication. At the same time, the host computer 1 determines whether it is necessary to introduce the external terminal import resistor 15 through the configuration information of the ECU 4 to be tested. If it is necessary to introduce it, the external terminal import switch 12 is controlled to be closed, otherwise the external terminal import switch 12 is controlled to be disconnected. The bus analysis device 3 controls the power supply device 2 to start through the serial communication, and the bus analysis device 1 controls the power control switch 11 to be closed. The bus analysis device 3 monitors the switch state of the power control switch 11 through the port 21 to achieve closed-loop control.

[0051] When it is detected that the power control switch 11 is closed as controlled, the bus analysis device 3 controls the power supply device 2 to output a preset initial voltage U1 through serial communication. The bus analysis device 3 collects the communication messages sent by the ECU 2 to be tested through ports 22 and 23, and then determines whether the communication voltage range of the ECU 4 to be tested meets the preset standard by adjusting the supply voltage of the power supply device 2 and monitoring the error frame information and communication information of ports 22 and 23.

[0052] The communication voltage range of the ECU to be tested is between the preset maximum power supply voltage (such as 19V) and the preset minimum power supply voltage (such as 5V), and these two voltages are factory values.

[0053] The test system of the present embodiment implements the communication voltage range test of the ECU 4 to be tested and includes two modules: Module 1: implements the low-voltage communication range test; Module 2: implements the high-voltage communication range test.

[0054] like Figure 2 ,The control process of module one is as follows;

[0055] S101, connecting the ECU 4 to be tested to the test system;

[0056] S102, the operator operates the host computer 1 and clicks a button to start the low-voltage communication range test on the operation interface of the host computer 1;

[0057] S103, the host computer 1 starts the bus analysis device 3 through the serial port control, and after the bus analysis device 3 starts, it starts the power supply device 2 through the serial port control, and sets the output power supply voltage (ie, a preset initial voltage) of the power supply device 2 to 13.5V;

[0058] S104, the host computer 1 extracts whether the ECU 4 to be tested contains a terminal resistor through the configuration information of the ECU 4 to be tested, and if so, controls the external terminal import switch 12 to be closed through the serial port control bus analysis device, and imports the external terminal import resistor 15; otherwise, controls the external terminal import switch 12 to be opened through the serial port control bus analysis device;

[0059] S105, the bus analysis device 3 controls the power control switch 11 to close, and monitors the voltage value at 21 at the same time. If the voltage detected at port 21 = 13.5V, it is considered that the power control switch 11 completes the corresponding control action and proceeds to the next step; otherwise, it is considered that the system is abnormal, and the bus analysis device 3 feeds back the relevant information to the host computer 1 through the serial port. The host computer 1 prompts that the system is abnormal and asks for maintenance;

[0060] S106, wait for 5 seconds until the bus communication is stable;

[0061] S107, the bus analysis device 3 controls the power supply device 2 to reduce the supply voltage with a step size of 0.5V (first preset step size), until the supply voltage drops to 10V (first preset voltage), then reduces the supply voltage with a step size of 0.2V (second preset step size), until the voltage drops to 9V (second preset voltage), then reduces the supply voltage with a step size of 0.1V (third preset step size) to the preset minimum supply voltage, waits for 1s until the power supply of the power supply device 2 to the ECU 4 to be tested is stable, and the bus analysis device monitors the communication during the test process;

[0062] S108: The bus analysis device 3 records the first power supply voltage VError1 when the ECU 4 to be tested first has an error frame communication message and the second power supply voltage VStop1 when the ECU 4 to be tested stops sending communication messages;

[0063] S109: If the ECU 4 to be tested does not stop communicating and the power supply voltage is greater than 5V (the preset minimum power supply voltage), repeat steps S107 to S108;

[0064] S110: If the ECU 4 to be tested does not stop communicating and the power supply voltage is less than or equal to 5V (the preset minimum power supply voltage), the test is stopped;

[0065] S111: If the ECU 4 to be tested stops communicating, then based on the second power supply voltage VStop1, the power supply voltage is gradually increased in steps of 0.1V (preset step length), and the power supply voltage is gradually increased in the preset step length from the second power supply voltage Vstop1 to the third power supply voltage Vstart1 that enables the ECU to be tested to resume sending normal communication messages, and the first time length tLowRecoverDiff1 from the power supply voltage of the power supply device being restored to the third power supply voltage Vstart1 to the time when the ECU to be tested resumes sending the first frame of normal communication messages is recorded;

[0066] S112: The host computer 1 extracts relevant parameter threshold values ​​from the parameter information of the ECU 4 to be tested: a preset threshold range corresponding to VError1, a preset threshold range corresponding to VStop1, a preset threshold range corresponding to VStart1, and a preset threshold range corresponding to tLowRecoverDiff1;

[0067] S1113: If the recorded values ​​VError1, VStop1, VStart1, and tLowRecoverDiff1 are within the respective corresponding threshold ranges, the test result is displayed as passed, and the measured values ​​of VError1, VStop1, VStart1, and tLowRecoverDiff1 are displayed on the interface of host computer 1;

[0068] S114: If any one or more of the recorded values ​​VError1, VStop1, VStart1, tLowRecoverDiff1 do not meet the corresponding preset threshold range, the test result is displayed as failed, and the measured values ​​of VError1, VStop1, VStart1, tLowRecoverDiff1 are displayed on the interface of the host computer 1.

[0069] The steps performed in module 2 are as follows Figure 3 :

[0070] S201, connecting the ECU 4 to be tested to the test system;

[0071] S202, the operator operates the host computer 1 and clicks a button to start the low-voltage communication range test on the operation interface of the host computer 1;

[0072] S203, the host computer 1 starts the bus analysis device 3 through the serial port control, and after the bus analysis device 3 starts, it starts the power supply device 2 through the serial port control, and sets the output power supply voltage (ie, a preset initial voltage) of the power supply device 2 to 13.5V;

[0073] S204, the host computer 1 extracts whether the ECU 4 to be tested contains a terminal resistor through the configuration information of the ECU 4 to be tested, and if so, controls the external terminal import switch 12 to be closed through the serial port control bus analysis device, and imports the external terminal import resistor 15; otherwise, controls the external terminal import switch 12 to be opened through the serial port control bus analysis device;

[0074] S205, the bus analysis device 3 controls the power control switch 11 to close, and monitors the voltage value at 21 at the same time. If the voltage detected at the U2 port = 13.5V, it is considered that the power control switch 11 completes the corresponding control action and proceeds to the next step; otherwise, it is considered that the system is abnormal, and the bus analysis device 3 feeds back the relevant information to the host computer 1 through the serial port. The host computer 1 prompts that the system is abnormal and asks for maintenance;

[0075] S206, wait for 5 seconds until the bus communication is stable;

[0076] S207, the bus analysis device 3 controls the power supply device 2 to increase the supply voltage with a step size of 0.5V (first preset step size), until the supply voltage rises to 16V (third preset voltage), then reduces the supply voltage with a step size of 0.2V (second preset step size), until the voltage rises to 17V (fourth preset voltage), then increases the supply voltage with a step size of 0.1V (third preset step size) to the preset maximum supply voltage, waits for 1s until the power supply of the power supply device 2 to the ECU 4 to be tested is stable, and the bus analysis device monitors the communication during the test process;

[0077] S208: The bus analysis device 3 records the fourth power supply voltage VError2 when the ECU 4 to be tested first has an error frame communication message and the fifth power supply voltage VStop2 when the ECU 4 to be tested stops sending communication messages;

[0078] S209: If the ECU 4 to be tested does not stop communicating and the power supply voltage is greater than 19V (the preset maximum power supply voltage), repeat steps S207 to S208;

[0079] S210: If the ECU 4 to be tested does not stop communicating and the power supply voltage is less than or equal to 19V (the preset maximum power supply voltage), the test is stopped;

[0080] S211: If the ECU 4 to be tested stops communicating, then based on the fifth power supply voltage VStop2, the power supply voltage is gradually reduced in steps of 0.1V (preset step length), and the power supply voltage is recorded to gradually increase in steps of the preset step length from the fifth power supply voltage Vstop2 to the sixth power supply voltage Vstart2 at which the ECU to be tested resumes sending normal communication messages, and the second time tLowRecoverDiff2 from the time when the power supply voltage of the power supply device is restored to the sixth power supply voltage Vstart2 to the time when the ECU to be tested resumes sending the first frame of normal communication messages is recorded;

[0081] S212: The host computer 1 extracts relevant parameter threshold values ​​from the parameter information of the ECU 4 to be tested: a preset threshold range corresponding to VError2, a preset threshold range corresponding to VStop2, a preset threshold range corresponding to VStart2, and a preset threshold range corresponding to tLowRecoverDiff2;

[0082] S213: If the recorded values ​​VError2, VStop2, VStart2, and tLowRecoverDiff2 are within the respective corresponding threshold ranges, the test result is displayed as passed, and the measured values ​​of VError2, VStop2, VStart2, and tLowRecoverDiff2 are displayed on the interface of the host computer 1;

[0083] S214: If any one or more of the recorded values ​​VError2, VStop2, VStart2, tLowRecoverDiff2 do not meet the corresponding preset threshold range, the test result is displayed as failed, and the measured values ​​of VError2, VStop2, VStart2, tLowRecoverDiff2 are displayed on the interface of the host computer 1.

[0084] When the tests of step S113 and step S213 are both passed, it is determined that the communication voltage range of the ECU to be tested meets the preset standard, and finally the terminal resistance automatic test of the ECU to be tested is realized.

[0085] By utilizing the above-mentioned scheme of the present embodiment, an automated test is implemented for the communication voltage range of the ECU 4 to be tested; specifically, by adjusting the power supply voltage of the ECU 4 to be tested, the power supply voltage corresponding to the normal communication message sent by the ECU 4 to be tested, the power supply voltage corresponding to the first error frame message sent by the ECU 4 to be tested, the power supply voltage corresponding to the communication message no longer sent by the ECU 4 to be tested, and the power supply voltage corresponding to the normal communication message resumed by the ECU 4 to be tested are detected, and the time from the moment when the power supply voltage of the power supply device 2 is adjusted to the power supply voltage that enables the ECU 4 to be tested to resume sending normal communication messages to the first time when the ECU 4 to be tested resumes sending normal communication messages is detected, and these power supply voltages and time durations are compared with the pre-calibrated threshold ranges. When these power supply voltages and time durations are within their respective corresponding preset threshold ranges, it is determined that the communication voltage range of the ECU 4 to be tested meets the standards, and the obtained test results are directly and intuitively output using the interface of the host computer 1.

[0086] The test system for implementing the test method has a simple structure and a simple and reliable circuit; in actual testing, it is only necessary to adjust the supply voltage of the power supply device 2 to achieve the required parameter detection, so that the test results of the system are highly stable and reliable.

Claims

1. An ECU communication voltage range test system, characterized in that: include: ECU to be tested (4), power supply device (2), bus analysis device (3) and host computer (1); The power supply device (2) is electrically connected to the ECU (4) to be tested via a power supply control switch (11); The host computer (1) communicates with the bus analysis device (3) via a signal line, the bus analysis device (3) communicates with the power supply device (2) via a signal line, and the ECU (4) to be tested is connected to the bus analysis device (3) via a CAN_high signal line and a CAN_low signal line; A set terminal resistor (14) is connected between the CAN_high signal line and the CAN_low signal line, and a series branch consisting of an external terminal introduction resistor (15) and an external terminal introduction switch (12) is also connected between the CAN_high signal line and the CAN_low signal line, and the power control switch (11) and the external terminal introduction switch (12) are controlled by the bus analysis device (3); When testing the communication voltage range of the ECU (4) to be tested, the bus analysis device (3) controls the power control switch (11) to close based on the instruction of the host computer (1), and the host computer (1) also selects whether the bus analysis device (3) controls the external terminal import switch (12) to close based on the configuration information of the ECU (4) to be tested; The bus analysis device (3) controls the power supply device (2) to adjust the power supply voltage to the ECU (4) to be tested based on the instruction of the host computer (1); controls the power supply device (2) to gradually increase the power supply voltage from a preset initial power supply voltage to a preset maximum power supply voltage and gradually decrease the power supply voltage from the initial power supply voltage to a preset minimum power supply voltage, and the bus analysis device (3) re-detects the communication messages transmitted on the CAN_high signal line and the CAN_low signal line; The upper computer (1) determines whether the communication voltage range of the ECU (4) under test meets a preset standard based on the first type of power supply voltage corresponding to the abnormal communication message sent by the ECU (4) under test, the second type of power supply voltage corresponding to the ECU (4) under test no longer sending the communication message, the third type of power supply voltage corresponding to the ECU (4) under test resuming sending the normal communication message, and the time from the power supply voltage of the power supply device (2) being adjusted to the third type of power supply voltage to the ECU (4) under test resuming sending the first frame of the communication message.

2. The ECU communication voltage range test system according to claim 1, characterized in that: The bus analysis device (3) first controls the power supply voltage of the power supply device (2) to gradually decrease from a preset initial power supply voltage to a preset minimum power supply voltage, and records a first power supply voltage Verror1 corresponding to the first frame of communication message in which the message failure occurs from the ECU (4) to be tested, and then records a second power supply voltage Vstop1 corresponding to the ECU (4) to be tested no longer sending communication messages; finally, the power supply voltage of the power supply device (2) is controlled to gradually increase from the second power supply voltage Vstop1 to a third power supply voltage Vstart1 at a preset step length so that the ECU (4) to be tested resumes sending normal communication messages, and records a first time length t LowRecoverDiff1 from when the power supply voltage of the power supply device (2) is restored to the third power supply voltage Vstart1 to when the ECU (4) to be tested resumes sending the first frame of normal communication messages; The bus analysis device (3) first controls the power supply voltage of the power supply device (2) to gradually increase from a preset initial power supply voltage to a preset maximum power supply voltage, and records a fourth power supply voltage Verror2 corresponding to the first frame of communication message in which the message failure occurs from the ECU (4) under test, and then records a fifth power supply voltage Vstop2 corresponding to the ECU (4) under test no longer sending communication messages; finally, the power supply voltage of the power supply device (2) is controlled to gradually decrease from the fifth power supply voltage Vstop2 to a sixth power supply voltage Vstart2 at a preset step length so that the ECU (4) under test resumes sending normal communication messages, and records a second time length t LowRecoverDiff2 from when the power supply voltage of the power supply device (2) is restored to the sixth power supply voltage Vstart2 to when the ECU (4) under test resumes sending the first frame of normal communication messages; The upper computer (1) performs a communication voltage range test on the ECU (4) to be tested according to whether the first power supply voltage Verror1, the second power supply voltage Vstop1, the third power supply voltage Vstart1, the first time length t LowRecoverDiff1, the fourth power supply voltage Verror2, the fifth power supply voltage Vstop2, the sixth power supply voltage Vstart2 and the second time length t LowRecoverDiff2 are within respective corresponding preset thresholds.

3. The ECU communication voltage range test system according to claim 1, characterized in that: When the host computer (1) recognizes that the configuration information of the ECU (4) to be tested includes the terminal resistance, it controls the external terminal import switch (12) to be closed through the bus analysis device (3); When the host computer (1) recognizes that the configuration information of the ECU (4) to be tested does not include the terminal resistance, it controls the external terminal import switch (12) to be disconnected through the bus analysis device (3).

4. The ECU communication voltage range test system according to claim 1, characterized in that: The bus analysis device (3) identifies whether the power control switch (11) is correctly closed by determining whether the voltage detected by a voltage detection point arranged between the power control switch (11) and the ECU (4) to be tested is equal to the power supply voltage of the power device (2).

5. The ECU communication voltage range test system according to claim 1, characterized in that: The resistance of the external terminal introduction resistor (15) and the set terminal resistor (14) are both 120Ω.

6. A method for testing ECU communication voltage range, characterized in that: The method comprises: Step S1, establishing a physical connection of an ECU communication voltage range test system; the ECU communication voltage range test system is the system described in claim 1; Step S2, the host computer (1) receives a start command input by a tester; Step S3, the host computer (1) controls the bus analysis device (3) to start up based on the start-up instruction, and after the bus analysis device (3) starts up, it controls the power supply device (2) to output an initial power supply voltage; Step S4, the host computer (1) selects whether to control the external terminal import switch (12) to be closed through the bus analysis device (3) according to the configuration information of the ECU (4) to be tested; Step S5, the host computer (1) controls the power control switch (11) to close via the bus analysis device (3); Step S6, the bus analysis device (3) controls the power supply device (2) to gradually increase the power supply voltage from a preset initial power supply voltage to a preset maximum power supply voltage and gradually decrease the power supply voltage from the initial power supply voltage to a preset minimum power supply voltage according to the instruction of the host computer (1), and the bus analysis device (3) detects the communication messages output by the ECU (4) to be tested under different power supply voltages; In step S7, the host computer (1) determines whether the communication voltage range of the ECU (4) under test meets a preset standard based on the first type of power supply voltage corresponding to the abnormal communication message sent by the ECU (4) under test, the second type of power supply voltage corresponding to the ECU (4) under test no longer sending the communication message, the third type of power supply voltage corresponding to the ECU (4) under test resuming sending the normal communication message, and the time from the time when the power supply voltage of the power supply device (2) is adjusted to the third type of power supply voltage to the time when the ECU (4) under test resumes sending the first frame of the communication message.

7. The ECU communication voltage range testing method according to claim 6, characterized in that: Step S6 includes: Step S611, the bus analysis device (3) controls the power supply device (2) to gradually reduce the power supply voltage of the power supply device (2) from an initial power supply voltage to a preset minimum power supply voltage according to the instruction of the host computer (1), and the bus analysis device (3) collects communication messages transmitted on the CAN_high signal line and the CAN_low signal line; In step S612, the bus analysis device (3) first records the first power supply voltage Verror1 corresponding to the first frame of communication message sent by the ECU (4) under test in which a message failure occurs, and then records the second power supply voltage Vstop1 corresponding to the ECU (4) under test no longer sending communication messages; finally, the power supply voltage of the power supply device (2) is controlled to gradually increase from the second power supply voltage Vstop1 to the third power supply voltage Vstart1 at a preset step length so that the ECU (4) under test resumes sending normal communication messages, and records the first time t LowRecoverDiff1 from the power supply voltage of the power supply device (2) being restored to the third power supply voltage Vstart1 to the time when the ECU (4) under test resumes sending the first frame of normal communication message.

8. The ECU communication voltage range testing method according to claim 7, characterized in that: Step S6 also includes: Step S621, the bus analysis device (3) controls the power supply device (2) to gradually increase the power supply voltage of the power supply device (2) from an initial power supply voltage to a preset maximum power supply voltage according to the instruction of the host computer (1), and the bus analysis device (3) collects communication messages transmitted on the CAN_high signal line and the CAN_low signal line; In step S622, the bus analysis device (3) first records the fourth power supply voltage Verror2 corresponding to the first frame of communication message in which the message failure occurs, and then records the fifth power supply voltage Vstop2 corresponding to the ECU (4) under test no longer sending communication messages; finally, the power supply voltage of the power supply device (2) is controlled to decrease and increase by a preset step from the fifth power supply voltage Vstop2 to the sixth power supply voltage Vstart2 at which the ECU (4) under test resumes sending normal communication messages, and records the second time t LowRecoverDiff2 from the time when the power supply voltage of the power supply device (2) is restored to the sixth power supply voltage Vstart2 to the time when the ECU (4) under test resumes sending the first frame of normal communication message.

9. The ECU communication voltage range testing method according to claim 8, characterized in that: Step S7 includes: If the first power supply voltage Verror1, the second power supply voltage Vstop1, the third power supply voltage Vstart1, the first time length tLowRecoverDiff1, the fourth power supply voltage Verror2, the fifth power supply voltage Vstop2, the sixth power supply voltage Vstart2 and the second time length tLowRecoverDiff2 are all within their respective corresponding preset thresholds, it is determined that the communication voltage range test of the ECU (4) to be tested has passed.

10. The ECU communication voltage range testing method according to claim 8, characterized in that: In step S611, the bus analysis device (3) controls the power supply device (2) to gradually reduce the supply voltage of the power supply device (2) in a first preset processing manner: The bus analysis device (3) controls the power supply voltage of the power supply device (2) to decrease from a preset initial voltage with a first preset step length until the power supply voltage of the power supply device (2) decreases to the first preset voltage, and then decreases the power supply voltage of the power supply device (2) with a second preset step length until the power supply voltage of the power supply device (2) decreases to the second preset voltage, and then decreases the power supply voltage of the power supply device (2) to a preset minimum power supply voltage with a third preset step length; Step S621, the bus analysis device (3) controls the power supply device (2) to gradually increase the supply voltage of the power supply device (2) in a second preset processing manner: The bus analysis device (3) controls the power supply voltage of the power supply device (2) to increase from a preset initial voltage at a first preset step length until the power supply voltage of the power supply device (2) increases to a third preset voltage, and then increases the power supply voltage of the power supply device (2) at a second preset step length until the power supply voltage of the power supply device (2) increases to a sixth preset voltage, and then increases the power supply voltage of the power supply device (2) to a preset minimum power supply voltage at a fourth preset step length; The first preset step size, the second preset step size and the third preset step size decrease in sequence.