CN111694340B - PSU BootLoader automatic test fixture and method - Google Patents

PSU BootLoader automatic test fixture and method Download PDF

Info

Publication number
CN111694340B
CN111694340B CN202010505366.XA CN202010505366A CN111694340B CN 111694340 B CN111694340 B CN 111694340B CN 202010505366 A CN202010505366 A CN 202010505366A CN 111694340 B CN111694340 B CN 111694340B
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.)
Active
Application number
CN202010505366.XA
Other languages
Chinese (zh)
Other versions
CN111694340A (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

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)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a PSU BootLoader automatic test fixture and a PSU BootLoader automatic test method.A control circuit needs to set different abnormal conditions of a test PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions in advance, so that in the execution process of a system BootLoader, when PSU meets any abnormal triggering/recovery condition, the PSU is in an operation state corresponding to the met abnormal triggering/recovery conditions by controlling the conduction conditions of a first switch circuit and a second switch circuit, and the PSU BootLoader is automatically tested to show the function conditions after the different abnormal conditions appear and recover. Therefore, the application can automatically simulate different abnormal conditions possibly occurring in the PSU operation process, thereby being easier to realize the robustness of the PSU BootLoader function based on different abnormal conditions, and saving the manpower consumption.

Description

PSU BootLoader automatic test fixture and method
Technical Field
The application 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 is a first section of program executed after the system is powered on, and the first section of program is mainly used for initializing hardware equipment, establishing a mapping table of a memory space and upgrading equipment firmware. For the PSU (Power supply unit, the power supply) is incomplete if the PSU is abnormal, such as power interruption or communication interruption, during the firmware upgrading process by the BootLoader. In this case, if the PSU has no self-recovery function or a defect exists in the self-recovery function, the PSU cannot recover the firmware inside the PSU again by BootLoader, and the PSU cannot continue to operate, which is called "brick change".
At present, in order to avoid the phenomenon of 'brick changing' of a PSU, a BootLoader function of the PSU in an abnormal scene needs to be tested in a targeted manner in a design stage so as to test the robustness of the BootLoader function design. In the prior art, the PSU BootLoader function test mode is as follows: in the BootLoader executing process, a tester manually executes operations such as PSU power-off, communication interruption, power supply restoration, communication restoration and the like, and after simulation verification of occurrence and normal restoration of abnormal scenes, PSU BootLoader functions are displayed. However, the abnormal scene which may occur during the actual running process of the PSU is complex and changeable, for example, the time of the PSU abnormality occurring during the BootLoader executing process is changeable and the time of the abnormality recovery is changeable, and the combined abnormal situation of power-off and communication interruption may also exist, so that it is difficult to simulate the complex and changeable abnormal scene by a manual mode; moreover, the execution time of the BootLoader is long, so that the test time is long, and the labor consumption is high.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
The application aims to provide a PSU BootLoader automatic test fixture and a PSU BootLoader automatic test method, which can automatically simulate different abnormal conditions possibly occurring in the PSU operation process, so that the robustness of the PSU BootLoader function based on the different abnormal conditions is easily realized, and the labor consumption is saved.
In order to solve the above technical problems, the present application provides a PSU BootLoader automatic test fixture, including:
a first switch circuit provided on an input power line of the PSU;
a second switching circuit provided on a clock signal line 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 of the test PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions; in the executing 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 showing condition of the PSU BootLoader after different abnormal conditions appear and recover to be normal is automatically tested.
Preferably, the control circuit is specifically configured to preset different delay times and abnormal conditions required to be triggered or abnormal conditions required to be ended by the test PSU BootLoader corresponding to the different delay times one by one, so as to set different abnormal conditions of the test PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions; the delay time refers to the executed time of the BootLoader of the system.
Preferably, the first switching circuit includes:
the power end is connected with a direct current power supply, the control end is connected with the control circuit, the first connecting end is connected with the power end of the PSU, and the second connecting end is connected with a live wire of the PSU for inputting alternating current;
correspondingly, the control circuit is specifically used for controlling the conduction condition of the first switch circuit by controlling the communication condition of the first connecting end and the second connecting end of the relay.
Preferably, the first switching circuit further includes:
and the input end of the voltage stabilizing circuit is connected with the direct-current power supply, and the output end of the voltage stabilizing circuit is connected with the power end of the relay and is used for stabilizing the power input voltage of the relay.
Preferably, the relay is a switching device with high-level on and low-level off;
and PSU BootLoader automatic test fixture still includes:
the first end is connected with the control end of the relay, and the second end is grounded.
Preferably, the second switching circuit includes:
the control end is connected with the control circuit, the first end is connected with the clock signal line of the PSU, and the second end is grounded;
correspondingly, the control circuit is specifically used for controlling the conduction condition of the second switching circuit by controlling the communication condition of the first end and the second end of the switching tube.
Preferably, the switching tube is a switching device with high-level conduction and low-level cut-off;
and PSU BootLoader automatic test fixture still includes:
and the first end is connected with the control end of the switching tube, and the second end is grounded to the second pull-down resistor.
Preferably, 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 an abnormality according to the communication condition of the PSU when the PSU is controlled to be in an operation state corresponding to the satisfied abnormal triggering condition; and when the PSU is controlled to be in an operation state corresponding to the satisfied abnormal recovery condition, determining whether the PSU is abnormally recovered according to the communication condition of the PSU.
Preferably, the control circuit comprises a logic circuit for controlling the operation of the control circuitClock golden finger and data transmission golden finger of PSU are connected through I 2 Golden finger led out from C interface changes I 2 C interface element for connecting I 2 A protocol converter for mutually converting the signal protocol and the USB signal protocol and a singlechip; wherein:
the golden finger turns to I 2 I of C interface element 2 C interface end and I of the protocol converter 2 The interface end is connected with the USB interface end of the protocol converter, the USB interface end of the protocol converter is connected with the upper computer, the upper computer is connected with a control serial port of the singlechip through a USB-to-serial port transmission line, and an output control end of the singlechip 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, 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 single chip microcomputer controls the conduction conditions of the first switch circuit and the second switch circuit, so that the PSU is in an operation state corresponding to the met abnormal triggering/recovering condition, and the function showing condition of the PSU BootLoader after different abnormal conditions appear and recover is automatically tested;
the upper computer is also used for determining whether the PSU triggers an abnormality according to the communication condition of the PSU when controlling the PSU to be in an operation state corresponding to the satisfied abnormal triggering condition; and when the PSU is controlled to be in an operation state corresponding to the satisfied abnormal recovery condition, determining whether the PSU is abnormally recovered according to the communication condition of the PSU.
In order to solve the technical problems, the application also provides a PSU BootLoader automatic test method, which is applied to any PSU BootLoader automatic test fixture, and comprises the following steps:
different abnormal conditions of a test PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions are preset;
in the executing 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 showing condition of the PSU BootLoader after different abnormal conditions appear and recover to be normal is automatically tested.
The application provides a PSU BootLoader automatic test fixture, which comprises a first switch circuit arranged on an input power 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 of the test PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions in advance, so that when the PSU meets any abnormal triggering/recovery condition in the execution process of the system BootLoader, the PSU is in an operation state corresponding to the met abnormal triggering/recovery conditions by controlling the conduction conditions of the first switch circuit and the second switch circuit, and the function display condition of the PSU BootLoader after the different abnormal conditions appear and recover to normal is automatically tested. Therefore, the application can automatically simulate different abnormal conditions possibly occurring in the PSU operation process, thereby being easier to realize the robustness of the PSU BootLoader function based on different abnormal conditions, and saving the manpower consumption.
The application also provides a PSU BootLoader automatic test method which has the same beneficial effects as the automatic test fixture.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a PSU BootLoader automatic test fixture according to an embodiment of the present application;
fig. 2 is a schematic diagram of a specific structure of a PSU BootLoader automatic test fixture according to an embodiment of the present application.
Detailed Description
The core of the application is to provide the PSU BootLoader automatic test fixture and the PSU BootLoader automatic test method, which can automatically simulate different abnormal conditions possibly occurring in the PSU operation process, so that the robustness of the PSU BootLoader function based on the different abnormal conditions is easily realized, and the manpower consumption is saved.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
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 application.
This PSU BootLoader automatic test fixture includes:
a first switching circuit 1 provided on an input power line of the PSU;
a second switching circuit 2 provided on the 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 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 condition of the first switch circuit 1 and the second switch circuit 2, so that the function showing condition of the PSU BootLoader after different abnormal conditions appear and recover is automatically tested.
Specifically, the PSU BootLoader automatic test fixture of the present application includes a first switch circuit 1, a second switch circuit 2 and a control circuit 3, and the working principle thereof is as follows:
the first switch circuit 1 is arranged on an input power line of the PSU, and when the first switch circuit 1 is conducted, the PSU has alternating current input and is in a power supply state; when the first switching circuit 1 is open, the PSU has no ac power input and is in a power-off state. The second switch circuit 2 is arranged on the clock signal line of the PSU, the conduction 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 down, it is in a communication interrupt state.
Based on the above, the application sets different abnormal conditions required by the test PSU BootLoader and the abnormal triggering conditions and the abnormal recovery conditions corresponding to the different abnormal conditions in advance, and writes the different abnormal conditions required by the test and the corresponding abnormal triggering conditions and the abnormal recovery conditions into the control circuit 3. The control circuit 3 judges whether the PSU meets any abnormal triggering condition in the executing process of the system BootLoader, if yes, the PSU is in an abnormal running state corresponding to the met abnormal triggering condition by controlling the conduction condition of the first switch circuit 1 and the second switch circuit 2 so as to automatically test the function showing condition of the PSU BootLoader after different abnormal conditions appear; if the abnormal trigger condition is not satisfied, the abnormal trigger operation is not executed; meanwhile, judging whether the PSU meets any abnormal recovery condition, if yes, controlling the conduction conditions of the first switch circuit 1 and the second switch circuit 2 to enable the PSU to be in an abnormal recovery running state corresponding to the met abnormal recovery condition so as to automatically test the function display condition of the PSU BootLoader after different abnormal conditions are recovered to normal; if any abnormal recovery condition is not satisfied, the abnormal recovery operation is not executed.
In addition, the control circuit 3 controls the BootLoader to start executing, and it should be noted that before the BootLoader starts executing, the control circuit 3 needs to control the on condition 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 triggering of a subsequent abnormal condition.
The application provides a PSU BootLoader automatic test fixture, which comprises a first switch circuit arranged on an input power 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 of the test PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions in advance, so that when the PSU meets any abnormal triggering/recovery condition in the execution process of the system BootLoader, the PSU is in an operation state corresponding to the met abnormal triggering/recovery conditions by controlling the conduction conditions of the first switch circuit and the second switch circuit, and the function display condition of the PSU BootLoader after the different abnormal conditions appear and recover to normal is automatically tested. Therefore, the application can automatically simulate different abnormal conditions possibly occurring in the PSU operation process, thereby being easier to realize the robustness of the PSU BootLoader function based on different abnormal conditions, and saving the manpower consumption.
Based on the above embodiments:
referring to fig. 2, fig. 2 is a schematic diagram of a specific structure of a PSU BootLoader automatic test fixture according to an embodiment of the present application.
As an optional embodiment, the control circuit 3 is specifically configured to preset different delay times and abnormal conditions required to be triggered or abnormal conditions required to be ended by the test PSU BootLoader corresponding to the different delay times one by one, so as to set different abnormal conditions of the test PSU BootLoader, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions; the delay time refers to the executed time of the system BootLoader.
Specifically, different delay times and abnormal conditions required to be triggered or ended by a test PSU BootLoader corresponding to the different delay times are set in advance, the purpose of the application is to set different abnormal conditions of the test PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions, for example, power failure of the PSU corresponding to delay time 1, power restoration of the PSU corresponding to delay time 2, communication interruption of the PSU corresponding to delay time 3, communication restoration of the PSU corresponding to delay time 4 and the like, delay time 1 is less than delay time 2 is less than delay time 3 is less than delay time 4, then the control circuit 3 counts time when the system BootLoader starts to execute, when the count time reaches the delay time 1, the PSU is considered to be satisfied with the power failure triggering conditions, then 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, the PSU is considered to be satisfied with the power supply recovery condition, and the first switch circuit 1 is controlled to be conducted so as to recover the power supply state of the PSU; when the timing time reaches the delay time 3, the PSU is considered to be satisfied with 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 be satisfied with the communication recovery condition, and the PSU is enabled to recover the communication state by controlling the on condition of the second switch circuit 2 not to pull down the clock signal line of the PSU, so that the function display condition of the PSU BootLoader after different abnormal conditions are recovered to be normal is tested.
As an alternative embodiment, the first switching circuit 1 includes:
the power end is connected with a direct current power supply, the control end is connected with the control circuit 3, the first connecting end is connected with the power end of the PSU, and the second connecting end is connected with the live wire of the PSU for inputting alternating current;
accordingly, 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 terminal and the second connection terminal of the relay 11.
Specifically, the first switching circuit 1 of the present application includes a relay 11 whose operation principle is:
when the PSU meets the power-off triggering condition, the control circuit 3 controls the connection between the first connection end and the second connection end of the relay 11 to be disconnected, namely the first switch circuit 1 is disconnected, so that the PSU is in a power-off state; when the PSU meets the power supply restoration condition, the first connection terminal and the second connection terminal of the control relay 11 are communicated, 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 switching circuit 1 further comprises:
the input end is connected with a direct current power supply, and the output end is connected with a voltage stabilizing circuit of the power end of the relay 11 and is used for stabilizing the power input voltage of the relay 11.
Further, the first switch circuit 1 of the present application further includes a voltage stabilizing circuit, which is configured to perform a voltage stabilizing operation on the dc power output by the dc power supply, and supply the dc power after the voltage stabilizing to the relay 11, so as to stabilize the power input voltage of the relay 11 and protect the relay 11.
As an alternative embodiment, the relay 11 is a switching device with high level on and low level off;
and PSU BootLoader automatic test fixture still includes:
the first terminal is connected to the control terminal of the relay 11, and the second terminal is grounded to a first pull-down resistor.
Further, the relay 11 of the present application is turned on when a high level is input to its own control terminal, and turned off when a low level is input. 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, there may be a "virtual voltage", if there is a "virtual voltage" on the branch where the control end of the relay 11 is located, the relay 11 will be misled, 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, and when the control circuit 3 is ready for testing, the relay 11 will be controlled to be turned on first, so in order to avoid frequent on-off of the relay 11, the control end of the relay 11 is connected to the first pull-down resistor, so that the branch where the control end of the relay 11 is located is kept in a low level state when the control circuit 3 is just powered on, so as to prevent the relay 11 from being turned on by mistake.
As an alternative embodiment, the second switching circuit 2 includes:
a switching tube 21 having a control terminal connected to the control circuit 3, a first terminal connected to a clock signal line of the PSU, and a second terminal connected to the ground;
accordingly, the control circuit 3 is specifically configured to control the conduction condition of the second switching circuit 2 by controlling the communication condition of the first terminal and the second terminal of the switching tube 21.
Specifically, the second switching circuit 2 of the present application includes a switching tube 21 whose operation principle is:
when 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, namely, the clock signal line (SCL) of PSU is pulled down, so that PSU is in a communication interruption state; when the PSU meets the communication recovery condition, the connection between the first terminal and the second terminal of the control switching tube 21 is disconnected, i.e., the clock signal line of the PSU is not pulled down, so that the PSU is recovered to 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:
the first terminal is connected to the control terminal of the switching tube 21, and the second terminal is grounded to a second pull-down resistor.
Further, the switching tube 21 of the present application is turned on when a high level is inputted to its own control terminal and turned off when a low level is inputted. 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, there may be a "virtual voltage", if there is a "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 PSU is pulled down, so the application connects the control end of the switching tube 21 to the second pull-down resistor, and ensures that the branch where the control end of the switching tube 21 is located is kept in 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 further configured to determine whether the PSU triggers an anomaly according to a communication condition with the PSU when the PSU is controlled to be in an operation state corresponding to the satisfied anomaly triggering condition; when the control PSU is in an operation state corresponding to the satisfied abnormal recovery condition, it is determined whether the PSU is abnormally recovered according to a communication condition with the PSU.
Further, the control circuit 3 of the present application is also connected to a data transmission line (SDA) of the PSU, and its working principle is:
considering that the control circuit 3 can perform data communication with the PSU when the PSU is in the normal operation state, the control circuit 3 can determine whether the operation state of the PSU is normal by the communication condition with the PSU. For example, when the control circuit 3 controls the PSU to be in an operation state corresponding to the met abnormal triggering condition, if the control is successful, the PSU is in an abnormal operation state, and data communication between the control circuit 3 and the PSU cannot be performed, so that the control circuit 3 can determine whether the PSU triggers an abnormality according to the communication condition with the PSU; for another example, when the control circuit 3 controls the PSU to be in the operation state corresponding to the satisfied abnormal recovery condition, if the control is successful, the PSU is in the normal operation state, and data communication can be performed between the control circuit 3 and the PSU, so that the control circuit 3 can determine whether the PSU is abnormally recovered according to the communication condition with the PSU.
As an alternative embodiment, the control circuit 3 comprises a clock finger and a data transmission finger for passing the PSU through I 2 Golden finger led out from C interface changes I 2 C interface element 31 for connecting I 2 A protocol converter 32 for converting the signal protocol of C and the signal protocol of USB and a singlechip 33; wherein:
golden finger turns I 2 I of the C interface element 31 2 I of C interface end and protocol converter 32 2 The interface end is connected with the USB interface end of the protocol converter 32, the upper computer is connected with a control serial port of the singlechip 33 through a USB-to-serial port transmission line, and an output control end of the singlechip 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 and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions; in the system BootLoader executing process, when PSU meets any abnormal triggering/recovering condition, the single chip microcomputer 33 controls the conduction conditions of the first and second switch circuits 2 to enable the PSU to be in an operating state corresponding to the met abnormal triggering/recovering condition, so that the function display condition of the PSU BootLoader after different abnormal conditions appear and recover is automatically tested;
the upper computer is also used for determining whether the PSU triggers an abnormality according to the communication condition of the PSU when the PSU is controlled to be in an operation state corresponding to the satisfied abnormal triggering condition; when the control PSU is in an operation state corresponding to the satisfied abnormal recovery condition, it is determined whether the PSU is abnormally recovered according to a communication condition with the PSU.
Specifically, the control circuit 3 of the present application includes a circuit for turning a golden finger I 2 The working principle of the C interface element 31, the protocol converter 32 and the singlechip 33 is as follows:
golden finger turns I 2 The C interface element 31 is connected with the PSU for passing the clock golden finger (SCL) and the data transmission golden finger (SDA) of the PSU through I 2 The C interface is led out to be connected with an external device. I of protocol converter 32 2 C interface end and golden finger turn I 2 I of the C interface element 31 2 The C interface end is connected with the USB (Universal Serial Bus ) interface end of the protocol converter 32, and is connected with the upper computer for connecting I 2 The C signal protocol and the USB signal protocol are mutually converted to realize that the upper computer provides a clock signal for the PSU, and the upper computer carries out data communication with the PSU. The upper computer is connected with a control serial port of the singlechip 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 singlechip 33. In addition, the power supply of the first switch circuit 1 and 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 PSU BootLoader automatic test fixture, and comprises the following steps:
different abnormal conditions of the test PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions are preset;
in the executing 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 showing condition of the PSU BootLoader after different abnormal conditions appear and recover to be normal is automatically tested.
The description of the automatic test method provided by the present application refers to the embodiment of the automatic test fixture, and the description of the present application is omitted herein.
It should also be noted that in this 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. Moreover, 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 one … …" does not exclude the presence of other like 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 application. 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 application. Thus, the present application 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 (9)

1. PSU bootLoader automatic test fixture, its characterized in that includes:
a first switch circuit provided on an input power line of the PSU;
a second switching circuit provided on a clock signal line 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 of the test PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions; in the executing 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 as to automatically test the function showing condition of the PSU BootLoader after different abnormal conditions appear and recover to be normal;
wherein the control circuit comprises a clock golden finger and a data transmission golden finger channel I for transmitting the PSU 2 Golden finger led out from C interface changes I 2 C interface element for connecting I 2 A protocol converter for mutually converting the signal protocol and the USB signal protocol and a singlechip;
the golden finger turns to I 2 I of C interface element 2 C interface end and I of the protocol converter 2 The interface end is connected with the USB interface end of the protocol converter, the USB interface end of the protocol converter is connected with the upper computer, the upper computer is connected with a control serial port of the singlechip through a USB-to-serial port transmission line, and an output control end of the singlechip 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, 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 single chip microcomputer controls the conduction conditions of the first switch circuit and the second switch circuit, so that the PSU is in an operation state corresponding to the met abnormal triggering/recovering condition, and the function showing condition of the PSU BootLoader after different abnormal conditions appear and recover is automatically tested;
the upper computer is also used for determining whether the PSU triggers an abnormality according to the communication condition of the PSU when controlling the PSU to be in an operation state corresponding to the satisfied abnormal triggering condition; and when the PSU is controlled to be in an operation state corresponding to the satisfied abnormal recovery condition, determining whether the PSU is abnormally recovered according to the communication condition of the PSU.
2. The PSU BootLoader automatic test fixture according to claim 1, wherein the control circuit is specifically configured to preset different delay times and abnormal conditions required to be triggered or ended by the PSU BootLoader to be tested corresponding to the different delay times, so as to set different abnormal conditions of the PSU BootLoader to be tested, and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions; 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 said first switching circuit comprises:
the power end is connected with a direct current power supply, the control end is connected with the control circuit, the first connecting end is connected with the power end of the PSU, and the second connecting end is connected with a live wire of the PSU for inputting alternating current;
correspondingly, the control circuit is specifically used for controlling the conduction condition of the first switch circuit by controlling the communication condition of the first connecting end and the second connecting end of the relay.
4. The PSU BootLoader automatic test fixture of claim 3, wherein said first switching circuit further comprises:
and the input end of the voltage stabilizing circuit is connected with the direct-current power supply, and the output end of the voltage stabilizing circuit is connected with the power end of the relay and is used for stabilizing the power input voltage of the relay.
5. The PSU BootLoader automatic test fixture according to claim 3, wherein said relay is a switching device with high level on and low level off;
and PSU BootLoader automatic test fixture still includes:
the first end is connected with the control end of the relay, and the second end is grounded.
6. The PSU BootLoader automatic test fixture of claim 1, wherein said second switching circuit comprises:
the control end is connected with the control circuit, the first end is connected with the clock signal line of the PSU, and the second end is grounded;
correspondingly, the control circuit is specifically used for controlling the conduction condition of the second switching circuit by controlling the communication condition of the first end and the second end of the switching tube.
7. The PSU BootLoader automatic test fixture according to claim 6, wherein said switching tube is a switching device with high-level on and low-level off;
and PSU BootLoader automatic test fixture still includes:
and the first end is connected with the control end of the switching tube, and the second end is grounded to the second pull-down resistor.
8. The PSU BootLoader automatic test fixture according to any one of claims 1-7, wherein a data transmission line of said PSU is connected to said control circuit;
the control circuit is also used for determining whether the PSU triggers an abnormality according to the communication condition of the PSU when the PSU is controlled to be in an operation state corresponding to the satisfied abnormal triggering condition; and when the PSU is controlled to be in an operation state corresponding to the satisfied abnormal recovery condition, determining whether the PSU is abnormally recovered according to the communication condition of the PSU.
9. A PSU BootLoader automatic test method, which is applied to the PSU BootLoader automatic test fixture according to any one of claims 1-8, and includes:
different abnormal conditions of a test PSU BootLoader and abnormal triggering conditions and abnormal recovery conditions corresponding to the different abnormal conditions are preset;
in the executing 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 showing condition of the PSU BootLoader after different abnormal conditions appear and recover to be normal is 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 CN111694340A (en) 2020-09-22
CN111694340B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315675B (en) * 2021-05-08 2023-02-24 山东英信计算机技术有限公司 White box switch U-Boot automatic testing method, system and storage medium
CN113672448A (en) * 2021-07-07 2021-11-19 深圳Tcl新技术有限公司 BootLoader starting process monitoring method, device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354685A (en) * 2016-08-19 2017-01-25 浪潮电子信息产业股份有限公司 Method for realizing I2C bus deadlock recovery of PSU and ME communication

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923146A (en) * 2009-06-11 2010-12-22 鸿富锦精密工业(深圳)有限公司 Power supply test control device
CN104459562A (en) * 2013-09-23 2015-03-25 鸿富锦精密工业(深圳)有限公司 Startup and shutdown testing device
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
CN110543393B (en) * 2019-08-10 2022-12-02 苏州浪潮智能科技有限公司 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354685A (en) * 2016-08-19 2017-01-25 浪潮电子信息产业股份有限公司 Method for realizing I2C bus deadlock recovery of PSU and ME communication

Also Published As

Publication number Publication date
CN111694340A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111694340B (en) PSU BootLoader automatic test fixture and method
CN102221864B (en) Computer, and computer startup management system and method thereof
CN111339010B (en) PCIE (peripheral component interface express) equipment hot plug identification method, system and related components
CN106909479B (en) Startup and shutdown test fixture
CN110908841B (en) I2C communication abnormity recovery method and device
CN106610712B (en) Substrate management controller resetting system and method
CN106528237A (en) Micro control unit (MCU) start mode selection circuit and MCU code upgrading method based on same
CN112825011A (en) Power-on and power-off control method and system of PCIe device
CN110750374A (en) Watchdog circuit and control method thereof
CN116541032B (en) Data burning method, device, equipment and computer storage medium
CN111831498B (en) Power-off test method, device and equipment
CN104050050A (en) Watchdog control circuit and control method
CN110990316B (en) Method and programmable logic circuit for outputting hot-swap device status
CN110459260B (en) Automatic test switching device, method and system
CN111208891B (en) CPLD updating system and method
CN110457158A (en) House dog implementation method, device, equipment and storage medium based on finite state machine
CN112948186A (en) Detection device and detection method of interface signal
CN111913903A (en) Control system and method supporting NVMe disk hot plug
CN108388481B (en) Intelligent watchdog circuit system of OLT equipment
CN107766073A (en) A kind of structure and method of supporting server start to change BMC flash
CN112115000B (en) Remote resetting method and system of system component power supply and BMC remote device
CN203350646U (en) Automatic downloading device of single-chip microcomputer
CN112732498A (en) Test method, device, equipment and storage medium for simulating single-point power-on and power-off of equipment
CN112114992B (en) I2C anti-hanging dead design method
CN117032333B (en) Inverted timing type two-way air valve control equipment, method and device and storage medium

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