A vehicle-mounted LED vehicle lamp fault injection automatic test system and method

CN122776777APending Publication Date: 2026-09-18SHANGHAI SEEYAO ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610700545.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-20
Publication Date
2026-09-18

AI Technical Summary

Technical Problem

[0003]目前的故障注入测试主要依赖通过测试人员手动拔插线束、短接端子等方式,人为制造LED车灯的开路、短路或通讯中断等故障,不仅效率低,而且难以实现自动化测试的精确时序控制

Benefits of technology

[0016] Beneficial effects: This invention provides a low-cost, easy-to-implement, automated controllable, and comprehensive fault coverage vehicle LED lamp fault injection test system and method, which is particularly suitable for the current automotive electronics development needs for efficient, accurate, and repeatable verification of ECU diagnostic functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122776777A_ABST
    Figure CN122776777A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of automobile electronic testing, and particularly relates to a vehicle-mounted LED car light fault injection automated testing system and method. The system comprises a CANoe simulation device, a fault injection device, a load, and a relay module. The CANoe simulation device is used to send fault injection control instructions and collect diagnostic messages and fault codes of the ECU to be tested according to test instructions. The fault injection device integrates a relay module and a short-circuit simulation circuit. The load comprises a vehicle-mounted LED car light and a matching lamp panel. The relay module is connected in series between the ECU to be tested and the load. The CANoe simulation device controls the on-off of the relay in the relay module and the switching of the short-circuit simulation circuit through CAN message instructions, thereby constructing real working conditions of LED car light open-circuit fault, LED car light short-circuit fault, and lamp panel communication loss fault. The present application is low in cost, easy to implement, automatically controllable, and comprehensive in fault coverage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive electronics testing technology, specifically to an automated testing system and method for injecting faults into automotive LED lights. Background Technology

[0002] As automotive electronic and electrical architectures become increasingly complex, the diagnostic requirements for on-board controllers (ECUs) are becoming more demanding. During the development phase, fault injection testing of the ECU is necessary to verify its ability to correctly detect and report faults in external loads (such as position lights).

[0003] Current fault injection testing mainly relies on testers manually disconnecting and reconnecting wiring harnesses and shorting terminals to artificially create faults such as open circuits, short circuits, or communication interruptions in LED vehicle lights. This method is not only inefficient but also makes it difficult to achieve precise timing control for automated testing. Some companies use dedicated fault injection equipment, which can achieve a certain degree of automation, but suffers from high costs, poor versatility, and complex integration. Summary of the Invention

[0004] To address the aforementioned problems, the present invention aims to provide an automated testing system for injecting faults into automotive LED lights.

[0005] Another objective of this invention is to provide an automated testing method for injecting faults into vehicle-mounted LED lights.

[0006] An automated testing system for fault injection in automotive LED lights includes: The CANoe simulation device is used to simulate the vehicle network environment according to test commands, send fault injection control commands, and collect diagnostic messages and fault codes of the ECU under test. The fault injection device integrates at least one set of relay modules and short-circuit simulation circuits. The control terminal of the fault injection device is connected to the CAN channel of the CANoe simulation device through a CAN communication interface. LED vehicle light stand, including: The ECU under test is used to drive the vehicle LED lights and monitor the electrical circuit status of the vehicle LED lights and the communication status of the matching light board in real time. The load includes the vehicle-mounted LED headlights and the matching light panel; The contacts of the relays in the relay module are connected in series to the electrical circuit and the communication bus circuit between the ECU under test and the load, respectively. The CANoe simulation device controls the switching on and off of the relays in the relay module and the switching on and off of the short-circuit simulation circuit through CAN message commands, thereby constructing realistic working conditions such as LED headlight open circuit fault, LED headlight short circuit fault, and headlight board communication loss fault.

[0007] The automated testing system for injecting faults into vehicle LED lights according to the present invention comprises a relay module in which the contacts of the relays are connected in series to the power supply circuit and the grounding circuit between the ECU under test and the vehicle LED light, as well as the communication bus circuit between the ECU under test and the matching light board.

[0008] The automated testing system for injecting faults into vehicle-mounted LED headlights according to the present invention includes, in which the relay module and short-circuit simulation circuit comprise: The first relay is connected in series to the power supply circuit or grounding circuit between the ECU under test and the vehicle LED headlight, and can controllably simulate the headlight open circuit fault. The second relay is connected in series with the short-circuit simulation circuit to the power supply circuit or grounding circuit of the vehicle LED headlight, and can controllably realize the simulation of short-circuit faults. The third relay is connected in series on the CAN / LIN communication bus between the ECU under test and the matching lamp board, and can controllably simulate lamp board communication loss faults.

[0009] The automated testing system for injecting faults into vehicle LED lights according to the present invention includes a CANoe simulation device connected to a host computer. The host computer generates and issues test commands, and receives and analyzes the fault status signals of the vehicle lights fed back by the CANoe simulation device.

[0010] The automated testing system for injecting faults into vehicle LED lights according to the present invention has a fault injection device that maintains various faults for a longer period of time than the de-jittering time required for the corresponding fault identification of the ECU under test.

[0011] An automated testing method for fault injection in automotive LED lights, implemented using the aforementioned automated testing system for fault injection in automotive LED lights, includes the following steps: Step S1: After building the vehicle-mounted LED headlight fault injection automated test system, configure the CANoe hardware interface, bus simulation environment, and fault injection control panel. In step S2, the CANoe simulation device controls all relays to be in the normal conducting state initially. The CANoe simulation device sends a normal headlight illumination command to the ECU under test to confirm that the vehicle LED headlights are working normally, the matching light board is communicating normally, and the ECU under test has no related fault codes output. Step S3: Under the normal illumination condition of the vehicle LED headlights, the CANoe simulation device performs fault injection according to the preset test cases. Step S4: After the ECU under test detects an electrical circuit abnormality or communication interruption, it records the corresponding diagnostic fault code and outputs a message containing the fault status through the CAN bus. Step S5: The CANoe simulation device monitors and records bus messages, fault codes and trigger times in real time, and automatically determines whether the diagnostic function of the ECU under test is effective according to the preset judgment criteria. Step S6: The CANoe simulation device controls the corresponding relays and analog circuits in the fault injection device to return to normal, clears the fault codes in the ECU under test, and verifies that the vehicle lights and communication functions have returned to normal.

[0012] The automated testing method for fault injection in vehicle-mounted LED lights according to the present invention, in step S3, fault injection is performed by automatically issuing one or more of the following control commands, including: The first relay is controlled to disconnect, cutting off the power supply or grounding circuit to the vehicle's LED lights to simulate an open-circuit fault in the LED lights; and / or, The control switches the second relay and the short-circuit simulation circuit to short-circuit the vehicle LED light circuit to ground or power supply to simulate a short-circuit fault in the LED light; and / or, The third relay is disconnected to cut off the communication link between the ECU under test and the lamp board, thus simulating a communication loss fault of the lamp board.

[0013] The automated testing method for injecting faults into vehicle LED lights described in this invention requires that the duration of each type of fault during fault injection should be greater than the de-jittering time required for fault identification of the ECU under test. The duration of the fault injection is set to 10 seconds.

[0014] The automated testing method for fault injection of vehicle LED headlights according to the present invention further includes, in step S3, sampling the ECU insulation temperature and headlight parameters under normal lighting conditions of the vehicle LED headlights as reference data.

[0015] The automated testing method for fault injection in vehicle LED lights described in this invention performs fault recovery and retesting in step S6, followed by cyclic testing, and finally determines the result and generates a report.

[0016] Beneficial effects: This invention provides a low-cost, easy-to-implement, automated controllable, and comprehensive fault coverage vehicle LED lamp fault injection test system and method, which is particularly suitable for the current automotive electronics development needs for efficient, accurate, and repeatable verification of ECU diagnostic functions. Attached Figure Description

[0017] Figure 1 This is a structural block diagram of an automated testing system for injecting faults into vehicle-mounted LED headlights according to the present invention; Figure 2 This is a flowchart of an automated testing method for injecting faults into vehicle-mounted LED headlights according to the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.

[0020] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the scope of the invention.

[0021] Reference Figure 1 An automated testing system for injecting faults into vehicle-mounted LED lights, comprising: CANoe simulation device 2 is used to simulate the vehicle network environment according to test instructions, send fault injection control instructions, and collect diagnostic messages and fault codes of the ECU under test; The fault injection device 3 integrates at least one set of relay modules and short-circuit simulation circuits. The control terminal of the fault injection device 3 is connected to the CAN channel of the CANoe simulation device 2 through a CAN communication interface. LED vehicle light stand 4 includes: The ECU under test is used to drive the vehicle LED lights and monitor the electrical circuit status of the vehicle LED lights and the communication status of the matching light board in real time. Load, including vehicle LED lights and matching light panels; In the relay module, the relay contacts are connected in series to the electrical circuit and the communication bus circuit between the ECU under test and the load, respectively. The CANoe simulation device 2 controls the on / off state of the relays in the relay module and the switching of the short-circuit simulation circuit through CAN message commands, thereby constructing realistic working conditions such as LED headlight open circuit fault, LED headlight short circuit fault, and headlight board communication loss fault.

[0022] This invention replaces expensive dedicated fault injection equipment with CANoe simulation equipment in conjunction with relay modules and short-circuit simulation circuits, reducing testing costs. By using CANoe's CAN message commands to control the relay on / off and the short-circuit simulation circuit switching, the fault injection is automated, eliminating the need for manual wiring harness unplugging or shorting terminals. It can accurately simulate three typical real-vehicle faults: LED headlight open circuit faults, LED headlight short circuit faults, and headlight board communication loss faults, comprehensively verifying the diagnostic capabilities of the ECU under test. It effectively avoids the risks of poor contact, terminal damage, and circuit burnout, and offers high testing efficiency and reproducibility.

[0023] The automated testing system for injecting faults into vehicle LED lights of the present invention has relay contacts in the relay module connected in series to the power supply circuit and grounding circuit between the ECU under test and the vehicle LED light, as well as the communication bus circuit between the ECU under test and the matching light board.

[0024] The automated fault injection testing system for automotive LED headlights of the present invention includes a relay module and a short-circuit simulation circuit, comprising: The first relay is connected in series to the power supply circuit or grounding circuit between the ECU under test and the vehicle LED headlights, which can controllably simulate an open circuit fault in the headlights. The second relay is connected in series with the short-circuit simulation circuit to the power supply circuit or grounding circuit of the vehicle LED headlight, which can controllably simulate short-circuit faults. The third relay is connected in series on the CAN / LIN communication bus between the ECU under test and the matching lamp board, which can controllably simulate the lamp board communication loss fault.

[0025] The fault injection device of this invention integrates a relay and a fault simulation circuit that support CAN communication control. Its CAN communication interface is connected to the CAN channel of CANoe. The relay and simulation circuit contacts are connected in series between the ECU under test and the LED headlight power supply circuit, ground wire and headlight board communication bus. The fault injection device is controlled by the CANoe bus to accurately simulate three typical real vehicle faults: LED open circuit, LED short circuit and headlight board communication loss. It comprehensively verifies the diagnostic capabilities of the ECU under test for multiple types of LED headlight faults, fault identification logic and CAN bus message feedback performance.

[0026] This invention, through the combined design of three relays, can accurately simulate three typical real-vehicle operating conditions: LED headlight open circuit fault, LED headlight short circuit fault, and headlight board communication loss fault, and comprehensively verify the diagnostic capabilities of the ECU under test for different types of faults.

[0027] The present invention relates to an automated testing system for injecting faults into automotive LED headlights. A CANoe simulation device 2 is connected to a host computer 1. The host computer 1 generates and issues test commands, and receives and analyzes headlight fault status signals fed back by the CANoe simulation device. The host computer 1 can be a PC, and the CANoe simulation device 2 connected to the host computer 1 constitutes a CANoe test platform. A fault injection device 3 is connected between the CANoe simulation device 2 and the load circuit of the ECU under test.

[0028] The automated test system for injecting faults into vehicle LED lights of the present invention runs a CAPL (Communication Access Programming Language) test script in the CANoe simulation device 2. It controls the on / off state of relays and the switching of short-circuit simulation circuits through CAN message commands to construct real working conditions of LED light open circuit fault, LED light short circuit fault and light board communication loss fault respectively. The test script defines the complete logic of fault injection, clearing and status verification.

[0029] Reference Figure 2 An automated testing method for fault injection in automotive LED lights, using an automated testing system for fault injection in automotive LED lights, includes the following steps: Step S1: After building the vehicle-mounted LED headlight fault injection automated test system, configure the CANoe hardware interface, bus simulation environment, and fault injection control panel. In step S2, the CANoe simulation device controls all relays to be in the normal conducting state initially. The CANoe simulation device sends a command to the ECU under test to ensure that the vehicle LED lights are working normally, the matching light board is communicating normally, and the ECU under test has no related fault codes output. Step S3: Under the normal illumination condition of the vehicle LED lights, the CANoe simulation device performs fault injection according to the preset test cases. Step S4: After the ECU under test detects an electrical circuit abnormality or communication interruption, it records the corresponding diagnostic fault code and outputs a message containing the fault status through the CAN bus. Step S5: The CANoe simulation device monitors and records bus messages, fault codes and trigger times in real time, and automatically determines whether the diagnostic function of the ECU under test is effective according to the preset judgment criteria. Step S6: The CANoe simulation equipment controls the corresponding relays and analog circuits in the fault injection device to return to normal, clears the fault codes in the ECU under test, and verifies that the headlights and communication functions have returned to normal.

[0030] This invention comprises a complete closed-loop process, including system setup, normal state verification, multi-type fault injection, fault diagnosis verification, signal acquisition and judgment, and fault recovery verification. It supports the preset and cyclic execution of test cases, facilitating regression verification and batch testing. It can accurately simulate typical faults, comprehensively verify the diagnostic capabilities of the ECU under test, effectively avoid the risks of poor contact, terminal damage, and circuit burnout, and has high testing efficiency and repeatability. It has the advantages of comprehensive fault coverage, simple operation, high testing efficiency, and automated execution and repeatability, and is suitable for verifying the fault functions of automotive LED headlight ECUs.

[0031] When setting up the environment for this invention, wiring, configuring CANoe scripts and diagnostic files are performed. Then, ECU messages and headlight parameters under normal operating conditions are collected as baseline data. Next, the script issues commands to automatically inject a simulated target fault. Response data is then collected, such as recording ECU fault codes and response times. The device is reset for fault recovery and retesting, and cyclic testing can be performed. Finally, the results are determined and a report is generated. This invention achieves low-cost, automated fault injection by combining relay circuits with CAPL scripts.

[0032] In the automated testing method for fault injection in automotive LED headlights of the present invention, step S3 involves fault injection by automatically issuing one or more of the following control commands: The first relay is controlled to disconnect, cutting off the power supply or grounding circuit to the vehicle's LED lights to simulate an open-circuit fault in the LED lights; and / or, The control switches the second relay and the short-circuit simulation circuit to short-circuit the vehicle LED light circuit to ground or power supply to simulate a short-circuit fault in the LED light; and / or, The third relay is disconnected to cut off the communication link between the ECU under test and the matching lamp board, thus simulating a communication loss fault of the lamp board.

[0033] The automated testing method for injecting faults into vehicle LED lights of the present invention ensures that the duration of each fault during fault injection is greater than the de-jittering time required for the corresponding fault identification of the ECU under test. This ensures that the fault holding time is greater than the de-jittering time of the ECU, achieving precise timing control and guaranteeing the accuracy and repeatability of the test results.

[0034] The automated testing method for fault injection of vehicle LED headlights of the present invention further includes, in step S3, sampling the ECU insulation and headlight parameters under normal lighting conditions of the vehicle LED headlights.

[0035] The method steps for a specific embodiment of CAPL test cases are as follows: Step 1, Initialization and Logging: Set the log file name and start logging; Step 2, Pre-execution check: Set the power supply voltage to the normal value (V_NorFlt) to control all relays to be in the normal conducting state, clear the diagnostic fault code (DTC) and wait for 1 second, then read the DTC once to check if there is a fault (judged by the CheckSts flag) to ensure that the ECU under test has no related fault code output.

[0036] Step 3, Fault Manufacturing Stage: If the pre-execution check passes (CheckSts=1), the power supply voltage is set to the high voltage fault value (V_HighFlt) to simulate an LED open / short circuit fault.

[0037] Record the current time t1, start the timer for cyclically reading DTC, and set the current fault type to HIGHVOLT. Start fault monitoring immediately after fault injection. A timeout waiting time of 10 seconds can be set so that the fault duration is greater than the fault identification and de-jittering time corresponding to the ECU under test. Wait a maximum of 10 seconds for the ECU to detect the fault and report the DTC.

[0038] If a DTC is detected during the waiting period (CurrentFlt=NOFLT), the fault response time (t2-t1) is calculated and compared with the expected time for verification. Based on the preset judgment criteria, the diagnostic function of the ECU under test is automatically determined to be effective.

[0039] If no DTC is detected within 10 seconds, the test step fails and the failure information is recorded.

[0040] Step 4, Fault Recovery Phase: The power supply voltage is restored to its normal value (V_NorFlt), and the corresponding relays and analog circuits in the fault injection device are restored to their normal state.

[0041] Record the current time t1 again, start the timer for cyclically reading DTC, and set the current fault type to HIGHVOLTRES.

[0042] Wait up to 10 seconds for the ECU to detect the fault recovery and clear the DTC.

[0043] If the DTC is detected to have been cleared (CurrentFlt == NOFLT) during the waiting period, the fault recovery response time is calculated and compared with the expected time for verification.

[0044] If no DTC clearing is detected within 10 seconds, the test step fails and the failure information is recorded.

[0045] Step 5, Cleanup and Termination: Cancel the timer for looping DTC reading, wait 2 seconds, clear DTC, stop logging, and output the test completion log.

[0046] The description and accompanying drawings provide typical embodiments of specific structures for specific implementations. Other modifications are possible based on the spirit of the invention. While the above-described invention presents preferred embodiments, these are not intended to be limiting.

[0047] For those skilled in the art, various changes and modifications will undoubtedly be apparent after reading the above description. Therefore, the appended claims should be construed as covering all changes and modifications that encompass the true intent and scope of the invention. Any and all equivalent scope and content within the scope of the claims should be considered to remain within the intent and scope of the invention.

Claims

1. An automated testing system for injecting faults into vehicle-mounted LED lights, characterized in that, include: The CANoe simulation device is used to simulate the vehicle network environment according to test commands, send fault injection control commands, and collect diagnostic messages and fault codes of the ECU under test. The fault injection device integrates at least one set of relay modules and short-circuit simulation circuits. The control terminal of the fault injection device is connected to the CAN channel of the CANoe simulation device through a CAN communication interface. LED vehicle light stand, including: The ECU under test is used to drive the vehicle LED lights and monitor the electrical circuit status of the vehicle LED lights and the communication status of the matching light board in real time. The load includes the vehicle-mounted LED headlights and the matching light panel; The contacts of the relays in the relay module are connected in series to the electrical circuit and the communication bus circuit between the ECU under test and the load, respectively. The CANoe simulation device controls the switching on and off of the relays in the relay module and the switching on and off of the short-circuit simulation circuit through CAN message commands, thereby constructing realistic working conditions such as LED headlight open circuit fault, LED headlight short circuit fault, and headlight board communication loss fault.

2. The automated testing system for injecting faults into vehicle-mounted LED headlights according to claim 1, characterized in that, The relay contacts in the relay module are connected in series to the power supply circuit and grounding circuit between the ECU under test and the vehicle LED headlight, as well as the communication bus circuit between the ECU under test and the matching headlight board.

3. The automated testing system for injecting faults into vehicle-mounted LED headlights according to claim 1, characterized in that, The relay module and short-circuit simulation circuit include: The first relay is connected in series to the power supply circuit or grounding circuit between the ECU under test and the vehicle LED headlight, and can controllably simulate the headlight open circuit fault. The second relay is connected in series with the short-circuit simulation circuit to the power supply circuit or grounding circuit of the vehicle LED headlight, and can controllably realize the simulation of short-circuit faults. The third relay is connected in series on the CAN / LIN communication bus between the ECU under test and the matching lamp board, and can controllably simulate lamp board communication loss faults.

4. The automated testing system for injecting faults into vehicle-mounted LED headlights according to claim 1, characterized in that, The CANoe simulation device is connected to a host computer, which generates and sends test commands, and receives and analyzes the vehicle headlight fault status signals fed back by the CANoe simulation device.

5. The automated testing system for injecting faults into vehicle-mounted LED headlights according to claim 1, characterized in that, When the fault injection device injects a fault, the duration of each type of fault is longer than the de-jittering time required for the corresponding fault identification of the ECU under test.

6. An automated testing method for injecting faults into vehicle-mounted LED lights, characterized in that, The automated testing system for injecting faults into vehicle LED lights, as described in any one of claims 1 to 5, includes the following steps: Step S1: After building the vehicle-mounted LED headlight fault injection automated test system, configure the CANoe hardware interface, bus simulation environment, and fault injection control panel. In step S2, the CANoe simulation device controls all relays to be in the normal conducting state initially. The CANoe simulation device sends a normal headlight illumination command to the ECU under test to confirm that the vehicle LED headlights are working normally, the matching light board is communicating normally, and the ECU under test has no related fault codes output. Step S3: Under the normal illumination condition of the vehicle LED headlights, the CANoe simulation device performs fault injection according to the preset test cases. Step S4: After the ECU under test detects an electrical circuit abnormality or communication interruption, it records the corresponding diagnostic fault code and outputs a message containing the fault status through the CAN bus. Step S5: The CANoe simulation device monitors and records bus messages, fault codes and trigger times in real time, and automatically determines whether the diagnostic function of the ECU under test is effective according to the preset judgment criteria. Step S6: The CANoe simulation device controls the corresponding relays and analog circuits in the fault injection device to return to normal, clears the fault codes in the ECU under test, and verifies that the vehicle lights and communication functions have returned to normal.

7. The automated test method for injecting faults into vehicle-mounted LED lights according to claim 6, characterized in that, In step S3, fault injection is performed by automatically issuing one or more of the following control commands: The first relay is controlled to disconnect, cutting off the power supply or grounding circuit to the vehicle's LED lights to simulate an open-circuit fault in the LED lights; and / or, The control switches the second relay and the short-circuit simulation circuit to short-circuit the vehicle LED light circuit to ground or power supply to simulate a short-circuit fault in the LED light; and / or, The third relay is disconnected to cut off the communication link between the ECU under test and the lamp board, thus simulating a communication loss fault of the lamp board.

8. The automated test method for injecting faults into vehicle-mounted LED lights according to claim 6, characterized in that, When performing fault injection, the duration of each fault should be longer than the de-jittering time required for fault identification of the ECU under test. The duration of the fault is set to 10 seconds.

9. The automated test method for injecting faults into vehicle-mounted LED lights according to claim 6, characterized in that, Step S3 also includes sampling the ECU insulation and headlight parameters under normal LED headlight illumination conditions as baseline data.

10. The automated test method for injecting faults into vehicle-mounted LED lights according to claim 6, characterized in that, After fault recovery and retesting in step S6, a cyclic test is performed to determine the final result and generate a report.