Fault injection device, device group and storage medium
By designing an automated fault injection device, the existing problems of high cost and low consistency of hardware fault injection testing are solved, portable and easy-to-use hardware fault injection is realized, and testing efficiency and quality are improved.
Patent Information
- Application Number
- CN202310175368.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing hardware fault injection testing relies on manual operations, which is costly and has low test consistency, affecting efficiency and quality.
A fault injection device including a controller, fault generator and connector is designed. By injecting hardware faults in an automated way, it can independently and stably inject faults into the object under test, reducing dependence on professional instrumentation equipment and improving test efficiency. and quality.
It realizes portable and easy-to-use hardware fault injection, ensures the consistency of fault injection testing, reduces costs, and achieves accurate and reliable fault injection in a variety of scenarios, improving testing efficiency.
Smart Images

Figure CN118555231A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hardware testing, and in particular to a fault injection device, a device group and a storage medium. Background Art
[0002] Fault injection testing (FIT) is a testing technique that injects faults into the system to test the system's ability to respond to faults. Taking hardware fault injection into a single board as an example, the tester artificially constructs hardware faults in the bus, power supply, and device dimensions of the single board, observes the system's response to the fault, and evaluates the correctness of the system's handling of the fault.
[0003] At present, manual testing is the main method for hardware fault injection testing at the board level. Testers usually use instruments such as adjustable signal sources or signal generators to construct faults and inject faults into the system under test by welding, jumper wires, etc.
[0004] Since the current fault injection method has high requirements for manual operation and instrument professionalism, it not only consumes too much cost, but there are differences between different manually constructed faults, and the test consistency is low, which greatly affects the efficiency and quality of fault injection testing. Summary of the invention
[0005] The present application provides a fault injection device, a device group and a storage medium, which can improve the efficiency and quality of fault injection testing. The technical solution is as follows:
[0006] In a first aspect, a fault injection device is provided, the device comprising:
[0007] The fault injection device comprises a controller, at least one fault generator, a power module and at least one connector, the fault injection device is connected to the signal path to be tested through the connector, and the power module is used to supply power to the fault injection device;
[0008] The controller is used to input a first signal into a target fault generator of at least one fault generator in response to a fault selection signal, the fault selection signal indicating a target type of fault to be injected, and the target fault generator is used to provide a construction logic of the target type of fault to be injected;
[0009] The target fault generator is used to process the first signal to generate a second signal, where the second signal is the first signal where the fault to be injected occurs;
[0010] The connector is used to output a second signal to the signal path to be tested.
[0011] Based on this, the present application provides a portable, easy-to-use and efficient hardware fault injection device that can independently and stably inject hardware faults into the object to be tested, effectively ensuring the consistency between fault injection tests, without relying on professional instrumentation and equipment to manually construct faults, effectively reducing testing costs, and greatly improving the efficiency and quality of hardware fault injection testing.
[0012] In one possible implementation, the fault injection device is serially connected in the signal path to be tested through a plurality of connectors;
[0013] The multiple connectors include a first connector and a second connector. The first connector is connected to a first position in the signal path to be tested, and the second connector is connected to a second position in the signal path to be tested. The signal in the signal path to be tested is transmitted from the first position to the second position.
[0014] Through the above scheme, the fault injection device can be connected in series to the signal path to be tested, and perform targeted fault injection processing on various types of signals that may be transmitted in the signal path to be tested, thereby achieving accurate and reliable fault injection in various scenarios.
[0015] In one possible implementation, the controller is configured to:
[0016] Turning on the first connector, inputting the first signal received from the signal path to be tested through the first connector into the target fault generator; or,
[0017] The first connector is not turned on, and the first signal generated inside the fault injection device is input into the target fault generator.
[0018] Based on this, the fault injection device can cut off the original signal transmitted in the signal path to be tested, and instead input the abnormal data signal injected by the fault injection device to meet the test requirements in special scenarios.
[0019] In a possible implementation manner, a third connector of the at least one connector is connected to a target signal source outside the signal path to be tested; and the controller is used to:
[0020] Turning on the first connector, inputting the first signal received from the target signal source through the third connector into the target fault generator;
[0021] The target signal source refers to a signal generator outside the signal path to be tested and the fault injection device.
[0022] Based on this, the fault injection device provides more abundant signal source access methods, which not only broadens the application scenarios of the fault injection device, but also enriches the hardware testing solutions compatible with the device, effectively improving the testing efficiency.
[0023] In a possible implementation manner, the fault injection device further includes a wireless communication module connected to the controller, and the wireless communication module is used to send a fault selection signal received via wireless communication to the controller.
[0024] Based on this, the fault injection device can get rid of the application limitations brought by physical connections and communicate more flexibly with the host computer, so it can be applied in more test scenarios and is more practical.
[0025] In a possible implementation manner, the fault injection device further includes a selection button connected to the controller, and the selection button is used to send a fault selection signal to the controller in response to a physical operation.
[0026] Based on this, the fault injection device provided in the present application can be used as a portable tool offline. According to the local selection button included in the device, a variety of injectable fault types can be flexibly switched for hardware testing. Moreover, the method of using the local selection button to trigger the selection signal has no signal transmission delay, and the test efficiency can be significantly improved.
[0027] In one possible implementation, the at least one fault generator includes at least one of the following:
[0028] a first fault generator for providing a target magnitude voltage signal;
[0029] a second fault generator for providing a relative zero potential;
[0030] A third fault generator is used to change the frequency of the second signal synchronously with the frequency of the first signal.
[0031] In a possible implementation, a plurality of connectors in the fault injection device are used to output the second signal. If the second signal is a differential signal, two connectors are used to output the differential signal to the signal path to be tested, respectively.
[0032] Based on this, the fault injection device provided in the present application can implement richer fault injection behaviors under the configuration of double needles or multiple needles.
[0033] In a possible implementation, the connector is a physical probe, which can make direct and reliable electrical contact with the point to be tested, thereby stably transmitting the signal to the signal path to be tested.
[0034] In a second aspect, a fault injection device group is provided, the fault injection device group includes a plurality of fault injection devices, the plurality of fault injection devices are cascaded, the fault injection device includes a controller, at least one fault generator and at least one connector, and the fault injection device is connected to a signal path to be tested in a hardware system to be tested through the included connector;
[0035] The controller of the fault injection device is used to input the first signal into a target fault generator of at least one fault generator in response to a corresponding fault selection signal, the fault selection signal indicates a corresponding target type of the fault to be injected, and the target fault generator is used to provide a construction logic of the target type of the fault to be injected;
[0036] The target fault generator of the fault injection device is used to process the corresponding first signal to generate a corresponding second signal, where the second signal is the first signal where the fault to be injected occurs;
[0037] The connector of the fault injection device is used to output a second signal to the corresponding signal path to be tested.
[0038] The present application provides a portable, easy-to-use and efficient hardware fault injection device and device group, which can independently and stably inject hardware faults into the object to be tested, effectively ensure the consistency between fault injection tests, and do not need to rely on professional instrumentation and equipment to manually construct faults, effectively reducing testing costs and greatly improving the efficiency and quality of hardware fault injection testing.
[0039] In a possible implementation manner, multiple fault injection devices are cascaded via a bus or star connection.
[0040] By means of horizontal cascading, the application scenarios of the fault injection device are expanded from single-point injection and dual-point injection to multi-point injection, so that the device group provided in this application can be compatible with various hardware testing solutions, effectively improving the testing efficiency.
[0041] In one possible implementation, if multiple fault injection devices are cascaded via a bus-type connection, a first fault injection device among the multiple fault injection devices is used to receive a corresponding first fault selection signal; the first fault injection device sends a second fault selection signal to the second fault injection device according to the bus address of the cascaded second fault injection device.
[0042] The multiple fault injection devices are synchronized or sequentially controlled by the horizontal cascade property between them, thereby achieving the effect of injecting the same or different types of faults into multiple test points at the same time.
[0043] In a possible implementation manner, the type of the fault selection signal includes any one of the following: an analog signal, a digital signal, a switch signal, and a pulse signal.
[0044] Based on this, rich signal compatibility capabilities are provided, so that the fault injection device and fault injection device group provided in the present application can be used in various test scenarios.
[0045] In a possible implementation, the fault injection device group includes a battery module power module, and the battery module power module is used to drive and supply power to the multiple fault injection device groups.
[0046] One possible implementation is that each fault injection device in the fault injection device group includes a power supply module that can independently supply power so that the fault injection devices do not affect each other; another possible implementation is that the fault injection device group includes a main power supply module for providing unified power supply to each fault injection device to ensure the unified control and management of each fault injection device.
[0047] In one possible approach, the connector is a physical probe.
[0048] In a third aspect, a computer-readable storage medium is provided, which is used to store at least one program code, and the at least one program code is used to execute the steps performed by the fault injection device as described in the first aspect; or the steps performed by the fault injection device group as described in the second aspect.
[0049] In a fourth aspect, a computer program product comprising instructions is provided. When the computer program product is run on a controller, a fault injection device comprising the controller is caused to perform the steps performed by the fault injection device described in the first aspect; or the steps performed by any fault injection device in the group of fault injection devices described in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a structural schematic diagram of a fault injection device provided in an embodiment of the present application;
[0051] Figure 2 is a schematic diagram of a fault injection provided in an embodiment of the present application;
[0052] Figure 3 is a schematic diagram of another fault injection provided in an embodiment of the present application;
[0053] Figure 4 is a structural schematic diagram of another fault injection device provided in an embodiment of the present application;
[0054] Figure 5 It is a connection diagram of a fault injection device group provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0056] The embodiment of the present application provides a fault injection device that can be used to generate and inject hardware faults, solve the problems of excessive cost and low test consistency in hardware testing in related technologies, and effectively improve the efficiency and quality of fault injection testing.
[0057] Figure 1 is a schematic diagram of a fault injection device provided in an embodiment of the present application, see Figure 1 The fault injection device 100 includes: a controller 110, at least one fault generator 120 (including fault generators 1201-120N), at least one connector 130 and a power module 140, wherein N is the number of fault generators and N is a positive integer.
[0058] The functions of the various components of the fault injection device 100 are briefly introduced below.
[0059] The controller 110 is a device that can control the device to perform corresponding operations by changing the wiring of the circuit in the device or changing the circuit parameter value in accordance with the computer program instructions. The controller is the central component in the fault injection device 100 responsible for issuing "decision commands", which can coordinate and command the various components in the fault injection device 100 to perform corresponding operations. Exemplarily, the controller 110 can be a microcontroller unit (MCU), or a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof, and the present application is not limited thereto.
[0060] The hardware structure of the controller 110 is further described below. In some embodiments, the controller includes a processor and an interface circuit, wherein the interface circuit is used to receive instructions and transmit them to the processor. The processor is coupled to a memory, and the memory is used to store program codes. When the program codes are executed by the processor, the controller composed of the processor, the interface circuit and the memory implements the operation steps performed by the controller in the above fault injection device.
[0061] Optionally, there is at least one processor in the controller. It should be understood that in the embodiment of the present application, the processor may be a central processing unit (CPU) or other general-purpose processors. The processor may also be one or more integrated circuits for implementing the solution of the present application, such as a digital signal processor (DSP), a dedicated integrated circuit, a programmable logic device, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device or a discrete hardware component, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0062] Optionally, the memory in the control system may be one or more. The memory may be integrated with the processor or may be separated from the processor, which is not limited in the present application.
[0063] Among them, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. The memory may also be a volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0064] Among them, the fault generator 120 is used to provide the construction logic of the preset type of circuit fault. Exemplarily, the construction logic can be implemented in the form of a fault model. In the embodiment of the present application, the fault refers to the abstract representation of the hardware defect. It can be understood that there are many types of defects that cause hardware failures, and the fault effects caused by different defects in the circuit may be the same. For example, the defects of the circuit include aging of components or connections in the circuit, corrosion of the circuit caused by dust in the environment, electromagnetic interference in the environment, and many other different types, and the faults caused by them can be relatively fixed types such as short circuit, open circuit or signal burr. Therefore, by abstracting and classifying the characteristics of the fault, the faults that present the same fault effect in the circuit are abstracted into the same fault type, and the same fault model is used to describe the fault, which can greatly improve the efficiency of hardware testing. Exemplarily, the fault generator 120 is a fault model generation circuit, and the various components in the fault model generation circuit are connected with the construction logic of a certain type of fault, so as to provide a corresponding fault model in the form of a stable and reliable circuit firmware, and then be able to output a fault signal that has generated a corresponding fault.
[0065] In some embodiments, the fault model includes a level pull-up or pull-down, a short circuit of a positive electrode of a component or a negative electrode of a component, an open circuit, a frequency offset, and a signal glitch, etc., but the present application is not limited thereto. In some embodiments, any fault generator 120 can provide a fault model that integrates the above-mentioned multiple types, but the present application is not limited thereto.
[0066] In some embodiments, the fault generator 120 includes at least one of the following:
[0067] 1. A first fault generator for providing a target voltage signal. For example, the first fault generator is a power supply that provides a target voltage. For another example, the first fault generator is a power converter that can perform voltage regulation, constant current regulation, frequency modulation, phase modulation, etc., but the present application is not limited thereto. The first fault generator can be used to simulate signal glitches, different levels, pulse signals, and other types of faults.
[0068] 2. A second fault generator for providing a relative zero potential, that is, the second fault generator is used to provide a ground signal, thereby simulating a fault of the type of circuit open.
[0069] 3. A third fault generator for making the frequency of the second signal change synchronously with the frequency of the first signal, for example, a phase-locked loop circuit, which uses an external input signal to control the frequency and phase of the oscillation signal inside the loop, so that the frequency of the output signal can synchronously follow the frequency change of the input signal.
[0070] In some embodiments, the above-mentioned multiple fault generators can be integrated into a more complex fault generation module to simulate more complex faults, but the present application is not limited thereto.
[0071] The fault injection device 100 is connected to the signal path to be tested via a connector 130. The connector 130 is used to output the fault signal generated by the fault injection device 100 to the signal path to be tested. Figure 1 The connector 130 may be a physical probe. Depending on different application scenarios, the physical probe may be an in-circuit test (ICT) probe or a radio frequency probe, etc., but the present application is not limited thereto. The physical probe may make direct and reliable electrical contact with the point to be tested, thereby stably transmitting the signal to the signal path to be tested.
[0072] In some embodiments, the form and structure of the connector 130 may be different depending on factors such as the application object, frequency, power, and application environment. The connector 130 may include a physical probe and a structural member for fixing the position of the physical probe. In some embodiments, the fault injection device 100 may be integrated into other test systems. Through multiple connectors with structural members, the physical positions of multiple physical probes may be fixed, thereby reducing the complexity of switching operations between different physical probes.
[0073] Among them, the power module 140 is used to power the fault injection device 100, so that the fault injection device 100 can be used as a portable device, and can achieve fault generation and injection functions without being connected to an external power source. The power module 140 can convert other forms of energy into electrical energy and supply it to the fault injection device. Exemplarily, the power module 140 refers to a battery module, which can convert the stored chemical energy into electrical energy to power the fault injection device 100. The power module 140 can be a battery module built into the fault injection device, or it can be a power source connected from the outside, and the present application is not limited to this.
[0074] In some embodiments, the power module 140 includes a power management unit, which is used to implement power conversion, power distribution, detection and other power management operations. The power management unit can convert source voltage and current into power that can be used by load devices such as controllers, microprocessors, or sensors.
[0075] The present application provides a portable, easy-to-use and efficient hardware fault injection device, which can independently and stably inject hardware faults into the object to be tested, effectively ensuring the consistency between fault injection tests, without relying on professional instrumentation and equipment to manually construct faults, effectively reducing testing costs, and greatly improving the efficiency of hardware fault injection.
[0076] The operating principle of the fault injection device 100 is further introduced below in combination with the functions of the various components of the fault injection device 100 .
[0077] In the embodiment of the present application, the controller 110 is configured to input the first signal to a target fault generator in the at least one fault generator 120 in response to a fault selection signal.
[0078] The fault selection signal indicates the target type of the fault to be injected, and the target fault generator is used to provide the construction logic of the target type of fault to be injected. The target type can be any of the above fault types, and accordingly, the target fault generator can be any of the above fault generators, which will not be described in detail in this application.
[0079] In some embodiments, the fault selection signal can be triggered by a variety of methods. The following describes the process of the controller 110 selecting a target fault generator in combination with different triggering methods.
[0080] Method 1: Button trigger.
[0081] In some embodiments, reference Figure 1 , the fault injection device 100 also includes a selection button 150 connected to the controller 110, and the selection button 150 is used to send a fault selection signal to the controller 110 in response to a physical operation. Exemplarily, the selection button is an actual physical button, and the physical operation can be a pressing operation on the physical button; the selection button is displayed in the form of an icon on the touch screen, and the physical operation can be a click or slide operation on the selection button in the touch screen, which is not limited in this application. Exemplarily, the selection button 150 is connected to the input and output interface (IO port) of the controller. The selection button 150 includes a plurality of sub-buttons, each of which corresponds to a fault type. When each sub-button is triggered, the level state of the corresponding IO port is changed, and the controller 110 detects the level change, that is, determines which button is pressed according to the level state to determine which fault type is selected, thereby inputting a first signal to the target fault generator corresponding to the fault type.
[0082] Based on this, the fault injection device provided in the present application can be used as a portable tool offline. According to the selection buttons on the device, a variety of injectable fault types can be flexibly switched for hardware testing. Moreover, the method of triggering the selection signal through the selection buttons on the device has no signal transmission delay, and the test efficiency can be significantly improved.
[0083] Method 2: Triggered by the host computer.
[0084] In other embodiments, the fault selection signal comes from a host computer. The host computer can send a control instruction to the subordinate computer, and the subordinate computer interprets the control instruction to obtain a corresponding timing signal to control the corresponding device. The subordinate computer periodically reads the status data (e.g., analog quantity) of the controlled device and converts it into a digital signal to feed back to the host computer. Figure 1 The host computer may be any computing device that communicates with the controller 110 of the fault injection device. The controller 110, as a lower computer, can interpret the received fault selection instruction, thereby inputting a first signal to the corresponding target fault generator.
[0085] The fault injection device provided by the present application can be controlled by a host computer to achieve online use. When the tester needs to switch between multiple injectable fault types, the triggering sequence of multiple faults can be planned based on the powerful computing and programming capabilities of the host computer, thereby achieving fault injection under more complex logic, thereby improving test efficiency.
[0086] In other embodiments, the communication mode between the host computer and the controller 110 may be wireless communication. The fault injection device 100 further includes a wireless communication module connected to the controller 110, and the wireless communication module is used to send the fault selection signal received by wireless communication to the controller 110. The wireless communication module can wirelessly communicate with the host computer according to a preset communication protocol, for example, the wireless communication module is a Bluetooth module, but the present application is not limited thereto.
[0087] Based on this, the fault injection device can get rid of the application limitations brought by physical connections and communicate more flexibly with the host computer, so it can be applied in more test scenarios and is more practical.
[0088] In the embodiment of the present application, the target fault generator is used to process the first signal to generate a second signal, where the second signal is the first signal with the fault to be injected. The connector 130 is used to output the second signal to the connected signal path to be tested.
[0089] In some embodiments, reference Figure 1 The connector 130 and the fault generator 120 are connected via an output selection circuit 160, and the output selection circuit 160 is used to connect the target fault generator and the connector 130 in response to the control signal of the controller 110, so that the second signal generated by the target fault generator is output from the connector 130 to the signal path to be tested. In some embodiments, the output selection circuit 150 may not be set separately, and when the controller 110 inputs the first signal to the target fault generator, it only needs to control the other unselected fault generators to be in an open circuit state, for example, making the connection switch between the controller and the other unselected fault generators in an open state. Figure 1 Components 150 and 160 outlined with dotted lines are optional.
[0090] According to different numbers of connectors, the fault injection device 100 can be applied to different fault injection scenarios.
[0091] In some embodiments, the fault injection device 100 is used to output a single-channel signal. Figure 2 In some embodiments, the fault injection device 100 includes a connector, which is a single-pin physical probe 210, for implementing fault injection into a test point 221 in a hardware system 220. Exemplarily, the hardware system 220 is a single board, and the test point may be an input pin 1 of a component 1 in the single board.
[0092] Based on this, for the scenario of single-point fault injection, providing stable output with a simple device structure can avoid the unknown fault risks brought by complex circuit structure.
[0093] In some other embodiments, the second signal output by the connector in the fault injection device is a differential signal, which involves outputting the differential signal to the signal path to be tested by two connectors respectively. Figure 3 In some embodiments, the fault injection device 100 includes a physical probe 310 and a physical probe 320, each of which can be connected to one or more fault generators to achieve richer fault outputs. The physical probe 310 and the physical probe 320 can be used to respectively perform fault injection on the test point 331 and the test point 332 in the hardware system 330 to be tested. For example, if the output second signal is a differential signal, the physical probe 310 can output the first path of the differential signal to the test point 331, and the physical probe 320 can output the second path of the differential signal to the test point 332. Exemplarily, the hardware system to be tested is a single board, the test point 331 can be the input pin 1 of the component 1 in the single board, and the test point 332 can be the input pin 2 of the component 1 in the single board.
[0094] Based on this, the fault injection device provided in the present application can implement richer fault injection behaviors under the configuration of double needles and multiple needles.
[0095] exist Figure 1 Based on the provided fault injection device 100 , the present application provides a structural schematic diagram of another fault injection device. Figure 4 is a schematic diagram of the structure of another fault injection device provided in an embodiment of the present application, see Figure 4The fault injection device 400 includes: a controller 110, a plurality of fault generators 120, a plurality of connectors and a power supply module 140. The fault injection device 400 is serially connected in a signal path to be tested through the plurality of connectors.
[0096] See also Figure 4 The multiple connectors include a first connector and a second connector. The first connector is connected to a first position in the signal path to be tested, and the second connector is connected to a second position in the signal path to be tested. The signal in the signal path to be tested is transmitted from the first position to the second position.
[0097] In some embodiments, the fault injection device 400 has an input selection circuit 410, referring to Figure 4 The first connector and the fault generator 120 may be connected by an input selection circuit 410, and the input selection circuit 410 is used to connect the target fault generator and the first connector in response to a control signal of the controller 110, so that the first signal obtained through the first connector can be input into the target fault generator. Figure 5 , the output selection circuit is introduced in reference Figure 1 The corresponding content will not be elaborated here.
[0098] In some embodiments, the fault injection device 400 may be connected in series to the signal path to be tested by using flying wires or matching connectors. The present application is not limited to the above implementations.
[0099] In the embodiment of the present application, the fault input device can obtain the first signal from a variety of signal sources. The various signal sources are introduced below.
[0100] Signal source 1. Signal path to be tested.
[0101] In some embodiments, since the fault injection device 400 is connected in series in the signal path to be tested, when the fault injection device 400 does not perform the fault signal generation and output behavior, the fault injection device 400 is equivalent to a transmission wire. When the fault injection device 400 is working, the controller 110 can be used to conduct the first connector and input the first signal received from the signal path to be tested through the first connector into the target fault generator.
[0102] The above method is equivalent to injecting faults into the original signal transmitted in the signal path to be tested. Based on this principle, in some embodiments, the fault injection device 400 can perform targeted fault injections on original signals of different types.
[0103] In some embodiments, when the first signal is a clock signal, the controller 110 inputs the clock signal into the target fault generator, and the target fault generator generates a second signal including a clock fault based on the clock signal, and the clock fault includes any of the following: phase jump in a multi-phase circuit, phase loss in a multi-phase circuit, and frequency deviation. Among them, phase jump refers to a phase jump in a multi-phase (for example, three-phase) circuit; phase loss refers to the loss of a phase in a multi-phase (for example, three-phase) circuit; frequency deviation refers to the deviation of the frequency in the circuit from the standard frequency.
[0104] In other embodiments, when the first signal is a serial data signal, the controller 110 inputs the serial data signal into a target fault generator, and the target fault generator generates a second signal including a data transmission fault based on the serial data signal, and the data transmission fault includes any of the following: bit error, frame loss, and bit inversion.
[0105] Through the above scheme, the fault injection device can be connected in series to the signal path to be tested, and perform targeted fault injection processing on various types of signals that may be transmitted in the signal path to be tested, thereby achieving accurate and reliable fault injection in various scenarios.
[0106] Signal source 2, inside the fault injection device.
[0107] In some embodiments, the fault injection device 400 is connected in series to the signal path to be tested, and the fault injection device 400 does not obtain an external input signal, but generates a signal based on a power module or an internal signal generating device inside the fault injection device, thereby inputting the internally generated signal as a first signal into the selected target fault generator. That is, the controller 110 is also used to not conduct the first connector, and input the first signal generated inside the fault injection device into the target fault generator.
[0108] Based on this, the fault injection device can cut off the original signal transmitted in the signal path to be tested, and instead input the abnormal data signal injected by the fault injection device to meet the test requirements in special scenarios.
[0109] Signal source 3: a signal source other than the signal path to be tested and the fault injection device.
[0110] In some embodiments, the fault injection device 400 is connected to a target signal source outside the signal path under test through a third connector of the at least one connector, wherein the target signal source may be a signal generator independent of the signal path under test and the fault injection device.
[0111] In some embodiments, the signal path to be tested is in the hardware system to be tested. For example, the hardware system to be tested is a single board. The first position of the signal path to be tested is the input pin 1 of the component 1, and the second position of the signal path to be tested is the output pin 2 of the component 1. Accordingly, the fault injection device can be used to test the function of the component 1. The target signal source can be a signal accessed from other positions in the hardware system to be tested. This method is equivalent to cross-line access to signals of other circuits or hardware modules. Therefore, for the signal source 3, the control 110 can be used to turn on the first connector and input the first signal received from the target signal source through the third connector into the target fault generator.
[0112] Based on this, the fault injection device provides more abundant signal source access methods, which not only broadens the application scenarios of the fault injection device, but also enriches the hardware testing solutions compatible with the device, effectively improving the testing efficiency.
[0113] In some application scenarios, it involves injecting the same or different types of faults into multiple test points at the same time. To meet such requirements, the present application proposes several extended application methods based on the fault injection device 100 .
[0114] Expansion application method 1: Expansion of the number of interfaces - cable
[0115] In some embodiments, the connector of the fault injection device can be replaced from a physical probe to a flat cable to achieve the expansion of the number of interfaces. Accordingly, the number of fault generators inside the fault injection device is increased synchronously to support the multi-channel output of the flat cable. The function and structure of the fault injection device can refer to the aforementioned Figures 1 to 4 The introduction of , I will not elaborate on it here.
[0116] Among them, the flat cable is also called the flexible circuit board cable, which has the characteristics of being movable, bent, and twisted without damaging the wire, so it can conform to different shapes and special package sizes. The flat cable has excellent assembly reliability and quality, so the extended application method 1 can be well applied to the scene of testing with a special test fixture.
[0117] Extended application method 2: Expansion of the number of fault injection devices - Fault injection device group
[0118] In some embodiments, the above-mentioned multiple fault injection devices 100 can be combined into a fault injection device group, and the synchronization or sequential control of the multiple fault injection devices can be achieved through the horizontal cascading nature between the multiple fault injection devices, thereby achieving the effect of injecting the same or different types of faults into multiple test points at the same time.
[0119] In the embodiment of the present application, a connection diagram of a fault injection device group is provided. Figure 5The fault injection device group 500 includes multiple fault injection devices 100, which are cascaded. The fault injection device includes a controller 110, at least one fault generator 120 and at least one connector 130. Each fault injection device 100 is connected to a signal path to be tested in the hardware system to be tested through the included connector 130.
[0120] Among them, the controller 110 of the fault injection device 100 is used to input the first signal into the target fault generator of at least one fault generator included in response to the corresponding fault selection signal, the fault selection signal indicates the corresponding target type of the fault to be injected, and the target fault generator is used to provide the construction logic of the target type of the fault to be injected. The target fault generator of the fault injection device 100 is used to process the corresponding first signal to generate the corresponding second signal, and the second signal is the first signal of the fault to be injected. The connector 130 of the fault injection device 100 is used to output the second signal to the corresponding signal path to be tested. The working principle and structure of the fault injection device 100 in the above-mentioned fault injection device group 500 can refer to the introduction in the previous text and will not be repeated here.
[0121] The principle of synchronously controlling the fault injection devices 100 in the fault injection device group 500 is introduced below.
[0122] In some embodiments, multiple fault injection devices are cascaded via a bus or star connection. Figure 5 If multiple fault injection devices 100 are cascaded through a bus connection, the first fault injection device 100A among the multiple fault injection devices is used to receive the corresponding first fault selection signal; the first fault injection device 100A sends the second fault selection signal to the second fault injection device 100B according to the bus address of the cascaded second fault injection device 100B. Similarly, the second fault injection device 100B sends the third fault selection signal to the third fault injection device according to the bus address of the cascaded third fault injection device 100C.
[0123] The first fault selection signal may carry the bus addresses of the fault injection devices cascaded to each other, so as to realize the step-by-step transmission of the fault selection signal. In some embodiments, the first fault selection signal carries the triggering sequence of the fault injection devices cascaded to each other, so that the fault injection devices cascaded to each other can perform fault injection in sequence or synchronously according to the indicated timing. The first fault selection signal may be sent by the host computer, but the present application is not limited thereto.
[0124] In some embodiments, the type of the fault selection signal includes any of the following: an analog signal, a digital signal, a switch signal, and a pulse signal. Based on this, a rich signal compatibility capability is provided, so that the fault injection device and the fault injection device group provided by the present application can be used in various test scenarios.
[0125] In some embodiments, the fault injection device group 500 includes a power module, which is used to supply power to the fault injection device group. One possible implementation is that, with reference to the structure of the fault injection device 100, each fault injection device of the fault injection device group 500 includes a power module capable of independently supplying power, so that each fault injection device does not affect each other; another possible implementation is that the fault injection device group 500 includes a main power module, which is used to provide unified power supply to each fault injection device, so as to ensure the uniformity of control and management of each fault injection device.
[0126] In the embodiment of the present application, the physical probes mentioned above can be disassembled or replaced as needed.
[0127] In some embodiments, the fault injection device provided in the present application can not only be used as a portable device alone, but can also be integrated into other test systems as a component, for example, integrated with a manipulator, so as to realize the automation of fault injection, reduce the need for manual operation, and further improve the efficiency of testing.
[0128] The present application provides a portable, easy-to-use and efficient hardware fault injection device and device group, which can independently and stably inject hardware faults into the object to be tested, effectively ensure the consistency between fault injection tests, and do not need to rely on professional instrumentation and equipment to manually construct faults, effectively reducing testing costs and greatly improving the efficiency of hardware fault injection.
[0129] In addition, it has the ability to replace and disassemble physical probes, cables and a variety of optional connectors. Through horizontal cascading, the application scenarios of the fault injection device are expanded from single-point injection and dual-point injection to multi-point injection, so that the device and device group provided in this application can be compatible with various hardware testing solutions, effectively improving the testing efficiency.
[0130] In some embodiments, the fault injection device provided by the present application may be implemented in a pen-shaped form, so as to be handheld or integrated into other test systems or fault injection systems. For updating of fault types, existing fault types may be upgraded or new fault types may be added by upgrading the fault generation circuit or its firmware.
[0131] It should be noted that, when implementing the corresponding steps, the fault injection device provided in the above embodiment only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0132] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the control instructions and other information involved in this application are obtained with full authorization.
[0133] In the present application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is the quantity and execution order limited. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the various described examples, a first fault generator may be referred to as a second fault generator, and similarly, a second fault generator may be referred to as a first fault generator. Both the first fault generator and the second fault generator may be fault generators, and in some cases, may be separate and different fault generators.
[0134] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple fault generators means two or more fault generators.
[0135] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0136] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a program product. The program product includes one or more program instructions. When the program instructions are loaded and executed on a computing device, all or part of the processes or functions in the embodiments of the present application are generated.
[0137] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0138] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A fault injection device, characterized in that: The fault injection device comprises a controller, at least one fault generator, a power module and at least one connector, the fault injection device is connected to the signal path to be tested through the connector, and the power module is used to supply power to the fault injection device; The controller is used to input a first signal into a target fault generator in the at least one fault generator in response to a fault selection signal, wherein the fault selection signal indicates a target type of a fault to be injected, and the target fault generator is used to provide a construction logic of the target type of fault to be injected; The target fault generator is used to process the first signal to generate a second signal, where the second signal is the first signal where the fault to be injected occurs; The connector is used to output the second signal to the signal path to be tested.
2. The device according to claim 1, characterized in that The fault injection device is connected in series in the signal path to be tested via a plurality of the connectors; The multiple connectors include a first connector and a second connector, the first connector is connected to a first position in the signal path to be tested, the second connector is connected to a second position in the signal path to be tested, and the signal in the signal path to be tested is transmitted from the first position to the second position.
3. The device according to claim 2, characterized in that The controller is used to: Turning on the first connector, inputting the first signal received from the signal path to be tested through the first connector into the target fault generator; or, The first connector is not turned on, and the first signal generated inside the fault injection device is input into the target fault generator.
4. The device according to claim 2 or 3, characterized in that A third connector of the at least one connector is connected to a target signal source outside the signal path to be tested; and the controller is used for: Turning on the first connector, inputting the first signal received from the target signal source through the third connector into the target fault generator; The target signal source refers to a signal generator outside the signal path to be tested and the fault injection device.
5. The device according to any one of claims 1 to 4, characterized in that The fault injection device further comprises a wireless communication module connected to the controller, and the wireless communication module is used to send the fault selection signal received via wireless communication to the controller.
6. The device according to any one of claims 1 to 5, characterized in that The fault injection device further includes a selection button connected to the controller, and the selection button is used to send the fault selection signal to the controller in response to a physical operation.
7. The device according to any one of claims 1 to 6, characterized in that The at least one fault generator includes at least one of the following: a first fault generator for providing a target magnitude voltage signal; a second fault generator for providing a relative zero potential; A third fault generator is used for causing the frequency of the second signal to change synchronously with the frequency of the first signal.
8. The device according to any one of claims 1 to 7, characterized in that The plurality of connectors in the fault injection device are used to output a second signal. If the second signal is a differential signal, two of the connectors are used to output the differential signal to the signal path to be tested, respectively.
9. The device according to any one of claims 1 to 8, characterized in that The connector is a physical probe.
10. A fault injection device group, characterized in that: The fault injection device group includes a plurality of fault injection devices, the plurality of fault injection devices are cascaded, the fault injection devices include a controller, at least one fault generator and at least one connector, and the fault injection devices are connected to a signal path to be tested in the hardware system to be tested through the included connector; The controller of the fault injection device is used to input a first signal into a target fault generator of at least one fault generator in response to a corresponding fault selection signal, wherein the fault selection signal indicates a corresponding target type of a fault to be injected, and the target fault generator is used to provide a construction logic of a fault to be injected of the target type; The target fault generator of the fault injection device is used to process the corresponding first signal to generate a corresponding second signal, where the second signal is the first signal in which the fault to be injected occurs; The connector of the fault injection device is used to output the second signal to the corresponding signal path to be tested.
11. The device assembly according to claim 10, characterized in that: The multiple fault injection devices are cascaded in a bus or star connection manner.
12. The device assembly according to claim 10 or 11, characterized in that: If the multiple fault injection devices are cascaded via a bus connection, a first fault injection device among the multiple fault injection devices is used to receive a corresponding first fault selection signal; The first fault injection device sends a second fault selection signal to the second fault injection device according to the bus address of the cascaded second fault injection device.
13. The device assembly according to any one of claims 10 to 12, characterized in that: The type of the fault selection signal includes any one of the following: an analog signal, a digital signal, a switch signal and a pulse signal.
14. The device assembly according to any one of claims 10 to 13, characterized in that: The fault injection device group includes a power supply module, and the power supply module is used to supply power to the fault injection device group.
15. The device assembly according to any one of claims 10 to 14, characterized in that: The connector is a physical probe.
Citation Information
Cited By
Real-time automatic detection method for baseband and radio frequency faults
CN119276394A
