Signal fault simulation device and method and computer readable storage medium

By adding a signal fault simulation device at the connection between the electronic equipment and the power supply module, and using the control unit and the fault simulation unit to perform fault simulation on the initial signal, the problem of error contact of the manual wiring method and inaccurate test results is solved, and simpler and more accurate signal fault simulation is achieved.

CN119597561APending Publication Date: 2025-03-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411748833.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-30
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, manual wiring method is used to simulate signal failures, which easily leads to multiple signals short-circuit or circuit breaker, and the correct log cannot be obtained, affecting the accuracy of the test results.

Method used

A signal fault simulation device is provided, including a control unit and a fault simulation unit. The input end of the fault simulation unit is connected to the power supply module and the output end is connected to the input end of the electronic device. The initial signal is subject to fault simulation through the analog command issued by the control unit, and the simulated fault signal is sent to the electronic device.

Benefits of technology

It reduces the complexity of the test, improves the accuracy of the test results, avoids the error-touching problems caused by manual wiring, and ensures the accuracy of the simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597561A_ABST
    Figure CN119597561A_ABST
Patent Text Reader

Abstract

The invention provides a signal fault simulation device and method and a computer readable storage medium, and is applied to the technical field of electronic equipment. Wherein the input end of the fault simulation unit is connected with the power supply module and is used for acquiring each initial signal sent by the power supply module; the output end of the fault simulation unit is connected with the input end of the electronic equipment, and the fault simulation unit is used for receiving the simulation instruction issued by the control unit, performing fault simulation on the corresponding initial signal according to the simulation instruction, and sending the simulated fault signal to the electronic equipment; and the control unit is connected with the communication end of the fault simulation unit and the communication end of the electronic equipment, and is used for receiving the fault signal and the log of the electronic equipment and determining the log display state according to the fault signal. According to the method, the initial signal is simulated, and then the log state is judged according to the simulated fault signal and the log generated by the electronic equipment. The overall operation is simple, the equipment cannot be damaged, and the accuracy of a final simulation result is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic equipment, and in particular to a signal fault simulation device, method and computer-readable storage medium. Background Art

[0002] When the power module is connected to an electronic device (such as a server), there are many signals inside the power module, which are output to the electronic device to implement various functions. Therefore, before the power module is connected to the electronic device and supplies power to the electronic device so that the electronic device can operate normally, it is necessary to perform a fault test on it to avoid signal failure and the electronic device not responding correctly.

[0003] At present, in the actual test process, manual wiring is performed on the power extension test fixture in the electronic equipment to connect the signal to be tested with the ground wire to simulate the signal short circuit; the signal to be tested is isolated with insulating tape to simulate the signal open circuit fault, and the simulation of short circuit and open circuit is realized. In this method, if you want to remove the short circuit fault, you need to remove the wire, and if you want to remove the open circuit fault, you need to remove the tape. However, the manual wiring test method is likely to accidentally touch other signals, causing unexpected multi-signal short circuit or open circuit, or the wiring is not tight and the fault is restored in the middle of the test process, resulting in the inability to obtain the correct log and determine the correctness of the test results.

[0004] It can be seen that how to reduce the complexity of the test and improve the accuracy of the test results is a problem that technical personnel in this field need to solve. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a signal fault simulation device, method and computer-readable storage medium, which can solve the problem of false touch caused by the manual wiring method used in the prior art, as well as the problem of being unable to obtain correct logs and determine the correctness of test results.

[0006] In order to solve the above technical problems, on the one hand, an embodiment of the present invention provides a signal fault simulation device, including: a control unit and a fault simulation unit;

[0007] The input end of the fault simulation unit is connected to the power module and is used to obtain each initial signal sent by the power module;

[0008] The output end of the fault simulation unit is connected to the input end of the electronic device, and is used to receive the simulation instruction issued by the control unit, and perform fault simulation on the corresponding initial signal according to the simulation instruction, and send the simulated fault signal to the electronic device;

[0009] The control unit is connected to the communication end of the fault simulation unit and the communication end of the electronic device, and is used to receive the fault signal and the log of the electronic device, and determine the state displayed by the log according to the fault signal.

[0010] In some embodiments, the fault simulation unit includes: at least one group of switch units, a group of switch units including at least two paths for simulating different faults;

[0011] The input ends of the switch units are connected to each other and are commonly connected to the power module as the input end of the fault simulation unit;

[0012] The output ends of the switch units are connected to each other and are commonly connected to the input end of the electronic device as the output end of the fault simulation unit.

[0013] In some embodiments, the switch unit includes two paths, the two paths including a first switch and a second switch;

[0014] Wherein, the first end of the first switch is connected to the first end of the second switch, and together serve as the input end of the switch unit and are connected to the output end corresponding to the power module;

[0015] The second end of the first switch is connected to the second end of the second switch and is grounded, and is also connected to the input end of the electronic device as the output end of the switch unit;

[0016] When the simulation instruction is a short-circuit fault instruction, the first switch is controlled to be turned on and the second switch is turned off;

[0017] If the simulation instruction is a circuit breaker fault instruction, the first switch is controlled to be opened and the second switch is controlled to be opened.

[0018] In some embodiments, it further includes: a communication unit and a fault resetting unit;

[0019] The first end of the communication unit is connected to the control unit, and the second end of the communication unit is connected to the host computer, so that the control unit obtains the simulation instruction sent by the host computer according to the communication unit, and sends a fault signal to the host computer through the communication unit;

[0020] The first end of the fault reset unit is connected to the host computer, and the second end of the fault reset unit is connected to the communication end of the fault simulation unit, for obtaining the reset instruction sent by the host computer and controlling the fault simulation unit to perform the reset operation.

[0021] On the other hand, the present invention further provides a signal fault simulation method, which is applied to the above-mentioned signal fault simulation device, comprising:

[0022] Sending a simulation instruction to the fault simulation unit so that the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction and sends the simulated fault signal to the electronic device;

[0023] Obtaining a fault signal and a log determined by the electronic device based on the fault signal;

[0024] The status of the log display is determined based on the fault signal.

[0025] In some embodiments, the situation simulation instruction in the simulation instruction is a situation instruction of first failure and then power-on, and the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device, including:

[0026] When the power supply path is normal and if each initial signal is abnormal, the abnormal signal is reset until each initial signal is normal;

[0027] If the initial signals are normal, the electronic device is controlled to delete the initial log;

[0028] Performing fault simulation on the initial signal based on the fault simulation instruction in the module instruction;

[0029] Determine whether the fault simulation is successful;

[0030] If the fault simulation fails, return to the step of performing fault simulation on the initial signal based on the fault simulation instruction in the module instruction until the fault simulation succeeds;

[0031] If the fault simulation is successful, the fault signal obtained after the simulation is sent to the electronic device and the control unit, so that the electronic device generates a corresponding log according to the fault signal, and the control unit determines the state displayed in the log according to the fault signal.

[0032] In some embodiments, the situation simulation instruction in the simulation instruction is a power-on-first-fault situation instruction, and the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device, including:

[0033] When the power supply path is normal, the electronic device is controlled to delete the initial log;

[0034] Performing fault simulation on the initial signal based on the fault simulation instruction in the module instruction;

[0035] Control signal failure simulation device is powered on;

[0036] Determine whether the fault simulation is successful;

[0037] If the fault simulation is successful, the fault signal obtained after the simulation is sent to the electronic device and the control unit, so that the electronic device generates a corresponding log according to the fault signal, and the control unit determines the state displayed in the log according to the fault signal.

[0038] In some embodiments, the signal fault simulation method further includes:

[0039] Record the first failure number of the fault simulation failure;

[0040] If the first failure number is greater than the first preset failure number, the fault simulation is terminated;

[0041] In some embodiments, the signal fault simulation method further includes:

[0042] Record the second failure number of the failed reset operation on the abnormal signal;

[0043] If the second failure number is greater than the second preset failure number, the fault simulation is terminated.

[0044] On the other hand, the present invention further provides a simulation device, characterized in that it comprises:

[0045] Memory for storing computer programs;

[0046] A processor is used to execute a computer program to implement the steps of the above-mentioned signal fault simulation method.

[0047] On the other hand, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned signal fault simulation method are implemented.

[0048] On the other hand, the present invention further provides a computer program product, comprising a computer program / instruction, which implements the steps of the above-mentioned signal fault simulation method when executed by a processor.

[0049] It can be seen from the above technical scheme that the present invention provides a signal fault simulation device, which includes: a control unit and a fault simulation unit; the input end of the fault simulation unit is connected to the power module, and is used to obtain each initial signal sent by the power module; the output end of the fault simulation unit is connected to the input end of the electronic device, and is used to receive the simulation instruction issued by the control unit, and perform fault simulation on the corresponding initial signal according to the simulation instruction, and send the simulated fault signal to the electronic device; the control unit is connected to the communication end of the fault simulation unit and the communication end of the electronic device, and is used to receive the fault signal and the log of the electronic device, and determine the state of the log display according to the fault signal. It can be seen that the present invention adds a signal fault simulation device at the connection between the electronic device and the power module, and the signal fault module simulates the initial signal obtained from the power module, and then judges the state of the log according to the simulated fault signal and the log generated by the electronic device according to the fault signal, so as to determine the state of the electronic device. On the whole, the method is simple to operate, and will not cause damage to the electronic device and the power module, which ensures the accuracy of the final simulation result. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A schematic diagram of a signal fault simulation device provided by an embodiment of the present invention;

[0052] Figure 2 A complete schematic diagram of a signal fault simulation device provided by an embodiment of the present invention;

[0053] Figure 3 A flow chart of a signal fault simulation method provided by an embodiment of the present invention;

[0054] Figure 4 A flow chart of a method for simulating power-on first and then failure provided by an embodiment of the present invention;

[0055] Figure 5 A flowchart of a method for simulating a fault-first-power-on event provided by an embodiment of the present invention;

[0056] Figure 6 A structural diagram of a simulation device provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0058] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0059] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0060] Next, a signal fault simulation device provided by an embodiment of the present invention is described in detail. Figure 1 A schematic diagram of a signal fault simulation device provided by an embodiment of the present invention is shown in FIG. Figure 1As shown, the signal fault simulation device comprises: a control unit 1 and a fault simulation unit 2. In addition, Figure 1 The schematic diagram shown also includes: a power module 3 and an electronic device 4. The connection relationship is: the input end of the fault simulation unit 2 is connected to the power module 1, the output end of the fault simulation unit 2 is connected to the input end of the electronic device 4, and the control unit 1 is connected to the communication end of the fault simulation unit 2 and the communication end of the electronic device 4.

[0061] In the embodiment, when the power module 3 is connected to the electronic device 4 (such as a server) through the gold finger, there are many signals inside the power module 3, and these signals are output to the electronic device 4 to implement various functions, and the signals include: power supply signal, power normal signal (PG signal), energy input signal (Vingood signal), alarm signal (Alert signal), data signal (SDA signal and SCL signal) and other signals. When these signals have a short circuit or open circuit fault, some functions of the electronic device 4 will be affected, and an alarm message will be issued, and a fault-related log will be retained. If the electronic device 4 does not respond correctly after the signal is short-circuited or open-circuited, it may cause the electronic device 4 to ignore the signal abnormality and operate incorrectly, and it may also cause the electronic device 4 to power off abnormally, affecting the subsequent fault analysis work. Therefore, before the power module 3 is connected to the electronic device 4 and supplies power to the electronic device 4 so that the electronic device 4 can operate normally, it is necessary to perform a fault test on it to avoid signal failure and the electronic device 4 does not respond correctly. At present, there are two testing methods in the actual testing process. One testing method is to manually connect the power extension test fixture in the electronic device 4, connect the signal to be tested to the ground wire, and simulate the signal short circuit; use insulating tape to isolate the signal to be tested, and simulate the signal open circuit fault to achieve the simulation of short circuit and open circuit. In this method, if you want to remove the short circuit fault, you need to remove the wire, and if you want to remove the open circuit fault, you need to remove the tape. However, in the first testing method, the manual wiring testing method is likely to accidentally touch other signals, causing unexpected multi-signal short circuit or open circuit, or the wiring is not tight and the fault is restored in the middle of the test process, resulting in the inability to obtain the correct log and the inability to judge the correctness of the test result. The second testing method is to connect the signal that needs to simulate the short circuit to the ground wire on the gold finger of the power module 3 by welding wire. In this method, if you need to remove the fault, you need to remove the wiring after the power module is powered off, and then reinsert the power module 3 to power on. However, in the second test method, the test method of the gold finger welding wire of the power module 3 is more troublesome to remove the fault. At the same time, the removal of the welding wire is likely to damage the power module 3 and cannot be reused. It can only meet the test conditions of failure first and then power-on, and cannot support the test conditions of power-on first and then failure.

[0062] Therefore, the present invention provides a signal fault simulation device, in which the input end of the fault simulation unit 2 is connected to the power module 3, the output end of the fault simulation unit 2 is connected to the input end of the electronic device 4, and the control unit 1 is connected to the communication end of the fault simulation unit 2 and the communication end of the electronic device 4. Since the power module 3 outputs multiple initial signals representing different functions (for example: power supply signal, power normal signal, energy input signal, alarm signal, data signal, etc.), the fault simulation unit 2 obtains each initial signal output by the power module 3; since the focus of the present invention is to perform fault simulation, the fault simulation unit 2 first receives the simulation instruction issued by the control unit 1, and then simulates the corresponding initial signal according to the simulation instruction. After the simulation, its initial signal becomes a fault signal. At this time, the fault simulation unit 2 sends the fault signal to the electronic device 4 and the control unit 1, and the electronic device 4 generates a response log according to the fault signal. At the same time, the electronic device 4 sends the generated log to the control unit 1. The control unit 1 can determine whether the log generated by the electronic device 4 according to the fault signal is correct according to the fault signal and the log, thereby determining whether the electronic device 4 has a fault.

[0063] For example, the simulation instruction issued by the control module 1 is: simulate the short circuit of the alarm signal. If the initial state of the alarm signal is a high-level signal at this time, then after the short-circuit simulation, the alarm signal is converted from a high-level signal to a low-level signal, that is, the fault signal at this time is a low-level signal. When the low-level signal representing the alarm signal enters the electronic device 4 at this time, the electronic device 4 will generate two logs according to the current low-level signal. The first: the electronic device 4 generates a log that the circuit corresponding to the alarm signal is short-circuited according to the low-level signal at this time. The second: the electronic device 4 generates a log that the circuit corresponding to the alarm signal is open-circuited (or the circuit corresponding to the data signal is open-circuited, etc.) according to the low-level signal at this time. Since the low-level signal is also sent to the control unit 1, the control unit 1 can determine that the circuit corresponding to the alarm signal is short-circuited according to the low-level signal at this time. At the same time, the control unit 1 also obtains the log generated by the electronic device 4. If the log obtained by the control unit 1 at this time is the first case, the control unit 1 determines that the log is correct and that the electronic device 4 is not faulty; if the log obtained by the control unit 1 at this time is the second case, the control unit 1 determines that the log is wrong and that the electronic device 4 is faulty.

[0064] Among them, it is explained that the control unit 1 is divided into two situations, the first is a separate controller; the second is a controller and a host computer. For the first situation, the controller automatically sends a simulation instruction, and then controls the fault simulation unit 2 to simulate the corresponding initial signal according to the simulation instruction, and then receives the simulated fault signal and the log determined by the electronic device 4, and finally determines the state of the log according to the fault signal and the log, and determines the state of the electronic device 4. For the second situation, the operator sends a simulation instruction through the host computer, and the host computer sends the simulation instruction to the controller, and the controller controls the fault simulation unit 2 to simulate the corresponding initial signal according to the simulation instruction, and then the host computer receives the simulated fault signal through the controller, and receives and determines the log of the electronic device 4, thereby judging the state of the log of the electronic device 4, and then judging the state of the electronic device 4.

[0065] It can be seen from the above technical scheme that the present invention provides a signal fault simulation device, which includes: a control unit and a fault simulation unit; the input end of the fault simulation unit is connected to the power module, and is used to obtain each initial signal sent by the power module; the output end of the fault simulation unit is connected to the input end of the electronic device, and is used to receive the simulation instruction issued by the control unit, and perform fault simulation on the corresponding initial signal according to the simulation instruction, and send the simulated fault signal to the electronic device; the control unit is connected to the communication end of the fault simulation unit and the communication end of the electronic device, and is used to receive the fault signal and the log of the electronic device, and determine the state of the log display according to the fault signal. It can be seen that the present invention adds a signal fault simulation device at the connection between the electronic device and the power module, and the signal fault module simulates the initial signal obtained from the power module, and then judges the state of the log according to the simulated fault signal and the log generated by the electronic device according to the fault signal, so as to determine the state of the electronic device. On the whole, the method is simple to operate, and will not cause damage to the electronic device and the power module, which ensures the accuracy of the final simulation result.

[0066] In some embodiments, the fault simulation unit 2 includes: at least one group of switch units, each of which includes at least two paths for simulating different faults. The input ends of the switch units are connected and are commonly connected to the power module as the input end of the fault simulation unit; the output ends of the switch units are connected and are commonly connected to the input end of the electronic device as the output end of the fault simulation unit.

[0067] In a specific embodiment, since the fault simulation unit 2 includes at least one group of switch units, and the fault simulation unit 2 obtains multiple initial signals representing different functions, the current fault simulation unit 2 includes at least three situations.

[0068] The first case: the fault simulation unit 2 obtains multiple initial signals representing different functions, and the fault simulation unit 2 includes a set of switch units. At this time, it is explained that this set of switch units is used when all initial signals are fault simulated, and in the current case, only one initial signal can be fault simulated at the same time.

[0069] The second case: the fault simulation unit 2 obtains multiple initial signals representing different functions, and at this time the fault simulation unit 2 includes multiple groups of switch units, and the number of the multiple groups of switch units is less than the number of initial signals. This means that some initial signals share a group of switch units. In the current case, multiple initial signals can be fault simulated at the same time, but these multiple initial signals need to correspond to different switch units respectively.

[0070] The third case: the fault simulation unit 2 obtains multiple initial signals representing different functions, and at this time the fault simulation unit 2 includes multiple groups of switch units, and the number of the multiple groups of switch units is equal to the number of initial signals. At this time, it is explained that each initial signal corresponds to a group of switch units, and in the current case, all initial signals can be fault simulated at the same time.

[0071] Different paths in the switch unit are used to simulate different faults, for example, a short circuit simulation is implemented on the first path, and an open circuit simulation is implemented on another path.

[0072] It should be noted that the present invention does not limit the number of switch units and the number of paths, which can be set according to user needs.

[0073] Among them, Figure 2 As shown, when the switch unit includes two paths, the two paths include a first switch K1 and a second switch K2; the line connected to the first switch K1 is the first path, and the path connected to the second switch K2 is the second path. The first path is specifically: the first end of the first switch K1 is connected to the output end corresponding to the power module 3, the second end of the first switch K1 is grounded and connected to the input end of the electronic device 4, and this path is used to achieve the fault simulation of the initial signal currently transmitted by controlling the conduction or disconnection of the first switch K1 through the corresponding initial signal; the second path is: the first end of the second switch K2 is connected to the output end corresponding to the power module 3, the second end of the second switch K2 is connected to the electronic device 4, and this path is used to achieve the fault simulation of the initial signal currently transmitted by controlling the conduction or disconnection of the second switch K2 through the corresponding initial signal.

[0074] The specific behavior of implementing the fault simulation is as follows: if a short-circuit fault of any initial signal is simulated, the first switch K1 is controlled to be turned on and the second switch K2 is turned off. At this time, the first switch KI is grounded to realize the short-circuit simulation of the initial signal; if an open-circuit fault of any initial signal is simulated, the first switch K1 is controlled to be turned off and the second switch K2 is turned off. At this time, the short-circuit simulation of the initial signal is realized; when the initial signal is restored and the fault simulation of the initial signal is not performed, the first switch K1 is turned off and the second switch K2 is turned on.

[0075] It should be noted that the embodiment provided by the present invention is only one possible implementation method, but is not limited to only this implementation method and can be set freely according to the needs of users.

[0076] besides, Figure 2 The circuit shown also includes: a communication unit 5 and a fault reset unit 6, and also includes a host computer 7. Among them, the first end of the communication unit 5 is connected to the control unit 1, and the second end of the communication unit 5 is connected to the host computer 7, so that the control unit 1 obtains the simulation instruction issued by the host computer 7 according to the communication unit 5, and sends a fault signal to the host computer 7 through the communication unit 5; the first end of the fault reset unit 6 is connected to the host computer 7, and the second end of the fault reset unit 6 is connected to the communication end of the fault simulation unit 2, which is used to obtain the reset instruction issued by the host computer 7 and control the fault simulation unit 2 to perform a reset operation. In simple terms, a communication unit 5 and a fault reset unit 6 are added to the signal fault simulation device, wherein the communication unit 5 is used to realize data transmission between the control unit 1 and the host computer 7, and the fault reset unit 6 performs a reset operation after the initial signal is subjected to fault simulation.

[0077] In summary, Figure 2 The overall working principle of the signal fault simulation device shown is as follows: one side of the receiving end of the signal fault simulation device is connected to the gold finger end of the power module 3, which is used to receive the initial signal from the power module 3, and the other side of the output end is connected to the extended test fixture board, and the fault signal generated after the fault simulation is transmitted to the electronic device 4. The communication unit 5 is connected to the host computer 7 through the USB interface, and the simulation instruction is issued by the host computer 7 program. The communication unit 5 sends a command to the address bit (A0, A1, A2) corresponding to the control unit 1, thereby controlling the switch in the fault simulation circuit 2 to be disconnected or connected, so as to achieve the purpose of simulating the initial signal open circuit fault or short circuit fault and fault recovery. The communication unit 5 will also transmit the high and low level data of the fault signal to the host computer 7, and the host computer 7 will determine whether the initial signal is in a normal working state or a faulty state.

[0078] In addition, due to Figure 2The signal fault simulation device shown has many units inside and many functions implemented, so it is easy to have a fault during the signal simulation process. Since the fault is inside the signal fault simulation unit itself, the log generated by the electronic device 4 cannot be determined whether it is a log generated by the fault simulation. Therefore, a detector can be added inside the signal fault simulation device. When the host computer 7 issues a simulation instruction, the detector first detects the unit inside the signal fault simulation device to determine whether a fault occurs. If there is no fault, the fault simulation process is carried out. If a fault occurs, it is displayed on the host computer 7. Or when the current fault does not affect the fault simulation, the initial signal can be simulated based on the fault inside the signal fault simulation device. At this time, the electronic device 4 may generate two logs, which are then judged by the host computer 7.

[0079] It can be seen that the present invention adds a signal fault simulation device at the connection between the electronic device and the power module, and the signal fault simulation device simulates the initial signal obtained from the power module, and then judges the state of the log according to the simulated fault signal and the log generated by the electronic device according to the fault signal, thereby determining the state of the electronic device. And in the fault simulation circuit in the signal fault simulation device, the fault simulation of multiple signals can be realized at the same time, thereby improving the efficiency of signal simulation. On the whole, the method is simple to operate, and will not cause damage to the electronic device and the power module, which ensures the accuracy of the final simulation result.

[0080] On the other hand, the present invention also provides a signal fault simulation method, which is applied to the above-mentioned signal fault simulation device, such as Figure 3 As shown, the following steps are included:

[0081] S10: Sending a simulation instruction to the fault simulation unit, so that the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device.

[0082] S11: Acquire a fault signal and a log determined by the electronic device according to the fault signal.

[0083] S12: Determine the state of the log display according to the fault signal.

[0084] In a specific embodiment, the signal fault simulation device includes: a control unit and a fault simulation unit. The connection relationship is: the input end of the fault simulation unit is connected to the power module, the output end of the fault simulation unit is connected to the input end of the electronic device, and the control unit is connected to the communication end of the fault simulation unit and the communication end of the electronic device. Based on the signal fault simulation device under this structure, the fault simulation unit of the control unit sends a simulation instruction, and the fault simulation unit obtains the initial signal sent by the power module. When the fault simulation unit receives the simulation instruction, it performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device and the control unit. The electronic device will determine the corresponding log according to the fault signal. At the same time, the electronic device also sends the log to the control unit, and the control unit determines the state of the log display according to the fault signal.

[0085] It can be seen from the above technical scheme that the present invention provides a signal fault simulation method, which is applied to the above-mentioned signal fault simulation device, including: sending a simulation instruction to the fault simulation unit, so that the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device; obtaining the fault signal and the log determined by the electronic device according to the fault signal; determining the state of the log display according to the fault signal. It can be seen that the present invention is equivalent to adding a signal fault simulation device at the connection between the electronic device and the power module, and the signal fault module simulates the initial signal obtained from the power module, and then judges the state of the log according to the simulated fault signal and the log generated by the electronic device according to the fault signal, so as to determine the state of the electronic device. On the whole, the method is simple to operate and will not cause damage to the electronic device and the power module, which ensures the accuracy of the final simulation result.

[0086] In some embodiments, the fault simulation of the initial signal is divided into two situations. The first situation is: the fault occurs first and then the power is turned on; the second situation is: the power is turned on first and then the fault occurs.

[0087] For the first case, the fault simulation unit simulates the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device. The overall steps include:

[0088] When the power supply path is normal and the signal fault simulation device is powered on, it is determined whether each initial signal is normal;

[0089] If each initial signal is abnormal, the abnormal signal is reset until each initial signal is normal;

[0090] If the initial signals are normal, the electronic device is controlled to delete the initial log;

[0091] Performing fault simulation on the initial signal based on the fault simulation instruction in the module instruction;

[0092] Determine whether the fault simulation is successful;

[0093] If the fault simulation fails, return to the step of performing fault simulation on the initial signal based on the fault simulation instruction in the module instruction until the fault simulation succeeds;

[0094] If the fault simulation is successful, the fault signal obtained after the simulation is sent to the electronic device and the control unit, so that the electronic device generates a corresponding log according to the fault signal, and the control unit determines the state displayed in the log according to the fault signal.

[0095] In addition, during this process,

[0096] Record the first failure number of the fault simulation failure;

[0097] If the first failure number is greater than the first preset failure number, the fault simulation is terminated;

[0098] Record the second failure number of the failed reset operation on the abnormal signal;

[0099] If the second failure number is greater than the second preset failure number, the fault simulation is terminated.

[0100] In a specific embodiment, the first step is the initialization process of the overall device system. First, the connectivity with ACSource and the electronic device baseboard management controller is detected (that is, whether the power supply path is normal). If it is detected that ACSource or the baseboard management controller is not connected, the operation is stopped, and the information of the disconnection is prompted on the host computer or the control unit. If both are connected successfully, the AC Source is remotely controlled to power on the fault simulation device, and an instruction is issued to control the fault simulation circuit in the fault simulation device to receive the initial signal of the power module. The high and low levels of the initial signal are determined to confirm whether all the initial signals are in a normal state, so as to avoid other signal problems affecting the initial signal, or the previous fault signal is not reset, resulting in an abnormal initial signal. If an initial signal is detected to be abnormal, try to reset it and then detect it. If the signal abnormality still exists, stop running, and prompt the signal abnormality on the host computer or the control unit. If the initial signals are all in a normal output state, the last step of initialization is executed to control the baseboard management controller of the electronic device to delete the initial log (which can be understood as the previously stored fault log).

[0101] After initialization, the next step is to control the simulation of the signal that specifically needs the fault, implement the fault simulation of a single initial signal or multiple initial signals, and then detect the high and low levels of the corresponding fault signal to confirm whether they are consistent with the preset state, and the corresponding fault occurs. If the fault signal is inconsistent with the preset state, try to repeatedly control the simulation switch to create the corresponding fault. After multiple attempts, the host computer or control unit prompts that the execution has failed.

[0102] If the fault is created successfully, a delay will be made to wait for the system to stabilize. After stabilization, the host computer or control unit obtains the log at this time through the baseboard management controller of the electronic device and saves it. After processing, it is compared with the set log result or fault signal to determine whether the test result passes. After the comparison is completed, the next step is to execute the reset program. The host computer or control unit instructs the switch in the fault simulation circuit to restore the original state, and finally controls the AC Source to stop power supply.

[0103] That is to say, the specific steps are as follows Figure 4 As shown:

[0104] S20: Start.

[0105] S21: Power on first, then failure.

[0106] S22: Determine whether the power supply path is normal.

[0107] S23: If yes, the signal fault simulation device is powered on, if not, the process proceeds to step S31.

[0108] S24: Determine whether each initial signal is normal.

[0109] S25: If normal, control the electronic device to delete the initial log.

[0110] S26: If not, try to reset the abnormal signal. If it fails multiple times, go to step S31.

[0111] S27: The fault simulation circuit performs fault simulation. If multiple failures occur, the process goes to step S31.

[0112] S28: Determine whether the fault simulation is successful.

[0113] S29: If yes, obtain the log determined by the electronic device according to the fault signal; if no, return to step S28.

[0114] S30: The whole device is reset and the signal failure simulation device is powered off.

[0115] S31: End.

[0116] For the second situation: the fault simulation unit performs fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device, including the following steps:

[0117] When the power supply path is normal, the electronic device is controlled to delete the initial log;

[0118] Performing fault simulation on the initial signal based on the fault simulation instruction in the module instruction;

[0119] Control signal failure simulation device is powered on;

[0120] Determine whether the fault simulation is successful;

[0121] If the fault simulation is successful, the fault signal obtained after the simulation is sent to the electronic device and the control unit, so that the electronic device generates a corresponding log according to the fault signal, and the control unit determines the state displayed in the log according to the fault signal.

[0122] In a specific embodiment, if the fault occurs before power-on, the initialization only performs the detection of connectivity with the AC Source and the electronic device baseboard management controller (that is, detecting whether the power supply path is normal). After the connection, the baseboard management controller of the electronic device is controlled to delete the initial log (which can be understood as the previously stored fault log), and then the simulation of the signal that specifically needs a fault is controlled. Only after this, the signal fault simulation device is remotely controlled to power on. After power-on, it is executed to determine whether the initial signal is normal. The other steps are consistent with the situation of power-on first and then fault.

[0123] That is to say, the specific steps are as follows Figure 5 As shown:

[0124] S40: Start.

[0125] S41: Fault first, then power on.

[0126] S42: Determine whether the power supply path is normal.

[0127] S43: If yes, control the electronic device to delete the initial log; if no, go to step S48.

[0128] S44: The fault simulation circuit performs fault simulation.

[0129] S45: The signal fault simulation device is powered on.

[0130] S46: Determine whether the fault simulation is successful.

[0131] S47: If yes, obtain the log determined by the electronic device according to the fault signal; if no, proceed to step S49.

[0132] S48: The whole device is reset and the signal failure simulation device is powered off.

[0133] S49: End.

[0134] It can be seen from the above technical scheme that the present invention provides a signal fault simulation method, which is applied to the above signal fault simulation device, including: sending a simulation instruction to a fault simulation unit so that the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device; obtaining the fault signal and the log determined by the electronic device according to the fault signal; and determining the state displayed in the log according to the fault signal. Overall, the method is simple to operate and will not cause damage to the electronic device and the power module, which ensures the accuracy of the final simulation result.

[0135] Figure 6 A structural diagram of a simulation device provided by an embodiment of the present invention, such as Figure 6 As shown, the signal fault simulation device includes: a memory 60 for storing a computer program;

[0136] The processor 61 is used to implement the steps of the signal fault simulation method in the above embodiment when executing the computer program.

[0137] The simulation device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0138] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0139] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the signal fault simulation method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc.

[0140] In some embodiments, the simulation device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .

[0141] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation of the simulation device, and may include more or fewer components than shown in the figure.

[0142] It is understandable that if the signal fault simulation method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.

[0143] Based on this, an embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned signal fault simulation method when executed by a processor.

[0144] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned signal fault simulation method are implemented.

[0145] The above is a detailed introduction to a simulation device provided by an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0146] 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 composition and steps of each example have been generally described in the above description according to function. 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 to be beyond the scope of the present invention.

[0147] The above is a detailed introduction to a signal fault simulation device, method and computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A signal fault simulation device, characterized in that: include: Control unit and fault simulation unit; The input end of the fault simulation unit is connected to the power module, and is used to obtain each initial signal sent by the power module; The output end of the fault simulation unit is connected to the input end of the electronic device, and is used to receive the simulation instruction issued by the control unit, and perform fault simulation on the corresponding initial signal according to the simulation instruction, and send the simulated fault signal to the electronic device; The control unit is connected to the communication end of the fault simulation unit and the communication end of the electronic device, and is used to receive the fault signal and the log of the electronic device, and determine the state displayed by the log according to the fault signal.

2. The signal failure simulation device according to claim 1, characterized in that: The fault simulation unit includes: at least one group of switch units, wherein a group of switch units includes at least two paths for simulating different faults; The input ends of the switch units are connected to each other and are commonly connected to the power supply module as the input end of the fault simulation unit; The output ends of the switch units are connected to each other and are commonly connected to the input end of the electronic device as the output end of the fault simulation unit.

3. The signal failure simulation device according to claim 2, characterized in that: The switch unit includes two paths, and the two paths include a first switch and a second switch; Wherein, the first end of the first switch and the first end of the second switch are connected, and are commonly connected to the output end corresponding to the power module as the input end of the switch unit; The second end of the first switch is connected to the second end of the second switch and is grounded, and is also connected to the input end of the electronic device as the output end of the switch unit; When the simulation instruction is a short-circuit fault instruction, the first switch is controlled to be turned on and the second switch is turned off; If the simulation instruction is a circuit breaker fault instruction, the first switch is controlled to be disconnected and the second switch is controlled to be disconnected.

4. The signal failure simulation device according to claim 1, characterized in that: Also includes: Communication unit and fault reset unit; The first end of the communication unit is connected to the control unit, and the second end of the communication unit is connected to the host computer, so that the control unit obtains the simulation instruction issued by the host computer according to the communication unit, and sends the fault signal to the host computer through the communication unit; The first end of the fault reset unit is connected to the host computer, and the second end of the fault reset unit is connected to the communication end of the fault simulation unit, for obtaining the reset instruction sent by the host computer and controlling the fault simulation unit to perform the reset operation.

5. A signal fault simulation method, characterized in that: The signal fault simulation device as claimed in claim 1 comprises: Sending a simulation instruction to the fault simulation unit so that the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction and sends the simulated fault signal to the electronic device; Acquire the fault signal and a log determined by the electronic device according to the fault signal; A state of the log display is determined according to the fault signal.

6. The signal fault simulation method according to claim 5, characterized in that: The situation simulation instruction in the simulation instruction is a situation instruction of first failure and then power-on, and the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device, including: When the power supply path is normal and the signal fault simulation device is powered on, it is determined whether each of the initial signals is normal; If each of the initial signals is abnormal, resetting the abnormal signal until each of the initial signals is normal; If each of the initial signals is normal, controlling the electronic device to delete the initial log; Performing the fault simulation on the initial signal based on the fault simulation instruction in the module instruction; Determining whether the fault simulation is successful; If the fault simulation fails, returning to the step of performing the fault simulation on the initial signal based on the fault simulation instruction in the module instruction until the fault simulation succeeds; If the fault simulation is successful, the fault signal obtained after the simulation is sent to the electronic device and the control unit, so that the electronic device generates a corresponding log according to the fault signal, and the control unit determines the status of the log display according to the fault signal.

7. The signal fault simulation method according to claim 5, characterized in that: The situation simulation instruction in the simulation instruction is a power-on-first-fault situation instruction, and the fault simulation unit performs a fault simulation on the corresponding initial signal according to the simulation instruction, and sends the simulated fault signal to the electronic device, including: When the power supply path is normal, controlling the electronic device to delete the initial log; Performing the fault simulation on the initial signal based on the fault simulation instruction in the module instruction; Controlling the signal fault simulation device to power on; Determining whether the fault simulation is successful; If the fault simulation is successful, the fault signal obtained after the simulation is sent to the electronic device and the control unit, so that the electronic device generates a corresponding log according to the fault signal, and the control unit determines the status of the log display according to the fault signal.

8. The signal fault simulation method according to claim 6, characterized in that: Also includes: Record the first failure number of the fault simulation failure; If the first failure number is greater than a first preset failure number, the fault simulation is terminated.

9. The signal fault simulation method according to claim 6 or 8, characterized in that: Also includes: Recording the second failure number of the failed reset operation on the abnormal signal; If the second failure number is greater than the second preset failure number, the fault simulation is terminated.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the signal fault simulation method according to any one of claims 5 to 9 are implemented.