Fault injection testing system, method, equipment, medium and product
By injecting faults into the test unit between the server and the external expansion device, the problems of high testing cost and low efficiency in the existing technology are solved, and efficient and comprehensive fault injection testing is achieved.
Patent Information
- Application Number
- CN202510858555.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-06-25
AI Technical Summary
In the existing technology, server fault injection testing is costly, inefficient, and has testing limitations, and manual operation can easily damage the equipment.
A fault injection test system is used. The host computer selects the tested signal and fault type, and the first and second test modules in the test unit are used to perform fault injection between the server and the external expansion device, avoiding manual welding operations.
It reduces test costs, improves test efficiency and comprehensiveness, reduces equipment damage, and enables comprehensive testing of multiple signals and fault types.
Smart Images

Figure CN120353718B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of fault testing technology, and in particular to a fault injection testing system, method, device, medium and product. Background Art
[0002] With the development of internet technology and the information age, the demand and requirements for servers in various industries are increasing. Therefore, server testing has become a crucial step, especially during the server development stage. Depending on the development requirements, fault injection testing of signals is required. In related technologies, the link is connected and disconnected by manually soldering flying wires or disconnecting resistors to perform fault injection testing on the signal. However, repeated use of this testing method can damage the equipment and even render it unusable, resulting in increased costs. At the same time, manual soldering is inefficient and the testing is relatively limited.
[0003] Therefore, how to improve the above problems has become one of the technical problems that need to be solved urgently at this stage. Summary of the Invention
[0004] The present application provides a fault injection testing system, method, device, medium and product to at least solve the problems of high testing cost, low testing efficiency and limited testing in related technologies.
[0005] The present application provides a fault injection testing system, comprising:
[0006] Server, external expansion device, host computer and test unit, the test unit is connected between the server and the external expansion device, and the host computer is connected to the test unit;
[0007] The host computer is at least configured to select a measured signal and a fault type, generate a control signal according to the measured signal and the fault type, and send the control signal;
[0008] The test unit includes a first test module and a second test module. The test unit is at least configured to receive a control signal and perform fault injection between the server and the external expansion device through the first test module and the second test module according to the signal type of the tested signal.
[0009] The present application provides a fault injection testing method, which is performed using the above-mentioned fault injection testing system. The fault injection testing method includes:
[0010] The server establishes a connection with the external expansion device through the test unit;
[0011] Select the signal to be tested and set the fault type;
[0012] A fault signal is injected between the server and the external expansion device.
[0013] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned fault injection methods when executing the computer program.
[0014] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned fault injection methods are implemented.
[0015] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned fault injection methods when executed by a processor.
[0016] This application selects the signal to be tested and the type of fault through a host computer, and sets a test unit between the server and the external expansion device. Under the control of the host computer, the test unit adjusts the internal link through the first test module and the second test module to achieve fault injection between the server and the external expansion device. This application can achieve fault injection testing between the server and the external expansion device by setting up a host computer and a test unit. Therefore, it is beneficial to avoid artificial welding signals to achieve signal fault injection, and can solve the technical problems of high testing cost, low efficiency and relatively limited testing caused by manual operations such as welding for fault injection testing. It is beneficial to reduce testing costs, improve testing efficiency, and enhance the comprehensiveness of fault injection testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 FIG2 is a schematic diagram of a fault injection test system provided by an embodiment of the present application;
[0019] Figure 2 FIG2 is another schematic diagram of a fault injection test system provided by an embodiment of the present application;
[0020] Figure 3 FIG2 is another schematic diagram of a fault injection test system provided by an embodiment of the present application;
[0021] Figure 4 FIG2 is another schematic diagram of a fault injection test system provided by an embodiment of the present application;
[0022] Figure 5 FIG2 is another schematic diagram of a fault injection test system provided by an embodiment of the present application;
[0023] Figure 6 FIG2 is another schematic diagram of a fault injection test system provided by an embodiment of the present application;
[0024] Figure 7 The figure shows a flow chart of the fault injection testing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0026] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0027] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making any creative work are within the scope of protection of the present invention.
[0028] Figure 1 The figure shows a schematic diagram of a fault injection test system provided by an embodiment of the present application. Figure 1 , the present application provides a fault injection testing system 100, comprising:
[0029] A server 10, an external expansion device 20, a host computer 30, and a test unit 40. The test unit 40 is connected between the server 10 and the external expansion device 20, and the host computer 30 is connected to the test unit 40.
[0030] The host computer 30 is at least configured to select a measured signal and a fault type, generate a control signal according to the measured signal and the fault type, and send the control signal;
[0031] The test unit 40 includes a first test module 41 and a second test module 42. The test unit 40 is at least configured to receive a control signal and perform fault injection between the server 10 and the external expansion device 20 through the first test module 41 and the second test module 42 according to the signal type of the tested signal.
[0032] Specifically, the present application provides a fault injection testing system 100, which is at least used to perform fault injection testing between a server 10 and an external expansion device 20. The fault injection testing system 100 includes a server 10, an external expansion device 20, a host computer 30, and a test unit 40. The present application sets a test unit 40 between the server 10 and the external expansion device 20. The test unit 40 establishes a connection with the host computer 30. The host computer 30 selects a signal to be tested and a fault type, and generates a corresponding control signal. The test unit 40 creates a corresponding fault between the server 10 and the external expansion device 20 based on the control signal sent by the host computer 30, thereby simulating a state in which a signal fault occurs between the server 10 and the external expansion device 20. Optionally, the server 10 and the test unit 40 are connected via a connector, and the external expansion device 20 and the test unit 40 are also connected via a connector. The present application is merely illustrative and is not limited to this example.
[0033] It should be noted that, in actual applications, there are multiple signals and multiple fault types between the server 10 and the external expansion device 20. Therefore, the present application sets a first test module 41 and a second test module 42 in the test unit 40. According to the different signal types and fault types, the upper computer 30 generates corresponding control signals, and the test unit 40 adjusts the internal link according to the control signal, selects the first test module 41 and / or the second test module 42, generates the corresponding fault type, and simulates the fault between the server 10 and the external expansion device 20, thereby realizing the fault injection test of the server 10 and the external expansion device 20.
[0034] This application selects the signal to be tested and the fault type through the host computer 30, and sets a test unit 40 between the server 10 and the external expansion device 20. Under the control of the host computer 30, the test unit 40 adjusts the internal link on and off to achieve fault injection between the server 10 and the external expansion device 20. This configuration helps avoid manual signal welding to achieve signal fault injection. On the one hand, it helps to avoid equipment damage caused by multiple welding and helps to reduce testing costs. On the other hand, it does not rely on manual operation and helps to improve testing efficiency. In addition, by adjusting the link structure of the test unit 40, it can achieve testing of multiple different signals and multiple different fault types, which also helps to improve the comprehensiveness of the fault injection test.
[0035] There are various types of signals transmitted between the server 10 and the external expansion device 20. According to the different types of transmitted signals, different test modules can be selected to perform fault injection testing. Figure 2 FIG2 is another schematic diagram of the fault injection test system provided in the embodiment of the present application, please refer to FIG2 Figure 2 In an optional embodiment of the present application, the test unit 40 is specifically used to perform fault injection between the server 10 and the external expansion device 20 through the first test module 41 when the signal under test is a first type of signal, the first type of signal is a single-ended signal, and the transmission rate is less than or equal to the preset rate.
[0036] Specifically, the signal transmitted between the server 10 and the external expansion device 20 includes a first type of signal. When the signal to be tested is a first type of signal, the test unit 40 performs fault injection between the server 10 and the external expansion device 20 through the first test module 41, that is, the first test module 41 performs fault injection for the case where the signal to be tested is a first type of signal. The first type of signal is a single-ended signal. For example, the first type of signal can be an IO signal (Input / Output signal), an I2C signal (I squared C signal), etc., which is not specifically limited in this application. The transmission rate of the first type of signal is generally low. Optionally, the preset rate can be 1Mbps, 100Mbps, etc., which is not specifically limited in this application. The signal to be tested using the first test module 41 can be selected according to actual conditions.
[0037] For the first type of signal, there are at least two fault injection modes, short circuit and open circuit. The present application simulates different fault types by setting the link of the first test module 41. For example, the first test module 41 is used to perform a fault injection test on the server 10 and the external expansion device 20 for the short circuit fault of the first type of signal, and the short circuit fault injection between the server 10 and the external expansion device 20 is achieved by setting the link on and off in the first test module 41. For another example, the first test module 41 is used to perform a fault injection test on the server 10 and the external expansion device 20 for the open circuit fault of the first type of signal, and the open circuit fault injection between the server 10 and the external expansion device 20 is achieved by setting the link on and off in the first test module 41.
[0038] The present application performs a fault injection test on the first type of signal by setting a first test module 41 in the test unit 40, thereby enabling a fault injection test on at least part of the signals (single-ended signals with a lower transmission rate) between the server 10 and the external expansion device 20. This is beneficial to reducing the need for artificial welding of signals to achieve signal fault injection, thereby improving equipment damage caused by multiple welding and reducing testing costs. On the other hand, it is beneficial to reduce dependence on manual operations and improve testing efficiency.
[0039] Figure 3 FIG2 is another schematic diagram of the fault injection test system provided in the embodiment of the present application, please refer to FIG2. Figure 3 In an optional embodiment of the present application, the first test module 41 includes a first controller 411 and a second controller 412, the first controller 411 is respectively connected to the server 10 and the second controller 412, and the second controller 412 is respectively connected to the first controller 411 and the external expansion device 20; the first controller 411 and the second controller 412 are at least configured to control the transmission of the tested signal.
[0040] Specifically, this embodiment provides a specific implementation of a first test module 41. The first test module 41 includes a first controller 411 and a second controller 412. Optionally, the first controller 411 and the second controller 412 can be CPLDs (Complex Programmable Logic Devices). This application only uses this as an example for illustration and is not limited to this. The first controller 411 and the second controller 412 can control the transmission of the tested signal. Optionally, before the fault injection test begins, the test unit 40 is connected to the server 10 and the external expansion device 20 respectively. The server 10 sends a signal to be transmitted, and the first controller 411 receives the signal transmitted by the server. The signal can be transparently transmitted between the first controller 411 and the second controller 412, and then transmitted to the external expansion device 20 by the second controller 412. It should be noted that this application only uses the above embodiment as an example to illustrate the signal direction and is not limited to this. It should also be noted that transparent transmission means that the signal is directly transmitted without being processed. The present disclosure realizes transmission and switching of the test signal inside the test unit 40 by setting the first controller 411 and the second controller 412, and can test a variety of test signals, which is beneficial to improving the comprehensiveness of the fault injection test system.
[0041] It should be noted that since the pins connecting the first controller 411 to the server 10 are usually fixed, and the pins connecting the second controller 412 to the external expansion device 20 are usually fixed, the present application sets up different controllers to be connected to the server 10 and the external expansion device 20 respectively. In this way, it can be ensured that when the connection pins of the measured signal between the first controller 411 and the second controller 412 are changed, it does not affect the signal transmission between the server 10 and the first controller 411, nor does it affect the signal transmission between the second controller 412 and the external expansion device 20.
[0042] Please continue to refer to Figure 3 In an optional embodiment of the present application, the first controller 411 and the second controller 412 both include a measured signal interface 401, and the measured signal interface 401 is at least configured to receive a measured signal and transmit a measured signal.
[0043] Specifically, in this embodiment, a signal under test interface 401 is provided in the first controller 411 and the second controller 412. The first controller 411 and the second controller 412 select the corresponding signal under test to access the signal under test interface 401 according to the control signal transmitted by the host computer 30, and set the fault type through the first test module 41, that is, it is equivalent to forming a link fault between the first controller 411 and the second controller 412. For example, when performing a circuit breaker fault injection test of a first type of signal between the server 10 and the external expansion device 20, the first controller 411 and the second controller 412 select the first type of signal to access the signal under test interface 401, and the first test module 41 forms a circuit breaker fault between the first controller 411 and the second controller 412. Then, the signal under test cannot be transmitted from the signal under test interface 401 of the first controller 411 to the signal under test interface 401 of the second controller 412, thereby achieving a circuit breaker fault injection test of the first type of signal between the server 10 and the external expansion device 20. The present application sets a first controller 411 and a second controller 412, selects a measured signal, and switches the connection between the measured signal to be tested between the first controller 411 and the second controller 412 to the measured signal interface 401 to select the corresponding measured signal. Such a setting is conducive to the selection of multiple measured signals, improves the scope of use of the fault injection test system 100, and further helps to improve the comprehensiveness of the fault injection test.
[0044] Please continue to refer to Figure 3 In an optional embodiment of the present application, the first test module 41 also includes a first switch control component 4131 and a second switch control component 4132, the input end and the enable end of the first switch control component 4131 are connected to the first controller 411, and the output end is connected to the second controller 412, the input end and the enable end of the second switch control component 4132 are connected to the first controller 411, and the output end is grounded.
[0045] Specifically, the first test module 41 also includes at least two switch control components: a first switch control component 4131 and a second switch control component 4132, to enable testing of different fault types. The enable terminal of the first switch control component 4131 is connected to the first controller 411, enabling the first switch control component 4131 to be turned on and off under the control of the first controller 411. The input terminal of the first switch control component 4131 is connected to the test signal interface 401 of the first controller 411, and the output terminal is connected to the test signal interface 401 of the second controller 412. The enable terminal of the second switch control component 4132 is also connected to the first controller 411, enabling the second switch control component 4132 to be turned on and off under the control of the first controller 411. The input terminal of the second switch control component 4132 is connected to the test signal interface 401 of the first controller 411, and the output terminal is grounded. The first switch control component 4131 and the second switch control component 4132 are used to implement different types of fault injection tests. The present application realizes the injection of different measured signals by setting a first controller 411 and a second controller 412, and realizes the injection of different fault types by setting a first switch control component 4131 and a second switch control component 4132. The first controller 411 and the second controller 412 receive the control signal transmitted by the upper computer 30, and select the measured signal and the fault type according to the control signal to realize injection testing of different measured signals and different fault types. Such a setting is conducive to avoiding the manual welding test method, thereby improving the test efficiency, reducing the probability of equipment failure, and reducing the test cost. It is also conducive to improving the diversity of fault types that can be tested by the fault injection test system 100, and further conducive to improving the comprehensiveness of the fault injection test.
[0046] The present application provides an optional embodiment in which the enable terminal of the first switch control component 4131 receives a non-enable signal, and the enable terminal of the second switch control component 4132 receives a non-enable signal, that is, the first switch control component 4131 and the second switch control component 4132 are both cut off, and the measured signal cannot be transmitted from the first controller 411 to the second controller 412, thereby achieving an open circuit test of the measured signal. The present application provides another optional embodiment in which the enable terminal of the first switch control component 4131 receives a non-enable signal, and the enable terminal of the second switch control component 4132 receives an enable signal, that is, the first switch control component 4131 is cut off and the second switch control component 4132 is turned on, at this time, it is equivalent to the measured signal being grounded, thereby achieving a short circuit test of the measured signal.
[0047] Figure 4 FIG2 is another schematic diagram of a fault injection test system provided in an embodiment of the present application, please refer to FIG2. Figure 4In an optional embodiment of the present application, the test unit 40 is specifically used to perform fault injection between the server 10 and the external expansion device 20 through the second test module 42 when the signal under test is a second type of signal, and the second type of signal is a differential signal, and the second type of signal includes at least two single-ended signals.
[0048] Specifically, when the signal under test is a Type II signal, the test unit 40 uses the second test module 42 to perform fault injection between the server 10 and the external expansion device 20. Specifically, the second test module 42 performs fault injection specifically for the Type II signal under test. Type II signals are differential signals. It should be noted that differential signaling is a signal transmission method that transmits information via the voltage difference between two signal lines. Unlike single-ended signals (which use ground as the reference level), differential signals consist of a pair of signal lines with opposite phases, making them more suitable for high-speed transmission.
[0049] For the second type of signal, there are at least four fault injection modes: short circuit, unstable short circuit, open circuit, and unstable open circuit. This application simulates different fault types by configuring the link of the second test module 42. This application provides a second test module 42 within the test unit 40 to perform fault injection testing on the second type of signal. This allows for fault injection testing of at least a portion of the signals (differential signals with a higher transmission rate) between the server 10 and the external expansion device 20. This helps reduce the need for manual signal welding to perform signal fault injection testing, thereby improving equipment damage caused by multiple welding operations and reducing testing costs. Furthermore, this eliminates the need for manual operation, which improves testing efficiency.
[0050] Figure 5 FIG2 is another schematic diagram of a fault injection test system provided in an embodiment of the present application, please refer to FIG2 Figure 5 In an optional embodiment of the present application, the second test module 42 includes a third controller 423 and a fourth controller 424, the third controller 423 is connected to the server 10 and the fourth controller 424, respectively, and the fourth controller 424 is connected to the third controller 423 and the external expansion device 20, respectively; the third controller 423 and the fourth controller 424 are at least configured to select at least one single-ended signal in the second type of signal for transmission according to the control signal and switch to the test state.
[0051] Specifically, this embodiment provides a specific implementation of a second test module 42, and the second test module 42 includes a third controller 423 and a fourth controller 424. Optionally, the third controller 423 and the fourth controller 424 can be multiplexers. For example, a MAX4618 chip can be used. This application is only used as an example for illustration and is not limited to this. The third controller 423 and the fourth controller 424 can control the transmission of the tested signal. Optionally, before the fault injection test begins, the test unit 40 is connected to the server 10 and the external expansion device 20 respectively. The signal transmitted by the server 10 can be transmitted to the third controller 423, and the third controller 423 is transmitted to the fourth controller 424, and then transmitted to the external expansion device 20 by the fourth controller 424. It should be noted that this application only uses the above embodiment as an example to illustrate the signal direction, and is not limited to this. The present application forms a complete and controllable signal transmission path between the server 10 and the external expansion device 20 by setting a third controller 423 and a fourth controller 424 in the second test module 42. This is conducive to the second test module 42 to efficiently and orderly configure the transmission link of the measured signal between the server 10 and the external expansion device 20 to form different types of faults, which is conducive to reducing manual welding to achieve signal fault injection, preventing equipment damage, reducing testing costs, and reducing dependence on manual operations, which is conducive to improving test efficiency. When the signal to be tested is a second-class signal, the third controller 423 and the fourth controller 424 can also be used to select a single-ended signal from the second-class signal for fault injection testing alone, or select multiple single-ended signals for fault injection testing at the same time. The measured signal is transmitted and switched to the test state by the third controller 423 and the fourth controller 424. Such a setting can test multiple measured signals and is also conducive to improving the comprehensiveness of the fault injection test system.
[0052] It should be noted that since the pins connecting the third controller 423 to the server 10 are usually fixed, and the pins connecting the fourth controller 424 to the external expansion device 20 are usually fixed, the present application sets up different controllers to be connected to the server 10 and the external expansion device 20 respectively. In this way, it can be ensured that when the connection pins of the measured signal between the third controller 423 and the fourth controller 424 are changed, it does not affect the signal transmission between the server 10 and the third controller 423, nor does it affect the signal transmission between the fourth controller 424 and the external expansion device 20.
[0053] Figure 5 FIG2 is another schematic diagram of a fault injection test system provided in an embodiment of the present application, please refer to FIG2. Figure 5In an optional embodiment of the present application, the third controller 423 and the fourth controller 424 both include a measured signal interface 401, and the measured signal interface 401 is at least configured to receive a measured signal and transmit a measured signal.
[0054] Specifically, in this embodiment, a signal under test interface 401 is provided in the third controller 423 and the fourth controller 424. The third controller 423 and the fourth controller 424 select the corresponding signal under test to access the signal under test interface 401 according to the control signal transmitted by the host computer 30, and set the fault type through the second test module 42, that is, a link fault is formed between the third controller 423 and the fourth controller 424, so as to perform a fault injection test on the signal between the server 10 and the external expansion device 20. For example, when a short-circuit fault injection test of the second type of signal is performed between the server 10 and the external expansion device 20, the second test module 42 forms a short-circuit fault between the third controller 423 and the fourth controller 424. Then, the signal under test is short-circuited between the third controller 423 and the fourth controller 424 and cannot be normally transmitted to the signal under test interface 401 of the fourth controller 424, thereby achieving a short-circuit fault injection test of the second type of signal between the server 10 and the external expansion device 20. The third controller 423 and the fourth controller 424 of the present application are both provided with a measured signal interface 401. After the test unit 40 receives the control signal of the upper computer 30, it selects the measured signal according to the control signal, and switches the connection between the measured signal to be tested between the third controller 423 and the fourth controller 424 to the measured signal interface 401 to select the corresponding measured signal. Such a setting is conducive to the selection of multiple measured signals, improves the scope of use of the fault injection test system 100, and further helps to improve the comprehensiveness of the fault injection test.
[0055] Furthermore, the present application provides an optional embodiment in which the third controller 423 and the fourth controller 424 respectively include two measured signal interfaces 401, the second type of signal is a differential signal, including a first single-ended signal and a second single-ended signal, and the first single-ended signal and the second single-ended signal are respectively connected to different measured signal interfaces 401. Such a setting is conducive to realizing fault injection testing of different single-ended signals in the differential signal.
[0056] For the individual fault injection test and combined fault injection test of the first single-ended signal and the second single-ended signal, the present application designs the second test module 42 to implement a comprehensive fault injection test of the differential signal. Figure 5The present application provides an optional implementation scheme in which the second test module 42 further includes a third switch control component 4213, a fourth switch control component 4214, a fifth switch control component 4215, a sixth switch control component 4216, and a fifth controller 425; the enable terminals of the third switch control component 4213, the fourth switch control component 4214, the fifth switch control component 4215, and the sixth switch control component 4216 are all connected to the fifth controller 425, and the fifth controller 425 is at least configured to control the third switch control component 4213, The fourth switch control component 4214, the fifth switch control component 4215 and the sixth switch control component 4216 are turned on and off; the input ends of the third switch control component 4213, the fourth switch control component 4214, the fifth switch control component 4215 and the sixth switch control component 4216 are all connected to the third controller 423; the output ends of the third switch control component 4213 and the fifth switch control component 4215 are both connected to the fourth controller 424; the output ends of the fourth switch control component 4214 and the sixth switch control component 4216 are both grounded.
[0057] Specifically, the second test module 42 further includes multiple switch control components and a fifth controller 425. The fifth controller 425 receives control signals transmitted by the host computer 30 (the figure does not show a connection between the fifth controller 425 and the host computer 30; in practice, the fifth controller 425 and the host computer 30 must be connected). Based on the control signals, the fifth controller 425 injects relevant faults. Under the control of the fifth controller 425, the multiple switch control components implement different fault types for the tested signal. The enable terminal of the third switch control component 4213 is connected to the fifth controller 425, and the third switch control component 4213 is turned on and off under the control of the fifth controller 425. The input terminal of the third switch control component 4213 is connected to the tested signal interface 401 of the third controller 423, and the output terminal is connected to the tested signal interface 401 of the fourth controller 424. The enable terminal of the fourth switch control component 4214 is connected to the fifth controller 425. Under the control of the fifth controller 425, the fourth switch control component 4214 is turned on and off. The input terminal of the fourth switch control component 4214 is connected to the measured signal interface 401 of the third controller 423, and the output terminal is grounded. The enable terminal of the fifth switch control component 4215 is connected to the fifth controller 425. Under the control of the fifth controller 425, the fifth switch control component 4215 is turned on and off. The input terminal of the fifth switch control component 4215 is connected to the measured signal interface 401 of the third controller 423, and the output terminal is connected to the measured signal interface 401 of the fourth controller 424. The enable terminal of the sixth switch control component 4216 is connected to the fifth controller 425. Under the control of the fifth controller 425, the sixth switch control component 4216 is turned on and off. The input terminal of the sixth switch control component 4216 is connected to the measured signal interface 401 of the third controller 423, and the output terminal is grounded.
[0058] In the second test module 42 of the present application, the fifth controller 425 receives the control signal transmitted by the host computer 30, and controls the corresponding switch control component according to the control signal to realize injection testing of different fault types of the measured signal (second type signal). Such a setting is conducive to avoiding fault injection testing by manual welding, thereby improving test efficiency, reducing the probability of equipment failure, and helping to reduce testing costs. It is also conducive to increasing the diversity of fault types that can be tested by the fault injection test system 100, and further helping to improve the comprehensiveness of the fault injection test.
[0059] The present application provides an optional implementation scheme in which the second type of signal is a differential signal, the differential signal including a first single-ended signal and a second single-ended signal. The input end of the third switch control chip and the input end of the fourth switch control chip receive the first single-ended signal, and the input end of the fifth switch control signal and the input end of the sixth switch control chip receive the second single-ended signal. The first single-ended signal and the second single-ended signal can be tested for short-circuit faults and open-circuit faults. In some optional embodiments, the enable end of the third switch control component 4213 receives a disable signal, and the enable end of the fourth switch control component 4214 receives a disable signal. That is, the third switch control component 4213 and the fourth switch control component 4214 are both turned off, and the first single-ended signal cannot be transmitted from the third controller 423 to the fourth controller 424. In this way, an open-circuit test of the first single-ended signal is implemented. In other optional embodiments, the enable terminal of the third switch control component 4213 receives a disable signal, and the enable terminal of the fourth switch control component 4214 receives an enable signal, that is, the third switch control component 4213 is turned off and the fourth switch control component 4214 is turned on. At this time, the first single-ended signal is grounded, achieving a short-circuit test for the first single-ended signal. In still other optional embodiments, the enable terminal of the fifth switch control component 4215 receives a disable signal, and the enable terminal of the sixth switch control component 4216 receives a disable signal, that is, both the fifth switch control component 4215 and the sixth switch control component 4216 are turned off, and the second single-ended signal cannot be transmitted from the third controller 423 to the fourth controller 424, thus achieving a circuit break test for the second single-ended signal. In some further optional embodiments, the enable terminal of the fifth switch control component 4215 receives a disable signal, and the enable terminal of the sixth switch control component 4216 receives an enable signal, i.e., the fifth switch control component 4215 is turned off and the sixth switch control component 4216 is turned on. In this case, the second single-ended signal is grounded, thereby implementing a short-circuit test for the second single-ended signal. In some further optional embodiments, the enable terminal of the third switch control component 4213, the enable terminal of the fourth switch control component 4214, the enable terminal of the fifth switch control component 4215, and the enable terminal of the sixth switch control component 4216 all receive a disable signal, i.e., the third switch control component 4213, the fourth switch control component 4214, the fifth switch control component 4215, and the sixth switch control component 4216 are all turned off. In this case, the second single-ended control signal cannot be transmitted from the third controller 423 to the fourth controller 424, thereby implementing a circuit-break test for the first and second single-ended signals. In some further optional embodiments, the enable end of the third switch control component 4213 and the enable end of the fifth switch control component 4215 receive a non-enable signal, the enable end of the fourth switch control component 4214 and the enable end of the sixth switch control component 4216 receive an enable signal, and the first single-ended signal and the second single-ended signal are both grounded, thereby achieving a test that both the first single-ended signal and the second single-ended signal are short-circuited.
[0060] It should be noted that the above embodiment shows a method for performing short-circuit and open-circuit tests on the first single-ended signal and the second single-ended signal in the second type of signal. For the second type of signal, non-steady-state tests, such as non-steady-state open-circuit tests and non-steady-state short-circuit tests, can also be performed. The present application provides an optional embodiment in which, when performing a non-steady-state open-circuit test on the first single-ended signal, the fourth switch control component 4214 is cut off, and the fifth controller 425 adjusts the enable signal of the third switch control component 4213. Under the control of the fifth controller 425, the third switch control component 4213 switches between on and off. The switching frequency of on and off can be set by the host computer 30, and then the switching frequency of the third switch control component 4213 is controlled by the fifth controller 425 to achieve a non-steady-state open-circuit test on the first single-ended signal. The present application provides another optional embodiment, which is to perform a non-steady-state open circuit test on the first single-ended signal, cut off the third switch control component 4213, and control the fourth switch control component 4214 to switch on and off according to the switching frequency set by the host computer 30, thereby realizing a non-steady-state short circuit test on the first single-ended signal.
[0061] The present application provides another optional embodiment, in which when a non-steady-state open circuit test is performed on the second single-ended signal, the sixth switch control component 4216 is turned off, and the fifth controller 425 adjusts the enable signal of the fifth switch control component 4215. Under the control of the fifth controller 425, the fifth switch control component 4215 switches between on and off. The on and off frequencies can be set by the host computer 30, and then the switching frequency of the fifth switch control component 4215 is controlled by the fifth controller 425 to achieve a non-steady-state open circuit test on the second single-ended signal. The present application provides another optional embodiment, in which when a non-steady-state short circuit test is performed on the second single-ended signal, the fifth switch control component 4215 is turned off, and the fifth controller 425 controls the sixth switch control component 4216 to switch between on and off according to the switching frequency set by the host computer 30, to achieve a non-steady-state short circuit test on the second single-ended signal. The present application provides another optional embodiment in which a non-steady-state open circuit test is performed on the first single-ended signal and the second single-ended signal at the same time, the fourth switch control component 4214 and the sixth switch control component 4216 are both turned off, and the fifth controller 425 controls the third switch control component 4213 and the fifth switch control component 4215 to switch on and off, thereby achieving a non-steady-state open circuit test on the first single-ended signal and the second single-ended signal. The present application provides another optional embodiment in which a non-steady-state short circuit test is performed on the first single-ended signal and the second single-ended signal at the same time, the third switch control component 4213 and the fifth switch control component 4215 are both turned off, and the fourth switch control component 4214 and the sixth switch control component 4216 are switched on and off under the control of the fifth controller 425, thereby achieving a non-steady-state short circuit test on the first single-ended signal and the second single-ended signal.
[0062] It should be noted that the switching frequency of the switch control component of the fifth controller 425 can be set by the host computer 30, so that the fifth controller 425 switches between the transmission enable signal and the non-enable signal at a certain frequency, and this application does not make specific limitations on this.
[0063] Figure 6 FIG2 is another schematic diagram of a fault injection test system provided in an embodiment of the present application, please refer to FIG2. Figure 6 It should also be noted that the first test module 41 and the second test module 42 can exist in the test unit 40 at the same time. This application does not make specific limitations. When the first test module 41 and the second test module 42 exist in the test unit 40 at the same time, the first controller 411 and the fifth controller 425 can use the same controller to save device costs, which is further conducive to reducing testing costs.
[0064] Optionally, the first switch control component 4131, the second switch control component 4132, the third switch control component 4213, the fourth switch control component 4214, the fifth switch control component 4215 and the sixth switch control component 4216 can all adopt a switch control chip, such as the switch control chip AIP74LVC1G125. This application is only illustrated by this example and is not limited to this.
[0065] Please refer to Figures 1 to 6 In an optional embodiment of the present application, the test unit 40 includes a debugging interface, and the host computer 30 is connected to the test unit 40 through the debugging interface.
[0066] Specifically, in the fault injection test system 100 provided in this application, the host computer 30 generates a control signal based on the measured signal and the fault type, and transmits it to the test unit 40. In this embodiment, a debugging interface is provided to connect the host computer 30 and the test unit 40. This configuration facilitates operations such as writing configuration parameters and injecting test data into the test unit 40 from the host computer 30, thereby ensuring the reliability and efficiency of the test.
[0067] Based on the same inventive concept, this application provides a fault injection testing method. Figure 7 The figure shows a flow chart of the fault injection test method provided by the embodiment of the present application. Figure 1 and Figure 7 The fault injection test method is performed using any of the fault injection test systems 100 provided in the embodiments of the present application. The fault injection test method includes:
[0068] In step S10, the server 10 establishes a connection with the external expansion device 20 via the test unit 40. Specifically, the test unit 40 is provided between the server 10 and the external expansion device 20, and the server 10 and the external expansion device 20 are each connected to the test unit 40. For example, the server 10 and the test unit 40 are connected via a connector, and the external expansion device 20 is connected via a connector. It should be noted that this is merely an example and is not intended to be limiting.
[0069] Step S20: Select a test signal and set a fault type, and generate a control signal based on the test signal and fault type. The signals transmitted between the server 10 and the external expansion device 20 are diverse, and the possible faults are also different. When performing a fault injection test, the test signal and fault type to be tested are selected. Fault injection tests can be performed on different fault types of different test signals to improve the comprehensiveness of the fault injection test. For example, the test signal and fault type can be selected and the control signal generated by the host computer 30.
[0070] Step S30: Inject a fault signal between the server 10 and the external expansion device 20 according to the control signal. Specifically, after selecting the signal to be tested and the fault type in step S20, the control signal is transmitted to the test unit 40, and the test unit 40 performs a fault injection test between the server 10 and the external expansion device 20 according to the control signal.
[0071] It should be noted that the fault injection testing method provided herein allows for selection of the signal to be tested and the type of fault to be tested, and then, based on the signal to be tested and the type of fault to be tested, the test unit 40 is used to implement a fault injection test between the server 10 and the external expansion device 20. This configuration helps avoid manual signal welding to achieve signal fault injection. On the one hand, this helps avoid equipment damage caused by multiple welding operations, which helps reduce costs. On the other hand, it does not rely on manual operation, which helps improve testing efficiency. In addition, it can implement a variety of different fault types, which also helps to improve the comprehensiveness of the fault injection test.
[0072] Please refer to Figure 3 and Figure 7 In an optional embodiment of the present application, step S20, selects the measured signal and sets the fault type, and generates a control signal according to the measured signal and the fault type, including: determining that the measured signal is a first type of signal; wherein the first type of signal is a single-ended signal, and the transmission rate is less than or equal to the preset rate; setting the fault type of the measured signal; generating a control signal according to the measured signal and the fault type; step S30, injecting a fault signal between the server 10 and the external expansion device 20 according to the control signal, including: adjusting the conduction path of the first test module 41 according to the control signal.
[0073] Specifically, in step S20, a determination is made as to whether the signal under test is a first-category signal. If the signal under test is a first-category signal, a corresponding control signal is generated based on the signal under test and the fault type. In step S30, the conductive path in the first test module 41 is adjusted based on the control signal generated in step S20 to generate the corresponding fault type, thereby implementing fault injection testing of different fault types for the first-category signal. For example, if the signal under test is a first-category signal and the fault type is an open circuit, a corresponding control signal for performing an open circuit test on the first-category signal is generated in step S20. In step S30, based on the control signal generated in step S20, the conductive path in the first test module 41 is adjusted, specifically, the first switch control component 4131 and the second switch control component 4132 are both turned off to implement an open circuit test for the first-category signal. It should be noted that this application uses the above embodiment as an example only. For testing other fault types, other corresponding control signals can be generated to control the conductive state of different components in the first test module 41.
[0074] Please refer to Figure 5 and Figure 7 In an optional embodiment of the present application, step S20, selects the measured signal and sets the fault type, and generates a control signal according to the measured signal and the fault type, including: determining that the measured signal is a second type of signal; wherein the second type of signal is a differential signal; setting the fault type of the measured signal; generating a control signal according to the measured signal and the fault type; step S30, injecting a fault signal between the server 10 and the external expansion device 20 according to the control signal, including: adjusting the conduction path of the second test module 42 according to the control signal.
[0075] Specifically, in step S20, a determination is made as to whether the signal under test is a second-category signal. If the signal under test is a second-category signal, a corresponding control signal is generated based on the signal under test and the fault type. In step S30, the conduction path in the second test module 42 is adjusted based on the control signal generated in step S20 to generate the corresponding fault type, thereby implementing fault injection testing for different fault types of the second-category signal. For example, if the signal under test is a second-category signal and the fault type is an open circuit, in step S30, the conduction path in the second test module 42 is adjusted based on the control signal generated in step S20. Specifically, the third switch control component 4213, the fourth switch control component 4214, the fifth switch control component 4215, and the sixth switch control component 4216 are all turned off to implement an open circuit test for the second-category signal. It should be noted that this application uses the above embodiment as an example only. For testing other fault types, other corresponding control signals can be generated to control the conduction state of different components in the second test module 42.
[0076] Please refer to Figure 5 and Figure 7 In an optional embodiment of the present application, step S20, selects the measured signal and sets the fault type, and generates a control signal according to the measured signal and the fault type, including: determining that the measured signal is a second type of signal; wherein the second type of signal is a differential signal, and the second type of signal includes a first single-ended signal and a second single-ended signal; setting the fault type of the first single-ended signal and / or the second single-ended signal; generating a control signal according to the measured signal and the fault type; step S30, injecting a fault signal between the server 10 and the external expansion device 20 according to the control signal, including: adjusting the conduction path of the second test module 42 according to the control signal.
[0077] Specifically, in step S20, it is determined whether the signal under test is a second-category signal. If the signal under test is a second-category signal, the first single-ended signal and / or the second single-ended signal and the fault type within the second-category signal may be selected. Specifically, the first single-ended signal and the second single-ended signal may be tested separately or simultaneously. A corresponding control signal is generated based on the selected signal under test and fault type. In step S30, the conductive path within the second test module 42 is adjusted based on the control signal generated in step S20 to generate the corresponding fault type, thereby implementing fault injection testing for different fault types within the second-category signal. For example, only the open-circuit fault of the first single-ended signal is tested. In step S20, a corresponding control signal for performing an open-circuit test on the first single-ended signal is generated. In step S30, based on the control signal generated in step S20, the conductive path within the second test module 42 is adjusted. Specifically, both the third switch control component 4213 and the fourth switch control component 4214 are turned off to implement an open-circuit test on the first single-ended signal. It should be noted that this application only uses the above embodiment as an example for description. For tests of other fault types, other corresponding control signals can be generated to control the conduction states of different devices in the second test module 42.
[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0079] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned fault injection test method embodiments.
[0080] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned fault injection testing method embodiments when running.
[0081] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0082] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned fault injection testing method embodiments are implemented.
[0083] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0084] The above is a detailed introduction to the fault injection test system, method, device, medium and product provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A fault injection testing system, characterized in that: include: A server, an external expansion device, a host computer, and a test unit, wherein the test unit is connected between the server and the external expansion device, and the host computer is connected to the test unit; The host computer is at least configured to select a measured signal and a fault type, generate a control signal according to the measured signal and the fault type, and send the control signal; The test unit includes a first test module and a second test module, and the test unit is at least configured to receive the control signal and perform fault injection between the server and the external expansion device through the first test module and the second test module according to the signal type of the tested signal; The first test module includes a first controller and a second controller, the first controller is connected to the server and the second controller respectively, and the second controller is connected to the first controller and the external expansion device respectively; The second test module includes a third controller and a fourth controller, the third controller is connected to the server and the fourth controller respectively, and the fourth controller is connected to the third controller and the external expansion device respectively; The second test module further includes a fifth controller and a plurality of switch control components, wherein the fifth controller is at least configured to control the switch control components to implement different fault types of the measured signal; The first test module and the second test module are used to perform a fault injection test between the server and the external expansion device; The first test module is specifically configured to perform open circuit fault injection and short circuit fault injection on a first type of signal between the server and the external expansion device; The second test module is specifically used to perform circuit break fault injection, unstable circuit break fault injection, short circuit fault injection and unstable circuit break fault injection for the second type of signal between the server and the external expansion device.
2. The fault injection testing system according to claim 1, characterized in that: The test unit is specifically used to inject faults between the server and the external expansion device through the first test module when the tested signal is a first type of signal, the first type of signal is a single-ended signal, and the transmission rate is less than or equal to a preset rate.
3. The fault injection testing system according to claim 2, characterized in that: The first controller and the second controller are at least configured to control the transmission of the measured signal.
4. The fault injection testing system according to claim 3, wherein: The first controller and the second controller both include a measured signal interface, and the measured signal interface is at least configured to receive the measured signal and transmit the measured signal.
5. The fault injection testing system according to claim 3, characterized in that: The first test module also includes a first switch control component and a second switch control component, the input end and the enable end of the first switch control component are connected to the first controller, and the output end is connected to the second controller, the input end and the enable end of the second switch control component are connected to the first controller, and the output end is grounded.
6. The fault injection testing system according to claim 1, wherein: The test unit is specifically used to inject faults between the server and the external expansion device through the second test module when the signal under test is a second type of signal, the second type of signal is a differential signal, and the second type of signal includes at least two single-ended signals.
7. The fault injection testing system according to claim 6, characterized in that: The third controller and the fourth controller are at least configured to select at least one single-ended signal from the second type of signals for transmission and switch to a test state according to the control signal.
8. The fault injection testing system according to claim 7, characterized in that: The third controller and the fourth controller both include a measured signal interface, and the measured signal interface is at least configured to receive the measured signal and transmit the measured signal.
9. The fault injection testing system according to claim 7, characterized in that: The second test module further includes a third switch control component, a fourth switch control component, a fifth switch control component and a sixth switch control component; The enable terminals of the third switch control component, the fourth switch control component, the fifth switch control component, and the sixth switch control component are all connected to the fifth controller, and the fifth controller is at least configured to control the opening and closing of the third switch control component, the fourth switch control component, the fifth switch control component, and the sixth switch control component; The input ends of the third switch control component, the fourth switch control component, the fifth switch control component and the sixth switch control component are all connected to the third controller; the output ends of the third switch control component and the fifth switch control component are all connected to the fourth controller; and the output ends of the fourth switch control component and the sixth switch control component are both grounded.
10. The fault injection test system according to any one of claims 1 to 9, characterized in that: The test unit includes a debugging interface, and the host computer is connected to the test unit via the debugging interface.
11. A fault injection testing method, characterized in that: The fault injection testing system according to any one of claims 1 to 10 is used for testing, wherein the fault injection testing method comprises: The server establishes a connection with the external expansion device through the test unit; Select a measured signal and set a fault type, and generate a control signal according to the measured signal and the fault type; A fault signal is injected between the server and the external expansion device according to the control signal.
12. The fault injection testing method according to claim 11, characterized in that: The step of selecting a measured signal and setting a fault type, and generating a control signal according to the measured signal and the fault type, includes: Determining that the measured signal is a first type of signal; wherein the first type of signal is a single-ended signal and has a transmission rate less than or equal to a preset rate; setting a fault type of the measured signal; and generating a control signal according to the measured signal and the fault type; The injecting a fault signal between the server and the external expansion device according to the control signal comprises: The conduction path of the first test module is adjusted according to the control signal.
13. The fault injection testing method according to claim 11, wherein: The step of selecting a measured signal and setting a fault type, and generating a control signal according to the measured signal and the fault type, includes: Determining that the measured signal is a second type of signal; wherein the second type of signal is a differential signal; setting a fault type of the measured signal; and generating a control signal according to the measured signal and the fault type; The injecting a fault signal between the server and the external expansion device according to the control signal comprises: The conduction path of the second test module is adjusted according to the control signal.
14. The fault injection testing method according to claim 11, characterized in that: The step of selecting a measured signal and setting a fault type, and generating a control signal according to the measured signal and the fault type, includes: Determining that the measured signal is a second type of signal; wherein the second type of signal is a differential signal, and the second type of signal includes a first single-ended signal and a second single-ended signal; setting a fault type of the first single-ended signal and / or the second single-ended signal; and generating a control signal according to the measured signal and the fault type; The injecting a fault signal between the server and the external expansion device according to the control signal comprises: The conduction path of the second test module is adjusted according to the control signal.
15. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the fault injection testing method according to any one of claims 11 to 14 when executing the computer program.
16. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the fault injection testing method according to any one of claims 11 to 14 when executed by a processor.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the fault injection testing method according to any one of claims 11 to 14 are implemented.
Citation Information
Patent Citations
Fault injection device and fault injection method
CN108462616A