Fault injection device and method and fault simulation system

Through the fault injection device, the host computer and microcontroller are used to drive the fault injection circuit to simulate the fault of the automobile load, solving the problems of manual intervention of high-power load instability and potential safety hazards, and achieving efficient electrical fault code identification.

CN118534869APending Publication Date: 2024-08-23SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410353167.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In automotive electrical fault code testing, manual intervention of high-power loads can easily lead to instability, low efficiency, and potential safety hazards, making it difficult to effectively identify electrical fault codes.

Method used

A fault injection device is designed, including a host computer, a microcontroller and a fault injection circuit. Through communication between the host computer and the microcontroller, the fault injection circuit is driven to simulate the fault type of the target load, thereby realizing fault simulation of the vehicle body controller to be tested. Avoid direct manual contact with large currents.

Benefits of technology

It achieves safe and efficient fault simulation. Users do not need to be in direct contact with large currents. The fault injection circuit can be performed synchronously or asynchronously, supporting the injection of multiple fault types to ensure accurate identification of electrical fault codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534869A
    Figure CN118534869A
Patent Text Reader

Abstract

The invention relates to a fault injection device and method and a fault simulation system, and relates to the technical field of automobile controller testing. The device comprises an upper computer, a microcontroller and a plurality of fault injection circuits. Wherein the upper computer is connected with the microcontroller; each driving signal output end of the microcontroller is connected with the driving signal input end of each fault injection circuit. A load control signal input interface of each fault injection circuit is connected with the to-be-tested vehicle body controller, and a load control signal output interface of each fault injection circuit is connected with each load; and the upper computer sends a control instruction carrying the name of the target load and the target fault simulation type to the microcontroller, and the microcontroller analyzes the control instruction and controls the target fault injection circuit connected with the target load to realize fault simulation corresponding to the target fault simulation type. According to the invention, on the premise that a user is not in direct contact with a large current, electrical fault code identification of various fault types of different loads can be completed for the to-be-detected vehicle body controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automobile controller testing, and in particular to a fault injection device, method and fault simulation system. Background Art

[0002] At present, with the rapid development of electric vehicles, high requirements are placed on the electrification and intelligence of the vehicle system, integrating more and more sensors and loads. As one of the core controllers of the car, BCM (Body Control Module) is becoming increasingly important in the car. Some high-power loads, such as lights, air conditioners, and various actuator motors, are bound to have some unexpected failures during long-term use. Whether BCM can detect and identify electrical fault codes in a timely manner is particularly important.

[0003] During the electrical fault code test, the BCM can be connected to real sensors and loads. The specific test method is to manually intervene in the load to cause a fault. However, for some high-current load devices, manual intervention in the load is prone to instability, low efficiency, line damage, etc., and is also not conducive to the operator's life safety. Summary of the invention

[0004] Based on this, it is necessary to provide a fault injection device, method and fault simulation system to address the above technical problems.

[0005] In a first aspect, a fault injection device is provided, the device comprising a host computer, a microcontroller and several fault injection circuits; wherein:

[0006] The host computer is connected to the microcontroller;

[0007] Each drive signal output terminal of the microcontroller is respectively connected to the drive signal input terminal of each fault injection circuit;

[0008] The load control signal input interface of each of the fault injection circuits is connected to the vehicle body controller to be tested, and the load control signal output interface of each of the fault injection circuits is connected to each load respectively;

[0009] The host computer sends a control instruction carrying the name of the target load and the target fault simulation type to the microcontroller, and the microcontroller parses the control instruction and controls the target fault injection circuit connected to the target load to implement the fault simulation corresponding to the target fault simulation type.

[0010] As an optional implementation, the fault injection circuit includes a relay drive module and a fault simulation circuit; wherein,

[0011] The driving signal input end of the relay driving module is connected to the driving signal output end of the microcontroller;

[0012] The relay control signal output terminal of the relay driving module is connected to the relay control signal input terminal of the fault simulation circuit;

[0013] The load control signal output interface of the fault simulation circuit is connected to the load;

[0014] The load control signal input interface of the fault simulation circuit is connected to the vehicle body controller to be tested.

[0015] As an optional implementation, the fault simulation circuit includes a circuit break simulation subcircuit, a power short circuit simulation subcircuit, a ground short circuit simulation subcircuit and a signal common rail simulation subcircuit; wherein,

[0016] The first end of the disconnection simulation subcircuit is connected to the load control signal input interface, and the second end is connected to the load control signal output interface;

[0017] The relay control signal input end of the disconnection simulation subcircuit is connected to the first relay control signal output end of the relay driving module, and the relay driving module is used to control the disconnection simulation subcircuit to be disconnected to simulate the disconnection fault of the load;

[0018] A first end of the power short circuit simulation subcircuit is connected to the load control signal input interface, and a second end is connected to the power supply;

[0019] The relay control signal input end of the power short circuit simulation subcircuit is connected to the second relay control signal output end of the relay driving module, and the relay driving module is used to control the power short circuit simulation subcircuit to be connected to simulate the power short circuit fault of the load;

[0020] A first end of the short-to-ground simulation subcircuit is connected to the load control signal input interface, and a second end is grounded;

[0021] The relay control signal input terminal of the short-circuit-to-ground simulation subcircuit is connected to the third relay control signal output terminal of the relay driving module, and the relay driving module is used to control the short-circuit-to-ground simulation subcircuit to be connected to simulate the short-circuit-to-ground fault of the load;

[0022] The first end of the signal common rail simulation subcircuit is connected to the load control signal input interface, and the second end is connected to the common point;

[0023] The relay control signal input end of the signal-to-signal common-rail simulation subcircuit is connected to the fourth relay control signal output end of the relay driving module, and the relay driving module is used to control the signal-to-signal common-rail simulation subcircuit to be connected to simulate the signal-to-signal common-rail fault of the load.

[0024] As an optional implementation, the circuit breaker simulation subcircuit includes a first high current relay; wherein,

[0025] A first end of the contact of the first high current relay is connected to the load control signal input interface, and a second end is connected to the load control signal output interface;

[0026] A first end of the coil of the first high-current relay is connected to a power source, and a second end is connected to a first relay control signal output end of the relay driving module. The first high-current relay is a normally closed relay.

[0027] As an optional implementation, the power short circuit simulation subcircuit includes a second high current relay; wherein,

[0028] A first end of the contact of the second high current relay is connected to a power source, and a second end is connected to the load control signal input interface;

[0029] A first end of the coil of the second high current relay is connected to a power source, and a second end is connected to a second relay control signal output end of the relay driving module. The second high current relay is a normally open relay.

[0030] As an optional implementation, the short-circuit-to-ground simulation subcircuit includes a third high-current relay; wherein,

[0031] A first end of the contact of the third high current relay is grounded, and a second end is connected to the load control signal input interface;

[0032] The first end of the coil of the third high current relay is connected to the power supply, and the second end is connected to the third relay control signal output end of the relay driving module. The third high current relay is a normally open relay.

[0033] As an optional implementation, the signal-to-signal common rail simulation subcircuit includes a fourth high current relay; wherein,

[0034] A first end of the contact of the fourth high current relay is connected to the common point, and a second end is connected to the load control signal output interface;

[0035] The first end of the coil of the fourth high current relay is connected to a power source, and the second end is connected to a fourth relay control signal output end of the relay driving module. The fourth high current relay is a normally open relay.

[0036] As an optional implementation, the device further includes a fault status display module; wherein,

[0037] The fault status display module is connected to the microcontroller and is used to display the target load and the target fault simulation type.

[0038] As an optional implementation, the load is a vehicle-mounted electrical device.

[0039] In a second aspect, a fault simulation system is provided, the system comprising a vehicle body controller, a load and a fault injection device as described in any one of the first aspects.

[0040] In a third aspect, a fault injection method is provided, the method being applied to a fault simulation system, the method comprising:

[0041] Get the name of the target load and the target fault simulation type input by the user;

[0042] Inject a fault corresponding to the target fault simulation type into the target load.

[0043] As an optional implementation manner, the target fault simulation type includes one of open circuit fault, power short circuit fault, ground short circuit fault and signal common rail fault; or,

[0044] One of the power supply short circuit fault, the ground short circuit fault and the signal common rail fault, and the open circuit fault.

[0045] As an optional implementation, the method further includes:

[0046] If the target fault simulation type is different from the current fault simulation type, and both the target fault simulation type and the current fault simulation type are one of the power short circuit fault, the ground short circuit fault and the signal inter-common rail fault, the current fault is reset, and after a preset delay time, the step of injecting the fault corresponding to the target fault simulation type into the target load is performed;

[0047] If the target fault simulation type is different from the current fault simulation type, and the target fault simulation type or the current fault simulation type is one of the power short circuit fault, the ground short circuit fault and the signal-to-signal common rail fault, then directly executing the step of injecting the fault corresponding to the target fault simulation type into the target load;

[0048] If the target fault simulation type is the same as the current fault simulation type, the current fault is reset, and then the step of injecting the fault corresponding to the target fault simulation type into the target load is performed.

[0049] The present application provides a fault injection device and a fault simulation system. The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: the device includes a host computer, a microcontroller and several fault injection circuits; wherein the host computer is connected to the microcontroller; each drive signal output end of the microcontroller is respectively connected to the drive signal input end of each fault injection circuit; the load control signal input interface of each fault injection circuit is connected to the vehicle body controller to be tested, and the load control signal output interface of each fault injection circuit is respectively connected to each load; the host computer sends a control instruction carrying the name of the target load and the target fault simulation type to the microcontroller, and the microcontroller parses the control instruction and controls the target fault injection circuit connected to the target load to realize the fault simulation corresponding to the target fault simulation type. With the present application, the user does not need to directly contact the large current manually. Through the communication control between the host computer and the microcontroller, the fault injection circuit can be driven to complete the fault simulation of the large current load, thereby ensuring the safety of the user. A single fault injection circuit can complete multiple fault injections, and each fault injection circuit is independent of each other, and can perform fault injection synchronously or asynchronously, so as to complete the electrical fault code identification of different loads for the vehicle body controller to be tested.

[0050] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0052] Figure 1 A schematic diagram of the structure of a fault injection device provided in an embodiment of the present application;

[0053] Figure 2 A schematic diagram of the structure of a fault injection circuit provided in an embodiment of the present application;

[0054] Figure 3 A schematic diagram of the structure of a fault simulation circuit provided in an embodiment of the present application;

[0055] Figure 4 A schematic diagram of the structure of a circuit breaker simulation subcircuit provided in an embodiment of the present application;

[0056] Figure 5A schematic diagram of the structure of a power short circuit simulation sub-circuit provided in an embodiment of the present application;

[0057] Figure 6 A schematic diagram of the structure of a short-circuit to ground simulation sub-circuit provided in an embodiment of the present application;

[0058] Figure 7 A schematic diagram of the structure of a signal common rail simulation sub-circuit provided in an embodiment of the present application;

[0059] Figure 8 A schematic diagram of the structure of another fault injection device provided in an embodiment of the present application;

[0060] Fig. 9 A flowchart of a fault injection method provided in an embodiment of the present application;

[0061] Fig.10 A flowchart of another fault injection method provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0063] The following will describe in detail a fault injection device provided by an embodiment of the present application in conjunction with a specific implementation method. Figure 1 A schematic diagram of the structure of a fault injection device provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the device includes a host computer 110, a microcontroller 120 and a plurality of fault injection circuits 130; wherein,

[0064] The host computer 110 is connected to the microcontroller 120 .

[0065] The drive signal output terminals A1, A2, A3, ... A of the microcontroller 120 are n The drive signal input terminals B of the fault injection circuits 1301, 1302, 1303, ... 130n are connected to the 11 , B 12 , B 13 …B 1n ;

[0066] The load control signal input interface B of each fault injection circuit 1301, 1302, 1303...130n 21 , B 22 , B 23 …B 2nConnect to the load control signal output interface B of the vehicle body controller 210 to be tested and each fault injection circuit 1301, 1302, 1303...130n 31 , B 32 , B 33 …B 3n Connecting the loads 3101, 3102, 3103, ... 310n respectively;

[0067] The host computer 110 sends a control instruction carrying the name of the target load and the target fault simulation type to the microcontroller 120. The microcontroller 120 parses the control instruction and controls the target fault injection circuit connected to the target load to implement the fault simulation corresponding to the target fault simulation type.

[0068] In practice, the body controller, as the core controller of the car, can directly control the vehicle's onboard electrical equipment, i.e., loads, such as vehicle lights, windows, air conditioners, and door locks. During normal operation of the vehicle, the body controller is connected to each load to control the operation of each load and the identification of electrical fault codes. In this application, the body controller 210 to be tested is not directly connected to each load, but is connected to each load through a fault injection device. Specifically, the body controller 210 to be tested is respectively connected to the load control signal input interface B of each fault injection circuit 1301, 1302, 1303...130n. 21 , B 22 , B 23 …B 2n , the load control signal output interface B of each fault injection circuit 1301, 1302, 1303 ... 130n 31 , B 32 , B 33 …B 3nThe loads 3101, 3102, 3103, ... 310n are connected respectively. The vehicle body controller 210 to be tested sends a load control signal to each fault injection circuit 130, and the signal is transmitted to each load through each fault injection circuit 130. The user can use the CAN bus to connect to the communication interface of the microcontroller 120 through the host computer 110 to realize the sending and receiving of information with the microcontroller 3 using CAN communication. The microcontroller 120 parses the control instruction carrying the name of the target load and the target fault simulation type sent by the user through the host computer 110. Taking the load 3101 as the target load and the target fault type as a circuit breaker as an example, the microcontroller 120 drives the fault injection circuit 1301 connected to the load 3101 to cause a circuit breaker, and the load control signal output by the vehicle body controller 210 to be tested cannot be transmitted to the load 3101 through the fault injection circuit 1301, thereby simulating the circuit breaker fault of the load 3101. The user can read the electrical fault code on the body controller 210 under test through a computer to determine whether the body controller 210 under test can accurately identify the electrical fault code, thereby completing the electrical fault code test so that the technician can maintain the body controller 210 under test and ensure the safety of the vehicle driver.

[0069] As an optional implementation, Figure 2 A schematic diagram of a fault injection circuit provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the fault injection circuit 1301 includes a relay driving module 13011 and a fault simulation circuit 13012; wherein,

[0070] Drive signal input terminal B of relay drive module 13011 11 Connected to the drive signal output terminal A1 of the microcontroller 120;

[0071] The relay control signal output terminal B4 of the relay driving module 13011 is connected to the relay control signal input terminal B5 of the fault simulation circuit 13012;

[0072] Load control signal output interface B of fault simulation circuit 13012 31 Connect load 3101;

[0073] Load control signal input interface B of fault simulation circuit 13012 21 Connect to the vehicle body controller 210 to be tested.

[0074] In implementation, the embodiment of the present application takes the fault injection circuit 1301 as an example, the microcontroller 120 sends a drive signal to the relay drive module 13011, and the relay drive module 13011 controls the fault simulation circuit 13012 to simulate the fault. The technician can set the number of fault injection circuits based on the number of loads, so as to simulate various fault types of each load.

[0075] As an optional implementation, Figure 3 A schematic diagram of a fault simulation circuit provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the fault simulation circuit 13012 includes a circuit break simulation subcircuit 130121, a power supply short circuit simulation subcircuit 130122, a ground short circuit simulation subcircuit 130123 and a signal common rail simulation subcircuit 130124; wherein,

[0076] The first end of the disconnection simulation sub-circuit 130121 is connected to the load control signal input interface B 21 The second end is connected to the load control signal output interface B 31 ;

[0077] Relay control signal input terminal B of the disconnect simulation subcircuit 130121 51 Connect the first relay control signal output terminal B of the relay drive module 13011 41 , the relay driving module 13011 is used to control the disconnection simulation subcircuit 130121 to be disconnected, so as to simulate the disconnection fault of the load 3101;

[0078] The first end of the power short circuit simulation sub-circuit 130122 is connected to the load control signal input interface B 21 , the second end is connected to the power supply V;

[0079] Relay control signal input terminal B of power supply short circuit simulation subcircuit 130122 52 Connect the second relay control signal output terminal B of the relay drive module 13011 42 , the relay driving module 13011 is used to control the power short circuit simulation sub-circuit 130122 to be connected to simulate the power short circuit fault of the load 3101;

[0080] The first end of the short-circuit analog sub-circuit 130123 is connected to the load control signal input interface B. 21 , the second end is grounded GND;

[0081] Relay control signal input terminal B of the short-circuit simulation subcircuit 130123 53 Connect the third relay control signal output terminal B of the relay drive module 13011 43, the relay driving module 13011 is used to control the short-circuit to ground simulation sub-circuit 130123 to be connected to simulate the short-circuit to ground fault of the load 3101;

[0082] The first end of the signal common rail simulation sub-circuit 130124 is connected to the load control signal input interface B 21 , the second end is connected to the common point COM;

[0083] Relay control signal input terminal B of signal common rail simulation subcircuit 130124 54 Connect the fourth relay control signal output terminal B of the relay drive module 13011 44 The relay driving module 13011 is used to control the signal common rail simulation sub-circuit 130124 to be connected to simulate the signal common rail fault of the load 3101.

[0084] In implementation, the load fault simulation types include short circuit fault, power supply short circuit fault, ground short circuit fault and signal common rail fault. The microcontroller 120 can send a control instruction of the fault simulation circuit corresponding to the target fault type to the relay driving module 13011 according to the target fault type.

[0085] As an optional implementation, Figure 4 A schematic diagram of a circuit breaker simulation subcircuit provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the circuit breaker simulation subcircuit 130121 includes a first high current relay K1; wherein,

[0086] The first end of the contact of the first high current relay K1 is connected to the load control signal input interface B 21 The second end is connected to the load control signal output interface B 31 ;

[0087] The first end of the coil of the first high current relay is connected to the power supply V+, and the second end B 51 Connect the first relay control signal output terminal B of the relay drive module 13011 41 , the first high current relay K1 is a normally closed relay.

[0088] In the implementation, the first high current relay K1 is a normally closed relay, one end of the coil is connected to the power supply V+, and the other end is connected to the relay drive module 13011. After receiving the relay control signal, the first high current relay K1 contact is disconnected, and the load control signal cannot be input from the load control signal input interface B. 21 Transmitted to load control signal output interface B 31 , thereby simulating a circuit breaker fault of the load.

[0089] As an optional implementation, Figure 5A schematic diagram of the structure of a power short circuit simulation sub-circuit provided in an embodiment of the present application, such as Figure 5 As shown, the power short circuit simulation sub-circuit 130122 includes a second high current relay K2; wherein,

[0090] The first end of the contact of the second large current relay K2 is connected to the power supply V, and the second end is connected to the load control signal input interface B. 21 ;

[0091] The first end of the coil of the second large current relay K2 is connected to the power supply V+, and the second end B 52 Connect the second relay control signal output terminal B of the relay drive module 13011 42 , the second largest current relay K2 is a normally open relay.

[0092] In implementation, the second high current relay K2 is a normally open relay, one end of the coil is connected to the power supply V+, and the other end is connected to the relay drive module 13011. After receiving the relay control signal, the contacts of the second high current relay K2 are closed, thereby simulating a power short circuit fault of the load.

[0093] As an optional implementation, Figure 6 A schematic diagram of a short-circuit to ground simulation sub-circuit provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the short-circuit to ground simulation sub-circuit 130123 includes a third high current relay K3; wherein,

[0094] A first end of a contact of the third high current relay K3 is grounded, and a second end is connected to the load control signal input interface B21;

[0095] The first end of the coil of the third large current relay K3 is connected to the power supply V+, and the second end B 53 Connect the third relay control signal output terminal B of the relay drive module 13011 43 , the third largest current relay K3 is a normally open relay.

[0096] In implementation, the third high current relay K3 is a normally open relay, one end of the coil is connected to the power supply V+, and the other end is connected to the relay drive module 13011. After receiving the relay control signal, the contact of the third high current relay K3 is closed, thereby simulating a short circuit fault of the load to ground.

[0097] As an optional implementation, Figure 7 A schematic diagram of a signal common rail simulation subcircuit provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the signal common rail simulation subcircuit includes a fourth large current relay; wherein,

[0098] The first end of the contact of the fourth high current relay K4 is connected to the common point COM, and the second end is connected to the load control signal output interface B 21 ;

[0099] The first end of the coil of the fourth high current relay K4 is connected to the power supply V+, and the second end B 54 Connect the fourth relay control signal output terminal B of the relay drive module 13011 44 , the fourth high current relay K4 is a normally open relay.

[0100] In implementation, the common point is the common point of the fault simulation circuit in each fault injection circuit. The fourth high current relay K4 is a normally open relay. One end of the coil is connected to the power supply V+, and the other end is connected to the relay drive module 13011. After receiving the relay control signal, the contact of the fourth high current relay K4 is closed, thereby simulating a common rail fault between the load signals.

[0101] Optionally, in order to simplify the internal circuits of the device, each fault injection circuit may share the input interface of the power supply V+, the ground line GND and the common point COM.

[0102] Optionally, since the power short circuit fault, the ground short circuit fault and the signal common rail fault are mutually exclusive, only one of the fault types can be simulated at the same time, and the open circuit fault can coexist with the other three faults.

[0103] Furthermore, as the load current increases, the action time of the high-current relay will increase. During fault simulation, in order to avoid power short circuit or relay sticking, a time delay can be added to the control switching between the second high-current relay K2, the third high-current relay K3 and the fourth high-current relay K4 to ensure that the second high-current relay K2, the third high-current relay K3 and the fourth high-current relay K4 are mutually exclusive, thereby increasing their safety.

[0104] As an optional implementation, Figure 8 A structural diagram of another fault injection device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device also includes a fault status display module 140; wherein,

[0105] The fault status display module 140 is connected to the microcontroller 120 and is used to display the target load and the target fault simulation type.

[0106] Optionally, the fault status display module 140 may be an LED fault light display circuit, which is used to display the operating status of each high-current relay and to display whether the current relay is on or off by turning on or off the LED light.

[0107] As an optional implementation, the load is a vehicle-mounted electrical device.

[0108] The embodiment of the present application provides a fault injection device, which includes a host computer, a microcontroller and several fault injection circuits; wherein the host computer is connected to the microcontroller; each drive signal output terminal of the microcontroller is respectively connected to the drive signal input terminal of each fault injection circuit; the load control signal input interface of each fault injection circuit is connected to the vehicle body controller to be tested, and the load control signal output interface of each fault injection circuit is respectively connected to each load; the host computer sends a control instruction carrying the name of the target load and the target fault simulation type to the microcontroller, and the microcontroller parses the control instruction and controls the target fault injection circuit connected to the target load to realize the fault simulation corresponding to the target fault simulation type. With this application, the user does not need to directly contact the large current manually. Through the communication control between the host computer and the microcontroller, the fault injection circuit can be driven to complete the fault simulation of the large current load, thereby ensuring the safety of the user. A single fault injection circuit can complete multiple fault injections, and each fault injection circuit is independent of each other, and fault injection can be performed synchronously or asynchronously, so as to complete the electrical fault code identification of different loads for the vehicle body controller to be tested.

[0109] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.

[0110] The present application also provides a fault simulation system. Figure 1 As shown, the system includes a vehicle body controller 210, a load 3101, a load 3102...load 310n and a fault injection device as described in any one of the first aspects.

[0111] The present application also provides a fault injection method, such as Fig. 9 As shown, the method is applied to the fault simulation system, and the specific steps are as follows:

[0112] Step 901, obtaining the name of the target load and the target fault simulation type input by the user.

[0113] During implementation, the fault simulation system obtains the name of the target load and the target fault simulation type input by the user.

[0114] Step 902: Inject a fault corresponding to the target fault simulation type into the target load.

[0115] In implementation, Figure 1-3As shown, the fault simulation system injects the fault corresponding to the target fault simulation type into the target load. Specifically, the fault simulation system can determine the target fault injection circuit connected to the target load, and further determine the target relay driving module in the target fault injection circuit, and then determine the target fault simulation circuit in the target fault injection circuit according to the target fault simulation type, and the target relay driving module drives the target fault simulation circuit to simulate the fault corresponding to the target fault simulation type, thereby injecting the fault corresponding to the target fault simulation type into the target load.

[0116] As an optional implementation manner, the target fault simulation type includes one of open circuit fault, power short circuit fault, ground short circuit fault and signal common rail fault; or,

[0117] One of the following three faults: power short circuit fault, ground short circuit fault and signal common rail fault, and open circuit fault.

[0118] As an optional implementation, Fig.10 A flowchart of another fault injection method provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the specific steps are as follows:

[0119] Step 1001, if the target fault simulation type is different from the current fault simulation type, and the target fault simulation type and the current fault simulation type are both one of the power short circuit fault, the ground short circuit fault and the signal common rail fault, then reset the current fault, and after a preset delay time, execute step 902 (inject the fault corresponding to the target fault simulation type into the target load).

[0120] Step 1002, if the target fault simulation type is different from the current fault simulation type, and the target fault simulation type or the current fault simulation type is one of the power short circuit fault, the ground short circuit fault and the signal common rail fault, then directly execute step 902 (inject the fault corresponding to the target fault simulation type into the target load).

[0121] Step 1003: If the target fault simulation type is the same as the current fault simulation type, reset the current fault, and then go to step 902 (inject the fault corresponding to the target fault simulation type into the target load).

[0122] In implementation, Figure 3As shown, the injection of open circuit fault, power short circuit fault, ground short circuit fault and signal common rail fault corresponds to open circuit simulation subcircuit 130121, power short circuit simulation subcircuit 130122, ground short circuit simulation subcircuit 130123 and signal common rail simulation subcircuit 130124 respectively. As the load current increases, the action time of the high current relay of each subcircuit in the fault simulation circuit 13012 will also increase. When the fault is injected, Figure 2-Figure 7 As shown, in order to avoid load power short circuit or relay adhesion, the delay time can be set during the control switching process between high current relays K2, K3 and K4. Thereby ensuring that the high current relays K2, K3 and K4 are mutually exclusive, increasing the safety of the system. The open circuit fault is not restricted and can coexist with the other three faults. For example: the current system is simulating the open circuit fault of the target load. When the target fault simulation type input by the user is a power short circuit fault, the system determines that the target fault simulation type is a power short circuit fault type, which is different from the current fault simulation type open circuit fault type, and the target fault simulation type is one of the three: power short circuit fault, short circuit to ground fault and common rail fault between signals, while the current fault simulation type is not one of the three: power short circuit fault, short circuit to ground fault and common rail fault between signals, indicating that the target fault simulation type and the current fault simulation type do not have a mutually exclusive relationship, so the step of injecting the fault corresponding to the target fault simulation type into the target load is directly executed. Another example: the current system is simulating a power short circuit fault of the target load. When the target fault simulation type received from the user is a short circuit fault to the ground, the system determines that the target fault simulation type is a power short circuit fault type, which is different from the current fault simulation type, which is a short circuit fault to the ground, and the target fault simulation type and the current fault simulation type are both one of the three: power short circuit fault, short circuit fault to the ground, and common rail fault between signals, indicating that the target fault simulation type and the current fault simulation type are mutually exclusive. Therefore, the current fault must be reset, and after a preset delay, the step of injecting the fault corresponding to the target fault simulation type into the target load is executed. Another example: the current system is simulating a circuit breaker fault of the target load. When the target fault simulation type received from the user is a circuit breaker fault, the system determines that the target fault simulation type is the same as the current fault simulation type, indicating that the user is simulating a circuit breaker fault of the target load again. Therefore, the current fault can be reset first, and then the step of injecting the fault corresponding to the target fault simulation type into the target load is executed.

[0123] The embodiment of the present application provides a fault injection method, which is applied to a fault simulation system, and the method includes: obtaining the name of the target load and the target fault simulation type input by the user; injecting the fault corresponding to the target fault simulation type into the target load. With this application, the user does not need to directly contact the high current manually, and the fault simulation of the high current load can be completed by inputting the name of the target load and the target fault simulation type into the fault simulation system, thereby ensuring the safety of the user. In addition, multiple fault injections can be completed, thereby completing the electrical fault code identification of different loads for the vehicle body controller to be tested.

[0124] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0125] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0126] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0127] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

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

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

Claims

1. A fault injection device, characterized in that: The device comprises a host computer, a microcontroller and several fault injection circuits; wherein, The host computer is connected to the microcontroller; Each drive signal output terminal of the microcontroller is respectively connected to the drive signal input terminal of each fault injection circuit; The load control signal input interface of each of the fault injection circuits is connected to the vehicle body controller to be tested, and the load control signal output interface of each of the fault injection circuits is connected to each load respectively; The host computer sends a control instruction carrying the name of the target load and the target fault simulation type to the microcontroller, and the microcontroller parses the control instruction and controls the target fault injection circuit connected to the target load to implement the fault simulation corresponding to the target fault simulation type.

2. The device according to claim 1, characterized in that The fault injection circuit includes a relay drive module and a fault simulation circuit; wherein, The driving signal input end of the relay driving module is connected to the driving signal output end of the microcontroller; The relay control signal output terminal of the relay driving module is connected to the relay control signal input terminal of the fault simulation circuit; The load control signal output interface of the fault simulation circuit is connected to the load; The load control signal input interface of the fault simulation circuit is connected to the vehicle body controller to be tested.

3. The device according to claim 2, characterized in that The fault simulation circuit includes a disconnection simulation subcircuit, a power supply short circuit simulation subcircuit, a ground short circuit simulation subcircuit and a signal common rail simulation subcircuit; wherein, The first end of the disconnection simulation subcircuit is connected to the load control signal input interface, and the second end is connected to the load control signal output interface; The relay control signal input end of the disconnection simulation subcircuit is connected to the first relay control signal output end of the relay driving module, and the relay driving module is used to control the disconnection simulation subcircuit to be disconnected to simulate the disconnection fault of the load; A first end of the power short circuit simulation subcircuit is connected to the load control signal input interface, and a second end is connected to the power supply; The relay control signal input end of the power short circuit simulation subcircuit is connected to the second relay control signal output end of the relay driving module, and the relay driving module is used to control the power short circuit simulation subcircuit to be connected to simulate the power short circuit fault of the load; A first end of the short-to-ground simulation subcircuit is connected to the load control signal input interface, and a second end is grounded; The relay control signal input terminal of the short-circuit-to-ground simulation subcircuit is connected to the third relay control signal output terminal of the relay driving module, and the relay driving module is used to control the short-circuit-to-ground simulation subcircuit to be connected to simulate the short-circuit-to-ground fault of the load; The first end of the signal common rail simulation subcircuit is connected to the load control signal input interface, and the second end is connected to the common point; The relay control signal input end of the signal-to-signal common-rail simulation subcircuit is connected to the fourth relay control signal output end of the relay driving module, and the relay driving module is used to control the signal-to-signal common-rail simulation subcircuit to be connected to simulate the signal-to-signal common-rail fault of the load.

4. The device according to claim 3, characterized in that The disconnection simulation subcircuit includes a first high current relay; wherein, A first end of the contact of the first high current relay is connected to the load control signal input interface, and a second end is connected to the load control signal output interface; A first end of the coil of the first high-current relay is connected to a power source, and a second end is connected to a first relay control signal output end of the relay driving module. The first high-current relay is a normally closed relay.

5. The device according to claim 3, characterized in that The power short circuit simulation subcircuit includes a second high current relay; wherein, A first end of the contact of the second high current relay is connected to a power source, and a second end is connected to the load control signal input interface; A first end of the coil of the second high current relay is connected to a power source, and a second end is connected to a second relay control signal output end of the relay driving module. The second high current relay is a normally open relay.

6. The device according to claim 3, characterized in that The short-circuit-to-ground simulation subcircuit includes a third high-current relay; wherein, A first end of the contact of the third high current relay is grounded, and a second end is connected to the load control signal input interface; The first end of the coil of the third high current relay is connected to the power supply, and the second end is connected to the third relay control signal output end of the relay driving module. The third high current relay is a normally open relay.

7. The device according to claim 3, characterized in that The signal-to-signal common rail simulation subcircuit includes a fourth high current relay; wherein, A first end of the contact of the fourth high current relay is connected to the common point, and a second end is connected to the load control signal output interface; The first end of the coil of the fourth high current relay is connected to a power source, and the second end is connected to a fourth relay control signal output end of the relay driving module. The fourth high current relay is a normally open relay.

8. The device according to claim 1, characterized in that The device also includes a fault status display module; wherein, The fault status display module is connected to the microcontroller and is used to display the target load and the target fault simulation type.

9. A fault simulation system, characterized in that: The system comprises a vehicle body controller, a load and a fault injection device as claimed in claims 1-8.

10. A fault injection method, characterized in that: The method is applied to a fault simulation system, and the method comprises: Get the name of the target load and the target fault simulation type input by the user; Inject a fault corresponding to the target fault simulation type into the target load.

11. The method according to claim 9, characterized in that The target fault simulation type includes one of a circuit breaker fault, a power short circuit fault, a ground short circuit fault and a signal-to-signal common rail fault; or, One of the power supply short circuit fault, the ground short circuit fault and the signal common rail fault, and the open circuit fault.

12. The method according to claim 9, characterized in that The method further comprises: If the target fault simulation type is different from the current fault simulation type, and both the target fault simulation type and the current fault simulation type are one of the power short circuit fault, the ground short circuit fault and the signal inter-common rail fault, the current fault is reset, and after a preset delay time, the step of injecting the fault corresponding to the target fault simulation type into the target load is performed; If the target fault simulation type is different from the current fault simulation type, and the target fault simulation type or the current fault simulation type is one of the power short circuit fault, the ground short circuit fault and the signal-to-signal common rail fault, then directly executing the step of injecting the fault corresponding to the target fault simulation type into the target load; If the target fault simulation type is the same as the current fault simulation type, the current fault is reset, and then the step of injecting the fault corresponding to the target fault simulation type into the target load is performed.

Citation Information

Cited By

  • Fault simulation test system for vehicle brake controller

    CN121143270A