Fault injection method, device and equipment

By designing a fault injection device including power supply, controller, mechanical relay and solid-state relay, the problems of low fault injection efficiency and difficult control in the prior art are solved, precise control and automation of fault injection are realized, and testing efficiency and accuracy are improved.

CN114995347BActive Publication Date: 2025-03-07BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210679865.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2025-03-07
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

In the test of existing vehicle electronic systems, fault injection is inefficient and it is difficult to accurately control the time point and duration of fault injection, which affects the accuracy of the test and cannot complete some specific types of fault injection, such as false contact faults.

Method used

A fault injection device is designed, including power supply, controller, mechanical relay and solid-state relay. The port selection control signal and I/O control signal are sent to the mechanical relay through the controller. The mechanical relay realizes path selection, and the solid-state relay performs fault injection control based on the I/O control signal.

Benefits of technology

It realizes accurate control of fault injection, including precise control of time points and duration, improves the efficiency and accuracy of fault testing, and can automatically complete fault injection. It is suitable for a variety of types of fault injection, including open circuit faults, short circuit faults and false connection faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995347B_ABST
    Figure CN114995347B_ABST
Patent Text Reader

Abstract

The present invention discloses a fault injection method, device and equipment, wherein the fault injection equipment includes a source and a controller, a mechanical relay and a solid-state relay connected in sequence, each output port of the mechanical relay is correspondingly connected to a solid-state relay, wherein: the controller is used to send a port selection control signal and an I / O control signal to the mechanical relay; the mechanical relay is used to implement the path selection of the I / O control signal based on the port selection control signal; the solid-state relay is used to implement the control of the fault injection based on the I / O control signal; the power supply is used to supply power to the controller, the mechanical relay and the solid-state relay. In the above scheme, the controller can directly control the mechanical relay and the solid-state relay through the control signal, so that the precise control of the hard-line fault injection can be realized through the automation of the electrical component circuit, including the fault injection time point and the fault duration length.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle electronic system testing, and more particularly to a fault injection method, device and equipment. Background Art

[0002] Currently, when testing the vehicle's electronic systems, the usual implementation is to disconnect the controller from the vehicle's wiring harness and connect a disconnect box in series in the middle; when injecting open and short circuit faults into the actual vehicle's functional safety lines, the tester manually disconnects and connects the wiring harness on the disconnect box to detect open circuit faults of the input signal, short circuits to the power supply, short circuits to the ground, short circuits to other signals, and other faults.

[0003] However, the above-mentioned implementation of manually controlling the line on and off is not only inefficient, but also difficult to accurately control the fault injection time point and fault injection duration, affecting the accuracy of fault injection. In addition, the implementation of manual control cannot complete some specific types of fault injection, such as virtual connection faults. Summary of the invention

[0004] In view of this, the present invention provides the following technical solutions:

[0005] A fault injection device comprises a power supply and a controller, a mechanical relay and a solid-state relay connected in sequence, each output port of the mechanical relay is correspondingly connected to one of the solid-state relays, wherein:

[0006] The controller is used to send a port selection control signal and an I / O control signal to the mechanical relay;

[0007] The mechanical relay is used to implement the path selection of the I / O control signal based on the port selection control signal;

[0008] The solid-state relay is used to implement fault injection control based on the I / O control signal;

[0009] The power supply is used to supply power to the controller, the mechanical relay and the solid-state relay;

[0010] The communication control port of the controller is connected to the control end of the mechanical relay, the IO control port of the controller is connected to the common end of the mechanical relay, the normally open end of the mechanical relay is connected to the control end of the solid-state relay, the common end of the solid-state relay is connected to the vehicle electronic control unit, and the normally open ends of multiple solid-state relays are respectively connected to different signal lines of the vehicle.

[0011] The present application also discloses a fault injection method, which is applied to the above-mentioned fault injection device, comprising:

[0012] Controlling to send a port selection control signal to the mechanical relay, wherein the port selection control signal is used to control the target port in the mechanical relay to be connected, and the port selection control signal selects the first port to be connected by default;

[0013] Controlling the sending of an I / O control signal to the mechanical relay, so that the mechanical relay transmits the I / O control signal to a solid-state relay connected to the target port through the target port;

[0014] After receiving the I / O control signal, the solid-state relay controls the signal line connected to itself and the vehicle electronic control unit to be connected or disconnected based on the I / O control signal.

[0015] Optionally, the normally open end of the output end of the first solid-state relay connected to the first port is connected to the vehicle wiring harness signal, and when an open circuit fault is injected, the control sends an I / O control signal to the mechanical relay, including:

[0016] The I / O control signal for disconnecting the first solid-state relay is controlled to be sent to the mechanical relay, so that the vehicle harness signal is interrupted.

[0017] Optionally, the normally open end of the output end of the second solid-state relay connected to the second port of the mechanical relay is connected to the vehicle power supply voltage signal, and when a short power failure is injected, the control sends a port selection control signal to the mechanical relay, including:

[0018] Controlling the mechanical relay to send a port selection control signal to disconnect the first port and connect the second port;

[0019] The control sends an I / O control signal to the mechanical relay, including:

[0020] The control sends an I / O control signal to the mechanical relay to turn on the second solid-state relay, so that the vehicle power supply voltage signal is connected to the vehicle electronic control unit.

[0021] Optionally, the normally open end of the output end of the third solid-state relay connected to the third port of the mechanical relay is connected to the vehicle ground signal, and when a short-to-ground fault is injected, the control sends a port selection control signal to the mechanical relay, including:

[0022] Controlling the mechanical relay to send a port selection control signal to disconnect the first port and connect the third port;

[0023] The control sends an I / O control signal to the mechanical relay, including:

[0024] The control sends an I / O control signal to the mechanical relay to turn on the third solid-state relay, so that the vehicle ground signal is connected to the vehicle electronic control unit.

[0025] Optionally, the normally open end of the output end of the first solid-state relay connected to the first port is connected to the vehicle wiring harness signal, and when a virtual connection fault is injected, the control sends an I / O control signal to the mechanical relay, including:

[0026] The control device periodically and alternately sends an I / O control signal to the mechanical relay to turn on and off the first solid-state relay, so as to simulate virtual connection fault injection.

[0027] Optionally, the duration of the fault injection is achieved by controlling the on or off time of a corresponding solid-state relay.

[0028] Optionally, the vehicle wiring harness signal is any one of CAN, CANFD, MOST, Ethernet, LIN, and Flexray.

[0029] Optionally, the controlling of sending a port selection signal to the mechanical relay comprises:

[0030] The control sends a CAN control signal to the mechanical relay, and the CAN control signal is used to instruct the solid-state relay which port is connected.

[0031] The present application also discloses a fault injection device, which is applied to the above-mentioned fault injection device, comprising:

[0032] A port selection module, used for controlling the sending of a port selection control signal to the mechanical relay, wherein the port selection control signal is used for controlling the target port in the mechanical relay to be connected, and the port selection control signal selects the first port to be connected by default;

[0033] An I / O control module, configured to control the sending of an I / O control signal to the mechanical relay, so that the mechanical relay transmits the I / O control signal to a solid-state relay connected to the target port through the target port;

[0034] After receiving the I / O control signal, the solid-state relay controls the signal line connected to itself to be connected or disconnected with the vehicle electronic control unit based on the I / O control signal.

[0035] Through the above technical solutions, it can be known that compared with the prior art, the embodiments of the present invention disclose a fault injection method, device and equipment, the fault injection equipment includes a source and a controller, a mechanical relay and a solid-state relay connected in sequence, each output port of the mechanical relay is connected to a corresponding solid-state relay, wherein: the controller is used to send a port selection control signal and an I / O control signal to the mechanical relay; the mechanical relay is used to realize the path selection of the I / O control signal based on the port selection control signal; the solid-state relay is used to realize the control of fault injection based on the I / O control signal; the power supply is used to supply power to the controller, the mechanical relay and the solid-state relay. In the above scheme, the controller can directly realize the control of the mechanical relay and the solid-state relay through the control signal, so that the precise control of hard-line fault injection can be realized through the automation of the electrical component circuit, including the fault injection time point, the fault duration length, etc.; the scheme realizes high fault operation efficiency and good controllability, and can realize automatic fault injection through the program at the control end, which can effectively improve the fault test efficiency and test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0037] Figure 1 A schematic diagram of the structure of a fault injection device disclosed in an embodiment of the present invention;

[0038] Figure 2 A schematic diagram of an electrical circuit of a fault injection device disclosed in an embodiment of the present invention;

[0039] Figure 3 A flowchart of a fault injection method disclosed in an embodiment of the present invention;

[0040] Figure 4 A schematic diagram of the structure of a fault injection device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] For the purpose of reference and clarity, the descriptions, abbreviations or acronyms of the technical terms used below are summarized as follows:

[0042] CAN: Controller Area Network, controller area network.

[0043] CANFD: CAN with Flexible Datarate is the latest technology in the CAN field. It inherits the main characteristics of the CAN bus and has a higher transmission rate and more transmission data bytes.

[0044] MOST: Media Oriented System Transport, media-oriented system transport bus.

[0045] Ethernet: Ethernet.

[0046] LIN: LIN bus is a low-cost serial communication network defined for automotive distributed electronic systems. It is a supplement to other automotive multi-channel networks such as the controller area network (CAN) and is suitable for applications that do not have high requirements on network bandwidth, performance or fault tolerance.

[0047] FlexRay: The FlexRay in-vehicle network standard has become the benchmark for similar products and will guide the development direction of the entire automotive electronic product control structure for many years to come. FlexRay is the latest development after CAN and LIN, and can effectively manage multiple safety and comfort functions: for example, FlexRay is suitable for wire control operation (X-by-Wire).

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] Figure 1 This is a schematic diagram of the structure of a fault injection device disclosed in an embodiment of the present invention, wherein a mechanical relay having three output ports including three solid-state relays is used as an example. Figure 1 As shown, the fault injection device includes a power supply 10 and a controller 20, a mechanical relay 30 and a solid-state relay 40 connected in sequence, and each output port of the mechanical relay is correspondingly connected to one of the solid-state relays.

[0050] Among them, the controller is used to send a port selection control signal and an I / O control signal to the mechanical relay; the mechanical relay is used to implement path selection of the I / O control signal based on the port selection control signal; the solid-state relay is used to implement fault injection control based on the I / O control signal; and the power supply is used to power the controller, the mechanical relay and the solid-state relay.

[0051] The number of the solid-state relays corresponds to the number of output ports of the mechanical relay, and each output port of the mechanical relay is separately connected to a solid-state relay. Different solid-state relays are connected to different vehicle signal lines and can be used for different fault injections. In the embodiment of the present application, the fault injection may include but is not limited to open circuit faults, short circuits to power supply, short circuits to ground, short circuits to other signals, line virtual connection and other fault injections.

[0052] Multiple solid-state relays are connected to vehicle signal lines, so the fault injection device described in this application can realize various fault injections of vehicle-mounted communication lines. The vehicle-mounted communication lines include but are not limited to CAN, CANFD, MOST, Ethernet, LIN, Flexray, etc. When there is current at the control end of the solid-state relay, the output end will close the conduction circuit, and through the closure of different solid-state relays, the signal line is connected to different lines (positive power supply, ground, other signals, open), thereby realizing open circuit faults, short circuits to power supply, short circuits to ground, short circuits to other signals, line virtual connections and other fault injections.

[0053] In the fault injection device described in this embodiment, the controller can directly control the mechanical relay and the solid-state relay through the control signal, so that the precise control of hard-line fault injection can be achieved through the automation of the electrical component circuit, including the fault injection time point, the fault duration length, etc.; this solution has high fault operation efficiency and good controllability, and can realize automatic fault injection through the program at the control end, which can effectively improve the fault test efficiency and test accuracy.

[0054] In order to better understand the working principle of the fault injection device described in this application, Figure 2 The electrical circuit diagram of the fault injection device is shown, in which the mechanical relay has 4 output ports, including 4 solid-state relays. In actual applications, the number of mechanical relay output ports and the number of solid-state relays can be increased or decreased based on demand.

[0055] Combination Figure 2 As shown, the communication control port of the controller is connected to the control end of the mechanical relay, the IO control port of the controller is connected to the common end of the mechanical relay, the normally open end of the mechanical relay is connected to the control end of the solid-state relay, the common end of the solid-state relay is connected to the vehicle electronic control unit, and the normally open ends of multiple solid-state relays are respectively connected to different signal lines of the vehicle.

[0056] Wherein, the communication control port of the controller is a CAN communication port, and the controller sends a CAN control signal to the mechanical relay through the CAN communication port to control the connection port of the mechanical relay.

[0057] See also Figure 2 , the controller issues a CAN control signal. After the mechanical relay receives the CAN control signal, it decides which port to control to close based on the signal. After that, the controller sends an I / O control signal. The signal passes through the closed mechanical relay port and enters the corresponding solid-state relay control end. After receiving the signal, the solid-state relay closes the solid-state relay output end to achieve line conduction and connect the vehicle ECU (Electronic Control Unit) to the corresponding line. Finally, the corresponding fault injection is achieved. It should be noted that in this example, the controller sends a CAN control signal, but this is only an example and does not constitute a fixed limitation on this application. In actual application scenarios, the controller may also send a control signal that complies with other communication protocols.

[0058] Specifically, the communication control port of the controller (CAN_L and CAN_H, taking CAN communication as an example, other control interfaces that can achieve the same function also meet the requirements of this solution) is connected to the mechanical relay control terminal;

[0059] The IO control port Dout of the controller is connected to the common terminal CM of the output end of the mechanical relay, the normally open terminal NO of the mechanical relay output is connected to the positive pole of the solid-state relay input-control terminal, and the negative pole of the solid-state relay input-control terminal is connected to the power supply;

[0060] The common terminal CM of the solid-state relay output is connected to the vehicle ECU input port, and the normally open terminal NO of the solid-state relay output is respectively connected to the vehicle Vcc (power supply voltage signal), vehicle GND (ground signal), other signal lines, etc. There is only one I / O control port, and one I / O can only control one solid-state relay at a time. In order to realize one I / O to control different solid-state relays, it is necessary to select through a mechanical relay. The mechanical relay is used to control which solid-state relay the I / O port is connected to.

[0061] Among them, port 1 of the mechanical relay is connected to solid-state relay 1, port 2 of the mechanical relay is connected to solid-state relay 2, port 3 of the mechanical relay is connected to solid-state relay 3, and port 4 of the mechanical relay is connected to solid-state relay 4. The mechanical relay is a magnetic relay when the coil is turned on and off, and the relay opening and closing function is realized by the on and off of the current inside the coil. Solid-state relay 1 is a DC solid-state relay.

[0062] Among them, CM is the middle line of the relay, which is the common end, NO is the normally open end, and the mechanical relay NC is the normally closed end. After power-on, the common end CM of the mechanical relay is controlled to remain connected with the normally open end NC.

[0063] Through the above scheme, fault injection such as open circuit fault, short circuit to power supply, short circuit to ground, short circuit to other signals, and line virtual connection of the vehicle communication line can be realized; the mechanical relay controls the on-off of different ports to realize the solid-state relay through which the I / O signal passes, and the solid-state relay controls the on-off of the wiring harness signal to prevent short circuit to ground, short circuit to power supply, short circuit and open circuit of other signal lines; since the control of I / O can achieve high precision, it is possible to realize automatic control of line open and short circuit faults, precise control of time points, and control of duration, and the time accuracy can reach millisecond level, meeting the needs of high-demand application scenarios.

[0064] The application also discloses a fault injection method. Figure 3 This is a flow chart of a fault injection method disclosed in an embodiment of the present invention. Figure 3 As shown, the fault injection method may include:

[0065] Step 301: Controlling sending a port selection control signal to a mechanical relay, wherein the port selection control signal is used to control a target port in the mechanical relay to be connected, and the port selection control signal selects the first port to be connected by default.

[0066] The port selection control signal may be a CAN control signal, and the CAN control signal is used to instruct the solid-state relay which port to connect to, that is, to instruct the solid-state relay which port to determine as the target port.

[0067] Step 302: Controlling the sending of an I / O control signal to the mechanical relay, so that the mechanical relay transmits the I / O control signal to the solid-state relay connected to the target port through the target port.

[0068] After receiving the I / O control signal, the solid-state relay controls the signal line connected to itself to be connected or disconnected with the vehicle electronic control unit based on the I / O control signal.

[0069] After the system is started, the controller communication port controls the port CM of the mechanical relay to be connected with NO, the controller IO port controls the CM of the solid-state relay 1 to be connected with NO, the vehicle wiring harness signal works normally, the CM port is used to receive the input of the original vehicle wiring harness signal, and the NO port of the solid-state relay is used to connect the signal that needs to be injected, such as power supply signal, supply voltage signal, ground signal, other sensor signals, etc.

[0070] In one implementation, the normally open end of the output end of the first solid-state relay connected to the first port is connected to the vehicle harness signal, and when an open circuit fault is injected, the control to send an I / O control signal to the mechanical relay may include: controlling the I / O control signal sent to the mechanical relay to disconnect the first solid-state relay, so that the vehicle harness signal is interrupted. The vehicle harness signal may be, but is not limited to, any one of CAN, CANFD, MOST, Ethernet, LIN, and Flexray.

[0071] Specific, combined Figure 2 As shown, when an open circuit fault is injected, the CM and NO of the solid-state relay 1 can be disconnected through the controller IO port, and the harness signal input is interrupted to complete the open circuit fault injection.

[0072] In one implementation, the normally open end of the output end of the second solid-state relay connected to the second port of the mechanical relay is connected to the vehicle power supply voltage signal, and when a short power failure is injected, the control to send a port selection control signal to the mechanical relay may include: controlling to send a port selection control signal to the mechanical relay to disconnect the first port and connect the second port. The control to send an I / O control signal to the mechanical relay may include: controlling to send an I / O control signal to the mechanical relay to connect the second solid-state relay, so that the vehicle power supply voltage signal is connected to the vehicle electronic control unit.

[0073] Specific, combined Figure 2 When a short power fault is injected, the controller communication port controls the CM of port 1 of the mechanical relay to be disconnected from the NO, and the controller communication port controls the CM of port 2 of the mechanical relay to be connected to the NO. The controller IO port controls the CM of the solid-state relay 2 to be connected to the NO, and the vehicle ECU is connected to the vehicle VCC, thereby completing the short power fault injection. The duration can be achieved by controlling the connection time of the CM of the solid-state relay 2 to the NO.

[0074] In one implementation, the normally open end of the output end of the third solid-state relay connected to the third port of the mechanical relay is connected to the vehicle ground signal, and when a short-to-ground fault is injected, the control to send a port selection control signal to the mechanical relay may include: controlling to send a port selection control signal to the mechanical relay to disconnect the first port and connect the third port. The control to send an I / O control signal to the mechanical relay may include: controlling to send an I / O control signal to the mechanical relay to connect the third solid-state relay, so that the vehicle ground signal is connected to the vehicle electronic control unit.

[0075] Specific, combined Figure 2When a short-to-ground fault is injected, the controller communication port controls the CM of mechanical relay port 1 to be disconnected from NO, and the controller communication port controls the CM of mechanical relay port 3 to be connected to NO. The controller IO port controls the CM of solid-state relay 3 to be connected to NO, and the vehicle ECU is connected to vehicle GND, thereby completing the short-to-ground fault injection. The duration can be achieved by controlling the connection time of CM of solid-state relay 3 to NO.

[0076] In one implementation, combined Figure 2 When a short other signal fault is injected, the controller communication port controls the CM of mechanical relay port 1 to be disconnected from NO, and the controller communication port controls the CM of mechanical relay port 4 to be connected to NO. The controller IO port controls the CM of solid-state relay 4 to be connected to NO, and the vehicle ECU is connected to other signals to complete the short signal fault injection. The duration can be achieved by controlling the connection time of CM of solid-state relay 4 to NO.

[0077] In one implementation, the normally open end of the output end of the first solid-state relay connected to the first port is connected to the vehicle wiring harness signal. When a virtual connection fault is injected, the control to send an I / O control signal to the mechanical relay may include: controlling the mechanical relay to periodically and alternately send an I / O control signal that turns on and off the first solid-state relay to simulate virtual connection fault injection. The vehicle wiring harness signal may be, but is not limited to, any one of CAN, CANFD, MOST, Ethernet, LIN, and Flexray.

[0078] Specific, combined Figure 2 When a virtual connection fault is injected, the CM of the solid-state relay 1 is connected to the NO through the controller IO port, and then switched to disconnect the CM and NO. The above switching is repeated multiple times to simulate the virtual connection fault injection.

[0079] In the fault injection method described in this embodiment, the controller can directly control the mechanical relay and the solid-state relay through the control signal, so that the precise control of hard-line fault injection can be achieved through the automation of the electrical component circuit, including the fault injection time point, the fault duration length, etc.; this solution has high fault operation efficiency and good controllability, and can realize automatic fault injection through the program at the control end, which can effectively improve the fault test efficiency and test accuracy.

[0080] For the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0081] The above embodiments disclosed in the present invention describe the method in detail. The method of the present invention can be implemented by various devices. Therefore, the present invention also discloses a device, and a specific embodiment is given below for detailed description.

[0082] Figure 4 A schematic diagram of a fault injection device disclosed in an embodiment of the present invention, combined with Figure 4 As shown, the fault input device 40 may include:

[0083] The port selection module 401 is used to control the sending of a port selection control signal to the mechanical relay, wherein the port selection control signal is used to control the target port in the mechanical relay to be connected, and the port selection control signal selects the first port to be connected by default.

[0084] The I / O control module 402 is used to control the sending of an I / O control signal to the mechanical relay, so that the mechanical relay transmits the I / O control signal to the solid-state relay connected to the target port through the target port.

[0085] After receiving the I / O control signal, the solid-state relay controls the signal line connected to itself to be connected or disconnected with the vehicle electronic control unit based on the I / O control signal.

[0086] The fault injection device described in this embodiment can realize various types of fault injection; the mechanical relay controls the on and off of different ports to realize the solid-state relay through which the I / O signal passes, and the solid-state relay controls the connection between the wiring harness signal and the vehicle electronic control unit by on and off control; this solution can realize automatic control of line open and short circuit faults, precise control of time points, control of duration length, etc., thereby improving vehicle testing efficiency.

[0087] Any of the fault injection devices in the above embodiments includes a processor and a memory. The port selection module and the I / O control module in the above embodiments are stored in the memory as program modules, and the processor executes the program modules stored in the memory to implement corresponding functions.

[0088] The processor includes a kernel, which retrieves the corresponding program module from the memory. One or more kernels can be set, and the processing of the access data can be realized by adjusting the kernel parameters.

[0089] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0090] In an exemplary embodiment, a computer-readable storage medium is also provided, which can be directly loaded into the internal memory of a computer and contains software code. After being loaded and executed by a computer, the computer program can implement the steps shown in any embodiment of the above-mentioned fault injection method.

[0091] In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer and contains software codes. After being loaded and executed by a computer, the computer program can implement the steps shown in any embodiment of the fault injection method described above.

[0092] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0093] It should also 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 presence of other identical elements in the process, method, article or device including the elements.

[0094] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0095] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A fault injection device, characterized in that: It includes a power supply and a controller, a mechanical relay and a solid-state relay connected in sequence, each output port of the mechanical relay is correspondingly connected to a solid-state relay, wherein: The controller is used to send a port selection control signal and an I / O control signal to the mechanical relay; The mechanical relay is used to implement path selection of the I / O control signal based on the port selection control signal, so as to transmit the I / O control signal to the solid-state relay on the path; The solid-state relay is used to implement fault injection control based on the I / O control signal; The power supply is used to supply power to the controller, the mechanical relay and the solid-state relay; The communication control port of the controller is connected to the control end of the mechanical relay, the IO control port of the controller is connected to the common end of the mechanical relay, the normally open end of the mechanical relay is connected to the control end of the solid-state relay, the common end of the solid-state relay is connected to the vehicle electronic control unit, and the normally open ends of multiple solid-state relays are respectively connected to different signal lines of the vehicle; wherein, there is one IO control port; and the different signal lines of the vehicle include: vehicle wiring harness signal, vehicle power supply voltage signal, and vehicle ground signal.

2. A fault injection method, applied to the fault injection device according to claim 1, characterized in that: include: Controlling to send a port selection control signal to the mechanical relay, wherein the port selection control signal is used to control the target port in the mechanical relay to be connected, and the port selection control signal selects the first port to be connected by default; Controlling the sending of an I / O control signal to the mechanical relay, so that the mechanical relay transmits the I / O control signal to a solid-state relay connected to the target port through the target port; After receiving the I / O control signal, the solid-state relay controls the signal line connected to itself and the vehicle electronic control unit to be connected or disconnected based on the I / O control signal.

3. The fault injection method according to claim 2, characterized in that: The normally open end of the output end of the first solid-state relay connected to the first port is connected to the vehicle wiring harness signal, and when an open circuit fault is injected, the control sends an I / O control signal to the mechanical relay, including: The I / O control signal for disconnecting the first solid-state relay is controlled to be sent to the mechanical relay, so that the vehicle harness signal is interrupted.

4. The fault injection method according to claim 2, characterized in that: The normally open end of the output end of the second solid-state relay connected to the second port of the mechanical relay is connected to the vehicle power supply voltage signal, and when a short power failure is injected, the control sends a port selection control signal to the mechanical relay, including: Controlling the mechanical relay to send a port selection control signal to disconnect the first port and connect the second port; The control sends an I / O control signal to the mechanical relay, including: The control sends an I / O control signal to the mechanical relay to turn on the second solid-state relay, so that the vehicle power supply voltage signal is connected to the vehicle electronic control unit.

5. The fault injection method according to claim 2, characterized in that: The normally open end of the output end of the third solid-state relay connected to the third port of the mechanical relay is connected to the vehicle ground signal. When a short-to-ground fault is injected, the control sends a port selection control signal to the mechanical relay, including: Controlling the mechanical relay to send a port selection control signal to disconnect the first port and connect the third port; The control sends an I / O control signal to the mechanical relay, including: The control sends an I / O control signal to the mechanical relay to turn on the third solid-state relay, so that the vehicle ground signal is connected to the vehicle electronic control unit.

6. The fault injection method according to claim 2, characterized in that: The normally open end of the output end of the first solid-state relay connected to the first port is connected to the vehicle harness signal, and when a virtual connection fault is injected, the control sends an I / O control signal to the mechanical relay, including: The control device periodically and alternately sends an I / O control signal to the mechanical relay to turn on and off the first solid-state relay, so as to simulate virtual connection fault injection.

7. The fault injection method according to any one of claims 3 to 6, characterized in that: The duration of the fault injection is achieved by controlling the on or off time of the corresponding solid-state relay.

8. The fault injection method according to claim 3 or claim 6, characterized in that: The vehicle harness signal is any one of CAN, CANFD, MOST, Ethernet, LIN, and Flexray.

9. The fault injection method according to claim 2, characterized in that: The control sends a port selection signal to the mechanical relay, including: The control sends a CAN control signal to the mechanical relay, and the CAN control signal is used to instruct the solid-state relay which port is connected.

10. A fault injection device, applied to the fault injection device according to claim 1, characterized in that: include: A port selection module, used for controlling the sending of a port selection control signal to the mechanical relay, wherein the port selection control signal is used for controlling the target port in the mechanical relay to be connected, and the port selection control signal selects the first port to be connected by default; An I / O control module, configured to control the sending of an I / O control signal to the mechanical relay, so that the mechanical relay transmits the I / O control signal to a solid-state relay connected to the target port through the target port; After receiving the I / O control signal, the solid-state relay controls the signal line connected to itself to be connected or disconnected with the vehicle electronic control unit based on the I / O control signal.

Citation Information

Patent Citations

  • Whole vehicle controller fault automation injection method, controller, apparatus and test system thereof

    CN107491053A

  • Automobile engine ECU testing device

    CN209070362U

  • Diagnostic test controller apparatus

    US5798647A