Electric control unit test method and device, computer equipment, readable storage medium and program product

Through the automated testing method, user test requests are obtained and automated testing of the electronic control unit is performed, which solves the problems of cumbersome and low-efficiency testing of the electronic control unit in the existing technology, and achieves more efficient and accurate test results.

CN118760140APending Publication Date: 2024-10-11一汽解放青岛汽车有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411105554.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing technology's testing process of electronic control units in automobile bus networks is cumbersome, time-consuming, error-prone, and requires high professional quality of testers, resulting in insufficient efficiency and accuracy.

Method used

Provides an electronic control unit testing method that automatically tests the electronic control unit by obtaining user test requests, test configuration files and use cases, including obtaining digital switch input signals and pulse width modulation signals, detecting the voltage and frequency of output signals, and detecting For the terminal resistance configuration and bus fault of the channel under test, the test system including test cabinet, network test bench and industrial computer is used to realize automated testing.

Benefits of technology

It improves the accuracy and efficiency of testing, reduces manual intervention, shortens testing time, reduces error rates, and improves the work efficiency of testers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760140A_ABST
    Figure CN118760140A_ABST
Patent Text Reader

Abstract

The invention relates to an electronic control unit testing method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a test request initiated by a user on an industrial personal computer of a test system; acquiring a test configuration file, a test item and a test case based on the test request; and determining the tested electric control unit based on the test item, and testing the tested electric control unit based on the test configuration file, the test item and the test case. According to the method provided by the invention, the test accuracy can be improved, and the test efficiency can also be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle network testing, and in particular to an electronic control unit testing method, device, computer equipment, computer-readable storage medium and computer program product. Background Art

[0002] At present, automotive electronic technology is developing rapidly, and there are more and more electronic control units on cars. The trend of distributed networking between electronic control units is becoming more and more obvious, especially the traditional bus network is the most widely used in cars. In order to ensure the normal communication and interaction of each electronic control unit on the bus network, it is necessary to conduct comprehensive network testing on the electronic control units on the car bus network. The test content is mainly divided into physical layer testing, data link layer testing, network management layer testing, session layer testing, and application layer testing. There are many test equipment and test contents for each layer. Traditional testing methods basically require manual testing. After collecting data, it needs to be fed back to a dedicated person for analysis to verify whether each electronic control unit meets the expected requirements of the indicators, and then issue a test report. When the number of electronic control units tested exceeds a certain number, the workload will increase geometrically, the process will be complicated, time-consuming and prone to errors, and the professional quality requirements for testers will also increase. Summary of the invention

[0003] Based on this, it is necessary to provide an electric control unit testing method, device, computer equipment, computer readable storage medium and computer program product that can improve the test accuracy in response to the above technical problems.

[0004] In a first aspect, the present application provides an electronic control unit testing method, the method comprising:

[0005] Obtain the test request initiated by the user on the industrial computer of the test system;

[0006] Acquire a test configuration file, a test item, and a test case based on the test request;

[0007] An electronic control unit under test is determined based on the test items, and the electronic control unit under test is tested based on the test configuration file, the test items and the test case.

[0008] In one embodiment, the testing of the electronic control unit under test based on the test configuration file, the test items and the test cases includes:

[0009] Obtaining a digital switch input signal and a pulse width modulation signal of the electronic control unit under test;

[0010] Based on the digital switch input signal and the pulse width modulation signal, obtaining the output signal of the electronic control unit under test;

[0011] Based on the test configuration file, the test items and the test cases, the voltage and frequency of the output signal are detected.

[0012] In one embodiment, the testing of the electronic control unit under test based on the test configuration file, the test items and the test cases includes:

[0013] Obtaining a tested channel corresponding to the tested electronic control unit;

[0014] Based on the test configuration file, the test items and the test cases, the terminal resistance configuration, the bus fault injection voltage and the waveform parameters of the tested channel are detected.

[0015] In one embodiment, the test system includes a test cabinet, a network test bench, an external display and the electronic control unit to be tested, and the test cabinet includes a protocol data unit, a programmable oscilloscope, a cabinet front panel interface, a network node test box, a VT board chassis, a programmable multimeter, a programmable ground drift power supply, a programmable power supply and the industrial computer.

[0016] In one embodiment, the test cabinet and the network test bench, as well as the industrial computer and the external display are electrically connected via connecting cables, and a plurality of connection positions for connecting the electronic control unit to be tested are reserved on the network test bench. The test cabinet is connected to the electronic control unit to be tested connected to the network test bench via the cabinet front panel interface, and each connection position is equipped with a power port, at least one communication port, and an IO control port.

[0017] In one embodiment, the industrial computer, the programmable power supply, the programmable oscilloscope, the programmable multimeter, the programmable ground drift power supply and the Ethernet to CAN module form a local area network through a switch, and the Ethernet to CAN module is used to convert the received host computer instructions into CAN messages.

[0018] In a second aspect, the present application further provides an electronic control unit testing device, the device comprising:

[0019] A first acquisition module is used to acquire a test request initiated by a user on an industrial computer of a test system;

[0020] A second acquisition module, used to acquire a test configuration file, a test item, and a test case based on the test request;

[0021] A determination module is used to determine the electronic control unit under test based on the test items, and to test the electronic control unit under test based on the test configuration file, the test items and the test case.

[0022] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above embodiments when executing the computer program.

[0023] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0024] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0025] The above-mentioned electric control unit test method, device, computer equipment, computer-readable storage medium and computer program product obtain a test request initiated by a user on an industrial computer of a test system; obtain a test configuration file, a test item and a test case based on the test request; determine the electric control unit under test based on the test item, and test the electric control unit under test based on the test configuration file, the test item and the test case. The method provided by the present application can improve both the accuracy of the test and the efficiency of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 A schematic diagram of a flow chart of an electronic control unit testing method in one embodiment;

[0028] Figure 2 is a flow chart of an output signal detection method in one embodiment;

[0029] Figure 3 is a schematic diagram of a test system in one embodiment;

[0030] Figure 4 is a schematic diagram of a test cabinet in one embodiment;

[0031] Figure 5 A schematic diagram of a front panel interface of a test cabinet in one embodiment;

[0032] Figure 6 A schematic diagram of a panel interface of a test cabinet network node test box in one embodiment;

[0033] Figure 7 A schematic diagram of a test cabinet rear interface panel interface in one embodiment;

[0034] Figure 8 A block diagram of a power supply circuit of a system device in one embodiment;

[0035] Fig. 9 is a schematic diagram of a network test bench in one embodiment;

[0036] Fig.10 A block diagram of a communication loop of a system device in one embodiment;

[0037] Fig.11 A block diagram of a controller power supply circuit in one embodiment;

[0038] Fig.12 A block diagram of a controller communication loop in one embodiment;

[0039] Fig.13 It is a block diagram of IO simulation and acquisition loop in one embodiment;

[0040] Fig.14 is a structural block diagram of an electronic control unit testing device in one embodiment;

[0041] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] In one embodiment, Figure 1 As shown, a method for testing an electric control unit is provided. This embodiment takes the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0044] S102: Acquire a test request initiated by a user on an industrial computer of a test system.

[0045] Among them, users can open the automated test configuration cloud page through the web browser on the industrial computer to initiate a test request.

[0046] S104: Acquire a test configuration file, a test item, and a test case based on the test request.

[0047] Among them, after opening the cloud page, the user can add a configuration file, check the test items and test cases, open the automated test configuration client, download and update the cloud test instruction task, call CANOE to execute the test case script of the specific test project written in CAPL, automatically execute the test steps, and monitor the test process in the CANOE window.

[0048] S106: Determine the electronic control unit under test based on the test items, and test the electronic control unit under test based on the test configuration file, the test items and the test cases.

[0049] Among them, the test process is monitored in the CANOE window, and it supports pausing or continuing the test process at any time. After the test is completed, the test report is output and can be viewed directly in the industrial computer using a browser. The tester can update the CAPL script in time according to the test results and execute a new test again through the technical solution.

[0050] In the above-mentioned electronic control unit test method, a test request initiated by a user on an industrial computer of a test system is obtained; a test configuration file, a test item, and a test case are obtained based on the test request; the electronic control unit under test is determined based on the test item, and the electronic control unit under test is tested based on the test configuration file, the test item, and the test case. The method provided by the present application can improve both the accuracy of the test and the efficiency of the test.

[0051] In some embodiments, Figure 2 As shown, the ECU under test is tested based on the test configuration file, test items and test cases, including:

[0052] S202: Acquire a digital switch input signal and a pulse width modulation signal of the electronic control unit under test.

[0053] S204: Based on the digital switch input signal and the pulse width modulation signal, an output signal of the electronic control unit under test is obtained.

[0054] S206 . Detect the voltage and frequency of the output signal based on the test configuration file, the test items, and the test cases.

[0055] Among them, the industrial computer calls CANOE through the test configuration client to execute the corresponding code in the CAPL test case script to control the VT2004A excitation module to simulate the various signals required to be input by the electronic control unit under test. In addition, the industrial computer controls the VT2516A digital I / 0 module to simulate the digital switch input signal and PWM (pulse width modulation) signal to measure the voltage and frequency of the output signal of the electronic control unit under test.

[0056] In this embodiment, the output signal is determined based on the digital switch input signal and the pulse width modulation signal, and the voltage and frequency of the output signal are detected based on the test configuration file, test items and test cases, so that the test results of the electronic control unit under test are more accurate.

[0057] In some embodiments, the electronic control unit under test is tested based on the test configuration file, test items and test cases, including: obtaining the tested channel corresponding to the electronic control unit under test; based on the test configuration file, test items and test cases, detecting the terminal resistance configuration, bus fault injection voltage and waveform parameters of the tested channel.

[0058] The channels under test usually refer to the individual test points or test interfaces on the ECU under test during the test. Each channel may correspond to different functions or signals of the ECU under test, such as input / output signals, power supply, grounding, etc. During the test, the test system interacts with the ECU under test through these channels to evaluate whether the performance and functions of the ECU under test meet expectations.

[0059] In this embodiment, by detecting the tested channel, the detection of the tested electronic control unit is made more accurate and comprehensive.

[0060] In some embodiments, the test system includes a test cabinet, a network test bench, an external display and an electronic control unit to be tested, and the test cabinet includes a protocol data unit, a programmable oscilloscope, a cabinet front panel interface, a network node test box, a VT board chassis, a programmable multimeter, a programmable ground drift power supply, a programmable power supply and an industrial computer.

[0061] The schematic diagram of the test system is shown in Figure 3 The schematic diagram of the test cabinet is shown in Figure 4 shown.

[0062] Test cabinet front panel interface such as Figure 5 As shown, KL30, KL15, and KL31 interfaces (banana sockets) are reserved on the panel for powering the controller; three VN1640A CAN / CANFD / LIN leads are placed on the panel to the test cabinet front panel interface (DB9), and the VN1640A network interface module is connected to the electronic control unit to be tested on the network test bench through the test cabinet front panel interface; VT2004A, VT2516A and the electronic control unit to be tested are connected on the panel through the Phoenix terminal block.

[0063] Test cabinet network node test box panel interface such as Figure 6As shown, there are 6 USB interfaces on the panel for connecting VN devices and keyboards and mice; there are 5 SYNC interfaces on the panel for clock synchronization of 3 VN1640A, VN5620 and VH6501 devices; there are 2 POWER interfaces (SYNC) on the panel for powering VH6501 and VN5620; there are 12 DB9 interfaces on the panel for connecting 3 VN1640A; there is 1 VH6501 male end interface (DB9) on the panel for connecting VH6501 to realize fault injection such as short power and short ground.

[0064] Test cabinet rear panel interface Figure 7 As shown, there is a CONN interface on the panel, and CAN / LIN resources and VT board resources are led to the CONN interface; there are 3 USB interfaces on the panel for connecting VN5620 and U disk; there is a TO PC interface (RJ45) on the panel for connecting to the external network; there is a VN5620 interface (RJ45) on the panel for connecting VN5620; there is a TO RACK interface (RJ45) on the panel for cascading VT chassis; there is a POWER OUTPUT interface (seven-core aviation plug) on ​​the panel for powering the network test bench; there is a POWER INPUT interface (three-core aviation plug) on ​​the panel for powering the test cabinet; there is a CANet interface (DB9) on the panel for detecting the message signal of Ethernet to CAN.

[0065] The system equipment power supply circuit diagram is as follows Figure 8 As shown, the test cabinet is powered by AC220V; the PDU has an integrated power conversion module to realize the AC220V to DC12V conversion function; the AC220V power-consuming equipment in the test cabinet includes: industrial computers, switches, programmable multimeters, programmable power supplies, programmable ground drift power supplies, and programmable oscilloscopes; the DC12V power-consuming equipment in the test cabinet includes: 2 device routing boards, 1 power loop simulation board, 1 Ethernet to CAN module, VT8012 backplane, seven-core aviation plug _PIN5&PIN6 on the rear interface panel of the test cabinet, and network node test box panels POWER1&POWER2.

[0066] In some embodiments, the test cabinet and the network test bench, as well as the industrial computer and the external display are electrically connected via connecting cables. The network test bench is provided with a plurality of connection positions for connecting the electronic control unit to be tested. The test cabinet is connected to the electronic control unit to be tested connected to the network test bench via the cabinet front panel interface. Each connection position is equipped with a power port, at least one communication port, and an IO control port.

[0067] The schematic diagram of the network test bench is as follows: Fig. 9As shown, the network test bench is reserved with 20 or 35 connection positions for the electronic control units to be tested, and each connection position is equipped with a power port, one or more communication ports and an IO control port.

[0068] In some embodiments, an industrial computer, a programmable power supply, a programmable oscilloscope, a programmable multimeter, a programmable ground drift power supply and an Ethernet to CAN module form a local area network through a switch, and the Ethernet to CAN module is used to convert received host computer instructions into CAN messages.

[0069] Among them, the system equipment communication loop block diagram is as follows Fig.10 As shown, the industrial computer, programmable power supply, programmable oscilloscope, programmable multimeter, programmable ground drift power supply and Ethernet to CAN module are combined into a local area network through a switch, wherein the LAN IP address segment is: 192.168.100.100; the subnet mask is: 255.255.255.0; the Ethernet to CAN module receives the host computer command and converts it into CAN message to realize the program control of DRB1, DRB2 and PSRB. In the test system, CAN0 of the Ethernet to CAN module and DRB1, DRB2, and PSRB form a CAN bus; the CAN1 interface of the Ethernet to CAN module is externally connected to CANet (DB9) on the rear interface panel of the test cabinet to monitor the sending status of the Ethernet to CAN command during the test cabinet debugging; the CAN1 interface is externally connected to CONN on the rear interface panel of the test cabinet to control the network test bench BOB; the USB1-9 interface is used for VH6501, VN1640A, U disk, VN5620, and Bluetooth keyboard and mouse (among which, USB1-6 is used for VH6501, VN1640A, U disk; USB7-9 is used for VN5620, keyboard and mouse); the LAN2 interface is used to connect to the VT8012 board backplane; the LAN3 interface is used to connect to the rear interface panel of the test cabinet to connect to the intranet; the LAN4 interface is used to connect to VN5620; the LAN5 interface is used to cascade the VT device chassis; the internal SYNC interface of the test cabinet BOX leads to the node test box panel interface and the test cabinet rear panel interface for connecting VN1640A, VN5620, etc.

[0070] The controller power circuit diagram is as follows: Fig.11As shown, the output pin of the programmable power supply is connected to the SUP1 channel of VT7001A, and the KL30, KL15, and KL31 power on and off functions are realized through the VT7001A board; the KL30, KL15, and KL31 interfaces are placed on the front interface panel of the test cabinet; the VT2516A_CH15_ORG and VT2516A_CH16_ORG terminals are used to connect KL30 and KL15 to retrieve the voltage values ​​of KL30 and KL15; the output PPS+ pin of the programmable power supply is connected to the VT2516A_ECU Vbatt; the PPS- pin is connected to the VT2516A_ECU The GND connection can be used for fault injection of short circuit to power supply and ground; connect the PS+ and PS- of the programmable ground drift power supply to the NO and NC of the 11th channel of PSRB respectively, and connect the GND of VT7001A to PS- to realize the function of cutting the ground drift power supply into / out of the power supply loop; connect the male terminal PIN9 of VH6501 to the COM terminal of the RL07 terminal of PSRB, and connect PIN3 to the COM terminal of the RL08 terminal of PSRB.

[0071] The controller communication loop block diagram is as follows: Fig.12 As shown, to meet the CAN / CANFD / LIN communication test and gateway test, DRB1 is allocated with 6 CAN / CANFD channels and 2 LIN channels, and DRB2 is allocated with 3 CAN channels and 1 LIN channel; PIN1 to PIN14 of DRB1_P3 end are led to the front interface panel of the test cabinet, and each CAN is divided into two and led to the rear interface panel of the test cabinet, and connected to the ECU, where CAN1 uses a shielded twisted pair, and the shielding layer is grounded at one end; PIN4 to PIN14 of DRB1_P3 end are led to the PIN pins corresponding to the CAN / CANFD / LIN interface of VN1640A_1-2, and the connection and disconnection of P3 and P4 can be realized by receiving and executing program control instructions; DRB1_P5 end is connected to VH6501, programmable multimeter, and programmable oscilloscope. And other test equipment to realize the terminal resistance configuration, bus fault injection, voltage and waveform parameter measurement functions of the tested channel; DRB2_P3 end PIN1 to PIN14 are led to the front interface panel of the test cabinet, and each CAN is divided into two and led to the rear interface panel of the test cabinet, and connected to the ECU, among which CAN1 uses a shielded twisted pair, and the shielding layer is grounded at one end; DRB1_P4 end PIN1 to PIN14 are led to the corresponding PIN pins of the CAN / CANFD / LIN interface of VN1640A_1-2, and the connection and disconnection of P3 and P4 can be realized by launching program control instructions; DRB_P5 end is connected to ENV, VH6501, programmable multimeter, programmable oscilloscope and other test equipment to realize the terminal resistance configuration, bus fault injection, voltage and waveform parameter measurement functions of the tested channel.

[0072] IO simulation and acquisition loop block diagram as follows Fig.13 As shown, the ECU end of the VT2516A board is externally connected to the front panel interface of the test cabinet for simulating the digital IO wake-up source of the ECU, and the other resource interfaces of the board are connected to the CONN of the rear panel interface of the test cabinet; the ECU end of the VT2004A board is externally connected to the front panel interface of the test cabinet for simulating the wake-up source of the ECU, and the other resource interfaces of the board are connected to the CONN of the rear panel interface of the test cabinet.

[0073] In one embodiment, another electronic control unit test method is provided, which includes the following contents: a set of test systems with test cabinets, network test benches, and test connection harnesses as the core; using an external display and a Bluetooth keyboard and mouse as the interactive interface, using the test configuration cloud in the industrial computer to enable test items and test cases, the test configuration client calls CANOE to execute the test case script of the specific test items written by CAPL, and displays the test results in real time and outputs a set of test methods for test reports. This test system and method can carry out targeted system function tests, CAN / CANFD component communication tests, Bootloader flash tests, direct network management tests, gateway routing tests, and LIN master / slave node and other automated comprehensive tests for N electronic control units to be tested, and can cover the physical layer test, data link layer test, interaction layer test, transmission protocol test, network fault tolerance test, and network communication related diagnostic tests of the vehicle network, and can also display the test results in real time and output the test report, which is convenient for R&D personnel to analyze and rectify and verify, greatly reducing the workload and test cost in the test development and verification stage, and improving the accuracy and reliability of test verification.

[0074] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0075] Based on the same inventive concept, the embodiment of the present application also provides an electric control unit test device for implementing the electric control unit test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the electric control unit test device provided below can refer to the limitations of the electric control unit test method above, and will not be repeated here.

[0076] In an exemplary embodiment, Fig.14 As shown, an electric control unit testing device 1400 is provided, comprising: a first acquisition module 1401, a second acquisition module 1402 and a determination module 1403, wherein:

[0077] The first acquisition module 1401 is used to acquire a test request initiated by a user on an industrial computer of a test system.

[0078] The second acquisition module 1402 is used to acquire a test configuration file, a test item, and a test case based on the test request.

[0079] The determination module 1403 is used to determine the electronic control unit under test based on the test items, and test the electronic control unit under test based on the test configuration file, the test items and the test case.

[0080] In some embodiments, the determination module 1403 is also used to obtain the digital switch input signal and the pulse width modulation signal of the electronic control unit under test; based on the digital switch input signal and the pulse width modulation signal, obtain the output signal of the electronic control unit under test; based on the test configuration file, the test items and the test cases, detect the voltage and frequency of the output signal.

[0081] In some embodiments, the determination module 1403 is also used to obtain the tested channel corresponding to the tested electronic control unit; based on the test configuration file, the test items and the test cases, the terminal resistance configuration, bus fault injection voltage and waveform parameters of the tested channel are detected.

[0082] In some embodiments, the electronic control unit testing device 1400 is specifically used to test a system including a test cabinet, a network test bench, an external display and the electronic control unit to be tested, wherein the test cabinet includes a protocol data unit, a programmable oscilloscope, a cabinet front panel interface, a network node test box, a VT board chassis, a programmable multimeter, a programmable ground drift power supply, a programmable power supply and the industrial computer.

[0083] In some embodiments, the electric control unit testing device 1400 is also used to electrically connect the test cabinet and the network test bench, and the industrial computer and the external display through connecting cables. The network test bench is provided with a plurality of connection positions for connecting the electric control unit to be tested. The test cabinet is connected to the electric control unit to be tested connected to the network test bench through the cabinet front panel interface. Each connection position is equipped with a power port, at least one communication port, and an IO control port.

[0084] In some embodiments, the electronic control unit testing device 1400 is also used to form a local area network through a switch between an industrial computer, the programmable power supply, the programmable oscilloscope, the programmable multimeter, the programmable ground drift power supply and the Ethernet to CAN module, and the Ethernet to CAN module is used to convert the received host computer instructions into CAN messages.

[0085] Each module in the above-mentioned electric control unit test device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0086] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.15 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an electric control unit testing method is implemented.

[0087] Those skilled in the art will understand that Fig.15The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0088] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a test request initiated by a user on an industrial computer of a test system; obtaining a test configuration file, a test item, and a test case based on the test request; determining an electronic control unit under test based on the test item, and testing the electronic control unit under test based on the test configuration file, the test item, and the test case.

[0089] In one embodiment, the processor executes a computer program to test the electronic control unit under test based on the test configuration file, the test items and the test case, including: obtaining a digital switch input signal and a pulse width modulation signal of the electronic control unit under test; obtaining an output signal of the electronic control unit under test based on the digital switch input signal and the pulse width modulation signal; and detecting a voltage and a frequency of the output signal based on the test configuration file, the test items and the test case.

[0090] In one embodiment, the processor executes a computer program to test the electronic control unit under test based on the test configuration file, the test items and the test case, including: obtaining a tested channel corresponding to the electronic control unit under test; based on the test configuration file, the test items and the test case, detecting the terminal resistance configuration, bus fault injection voltage and waveform parameters of the tested channel.

[0091] In one embodiment, the test system implemented when the processor executes the computer program includes a test cabinet, a network test bench, an external display and the electronic control unit to be tested, and the test cabinet includes a protocol data unit, a programmable oscilloscope, a cabinet front panel interface, a network node test box, a VT board chassis, a programmable multimeter, a programmable ground drift power supply, a programmable power supply and the industrial computer.

[0092] In one embodiment, the test cabinet implemented when the processor executes the computer program and the network test bench, as well as the industrial computer and the external display are electrically connected through connecting cables, and a plurality of connection positions for connecting the electronic control unit to be tested are reserved on the network test bench. The test cabinet is connected to the electronic control unit to be tested connected to the network test bench through the cabinet front panel interface, and each connection position is equipped with a power port, at least one communication port, and an IO control port.

[0093] In one embodiment, the industrial computer implemented when the processor executes the computer program, the programmable power supply, the programmable oscilloscope, the programmable multimeter, the programmable ground drift power supply and the Ethernet to CAN module form a local area network through a switch, and the Ethernet to CAN module is used to convert the received host computer instructions into CAN messages.

[0094] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a test request initiated by a user on an industrial computer of a test system; obtaining a test configuration file, a test item, and a test case based on the test request; determining an electronic control unit under test based on the test item, and testing the electronic control unit under test based on the test configuration file, the test item, and the test case.

[0095] In one embodiment, the computer program implemented when executed by the processor tests the electronic control unit under test based on the test configuration file, the test items and the test cases, including: obtaining a digital switch input signal and a pulse width modulation signal of the electronic control unit under test; obtaining an output signal of the electronic control unit under test based on the digital switch input signal and the pulse width modulation signal; and detecting a voltage and a frequency of the output signal based on the test configuration file, the test items and the test cases.

[0096] In one embodiment, the computer program implemented when executed by the processor tests the electronic control unit under test based on the test configuration file, the test items and the test cases, including: obtaining the tested channel corresponding to the electronic control unit under test; based on the test configuration file, the test items and the test cases, detecting the terminal resistance configuration, bus fault injection voltage and waveform parameters of the tested channel.

[0097] In one embodiment, the test system implemented when the computer program is executed by the processor includes a test cabinet, a network test bench, an external display and the electronic control unit to be tested, and the test cabinet includes a protocol data unit, a programmable oscilloscope, a cabinet front panel interface, a network node test box, a VT board chassis, a programmable multimeter, a programmable ground drift power supply, a programmable power supply and the industrial computer.

[0098] In one embodiment, the test cabinet implemented when the computer program is executed by the processor and the network test bench, as well as the industrial computer and the external display are electrically connected through connecting cables, and a plurality of connection positions for connecting the electronic control unit to be tested are reserved on the network test bench. The test cabinet is connected to the electronic control unit to be tested connected to the network test bench through the cabinet front panel interface, and each connection position is equipped with a power port, at least one communication port, and an IO control port.

[0099] In one embodiment, when the computer program is executed by the processor, the industrial computer, the programmable power supply, the programmable oscilloscope, the programmable multimeter, the programmable ground drift power supply and the Ethernet to CAN module form a local area network through a switch, and the Ethernet to CAN module is used to convert the received host computer instructions into CAN messages.

[0100] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the following steps: obtaining a test request initiated by a user on an industrial computer of a test system; obtaining a test configuration file, a test item, and a test case based on the test request; determining an electronic control unit under test based on the test item, and testing the electronic control unit under test based on the test configuration file, the test item, and the test case.

[0101] In one embodiment, the computer program implemented when executed by the processor tests the electronic control unit under test based on the test configuration file, the test items and the test cases, including: obtaining a digital switch input signal and a pulse width modulation signal of the electronic control unit under test; obtaining an output signal of the electronic control unit under test based on the digital switch input signal and the pulse width modulation signal; and detecting a voltage and a frequency of the output signal based on the test configuration file, the test items and the test cases.

[0102] In one embodiment, the computer program implemented when executed by the processor tests the electronic control unit under test based on the test configuration file, the test items and the test cases, including: obtaining the tested channel corresponding to the electronic control unit under test; based on the test configuration file, the test items and the test cases, detecting the terminal resistance configuration, bus fault injection voltage and waveform parameters of the tested channel.

[0103] In one embodiment, the test system implemented when the computer program is executed by the processor includes a test cabinet, a network test bench, an external display and the electronic control unit to be tested, and the test cabinet includes a protocol data unit, a programmable oscilloscope, a cabinet front panel interface, a network node test box, a VT board chassis, a programmable multimeter, a programmable ground drift power supply, a programmable power supply and the industrial computer.

[0104] In one embodiment, the test cabinet implemented when the computer program is executed by the processor and the network test bench, as well as the industrial computer and the external display are electrically connected through connecting cables, and a plurality of connection positions for connecting the electronic control unit to be tested are reserved on the network test bench. The test cabinet is connected to the electronic control unit to be tested connected to the network test bench through the cabinet front panel interface, and each connection position is equipped with a power port, at least one communication port, and an IO control port.

[0105] In one embodiment, when the computer program is executed by the processor, the industrial computer, the programmable power supply, the programmable oscilloscope, the programmable multimeter, the programmable ground drift power supply and the Ethernet to CAN module form a local area network through a switch, and the Ethernet to CAN module is used to convert the received host computer instructions into CAN messages.

[0106] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0107] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0108] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0109] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for testing an electric control unit, characterized in that: The method comprises: Obtain the test request initiated by the user on the industrial computer of the test system; Acquire a test configuration file, a test item, and a test case based on the test request; An electronic control unit under test is determined based on the test items, and the electronic control unit under test is tested based on the test configuration file, the test items and the test case.

2. The method according to claim 1, characterized in that: The testing of the electronic control unit under test based on the test configuration file, the test items and the test case includes: Obtaining a digital switch input signal and a pulse width modulation signal of the electronic control unit under test; Based on the digital switch input signal and the pulse width modulation signal, obtaining the output signal of the electronic control unit under test; Based on the test configuration file, the test items and the test cases, the voltage and frequency of the output signal are detected.

3. The method according to claim 1, characterized in that The testing of the electronic control unit under test based on the test configuration file, the test items and the test case includes: Obtaining a tested channel corresponding to the tested electronic control unit; Based on the test configuration file, the test items and the test cases, the terminal resistance configuration, the bus fault injection voltage and the waveform parameters of the tested channel are detected.

4. The method according to claim 1, characterized in that: The test system comprises a test cabinet, a network test bench, an external display and the electronic control unit to be tested. The test cabinet comprises a protocol data unit, a programmable oscilloscope, a cabinet front panel interface, a network node test box, a VT board chassis, a programmable multimeter, a programmable ground drift power supply, a programmable power supply and the industrial computer.

5. The method according to claim 4, characterized in that The test cabinet and the network test bench, as well as the industrial computer and the external display are electrically connected via connecting cables. The network test bench is provided with a plurality of connection positions for connecting the electronic control unit to be tested. The test cabinet is connected to the electronic control unit to be tested connected to the network test bench via the cabinet front panel interface. Each connection position is equipped with a power port, at least one communication port, and an IO control port.

6. The method according to claim 4, characterized in that The industrial computer, the programmable power supply, the programmable oscilloscope, the programmable multimeter, the programmable ground drift power supply and the Ethernet to CAN module form a local area network through a switch, and the Ethernet to CAN module is used to convert the received host computer instructions into CAN messages.

7. An electronic control unit testing device, characterized in that: The device comprises: A first acquisition module is used to acquire a test request initiated by a user on an industrial computer of a test system; A second acquisition module, used to acquire a test configuration file, a test item, and a test case based on the test request; A determination module is used to determine the electronic control unit under test based on the test items, and to test the electronic control unit under test based on the test configuration file, the test items and the test case.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.