Disclosure of Invention
In order to solve the problems, the invention provides a device and a method for testing a CRPS power supply of a server, which realize automatic testing, do not need manual participation, adopt an automatic air duct blocking mode to perform over-temperature testing, improve testing efficiency and reduce cost.
In a first aspect, the technical solution of the present invention provides a CRPS power testing apparatus for a server, including a testing housing for mounting a CRPS power from a rear end; an electrical appliance cavity is arranged on the left side of the front end of the testing shell, and a conversion socket which is inserted with a CRPS power interface and is provided with a relay switch is arranged on the right side of the front end;
a display screen is arranged on the front end face of the electric appliance cavity, an electric telescopic arm which stretches towards the rear side of the testing shell is arranged on the rear end face, and a rotation blocking strip which stretches towards the ventilation hole of the CRPS power supply fan is arranged at the top end of the electric telescopic arm; the electric telescopic arm is driven by a micro cylinder;
an openable air duct cover is arranged at the top end of the test shell and is driven to open and close by an electric telescopic mechanism;
and a test controller is also arranged in the electric appliance cavity, is respectively electrically connected with the CRPS power supply, the relay switch, the display screen, the micro cylinder and the electric telescopic mechanism, controls the working states of the relay switch, the micro cylinder and the electric telescopic mechanism, and inquires the fault state of the CRPS power supply to be displayed on the display screen.
Furthermore, the electric telescopic mechanism comprises at least two groups of telescopic sub-parts, and each telescopic sub-part comprises a permanent magnet arranged on the air duct cover, an electromagnet arranged at the top end of the testing shell and matched with the permanent magnet, and a spring with one end connected with the air duct cover and the other end connected with the top end of the testing shell;
the electromagnet is electrically connected with the test controller.
Furthermore, the telescopic sub-component also comprises an upper guide post arranged on the air duct cover and a lower guide post arranged on the top end of the testing shell and used for the upper guide post to be inserted;
the spring is located guide post and lower guide post, and the permanent magnet is located the guide post, and the electro-magnet is located guide post down.
Furthermore, the test controller is electrically connected with the micro cylinder through a first control circuit, is electrically connected with the relay switch through a second control circuit, and is electrically connected with the electromagnet through a third control circuit;
the first control circuit comprises a resistor R1, a triode Q1 and a relay JK 1; the base electrode of the triode Q1 is connected with the test controller through a resistor R1, the emitting electrode is grounded, the collector electrode is connected with a power supply through a relay JK1 coil, and a normally open contact of a relay JK1 is connected with the micro cylinder in series;
the second control circuit comprises a resistor R2 and a transistor Q2; the base electrode of the triode Q2 is connected with the test controller through a resistor R2, the emitter electrode is grounded, and the collector electrode is connected with a power supply through a coil of the relay switch;
the third control circuit comprises a resistor R3, a triode Q3 and a relay JK 3; the base electrode of the triode Q3 is connected with the test controller through a resistor R3, the emitting electrode is grounded, the collecting electrode is connected with a power supply through a relay JK3 coil, and a normally open contact of the relay JK3 is connected with the electromagnet in series.
Furthermore, a start key and a stop key are arranged on the front end face of the electric appliance cavity, and the start key and the stop key are respectively and electrically connected with the test controller.
Further, the test controller is an MCU chip.
Furthermore, an L-shaped fixing plate is arranged at the rear end of the testing shell, one plate surface of the L-shaped fixing plate is connected with the top end of the testing shell, and the other plate surface of the L-shaped fixing plate is connected with the left end of the testing shell;
two plate surfaces of the L-shaped fixing plate are provided with screw holes connected with the CRPS power supply shell.
In a second aspect, a technical solution of the present invention provides a method for testing a CRPS power supply of a server, including the following steps:
the test controller is connected with a CRPS power supply, and the power supply equipment is connected with the conversion socket through a power line;
pressing a start button, and controlling the micro cylinder to start by the test controller to enable the locked-rotor strip to lock the rotor fan;
the test controller sends a first fault query command to the CRPS power supply;
the test controller analyzes the received CRPS power supply first state word data and judges that the fault state is displayed on a display screen;
the test controller controls the micro cylinder to be closed, the locked rotor strip retracts, the relay switch is controlled to be closed after being switched off, and the CRPS power supply is restarted;
controlling the electromagnet to be electrified, and pulling down the air duct cover to block the air duct;
after the CRPS power supply operates for a certain time, the test controller sends a second fault query command to the CRPS power supply;
the test controller judges whether the CRPS power supply is over-temperature according to the received second state word data of the CRPS power supply;
if not, sending a second fault query command to the CRPS power supply again after the CRPS power supply continues to operate for a certain time;
and if the CRPS power supply is over-temperature, analyzing the received second state word data of the CRPS power supply and displaying the second state word data on a display screen.
Further, the method comprises the following steps:
after the over-temperature of the CRPS power supply is detected, the test controller controls the electromagnet to be powered off, and the air duct cover is lifted to open the air duct;
after the CRPS power supply continues to operate for a certain time, the test controller sends a second fault query command to the CRPS power supply;
and the test controller analyzes the received CRPS power supply second state word data and displays the data on a display screen.
Further, the method comprises the following steps:
if the test controller judges that the CRPS power supply is not over-temperature according to the received CRPS power supply second state word data, whether the CRPS power supply is over-temperature in three continuous detections is continuously judged, if so, the received CRPS power supply second state word data is analyzed and displayed on a display screen, and if not, after the CRPS power supply continues to operate for a certain time, a second fault query command is sent to the CRPS power supply again.
Compared with the prior art, the device and the method for testing the CRPS power supply of the server have the following beneficial effects that: the tool is small, carries to deposit partially, does not need extra external drive equipment instrument to be applicable to the laboratory test simultaneously, and the tester only needs to use the tool to connect the environment, presses the start key and can accomplish the test of two differences, and the test result can show at the display screen subregion, realizes automaticly, need not artifical the participation, liberates the manpower, adopts automatic stifled wind channel mode to carry out the excess temperature test, improves efficiency of software testing, reduce cost, and reaches the purpose of unified standard test.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. 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 application.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention.
Example one
As shown in fig. 1 and 2, the present embodiment provides a server CRPS power testing apparatus, which includes a testing housing 1, an electrical cavity 2 is disposed on the left side of the front end of the testing housing 1, and a switching socket 7 with a relay switch JK2 and inserted into a CRPS power interface is disposed on the front and rear right sides.
The CRPS power supply is installed from the rear end of the test shell 1, so that an interface of the CRPS power supply is plugged into the conversion socket 7, and external power supply equipment is plugged into the conversion socket 7 through a power line to supply power to the CRPS. In order to realize the automatic test of the CRPS power supply, the CRPS is restarted in the test, the conversion socket 7 is provided with a relay switch JK2, the test controller controls the switching state of a relay switch JK2, when the relay switch JK2 is closed, the conversion socket 7 is switched on, the external power supply equipment normally supplies AC (alternating current) power to the CRPS power supply, when the relay switch JK2 is switched off, the port of the conversion socket 7 is switched, and the external power supply equipment stops supplying the AC power to the CRPS power supply. And the CRPS power supply is restarted by controlling the opening and closing actions of the relay switch JK 2.
After the CRPS power supply is installed in the test shell 1 from the rear end, except that the interface is connected with the conversion socket 7, and the fan is arranged at the position of the electric appliance cavity 2, in order to realize the purpose of automatically blocking the rotation of the fan of the CRPS power supply, an electric telescopic arm 10 which is telescopic towards the rear side of the test shell 1 is arranged on the rear end surface of the electric appliance cavity 2, and a rotation blocking strip 11 which extends towards the ventilation hole of the CRPS power supply fan is arranged at the top end of the electric telescopic arm 10. Wherein, the electric telescopic arm 10 is started by a micro cylinder 12, and the working state of the micro cylinder 12 is controlled by the test controller. When the micro cylinder 12 is started, the electric telescopic arm 10 is driven to extend from the rear side of the test shell 1, and the rotation blocking strip 11 is inserted into a ventilation hole of the fan so as to block the fan. When the micro cylinder 12 is closed, the electric telescopic arm 10 is driven to retract, and the rotation blocking strip 11 retracts to stop the rotation of the fan.
In the CRPS power supply over-temperature test (the over-temperature mentioned herein refers to the condition that the interior of the CRPS power supply is over-temperature first due to self-heating of the power supply, and the test method is an air blocking channel test), in order to block an air channel, an air channel cover 3 which can be opened and closed is arranged on the top end of the test shell 1, and the air channel is driven to be opened and closed by an electric telescopic mechanism. After the electric telescopic mechanism drives the air duct cover 3 to be closed, the air duct is blocked for carrying out over-temperature test. After the electric telescopic mechanism drives the air duct cover 3 to be opened, the air duct is opened to dissipate heat of the CRPS power supply.
In this embodiment, the test controller is disposed in the electrical cavity 2, and a display screen 6 is disposed on a front end surface of the electrical cavity 2 to display relevant information (e.g., whether the CRPS has a fault, temperature, etc.) detected by the test controller. Specifically, the test controller is respectively electrically connected with the CRPS power supply, the relay switch JK2, the display screen 6, the micro cylinder 12 and the electric telescopic mechanism, controls the working states of the relay switch JK2, the micro cylinder 12 and the electric telescopic mechanism, and inquires that the fault state of the CRPS power supply is displayed on the display screen 6.
In addition, a start key 4 and a stop key 5 are arranged on the front end surface of the electric appliance cavity 2, and the start key 4 and the stop key 5 are respectively and electrically connected with the test controller. When the test is carried out, the start button 4 is pressed, the test is automatically started, and the test controller controls the working states of the relay switch JK2, the micro air cylinder 12 and the electric telescopic mechanism to carry out fan fault test and over-temperature test in sequence. The stop button 5 is pressed and the test is terminated. The testing process does not need manual participation, the testing efficiency is improved, and the cost is reduced.
As shown in fig. 3, in order to open and close the air duct cover 3, the electric telescopic mechanism of the present embodiment includes at least two sets of telescopic sub-members, for example, if the air duct cover 3 is rectangular, one set of telescopic sub-members is respectively disposed at four corners of the air duct cover 3.
The telescopic sub-component comprises a permanent magnet 13 arranged on the air duct cover 3, an electromagnet 17 arranged at the top end of the testing shell 1 and matched with the permanent magnet 13, and a spring 14 with one end connected with the air duct cover 3 and the other end connected with the top end of the testing shell 1. In addition, the telescopic sub-component also comprises an upper guide post 16 arranged on the air duct cover 3 and a lower guide post 15 arranged on the top end of the testing shell 1 for the upper guide post 16 to be inserted. The spring 14 is located in the upper guide post 16 and the lower guide post 15, the permanent magnet 13 is located in the upper guide post 16, and the electromagnet 17 is located in the lower guide post 15.
The electromagnet 17 is electrically connected to a test controller, and the test controller controls the energization state of the electromagnet 17. When the test controller enables the electromagnet 17 to be electrified, the electromagnet 17 and the permanent magnet 13 attract each other, and the air duct cover 3 is pulled down and closed; when the test controller powers off the electromagnet 17, the electromagnet 17 loses magnetic force, the permanent magnet 13 is not attracted any more, and the air duct cover 3 bounces upwards under the action of the spring 14, so that the air duct is opened.
As shown in fig. 4, the test controller is electrically connected to the microcylinder 12 through a first control circuit, electrically connected to the relay switch JK2 through a second control circuit, and electrically connected to the electromagnet 17 through a third control circuit, in order to control the respective devices.
The first control circuit comprises a resistor R1, a triode Q1 and a relay JK 1; the base electrode of the triode Q1 is connected with the test controller through a resistor R1, the emitting electrode is grounded, the collecting electrode is connected with a power supply through a relay JK1 coil, and a normally open contact of the relay JK1 is connected with the micro cylinder 12 in series.
The second control circuit comprises a resistor R2 and a transistor Q2; the base electrode of the triode Q2 is connected with the test controller through a resistor R2, the emitting electrode is grounded, and the collecting electrode is connected with a power supply through a coil of the relay switch JK 2.
The third control circuit comprises a resistor R3, a triode Q3 and a relay JK 3; the base electrode of the triode Q3 is connected with the test controller through a resistor R3, the emitting electrode is grounded, the collecting electrode is connected with a power supply through a relay JK3 coil, and a normally open contact of the relay JK3 is connected with the electromagnet 17 in series.
Taking the first control circuit as an example, the test controller outputs a high level, the transistor Q1 is turned on, the relay JK1 is energized, the normally open contact is closed, and the micro cylinder 12 is started.
In specific implementation, the test controller can adopt an MCU chip, and the MCU chip is connected with the CRPS power supply through an I2C bus.
In this embodiment, after the CRPS power supply is inserted into the testing shell 1, the interface is connected to the conversion socket 7, but the CRPS power supply cannot be fixed well, and especially when the wind force is large, there is a risk of blowing off the testing shell 1, so an L-shaped fixing plate 8 is further disposed at the rear end of the testing shell 1, one plate surface of the L-shaped fixing plate 8 is connected to the top end of the testing shell 1, and the other plate surface is connected to the left end of the testing shell 1. Set up the screw hole 9 of being connected with the CRPS power casing on two faces of L type fixed plate 8, use the screw to be connected tool and CRPS power fixed connection, avoid blowing test casing 1.
Example two
As shown in fig. 5, on the basis of the first embodiment, the second embodiment provides a method for testing a CRPS power supply of a server, which includes the following steps. It should be noted that, in the specific implementation, the test controller uses an MCU chip.
And S101, connecting the test controller with a CRPS power supply, and connecting the power supply equipment with the conversion socket 7 through a power line.
S102, pressing the start button 4, the test controller controls the micro cylinder 12 to start, and the locked rotor bar 11 locks the fan.
S103, the test controller sends a first fault query command to the CRPS power supply.
Such as reading a 79H status word.
And S104, the test controller analyzes the received CRPS power supply first state word data and judges that the fault state is displayed on the display screen 6.
In a normal state, a fan failure should be indicated.
S105, the test controller controls the micro cylinder 12 to be closed, the locked rotor bar 11 to retract, and controls the relay switch JK2 to be closed after being switched off, so that the CRPS power supply is restarted.
And S106, controlling the electromagnet 17 to be electrified, and pulling the air duct cover 3 down to block the air duct.
And S107, after the CRPS power supply operates for a certain time (for example, 1 hour), the test controller sends a second fault inquiry command to the CRPS power supply.
And S108, the test controller judges whether the CRPS power supply is over-temperature according to the received second state word data of the CRPS power supply.
Such as reading 79H status words, secondary temperatures, etc.
And S109, if the temperature is not over-temperature, sending a second fault query command to the CRPS power supply again after the CRPS power supply continues to operate for a certain time.
And S110, if the temperature is over-temperature, analyzing the received CRPS power supply second state word data and displaying the data on the display screen 6.
In this embodiment, to achieve the accuracy of the over-temperature test, when the test controller determines that the CRPS power supply is not over-temperature according to the received second status word data of the CRPS power supply, it is continuously determined whether the CRPS power supply is not over-temperature after three consecutive detections, if so, the received second status word data of the CRPS power supply is analyzed and displayed on the display screen 6, otherwise, after the CRPS power supply continues to operate for a certain time, a second fault query command is sent to the CRPS power supply again.
After the CRPS power supply is over-temperature, in order to timely dissipate heat of the CRPS power supply, the embodiment further comprises the following steps after detecting that the CRPS power supply is over-temperature.
And S111, controlling the electromagnet 17 to be powered off by the test controller, and lifting the air duct cover 3 to open the air duct.
And S112, after the CRPS power supply continues to operate for a certain time, the test controller sends a second fault query command to the CRPS power supply.
S113, the test controller analyzes the received CRPS power supply second state word data and displays the data on the display screen 6.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and the present invention is not limited thereto, and any modifications and variations which can be made by those skilled in the art without departing from the spirit of the present invention shall fall within the scope of the present invention.