CN111694340A - Automatic test fixture and method for PSU BootLoader - Google Patents

Automatic test fixture and method for PSU BootLoader Download PDF

Info

Publication number
CN111694340A
CN111694340A CN202010505366.XA CN202010505366A CN111694340A CN 111694340 A CN111694340 A CN 111694340A CN 202010505366 A CN202010505366 A CN 202010505366A CN 111694340 A CN111694340 A CN 111694340A
Authority
CN
China
Prior art keywords
psu
bootloader
abnormal
conditions
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010505366.XA
Other languages
Chinese (zh)
Other versions
CN111694340B (en
Inventor
闫家乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010505366.XA priority Critical patent/CN111694340B/en
Publication of CN111694340A publication Critical patent/CN111694340A/en
Application granted granted Critical
Publication of CN111694340B publication Critical patent/CN111694340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a PSU BootLoader automatic test fixture and a method, wherein a control circuit needs to set different abnormal conditions for testing the PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions in advance, and aims to enable the PSU to be in an operating state corresponding to the satisfied abnormal triggering/recovery conditions by controlling the conduction conditions of a first switch circuit and a second switch circuit when the PSU satisfies any abnormal triggering/recovery condition in the execution process of the system BootLoader so as to automatically test the function display conditions of the PSU BootLoader after the different abnormal conditions occur and the PSU BootLoader recovers to be normal. Therefore, different abnormal conditions which may occur in the operation process of the PSU can be automatically simulated, so that the robustness of the test of the BootLoader function of the PSU based on the different abnormal conditions can be easily realized, and the manpower consumption is saved.

Description

Automatic test fixture and method for PSU BootLoader
Technical Field
The invention relates to the field of server testing, in particular to a PSU BootLoader automatic testing jig and a PSU BootLoader automatic testing method.
Background
In the server, BootLoader (boot load) is a first program executed after the system is powered on, and the first program is mainly used for initializing hardware equipment, establishing a mapping table of a memory space and upgrading equipment firmware. For a PSU (Power supply unit), if an abnormal condition such as Power interruption or communication interruption occurs during the process of upgrading firmware by using a BootLoader method, the firmware inside the PSU may be incomplete. In this case, if the PSU has no self-recovery function or has a defect in the self-recovery function, the PSU cannot recover the firmware inside the PSU again by using the BootLoader, and the PSU cannot continue to operate, which is called "brick-changing".
At present, in order to avoid the phenomenon of brick change of the PSU, the BootLoader function of the PSU in an abnormal scene needs to be tested in a targeted manner in the design stage, so as to test the robustness of BootLoader function design. In the prior art, the function test mode of the psuboost loader is as follows: in the BootLoader execution process, a tester manually executes operations such as PSU power failure, communication interruption, power supply recovery, communication recovery and the like, and simulates and verifies the display condition of the functions of the PSUBootLoader after abnormal scenes appear and are recovered to be normal. However, abnormal scenes which may occur in the actual operation process of the PSU are complicated and changeable, for example, the time for occurrence of the PSU abnormality and the time for recovery of the abnormality are changeable in the boot loader execution process, and a combined abnormal situation of power failure and communication interruption may also exist, so that the complicated and changeable abnormal scenes are difficult to simulate in a manual mode; moreover, the execution of BootLoader takes longer time, and the test takes longer time, which results in larger manpower consumption.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a PSU BootLoader automatic test fixture and a method, which can automatically simulate different abnormal conditions possibly occurring in the operation process of a PSU, thereby easily realizing the robustness of testing the function of the PSU BootLoader based on different abnormal conditions and saving the manpower consumption.
In order to solve the technical problem, the invention provides a PSU BootLoader automatic test fixture, which comprises:
the first switch circuit is arranged on an input power supply circuit of the PSU;
the second switch circuit is arranged on a clock signal circuit of the PSU;
the control circuit is respectively connected with the first switch circuit and the second switch circuit and is used for presetting different abnormal conditions for testing the PSU BootLoader, abnormal triggering conditions corresponding to the different abnormal conditions and abnormal recovery conditions; in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the PSU is in an operation state corresponding to the met abnormal triggering/recovering condition by controlling the conduction conditions of the first switch circuit and the second switch circuit, so that the function display conditions of the PSU BootLoader after different abnormal conditions occur and normal recovery are automatically tested.
Preferably, the control circuit is specifically configured to preset different delay times and abnormal situations which need to be triggered or ended for testing the PSU BootLoader and correspond to the different delay times one to one, so as to set different abnormal situations for testing the PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal situations; wherein, the delay time refers to the executed time of the BootLoader of the system.
Preferably, the first switching circuit includes:
the relay is connected with a power end which is connected with a direct-current power supply, a control end which is connected with the control circuit, a first connecting end which is connected with the power end of the PSU, and a second connecting end which is connected with a live wire of the input alternating current of the PSU;
correspondingly, the control circuit is specifically configured to control the conduction condition of the first switch circuit by controlling the connection condition of the first connection end and the second connection end of the relay.
Preferably, the first switching circuit further includes:
and the voltage stabilizing circuit is used for stabilizing the power supply input voltage of the relay.
Preferably, the relay is a switching device which is switched on at a high level and switched off at a low level;
and PSU BootLoader automatic test fixture still includes:
the first pull-down resistor is connected with the control end of the relay at the first end and grounded at the second end.
Preferably, the second switching circuit includes:
the control end of the switch tube is connected with the control circuit, the first end of the switch tube is connected with a clock signal wire of the PSU, and the second end of the switch tube is grounded;
correspondingly, the control circuit is specifically configured to control the conduction condition of the second switch circuit by controlling the communication condition of the first end and the second end of the switch tube.
Preferably, the switch tube is a switch device which is switched on at a high level and switched off at a low level;
and PSU BootLoader automatic test fixture still includes:
and the first end of the second pull-down resistor is connected with the control end of the switch tube, and the second end of the second pull-down resistor is grounded.
Preferably, the data transmission line of the PSU is connected to the control circuit;
the control circuit is also used for determining whether the PSU triggers abnormity according to the communication condition of the PSU when the PSU is controlled to be in the running state corresponding to the met abnormity triggering condition; and when the PSU is controlled to be in an operation state corresponding to the met abnormal recovery condition, determining whether the PSU is abnormally recovered or not according to the communication condition of the PSU and the PSU.
Preferably, the control circuit comprises a clock golden finger and a data transmission golden finger for the PSU via I2Golden finger I led out from C interface2C interface element for connecting I2A protocol converter and a singlechip for mutual conversion of the signal protocol C and the signal protocol USB; wherein:
the golden finger rotates to I2I of C interface element2C interface end and I of protocol converter2The interface C is connected, the USB interface end of the protocol converter is connected with an upper computer, the upper computer is connected with the control serial port of the single chip microcomputer through a USB-to-serial port transmission line, and the output control end of the single chip microcomputer is respectively connected with the first switch circuit and the second switch circuit;
correspondingly, the upper computer is used for presetting different abnormal conditions of the test PSU BootLoader, abnormal triggering conditions corresponding to the different abnormal conditions and abnormal recovery conditions; in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the single chip microcomputer controls the conduction condition of the first switch circuit and the second switch circuit to enable the PSU to be in an operation state corresponding to the met abnormal triggering/recovering condition so as to automatically test the function display condition of the PSUBootLoader after different abnormal conditions occur and normal recovery;
the upper computer is also used for determining whether the PSU triggers abnormity according to the communication condition of the PSU when controlling the PSU to be in the running state corresponding to the met abnormity triggering condition; and when the PSU is controlled to be in an operation state corresponding to the met abnormal recovery condition, determining whether the PSU is abnormally recovered or not according to the communication condition of the PSU and the PSU.
In order to solve the technical problem, the present invention further provides an automatic test method for a PSU BootLoader, which is applied to any one of the PSU BootLoader automatic test jigs, and includes:
presetting different abnormal conditions of a test PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions;
in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the PSU is in an operation state corresponding to the met abnormal triggering/recovering condition by controlling the conduction conditions of the first switch circuit and the second switch circuit, so that the function display conditions of the PSU BootLoader after different abnormal conditions occur and normal recovery are automatically tested.
The invention provides a PSU BootLoader automatic test fixture which comprises a first switch circuit arranged on an input power supply line of a PSU, a second switch circuit arranged on a clock signal line of the PSU and a control circuit. The control circuit needs to set different abnormal conditions for testing the PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions in advance, and aims to enable the PSU to be in an operating state corresponding to the met abnormal triggering/recovery conditions by controlling the conduction conditions of the first switch circuit and the second switch circuit when the PSU meets any abnormal triggering/recovery condition in the execution process of the system BootLoader so as to automatically test the function display conditions of the PSU BootLoader after the different abnormal conditions occur and are recovered to be normal. Therefore, different abnormal conditions which may occur in the operation process of the PSU can be automatically simulated, so that the robustness of the test of the BootLoader function of the PSU based on the different abnormal conditions can be easily realized, and the manpower consumption is saved.
The invention also provides a PSU BootLoader automatic test method, which has the same beneficial effect as the automatic test fixture.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a PSU BootLoader automatic test fixture according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a PSU BootLoader automatic test fixture according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide an automatic test fixture and method for the PSU BootLoader, which can automatically simulate different abnormal conditions which may occur in the operation process of the PSU, thereby easily realizing the robustness of the function of the PSU BootLoader based on different abnormal conditions and saving the manpower consumption.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a PSU BootLoader automatic test fixture according to an embodiment of the present invention.
This PSU BootLoader automatic test fixture includes:
a first switch circuit 1 provided on an input power supply line of the PSU;
a second switch circuit 2 provided on a clock signal line of the PSU;
the control circuit 3 is respectively connected with the first switch circuit 1 and the second switch circuit 2 and is used for presetting different abnormal conditions of the PSUBootLoader to be tested and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions; in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the PSU is in an operating state corresponding to the met abnormal triggering/recovering condition by controlling the conduction conditions of the first switch circuit 1 and the second switch circuit 2, so that the function display conditions of the PSU BootLoader after different abnormal conditions occur and the PSU BootLoader is recovered to be normal are automatically tested.
Specifically, the PSU BootLoader automatic test fixture of this application includes first switch circuit 1, second switch circuit 2 and control circuit 3, and its theory of operation is:
the first switch circuit 1 is arranged on an input power circuit of the PSU, and when the first switch circuit 1 is switched on, the PSU has alternating current input and is in a power supply state; when the first switching circuit 1 is turned off, the PSU has no ac input and is in a power-off state. The second switch circuit 2 is arranged on a clock signal line of the PSU, the conducting condition of the second switch circuit 2 determines whether the clock signal line of the PSU is pulled down, and when the clock signal line of the PSU is not pulled down, the PSU is in a communication state; when the clock signal line of the PSU is pulled low, the communication is interrupted.
Based on this, the present application sets in advance different abnormal situations required for testing the PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal situations, and writes the different abnormal situations required for testing, and the abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal situations into the control circuit 3. The control circuit 3 judges whether the PSU meets any abnormal triggering condition or not in the execution process of the system BootLoader, and if the PSU meets an abnormal triggering condition, the control circuit controls the conduction conditions of the first switch circuit 1 and the second switch circuit 2 to enable the PSU to be in an abnormal operation state corresponding to the met abnormal triggering condition so as to automatically test the function display condition of the PSU BootLoader after different abnormal conditions occur; if the abnormal triggering condition is not met, the abnormal triggering operation is not executed; meanwhile, whether the PSU meets any abnormal recovery condition is judged, if the PSU meets an abnormal recovery condition, the PSU is in an abnormal recovery running state corresponding to the met abnormal recovery condition by controlling the conduction conditions of the first switch circuit 1 and the second switch circuit 2, and the function display condition of the PSU BootLoader after the PSU is recovered to be normal under different abnormal conditions is automatically tested; and if the abnormal recovery condition is not met, not executing the abnormal recovery operation.
In addition, the control circuit 3 may control the system BootLoader to start executing, and it should be noted that before the system BootLoader starts executing, the control circuit 3 needs to control the conduction conditions of the first switch circuit 1 and the second switch circuit 2 to make the PSU in a normal power supply state and a normal communication state, so as to prepare for subsequent abnormal condition triggering.
The invention provides a PSU BootLoader automatic test fixture which comprises a first switch circuit arranged on an input power supply line of a PSU, a second switch circuit arranged on a clock signal line of the PSU and a control circuit. The control circuit needs to set different abnormal conditions for testing the PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions in advance, and aims to enable the PSU to be in an operating state corresponding to the met abnormal triggering/recovery conditions by controlling the conduction conditions of the first switch circuit and the second switch circuit when the PSU meets any abnormal triggering/recovery condition in the execution process of the system BootLoader so as to automatically test the function display conditions of the PSU BootLoader after the different abnormal conditions occur and are recovered to be normal. Therefore, different abnormal conditions which may occur in the operation process of the PSU can be automatically simulated, so that the robustness of the test of the BootLoader function of the PSU based on the different abnormal conditions can be easily realized, and the manpower consumption is saved.
On the basis of the above-described embodiment:
referring to fig. 2, fig. 2 is a schematic structural diagram of a PSU BootLoader automatic test fixture according to an embodiment of the present invention.
As an optional embodiment, the control circuit 3 is specifically configured to preset different delay times and abnormal situations which need to be triggered or ended for testing the PSU BootLoader and correspond to the different delay times one to one, so as to set different abnormal situations of the testing PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal situations; the delay time refers to the executed time of the BootLoader of the system.
Specifically, different delay times and abnormal conditions which need to be triggered or end and correspond to the different delay times one to one are set in advance, and the purpose is to set different abnormal conditions of a test PSUBootLoader and abnormal triggering conditions and abnormal recovery conditions which correspond to the different abnormal conditions, for example, the delay time 1 corresponds to PSU power failure, the delay time 2 corresponds to PSU power supply recovery, the delay time 3 corresponds to PSU communication interruption, the delay time 4 corresponds to PSU communication recovery and the like, the delay time 1 is less than the delay time 2 and less than the delay time 3 and less than the delay time 4, the control circuit 3 starts to execute timing from the system bootLoader, when the timing time reaches the delay time 1, the PSU is considered to meet the power failure triggering conditions, the first switch circuit 1 is controlled to be disconnected, and the PSU is in a power failure state; when the timing time reaches the delay time 2, if the PSU meets the power supply recovery condition, controlling the first switch circuit 1 to be conducted to enable the PSU to recover the power supply state; when the timing time reaches the delay time 3, the PSU is considered to meet the communication interruption triggering condition, and the clock signal line of the PSU is pulled down by controlling the conduction condition of the second switch circuit 2, so that the PSU is in a communication interruption state; when the timing time reaches the delay time 4, the PSU is considered to meet the communication recovery condition, and the PSU is enabled to recover the communication state by controlling the conduction condition of the second switch circuit 2 to not pull down the clock signal line of the PSU any more, so that the function display condition of the PSU BootLoader after the PSU BootLoader recovers to be normal under different abnormal conditions is tested.
As an alternative embodiment, the first switch circuit 1 includes:
the relay 11 is connected with a power supply end which is connected with a direct-current power supply, a control end which is connected with the control circuit 3, a first connecting end which is connected with the power supply end of the PSU, and a second connecting end which is connected with a live wire of input alternating current of the PSU;
correspondingly, the control circuit 3 is specifically configured to control the conduction condition of the first switch circuit 1 by controlling the connection condition of the first connection end and the second connection end of the relay 11.
Specifically, the first switch circuit 1 of the present application includes a relay 11, and its operating principle is:
when the PSU meets the power-off triggering condition, the control circuit 3 controls the disconnection between the first connecting end and the second connecting end of the relay 11, namely the first switch circuit 1 is disconnected, so that the PSU is in a power-off state; when the PSU satisfies the power supply restoration condition, the first connection end and the second connection end of the control relay 11 are connected, that is, the first switch circuit 1 is turned on, so that the PSU restores the power supply state.
As an alternative embodiment, the first switch circuit 1 further includes:
and the voltage stabilizing circuit is used for stabilizing the power supply input voltage of the relay 11, and has an input end connected with the direct-current power supply and an output end connected with the power supply end of the relay 11.
Further, the first switch circuit 1 of the present application further includes a voltage stabilizing circuit, where the voltage stabilizing circuit is configured to perform a voltage stabilizing operation on the direct current output by the direct current power supply, and supply the stabilized direct current to the relay 11 for use, so as to stabilize the power supply input voltage of the relay 11 and protect the relay 11.
As an alternative embodiment, the relay 11 is a switching device that is turned on at a high level and turned off at a low level;
and PSU BootLoader automatic test fixture still includes:
and the first pull-down resistor has a first end connected with the control end of the relay 11 and a second end grounded.
Further, the relay 11 of the present invention is turned on when a high level is input to its control terminal, and turned off when a low level is input to its control terminal. Based on this, considering that when the control circuit 3 is just powered on, the voltage on each branch is unstable and there may be "virtual voltage", if there is "virtual voltage" on the branch where the control end of the relay 11 is located, the relay 11 will be turned on by mistake, after the subsequent control circuit 3 is powered on stably, there is no "virtual voltage" on the branch where the control end of the relay 11 is located, the relay 11 will be turned off, when the control circuit 3 is ready to test, the relay 11 will be controlled to be turned on first, so in order to avoid frequent on-off of the relay 11, the first pull-down resistor is connected to the control end of the relay 11, it is ensured that when the control circuit 3 is just powered on, the branch where the control end of the relay 11 is located keeps a low level state, so as to prevent the relay 11 from being.
As an alternative embodiment, the second switch circuit 2 includes:
a switch tube 21 with a control end connected with the control circuit 3, a first end connected with a clock signal line of the PSU, and a second end grounded;
correspondingly, the control circuit 3 is specifically configured to control the conduction condition of the second switch circuit 2 by controlling the communication condition of the first end and the second end of the switch tube 21.
Specifically, the second switching circuit 2 of the present application includes a switching tube 21, and the operating principle thereof is as follows:
when the PSU meets the communication interruption triggering condition, the control circuit 3 controls the first end and the second end of the switch tube 21 to be communicated, that is, the clock signal line (SCL) of the PSU is pulled low, so that the PSU is in a communication interruption state; when the PSU satisfies the communication recovery condition, the connection between the first terminal and the second terminal of the control switch tube 21 is disconnected, that is, the clock signal line of the PSU is not pulled low, so that the PSU recovers the communication state.
As an alternative embodiment, the switching tube 21 is a switching device that is turned on at a high level and turned off at a low level;
and PSU BootLoader automatic test fixture still includes:
and the second pull-down resistor has a first end connected with the control end of the switch tube 21 and a second end grounded.
Further, the switching tube 21 of the present invention is turned on when a high level is input to its control terminal, and turned off when a low level is input to its control terminal. Based on this, considering that the voltage on each branch of the control circuit 3 is unstable when the control circuit is just powered on, and there may be "virtual voltage", if there is "virtual voltage" on the branch where the control end of the switching tube 21 is located, the switching tube 21 will be turned on by mistake, and the clock signal line of the PSU is pulled down, so the application accesses the second pull-down resistor at the control end of the switching tube 21, and ensures that the branch where the control end of the switching tube 21 is located keeps a low level state when the control circuit 3 is just powered on, so as to prevent the switching tube 21 from being turned on by mistake.
As an alternative embodiment, the data transmission line of the PSU is connected to the control circuit 3;
the control circuit 3 is also used for determining whether the PSU triggers abnormity according to the communication condition with the PSU when the PSU is controlled to be in the running state corresponding to the met abnormity triggering condition; and when the PSU is controlled to be in the running state corresponding to the met abnormal recovery condition, determining whether the PSU is abnormally recovered or not according to the communication condition with the PSU.
Further, the control circuit 3 of the present application is also connected to the data transmission line (SDA) of the PSU, and its operating principle is:
considering that the control circuit 3 can perform data communication with the PSU when the PSU is in a normal operation state, the control circuit 3 can determine whether the operation state of the PSU is normal or not by the communication condition with the PSU. For example, when the control circuit 3 controls the PSU to be in an operating state corresponding to the satisfied abnormal triggering condition, if the control is successful, the PSU is in an abnormal operating state, and data communication cannot be performed between the control circuit 3 and the PSU, so that the control circuit 3 can determine whether the PSU triggers an abnormality according to a communication condition with the PSU; for another example, when the control circuit 3 controls the PSU to be in an operating state corresponding to the satisfied abnormal recovery condition, if the control is successful, the PSU is in a normal operating state, and the control circuit 3 and the PSU can perform data communication, so that the control circuit 3 can determine whether the PSU is abnormally recovered according to a communication status with the PSU.
As an alternative embodiment, the control circuit 3 comprises means for connecting the clock finger and the data transfer finger of the PSU via I2Golden finger I led out from C interface2 C interface element 31 for connecting I2A protocol converter 32 and a singlechip 33 for converting the C signal protocol and the USB signal protocol; wherein:
golden finger rotary I2I of C interface element 312I of C interface side to protocol converter 322The interface C is connected, the USB interface end of the protocol converter 32 is connected with an upper computer, the upper computer is connected with the control serial port of the single chip microcomputer 33 through a USB-to-serial port transmission line, and the output control end of the single chip microcomputer 33 is respectively connected with the first switch circuit 1 and the second switch circuit 2;
correspondingly, the upper computer is used for presetting different abnormal conditions of the test PSU BootLoader, abnormal triggering conditions corresponding to the different abnormal conditions and abnormal recovery conditions; in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the single chip microcomputer 33 controls the conduction condition of the first switch circuit 2 and the second switch circuit 2 to enable the PSU to be in an operation state corresponding to the met abnormal triggering/recovering condition so as to automatically test the function display condition of the PSU BootLoader after different abnormal conditions occur and normal recovery;
the upper computer is also used for determining whether the PSU triggers abnormity according to the communication condition with the PSU when the PSU is controlled to be in the running state corresponding to the met abnormity triggering condition; and when the PSU is controlled to be in the running state corresponding to the met abnormal recovery condition, determining whether the PSU is abnormally recovered or not according to the communication condition with the PSU.
Specifically, the control circuit 3 of the present application includes a circuit for golden finger to turn I2 C interface element 31, protocol converter 32 and singlechip 33, its theory of operation is:
golden finger rotary I2The C interface element 31 is connected to the PSU for passing the clock golden finger (SCL) and the data transmission golden finger (SDA) of the PSU through I2The C interface is led out so as to be connected with an external device. I of the protocol converter 322C interface end and golden finger turn I2I of C interface element 312C interface end connection, USB (Universal Serial Bus) interface end of the protocol converter 32 is connected to the upper computer for connecting I to the upper computer2The C signal protocol and the USB signal protocol are mutually converted so as to realize that the upper computer provides a clock signal for the PSU, and the upper computer and the PSU carry out data communication. The upper computer is connected with a control serial port of the single chip microcomputer 33 through a USB-to-serial port transmission line so as to control the conduction condition of the first switch circuit 1 and the second switch circuit 2 through the control of the single chip microcomputer 33. In addition, the first switch circuit1 and the power supply of the singlechip 33 can also be provided by an upper computer.
The application also provides a PSU BootLoader automatic test method, which is applied to any one of the PSUBootLoader automatic test jigs, and comprises the following steps:
presetting different abnormal conditions of a test PSU BootLoader, abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions;
in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the PSU is in an operating state corresponding to the met abnormal triggering/recovering condition by controlling the conduction conditions of the first switch circuit and the second switch circuit, so that the function display condition of the PSU BootLoader after different abnormal conditions occur and normal recovery is automatically tested.
For the introduction of the automatic testing method provided in the present application, reference is made to the embodiments of the automatic testing fixture, which are not repeated herein.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The utility model provides a PSU BootLoader automatic test fixture which characterized in that includes:
the first switch circuit is arranged on an input power supply circuit of the PSU;
the second switch circuit is arranged on a clock signal circuit of the PSU;
the control circuit is respectively connected with the first switch circuit and the second switch circuit and is used for presetting different abnormal conditions for testing the PSU BootLoader, abnormal triggering conditions corresponding to the different abnormal conditions and abnormal recovery conditions; in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the PSU is in an operation state corresponding to the met abnormal triggering/recovering condition by controlling the conduction conditions of the first switch circuit and the second switch circuit, so that the function display conditions of the PSU BootLoader after different abnormal conditions occur and normal recovery are automatically tested.
2. The automatic test fixture of the PSU BootLoader according to claim 1, wherein the control circuit is specifically configured to preset different delay times and abnormal situations that need to be triggered or ended for testing the PSU BootLoader and that correspond to the different delay times one to one, so as to set different abnormal situations of the testing PSU BootLoader, abnormal triggering conditions corresponding to the different abnormal situations, and abnormal recovery conditions; wherein, the delay time refers to the executed time of the BootLoader of the system.
3. The PSU BootLoader automatic test fixture of claim 1, wherein the first switching circuit comprises:
the relay is connected with a power end which is connected with a direct-current power supply, a control end which is connected with the control circuit, a first connecting end which is connected with the power end of the PSU, and a second connecting end which is connected with a live wire of the input alternating current of the PSU;
correspondingly, the control circuit is specifically configured to control the conduction condition of the first switch circuit by controlling the connection condition of the first connection end and the second connection end of the relay.
4. The PSU BootLoader automatic test fixture of claim 3, wherein the first switching circuit further comprises:
and the voltage stabilizing circuit is used for stabilizing the power supply input voltage of the relay.
5. The PSU BootLoader automatic test fixture of claim 3, wherein the relay is a switching device with high level on and low level off;
and PSU BootLoader automatic test fixture still includes:
the first pull-down resistor is connected with the control end of the relay at the first end and grounded at the second end.
6. The PSU BootLoader automatic test fixture of claim 1, wherein the second switching circuit comprises:
the control end of the switch tube is connected with the control circuit, the first end of the switch tube is connected with a clock signal wire of the PSU, and the second end of the switch tube is grounded;
correspondingly, the control circuit is specifically configured to control the conduction condition of the second switch circuit by controlling the communication condition of the first end and the second end of the switch tube.
7. The PSU BootLoader automatic test fixture according to claim 6, characterized in that the switch tube is a switch device with high level on and low level off;
and PSU BootLoader automatic test fixture still includes:
and the first end of the second pull-down resistor is connected with the control end of the switch tube, and the second end of the second pull-down resistor is grounded.
8. The PSU BootLoader automatic test fixture according to any of claims 1-7, wherein a data transmission line of the PSU is connected with the control circuit;
the control circuit is also used for determining whether the PSU triggers abnormity according to the communication condition of the PSU when the PSU is controlled to be in the running state corresponding to the met abnormity triggering condition; and when the PSU is controlled to be in an operation state corresponding to the met abnormal recovery condition, determining whether the PSU is abnormally recovered or not according to the communication condition of the PSU and the PSU.
9. The PSU BootLoader automatic test fixture of claim 8, wherein the control circuit comprises I-interface logic (ICT) for connecting a clock golden finger and a data transmission golden finger of the PSU2Golden finger I led out from C interface2C interface element for connecting I2A protocol converter and a singlechip for mutual conversion of the signal protocol C and the signal protocol USB; wherein:
the golden finger rotates to I2I of C interface element2C interface end and I of protocol converter2The interface C is connected, the USB interface end of the protocol converter is connected with an upper computer, the upper computer is connected with the control serial port of the single chip microcomputer through a USB-to-serial port transmission line, and the output control end of the single chip microcomputer is respectively connected with the first switch circuit and the second switch circuit;
correspondingly, the upper computer is used for presetting different abnormal conditions of the test PSU BootLoader, abnormal triggering conditions corresponding to the different abnormal conditions and abnormal recovery conditions; in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the single chip microcomputer controls the conduction condition of the first switch circuit and the second switch circuit to enable the PSU to be in an operation state corresponding to the met abnormal triggering/recovering condition so as to automatically test the function display condition of the PSUBootLoader after different abnormal conditions occur and normal recovery;
the upper computer is also used for determining whether the PSU triggers abnormity according to the communication condition of the PSU when controlling the PSU to be in the running state corresponding to the met abnormity triggering condition; and when the PSU is controlled to be in an operation state corresponding to the met abnormal recovery condition, determining whether the PSU is abnormally recovered or not according to the communication condition of the PSU and the PSU.
10. A PSU BootLoader automatic test method, which is applied to the PSU BootLoader automatic test jig according to any one of claims 1 to 9, and comprises:
presetting different abnormal conditions of a test PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions;
in the execution process of the system BootLoader, when the PSU meets any abnormal triggering/recovering condition, the PSU is in an operation state corresponding to the met abnormal triggering/recovering condition by controlling the conduction conditions of the first switch circuit and the second switch circuit, so that the function display conditions of the PSU BootLoader after different abnormal conditions occur and normal recovery are automatically tested.
CN202010505366.XA 2020-06-05 2020-06-05 PSU BootLoader automatic test fixture and method Active CN111694340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010505366.XA CN111694340B (en) 2020-06-05 2020-06-05 PSU BootLoader automatic test fixture and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010505366.XA CN111694340B (en) 2020-06-05 2020-06-05 PSU BootLoader automatic test fixture and method

Publications (2)

Publication Number Publication Date
CN111694340A true CN111694340A (en) 2020-09-22
CN111694340B CN111694340B (en) 2023-08-18

Family

ID=72479547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010505366.XA Active CN111694340B (en) 2020-06-05 2020-06-05 PSU BootLoader automatic test fixture and method

Country Status (1)

Country Link
CN (1) CN111694340B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315675A (en) * 2021-05-08 2021-08-27 山东英信计算机技术有限公司 White box switch U-Boot automatic testing method, system and storage medium
WO2023279875A1 (en) * 2021-07-07 2023-01-12 深圳Tcl新技术有限公司 Bootloader startup procedure monitoring method and apparatus, embedded device, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100315749A1 (en) * 2009-06-11 2010-12-16 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. System for testing power supply unit
CN104459562A (en) * 2013-09-23 2015-03-25 鸿富锦精密工业(深圳)有限公司 Startup and shutdown testing device
CN106354685A (en) * 2016-08-19 2017-01-25 浪潮电子信息产业股份有限公司 Method for realizing I2C bus deadlock recovery of PSU and ME communication
CN106776169A (en) * 2016-12-12 2017-05-31 郑州云海信息技术有限公司 A kind of method and device of the PSU of testing service device
CN206249290U (en) * 2016-12-06 2017-06-13 郑州云海信息技术有限公司 A kind of server test device
CN107797005A (en) * 2017-09-28 2018-03-13 郑州云海信息技术有限公司 A kind of intelligent fatigue tester suitable for more PSU servers
CN109271273A (en) * 2018-10-15 2019-01-25 郑州云海信息技术有限公司 A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores
CN109684263A (en) * 2018-12-03 2019-04-26 郑州云海信息技术有限公司 A kind of method and device of settlement server system and PSU communication disruption
CN110543393A (en) * 2019-08-10 2019-12-06 苏州浪潮智能科技有限公司 test type PSU (Power System Unit) for server and test method
CN110618743A (en) * 2019-09-12 2019-12-27 苏州浪潮智能科技有限公司 Power supply system based on PSU

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100315749A1 (en) * 2009-06-11 2010-12-16 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. System for testing power supply unit
CN104459562A (en) * 2013-09-23 2015-03-25 鸿富锦精密工业(深圳)有限公司 Startup and shutdown testing device
CN106354685A (en) * 2016-08-19 2017-01-25 浪潮电子信息产业股份有限公司 Method for realizing I2C bus deadlock recovery of PSU and ME communication
CN206249290U (en) * 2016-12-06 2017-06-13 郑州云海信息技术有限公司 A kind of server test device
CN106776169A (en) * 2016-12-12 2017-05-31 郑州云海信息技术有限公司 A kind of method and device of the PSU of testing service device
CN107797005A (en) * 2017-09-28 2018-03-13 郑州云海信息技术有限公司 A kind of intelligent fatigue tester suitable for more PSU servers
CN109271273A (en) * 2018-10-15 2019-01-25 郑州云海信息技术有限公司 A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores
CN109684263A (en) * 2018-12-03 2019-04-26 郑州云海信息技术有限公司 A kind of method and device of settlement server system and PSU communication disruption
CN110543393A (en) * 2019-08-10 2019-12-06 苏州浪潮智能科技有限公司 test type PSU (Power System Unit) for server and test method
CN110618743A (en) * 2019-09-12 2019-12-27 苏州浪潮智能科技有限公司 Power supply system based on PSU

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315675A (en) * 2021-05-08 2021-08-27 山东英信计算机技术有限公司 White box switch U-Boot automatic testing method, system and storage medium
CN113315675B (en) * 2021-05-08 2023-02-24 山东英信计算机技术有限公司 White box switch U-Boot automatic testing method, system and storage medium
WO2023279875A1 (en) * 2021-07-07 2023-01-12 深圳Tcl新技术有限公司 Bootloader startup procedure monitoring method and apparatus, embedded device, and storage medium

Also Published As

Publication number Publication date
CN111694340B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN111339010B (en) PCIE (peripheral component interface express) equipment hot plug identification method, system and related components
CN100419699C (en) Method and device remotely automatic recovering CMOS date with network
TWI633487B (en) Method and computer system for automatically recovering the bios image file
CN111694340A (en) Automatic test fixture and method for PSU BootLoader
CN106528237A (en) Micro control unit (MCU) start mode selection circuit and MCU code upgrading method based on same
CN109726059B (en) Server test system
CN104220958A (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
CN103905756A (en) Television set failure processing device and television set
CN111831498B (en) Power-off test method, device and equipment
CN101459531B (en) Electricity supply device and method for substrate management controller
CN114443067A (en) CPLD (complex programmable logic device) file burning system and CPLD file burning method
CN112948186B (en) Detection device and detection method of interface signal
CN217787754U (en) Automatic testing device and system
CN110457158A (en) House dog implementation method, device, equipment and storage medium based on finite state machine
CN110413550B (en) Chip serial port program downloading control circuit
CN111913903A (en) Control system and method supporting NVMe disk hot plug
CN110874293A (en) Hot plug testing device
CN107766073A (en) A kind of structure and method of supporting server start to change BMC flash
WO2021169476A1 (en) Server expansion system, and power control method for same
CN112115000B (en) Remote resetting method and system of system component power supply and BMC remote device
CN108388481B (en) Intelligent watchdog circuit system of OLT equipment
CN109840171A (en) A kind of simple SSD power failure test method
TW202018507A (en) A host boot detection method and its system
CN112114992B (en) I2C anti-hanging dead design method
CN111414067B (en) Computer starting method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant