Electronic control unit ECU test system based on programmable power supply
The ECU testing system built using a programmable power supply and a CAN card solves the problems of low efficiency and insufficient accuracy in ECU testing, enabling automated, long-term, and efficient ECU testing while reducing costs.
Patent Information
- Application Number
- CN202422854381.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2034-11-21
AI Technical Summary
Existing technologies for ECU testing suffer from long testing cycles, low efficiency, low accuracy, high cost, and low automation. In particular, the timing control accuracy is low during power-on/power-off operations, which cannot meet the requirements for long-cycle and high-precision testing.
An ECU testing system, built using a programmable power supply, CAN card, and host computer, achieves automated control and testing of the ECU through serial communication and USB connection. The CAN card controls the ECU's sleep and wake-up states, and combined with the voltage and current management of the programmable power supply, it enables automated, long-term testing.
It simplifies the ECU testing process, reduces testing costs, improves testing efficiency and accuracy, and enables automated, long-term ECU testing.
Smart Images

Figure CN223526658U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to the field of automobile electronic technology, in particular to a kind of electronic control unit ECU test system based on program-controlled power supply. BACKGROUND
[0002] With the continuous development of automobile electrification and intelligentization, as the core of automobile electronic control system, the importance of electronic control unit (ECU) is increasingly highlighted, and the function test of ECU is the key link to ensure the function safety of ECU.
[0003] In the related art, for bench test, testers often use multimeter, oscilloscope and function generator and other devices to test, the above-mentioned test method has the problems of long test period, low efficiency, low accuracy, high cost and low automation degree, especially the test of power-on / power-off operation of ECU, which consumes a lot of energy through artificial power-on / power-off, and the time control precision is low, which cannot meet the long-period and high-precision mass test.
[0004] Therefore, how to test ECU conveniently, efficiently and accurately has become a problem to be solved.
[0005] Therefore, the utility model is proposed. UTILITY MODEL CONTENT
[0006] The utility model aims to solve one of the technical problems in the related art at least to some extent.
[0007] Therefore, the first purpose of the utility model is to provide an electronic control unit ECU test system based on program-controlled power supply, to solve the technical problem that ECU cannot be tested conveniently, efficiently and accurately in the prior art.
[0008] To achieve the above object, the utility model provides a kind of electronic control unit ECU test system based on program-controlled power supply, comprising: program-controlled power supply, CAN card, ECU to be measured and host computer;Wherein, the program-controlled power supply is connected with the host computer by serial communication connection line, the host computer is connected with the CAN card by universal serial bus USB, the CAN line of the CAN card is connected with the CAN line of the ECU to be measured and the ECU to be measured is connected with the program-controlled power supply by power line;The I / O port of the CAN card is connected with the anode of the program-controlled power supply, and the CAN card is used to control the ECU to be measured to enter hibernation state or wake-up state;The host computer is used to send control instruction to the program-controlled power supply, controls the program-controlled power supply to supply power to the ECU to be measured according to the control instruction, sends test instruction to the ECU to be measured by CAN card, controls the ECU to be measured to test, wherein, the test instruction includes test case.
[0009] According to an embodiment of the utility model, the digital output port in the I / O port of the CAN card is connected with the anode of the program-controlled power supply in series with the resistance of target resistance value, and the CAN card analog ground wire is connected with the power input end of the ECU to be measured, wherein, the resistance is used to make the digital output port of the CAN card output high level signal.
[0010] According to an embodiment of the utility model, the CAN card is also used to: in response to the digital output port of the CAN card output high level signal, control the metal oxide semiconductor MOS pipe in the internal circuit of the CAN card to be turned on, power on the KL15 port of the power input end of the ECU to be measured, control the ECU to be measured to enter wake-up state;In response to the digital output port of the CAN card output low level signal, control the MOS pipe in the internal circuit of the CAN card to be closed, power down the KL15 port of the power input end of the ECU to be measured, control the ECU to be measured to enter hibernation state.
[0011] According to an embodiment of the utility model, the high level signal line in the CAN line of the CAN card is connected with the high level signal line in the CAN line of ECU to be measured, and the low level signal line in the CAN line of the CAN card is connected with the low level signal line in the CAN line of ECU to be measured.
[0012] According to an embodiment of the utility model, the host computer is also used to: obtain the test parameter of the ECU to be measured, write test case containing the test parameter by communication access programming language CAPL;According to the test case, the test instruction is generated.
[0013] According to one embodiment of the utility model, the positive pole of program control power input end is connected with external 220V power supply through power line and the negative pole of program control power input end is connected with external wire grounding terminal GND through power line, the positive pole of program control power output end is connected with the positive pole of ECU to be measured through power line and the negative pole of program control power output end is connected with the negative pole of EU to be measured through power line.
[0014] According to one embodiment of the utility model, the host computer is further configured to: send a power reading instruction to the program control power supply; and read the current and voltage of the program control power supply according to the power reading instruction.
[0015] According to one embodiment of the utility model, the host computer is further configured to: send a power modification instruction to the program control power supply; and modify the power supply parameters output by the program control power supply according to the power modification instruction.
[0016] The ECU test system based on program control power supply provided by the utility model embodiment comprises a program control power supply, a CAN card, an ECU to be measured and a host computer, wherein the program control power supply is connected with the host computer through a serial communication connection line, the host computer is connected with the CAN card through a universal serial bus (USB), the CAN line of the CAN card is connected with the CAN line of the ECU to be measured, the ECU to be measured is connected with the program control power supply through a power line, the I / O port of the CAN card is connected with the positive pole of the program control power supply, the CAN card is used for controlling the ECU to be measured to enter a sleep state or a wake-up state, and the host computer is used for sending a control instruction to the program control power supply, controlling the program control power supply to supply power to the ECU to be measured, sending a test instruction to the ECU to be measured through the CAN card, and controlling the ECU to be measured to perform a test, wherein the test instruction comprises a test case, so that the test system provided by the utility model realizes automatic and long-time ECU testing, simplifies the ECU testing mode, reduces the testing cost, improves the ECU testing efficiency while ensuring the testing precision of the ECU. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 is the structure schematic diagram of the ECU test system based on program control power supply of one embodiment disclosed by the utility model;
[0018] Figure 2 is the hardware connection schematic diagram of the ECU test system based on program control power supply of one embodiment disclosed by the utility model;
[0019] In the drawing:
[0020] 1000 - electronic control unit ECU test system based on program-controlled power supply; 100 - program-controlled power supply; 200 - CAN card; 300 - ECU to be tested; 400 - host computer; 10 - digital output port; 20 - resistor; 30 - CAN card analog ground wire; 40 - power input end of the ECU to be tested 300. DETAILED DESCRIPTION
[0021] The embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are intended to explain the present application, and cannot be understood as a limitation of the present application.
[0022] The electronic control unit ECU test system based on program-controlled power supply of the embodiments of the present application is described below with reference to the drawings.
[0023] Figure 1 Fig. 1 is a structural schematic diagram of an electronic control unit ECU test system based on program-controlled power supply of one embodiment disclosed by the present application.
[0024] As shown in Fig. 1, the electronic control unit ECU test system 1000 based on program-controlled power supply in the present embodiment comprises a program-controlled power supply 100, a CAN card 200, an ECU to be tested 300 and a host computer 400. Figure 1 The program-controlled power supply 100 is connected with the host computer 400 through a serial communication connection line, the host computer 400 is connected with the CAN card 200 through a universal serial bus (USB), the CAN line of the CAN card 200 is connected with the CAN line of the ECU to be tested 300, and the ECU to be tested 300 is connected with the program-controlled power supply 100 through a power line.
[0025] It should be noted that the host computer 400 is connected with the CAN card 200 through the USB, the CAN line of the CAN card 200 is connected with the CAN line of the ECU to be tested 300, thereby realizing the communication between the ECU to be tested 300 and the host computer 400, and the whole test process of the ECU to be tested can be controlled.
[0026] The program-controlled power supply is a professional power supply device capable of setting and adjusting voltage and current and other power supply parameters through external control signals.
[0027] It should be noted that the type of the serial communication connection line is not limited in the present disclosure, and the serial communication connection line can be an RS232 serial communication connection line.
[0028]
[0029] The universal serial bus (USB) is an external bus standard for specifying the connection and communication of a computer and an external device.
[0030] The I / O port of the CAN card 200 is connected to the positive pole of the programmable power supply 100, and the CAN card 200 is used to control the ECU 300 under test to enter a sleep state or a wake-up state.
[0031] The host computer 400 is used to send a control instruction to the programmable power supply 100, and according to the control instruction, the programmable power supply 100 is controlled to supply power to the ECU 300 under test, and the CAN card 200 is used to send a test instruction to the ECU 300 under test, and the ECU 300 under test is controlled to perform a test, wherein the test instruction includes a test case.
[0032] For example, the host computer 400 can send a control instruction to the programmable power supply 100 through serial communication, and according to the control instruction, the programmable power supply 100 can be controlled to be turned on and turned off, and the programmable power supply 100 can be remotely controlled to supply power to the ECU 300 under test.
[0033] Optionally, the host computer can access the test case containing the test parameters written by the communication access programming language (CAPL) through the CANoe software and the test parameters, and based on the test case, the test instruction is generated, and the test instruction is sent to the ECU 300 under test through the CAN card 200, and the ECU 300 under test is controlled to perform an automatic test.
[0034] Further, after the test of the ECU 300 under test is completed, a test report can be generated according to the test result, and the test report is fed back to the tester.
[0035] In summary, the utility model embodiment provides an electronic control unit ECU test system based on program control power supply, include: program control power supply, CAN card, ECU and host computer that wait, wherein, program control power supply is connected with host computer through serial communication connection line, host computer is connected with CAN card through universal serial bus USB, CAN card's CAN line is connected with the CAN line of ECU and ECU is connected with program control power supply through power line, CAN card's I / O port is connected with the anode of program control power supply, CAN card is used to control ECU to enter the hibernation state or wake -up state, host computer is used to send control instruction to program control power supply, according to control instruction, control program control power supply to ECU and carry out power supply, send test instruction to ECU through CAN card, control ECU to test, wherein, test instruction includes test case, thus, the test system of the present disclosure realizes the automation, long -time to ECU and carries out test, simplifies the test mode of ECU, reduces test cost, guarantees the test precision of ECU simultaneously, improves ECU test efficiency.
[0036] Figure 2 It is the hardware connection schematic diagram of the electronic control unit ECU test system based on program control power supply of one embodiment of the utility model discloses.
[0037] In some embodiments, as shown in Figure 2 The digital output port 10 in the I / O port of the CAN card is connected in series with the resistance 20 of the target resistance value between the anode of the program control power supply, and the CAN card analog ground 30 is connected with the power input end 40 of the ECU 300, wherein the resistance 20 is used to make the digital output port 10 of the CAN card output a high level signal.
[0038] Among them, the resistance 20 can also be used to protect the CAN card.
[0039] It should be noted that the type of CAN card is not limited in the present disclosure, and the CAN card can be VN1640.
[0040] It should be noted that the setting of the target resistance value is not limited in the present disclosure, for example: the target resistance value can be 200Ω.
[0041] For example, for the CAN card VN1640, the digital output (Digital OUTPUT, referred to as DOUT) port in the I / O port of VN1640 is connected in series with the resistance of 200Ω between the anode of the program control power supply, forming a pull-up resistance.
[0042] In some embodiments, the CAN card 200 is further configured to: in response to the digital output port 10 of the CAN card 200 outputting a high-level signal, control a Metal Oxide Semiconductor (MOS) tube in the internal circuit of the CAN card 200 to be turned on, power on the KL15 port of the power input end of the ECU 300 to be tested, and control the ECU 300 to be tested to enter a wake-up state; and in response to the digital output port 10 of the CAN card 200 outputting a low-level signal, control the MOS tube in the internal circuit of the CAN card 200 to be turned off, power off the KL15 port of the power input end of the ECU 300 to be tested, and control the ECU 300 to be tested to enter a sleep state.
[0043] It should be noted that the CAN card analog ground (Analog GND) is connected to the power input end (IG) of the ECU 300 to be tested, and the MOS tube in the internal circuit of the DB9 is turned on by outputting a high-level signal through the DOUT port of the CAN card, the KL15 port of the power input end of the ECU 300 to be tested is powered on, the ECU 300 to be tested is controlled to enter a wake-up state, and the MOS tube in the internal circuit of the DB9 is turned off by outputting a low-level signal through the DOUT port of the CAN card, the KL15 port of the power input end of the ECU 300 to be tested is powered off, and the ECU 300 to be tested is controlled to enter a sleep state.
[0044] It should be noted that the KL15 port of the power input end of the ECU 300 to be tested is powered on / off to control the ECU 300 to be tested to enter a sleep or wake-up state.
[0045] In some embodiments, as shown in FIG. 4, the CAN card 200 is connected to the CAN line of the ECU 300 to be tested. Figure 2 In some embodiments, as shown in FIG. 4, the CAN card 200 is connected to the CAN line of the ECU 300 to be tested.
[0046] In some embodiments, the host computer 400 is further configured to: obtain a to-be-tested parameter of the ECU 300 to be tested, write a test case containing the test parameter through a communication access programming language CAPL, and generate a test instruction according to the test case.
[0047] For example, by acquiring the to-be-tested parameter (test content) of the to-be-tested ECU, an XML module is created using the CANoe software according to the to-be-tested parameter, the.can file is imported into the XML module, the test case containing the test parameter is written by CAPL, and the control interface is drawn using the Panel Designer tool, so that independent running of different test cases containing different test parameters can be realized.
[0048] In the embodiment of the present disclosure, after the test case is acquired, the test instruction can be generated according to the test case, and the test instruction is sent to the to-be-tested ECU 300 through the CAN card 200 to control the to-be-tested ECU 300 to perform the test.
[0049] In some embodiments, as shown in Figure 2 In some embodiments, as shown in
[0050] In some embodiments, the host computer 400 is further configured to send a power reading instruction to the programmable power supply 100, and read the current and voltage of the programmable power supply 100 according to the power reading instruction.
[0051] In some embodiments, the host computer 400 is further configured to send a power modification instruction to the programmable power supply 100, and modify the power parameter output by the programmable power supply 100 according to the power modification instruction.
[0052] It should be noted that the power parameter output by the programmable power supply includes but is not limited to current, voltage, etc.
[0053] In summary, the ECU test system based on the programmable power supply provided in the embodiments of the present application establishes the ECU test system through the programmable power supply, the CAN card, the to-be-tested ECU and the host computer, and the ECU test system has the advantages of simple structure, convenient movement and carrying, etc., reduces the test cost and human investment, and can realize automatic, long-time and continuous testing of the ECU, improves the ECU test efficiency while ensuring the test precision of the ECU.
[0054] In the description of the utility model, it is understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like is the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the utility model and simplifying the description, and does not indicate or imply that the device or element indicated must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the utility model.
[0055] In addition, the terms "first" and "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the utility model, the meaning of "multiple" is two or more than two, unless otherwise specifically limited.
[0056] In the utility model, unless otherwise specifically defined and limited, the terms "mounting", "connection", "connection", "fixing" and the like should be understood broadly, for example, it can be fixed connection, or detachable connection, or integrated; it can be mechanical connection, or electrical connection; it can be directly connected, or indirectly connected through intermediate medium, or the communication or interaction relationship between two elements. For ordinary skilled in the art, the specific meaning of the above terms in the utility model can be understood according to the specific circumstances.
[0057] In the utility model, unless otherwise specifically defined and limited, the first feature is "on" or "under" the second feature, which can be direct contact between the first and second features, or indirect contact between the first and second features through intermediate medium. Moreover, the first feature "above", "above" and "above" the second feature can be directly above or obliquely above the first feature, or only indicate that the horizontal height of the first feature is higher than that of the second feature. The first feature "below", "below" and "below" the second feature can be directly below or obliquely below the first feature, or only indicate that the horizontal height of the first feature is less than that of the second feature.
[0058] In the description of the present specification, the description referring to the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. Furthermore, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples, without contradiction.
[0059] Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and the person skilled in the art can make changes, modifications, replacements and modifications to the above embodiments within the scope of the present application.
Claims
1. A programmable power supply based electronic control unit (ECU) test system, characterized by, The application relates to a test device for an electronic control unit (ECU) and a test method thereof. The test device comprises a program-controlled power supply, a CAN card, an ECU to be tested and a host computer. The program-controlled power supply is connected with the host computer through a serial communication connection line, the host computer is connected with the CAN card through a universal serial bus (USB), a CAN line of the CAN card is connected with a CAN line of the ECU to be tested, and the ECU to be tested is connected with the program-controlled power supply through a power line. An I / O port of the CAN card is connected with a positive pole of the program-controlled power supply, and the CAN card is used for controlling the ECU to be tested to enter a sleep state or a wake-up state. The host computer is used for sending a control instruction to the program-controlled power supply, controlling the program-controlled power supply to supply power to the ECU to be tested according to the control instruction, sending a test instruction to the ECU to be tested through the CAN card, and controlling the ECU to be tested to perform a test, wherein the test instruction comprises a test case.
2. The system of claim 1, wherein, A digital output port of the I / O port of the CAN card is connected with the positive pole of the program-controlled power supply in series with a resistance of a target resistance value, and an analog ground line of the CAN card is connected with a power input end of the ECU to be tested, wherein the resistance is used for making the digital output port of the CAN card output a high-level signal.
3. The system of claim 2, wherein, The CAN card is further used for: controlling a metal oxide semiconductor (MOS) tube in an internal circuit of the CAN card to be turned on in response to the digital output port of the CAN card outputting a high-level signal, electrifying a KL15 port of the power input end of the ECU to be tested, and controlling the ECU to be tested to enter a wake-up state; controlling the MOS tube in the internal circuit of the CAN card to be turned off in response to the digital output port of the CAN card outputting a low-level signal, de-electrifying the KL15 port of the power input end of the ECU to be tested, and controlling the ECU to be tested to enter a sleep state.
4. The system of claim 2, wherein, A high-level signal line in a CAN line of the CAN card is connected with a high-level signal line in a CAN line of the ECU to be tested, and a low-level signal line in the CAN line of the CAN card is connected with a low-level signal line in the CAN line of the ECU to be tested.
5. The system of claim 1, wherein, The host computer is further used for: obtaining test parameters of the ECU to be tested, and writing a test case containing the test parameters by using a communication access programming language (CAPL); generating the test instruction according to the test case.
6. The system of claim 1, wherein, A positive pole of an input end of the program-controlled power supply is connected with an external 220V power supply through a power line, and a negative pole of the input end of the program-controlled power supply is connected with an external ground end (GND) through a power line; a positive pole of an output end of the program-controlled power supply is connected with a positive pole of the ECU to be tested through a power line, and a negative pole of the output end of the program-controlled power supply is connected with a negative pole of the ECU to be tested through a power line.
7. The system of claim 1, wherein, The host computer is further used for: sending a power reading instruction to the program-controlled power supply; reading current and voltage of the program-controlled power supply according to the power reading instruction.
8. The system of claim 1, wherein, The host computer is further used for: sending a power modification instruction to the program-controlled power supply; modifying power supply parameters output by the program-controlled power supply according to the power modification instruction.