Test system and test method of vehicle controller and vehicle

By using the test system of the vehicle controller in the test of the controller to be tested in the new energy vehicle vehicle, the problems of high testing costs and low testing efficiency in the existing technology are solved, convenient and efficient functional testing is achieved, and costs are reduced.

CN119512054APending Publication Date: 2025-02-25CHINA FAW CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411677130.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing technology requires a lot of manpower and material resources in the functional verification and testing of the controller to be tested in the new energy vehicle complete vehicle, with high testing cost and low testing efficiency, and large-scale simulation equipment is large in size, long construction cycle and low applicability.

Method used

It provides a test system for a vehicle controller, including a host computer, a bus device and a functional test device. It is connected via USB or industrial Ethernet. The functional test device can generate functional analog test signals based on the control test signals sent by the host computer, and transmit them to the controller to be tested to realize functional testing.

Benefits of technology

It improves the convenience and testing efficiency of the functional test of the vehicle controller to be tested, reduces the testing cost, and the test system has a simple structure, small size, short construction period and low debugging cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512054A_ABST
    Figure CN119512054A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle testing, and discloses a test system and test method of a vehicle controller and a vehicle, and the test system of the vehicle controller comprises an upper computer which is used for sending a control test signal; the bus equipment is connected with the upper computer through a USB (Universal Serial Bus) or an industrial Ethernet; the input end of the function test device is connected with the upper computer through the bus device so as to generate a corresponding function simulation test signal according to a control test signal sent by the upper computer, and the output end of the function test device is connected with the controller to be tested so as to transmit the function simulation test signal to the controller to be tested. And the function test of the to-be-tested controller is realized. According to the invention, the convenience and efficiency of function testing of the to-be-tested controller of the vehicle are improved, and the testing cost is reduced at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle testing technology, and in particular to a vehicle controller testing system, a testing method and a vehicle. Background Art

[0002] At present, in the process of functional verification and testing of the whole vehicle controller to be tested in new energy vehicles, a bench system combining a motor controller, a test motor, a test motor, a power battery and a battery management system is often used to perform functional verification and testing on the whole vehicle controller. However, this method is equivalent to moving the prototype vehicle to the laboratory to perform functional verification and testing on the whole vehicle controller to be tested, which requires a lot of manpower and material resources, and the detection cost is high and the test efficiency is low. In the related art, the electronic and electrical function test of the whole vehicle controller to be tested is performed by building a large cabinet simulation device and a medium-sized desktop simulation device. However, the large cabinet simulation device and the medium-sized desktop simulation device are large in size and have a long construction cycle, which makes the detection convenience low and the test efficiency low. In addition, the debugging cost of the large cabinet simulation device and the medium-sized desktop simulation device is high, and it is not suitable for the whole vehicle controller to be tested with simple test functions, few input signals, and short test cycles, which makes the applicability of the large cabinet simulation device and the medium-sized desktop simulation device low. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application embodiment provides a vehicle controller test system, test method and vehicle, which is conducive to improving the convenience and test efficiency of the function test of the vehicle controller to be tested, while reducing the test cost.

[0004] In a first aspect, an embodiment of the present application provides a vehicle controller testing system, comprising: Host computer, used to send control test signals; A bus device is connected to the host computer via USB or industrial Ethernet; A functional testing device, wherein the input end of the functional testing device is connected to the host computer through the bus device to generate a corresponding functional simulation test signal according to the control test signal sent by the host computer, and the output end of the functional testing device is connected to the controller to be tested to transmit the functional simulation test signal to the controller to be tested, thereby realizing a functional test on the controller to be tested.

[0005] According to some embodiments of the present application, the functional testing equipment includes a power supply switching and current acquisition module, a CAN communication line fault injection module, a LIN communication line fault injection module, an ETH communication line fault injection module and an IO simulation module.

[0006] According to some embodiments of the present application, the power supply switching and current acquisition module includes a first control CAN input port, a KL30 output port, a KL15 output port, a first control circuit and a first relay; the first control CAN input port is connected to the first control circuit, and the first relay is controllably connected to the KL30 output port or the KL15 output port. The first control circuit is used to control the first relay to be connected to the KL30 output port or the KL15 output port according to the first control test signal received by the first control CAN input port, so that the KL30 output port outputs a first power supply simulation test signal or the KL15 output port outputs a second power supply simulation test signal, thereby realizing the simulation of the power input of the controller to be tested.

[0007] According to some embodiments of the present application, the CAN communication line fault injection module includes a second control CAN input port, a communication CAN_H port, a communication CAN_L port, a first control circuit, a second relay, a first CAN output port and a second CAN output port, the second control CAN input port is connected to the second control circuit, the first end of the second relay is respectively connected to the communication CAN_H port and the communication CAN_L port, the second end of the second relay is controllably connected to the first CAN output port, the second CAN output port, or is in a disconnected state, the second control circuit is used to control the second relay to be connected to the communication CAN_H port, the communication CAN_L port, or be in a disconnected state according to the second control test signal received by the second control CAN input port, so as to realize the simulation of normal and fault conditions of the CAN communication input of the controller to be tested.

[0008] According to some embodiments of the present application, the LIN communication line fault injection module includes a third control CAN input port, a communication LIN input port, a communication LIN output port, a third relay and a third control circuit, the third control CAN input port is connected to the third control circuit, the first end of the third relay is connected to the communication LIN input port, the second end of the third relay is controlled to be connected to the communication LIN output port, or is in a disconnected state, and the third control circuit is used to control the third relay to be connected to the communication LIN output port or to be in a disconnected state according to a third control test signal received by the third control CAN input port, so as to realize the simulation of normal and fault conditions of the LIN communication input of the controller to be tested.

[0009] According to some embodiments of the present application, the ETH communication line fault injection module includes a fourth control CAN input port, a communication ETH input port, a communication ETH output port, a fourth relay and a fourth control circuit, the fourth control CAN input port is connected to the fourth control circuit, the first end of the fourth relay is connected to the communication ETH input port, the second end of the fourth relay is controlled to be connected to the communication ETH output port or is in a disconnected state, and the third control circuit is used to control the fourth relay to be connected to the communication ETH output port or to be in a disconnected state according to the fourth control test signal received by the fourth control CAN input port, so as to realize the simulation of normal and fault conditions of the ETH communication input of the controller to be tested.

[0010] According to some embodiments of the present application, the IO simulation module includes a fifth control CAN input port, an IO output circuit, an IO output port and a fifth control circuit. The fifth control CAN input port is connected to the fifth control circuit, the fifth control circuit is connected to the IO output circuit, the IO output circuit is connected to the IO output port, and the fifth control circuit is used to control the IO output circuit to output high and low levels of different states according to a fifth control test signal received by the fifth control CAN input port, thereby realizing the simulation of the IO input of the controller to be tested.

[0011] According to some embodiments of the present application, a power supply module is further included, which is connected to the functional testing device and is used to provide power support for the normal operation of each module in the functional testing device.

[0012] According to some embodiments of the present application, the host computer includes control software for configuring the bus device, and the control software controls the signal output of the CAN output channel, LIN output channel, and ETH output channel of the bus device to provide the controller under test with input signals that meet the test requirements, thereby realizing input signal simulation of the function under test of the controller under test.

[0013] According to some embodiments of the present application, the bus device has a CAN communication output function, and the CAN output port of the bus device is connected to the first control CAN input port of the power supply switching and current acquisition module, the second control CAN input port of the CAN communication line fault injection module, the third control CAN input port of the LIN communication line fault injection module, the fourth control CAN input port of the ETH communication line fault injection module and the fifth control CAN input port of the IO simulation module, so as to transmit the control test signal output by the host computer to the control CAN input port of each module of the functional test device through the CAN output port of the bus device.

[0014] In a second aspect, an embodiment of the present application provides a method for testing a vehicle controller, which is applied to the vehicle controller testing system described in the technical solution of the first aspect, and the method includes: In response to a control test signal sent by the host computer, the control test signal is transmitted to a bus device via USB or industrial Ethernet, so as to deliver the control test signal to a functional test device via the bus device; In response to the control test signal, the functional test device generates a corresponding functional simulation test signal according to the control test signal; The functional simulation test signal is transmitted to the controller to be tested to implement a functional test on the controller to be tested.

[0015] In a third aspect, an embodiment of the present application provides a vehicle, including a test system for a vehicle controller described in the technical solution of the first aspect.

[0016] In a fourth aspect, an embodiment of the present application provides a controller, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method described in the technical solution of the second aspect when running the computer program.

[0017] The vehicle controller test system, test method and vehicle provided by the embodiment of the present application include at least one of the following advantages or beneficial effects: the host computer is used to send a control test signal, the bus device is connected to the host computer via USB or industrial Ethernet, the bus device plays the role of a communication hub in the test system, the bus device and the host computer communicate with each other, because the input end of the functional test device is connected to the bus device, the bus device receives the control test signal sent by the host computer and sends it to the functional test device, the functional test device can generate a corresponding functional simulation test signal according to the control test signal sent by the host computer, and the functional simulation test signal is used to simulate various situations that the vehicle's controller to be tested may encounter in actual work, and realize the simulation of the input of different functions of the controller to be tested to verify the function and performance of the controller to be tested. The output end of the functional test device is connected to the controller to be tested, and the functional test device transmits the functional simulation test signal to the controller to be tested to realize the functional test of the controller to be tested. The present application does not need to move the sample vehicle to the laboratory to perform functional verification and testing on the whole vehicle controller to be tested, which reduces labor costs and testing costs, and improves the convenience and testing efficiency of the functional test of the vehicle's controller to be tested. In addition, the vehicle controller test system of the present application has a simple structure, a small size, and a short construction period, which reduces the debugging cost of the vehicle controller to be tested.

[0018] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a structural schematic diagram of a vehicle controller test system provided in an embodiment of the present application; Figure 2 is a structural schematic diagram of a vehicle controller test system provided by another embodiment of the present application; Figure 3 It is a structural schematic diagram of a power supply switching and current acquisition module provided in an embodiment of the present application; Figure 4 It is a structural schematic diagram of a CAN communication line fault injection module provided in an embodiment of the present application; Figure 5 It is a structural schematic diagram of a LIN communication line fault injection module provided in an embodiment of the present application; Figure 6 It is a structural diagram of an ETH communication line fault injection module provided in an embodiment of the present application; Figure 7 It is a structural diagram of an IO simulation module provided in an embodiment of the present application; Figure 8 is a flow chart of a vehicle controller testing method provided in an embodiment of the present application; Fig. 9 It is a structural schematic diagram of a controller provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] This section will describe in detail the specific embodiments of the present application. The preferred embodiments of the present application are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present application, but it cannot be understood as a limitation on the scope of protection of the present application.

[0021] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, "above", "below", "within", etc. are understood to include the number itself, "any one" means one or more, "at least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. If there is a description of the first and the second, it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0022] It should be noted that the terms such as setting, installing, and connecting in the embodiments of the present application should be interpreted in a broad sense, and the technical personnel in the relevant technical field can reasonably determine the specific meanings of the above terms in the embodiments of the present application in combination with the specific content of the technical solution. For example, the term "connection" can be a mechanical connection, an electrical connection, or mutual communication; it can be directly connected or indirectly connected through an intermediate medium.

[0023] It should be noted that the technical features involved in the various embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.

[0024] At present, in the process of functional verification and testing of the whole vehicle controller to be tested in new energy vehicles, a bench system combining a motor controller, a test motor, a test motor, a power battery and a battery management system is often used to perform functional verification and testing on the whole vehicle controller. However, this method is equivalent to moving the prototype vehicle to the laboratory to perform functional verification and testing on the whole vehicle controller to be tested, which requires a lot of manpower and material resources, and the detection cost is high and the test efficiency is low. In the related art, the electronic and electrical function test of the whole vehicle controller to be tested is performed by building a large cabinet simulation device and a medium-sized desktop simulation device. However, the large cabinet simulation device and the medium-sized desktop simulation device are large in size and have a long construction cycle, which makes the detection convenience low and the test efficiency low. In addition, the debugging cost of the large cabinet simulation device and the medium-sized desktop simulation device is high, and it is not suitable for the whole vehicle controller to be tested with simple test functions, few input signals, and short test cycles, which makes the applicability of the large cabinet simulation device and the medium-sized desktop simulation device low.

[0025] Based on this, the embodiments of the present application provide a vehicle controller testing system, a testing method and a vehicle, which are beneficial to improving the convenience and testing efficiency of the function testing of the vehicle's controller to be tested, while reducing the testing cost.

[0026] Please refer to the accompanying drawings for further explanation of the vehicle controller test system, test method and vehicle provided in the embodiments of the present application.

[0027] Reference Figure 1 As shown, Figure 1 It is a structural schematic diagram of a vehicle controller test system provided in an embodiment of the present application. The vehicle controller test system includes a host computer, a bus device and a functional test device. The host computer is used to send a control test signal. The bus device is connected to the host computer via USB or industrial Ethernet; the input end of the functional test device is connected to the host computer via the bus device to generate a corresponding functional simulation test signal according to the control test signal sent by the host computer, and the output end of the functional test device is connected to the controller to be tested to transmit the functional simulation test signal to the controller to be tested, thereby realizing a functional test of the controller to be tested.

[0028] In the test system of the vehicle controller, the host computer is the control center of the test system, which is responsible for sending control test signals. The host computer realizes test process management and test sequence editing through control software, and transmits and controls data with real-time processors and controllers to realize monitoring and control of the test process. The bus device is connected to the host computer through USB or industrial Ethernet. The bus device plays the role of a communication hub in the test system. The bus device and the host computer communicate with each other. Since the input end of the functional test device is connected to the bus device, the bus device receives the control test signal sent by the host computer and sends it to the functional test device. The functional test device generates a corresponding functional simulation test signal according to the control test signal sent by the host computer. The functional simulation test signal is used to simulate various situations that the controller to be tested of the vehicle may encounter in actual work, and realizes the simulation of the input of different functions of the controller to be tested to verify the function and performance of the controller to be tested. The output end of the functional test device is connected to the controller to be tested, and the functional test device transmits the functional simulation test signal to the controller to be tested to realize the functional test of the controller to be tested. The test system structure of the vehicle controller in this application is simple, small, short in construction cycle, and low in debugging cost, which can effectively improve the convenience of detection and test efficiency.

[0029] In the embodiment of the present application, when it is necessary to perform electronic and electrical functional testing on the controller to be tested, a control test signal is sent by the host computer, and the control test signal is transmitted to the functional testing device through the bus device. The functional testing device can generate a corresponding functional simulation test signal according to the control test signal and output it to the controller to be tested, thereby realizing functional testing of the controller to be tested. There is no need to move the prototype vehicle to the laboratory for functional verification and testing of the controller to be tested of the entire vehicle, which reduces labor costs and testing costs, and improves the convenience and testing efficiency of functional testing of the vehicle's controller to be tested.

[0030] Reference Figure 2 As shown, Figure 2It is a structural diagram of a vehicle controller test system provided by another embodiment of the present application, and the functional test equipment includes a power supply switching and current acquisition module, a CAN communication line fault injection module, a LIN communication line fault injection module, an ETH communication line fault injection module and an IO simulation module.

[0031] The power supply switching and current acquisition module is used to simulate the power input of the controller to be tested and can collect current data. The power supply switching and current acquisition module is connected to the host computer through the bus device and generates a corresponding power input simulation test signal according to the control test signal sent by the host computer.

[0032] The CAN communication line fault injection module is used to simulate various physical faults on the CAN bus, such as power short circuit, ground short circuit, bus short circuit, bus open circuit, etc. The CAN communication line fault injection module is remotely controlled through the CAN bus, supports the power control, ground control, bus communication control and current monitoring functions of the ECU in the system, and has a fault injection function.

[0033] The LIN communication line fault injection module is used to simulate various physical faults and fault simulations on the LIN bus to test the performance of the controller under various fault conditions.

[0034] The ETH communication line fault injection module supports fault injection on the Ethernet bus, including simulation of power short circuit, ground short circuit, PN short circuit, PN open circuit, etc. The ETH communication line fault injection module realizes the Ethernet fault injection function through CAN bus communication control, and supports ECU working voltage and current monitoring.

[0035] The IO simulation module is used to simulate various input / output signals to test the IO function of the controller under test. The IO simulation module can simulate various IO situations that the controller under test may encounter in actual work to ensure that the controller under test can work normally in various situations.

[0036] Functional test equipment includes multiple different functional detection modules, which can fully simulate and test the performance of the controller under various working conditions, including normal working conditions and various fault conditions. By setting up functional test equipment in the test system of the vehicle controller, it is possible to ensure the diversity and comprehensiveness of the test of the controller under test, improve the reliability and safety of the controller under test, and thus improve the quality and performance of the whole vehicle.

[0037] Reference Figure 3 As shown, Figure 3It is a structural schematic diagram of a power supply switching and current acquisition module provided in an embodiment of the present application. The power supply switching and current acquisition module includes a first control CAN input port, a KL30 output port, a KL15 output port, a first control circuit and a first relay; the first control CAN input port is connected to the first control circuit, and the first relay is controllably connected to the KL30 output port or the KL15 output port. The first control circuit is used to control the first relay to be connected to the KL30 output port or the KL15 output port according to the first control test signal received by the first control CAN input port, so that the KL30 output port outputs a first power supply simulation test signal or the KL15 output port outputs a second power supply simulation test signal, thereby realizing the simulation of the power input of the controller to be tested.

[0038] The first control CAN input port is used to receive the first control test signal sent by the host computer. The first control test signal is transmitted through the CAN bus, so that the power supply switching and current acquisition module perform corresponding operations; the KL30 output port refers to the normal power or battery power output port. The KL30 output port provides the working voltage required by the ECU, which is generally 11V to 15V; the KL15 output port is the ignition signal output port. The KL15 output port provides power when the car is started, which is used to simulate the power state when the vehicle is started. The first control CAN input port is connected to the first control circuit. The first control circuit is responsible for parsing the first control test signal received from the first control CAN input port and controlling the switching of the first relay according to the first control test signal. The first relay is an electrical switch. The first relay switches the states of the KL30 output port and the KL15 output port according to the instructions of the first control circuit, thereby simulating different power input conditions.

[0039] It can be understood that when the first control test signal received by the first control CAN input port is to control the KL30 output port to be disconnected, the first control circuit controls the first relay to be connected to the KL15 output port, so as to simulate the power input of the controller to be tested through the voltage output from the KL15 output port; when the first control test signal received by the first control CAN input port is to control the KL15 output port to be disconnected, the first control circuit controls the first relay to be connected to the KL30 output port, so as to simulate the power input of the controller to be tested through the voltage output from the KL30 output port. By controlling the first relay through the first control circuit, the power supply switching and current acquisition module can output the first power supply simulation test signal output by the KL30 output port or the second power supply simulation test signal output by the KL15 output port to simulate the behavior of the controller to be tested under different power supply states, such as normal power supply, startup, power off, etc., which is very important for testing the power management function and fault diagnosis of the controller. Engineers can comprehensively test and verify the performance and stability of the vehicle controller to be tested under various power supply conditions. By simulating different power supply states, the reliability and safety of the controller to be tested in practical applications can be ensured.

[0040] Reference Figure 4 As shown, Figure 4 It is a structural schematic diagram of a CAN communication line fault injection module provided in an embodiment of the present application. In some embodiments of the present application, the CAN communication line fault injection module includes a second control CAN input port, a communication CAN_H port, a communication CAN_L port, a first control circuit, a second relay, a first CAN output port and a second CAN output port. The second control CAN input port is connected to the second control circuit, and the first end of the second relay is respectively connected to the communication CAN_H port and the communication CAN_L port. The second end of the second relay is controlled to be connected to the first CAN output port, the second CAN output port, or is in a disconnected state. The second control circuit is used to control the second relay to be connected to the communication CAN_H port, the communication CAN_L port, or be in a disconnected state according to the second control test signal received by the second control CAN input port, so as to realize the simulation of normal and fault conditions of the CAN communication input of the controller to be tested.

[0041] The second control CAN input port is used to receive a second control test signal sent from the host computer, and the second control test signal is transmitted through the CAN bus, so that the CAN communication line fault injection module performs corresponding operations; the communication CAN_H port is a high-level signal line of the CAN bus, and the communication CAN_L port is a low-level signal line of the CAN bus. The communication CAN_H port and the communication CAN_L port are used to connect to the CAN interface of the controller to be tested; the second control circuit is responsible for parsing the second control test signal received from the second control CAN input port, and controlling the state of the second relay according to the second control test signal; the second relay is an electrical switch, the first end of the second relay is connected to the communication CAN_H port and the communication CAN_L port, and the second end of the second relay is controlled to be connected to the first CAN output port and the second CAN output port, or is in a disconnected state. The second relay controls the on-off state of the first CAN output port and the second CAN output port according to the instruction of the second control circuit, so that the circuit between the communication CAN_H port and the first CAN output port is connected through the second relay, or the circuit between the communication CAN_L port and the second CAN output port is connected through the second relay, or the second relay is in a disconnected state. The first CAN output port and the second CAN output port are used to output simulated CAN signals to the controller to be tested to simulate normal communication status or various fault conditions. The second control circuit controls the connection state of the second end of the second relay according to the received second control test signal. The CAN communication line fault injection module can simulate various fault conditions on the CAN bus, such as open circuit, short circuit, signal interference, etc., as well as normal communication status, thereby simulating normal and fault conditions of the CAN communication input of the controller to be tested.

[0042] It can be understood that when the second control test signal received by the second control CAN input port is the output of the control communication CAN_H port, the second control circuit controls the second end of the second relay to be connected to the first CAN output port, so as to realize the high-level signal output by the communication CAN_H port as the simulation of the CAN communication input of the controller to be tested; when the second control test signal received by the second control CAN input port is the output of the control communication CAN_L port, the second control circuit controls the second end of the second relay to be connected to the second CAN output port, so as to realize the low-level signal output by the communication CAN_L port as the simulation of the CAN communication input of the controller to be tested; when the second control test signal received by the second control CAN input port is to simulate the CAN communication input failure of the controller to be tested, the second control circuit controls the second end of the second relay to be in a disconnected state.

[0043] The CAN communication line fault injection module enables test engineers to fully test the response of the CAN communication interface of the controller under test under various preset fault conditions, including but not limited to network topology changes, signal integrity issues, power supply issues, etc. This is essential for verifying the robustness of the controller under test, fault detection and handling mechanisms, and the overall reliability of the vehicle controller test system. By simulating different failure modes, it can be ensured that the controller under test can respond correctly when encountering similar problems in actual operation, thereby improving the safety and reliability of the entire vehicle controller test system.

[0044] In some embodiments of the present application, a switch component is arranged between the positive power input port and the communication CAN_H port, a switch component is arranged between the positive power input port and the communication CAN_L port, a switch component is arranged between the negative power input port and the communication CAN_H port, a switch component is arranged between the negative power input port and the communication CAN_L port, and a switch component is also arranged between the communication CAN_H port and the communication CAN_L port. By controlling the above-mentioned switch components, short circuits between the communication CAN_H port, the communication CAN_L port and the power supply and ground are achieved, thereby realizing the simulation of normal and fault conditions of the CAN communication input of the controller to be tested.

[0045] Reference Figure 5 As shown, Figure 5 This is a structural schematic diagram of a LIN communication line fault injection module provided in an embodiment of the present application. The LIN communication line fault injection module includes a third control CAN input port, a communication LIN input port, a communication LIN output port, a third relay and a third control circuit. The third control CAN input port is connected to the third control circuit, the first end of the third relay is connected to the communication LIN input port, and the second end of the third relay is controlled to be connected to the communication LIN output port or is in a disconnected state. The third control circuit is used to control the third relay to be connected to the communication LIN output port or to be in a disconnected state according to a third control test signal received by the third control CAN input port, so as to realize the simulation of normal and fault conditions of the LIN communication input of the controller to be tested.

[0046] The third control CAN input port is used to receive a third control test signal sent from the upper computer. The third control test signal is transmitted through the CAN bus, so that the LIN communication line fault injection module performs corresponding operations; the communication LIN input port is used to connect the input line of the LIN network, and the communication LIN output port is used to connect the output line of the LIN network to simulate the physical connection of the LIN communication line; the third relay is an electrical switch, the first end of the third relay is connected to the communication LIN input port, and the second end of the third relay is controlled to be connected to the communication LIN output port, or is in a disconnected state; the third relay controls the connection state of the third relay according to the instruction of the third control circuit to simulate the normal or fault condition of the LIN communication line. The third control circuit is responsible for parsing the third control test signal received from the third control CAN input port, and controlling the connection state of the second end of the third relay according to the control test signal, such as controlling the third relay to be connected to the communication LIN output port or making the third relay in a disconnected state, so as to realize the simulation of normal and fault conditions of LIN communication input.

[0047] It can be understood that when the third control test signal received by the third control CAN input port is to control the output of the communication LIN output port, the third control circuit controls the third relay to connect the loop between the communication LIN input port and the communication LIN output port, so that the LIN communication line fault injection module is in a normal communication state; when the third control test signal received by the third control CAN input port is to control the LIN communication line fault injection module failure, the third control circuit controls the second end of the third relay to be in a disconnected state, so that the LIN communication line fault injection module is in a faulty state.

[0048] The LIN communication line fault injection module enables test engineers to comprehensively test the response of the LIN communication interface of the controller under test under various preset fault conditions, ensuring that the controller under test can respond correctly when encountering similar problems in actual operation, thereby improving the safety and reliability of the entire vehicle controller test system.

[0049] In some embodiments of the present application, a switch component is arranged between the positive power input port and the communication LIN input port, and a switch component is arranged between the negative power input port and the communication LIN input port. By controlling the above-mentioned switch component to realize the short circuit between the communication LIN input port and the power supply and ground, the normal and fault conditions of the communication LIN input of the controller to be tested can be simulated.

[0050] Reference Figure 6 As shown, Figure 6It is a structural schematic diagram of an ETH communication line fault injection module provided by an embodiment of the present application. The ETH communication line fault injection module includes a fourth control CAN input port, a communication ETH input port, a communication ETH output port, a fourth relay and a fourth control circuit. The fourth control CAN input port is connected to the fourth control circuit, the first end of the fourth relay is connected to the communication ETH input port, and the second end of the fourth relay is controlled to be connected to the communication ETH output port or is in a disconnected state. The third control circuit is used to control the fourth relay to be connected to the communication ETH output port or to be in a disconnected state according to a fourth control test signal received by the fourth control CAN input port, so as to realize the simulation of normal and fault conditions of the ETH communication input of the controller to be tested.

[0051] The fourth control CAN input port is used to receive the fourth control test signal sent from the upper computer. The fourth control test signal is transmitted through the CAN bus, so that the ETH communication line fault injection module performs corresponding operations; the communication ETH input port is connected to the input port of the Ethernet communication line, and the communication ETH output port is connected to the output port of the Ethernet communication line to simulate the physical connection of the Ethernet communication line. The fourth relay is an electrical switch. The first end of the fourth relay is connected to the communication ETH input port, and the second end of the fourth relay is controlled to be connected to the communication ETH output port, or the second end of the fourth relay is in a disconnected state. The fourth relay controls the state of the communication ETH output port according to the instruction of the fourth control circuit. The fourth control circuit is responsible for parsing the fourth control test signal received from the fourth control CAN input port, and controlling the connection state of the fourth relay according to the fourth control test signal to simulate the normal or faulty state of the ETH communication line.

[0052] It can be understood that when the fourth control test signal received by the fourth control CAN input port is the output of the control communication ETH output port, the fourth control circuit controls the fourth relay to connect the loop between the communication ETH input port and the communication ETH output port, thereby realizing the normal situation simulation of the ETH communication input of the controller to be tested; when the fourth control test signal received by the fourth control CAN input port is the output fault of the control ETH communication line fault injection module, the fourth control circuit controls the second end of the fourth relay to be in a disconnected state, thereby realizing the fault situation simulation of the ETH communication input of the controller to be tested.

[0053] The ETH communication line fault injection module enables test engineers to comprehensively test the response of the Ethernet communication interface of the controller under test under various preset fault conditions, ensuring that the controller under test can respond correctly when encountering similar problems in actual operation, thereby improving the safety and reliability of the entire vehicle controller test system.

[0054] In some embodiments of the present application, a switch component is arranged between the positive power input port and the communication ETH input port TX, a switch component is arranged between the positive power input port and the communication ETH input port RX, a switch component is arranged between the negative power input port and the communication ETH input port TX, a switch component is arranged between the negative power input port and the communication ETH input port RX, and a switch component is also arranged between the communication ETH input port TX and the communication ETH input port RX. By controlling the above-mentioned switch components, short circuits between the communication ETH input port TX, the communication ETH input port RX, and the communication ETH output port and the power supply and ground are realized, thereby realizing the simulation of normal and fault conditions of the ETH communication input of the controller to be tested.

[0055] Reference Figure 7 As shown, Figure 7 This is a structural schematic diagram of an IO simulation module provided in an embodiment of the present application. The IO simulation module includes a fifth control CAN input port, an IO output circuit, an IO output port and a fifth control circuit. The fifth control CAN input port is connected to the fifth control circuit, the fifth control circuit is connected to the IO output circuit, the IO output circuit is connected to the IO output port, and the fifth control circuit is used to control the IO output circuit to output high and low levels of different states according to the fifth control test signal received by the fifth control CAN input port, so as to realize the simulation of the IO input of the controller to be tested.

[0056] The fifth control CAN input port is used to receive the fourth control test signal sent from the host computer. The fifth control test signal is transmitted through the CAN bus, so that the IO simulation module performs corresponding operations; the IO output circuit is responsible for generating a corresponding output signal according to the fifth control test signal to simulate the IO behavior of the controller to be tested in actual work; the fifth control circuit is responsible for parsing the fifth control test signal received from the fifth control CAN input port, and controlling the IO output circuit to output a specific high level or low level according to the fifth control test signal; the IO output port is connected to the controller to be tested, and is used to transmit high and low level analog signals of different states generated by the IO output circuit to the controller to be tested, so as to realize the simulation of the IO input of the controller to be tested.

[0057] It can be understood that when the fifth control test signal received by the fifth control CAN input port is to control the IO simulation module to output a high level, the fifth control circuit controls the IO output circuit to output a high level signal; when the fifth control test signal received by the fifth control CAN input port is to control the IO simulation module to output a low level, the fifth control circuit controls the IO output circuit to output a low level signal. By simulating the output of level signals of different states by the IO simulation module, the test engineer can verify the reaction and processing capabilities of the controller under test under various input conditions, and ensure that the IO interface of the controller under test can correctly respond to external signals.

[0058] The IO simulation module enables test engineers to fully test the IO functions of the controller under test, including digital input, digital output, analog input, and analog output. The IO simulation module is essential for verifying the hardware design of the controller, software logic, and the overall performance of the vehicle controller test system. By simulating various IO signals, the reliability and stability of the controller under test in actual applications can be ensured.

[0059] Reference Figure 2 As shown, in some embodiments of the present application, the test system of the vehicle controller also includes a power module, which is connected to the functional test equipment, and the power module is used to provide power support for the normal operation of each module in the functional test equipment.

[0060] The power module in the vehicle controller test system is a crucial component. The power module ensures a stable power supply to the equipment and modules during the entire test process. The power module provides stable voltage and current to ensure that each module in the functional test equipment can work normally under various test conditions.

[0061] The power module in the embodiment of the present application includes the following features and functions: the power module has an overload protection function to prevent damage to the test equipment due to excessive current or voltage, thereby ensuring the safety of the test system for testing the vehicle controller; the power module also has a short-circuit protection function to prevent short circuits that may occur during the test; the power module supports remote control functions, allowing testers to control the on and off of the power module through the host computer; the power module can monitor the status of the output voltage and current, and feed this information back to the host computer so that testers can monitor the power conditions during the test; the power module supports programmable output, allowing testers to adjust the output voltage and current according to test requirements; the power module can adopt a redundant design to ensure that when the main power supply fails, the backup power supply can take over immediately to ensure the continuity of the test; the power module should provide an interface compatible with functional test equipment, such as a banana socket, XLR connector or other standard interface.

[0062] The design and selection of the power module needs to consider the overall requirements of the vehicle controller test system, including power requirements, voltage and current stability, protection functions, and monitoring capabilities. Selecting a suitable power module can improve the reliability and efficiency of the vehicle controller test system and ensure the smooth progress of the test process.

[0063] It should be noted that the power module in the embodiment of the present application is compatible with various modules in the functional testing equipment. According to the power requirements of the functional testing equipment, the power module can provide outputs of different voltages and currents to meet the needs of different test modules.

[0064] In some embodiments of the present application, the host computer includes control software for configuring the bus device, and the control software controls the signal output of the CAN output channel, LIN output channel, and ETH output channel of the bus device to provide the controller under test with input signals that meet the test requirements, thereby realizing input signal simulation of the function under test of the controller under test.

[0065] The host computer plays a core role in the vehicle controller test system. It interacts with the bus devices through the control software to achieve accurate testing of the controller under test. The control software of the host computer allows users to configure the parameters of the bus devices, including the settings of the CAN output channel, LIN output channel and ETH output channel, to ensure that they can work according to the test requirements. The control software provides interfaces and tools for controlling the signal output of bus devices, including message type, data content, transmission frequency, etc., to simulate communication signals in actual operation. According to test requirements, the control software can generate specific control test signals, which are sent to functional test equipment through bus devices. Functional test equipment generates corresponding functional simulation test signals according to control test signals, and outputs them to the controller to be tested, so as to realize functional testing of the controller to be tested and verify the functions and performance of the controller.

[0066] The control software can simulate various signals, including sensor signals, actuator feedback, network communication data, etc., to test the response of the controller under different working conditions. During the test, the host computer can monitor the sending and receiving status of the signal in real time, and adjust the signal parameters as needed to adapt to the dynamic changes of the test. The host computer records all signals and events during the test, which is convenient for post-analysis and fault diagnosis. The control software of the host computer provides an intuitive user interface, allowing testers to easily set test parameters, start and stop tests, and monitor test progress.

[0067] It should be noted that, in some embodiments of the present application, the control software of the host computer can be integrated with other test tools and equipment, such as simulators, data loggers, etc., to build a complete test environment.

[0068] Through the host computer and its control software, testers can accurately control the test process to ensure the accuracy and repeatability of the test, thereby improving test efficiency and quality. The host computer and its control software are crucial for the development and verification of complex vehicle controller test systems. They can uniformly manage and collect test data, improving the test portability and test efficiency of vehicle controller test methods.

[0069] In some embodiments of the present application, the bus device has a CAN communication output function, and the CAN output port of the bus device is connected to the first control CAN input port of the power supply switching and current acquisition module, the second control CAN input port of the CAN communication line fault injection module, the third control CAN input port of the LIN communication line fault injection module, the fourth control CAN input port of the ETH communication line fault injection module and the fifth control CAN input port of the IO simulation module, so as to transmit the control test signal output by the host computer to the control CAN input port of each module of the functional test device through the CAN output port of the bus device.

[0070] The bus device serves as the communication hub between the host computer and the functional test equipment. The bus device has CAN communication capabilities and can send and receive signals through its CAN output port. The bus device is responsible for distributing the control test signals sent by the host computer to the control CAN input ports of each functional test device of the functional test equipment. The first control CAN input port of the power supply switching and current acquisition module receives a signal from the CAN output port of the bus device, and controls the power supply switching and current acquisition according to the first control test signal received by the first control CAN input port; the second control CAN input port of the CAN communication line fault injection module receives a signal from the CAN output port of the bus device, and simulates the fault condition of the CAN communication line according to the second control test signal received by the second control CAN input port; the third control CAN input port of the LIN communication line fault injection module receives a signal from the CAN output port of the bus device, and simulates the fault condition of the LIN communication line according to the third control test signal received by the third control CAN input port; the fourth control CAN input port of the ETH communication line fault injection module receives a signal from the CAN output port of the bus device, and simulates the fault condition of the ETH communication line according to the fourth control test signal received by the fourth control CAN input port; the fifth control CAN input port of the IO simulation module receives a signal from the CAN output port of the bus device, and simulates the IO signal according to the fifth control test signal received by the fifth control CAN input port. The control test signal output by the host computer is transmitted to the control CAN input port of each functional test device through the CAN output port of the bus device to realize the control of each module.

[0071] The test system of the vehicle controller is connected through the CAN bus to form an integrated test environment, allowing the host computer to uniformly control and monitor all modules. In this way, the host computer can simulate various test signals, including power signals, communication signals, IO signals, etc., to verify the behavior of the controller under test under different conditions, and can also simulate various communication line faults, including CAN, LIN, ETH, etc., to test the fault detection and handling capabilities of the controller under test.

[0072] This integrated vehicle controller test system provides a comprehensive test platform for the vehicle controller under test, which can simulate complex working environments and ensure that the controller under test can work reliably under various normal and abnormal conditions. In this way, the test efficiency and quality of the vehicle controller under test can be improved, the development cost and risk can be reduced, and the simulation equipment can be small in size and the construction cycle can be short, thereby improving the convenience and test efficiency of the function detection of the vehicle controller under test.

[0073] Reference Figure 8 As shown, Figure 8 is a flow chart of a vehicle controller testing method provided in an embodiment of the present application. The vehicle controller testing method includes but is not limited to steps S100 to S300. Specifically, Step S100: in response to a control test signal sent by the host computer, the control test signal is transmitted to the bus device via USB or industrial Ethernet, so as to transmit the control test signal to the functional test device via the bus device; Step S200: In response to the control test signal, the functional test device generates a corresponding functional simulation test signal according to the control test signal; Step S300: transmitting a functional simulation test signal to the controller to be tested to implement a functional test on the controller to be tested.

[0074] In some embodiments of the present application, a vehicle controller testing method includes: when it is necessary to perform an electronic and electrical function test on the vehicle controller to be tested, a control test signal is sent, and in response to the control test signal sent by the host computer, the control test signal is transmitted to the bus device via USB or industrial Ethernet, the bus device plays the role of a communication hub in the test system, the bus device and the host computer communicate with each other to transmit the control test signal to the functional testing device through the bus device, the functional testing device receives the control test signal, and generates a corresponding functional simulation test signal according to the control test signal sent by the host computer, the functional simulation test signal is used to simulate various situations that the vehicle's controller to be tested may encounter in actual work, and realize the simulation of the input of different functions of the controller to be tested to verify the function and performance of the controller to be tested; the functional simulation test signal is transmitted to the controller to be tested to realize the functional test of the controller to be tested.

[0075] The present application sends a control test signal through the host computer, and the functional test equipment generates a corresponding functional simulation test signal according to the control test signal and sends it to the controller to be tested, so as to realize the functional test of the controller to be tested. There is no need to move the prototype vehicle to the laboratory to perform functional verification and testing on the whole vehicle controller to be tested, which reduces the labor cost and testing cost, and improves the convenience and test efficiency of the functional test of the vehicle controller to be tested. In addition, the test system structure of the vehicle controller of the present application is simple, small in size, and has a short construction period, which makes the debugging cost of the whole vehicle controller to be tested low.

[0076] An embodiment of the present application also provides a vehicle, including a test system for the vehicle controller described in the above embodiment.

[0077] Reference Fig. 9 , Fig. 9 It is a structural diagram of a controller 1000 provided in an embodiment of the present application, including a processor 1001, which can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the method provided in the embodiment of the present application; a memory 1002, which can be implemented in the form of a read-only memory 1002 (Read Only Memory, ROM), a static storage device, a dynamic storage device or a random access memory 1002 (Random Access Memory, RAM), etc. The memory 1002 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1002 and are called by the processor 1001 to execute the embodiments of this application; the input / output interface 1003 is used to implement information input and output; the communication interface 1004 is used to implement communication interaction between this device and other devices, and communication can be achieved through wired methods (such as USB, network cables, etc.) or wireless methods (such as mobile networks, WIFI, Bluetooth, etc.); a bus transmits information between various components of the device (such as the processor 1001, the memory 1002, the input / output interface 1003 and the communication interface 1004); wherein the processor 1001, the memory 1002, the input / output interface 1003 and the communication interface 1004 are connected to each other within the device through the bus.

[0078] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer-readable storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer-readable storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0079] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings.

Claims

1. A vehicle controller test system, characterized in that: include: Host computer, used to send control test signals; A bus device is connected to the host computer via USB or industrial Ethernet; A functional testing device, wherein the input end of the functional testing device is connected to the host computer through the bus device to generate a corresponding functional simulation test signal according to the control test signal sent by the host computer, and the output end of the functional testing device is connected to the controller to be tested to transmit the functional simulation test signal to the controller to be tested, thereby realizing a functional test on the controller to be tested.

2. The vehicle controller test system according to claim 1, characterized in that: The functional testing equipment includes a power supply switching and current acquisition module, a CAN communication line fault injection module, a LIN communication line fault injection module, an ETH communication line fault injection module and an IO simulation module.

3. The vehicle controller test system according to claim 2, characterized in that: The power supply switching and current acquisition module includes a first control CAN input port, a KL30 output port, a KL15 output port, a first control circuit and a first relay; the first control CAN input port is connected to the first control circuit, and the first relay is controllably connected to the KL30 output port or the KL15 output port. The first control circuit is used to control the first relay to be connected to the KL30 output port or the KL15 output port according to the first control test signal received by the first control CAN input port, so that the KL30 output port outputs a first power supply simulation test signal or the KL15 output port outputs a second power supply simulation test signal, thereby realizing the simulation of the power input of the controller to be tested.

4. The vehicle controller test system according to claim 2, characterized in that: The CAN communication line fault injection module includes a second control CAN input port, a communication CAN_H port, a communication CAN_L port, a first control circuit, a second relay, a first CAN output port and a second CAN output port. The second control CAN input port is connected to the second control circuit. The first end of the second relay is respectively connected to the communication CAN_H port and the communication CAN_L port. The second end of the second relay is controllably connected to the first CAN output port and the second CAN output port, or is in a disconnected state. The second control circuit is used to control the second relay to be connected to the communication CAN_H port and the communication CAN_L port, or to be in a disconnected state according to a second control test signal received by the second control CAN input port, so as to realize the simulation of normal and fault conditions of the CAN communication input of the controller to be tested.

5. The vehicle controller test system according to claim 2, characterized in that: The LIN communication line fault injection module includes a third control CAN input port, a communication LIN input port, a communication LIN output port, a third relay and a third control circuit. The third control CAN input port is connected to the third control circuit, a first end of the third relay is connected to the communication LIN input port, a second end of the third relay is controlled to be connected to the communication LIN output port, or is in a disconnected state, and the third control circuit is used to control the third relay to be connected to the communication LIN output port or to be in a disconnected state according to a third control test signal received by the third control CAN input port, so as to realize the simulation of normal and fault conditions of the LIN communication input of the controller to be tested.

6. The vehicle controller test system according to claim 2, characterized in that: The ETH communication line fault injection module includes a fourth control CAN input port, a communication ETH input port, a communication ETH output port, a fourth relay and a fourth control circuit, wherein the fourth control CAN input port is connected to the fourth control circuit, a first end of the fourth relay is connected to the communication ETH input port, a second end of the fourth relay is controlled to be connected to the communication ETH output port or to be in a disconnected state, and the third control circuit is used to control the fourth relay to be connected to the communication ETH output port or to be in a disconnected state according to a fourth control test signal received by the fourth control CAN input port, so as to realize the simulation of normal and fault conditions of the ETH communication input of the controller to be tested.

7. The vehicle controller test system according to claim 2, characterized in that: The IO simulation module includes a fifth control CAN input port, an IO output circuit, an IO output port and a fifth control circuit. The fifth control CAN input port is connected to the fifth control circuit, the fifth control circuit is connected to the IO output circuit, the IO output circuit is connected to the IO output port, and the fifth control circuit is used to control the IO output circuit to output high and low levels of different states according to a fifth control test signal received by the fifth control CAN input port, so as to realize the simulation of the IO input of the controller to be tested.

8. The vehicle controller test system according to claim 2, characterized in that: It also includes a power supply module, which is connected to the functional testing device and is used to provide power support to ensure normal operation of each module in the functional testing device.

9. The vehicle controller test system according to claim 2, characterized in that: The host computer includes control software for configuring the bus device, and the control software is used to control the signal output of the CAN output channel, LIN output channel, and ETH output channel of the bus device to provide the controller under test with an input signal that meets the test requirements, thereby realizing the input signal simulation of the function under test of the controller under test.

10. The vehicle controller test system according to claim 2, characterized in that: The bus device has a CAN communication output function, and the CAN output port of the bus device is connected to the first control CAN input port of the power supply switching and current acquisition module, the second control CAN input port of the CAN communication line fault injection module, the third control CAN input port of the LIN communication line fault injection module, the fourth control CAN input port of the ETH communication line fault injection module and the fifth control CAN input port of the IO simulation module, so as to transmit the control test signal output by the host computer to the control CAN input port of each module of the functional test device through the CAN output port of the bus device.

11. A method for testing a vehicle controller, characterized in that: A test system for a vehicle controller as claimed in any one of claims 1 to 10, wherein the method comprises: In response to a control test signal sent by the host computer, the control test signal is transmitted to a bus device via USB or industrial Ethernet, so as to deliver the control test signal to a functional test device via the bus device; In response to the control test signal, the functional test device generates a corresponding functional simulation test signal according to the control test signal; The functional simulation test signal is transmitted to the controller to be tested to implement a functional test on the controller to be tested.

12. A vehicle, characterized in that: A test system comprising a vehicle controller as claimed in any one of claims 1 to 10.

13. A controller, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method according to claim 11 when executing the computer program.

Citation Information

Cited By

  • ESC controller fault injection test system

    CN120802910A