Simulation test system based on analog quantity fault injection

By designing a simulation test system based on analog fault injection, using relay network circuits and FPGA main control chips, the complex functional requirements for multi-channel and multi-type signal processing modules are realized, and the lack of analog signal fault injection equipment in the existing technology is solved. problems and improve the reliability and safety of the module.

CN118534787APending Publication Date: 2024-08-23INSTR TECH & ECONOMY INST P R CHINA

Patent Information

Application Number
CN202410535754.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology lacks analog signal fault injection equipment that meets the complex functional requirements of multi-channel and multi-type signal processing modules, making it difficult to effectively test the module's fault tolerance and response strategies when sensor failures occur.

Method used

A simulation test system based on analog fault injection is designed, including connector input/output interface, relay network circuit, electrical network and FPGA main control chip. The physical layer fault simulation circuit and electrical layer fault simulation circuit are built through the relay network circuit. , realizing fault injection of voltage analog signals and current analog signals.

Benefits of technology

It provides an important means of verification and auxiliary design, improves the reliability and safety of multi-channel and multi-type signal processing modules, enhances the real-time and accuracy of testing, and can simulate multiple fault scenarios to verify the product's diagnostic capabilities and Fail-safe oriented capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534787A
    Figure CN118534787A
Patent Text Reader

Abstract

The invention discloses a simulation test system based on analog quantity fault injection, and the system comprises a connector input / output interface which is connected to a relay network circuit and is used for the input and output of analog quantity signals, and the analog quantity signals comprise a voltage analog quantity and a current analog quantity; the relay network circuit is connected to the FPGA main control chip through the relay driving circuit, the relay network is used for building a physical layer fault simulation circuit of an analog quantity signal through a relay, and the FPGA main control chip sends a control instruction to the relay electric appliance driving circuit to realize driving management and control of the relay network circuit; the relay network circuit is connected to the FPGA main control chip through an electrical network; and the electrical network is used for realizing electrical layer fault simulation of the analog quantity signal according to a control instruction of the FPGA main control chip. According to the invention, injection and state monitoring services of voltage analog quantity signal faults and current analog quantity signal faults can be provided, and simulation requirements of physical layer fault simulation and electrical layer fault simulation are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of fault injection, and in particular to a simulation test system based on analog fault injection. Background Art

[0002] When it comes to safe operation, a large number of electronic and electrical technologies are used. Among them, the most critical safety-related systems generally use high-reliability multi-channel and multi-type signal processing modules. Influenced by the particularity of the industrial field, in order to ensure the reliability and safety of the module, it is necessary to actively carry out tests under various fault conditions, and comprehensive test verification work needs to be carried out at each development stage. The fault injection method provides an important verification and auxiliary design means for the multi-channel and multi-type signal processing modules of safety-related systems.

[0003] At present, the functions of multi-channel and multi-type signal processing modules are complex, and sensors are often important inputs of such modules. Therefore, it is necessary to test the fault tolerance and response strategies of such modules when various sensor failures occur. However, there is no analog signal fault injection device in the prior art that meets the complex functional requirements of multi-channel and multi-type signal processing modules and has comprehensive functions.

[0004] Therefore, how to provide a multifunctional analog fault injection simulation test system is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] In view of the above research status and existing problems, the present invention provides a simulation test system based on analog fault injection, which can realize voltage analog signal fault injection simulation and current analog signal fault injection simulation.

[0006] The present invention provides a simulation test system based on analog fault injection, comprising: a connector input / output interface, a relay network circuit, an electrical network, a relay drive circuit and an FPGA main control chip; wherein,

[0007] The connector input / output interface is connected to the relay network circuit and is used for inputting and outputting analog signals, wherein the analog signals include voltage analog and current analog;

[0008] The relay network circuit is connected to the FPGA main control chip through the relay drive circuit. The relay network is used to build a physical layer fault simulation circuit of the analog signal through the relay. The FPGA main control chip sends a control instruction to the relay electrical drive circuit to realize the drive control of the relay network circuit.

[0009] The relay network circuit is connected to the FPGA main control chip through the electrical network, and the electrical network is used to realize electrical layer fault simulation of analog signals according to control instructions of the FPGA main control chip.

[0010] Preferably, the physical layer fault simulation circuit includes a circuit break simulation circuit: the connector input interface receives an analog signal, which is output from the connector output interface through a circuit break relay and a resistor network in sequence; the relay drive circuit receives a circuit break frequency setting instruction of the circuit break relay sent by the FPGA main control chip, and controls the circuit break simulation circuit to periodically open and close.

[0011] Preferably, the physical layer fault simulation circuit includes a short-circuit simulation circuit: the connector input interface receives an analog signal, which passes through a first-level circuit-breaking relay, a ground short-circuit relay, a resistor network and a ground wire that needs to be short-circuited in sequence, and is connected to the connector input interface at the same time; the relay drive circuit receives a short-circuit relay circuit-breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

[0012] Preferably, the physical layer fault simulation circuit includes a short-circuit simulation circuit: the first connector input interface receives an analog signal, and is connected to the second connector input interface that needs to be short-circuited through a first-level circuit-breaking relay, a signal short-circuit relay and a resistor network in sequence, and is connected to the first connector output interface and the second connector output interface at the same time; the relay drive circuit receives the short-circuit relay circuit-breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

[0013] Preferably, the physical layer fault simulation circuit comprises a serial impedance simulation circuit: the connector input interface receives the analog signal, and the analog signal is output from the connector output interface through the circuit breaker relay and the sliding resistor in sequence.

[0014] Preferably, the physical layer fault simulation circuit includes a parallel impedance simulation circuit: the connector input interface receives an analog signal, which passes through a primary circuit breaker relay, a ground short-circuit relay, a sliding rheostat and a ground wire that needs to be short-circuited in sequence, and is connected to the connector input interface at the same time; the relay drive circuit receives a short-circuit relay circuit breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

[0015] Preferably, the parallel impedance simulation circuit includes: a first connector input interface receives an analog signal, which is connected to a second connector input interface that needs to be short-circuited through a first-level circuit-breaking relay, a signal short-circuit relay and a sliding rheostat in sequence, and is connected to a first connector output interface and a second connector output interface at the same time; the relay drive circuit receives a short-circuit relay circuit-breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

[0016] Preferably, the electrical network includes: a connector input interface receives an analog signal, which is connected to the FPGA main control chip through a signal conditioning circuit and an ADC circuit in sequence; after the FPGA main control chip sends a signal amplitude adjustment and / or noise superposition fault injection instruction, it is output from the connector output interface after passing through a CDA circuit and a signal conditioning circuit; the electrical layer fault simulation includes: signal common mode fault simulation, signal differential mode fault simulation, internal signal interference simulation, internal signal adjustment simulation, external signal intervention simulation and external signal replacement simulation.

[0017] Preferably, the simulation test system includes a host computer system, including:

[0018] An information management module, used to perform creation, loading and deletion operations on the fault directory tree;

[0019] A fault configuration module, used for receiving command configuration selection operations of a fault sequence, including connector input / output interface channel configuration, physical layer and / or electrical layer fault injection configuration and fault sequence execution order configuration;

[0020] The fault execution module is used to send fault sequence configuration to the corresponding connector input / output interface channel, monitor and display the channel execution status.

[0021] Preferably, the fault execution module is used to execute the following steps:

[0022] Send fault sequences in parallel to the selected connector input / output interface channels respectively according to the physical layer and / or electrical layer fault injection configuration;

[0023] After sending the first fault sequence, monitor the execution status of the current channel to determine whether the execution is completed; after the current channel completes the execution of the first fault sequence, configure the execution order of the fault sequence and send the corresponding second fault sequence to the current channel;

[0024] For each channel that chooses to send a fault sequence, a thread is used to maintain the execution and monitoring of its fault sequence.

[0025] Compared with the prior art, it has the following beneficial effects:

[0026] The present invention can provide an important verification and auxiliary design means for high-reliability multi-channel and multi-type signal processing modules. To ensure the reliability and safety of the module, some possible faults are simulated and inserted to verify the product's diagnostic capability and fault-safety guidance capability, thereby effectively improving the real-time and accuracy of test verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] 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 prior art descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work.

[0028] Figure 1 A principle block diagram of a simulation test system based on analog fault injection provided by an embodiment of the present invention;

[0029] Figure 2 A circuit diagram for simulating a circuit breaker provided by an embodiment of the present invention;

[0030] Figure 3 A short-circuit to ground simulation circuit diagram provided by an embodiment of the present invention;

[0031] Figure 4 A signal short circuit simulation circuit diagram provided by an embodiment of the present invention;

[0032] Figure 5 A serial impedance simulation circuit diagram provided by an embodiment of the present invention;

[0033] Figure 6 A circuit diagram of parallel impedance simulation to ground provided by an embodiment of the present invention;

[0034] Figure 7 A circuit diagram for simulating parallel impedance between signals provided by an embodiment of the present invention;

[0035] Figure 8 An electrical network architecture diagram provided for an embodiment of the present invention;

[0036] Fig. 9 A schematic diagram of an analog signal electrical signal failure implementation provided by an embodiment of the present invention;

[0037] Fig.10 A diagram of the logical architecture of the host computer system provided by an embodiment of the present invention;

[0038] Fig.11 The operating architecture diagram of the host computer system provided by the embodiment of the present invention;

[0039] Fig.12A functional module structure diagram of the host computer system provided by an embodiment of the present invention;

[0040] Fig.13 A schematic diagram of a host computer system fault process management interface provided by an embodiment of the present invention;

[0041] Fig.14 A schematic diagram of a host computer system fault injection management interface provided by an embodiment of the present invention;

[0042] Fig.15 A flowchart of the execution order of the host computer system fault sequence thread provided by an embodiment of the present invention;

[0043] Fig.16 A schematic diagram of an online monitoring interface for fault injection into a host computer system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] 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.

[0045] like Figure 1 As shown, the simulation test system based on analog fault injection disclosed in the embodiment of the present invention includes: a connector input / output interface, a relay network circuit, an electrical network, a relay drive circuit and an FPGA main control chip; the connector input / output interface is connected to the relay network circuit, which is used for input and output of analog signals, and the analog signals include voltage analog and current analog; the relay network circuit is connected to the FPGA main control chip through the relay drive circuit, and the relay network is used to build a physical layer fault simulation circuit of the analog signal through the relay, and the FPGA main control chip sends a control instruction to the relay electrical drive circuit to realize drive control of the relay network circuit; the relay network circuit is connected to the FPGA main control chip through the electrical network, and the electrical network is used to realize electrical layer fault simulation of the analog signal according to the control instruction of the FPGA main control chip.

[0046] The analog signal fault injection device of this embodiment realizes the driving control of the relay driving circuit through the FPGA main control chip, thereby controlling the relay network circuit and realizing the fault injection function of the analog signal. The FPGA main control chip, as the core of the entire board, realizes the main functions such as Ethernet communication, message parsing, and execution of fault commands. This embodiment can be used to realize 0-24V signal analog fault injection and 0-24mA current signal fault fault function.

[0047] Figure 1 The connector input / output interface shown in the figure has a total of 8 connectors, which realize the input / output connection function of 8 analog signal signals.

[0048] In one embodiment, the physical layer fault simulation circuit includes a circuit break simulation circuit. The circuit break failure of the analog signal mainly includes the following situations: setting a positive signal line circuit break, a negative signal line circuit break, and a GND circuit break.

[0049] In this embodiment, Figure 2 As shown, the connector input interface receives the analog signal, which is output from the connector output interface through the circuit-breaking relay and the resistor network in sequence; the relay drive circuit receives the circuit-breaking frequency setting instruction of the circuit-breaking relay sent by the FPGA main control chip, and controls the circuit-breaking analog circuit to periodically open and close.

[0050] When the analog signal needs to be disconnected, the circuit-breaking relay is disconnected to realize the circuit-breaking fault of the analog signal; the relay is a mechanical relay, and when disconnected, it can ensure that the disconnection resistance is greater than 100KΩ.

[0051] Analog signal intermittent circuit fault, by setting the circuit breaker relay to periodically disconnect, set the frequency value between 0 and 50Hz, and the step can be set to 1Hz. The circuit breaker relay will open and close periodically according to the set frequency. The start / stop time of the analog signal intermittent circuit fault can be set. The relay is a mechanical relay, which can ensure that the disconnection resistance is greater than 100KΩ when the circuit is open.

[0052] In one embodiment, the physical layer fault simulation circuit includes a short circuit simulation circuit, which can be used to set the positive and negative signal lines to be short-circuited, the positive signal line GND to be short-circuited, and the negative signal line GND to be short-circuited.

[0053] In this embodiment, Figure 3 As shown, in the case where the positive signal line GND is short-circuited and the negative signal line GND is short-circuited, the connector input interface receives the analog signal, which passes through the primary circuit-breaking relay, the ground short-circuit relay, the resistor network and the ground line that needs to be short-circuited in sequence, and is connected to the connector input interface at the same time; the relay drive circuit receives the short-circuit relay circuit-breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit analog circuit to periodically open and close.

[0054] When the positive and negative sides of the analog signal are directly short-circuited with the ground, the ground short-circuit relay switch is closed, so that the output signal is directly short-circuited with the ground, thus realizing the direct short-circuit fault between the signal and the ground.

[0055] When the analog signal is short-circuited to the ground, and the fault frequency is 0-50Hz, the disconnection and closing frequency of the ground short-circuit relay switch can be set to a frequency between 0 and 50Hz, and the resistor network is set to 0Ω resistance, so that the output signal is directly short-circuited to the ground, realizing the fault of the signal being directly short-circuited to the ground with a settable frequency. The short-circuit cycle can be set in steps of 1Hz, and the start / stop time of the analog signal intermittent short-circuit fault can be set.

[0056] In this embodiment, Figure 4 As shown, in the case of a short circuit between the positive and negative signals, the first connector input interface receives an analog signal, which is connected to the second connector input interface that needs to be short-circuited through a first-level disconnect relay, a signal short-circuit relay and a resistor network in sequence, and is connected to the first connector output interface and the second connector output interface at the same time; the relay drive circuit receives the short-circuit relay disconnection frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit analog circuit to periodically open and close.

[0057] When the analog signals are directly short-circuited, the signal short-circuit relay switch is closed, so that the output signal is directly short-circuited with another input signal, realizing the direct short-circuit fault between the signals.

[0058] When the analog signals are short-circuited and the fault frequency is 0-50Hz, the disconnection and closing frequency of the signal short-circuit relay switch can be set to a frequency between 0 and 50Hz, so that the output signals are directly short-circuited, realizing the fault of direct short-circuit frequency between signals. The short-circuit cycle can be set in steps of 1Hz, and the start / stop time of the analog signal intermittent short-circuit fault can be set.

[0059] In one embodiment, Figure 5 As shown, the physical layer fault simulation circuit includes a serial impedance simulation circuit to realize a positive signal line series resistor, a negative signal line series resistor, and a GND series resistor. The connector input interface receives the analog signal and outputs it from the connector output interface through the circuit breaker relay and the sliding rheostat in sequence.

[0060] In this embodiment, the analog signal has a resistive short circuit fault, and the resistance can be configured to be 0Ω~200KΩ. The resistance is continuously adjustable, and the adjustable range is not less than 128K, and the ground disconnect relay switch is closed. The signal enters from the input end and is output from the output end. The signal passes through the resistor network, realizing the signal with impedance fault.

[0061] In one embodiment, the physical layer fault simulation circuit includes a parallel impedance simulation circuit to implement parallel resistance between the positive signal line and the negative signal line, parallel resistance between the positive signal line and GND, and parallel resistance between the negative signal line and GND.

[0062] In this embodiment, Figure 6As shown, for the case where the positive signal line and GND are connected in parallel with a resistor, and the negative signal line and GND are connected in parallel with a resistor, the connector input interface receives the analog signal, which passes through the primary circuit-breaking relay, the ground short-circuit relay, the sliding rheostat and the ground line that needs to be short-circuited in sequence, and is connected to the connector input interface at the same time; the relay drive circuit receives the short-circuit relay circuit-breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit analog circuit to periodically open and close.

[0063] For parallel impedance fault, the configurable resistance is 150Ω~128KΩ, and the resistance is continuously adjustable. Close the ground short-circuit relay switch, select the resistor network configuration, and adjust the resistance value by rotating the sliding rheostat. In this way, the output signal is short-circuited with the ground through the resistor network, realizing the short-circuit fault of parallel impedance between the signal and the ground.

[0064] In this embodiment, Figure 7 As shown, for the case of parallel resistance of the positive signal line and the negative signal line, the first connector input interface receives the analog signal, which is connected to the second connector input interface that needs to be short-circuited through the first-level circuit-breaking relay, the signal short-circuit relay and the sliding rheostat in sequence, and is connected to the first connector output interface and the second connector output interface at the same time; the relay drive circuit receives the short-circuit relay circuit-breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit analog circuit to periodically open and close.

[0065] The parallel impedance fault between the positive and negative signals can be configured with a resistance of 150 to 128KΩ. Close the signal short-circuit relay switch and rotate the sliding rheostat to short-circuit the signals through the resistor network, thus realizing the parallel impedance fault between the signals.

[0066] In one embodiment, Figure 8-9 As shown, the electrical network includes: the connector input interface receives the analog signal, which is connected to the FPGA main control chip through the signal conditioning circuit and the ADC circuit in sequence; after the FPGA main control chip sends a signal amplitude adjustment and / or noise superposition fault injection instruction, it is output from the connector output interface after passing through the CDA circuit and the signal conditioning circuit; the electrical layer fault simulation includes: signal common mode fault simulation, signal differential mode fault simulation, internal signal interference simulation, internal signal adjustment simulation, external signal intervention simulation and external signal replacement simulation.

[0067] In the specific implementation, high-speed ADC chips and DAC chips are used to realize signal acquisition and transmission. The electrical layer fault injection in the voltage analog signal fault injection experimental system includes the following items:

[0068] Signal common mode fault injection: The common mode voltage replacement value can be set to be determined by the amplitude of the input signal, with a minimum adjustment range of 200mV. After common mode superposition, the maximum output signal voltage is 40V.

[0069] Signal differential mode fault injection: The differential mode voltage replacement value can be set: 0 to 10V, with a minimum adjustment granularity of 200mv. Internal noise signal superposition is achieved. The frequency range of the noise signal (except Gaussian white noise) is superimposed on the positive signal line / negative signal line, the superimposed signal frequency is up to 100KHz, the amplitude is -5 to 5V, and the maximum voltage of the superimposed signal is 24V.

[0070] Internal signal interference: realize the superposition of internal noise signals, including sine wave, square wave, triangle wave and Gaussian white noise.

[0071] Signal superposition: Superposition of positive signal line / negative signal line, the maximum superposition signal frequency is 100KHz, the amplitude is -5~5V, the minimum adjustment granularity is 200mV, and the maximum voltage of the superimposed signal is 24V.

[0072] Signal replacement: Replace positive signal / negative signal. The maximum frequency of the replaced signal is 100KHz, the amplitude is -5~5V, and the minimum adjustment granularity is 200mV.

[0073] External signal insertion (providing users with a third-party device insertion hole to generate arbitrary waveforms):

[0074] External signal superposition: The external signal can be set to superimpose on the positive signal line, and the external signal can be set to superimpose on the negative signal line. The maximum frequency of the superimposed signal is 100KHz, the adjustment granularity is 200mV, the amplitude is -5~5V, and the maximum output signal voltage is 24V.

[0075] External signal replacement: You can set the external signal to replace the positive signal or the external signal to replace the negative signal.

[0076] The electrical layer fault injection in the current analog signal fault injection experimental system includes the following items:

[0077] The current size of the 0-24mA current signal input is adjusted, and the adjusted current output range is 0-24mA, with a step of 0.1mA.

[0078] Internal current replacement: Generate 0~24mA current signal internally to replace external current signal.

[0079] External signal replacement provides users with a third-party device insertion hole to set external signal replacement signals. The signal to be replaced is connected to the conditioning circuit through the external signal input socket, and then converted into the required current signal output.

[0080] According to the host computer instructions, the FPGA can generate the required output current signal value, which is output to the conditioning circuit through the DAC and then converted into the required current signal.

[0081] In one embodiment, it also includes a power supply and a clock connected to the FPGA main control chip, realizing the power supply and clock driving functions of the board.

[0082] In one embodiment, it also includes an Ethernet control chip connected to the FPGA main control chip.

[0083] In one embodiment, it also includes an LED driving circuit connected to the FPGA main control chip, which is used to drive the LED lights of the panel.

[0084] In one embodiment, the simulation test system includes a host computer system, which runs on a data server. The logic architecture of the host computer system follows the modular design principle and adopts a classic three-layer architecture, such as Fig.10 As shown:

[0085] Display layer: It is the main interface for displaying data. It uses human-computer interaction to operate the input and output interfaces of data through input boxes, buttons, graphics, tree diagrams, tables, etc. The graphical display method makes the software have a good user experience;

[0086] Business layer: the core logic layer that implements the business functions of the system. This system mainly includes the process control, command sending and status query of 1553B fault injection;

[0087] Driver layer: The driver layer provides communication between the software and external test equipment. This system mainly includes the configuration, data sending and reading operations of the 1553B fault injection device.

[0088] In one embodiment, Fig.11 As shown in the figure, the host software of the test system adopts the producer and consumer multi-threaded design mode. The basic structure of this mode includes two While loops (the upper one is the main loop and the lower one is the slave loop) and several "queue" built-in functions (Notifier). The Case structure in the main loop is used to determine whether to send a queue message to the slave loop. In actual applications, there may be multiple While loops and a loop may be both a main loop and a slave loop. The operation architecture design diagram is shown in the figure below.

[0089] The producer-consumer design pattern is the most widely used design pattern in graphical programming. This pattern has built-in (Queue_Queue) functions, which use the queue data storage method (FIFO). It is mainly used to solve communication applications between two or more threads that occur simultaneously and have different running rates, or as a tool for communication between two VIs running on the same machine. This method is generally used to synchronize two independent processes, so its built-in functions are classified in the synchronization template of the function palette.

[0090] The data storage of the queue is to open up a buffer area, which is based on the principle of first-in-first-out. New elements are always added to the end of the queue (i.e., "cutting in" is not allowed), and the elements that leave each time are always at the head of the queue (i.e., leaving the queue midway is not allowed). The "oldest" element currently leaves the queue, which ensures that there is basically no data loss during data transmission. The main loop responsible for generating information must keep looping to query whether the data has changed. When the data has not changed, the slave loop structure stops executing completely and restarts only when new data is available. This will reduce the time wasted on the computer in endless polling, while fully ensuring the relationship of data flow.

[0091] In one embodiment, the host computer system is used to assist in completing the functional verification of each interface of the integrated control board. The user configures relevant parameters and instructions in the UI interface, communicates with the test board through the device driver, controls the output or collection of data, sends or reads bus data, and stores the test data in a local file. Specifically,

[0092] UI interactive interface: provides interactive interfaces such as parameter configuration, operation control, and data display;

[0093] User login: provide user login interface;

[0094] Device driver: used for communication control of I / O boards and bus test cards;

[0095] Board control: Control the excitation and acquisition of signals through communication with hardware boards;

[0096] Log Recording: Store the stimulus data and acquisition data as local files, and also store the operation logs;

[0097] Help information: used to view software manual and version information.

[0098] In one embodiment, Fig.12 As shown in the figure, the host computer system includes the following functional modules:

[0099] The information management module is used to create, load and delete the fault directory tree; the specific operations include:

[0100] New project: Create a new fault injection process, keep the fault injection device and channel list, and clear the fault injection tree.

[0101] Load Engineering: Load the stored fault injection process.

[0102] The fault configuration module is used to receive the command configuration selection operation of the fault sequence, including the connector input / output interface channel configuration, the physical layer and / or electrical layer fault injection configuration and the fault sequence execution order configuration; the specific execution steps include:

[0103] S1. Click "New Project" or "Load Project";

[0104] S2. Double-click "Fault Injection Channel" (navigation list on the left);

[0105] S3. In the fault parameter list on the right, right-click to configure the fault parameters, such as Fig.13 shown.

[0106] The fault process configuration execution operations include: in the fault parameter list, right-click to modify, delete, copy, paste, move up, move down, move to the top, move to the bottom, etc., which can realize arbitrary process editing of the fault process.

[0107] The control mode is divided into automatic mode and manual mode. The automatic mode means that the current fault mode is automatically executed, and the duration and delay time are automatically calculated. The manual mode means that the user needs to manually stop the fault injection. Note: After selecting the manual mode, subsequent fault injection cannot continue.

[0108] The duration is the total number of seconds that the current fault mode is executed in automatic control mode.

[0109] The delay time is the number of seconds that the current fault mode starts to execute after the previous fault mode is completed in automatic control mode.

[0110] The fault execution module is used to send fault sequence configuration to the corresponding connector input / output interface channel, monitor and display the channel execution status.

[0111] In this embodiment, Fig.14 As shown, the interface type to be fault injected and the fault sequence in each interface type can be configured through the directory tree. Click the "Start Fault Injection" button in the upper right corner of the fault injection main interface. The button changes to the "Fault Injection" state. The host system will perform fault injection according to the fault injection directory tree. Fault injection is performed in parallel between channels. The fault injection result list will display the fault injection time, fault injection interface, fault type, fault parameters, execution time, and execution results.

[0112] Fault sequence injection is based on channels. During the fault injection process, click the "Fault Injection" button to terminate the fault injection process. While performing the above operations, the software automatically writes the fault injection results and operation logs. Fig.15 As shown, the fault execution module is used to perform the following steps:

[0113] Send fault sequences in parallel to the selected connector input / output interface channels respectively according to the physical layer and / or electrical layer fault injection configuration;

[0114] After sending the first fault sequence, monitor the execution status of the current channel to determine whether the execution is completed; after the current channel completes the execution of the first fault sequence, configure the execution order of the fault sequence and send the corresponding second fault sequence to the current channel;

[0115] For each channel that chooses to send a fault sequence, a thread is used to maintain the execution and monitoring of its fault sequence.

[0116] In this embodiment, the host computer system also supports functions such as authority management, device control, health monitoring and log management.

[0117] The device control module implements the control of device pause / resume, reset, status readback, device scanning, fixed IP, and factory reset. Specifically, device scanning: the host computer software communicates with the fault injection device through broadcasting to obtain its current IP address. Fixed IP: Enter the new IP address planned to be updated. The fixed IP function can fix the currently set IP to the fault injection device. Factory reset: implement fault injection device initialization and restore factory settings. After the device is reset successfully, a dialog box pops up to notify the customer that the factory reset is successful. The device's pause / resume, reset, status readback and other functions are mainly reflected in the fault injection execution process.

[0118] The health monitoring module implements the function of monitoring equipment faults and can timely report whether the fault injection equipment is online and possible faults. Fig.16 As shown, if the fault injection device is online, "online" and the IP address will be displayed after the device. If the fault injection device is not online, "offline" will be displayed. If other uncontrollable factors occur during the fault injection execution, the user will be reminded through a pop-up window. The error log management module is used to record the software's operation on the device and the execution of the device fault.

[0119] The log management module is used to record the software's operations on the device and the execution of device failures.

[0120] The above is a detailed introduction to a simulation test system based on analog fault injection provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0121] In this article, relational terms such as first and second, etc. are used only 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 "comprises", "comprising" 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, and also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprising a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

Claims

1. A simulation test system based on analog fault injection, It is characterized in that include: Connector input / output interface, relay network circuit, electrical network, relay drive circuit and FPGA main control chip; Among them, The connector input / output interface is connected to the relay network circuit and is used for inputting and outputting analog signals, wherein the analog signals include voltage analog and current analog; The relay network circuit is connected to the FPGA main control chip through the relay drive circuit. The relay network is used to build a physical layer fault simulation circuit of the analog signal through the relay. The FPGA main control chip sends a control instruction to the relay electrical drive circuit to realize the drive control of the relay network circuit. The relay network circuit is connected to the FPGA main control chip through the electrical network, and the electrical network is used to realize electrical layer fault simulation of analog signals according to control instructions of the FPGA main control chip.

2. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The physical layer fault simulation circuit includes a circuit break simulation circuit: the connector input interface receives an analog signal, which is output from the connector output interface through a circuit break relay and a resistor network in sequence; the relay drive circuit receives a circuit break relay circuit break frequency setting instruction sent by the FPGA main control chip, and controls the circuit break simulation circuit to periodically open and close.

3. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The physical layer fault simulation circuit includes a short-circuit simulation circuit: the connector input interface receives an analog signal, which passes through a primary circuit-breaking relay, a ground short-circuit relay, a resistor network and a ground wire that needs to be short-circuited in sequence, and is connected to the connector input interface at the same time; the relay drive circuit receives a short-circuit relay circuit-breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

4. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The physical layer fault simulation circuit includes a short-circuit simulation circuit: the first connector input interface receives an analog signal, which is connected to the second connector input interface that needs to be short-circuited through a first-level disconnect relay, a signal short-circuit relay and a resistor network in sequence, and is connected to the first connector output interface and the second connector output interface at the same time; the relay drive circuit receives a short-circuit relay disconnection frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

5. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The physical layer fault simulation circuit comprises a serial impedance simulation circuit: the connector input interface receives the analog signal, and the analog signal is output from the connector output interface through the circuit breaker relay and the sliding resistor in sequence.

6. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The physical layer fault simulation circuit includes a parallel impedance simulation circuit: the connector input interface receives an analog signal, which passes through a primary circuit breaker relay, a ground short-circuit relay, a sliding rheostat and a ground wire that needs to be short-circuited in sequence, and is connected to the connector input interface at the same time; the relay drive circuit receives a short-circuit relay circuit breaking frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

7. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The parallel impedance simulation circuit includes: the first connector input interface receives the analog signal, which is connected to the second connector input interface that needs to be short-circuited through the first-level disconnect relay, the signal short-circuit relay and the sliding rheostat in sequence, and is connected to the first connector output interface and the second connector output interface at the same time; the relay drive circuit receives the short-circuit relay disconnection frequency setting instruction sent by the FPGA main control chip, and controls the short-circuit simulation circuit to periodically open and close.

8. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The electrical network includes: a connector input interface receives an analog signal, which is connected to the FPGA main control chip through a signal conditioning circuit and an ADC circuit in sequence; after the FPGA main control chip sends a signal amplitude adjustment and / or noise superposition fault injection instruction, it is output from the connector output interface after passing through a CDA circuit and a signal conditioning circuit; the electrical layer fault simulation includes: signal common mode fault simulation, signal differential mode fault simulation, internal signal interference simulation, internal signal adjustment simulation, external signal intervention simulation and external signal replacement simulation.

9. A simulation test system based on analog fault injection according to claim 1, It is characterized in that The simulation test system includes a host computer system, including: An information management module, used to perform creation, loading and deletion operations on the fault directory tree; A fault configuration module, used for receiving command configuration selection operations of a fault sequence, including connector input / output interface channel configuration, physical layer and / or electrical layer fault injection configuration and fault sequence execution order configuration; The fault execution module is used to send fault sequence configuration to the corresponding connector input / output interface channel, monitor and display the channel execution status.

10. A simulation test system based on analog fault injection according to claim 9, It is characterized in that The fault execution module is used to execute the following steps: Send fault sequences in parallel to the selected connector input / output interface channels respectively according to the physical layer and / or electrical layer fault injection configuration; After sending the first fault sequence, monitor the execution status of the current channel to determine whether the execution is completed; After the current channel executes the first fault sequence, the corresponding second fault sequence is sent to the current channel according to the fault sequence execution order configuration; For each channel that chooses to send a fault sequence, a thread is used to maintain the execution and monitoring of its fault sequence.

Citation Information

Patent Citations

  • Bus fault injection system based on DSP and FPGA

    CN106776188A

  • Test method and system based on SPARC (Scalable Processor ARChitecture) processor single event upset fault injection

    CN108710551A

  • Signal electrical fault injection device

    CN114924547A

Cited By

  • System and device for evaluating safety and reliability of intelligent sensing system

    CN119469232A