A fault injection system for serial multi-buses
Through the series multi-bus fault injection system, using Fourier transform and inverse Fourier transform technologies, fault injection of electrical layers, data link layers and protocol layers of various bus types is achieved, and the functions in the existing technology are solved The problem of single and inability to inject multiple bus types simultaneously realizes multi-level and multi-mode fault testing.
Patent Information
- Application Number
- CN202210767474.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-06-30
AI Technical Summary
The existing technology is difficult to implement multi-level and multi-mode fault injection tests of multiple bus types. The existing fault testing system has a single function and cannot simultaneously simulate faults of multiple bus types in the electrical layer, data link layer and protocol layer.
Design a series multi-bus fault injection system, including bus interface, user fault category setting module, signal conditioning module, A/D discrete sampling module, FPGA multi-level fault injection module, D/A conversion module, signal selection output control unit and the communication bus, fault injection of the electrical layer, data link layer and protocol layer is achieved through technologies such as Fourier transform, frequency domain waveform generator and inverse Fourier transform.
It realizes fault simulation of various types of buses in the electrical layer, data link layer and protocol layer, and can quickly perform multi-level fault simulation and injection to meet various fault testing needs.
Smart Images

Figure CN115079671B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a fault injection system, in particular to a series multi-bus fault injection system. Background Art
[0002] With the development of modern network information, bus transmission has replaced point-to-point transmission and is the focus of current development. It has the advantages of high transmission efficiency, taking into account both high-speed and low-speed devices, high safety and convenient fault diagnosis and maintenance. Especially for cost and space, bus technology is crucial in communication systems. Various bus technologies such as 1553B, RS422, RS485, Ethernet and CAN communication are widely used in automobiles, railway transportation, automatic control, aerospace, navigation, missile launch, machinery industry, robotics and medical fields.
[0003] In industrial design, reliability checks on designed products are very important, that is, to evaluate the reliability of a system by observing and comparing the system's state responses after a fault occurs. Fault injection experiments are methods of artificially introducing faults into the system under test according to a pre-designed fault model, thereby causing errors and failures in the system. The system's response to these faults can test the reliability and controllability of the system when facing the threat of failure.
[0004] At present, the mainstream detection systems for fault injection of bus communication are divided into: software fault injection and hardware fault injection. Software fault injection means that the user defines the fault type and fault parameters on the interactive interface, and then the software uses data tampering and replacement on the protocol layer and data link layer through communication to inject the specified fault, and interacts with the fault injection device at the software level to inject the fault. Hardware fault injection means to realize fault injection through the internal hardware operation of the external device, that is, to simulate the faults that occur in the actual operation of bus transmission information from the electrical layer. The two methods complement each other and are easy to implement.
[0005] Currently, industrial and military equipment contain multiple bus types. When verifying the reliability of equipment, it is necessary to perform fault injection tests on multiple bus types at the same time. However, most of the current bus fault injection methods are for single bus fault injection. The few test methods that can implement multi-bus fault injection have single functions implemented by the system. For example, they can only implement bit flipping operations at the protocol layer of the multi-bus system, and cannot implement multi-level and multi-mode fault injection. There are currently two types of fault test systems: parallel bus fault injection system and series bus fault injection system. The parallel bus fault injection system uses a dedicated test interface to superimpose fault information in parallel (such as Figure 1The serial fault injection system uses a universal bus interface to enter the system in series and directly inject the fault into the original information. Therefore, it is necessary to design a serial multi-bus type multi-level fault injection test system to meet the above requirements. Summary of the invention
[0006] The purpose of the present invention is to solve the above technical defects and provide a fault injection system for serial multi-buses, which can realize fault simulation at three levels: electrical layer, data link layer and protocol layer for various types of buses, and its fault injection can meet various fault testing requirements.
[0007] The technical solution adopted by the present invention to solve the above-mentioned deficiencies in the prior art is:
[0008] A serial multi-bus fault injection system, comprising:
[0009] Bus interface A, which connects the fault injection system to the original bus and is the external interface for the fault injection system input;
[0010] The user fault category setting module is a system and external interaction module, where the user can set the injected fault category and fault corresponding parameters;
[0011] The signal conditioning module converts the voltage amplitude of the signal voltage transmitted from the bus into the standard voltage of the A / D discrete sampling module; converts the output voltage of the D / A conversion module into the bus standard voltage and transmits it to the signal selection output control unit;
[0012] The A / D discrete sampling module performs high-speed discrete sampling on the bus signal conditioned by the signal conditioning module, converts the analog signal into a digital signal and inputs it into the FIFO memory.
[0013] The FPGA multi-level fault injection module includes an electrical layer fault injection unit, a user fault injection management unit, a data link layer fault injection unit and a protocol layer fault injection unit. The user fault injection management unit interacts with the user fault category setting module to convert user requirements into requirements for the FPGA multi-level fault injection module. It is a channel for the FPGA multi-level fault injection module to interact with the outside world, and also coordinates the input and output of each module in the FPGA multi-level fault injection module. The electrical layer fault injection unit, the data link layer fault injection unit and the protocol layer fault injection unit are used for electrical layer fault injection, digital link layer fault injection and protocol layer fault injection respectively.
[0014] Physical layer: Provides the creation, maintenance, and removal of physical links required for data transmission, ensuring that the original data can be transmitted on various physical media;
[0015] D / A conversion module: converts the digital signal output from the FIFO memory into the analog signal after fault injection;
[0016] Signal selection output control unit: selects to output faults of a specific level according to the level and method of fault injection;
[0017] Communication bus, connecting modules for unidirectional or bidirectional signal transmission;
[0018] The bus interface B connects the fault injection system to the original bus and is the external interface output by the fault injection system.
[0019] The electrical layer fault injection unit includes a FIFO memory, an FFT module, a frequency domain waveform generator, a gain module, and an IFFT module. The FFT module uses Fourier transform to transform the time domain data in the FIFO memory into frequency domain data; the frequency domain waveform generator generates a frequency domain waveform signal according to the required fault injection category, and generates an ideal fault signal after superimposing it with the original waveform; the gain module amplifies or reduces the digital signal input to the module according to the gain multiple set by the user fault injection management unit; the IFFT module uses inverse Fourier transform to transform the frequency domain data after the fault data is injected into time domain data.
[0020] The electrical layer fault injection unit also includes a delay control unit, which is used for delay type fault simulation and sends the digital signal to the D / A conversion module after delaying the digital signal for a set time.
[0021] The fault types injected into the electrical layer include signal waveform deviation fault, signal interference by noise fault, waveform output error fault and signal delayed output fault.
[0022] The data link layer fault injection unit injects the specified fault into the received bus signal by changing the corresponding byte level of the signal message frame, and implements fault injection into the data link layer by changing the flag bit, check bit, start bit, end bit and data length of the standard information frame of different buses.
[0023] The fault types of the data link layer fault injection are data frame integrity fault, address bit fault, data length fault, and check field fault.
[0024] The protocol layer fault injection unit modifies the content of the incoming data by performing a data tampering operation on the bus signal inputted by the bus interface A, thereby completing the fault injection of the protocol layer.
[0025] The fault types of the protocol layer fault injection include data content tampering faults and data packet loss faults.
[0026] The fault injection system is used for 1553B, RS422, RS485, and CAN communication type bus fault injection.
[0027] Beneficial effects of the present invention: The present invention can realize fault simulation at three levels: electrical layer, data link layer and protocol layer for various types of buses, specifically including fault operations such as delayed output, noise interference, waveform modification, and data replacement. The system uses a method that cooperates the human-computer interaction mode of the software with the hardware fault injection system facilities. The user sets the fault injection mode and parameters from the software of the operation interface, and the fault injection system at the hardware level implements the fault parameters transmitted from the software level. The fault injection system is connected to the original bus system in series, and the fault superposition can be directly injected into the original bus signal. It can realize fault injection at three levels: electrical layer, data link layer and protocol layer. The fault injection of the electrical layer can be realized by operating the input data in the frequency domain, and the fault injection of the data link layer and the protocol layer can be realized by operating the data frame. Thus, fast and multi-level fault simulation and injection are performed. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a topological diagram showing the difference between the parallel fault injection system used in the present invention and the common series fault injection system.
[0029] Figure 2 A structural schematic diagram of a fault injection system for serial multi-buses of the present invention.
[0030] Figure 3 It is the hardware implementation of electrical layer fault injection.
[0031] Figure 4 It is a schematic diagram of the frequency domain implementation principle of three types of fault injection at the electrical layer. DETAILED DESCRIPTION
[0032] The present invention will be further described below in conjunction with the accompanying drawings and embodiments, but the present invention is not limited thereto.
[0033] like Figure 2 As shown, a serial multi-bus fault injection system of the present invention includes a bus interface A1, a user fault category setting module 2, a signal conditioning module 3, an A / D discrete sampling module 4, an FPGA multi-level fault injection module 5, a physical layer 7, a D / A conversion module 8, a signal selection output control module 9, a bus interface B10 and a communication bus.
[0034] Communication bus, connecting modules for unidirectional or bidirectional signal transmission. Figure 2 The unidirectional arrow in the middle indicates that the bus signal can only be transmitted in one direction; the bidirectional arrow indicates that the bus signal can be transmitted in both directions, thereby realizing the interaction between different modules.
[0035] The user fault category setting module 2 is the user operation interface of the system and the system and external interaction module. The user can set the injected fault category and the corresponding fault parameters.
[0036] The signal conditioning module 3 converts the voltage amplitude of the signal voltage transmitted from the bus into the standard voltage of the A / D discrete sampling module 4; converts the output voltage of the D / A conversion module 8 into the bus standard voltage and transmits it to the signal selection output control unit.
[0037] The A / D discrete sampling module 4 performs high-speed discrete sampling on the bus signal conditioned by the signal conditioning module 3, converts the analog signal into a digital signal and inputs it into the FIFO memory.
[0038] The FPGA multi-level fault injection module 5 includes an electrical layer fault injection unit 11, a user fault injection management unit 6, a data link layer fault injection unit 12 and a protocol layer fault injection unit 13. The user fault injection management unit 6 interacts with the user fault category setting module 2 to convert user requirements into requirements for the FPGA multi-level fault injection module 5. It is a channel for the FPGA multi-level fault injection module 5 to interact with the outside, and also coordinates the input and output of each module in the FPGA multi-level fault injection module 5; the electrical layer fault injection unit 11, the data link layer fault injection unit 12 and the protocol layer fault injection unit 13 are respectively used for electrical layer fault injection, digital link layer fault injection and protocol layer fault injection. The electrical layer fault injection unit 11 includes a FIFO memory 14, an FFT module 15, a frequency domain waveform generator 16, a gain module 17, and an IFFT module 18. The FFT module 15 uses Fourier transform to transform the time domain data in the FIFO memory 14 into frequency domain data; the frequency domain waveform generator 16 generates a frequency domain waveform signal according to the required fault injection category, and generates an ideal fault signal after superimposing with the original waveform; the gain module 17 amplifies or reduces the digital signal input to the module according to the gain multiple set by the user fault injection management unit; the IFFT module 18 uses inverse Fourier transform to transform the frequency domain data after the fault data is injected into the time domain data. The electrical layer fault injection unit 11 also includes a delay control unit 19, which is used for delay type fault simulation, and sends the digital signal to the D / A conversion module after delaying the set time.
[0039] Physical Layer 7: Provides the creation, maintenance, and removal of physical links required for data transmission, ensuring that the original data can be transmitted on various physical media.
[0040] D / A conversion module 8: converts the digital signal output from the FIFO memory 14 into an analog signal after fault injection.
[0041] Signal selection output control module 9: selects to output faults of a specific level according to the level and method of fault injection.
[0042] Bus interface A1 and bus interface B10: connect this fault injection system with the original bus and serve as the external interface for input and output of this system).
[0043] The fault injection of the present invention can inject faults from three levels according to user needs, namely: electrical layer, data link layer and protocol layer. The three-level fault injection interacts through the user fault injection management unit 6. The three-level fault injection is described in detail below.
[0044] 1. Electrical Layer Fault Injection
[0045] The electrical layer fault injection method uses the frequency domain waveform modification method to inject the specified fault type: when the user sets the electrical layer to perform fault injection, the signal transmitted via the bus is first converted into the standard voltage amplitude of the FPGA by the signal conditioning module 3, and then discretely sampled by the A / D discrete sampling module 4 into the digital quantity of the analog signal and stored in the FIFO memory 14. The above is the sampling and waveform storage process of the bus signal. When the user fault injection management unit 6 sends an instruction to the frequency domain waveform generator 16, the frequency domain waveform generator 16 generates a corresponding waveform and sends it to the gain module 17. At the same time, the time domain digital signal in the FIFO memory 14 is fast Fourier transformed into a frequency domain digital signal through the FFT module 15 and sent to the gain module 17. The gain of the gain module 17 is controlled by the user fault injection management unit 6. The bus frequency domain digital signal after gain is superimposed with the spectrum generator signal after gain to obtain the ideal signal after fault injection. The signal is then inverse Fourier transformed by the IFFT module 18 to be transformed into a time domain digital signal. If there is a need to simulate delay-type faults, the digital signal output to the FIFO memory after conversion by the IFFT module can be sent to the D / A conversion module 8 after a set delay time by the delay control unit 19, converted into an analog signal of standard voltage by the module, and then amplified or reduced to the standard amplitude state of the original signal by the signal conditioning module 3. After the signal selection output control unit makes an output judgment, it is output to the original bus system through the bus interface B10. In this way, the fault injection at the electrical layer is completed, and the output is a bus signal of the specified fault form.
[0046] The fault types injected into the electrical layer are: signal waveform deviation fault, signal interference fault, waveform output error fault and signal delayed output fault. Figure 3 As shown, the specific implementation methods for different types of fault injection are as follows:
[0047] 1. Waveform signal deviation fault: Deviation refers to the behavior of the signal as a whole deviating from the original waveform, that is, the overall value changes by the same value on the amplitude scale. In this system, the fault injection of bus data deviation is based on the frequency domain. When the data is collected back to the FIFO memory 14, the frequency domain waveform after transformation by the FFT module 15 is as follows: Figure 4 As shown in FIG. 1A, a frequency domain waveform generator 16 generates a Figure 4 The frequency domain waveform of the long-duration pulse signal shown in A, after passing through the gain module 17, is superimposed with the bus data in the original FIFO memory 14 to generate bus data of a specified offset as shown in FIG. Figure 4 As shown in A, after being transformed by the IFFT module 18 and selected for output after judgment, it is output to the bus exit, thus completing the fault injection method for bus data offset.
[0048] 2. Signal interference by noise fault: This fault can be simulated by adding noise to the waveform signal. For bus signal transmission, noise interference is a very serious problem. The simulation of noise interference in this system is noise superposition, which is also realized in the frequency domain. The data is collected and transformed by the FFT module 15. Figure 4 As shown in FIG. 1B , when the user specifies that the fault type is noise interference, the user fault injection management unit 6 inputs the control parameters into the frequency domain waveform generator 16 , and its hardware implementation is as follows: Figure 3 As shown, the frequency domain waveform generator 16 generates a spectrum information flow corresponding to the noise as shown in Figure 4 As shown in B, after appropriate gain, it is superimposed with the data in the original FIFO memory, that is, the noise data is superimposed into the original data. Figure 4 As shown in B, the time domain bus information after noise superposition is transformed by the inverse Fourier transform of the IFFT module 18, outputted through the FIFO memory 14 and the D / A conversion module 8, and outputted to the bus exit after being judged by the bus selection output control unit module, thereby completing the noise superposition fault injection of the bus data signal.
[0049] 3. Signal waveform output error fault: refers to the fault that the signal is not output according to the specified waveform. This fault can be injected by modifying the original waveform. The fault injection method for waveform modification is also completed in the frequency domain. Its hardware implementation is as follows: Figure 3 As shown, the data is collected and transformed by FFT module 15 as shown in Figure 4 As shown in FIG. 3 , after interacting with the user fault category setting module 2, the user fault injection management unit 6 sends the control information to the frequency domain waveform generator 16. The frequency domain waveform generator 16 then generates the corresponding spectrum information as shown in FIG. Figure 4As shown in C, at the same time, the user fault injection management unit 6 also sends information to the gain module 17 to determine whether the two information streams (original bus data and spectrum generator data) need to be gained. After the two information streams are superimposed, Figure 4 As shown in C, after being transformed by the IFFT module 18, it is stored in the FIFO memory 14, output by the D / A conversion module 8, and output to the bus output after being judged by the bus selection output control unit module, completing the waveform modification fault injection of the bus data signal.
[0050] 4. Signal delay output fault: This is the behavior of signal delay. This fault can actively cause the data collected into the FIFO memory 14 to be output after a specified period of time, such as Figure 3 As shown, the bus analog signal is conditioned and discretely sampled at high speed by the A / D discrete sampling module 4 as a digital signal and stored in the FIFO memory 14. The user fault injection management unit 6 converts the delay requirement of the external user into the control parameter of the delay output unit, and calculates the delay duration according to the clock frequency of the system bus fault simulation device. When the delay duration reaches the delay interval corresponding to the delay fault, the delay control unit 19 starts to send the delayed original data, which is output to the bus exit after judgment by the bus selection output control unit module, thereby completing the delayed output of the bus signal.
[0051] 2. Data Link Layer Fault Injection
[0052] The fault injection of the data link layer is as follows: the signal from the bus signal input is output to the data link layer fault injection unit 12 via the physical layer 7, and the specified fault is injected by changing the corresponding byte level of the signal message frame. For standard information frames of different buses, the fault injection of the data link layer is achieved by changing its flag bit, check bit, start bit, end bit and data length.
[0053] The information transmission of the data link layer is an enhancement of the original bit stream transmission function of the physical layer 7. The data unit of data transmission in the data link layer is called a frame. The data frame consists of a flag field (marking the start and end of the frame), an address field, a control field, an information field, and a frame check field. Fault injection can occur during the encapsulation, transmission, and error checking process. The types of faults and their injection methods for the data link layer are as follows:
[0054] 1. Data frame integrity failure: During bus communication, fault injection occurs during the transmission of data frames, and the most critical thing is to ensure the transmission of complete data frames. To address this problem, after detecting a complete data frame, you can perform a bit flip operation on its marked field, such as pulling the level up and down, to cause it to lose the flag field that marks the start and end of the data frame, thereby changing the integrity of the data frame; you can also change its synchronization header. For the 1553B bus, its synchronization header is 1.5 bits of high and 1.5 bits of low. You can inject faults such as lengthening or stretching its high and low bit lengths to achieve synchronization header fault injection, that is, complete the formation of an incomplete data frame. 2. Address bit fault injection: For a complete data frame, you can modify or tamper with its address field, thereby changing the address of the data frame receiving and sending, that is, complete the frame address fault injection.
[0055] 3. Fault injection of data length: For the information field of a complete data frame, the user can specify the length of the sent data bits (n bits more or n bits less) and change the information length by extending or shortening the length of the information field.
[0056] 4. Fault injection of checksum field: For the frame checksum field in the data frame, the checksum mode is also changed by means of data modification or data tampering. For example, for 1553B bus transmission, the checksum of all data frames is odd checksum. The bit flipping method can be used to change the data checksum to even checksum. At this time, the checksum error for 1553B is injected. At the same time, the fault injection of different bus checksum modes can be completed by replacing the checksum mode of 1553B with the checksum mode of RS422, thereby completing the fault injection of the bus data frame checksum mode.
[0057] 3. Fault Injection at the Protocol Layer
[0058] The information transmission of the bus is mainly based on the information transmission of the protocol layer, and the data link layer ensures the integrity and accuracy of data transmission. The implementation method of fault injection in the protocol layer is similar to that of fault injection in the data link layer, and both are implemented by hardware means of data modification or data tampering.
[0059] 1. Fault injection by tampering with data content: For the data bits of the bus, their content can be tampered with as needed, and the fault injection operation of artificially specified information can be achieved through data modification or data tampering of individual bits or continuous bits.
[0060] 2. Packet loss fault injection: The protocol layer fault should include packet loss faults. In bus transmission, information is sent in the form of messages. For a complete set of data, n messages need to be transmitted to the receiving end to identify its content. The system can only send less than n messages to the receiving end, so the receiving end cannot identify the data content. In this way, the packet loss fault injection is completed.
[0061] In particular, for complex systems whose faults include a combination of multi-level faults, it is very difficult to inject faults using a single electrical layer, data link layer or protocol layer. At this time, the system can use three levels of fault injection at the same time, and couple and control them through the user fault injection management unit 6, so as to perform multi-level testing on them.
[0062] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable ordinary technicians in the field to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made based on the essence of the content of the present invention should be included in the protection scope of the present invention.
Claims
1. A fault injection system for serial multi-buses, Features: include Bus interface A, which connects the fault injection system to the original bus and is the external interface for the fault injection system input; The user fault category setting module is a system and external interaction module, where the user can set the injected fault category and fault corresponding parameters; The signal conditioning module converts the voltage amplitude of the signal voltage transmitted by the bus into the standard voltage of the A / D discrete sampling module; Convert the output voltage of the D / A conversion module into a bus standard voltage and transmit it to the signal selection output control unit; The A / D discrete sampling module performs high-speed discrete sampling on the bus signal conditioned by the signal conditioning module, converts the analog signal into a digital signal and inputs it into the FIFO memory; The FPGA multi-level fault injection module includes an electrical layer fault injection unit, a user fault injection management unit, a data link layer fault injection unit, and a protocol layer fault injection unit. The user fault injection management unit interacts with the user fault category setting module to convert user requirements into requirements for the FPGA multi-level fault injection module. It is a channel for the FPGA multi-level fault injection module to interact with the outside world, and also coordinates the input and output of each module in the FPGA multi-level fault injection module. The electrical layer fault injection unit injects electrical layer faults into the digital signal input by the A / D discrete sampling module according to the settings; The data link layer fault injection unit injects the fault of the data link layer into the input original bus signal according to the setting; The protocol layer injects faults into the protocol layer according to the settings of the input original bus signal; Physical layer: Provides the creation, maintenance, and removal of physical links required for data transmission, ensuring that the original data can be transmitted on various physical media; D / A conversion module: converts the digital signal output from the FIFO memory into the analog signal after fault injection; Signal selection output control unit: selects to output faults of a specific level according to the level and method of fault injection; Communication bus, connecting modules for unidirectional or bidirectional signal transmission; Bus interface B, which connects the fault injection system to the original bus and is the external interface output by this system; The electrical layer fault injection unit includes a FIFO memory, an FFT module, a frequency domain waveform generator, a gain module, and an IFFT module. The FFT module uses Fourier transform to transform the time domain data in the FIFO memory into frequency domain data. The frequency domain waveform generator generates a frequency domain waveform signal according to the required fault injection category, and generates an ideal fault signal after superposition with the original waveform; the gain module amplifies or reduces the digital signal input to the module according to the gain multiple set by the user fault injection management unit; the IFFT module uses inverse Fourier transform to transform the frequency domain data after the fault data is injected into time domain data; The electrical layer fault injection unit also includes a delay control unit for delay type fault simulation, which delays the digital signal for a set time and sends it to the D / A conversion module; The fault types injected into the electrical layer include signal waveform deviation fault, signal interference fault by noise fault, waveform output error fault and signal delayed output fault; The data link layer fault injection unit injects the received bus signal into the designated fault by changing the corresponding byte level of the signal message frame, and injects the fault into the data link layer by changing the flag bit, check bit, start bit, end bit and data length of the standard information frame of different buses; The fault types of the data link layer fault injection are data frame integrity fault, address bit fault, data length fault, and check field fault; The protocol layer fault injection unit modifies the content of the incoming data by performing a data tampering operation on the bus signal input from the bus interface A, thereby completing the fault injection of the protocol layer; The fault types of the protocol layer fault injection include data content tampering faults and data packet loss faults; The system can use three levels of fault injection at the same time, and can be coupled and controlled by a user fault injection management unit to perform multi-level testing.
2. A serial multi-bus fault injection system according to claim 1, Features: The fault injection system is used for 1553B, RS422, RS485, and CAN communication type bus fault injection.
