Server power supply control method and device, equipment and medium

By analyzing the output current when the server power is powered on, software control methods are used to solve the problems of increased server power space occupation and cost, and accurately control it when the capacitive load is powered on to avoid misjudgment and damage.

CN119718039APending Publication Date: 2025-03-28INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202412000340.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing server power supply control method has problems such as space occupation and cost increase, and it is easy to be misjudged as a short circuit when capacitive load is turned on, resulting in control errors.

Method used

By obtaining the output current during the server power supply, analyzing whether it is overcurrent or short-circuited, software control methods are used to reduce hardware occupation, and power on normally in overcurrent but not short-circuited situations, clamp the switching frequency and shut down in short-circuited situations.

Benefits of technology

It reduces the internal space usage and cost of server power supply, and accurately judges and controls when capacitive load is turned on to avoid misjudgment and damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718039A_ABST
    Figure CN119718039A_ABST
Patent Text Reader

Abstract

The invention discloses a server power supply control method and device, equipment and a medium, and relates to the technical field of servers, and the method comprises the steps: obtaining an output current in the starting process of a server power supply, so as to obtain a first current; analyzing the first current, and judging whether the first current is over-current or not and whether the server power supply outputs short circuit or not; if the first current is not over-current, controlling a server power supply to start; if the first current is over-current and the server power supply does not output short circuit, the server power supply is controlled to be started, the output current after the server power supply is started is obtained to obtain a second current, and the server power supply is controlled according to the second current; and if the output of the server power supply is short-circuited, clamping the switching frequency of the server power supply, and controlling the server power supply to be shut down. According to the method, the internal space occupation and cost of the server power supply can be reduced, and judgment and control can be accurately carried out under the condition that the server power supply is started up with the capacitive load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a method, device, equipment and medium for controlling a server power supply. Background Art

[0002] The server power supply is the power supply unit of the server. Ensuring that the server power supply starts up normally and enters a stable operating state is particularly important for the normal and reliable operation of the server. For the power-on control of the server power supply, a current transformer is usually connected in series with the server power supply. The output current of the server power supply is detected by the current transformer, and then the hardware circuit controls the server power supply according to the output current of the server power supply. However, detecting current through a current transformer and controlling the server power supply through a hardware circuit will cause the internal space of the server power supply to be occupied and the cost to increase, and it has limitations. When the server power supply is turned on with a capacitive load, it is easy to mistakenly judge that the server power supply output is short-circuited, which leads to control errors. Therefore, how to solve the above technical defects has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention

[0003] The object of the present invention is to provide a control method for a server power supply, which can reduce the space occupied and cost inside the server power supply and can accurately judge and control when the server power supply is turned on with a capacitive load.

[0004] To solve the above technical problems, the present invention provides a method for controlling a server power supply, comprising:

[0005] Obtaining the output current of the server power supply during startup to obtain a first current;

[0006] Analyze the first current to determine whether the first current is overcurrent and whether the server power supply has an output short circuit;

[0007] If the first current is not overcurrent, controlling the server power supply to start up;

[0008] If the first current is overcurrent and the server power supply is not short-circuited, the server power supply is controlled to be powered on, and the output current of the server power supply after being powered on is obtained to obtain a second current, and the server power supply is controlled according to the second current;

[0009] If the server power supply output is short-circuited, the switching frequency of the server power supply is clamped, and the server power supply is controlled to shut down.

[0010] In some embodiments, analyzing the first current to determine whether the first current is overcurrent and whether the server power supply has an output short circuit includes:

[0011] comparing the first current with a first preset threshold;

[0012] If the first current is less than the first preset threshold, the first current does not over-current;

[0013] If the first current is not less than the first preset threshold, the first current is overcurrent, and the first current is compared with the second preset threshold;

[0014] If the first current is less than the second preset threshold, the first current is overcurrent and the server power supply is not short-circuited;

[0015] If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold;

[0016] If the first current is less than the third preset threshold, the first current is overcurrent and the server power supply is not short-circuited;

[0017] If the first current is not less than the third preset threshold, the server power output is short-circuited.

[0018] In some embodiments, controlling the server power supply according to the second current includes:

[0019] If the first current is not less than the first preset threshold but less than the second preset threshold, comparing the second current with the second preset threshold;

[0020] If the second current is less than the second preset threshold, keeping the server power supply in the power-on state;

[0021] If the second current is not less than the second preset threshold, controlling the server power supply to shut down;

[0022] If the first current is not less than the second preset threshold but less than the third preset threshold, comparing the second current with the third preset threshold;

[0023] If the second current is not less than the third preset threshold, controlling the server power supply to shut down;

[0024] If the second current is less than the third preset threshold, comparing the second current with the second preset threshold;

[0025] If the second current is less than the second preset threshold, keeping the server power supply in the power-on state;

[0026] If the second current is not less than the second preset threshold, the server power supply is controlled to shut down.

[0027] In some embodiments, before controlling the server power supply to shut down, the method further includes:

[0028] Determine whether the number of detections reaches a preset value;

[0029] If reached, the server power is controlled to shut down;

[0030] If not, return to the step of obtaining the output current of the server power supply during startup to obtain the first current.

[0031] In some embodiments, further comprising:

[0032] If the first current is overcurrent, an overcurrent alarm is reported, and the overcurrent alarm is canceled or an overcurrent fault is reported according to the second current.

[0033] In some embodiments, reporting an overcurrent alarm and canceling the overcurrent alarm or reporting an overcurrent fault according to the second current includes:

[0034] comparing the first current with a first preset threshold;

[0035] If the first current is not less than the first preset threshold, comparing the first current with a second preset threshold;

[0036] If the first current is less than the second preset threshold, an overcurrent alarm is reported, and after the server power is turned on, the second current is compared with the second preset threshold;

[0037] If the second current is less than the second preset threshold, canceling the overcurrent alarm;

[0038] If the second current is not less than the second preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0039] If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold;

[0040] If the first current is less than the third preset threshold, an overcurrent alarm is reported, and after the server power is turned on, the second current is compared with the third preset threshold;

[0041] If the second current is not less than the third preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0042] If the second current is less than the third preset threshold, comparing the second current with the second preset threshold;

[0043] If the second current is less than the second preset threshold, canceling the overcurrent alarm;

[0044] If the second current is not less than the second preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0045] If the first current is not less than the third preset threshold and the number of detections reaches a preset value, an overcurrent fault is reported and the server power supply is controlled to shut down.

[0046] In some embodiments, obtaining the output current of the server power supply includes:

[0047] Obtaining the voltage across a sampling resistor at an output end of the server power supply;

[0048] The output current of the server power supply is obtained according to the voltage across the sampling resistor and the resistance value of the sampling resistor.

[0049] To solve the above technical problems, the present invention further provides a control device for a server power supply, comprising:

[0050] an acquisition module, configured to acquire an output current during startup of a server power supply to obtain a first current;

[0051] an analysis module, configured to analyze the first current and determine whether the first current is overcurrent and whether the server power supply has an output short circuit;

[0052] a first control module, configured to control the server power supply to start up if the first current does not over-current;

[0053] a second control module, configured to control the server power supply to power on if the first current is overcurrent and the server power supply has not output short circuit, obtain the output current of the server power supply after powering on to obtain a second current, and control the server power supply according to the second current;

[0054] The third control module is configured to clamp the switching frequency of the server power supply and control the server power supply to shut down if the server power supply output is short-circuited.

[0055] To solve the above technical problems, the present invention further provides a server power supply control device, comprising:

[0056] memory for storing computer programs;

[0057] The processor is configured to implement the steps of the server power supply control method described above when executing the computer program.

[0058] To solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned server power supply control method when executed by a processor.

[0059] To solve the above technical problems, the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the server power control method described above are implemented.

[0060] The server power supply control method provided by the present invention includes: obtaining the output current of the server power supply during startup to obtain a first current; analyzing the first current to determine whether the first current is overcurrent and whether the output of the server power supply is short-circuited; if the first current is not overcurrent, controlling the server power supply to be powered on; if the first current is overcurrent and the output of the server power supply is not short-circuited, controlling the server power supply to be powered on and obtaining the output current of the server power supply after startup to obtain a second current, and controlling the server power supply according to the second current; if the output of the server power supply is short-circuited, clamping the switching frequency of the server power supply and controlling the server power supply to be powered off.

[0061] As can be seen, the server power supply control method provided by the present invention uses software control to control the server power supply. It also determines whether the server power supply output current is overcurrent or short-circuited. If the server power supply output current is overcurrent and the server power supply output is not short-circuited, the server power supply is controlled to start normally. In this way, even if a capacitive load is connected to the output end of the server power supply, causing the server power supply to overcurrent during the startup process, the server power supply can still start normally. In the event of a server power supply output short-circuit, the switching frequency of the server power supply is clamped and the server power supply is controlled to shut down, thereby preventing damage to the server power supply.

[0062] The server power supply control device, equipment, and computer-readable storage medium provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0064] Figure 1 A flow chart of a method for controlling a server power supply provided by an embodiment of the present invention;

[0065] Figure 2 A schematic diagram of obtaining the output current of a server power supply provided by an embodiment of the present invention;

[0066] Figure 3A schematic diagram of a control flow of a server power supply provided by an embodiment of the present invention;

[0067] Figure 4 A schematic diagram of a server power supply control device provided by an embodiment of the present invention;

[0068] Figure 5 A schematic diagram of a server power supply control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0069] The core of the present invention is to provide a control method for a server power supply, which can reduce the space occupied and cost inside the server power supply, and can accurately judge and control when the server power supply is turned on with a capacitive load.

[0070] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0071] Please refer to Figure 1 , Figure 1 A flow chart of a method for controlling a server power supply according to an embodiment of the present invention is provided. Figure 1 As shown, the method includes:

[0072] S101: Obtain the output current of a server power supply during startup to obtain a first current.

[0073] The server power supply control method provided in this embodiment may be executed by a microcontroller, which obtains the output current of the server power supply and analyzes the output current of the server power supply to control the server power supply.

[0074] In some embodiments, obtaining the output current of the server power supply includes:

[0075] Obtaining a voltage across a sampling resistor at an output end of the server power supply;

[0076] The output current of the server power supply is obtained according to the voltage across the sampling resistor and the resistance value of the sampling resistor.

[0077] refer to Figure 2As shown, a sampling resistor is connected in series between the output of the server power supply and the load. The microserver performs voltage sampling and calculation functions. The microserver obtains the voltage across the sampling resistor. The voltage at one end of the sampling resistor is denoted as V1, and the voltage at the other end is denoted as V2. The resistance of the sampling resistor is denoted as R. The output current of the server power supply, I, is calculated as |V1 - V2| / R. Replacing a current transformer with a sampling resistor effectively reduces the internal space occupied by the server power supply and reduces the cost of the server power supply.

[0078] To prevent inaccurate single sampling results from affecting control accuracy, in some embodiments, the microcontroller samples the voltage across the sampling resistor multiple times, takes an average of the multiple sampling results, and obtains the output current of the server power supply based on the average.

[0079] S102: Analyze the first current to determine whether the first current is overcurrent and whether the server power supply has an output short circuit.

[0080] In some embodiments, analyzing the first current to determine whether the first current is overcurrent and whether the server power supply has an output short circuit includes:

[0081] comparing the first current with a first preset threshold;

[0082] If the first current is less than the first preset threshold, the first current does not over-current;

[0083] If the first current is not less than the first preset threshold, the first current is overcurrent, and the first current is compared with the second preset threshold;

[0084] If the first current is less than the second preset threshold, the first current is overcurrent and the server power supply is not short-circuited;

[0085] If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold;

[0086] If the first current is less than the third preset threshold, the first current is overcurrent and the server power supply is not short-circuited;

[0087] If the first current is not less than the third preset threshold, the server power output is short-circuited.

[0088] The first preset threshold value < the second preset threshold value < the third preset threshold value. Overcurrent refers to current exceeding the normal range. A short circuit in the server power supply output can cause overcurrent in the server power supply output. Starting up the server power supply with a capacitive load can also cause overcurrent in the server power supply output. The microcontroller compares the first current with the first preset threshold value. If the first current is less than the first preset threshold value, it indicates that the first current is within the normal range and not overcurrent. In this case, the server power supply starts up normally. If the first current is not less than the first preset threshold value, the microcontroller further compares the first current with the second preset threshold value. If the first current is less than the second preset threshold value, it indicates that, although the first current exceeds the normal range, it has not reached the overcurrent protection point, and the server power supply starts up normally. If the first current is not less than the second preset threshold value, the microcontroller further compares the first current with the third preset threshold value. If the first current is less than the third preset threshold value, it is determined that the server power supply output is in the state of starting up with a capacitive load and the server power supply is not short-circuited. Therefore, the server power supply starts up normally. If the first current is not less than the third preset threshold value, the server power supply output is determined to be short-circuited.

[0089] S103: If the first current is not overcurrent, control the server power supply to start up.

[0090] S104: If the first current is overcurrent and the server power supply is not short-circuited, the server power supply is controlled to power on, and the output current of the server power supply after powering on is obtained to obtain a second current, and the server power supply is controlled according to the second current.

[0091] S105: If the server power supply output is short-circuited, clamp the switching frequency of the server power supply and control the server power supply to shut down.

[0092] If the first current does not overcurrent, the server power supply starts up normally. If the first current overcurrent occurs but the server power supply is not short-circuited, the server power supply also starts up normally. After the server power supply starts up, the microcontroller obtains the output current of the server power supply after startup, obtains the second current, and controls the server power supply on and off based on the second current. If the server power supply output is short-circuited, the switching frequency of the server power supply is clamped to prevent damage to the power devices within the server power supply, and the server power supply is then shut down.

[0093] In some embodiments, controlling the server power supply according to the second current includes:

[0094] If the first current is not less than the first preset threshold but less than the second preset threshold, comparing the second current with the second preset threshold;

[0095] If the second current is less than the second preset threshold, keeping the server power supply in the power-on state;

[0096] If the second current is not less than the second preset threshold, controlling the server power supply to shut down;

[0097] If the first current is not less than the second preset threshold but less than the third preset threshold, comparing the second current with the third preset threshold;

[0098] If the second current is not less than the third preset threshold, controlling the server power supply to shut down;

[0099] If the second current is less than the third preset threshold, comparing the second current with the second preset threshold;

[0100] If the second current is less than the second preset threshold, keeping the server power supply in the power-on state;

[0101] If the second current is not less than the second preset threshold, the server power supply is controlled to shut down.

[0102] refer to Figure 3 As shown, when the first current is not less than the first preset threshold but less than the second preset threshold, after the server power supply is powered on, the second current is compared with the second preset threshold. If the second current is less than the second preset threshold, it indicates that the output current of the server power supply exceeds the normal range only during the server power supply startup process. In this case, the server power supply remains powered on and operates normally. If the second current is not less than the second preset threshold, it is considered that the server power supply is still in an overcurrent state after normal startup, and the server power supply is controlled to shut down. If the first current is not less than the second preset threshold but less than the third preset threshold, after the server power supply is powered on, the second current is compared with the third preset threshold. If the second current is not less than the third preset threshold, it is considered that the overcurrent during the server power supply startup process is due to startup with a capacitive load, and the second current is compared with the second preset threshold again. If the second current is less than the second preset threshold, it indicates that the output current of the server power supply exceeds the normal range only during the server power supply startup process and the overcurrent during startup is due to startup with a capacitive load. In this case, the server power supply remains powered on and operates normally. If the second current is not less than the second preset threshold, it is considered that the server power supply is still in an overcurrent state after being normally powered on, and the server power supply is controlled to be powered off.

[0103] In some embodiments, before controlling the server power supply to shut down, the method further includes:

[0104] Determine whether the number of detections reaches a preset value;

[0105] If reached, the server power is controlled to shut down;

[0106] If not, return to the step of obtaining the output current of the server power supply during startup to obtain the first current.

[0107] refer to Figure 3 As shown, to prevent abnormalities in the output current obtained in a single pass, the operation of clamping the switching frequency of the server power supply in steps S101 to S105 can be repeated. If the number of detections reaches a preset value, that is, the number of times the operation of clamping the switching frequency of the server power supply in steps S101 to S104 and S105 is repeated reaches a preset value, for example, three times, then a short circuit is determined in the server power supply output, and the server power supply is controlled to shut down.

[0108] In some embodiments, further comprising:

[0109] If the first current is overcurrent, an overcurrent alarm is reported, and the overcurrent alarm is canceled or an overcurrent fault is reported according to the second current.

[0110] When the first current is determined to be overcurrent, the microcontroller reports an overcurrent alarm. After the server power is turned on, the microcontroller cancels the overcurrent alarm or reports an overcurrent fault according to the second current.

[0111] In some embodiments, reporting an overcurrent alarm and canceling the overcurrent alarm or reporting an overcurrent fault according to the second current includes:

[0112] comparing the first current with a first preset threshold;

[0113] If the first current is not less than the first preset threshold, comparing the first current with a second preset threshold;

[0114] If the first current is less than the second preset threshold, an overcurrent alarm is reported, and after the server power is turned on, the second current is compared with the second preset threshold;

[0115] If the second current is less than the second preset threshold, canceling the overcurrent alarm;

[0116] If the second current is not less than the second preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0117] If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold;

[0118] If the first current is less than the third preset threshold, an overcurrent alarm is reported, and after the server power is turned on, the second current is compared with the third preset threshold;

[0119] If the second current is not less than the third preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0120] If the second current is less than the third preset threshold, comparing the second current with the second preset threshold;

[0121] If the second current is less than the second preset threshold, canceling the overcurrent alarm;

[0122] If the second current is not less than the second preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0123] If the first current is not less than the third preset threshold and the number of detections reaches a preset value, an overcurrent fault is reported and the server power supply is controlled to shut down.

[0124] refer to Figure 3 As shown, if the first current is less than the second preset threshold, an overcurrent alarm is reported, and the server power supply is controlled to start normally. After the server power supply is turned on, the second current is compared with the second preset threshold. If the second current is less than the second preset threshold, the overcurrent alarm is canceled, and the server power supply operates normally. If the second current is not less than the second preset threshold, an overcurrent fault is reported, and the server power supply is controlled to shut down.

[0125] If the first current is not less than the second preset threshold, the first current is compared with the third preset threshold. If the first current is less than the third preset threshold, an overcurrent alarm is reported and the server power supply is controlled to start normally. After the server power supply is turned on, the second current is compared with the third preset threshold. If the second current is not less than the third preset threshold, an overcurrent fault is reported and the server power supply is controlled to shut down. If the second current is less than the third preset threshold, the second current is compared with the second preset threshold again. If the second current is less than the second preset threshold, the overcurrent alarm is canceled and the server power supply operates normally. If the second current is not less than the second preset threshold, an overcurrent fault is reported and the server power supply is controlled to shut down. If the first current is not less than the third preset threshold and the number of detections reaches the preset value, an overcurrent fault is reported and the server power supply is controlled to shut down.

[0126] In summary, the server power supply control method provided by the present invention uses software control to control the server power supply. It also determines whether the server power supply output current is overcurrent or short-circuited. If the server power supply output current is overcurrent and the server power supply output is not short-circuited, the server power supply is controlled to start up normally. This ensures normal server power-up even if a capacitive load is connected to the output of the server power supply, causing an overcurrent during startup. In the event of a server power supply output short-circuit, the switching frequency of the server power supply is clamped and the server power supply is controlled to shut down, thereby preventing damage to the server power supply.

[0127] The present invention also provides a control device for a server power supply, and the device described below can be referred to in conjunction with the method described above. Figure 4 , Figure 4 A schematic diagram of a server power supply control device provided by an embodiment of the present invention, combined with Figure 4 As shown, the device includes:

[0128] An acquisition module 10 is configured to acquire an output current during startup of a server power supply to obtain a first current;

[0129] An analysis module 20 is configured to analyze the first current and determine whether the first current is overcurrent and whether the server power supply has an output short circuit;

[0130] A first control module 30 is configured to control the server power supply to start up if the first current is not overcurrent;

[0131] a second control module 40 configured to control the server power supply to power on if the first current is overcurrent and the server power supply has not output short circuit, obtain the output current of the server power supply after powering on to obtain a second current, and control the server power supply according to the second current;

[0132] The third control module 50 is configured to clamp the switching frequency of the server power supply and control the server power supply to shut down if the server power supply output is short-circuited.

[0133] Based on the above embodiment, as a specific implementation, the analysis module 20 is used to:

[0134] comparing the first current with a first preset threshold;

[0135] If the first current is less than the first preset threshold, the first current does not over-current;

[0136] If the first current is not less than the first preset threshold, the first current is overcurrent, and the first current is compared with the second preset threshold;

[0137] If the first current is less than the second preset threshold, the first current is overcurrent and the server power supply is not short-circuited;

[0138] If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold;

[0139] If the first current is less than the third preset threshold, the first current is overcurrent and the server power supply is not short-circuited;

[0140] If the first current is not less than the third preset threshold, the server power output is short-circuited.

[0141] Based on the above embodiment, as a specific implementation, the second control module 40 is configured to:

[0142] If the first current is not less than the first preset threshold but less than the second preset threshold, comparing the second current with the second preset threshold;

[0143] If the second current is less than the second preset threshold, keeping the server power supply in the power-on state;

[0144] If the second current is not less than the second preset threshold, controlling the server power supply to shut down;

[0145] If the first current is not less than the second preset threshold but less than the third preset threshold, comparing the second current with the third preset threshold;

[0146] If the second current is not less than the third preset threshold, controlling the server power supply to shut down;

[0147] If the second current is less than the third preset threshold, comparing the second current with the second preset threshold;

[0148] If the second current is less than the second preset threshold, keeping the server power supply in the power-on state;

[0149] If the second current is not less than the second preset threshold, the server power supply is controlled to shut down.

[0150] Based on the above embodiment, as a specific implementation method, the following is also included:

[0151] A judgment module is used to judge whether the number of detections reaches a preset value;

[0152] If it is reached, the third control module 50 controls the server power supply to shut down;

[0153] If not, the process returns to the acquisition module 10 to acquire the output current during the power-on process of the server power supply to obtain the first current.

[0154] Based on the above embodiment, as a specific implementation method, the following is also included:

[0155] A reporting module is used to report an overcurrent alarm if the first current is overcurrent, and cancel the overcurrent alarm or report an overcurrent fault according to the second current.

[0156] Based on the above embodiment, as a specific implementation method, the reporting module is used to:

[0157] comparing the first current with a first preset threshold;

[0158] If the first current is not less than the first preset threshold, comparing the first current with a second preset threshold;

[0159] If the first current is less than the second preset threshold, an overcurrent alarm is reported, and after the server power is turned on, the second current is compared with the second preset threshold;

[0160] If the second current is less than the second preset threshold, canceling the overcurrent alarm;

[0161] If the second current is not less than the second preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0162] If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold;

[0163] If the first current is less than the third preset threshold, an overcurrent alarm is reported, and after the server power is turned on, the second current is compared with the third preset threshold;

[0164] If the second current is not less than the third preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0165] If the second current is less than the third preset threshold, comparing the second current with the second preset threshold;

[0166] If the second current is less than the second preset threshold, canceling the overcurrent alarm;

[0167] If the second current is not less than the second preset threshold, reporting an overcurrent fault and controlling the server power supply to shut down;

[0168] If the first current is not less than the third preset threshold and the number of detections reaches a preset value, an overcurrent fault is reported and the server power supply is controlled to shut down.

[0169] Based on the above embodiment, as a specific implementation method, the acquisition module 10 is used to:

[0170] Obtaining a voltage across a sampling resistor at an output end of the server power supply;

[0171] The output current of the server power supply is obtained according to the voltage across the sampling resistor and the resistance value of the sampling resistor.

[0172] The present invention also provides a server power supply control device, referring to Figure 5 As shown, the device includes a memory 1 and a processor 2 .

[0173] Memory 1, for storing computer programs;

[0174] Processor 2 is configured to execute a computer program to implement the following steps:

[0175] Obtain the output current of the server power supply during startup to obtain a first current; analyze the first current to determine whether the first current is overcurrent and whether the server power supply output is short-circuited; if the first current is not overcurrent, control the server power supply to start up; if the first current is overcurrent and the server power supply output is not short-circuited, control the server power supply to start up, and obtain the output current of the server power supply after startup to obtain a second current, and control the server power supply according to the second current; if the server power supply output is short-circuited, clamp the switching frequency of the server power supply, and control the server power supply to shut down.

[0176] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0177] The present invention also provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the following steps:

[0178] Obtain the output current of the server power supply during startup to obtain a first current; analyze the first current to determine whether the first current is overcurrent and whether the server power supply output is short-circuited; if the first current is not overcurrent, control the server power supply to start up; if the first current is overcurrent and the server power supply output is not short-circuited, control the server power supply to start up, and obtain the output current of the server power supply after startup to obtain a second current, and control the server power supply according to the second current; if the server power supply output is short-circuited, clamp the switching frequency of the server power supply, and control the server power supply to shut down.

[0179] The present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the following steps can be implemented:

[0180] Obtain the output current of the server power supply during startup to obtain a first current; analyze the first current to determine whether the first current is overcurrent and whether the server power supply output is short-circuited; if the first current is not overcurrent, control the server power supply to start up; if the first current is overcurrent and the server power supply output is not short-circuited, control the server power supply to start up, and obtain the output current of the server power supply after startup to obtain a second current, and control the server power supply according to the second current; if the server power supply output is short-circuited, clamp the switching frequency of the server power supply, and control the server power supply to shut down.

[0181] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program code.

[0182] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.

[0183] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. References to the common and similar parts between the various embodiments are sufficient. The devices, apparatuses, and computer-readable storage media disclosed in the embodiments are described briefly because they correspond to the methods disclosed in the embodiments. For relevant details, refer to the description of the methods.

[0184] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0185] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0186] The above describes in detail the server power supply control method, apparatus, device, and medium provided by the present invention. This document uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are intended only to facilitate understanding of the method and core concepts of the present invention. It should be noted that those skilled in the art may make various improvements and modifications to the present invention without departing from the principles of the present invention, and such improvements and modifications fall within the scope of protection of the present invention.

Claims

1. A method for controlling a server power supply, characterized in that: include: Obtaining the output current of the server power supply during startup to obtain a first current; Analyze the first current to determine whether the first current is overcurrent and whether the server power supply has an output short circuit; If the first current is not overcurrent, controlling the server power supply to start up; If the first current is overcurrent and the server power supply is not short-circuited, the server power supply is controlled to be powered on, and the output current of the server power supply after being powered on is obtained to obtain a second current, and the server power supply is controlled according to the second current; If the server power supply output is short-circuited, the switching frequency of the server power supply is clamped, and the server power supply is controlled to shut down.

2. The control method according to claim 1, characterized in that: Analyzing the first current to determine whether the first current is overcurrent and whether the server power supply has an output short circuit includes: comparing the first current with a first preset threshold; If the first current is less than the first preset threshold, the first current does not over-current; If the first current is not less than the first preset threshold, the first current is overcurrent, and the first current is compared with the second preset threshold; If the first current is less than the second preset threshold, the first current is overcurrent and the server power supply is not short-circuited; If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold; If the first current is less than the third preset threshold, the first current is overcurrent and the server power supply is not short-circuited; If the first current is not less than the third preset threshold, the server power output is short-circuited.

3. The control method according to claim 2, characterized in that: Controlling the server power supply according to the second current includes: If the first current is not less than the first preset threshold but less than the second preset threshold, comparing the second current with the second preset threshold; If the second current is less than the second preset threshold, keeping the server power supply in a powered-on state; If the second current is not less than the second preset threshold, controlling the server power supply to shut down; If the first current is not less than the second preset threshold but less than the third preset threshold, comparing the second current with the third preset threshold; If the second current is not less than the third preset threshold, controlling the server power supply to shut down; If the second current is less than the third preset threshold, comparing the second current with the second preset threshold; If the second current is less than the second preset threshold, keeping the server power supply in a powered-on state; If the second current is not less than the second preset threshold, the server power supply is controlled to shut down.

4. The control method according to claim 1, characterized in that: Before controlling the server power supply to shut down, the method further includes: Determine whether the number of detections reaches a preset value; If reached, the server power is controlled to shut down; If not reached, return to the step of obtaining the output current during the startup process of the server power supply to obtain the first current.

5. The control method according to claim 1, characterized in that: Also includes: If the first current is overcurrent, an overcurrent alarm is reported, and the overcurrent alarm is cancelled or an overcurrent fault is reported according to the second current.

6. The control method according to claim 5, characterized in that: Reporting an overcurrent alarm, and canceling the overcurrent alarm or reporting an overcurrent fault according to the second current includes: comparing the first current with a first preset threshold; If the first current is not less than the first preset threshold, comparing the first current with a second preset threshold; If the first current is less than the second preset threshold, an overcurrent alarm is reported, and after the server power supply is turned on, the second current is compared with the second preset threshold; If the second current is less than the second preset threshold, canceling the overcurrent alarm; If the second current is not less than the second preset threshold, an overcurrent fault is reported and the server power supply is controlled to shut down; If the first current is not less than the second preset threshold, comparing the first current with a third preset threshold; If the first current is less than the third preset threshold, an overcurrent alarm is reported, and after the server power supply is turned on, the second current is compared with the third preset threshold; If the second current is not less than the third preset threshold, an overcurrent fault is reported and the server power supply is controlled to shut down; If the second current is less than the third preset threshold, comparing the second current with the second preset threshold; If the second current is less than the second preset threshold, canceling the overcurrent alarm; If the second current is not less than the second preset threshold, an overcurrent fault is reported and the server power supply is controlled to shut down; If the first current is not less than the third preset threshold and the number of detections reaches a preset value, an overcurrent fault is reported and the server power supply is controlled to shut down.

7. The control method according to claim 1, characterized in that: Obtaining the output current of the server power supply includes: Obtaining the voltage across the sampling resistor at the output end of the server power supply; The output current of the server power supply is obtained according to the voltage across the sampling resistor and the resistance value of the sampling resistor.

8. A control device for a server power supply, characterized in that: include: An acquisition module, used for acquiring an output current during the startup process of a server power supply to obtain a first current; An analysis module, used for analyzing the first current, determining whether the first current is overcurrent and whether the output of the server power supply is short-circuited; A first control module, configured to control the server power supply to start up if the first current is not overcurrent; a second control module, configured to control the server power supply to start up if the first current is overcurrent and the server power supply is not short-circuited, and obtain the output current of the server power supply after starting up to obtain a second current, and control the server power supply according to the second current; The third control module is used to clamp the switching frequency of the server power supply and control the server power supply to shut down if the server power supply output is short-circuited.

9. A server power supply control device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for controlling a server power supply according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling a server power supply according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Battery protection circuit and control method therefor

    CN105244850A

  • Inversion device power limitation circuit and inversion device

    CN106602915A

  • Method and apparatus for preventing over-current protection malfunction

    CN106648020A

  • Over-current protection method and device

    CN117791488A

  • Power supply circuit with short -circuit protection

    CN204993037U