Charging control method and device of server backup power supply, and storage medium

CN117748641BActive Publication Date: 2026-10-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311630061.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2026-10-27
Estimated Expiration
2043-11-29

AI Technical Summary

Technical Problem

[0005]本申请实施例提供了一种服务器备用电源的充电控制方法和装置、存储介质,以至少解决相关技术中,服务器备用电源的充电控制的实时性较差等问题

Benefits of technology

[0042]在本申请实施例中,服务器中部署了备用电源和采样器件,采样器件与服务器的供电电源的模拟信号接口连接,模拟信号接口用于传输允许表征供电电源的供电负载情况的模拟信号,方法应用于服务器,方法包括:在供电电源为服务器供电的过程中,控制采样器件以预设采集频率从模拟信号接口上采集目标模拟信号,其中,预设采集频率为大于目标频率阈值的频率;根据目标模拟信号检测供电电源当前的供电负载参数,其中,供电负载参数用于指示供电电源的供电负载情况;在当前的供电负载参数满足供电电源的目标充电条件的情况下,控制供电电源对备用电源执行与当前的供电负载参数匹配的充电操作;在当前的供电负载参数不满足供电电源的目标充电条件的情况下,禁止供电电源为备用电源充电,即在供电电源为服务器供电的过程中,通过采样器件以大于目标频率阈值的预设采集频率从模拟信号接口上采集目标模拟信号,并根据目标模拟信号检测供电电源当前的供电负载参数,以得知供电电源的供电负载情况,在当前的供电负载参数满足供电电源的目标充电条件时,控制供电电源对备用电源执行与当前的供电负载参数匹配的充电操作,并在当前的供电负载参数不满足供电电源的目标充电条件时,禁止供电电源为备用电源充电,上述方式一方面通过采样器件以大于目标频率阈值的预设采集频率从模拟信号接口上采集目标模拟信号,可以确保采集信号的及时性,另一方面,目标模拟信号相较于相关技术中I2C传输的数字信号传输时延大大降低,进一步确保了充电控制的实时性。采用上述技术方案,解决了相关技术中,服务器备用电源的充电控制的实时性较差等问题,实现了提高服务器备用电源的充电控制的实时性的技术效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117748641B_ABST
    Figure CN117748641B_ABST
Patent Text Reader

Abstract

The application discloses a charging control method and device for a server backup power supply, and a storage medium. The method comprises the following steps: during the process that a power supply supplies power to a server, a sampling device is controlled to collect a target analog signal from an analog signal interface at a preset collection frequency; a current power supply load parameter of the power supply is detected according to the target analog signal; in the case that the current power supply load parameter meets a target charging condition of the power supply, the power supply is controlled to perform a charging operation matching the current power supply load parameter on the backup power supply; and in the case that the current power supply load parameter does not meet the target charging condition of the power supply, the power supply is prohibited from charging the backup power supply. By using the above technical solution, the problem of poor real-time performance of the charging control of the server backup power supply in the related art is solved, and the technical effect of improving the real-time performance of the charging control of the server backup power supply is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a charging control method and apparatus for a server backup power supply, and a storage medium. Background Technology

[0002] In the storage server field, the PSU (Power Supply Unit) supplies power to the entire motherboard system. When the AC 220V of the PSU fails, the motherboard system will switch to the BBU (Battery Backup Unit) for temporary power supply, thereby ensuring that the system data of the motherboard system is not lost.

[0003] The core task of the PSU is to supply power to the motherboard system. Secondly, while supplying power to the motherboard system, the PSU can simultaneously charge the BBU. However, the BBU has a high charging power, and a motherboard system may contain multiple BBUs. If the load supplied by the PSU to the motherboard system is already at full capacity, adding charging to the BBU can cause the PSU to trigger overcurrent protection or the system temperature to become too high. Currently, to avoid this situation, the system software built into the CPU (Central Processing Unit) of the motherboard system typically collects the total power of the PSU. When the total power reaches full capacity, a charging control command is sent to the BBU via I2C. This control method is limited by the low sampling period of the system software for total power and the latency of I2C communication. This results in the collected data not reflecting the actual total power at any given moment, and the control signal cannot be transmitted to the BBU in time to react to sudden charging anomalies.

[0004] There is still no effective solution to the problem of poor real-time performance of server backup power supply charging control in related technologies. Summary of the Invention

[0005] This application provides a charging control method and apparatus for server backup power supplies, as well as a storage medium, to at least solve the problems of poor real-time performance in the charging control of server backup power supplies in related technologies.

[0006] According to one embodiment of this application, a charging control method for a server backup power supply is provided, including:

[0007] A backup power supply and a sampling device are deployed in the server. The sampling device is connected to the analog signal interface of the server's power supply. The analog signal interface is used to transmit analog signals that characterize the power supply load. The method is applied to the server, and the method includes:

[0008] During the process of the power supply supplying power to the server, the sampling device is controlled to collect the target analog signal from the analog signal interface at a preset sampling frequency, wherein the preset sampling frequency is a frequency greater than the target frequency threshold;

[0009] The current power supply load parameters of the power supply are detected based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status of the power supply.

[0010] If the current power supply load parameters meet the target charging conditions of the power supply, control the power supply to perform a charging operation on the backup power supply that matches the current power supply load parameters;

[0011] If the current power supply load parameters do not meet the target charging conditions of the power supply, the power supply is prohibited from charging the backup power supply.

[0012] Optionally, detecting the current power supply load parameters of the power supply based on the target analog signal includes:

[0013] The actual power supply current that the power supply is currently supplying power to the server is determined based on the target analog signal;

[0014] Obtain the maximum allowable output current of the power supply;

[0015] The current power supply load rate is determined based on the actual power supply current and the maximum power supply current, wherein the power supply load parameter includes the current power supply load rate.

[0016] Optionally, the server deploys a central processing unit corresponding to the backup power supply, the central processing unit is connected to the backup power supply, the backup power supply deploys a microcontroller unit, the microcontroller unit deploys an analog-to-digital converter, the power supply includes multiple sub-power supplies, the multiple sub-power supplies are connected to a current sharing bus, the analog signal interface includes the current sharing bus, the sampling device includes the analog-to-digital converter, the sampling interface of the analog-to-digital converter is connected to the current sharing bus, the current sharing bus is used to transmit the largest sub-voltage signal among the sub-voltage signals of the multiple sub-power supplies during the process of the multiple sub-power supplies supplying power to the server, and the target analog signal includes the largest sub-voltage signal;

[0017] Determining the actual power supply current of the power supply currently supplying power to the server based on the target analog signal includes: converting the maximum sub-voltage signal collected by the sampling interface into the actual power supply current;

[0018] The step of obtaining the maximum allowable output current of the power supply includes: receiving the maximum supply current of the power supply from the central processing unit through the microcontroller unit, wherein the maximum supply current is obtained by the system software in the central processing unit detecting the power supply;

[0019] The step of determining the current power supply load rate of the power supply based on the actual power supply current and the maximum power supply current includes: determining the ratio of the actual power supply current to the maximum power supply current as the current power supply load rate of the power supply through the microcontroller unit.

[0020] Optionally, a microcontroller unit is deployed in the backup power supply, and controlling the power supply to perform a charging operation on the backup power supply that matches the current power load parameters includes:

[0021] The microcontroller obtains the target current value corresponding to the target power supply load rate range into which the current power supply load rate of the power supply falls from the corresponding power supply load rate range and current value. The corresponding power supply load rate range and current value are pre-constructed by the microcontroller, and the power supply load parameter includes the current power supply load rate.

[0022] The initial duty cycle of the initial pulse width modulation signal is adjusted to a target duty cycle that matches the target current value by the microcontroller unit, thereby obtaining the target pulse width modulation signal;

[0023] The power supply is controlled to charge the backup power supply according to the target pulse width modulation signal.

[0024] Optionally, the backup power supply also includes a detection chip connected to the microcontroller unit. After controlling the power supply to charge the backup power supply according to the target pulse width modulation signal, the method further includes:

[0025] The detection chip detects the charging status of the backup power supply during the charging process, and sends a charging abnormality signal to the microcontroller unit if an abnormality is detected in the charging status.

[0026] Upon receiving the charging anomaly signal, the microcontroller unit prevents the power supply from charging the backup power supply.

[0027] Optionally, before controlling the power supply to perform a charging operation on the backup power supply that matches the current power load parameters, the method further includes:

[0028] Detect the power supply load rate threshold corresponding to the power supply;

[0029] The current power supply load rate of the power supply is compared with the power supply load rate threshold, wherein the power supply load parameter includes the current power supply load rate;

[0030] If the current power supply load rate is less than the power supply load rate threshold, it is determined that the current power supply load rate meets the target charging condition.

[0031] Optionally, a microcontroller unit is deployed in the backup power supply, and the power supply includes multiple sub-power supplies, each of which is connected to the microcontroller unit via a state link. Determining that the current power load rate meets the target charging condition when the current power load rate is less than the power load rate threshold includes:

[0032] If the current power load rate is less than the power load rate threshold, the state link is detected by the microcontroller unit;

[0033] If a fault status signal is detected transmitted on the status link, it is determined that the current power supply load rate does not meet the target charging condition, and the power supply is prohibited from charging the backup power supply. The fault status signal is used to indicate that the corresponding sub-power supply has failed.

[0034] If no fault status signal is detected on the status link, it is determined that the current power supply load rate meets the target charging condition.

[0035] According to another embodiment of this application, a charging control device for a server backup power supply is also provided. The server has a backup power supply and a sampling device deployed therein. The sampling device is connected to an analog signal interface of the server's power supply. The analog signal interface is used to transmit an analog signal that allows characterization of the power supply load condition. The device is applied to the server and includes:

[0036] The acquisition module is used to control the sampling device to acquire a target analog signal from the analog signal interface at a preset acquisition frequency during the process of the power supply supplying power to the server, wherein the preset acquisition frequency is a frequency greater than the target frequency threshold;

[0037] The first detection module is used to detect the current power supply load parameters of the power supply based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status of the power supply.

[0038] The first control module is used to control the power supply to perform a charging operation on the backup power supply that matches the current power load parameters, provided that the current power load parameters meet the target charging conditions of the power supply.

[0039] The second control module is used to prevent the power supply from charging the backup power supply when the current power supply load parameters do not meet the target charging conditions of the power supply.

[0040] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0041] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0042] In this embodiment, a backup power supply and a sampling device are deployed in the server. The sampling device is connected to the analog signal interface of the server's power supply. The analog signal interface is used to transmit an analog signal that characterizes the power supply load. The method is applied to the server and includes: during the process of the power supply supplying power to the server, controlling the sampling device to acquire a target analog signal from the analog signal interface at a preset acquisition frequency, wherein the preset acquisition frequency is a frequency greater than a target frequency threshold; detecting the current power supply load parameters of the power supply based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status; if the current power supply load parameters meet the target charging conditions of the power supply, controlling the power supply supply to perform a charging operation on the backup power supply that matches the current power supply load parameters; if the current power supply load parameters do not meet the target charging conditions of the power supply, prohibiting the power supply supply from providing power to the backup power supply. Source charging, in the process of the power supply providing power to the server, involves using a sampling device to acquire a target analog signal from the analog signal interface at a preset acquisition frequency higher than the target frequency threshold. Based on the target analog signal, the current power supply load parameters are detected to determine the power supply load status. When the current power supply load parameters meet the target charging conditions, the power supply is controlled to perform a charging operation on the backup power supply that matches the current power supply load parameters. Conversely, when the current power supply load parameters do not meet the target charging conditions, charging the backup power supply is prohibited. This method ensures timely signal acquisition by using a sampling device at a preset acquisition frequency higher than the target frequency threshold. Furthermore, the target analog signal has a significantly lower transmission latency compared to the digital signal transmitted via I2C in related technologies, further ensuring the real-time performance of charging control. This technical solution addresses the problem of poor real-time performance in server backup power supply charging control in related technologies, achieving a significant improvement in the real-time performance of server backup power supply charging control. Attached Figure Description

[0043] Figure 1 This is a hardware structure block diagram of a computer device for a charging control method for a server backup power supply according to an embodiment of this application.

[0044] Figure 2 This is a flowchart of a charging control method for a server backup power supply according to an embodiment of this application;

[0045] Figure 3 This is a schematic diagram of a server backup power supply controller according to an embodiment of this application;

[0046] Figure 4 This is a schematic diagram of a charging control circuit for a server backup power supply according to an embodiment of this application.

[0047] Figure 5 This is a schematic diagram of a charging control process for a server backup power supply according to an embodiment of this application;

[0048] Figure 6 This is a structural block diagram of a charging control device for a server backup power supply according to an embodiment of this application. Detailed Implementation

[0049] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0050] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0051] The methods and embodiments provided in this application can be executed on a server device or a similar computing device. Taking running on a server device as an example, Figure 1 This is a hardware structure block diagram of a computer device for a charging control method of a server backup power supply according to an embodiment of this application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The server device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the server equipment described above. For example, the server equipment may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0052] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the server backup power charging control method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the server device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0053] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the server device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0054] This embodiment provides a charging control method for a server backup power supply. The server deploys a backup power supply and a sampling device. The sampling device is connected to the analog signal interface of the server's power supply. The analog signal interface is used to transmit analog signals that characterize the power supply load. The method is applied to the server. Figure 2 This is a flowchart of a charging control method for a server backup power supply according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0055] Step S12: During the process of the power supply supplying power to the server, the sampling device is controlled to collect the target analog signal from the analog signal interface at a preset sampling frequency, wherein the preset sampling frequency is a frequency greater than the target frequency threshold.

[0056] Step S14: Detect the current power supply load parameters of the power supply based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status of the power supply.

[0057] Step S16: If the current power supply load parameters meet the target charging conditions of the power supply, control the power supply to perform a charging operation on the backup power supply that matches the current power supply load parameters.

[0058] Step S18: If the current power supply load parameters do not meet the target charging conditions of the power supply, the power supply is prohibited from charging the backup power supply.

[0059] Optionally, in this embodiment, the power supply may be, but is not limited to, the PSU described above, and the backup power supply may be, but is not limited to, the BBU described above;

[0060] Optionally, in this embodiment, before introducing the solution, the server's power supply method is first described. The server typically uses a PSU for power. When the PSU's power load is relatively low, it can also provide additional power to the server's BBU. The BBU can then take over powering the server in the event of a PSU power failure, ensuring that data on the server is not lost due to the power outage. When the PSU's power load is full, it no longer supplies power to the BBU. The aforementioned BBU charging control logic can be implemented through a corresponding controller. Figure 3 This is a schematic diagram of a server backup power supply controller according to an embodiment of this application, as shown below. Figure 3 As shown, each BBU in the server corresponds to a controller, which can control whether the corresponding BBU is charged. For example, controller 1 controls whether BBU1 is charged, and controller N controls whether BBU1 is charged.

[0061] Optionally, in this embodiment, the technical solution proposed in this application abandons the method of collecting the power supply load of the PSU through the CPU in the related technology. Instead, it collects the target analog signal from the analog signal interface through a sampling device. This is because the CPU-based collection in the related technology is limited by the low sampling period of the system software within the CPU for the overall power, resulting in outdated information that cannot reflect the current power supply load of the PSU. However, the sampling device can collect the target analog signal at a preset collection frequency greater than the target frequency threshold. The extremely high collection frequency ensures that the target analog signal can represent the current power supply load of the PSU, improving the real-time performance of the server backup power supply charging control.

[0062] Furthermore, in related technologies, when the CPU detects that the PSU's power supply load has reached full pressure, a control signal is transmitted via I2C (Inter-Integrated Circuit, serial communication bus) to prevent the PSU from charging the BBU. Typically, the control signal transmitted via I2C is a digital signal, and digital signal transmission usually uses hundreds of bits to express a voltage value. Therefore, the transmission delay of the control signal is particularly significant, resulting in poor real-time performance of the server backup power supply's charging control. To address the technical problems existing in the aforementioned related technologies, this application acquires a target analog signal from the analog signal interface to determine the power supply load. The analog signal interface is used to transmit an analog signal that characterizes the power supply load. Utilizing the near-zero delay characteristic of analog signal transmission solves the problem of large signal transmission delays and improves the real-time performance of the server backup power supply's charging control.

[0063] Optionally, in this embodiment, the sampling device can acquire the target analog signal from the analog signal interface at a preset acquisition frequency. The specific preset acquisition frequency can be adjusted according to actual needs. The higher the preset acquisition frequency, the higher the real-time performance of the server backup power supply charging control.

[0064] In this embodiment, a backup power supply and a sampling device are deployed in the server. The sampling device is connected to the analog signal interface of the server's power supply. The analog signal interface is used to transmit an analog signal that characterizes the power supply load. The method is applied to the server and includes: during the process of the power supply supplying power to the server, controlling the sampling device to acquire a target analog signal from the analog signal interface at a preset acquisition frequency, wherein the preset acquisition frequency is a frequency greater than a target frequency threshold; detecting the current power supply load parameters of the power supply based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status; if the current power supply load parameters meet the target charging conditions of the power supply, controlling the power supply supply to perform a charging operation on the backup power supply that matches the current power supply load parameters; if the current power supply load parameters do not meet the target charging conditions of the power supply, prohibiting the power supply supply from providing power to the backup power supply. Source charging, in the process of the power supply providing power to the server, involves using a sampling device to acquire a target analog signal from the analog signal interface at a preset acquisition frequency higher than the target frequency threshold. Based on the target analog signal, the current power supply load parameters are detected to determine the power supply load status. When the current power supply load parameters meet the target charging conditions, the power supply is controlled to perform a charging operation on the backup power supply that matches the current power supply load parameters. Conversely, when the current power supply load parameters do not meet the target charging conditions, charging the backup power supply is prohibited. This method ensures timely signal acquisition by using a sampling device at a preset acquisition frequency higher than the target frequency threshold. Furthermore, the target analog signal has a significantly lower transmission latency compared to the digital signal transmitted via I2C in related technologies, further ensuring the real-time performance of charging control. This technical solution addresses the problem of poor real-time performance in server backup power supply charging control in related technologies, achieving a significant improvement in the real-time performance of server backup power supply charging control.

[0065] As an optional solution, the step of detecting the current power supply load parameters of the power supply based on the target analog signal further includes:

[0066] S21, determine the actual power supply current of the power supply currently supplying power to the server based on the target analog signal;

[0067] S22, Obtain the maximum allowable output current of the power supply;

[0068] S23, determine the current power supply load rate of the power supply based on the actual power supply current and the maximum power supply current, wherein the power supply load parameter includes the current power supply load rate.

[0069] Optionally, in this embodiment, to detect the current power supply load parameters of the power supply based on the target analog signal, it is first necessary to determine the actual power supply current IREAL_PSU that the power supply is currently supplying power to the server based on the target analog signal, and obtain the maximum power supply current IMAX_PSU that the power supply is allowed to output. Here, IMAX_PSU is an attribute of the power supply. Usually, for a specific power supply, its IMAX_PSU is a fixed constant.

[0070] As an optional solution, the server deploys a central processing unit corresponding to the backup power supply, the central processing unit is connected to the backup power supply, the backup power supply deploys a microcontroller unit, the microcontroller unit deploys an analog-to-digital converter, the power supply includes multiple sub-power supplies, the multiple sub-power supplies are connected to a current sharing bus, the analog signal interface includes the current sharing bus, the sampling device includes the analog-to-digital converter, the sampling interface of the analog-to-digital converter is connected to the current sharing bus, the current sharing bus is used to transmit the largest sub-voltage signal among the sub-voltage signals of the multiple sub-power supplies during the process of the multiple sub-power supplies supplying power to the server, and the target analog signal includes the largest sub-voltage signal;

[0071] The step of determining the actual power supply current of the power supply to the server based on the target analog signal further includes: S31, converting the maximum sub-voltage signal collected by the sampling interface into the actual power supply current;

[0072] The step of obtaining the maximum allowable output current of the power supply includes: S32, receiving the maximum supply current of the power supply from the central processing unit through the microcontroller unit, wherein the maximum supply current is obtained by the system software in the central processing unit detecting the power supply;

[0073] The step of determining the current power supply load rate of the power supply based on the actual power supply current and the maximum power supply current includes: S33, determining the ratio of the actual power supply current to the maximum power supply current as the current power supply load rate of the power supply through the microcontroller unit.

[0074] Optionally, in this embodiment, Figure 4 This is a schematic diagram of a charging control circuit for a server backup power supply according to an embodiment of this application, as shown below. Figure 4 As shown, the server deploys a central processing unit (CPU) corresponding to the backup power supply (BBU), which is connected to the backup power supply. The backup power supply deploys a microcontroller unit (MCU), on which an analog-to-digital converter (ADC) is deployed. The power supply includes multiple sub-power supplies (e.g., PSU1 and PSU2), which are connected to a current sharing bus (Load_Share). The analog signal interface includes the current sharing bus. The sampling device includes the ADC, whose sampling interface is connected to the current sharing bus. The current sharing bus is used to transmit the largest sub-voltage signal among the sub-voltage signals of the multiple sub-power supplies during the power supply process. The target analog signal includes the largest sub-voltage signal.

[0075] The server power supply uses a redundant power supply method with PSU1 and PSU2. The alarm signals Alert1 and Alert2 of the two PSUs are respectively connected to the GPIO (General-purpose input / output) ports of the BBU internal MCU. The current sharing bus Load_Share is shorted together and sent to the MCU's ADC sampling port. The CPU sends an enable signal to the MCU through the GPIO port and communicates with the MCU through the I2C1 bus. The MCU communicates with the metering chip through the I2C2 bus. The metering chip has two functions: sampling and protection.

[0076] First, the parameters of the BBU, such as voltage, current, charge, temperature, and internal resistance, are sampled.

[0077] Secondly, based on the factory-set values ​​such as the maximum charging and discharging current, maximum charging voltage, and maximum charging and discharging temperature of the BBU stored in the internal register of the metering chip, it can be determined whether the corresponding charging and discharging current, charging voltage, charging and discharging temperature, voltage, current, energy, temperature, and internal resistance exceed the corresponding parameter range during the BBU charging process. If they exceed the range, it indicates that the charging state of the BBU is abnormal, and an alarm can be issued and the corresponding switching circuit can be shut down to prevent charging or discharging operations on the BBU.

[0078] Optionally, in this embodiment, when the charging process is initiated, the CPU first sends a high-level charging enable signal to the MCU inside the BBU via the GPIO port. After receiving the high-level charging enable signal, the BBU generates a table that dynamically sets the BBU charging current based on the power supply load rate α range. The table that dynamically sets the BBU charging current based on the power supply load rate α range can be, but is not limited to, the following Table 1:

[0079] Table 1

[0080]

[0081] It is known that the larger the power supply load rate α, the smaller the BBU charging current is set. When the power supply load rate α is greater than or equal to 1, it means that the PSU is already running at full load, so charging the BBU is prohibited and the BBU charging current is set to 0.

[0082] The power supply load factor α can be obtained by the following formula:

[0083]

[0084] Where α is the power supply load rate, IREAL_PSU is the actual power supply current, and IMAX_PSU is the maximum power supply current.

[0085] The MCU continuously samples the PSU's current-sharing bus using the ADC to obtain the PSU's actual output current. Since the PSU output current changes in real time, the calculated power load rate α also changes accordingly. Then, the MCU determines the charging current setpoint based on the position of the power load rate α in the table. When a change in the power load rate α causes a change in the charging current setpoint, the MCU adjusts the duty cycle of the PWM (Pulse Width Modulation) signal to change the actual charging current, achieving adaptive charging current control for the BBU. In this way, the charging current of the BBU is limited when the PSU output power is close to full load, prioritizing the system's power supply and achieving controllable overall power.

[0086] Simultaneously, the MCU detects the Alert1 and Alert2 alarm signals issued by the PSU, and will stop charging upon detecting either PSU alarm. When charging is complete, the CPU sends a low-level charging enable signal to the MCU inside the BBU module via the GPIO port, notifying the MCU to stop charging.

[0087] As an optional solution, the backup power supply is equipped with a microcontroller unit. The method of controlling the main power supply to perform a charging operation on the backup power supply that matches the current power load parameters further includes:

[0088] S41, the microcontroller obtains the target current value corresponding to the target power supply load rate range into which the current power supply load rate of the power supply falls from the power supply load rate range and current value with corresponding relationship, wherein the power supply load rate range and current value with corresponding relationship are pre-constructed by the microcontroller, and the power supply load parameter includes the current power supply load rate;

[0089] S42, the initial duty cycle of the initial pulse width modulation signal is adjusted to a target duty cycle that matches the target current value through the microcontroller unit, thereby obtaining the target pulse width modulation signal;

[0090] S43, control the power supply to charge the backup power supply according to the target pulse width modulation signal.

[0091] Optionally, in this embodiment, the corresponding power supply load rate range and current value are equivalent to Table 1 above (a table for dynamically setting the BBU charging current based on the power supply load rate α range). The current value corresponding to the power supply load rate α is different in different power supply load rate ranges. The larger the power supply load rate α, the smaller the BBU charging current is set. For example, referring to Table 1, when the power supply load rate α satisfies 0.8≤α<0.9, the corresponding target current value is 0.5*IMAX_BBU.

[0092] Optionally, in this embodiment, the magnitude of the backup power supply charging current is controlled by a pulse width modulation signal. The pulse width modulation signal can adjust the duty cycle or frequency to make the backup power supply charging current reach the target current value.

[0093] As an optional solution, the backup power supply also includes a detection chip connected to the microcontroller unit. After controlling the power supply to charge the backup power supply according to the target pulse width modulation signal, the following additional steps are also included:

[0094] S51, the detection chip detects the charging status of the backup power supply during the charging process, and sends a charging abnormality signal to the microcontroller unit if an abnormality is detected in the charging status.

[0095] S52, upon receiving the charging abnormality signal, the microcontroller prevents the power supply from charging the backup power supply.

[0096] Optionally, in this embodiment, the detection chip is equivalent to Figure 3 The metering chip in the system has two main functions: sampling and protection. First, it samples parameters such as voltage, current, charge, temperature, and internal resistance of the BBU. Second, based on the factory-set values ​​of the BBU's maximum charging / discharging current, maximum charging voltage, and maximum charging / discharging temperature stored in the internal register of the metering chip, it determines whether the corresponding charging / discharging current, charging voltage, charging / discharging temperature, voltage, current, charge, temperature, and internal resistance exceed the corresponding parameter range during the BBU charging process. If they do, it indicates that the BBU's charging status is abnormal, and it can send a charging abnormality signal to the MCU and shut down the corresponding switching circuit to prevent charging or discharging operations on the BBU.

[0097] As an optional solution, before controlling the power supply to perform a charging operation on the backup power supply that matches the current power load parameters, the method further includes:

[0098] S61, detect the power supply load rate threshold corresponding to the power supply;

[0099] S62, compare the current power supply load rate of the power supply with the power supply load rate threshold, wherein the power supply load parameter includes the current power supply load rate;

[0100] S63, if the current power supply load rate is less than the power supply load rate threshold, determine that the current power supply load rate meets the target charging condition.

[0101] Optionally, in this embodiment, the power supply load rate threshold is less than or equal to 1, and can be set according to actual needs;

[0102] Optionally, in this embodiment, if the current power supply load rate is less than the power supply load rate threshold, it means that the PSU is not operating at full load, and the BBU can be charged by the PSU.

[0103] As an optional solution, a microcontroller unit is deployed in the backup power supply, and the power supply includes multiple sub-power supplies, each of which is connected to the microcontroller unit via a state link. The step of determining that the current power load rate meets the target charging condition when the current power load rate is less than the power load rate threshold further includes:

[0104] S71, if the current power load rate is less than the power load rate threshold, the microcontroller detects the status link;

[0105] S72, if a fault status signal is detected transmitted on the status link, it is determined that the current power supply load rate does not meet the target charging condition, and the power supply is prohibited from charging the backup power supply, wherein the fault status signal is used to indicate that the corresponding sub-power supply has failed;

[0106] S73, if a fault status signal is not transmitted on the status link, determine that the current power supply load rate meets the target charging condition.

[0107] Optionally, in this embodiment, such as Figure 3As shown, the power supply includes multiple sub-power supplies (e.g., PSU1 and PSU2). Each sub-power supply is connected to the microcontroller unit (MCU) via a status link (Alert). For example, PSU1 is connected to the MCU via status link (Alert 1), and PSU2 is connected to the MCU via status link (Alert 2). When PSU1 fails, it indicates that only PSU2 is supplying power to the server and BBU. Alert 1 will send a fault status signal to the MCU. Upon receiving the fault status signal, the MCU will prevent PSU2 from charging the BBU to avoid PSU2 reaching full load.

[0108] Optionally, in this embodiment, in order to better understand the charging control process of the server backup power supply, the charging control process of the server backup power supply will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.

[0109] This embodiment provides a charging control method for a server backup power supply. Figure 5 This is a schematic diagram of a charging control process for a server backup power supply according to an embodiment of this application, as shown below. Figure 5 As shown, the main steps include the following:

[0110] Step S501: Determine whether a charging enable signal has been received;

[0111] Step S502: If a charging enable signal is received, continue to determine whether the MCU has received the charging current setting table and the PSU maximum current; if no charging enable signal is received, detect whether the PSU issues an Alert signal or receives a stop charging signal, and end charging when the PSU issues an Alert signal or receives a stop charging signal.

[0112] Step S503: After determining that the MCU has received the charging current setting table and the maximum current of the PSU, the MCU continues to perform AD sampling on the PSU current sharing bus and calculates the power supply load rate α.

[0113] Step S504: The MCU sets the charging current value according to the position of the power supply load rate α in the table;

[0114] Step S505: The MCU adjusts the PWM duty cycle to make the actual charging current follow the set current, and ends charging when it detects an Alert signal from the PSU or receives a stop charging signal.

[0115] The charging control method for server backup power proposed in this application uses two power supply units (PSUs) to power the server and BBU. The load_share bus of the two PSUs is shorted together and sent to the ADC sampling port of the MCU, enabling the MCU to detect the PSU output current. The alarm signals Alert1 and Alert2 of the two PSUs are connected to the GPIO ports of the MCU inside the BBU module. The CPU sends an enable signal to the MCU through the GPIO port and communicates with the MCU via the I2C1 bus. The MCU communicates with the metering chip via the I2C2 bus.

[0116] First, at the start of the charging process, the CPU sends a high-level charging enable signal to the MCU inside the BBU via the GPIO port. Then, the MCS system software obtains the maximum output current of the PSU, IMAX_PSU, and sends it to the MCU via the I2C bus. It then generates a table to dynamically set the BBU charging current based on the power supply load rate α. The power supply load rate α is obtained by dividing the actual output current of the PSU by the maximum output current of the PSU, and its physical meaning is the percentage of the PSU's load. When the PSU load is relatively small, it means the overall power consumption is low. In this case, the BBU can be allowed to charge at the maximum current, shortening the BBU's full charging time and allowing the server power supply system to reach its maximum backup power capacity as quickly as possible. When the PSU load is close to full load, it means the overall power consumption is high. Allowing the BBU to charge at the maximum current in this situation may trigger the PSU overcurrent protection and increase the heat dissipation pressure. Appropriately reducing the BBU charging current can avoid this risk.

[0117] This application manages the power supply load rate α in four segments, with different charging currents corresponding to different segments. Other segmentation management methods can be implemented as needed. As shown in Table 1, when the power supply load rate α is less than 0.8, the BBU charges at the maximum current IMAX_BBU; when the power supply load rate α is greater than or equal to 0.8 but less than 0.9, the BBU charges at 0.5 times the maximum current; when the power supply load rate α is greater than or equal to 0.9 but less than 1, the BBU charges at 0.2 times the maximum current; and when the power supply load rate α is greater than or equal to 1, the BBU stops charging. Here, IMAX_BBU is the maximum charging current capability of the BBU module, determined by the chemical characteristics of the battery inside the BBU module and set by the battery manufacturer at the factory.

[0118] The MCU inside the BBU module obtains the maximum output current of the PSU and the power load rate α range from the charging current setting table in the MCS software via the I2C bus, and obtains the maximum charging current of the BBU, IMAX_BBU, from the metering chip. After the charging process starts, the MCU continuously performs AD sampling on the current sharing bus of the PSU to obtain the actual output current of the PSU, IREAL_PSU, and thus obtains the power load rate α.

[0119] Since the PSU output current changes in real time, the calculated power supply load rate α also changes in real time. Then, the MCU determines the charging current setpoint based on the position of the power supply load rate α in the table. When the power supply load rate α changes, causing a change in the charging current setpoint, the MCU calculates the duty cycle of the PWM pulse width modulation signal using PID control and adjusts the actual charging current by changing the duty cycle, ensuring the actual charging current follows the setpoint and achieving adaptive charging current control of the BBU. This adaptive charging current control method offers higher real-time performance compared to the MCS software sending charging current commands to the MCU via the I2C bus, effectively preventing excessive power consumption from causing PSU overcurrent or excessive heat dissipation.

[0120] Simultaneously, the MCU detects the Alert1 and Alert2 alarm signals from the PSU. These alarm signals indicate that the PSU has malfunctioned and is about to cut off its output. Upon detecting any PSU alarm, the MCU will stop charging to minimize the consumption of residual power stored in the PSU's internal capacitors and prioritize system power supply. At the end of the charging process, the CPU sends a low-level charging enable signal to the MCU inside the BBU module via the GPIO port, notifying the MCU to stop charging.

[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0122] This embodiment also provides a charging control device for a server backup power supply, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0123] Figure 6 This is a structural block diagram of a charging control device for a server backup power supply according to an embodiment of this application; as shown... Figure 6As shown, a backup power supply and a sampling device are deployed in the server. The sampling device is connected to the analog signal interface of the server's power supply. The analog signal interface is used to transmit analog signals that characterize the power supply load. The device is applied to the server and includes:

[0124] The acquisition module 602 is used to control the sampling device to acquire a target analog signal from the analog signal interface at a preset acquisition frequency during the process of the power supply supplying power to the server, wherein the preset acquisition frequency is a frequency greater than the target frequency threshold.

[0125] The first detection module 604 is used to detect the current power supply load parameters of the power supply based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status of the power supply.

[0126] The first control module 606 is used to control the power supply to perform a charging operation on the backup power supply that matches the current power load parameters, when the current power load parameters meet the target charging conditions of the power supply.

[0127] The second control module 608 is used to prevent the power supply from charging the backup power supply when the current power supply load parameters do not meet the target charging conditions of the power supply.

[0128] In an exemplary embodiment, the first detection module includes:

[0129] The first determining unit is configured to determine the actual power supply current that the power supply is currently supplying power to the server based on the target analog signal.

[0130] The first acquisition unit is used to acquire the maximum allowable output current of the power supply.

[0131] The second determining unit is used to determine the current power supply load rate of the power supply based on the actual power supply current and the maximum power supply current, wherein the power supply load parameter includes the current power supply load rate.

[0132] In one exemplary embodiment, the server deploys a central processing unit corresponding to the backup power supply, the central processing unit is connected to the backup power supply, the backup power supply deploys a microcontroller unit, the microcontroller unit deploys an analog-to-digital converter, the power supply includes multiple sub-power supplies, the multiple sub-power supplies are connected to a current sharing bus, the analog signal interface includes the current sharing bus, the sampling device includes the analog-to-digital converter, the sampling interface of the analog-to-digital converter is connected to the current sharing bus, the current sharing bus is used to transmit the largest sub-voltage signal among the sub-voltage signals of the multiple sub-power supplies during the process of the multiple sub-power supplies supplying power to the server, and the target analog signal includes the largest sub-voltage signal;

[0133] The first determining unit is further configured to: convert the maximum sub-voltage signal acquired by the sampling interface into the actual power supply current;

[0134] The first acquisition unit is further configured to: receive the maximum power supply current of the power supply issued by the central processing unit through the microcontroller unit, wherein the maximum power supply current is obtained by the system software in the central processing unit detecting the power supply;

[0135] The second determining unit is further configured to: determine the ratio of the actual power supply current to the maximum power supply current as the current power supply load rate of the power supply through the microcontroller unit.

[0136] In one exemplary embodiment, a microcontroller unit is deployed in the backup power supply, and the first control module includes:

[0137] The second acquisition unit is used to acquire, through the microcontroller unit, the target current value corresponding to the target power supply load rate range into which the current power supply load rate of the power supply falls from the power supply load rate range and current value with corresponding relationship, wherein the power supply load rate range and current value with corresponding relationship are pre-constructed by the microcontroller unit, and the power supply load parameter includes the current power supply load rate.

[0138] An adjustment unit is used to adjust the initial duty cycle of the initial pulse width modulation signal to a target duty cycle that matches the target current value through the microcontroller unit, thereby obtaining the target pulse width modulation signal;

[0139] A charging control unit is used to control the power supply to charge the backup power supply according to the target pulse width modulation signal.

[0140] In one exemplary embodiment, a detection chip is further deployed in the backup power supply, the detection chip being connected to the microcontroller unit, and the device further includes:

[0141] The second detection module is used to detect the charging status of the backup power supply through the detection chip after the power supply is controlled to charge the backup power supply according to the target pulse width modulation signal, and to send a charging abnormality signal to the microcontroller unit if an abnormality is detected in the charging status.

[0142] The disable module is used to disable the power supply from charging the backup power supply when the microcontroller receives the charging abnormality signal.

[0143] In one exemplary embodiment, before controlling the power supply to perform a charging operation on the backup power supply that matches the current power load parameters, the device further includes:

[0144] The third detection module is used to detect the power supply load rate threshold corresponding to the power supply.

[0145] The comparison module is used to compare the current power supply load rate of the power supply with the power supply load rate threshold, wherein the power supply load parameter includes the current power supply load rate;

[0146] The determination module is used to determine that the current power supply load rate meets the target charging condition when the current power supply load rate is less than the power supply load rate threshold.

[0147] In one exemplary embodiment, a microcontroller unit is deployed in the backup power supply, and the power supply includes multiple sub-power supplies, each of which is connected to the microcontroller unit via a status link. The determining module includes:

[0148] The detection unit is used to detect the status link through the microcontroller unit when the current power load rate is less than the power load rate threshold.

[0149] The third determining unit is used to determine that the current power supply load rate does not meet the target charging condition when a fault status signal is detected transmitted on the status link, and to prohibit the power supply from charging the backup power supply, wherein the fault status signal is used to indicate that the corresponding sub-power supply has failed.

[0150] The fourth determining unit is used to determine that the current power supply load rate meets the target charging condition when a fault status signal is detected not being transmitted on the status link.

[0151] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0152] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0153] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0154] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0155] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0156] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0157] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0158] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A charging control method for a server backup power supply, characterized in that, A backup power supply and a sampling device are deployed in the server. The sampling device is connected to the analog signal interface of the server's power supply. The analog signal interface is used to transmit analog signals that characterize the power supply load. The method is applied to the server, and the method includes: During the process of the power supply supplying power to the server, the sampling device is controlled to collect the target analog signal from the analog signal interface at a preset sampling frequency, wherein the preset sampling frequency is a frequency greater than the target frequency threshold; The current power supply load parameters of the power supply are detected based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status of the power supply. If the current power supply load parameters meet the target charging conditions of the power supply, control the power supply to perform a charging operation on the backup power supply that matches the current power supply load parameters; If the current power supply load parameters do not meet the target charging conditions of the power supply, the power supply is prohibited from charging the backup power supply. The step of detecting the current power supply load parameters of the power supply based on the target analog signal includes: determining the actual power supply current of the power supply currently supplying power to the server based on the target analog signal; obtaining the maximum allowable power supply current of the power supply; and determining the current power supply load rate of the power supply based on the actual power supply current and the maximum power supply current, wherein the power supply load parameters include the current power supply load rate. The server deploys a central processing unit (CPU) corresponding to the backup power supply, which is connected to the backup power supply. The backup power supply deploys a microcontroller unit (MCU), on which an analog-to-digital converter (ADC) is deployed. The power supply includes multiple sub-power supplies connected to a current-sharing bus. The analog signal interface includes the current-sharing bus. The sampling device includes the ADC, whose sampling interface is connected to the current-sharing bus. The current-sharing bus is used to transmit the largest sub-voltage signal among the sub-voltage signals of the multiple sub-power supplies during the power supply process. The target analog signal includes the largest sub-voltage signal. The process is based on the target analog signal... Determining the actual supply current of the power supply currently supplying power to the server includes: converting the maximum sub-voltage signal collected by the sampling interface into the actual supply current; obtaining the maximum allowable output current of the power supply includes: receiving the maximum supply current of the power supply from the central processing unit through the microcontroller unit, wherein the maximum supply current is obtained by the system software in the central processing unit detecting the power supply; determining the current power load rate of the power supply based on the actual supply current and the maximum supply current includes: determining the ratio of the actual supply current to the maximum supply current as the current power load rate of the power supply through the microcontroller unit.

2. The method according to claim 1, characterized in that, The backup power supply is equipped with a microcontroller unit, which controls the main power supply to perform a charging operation on the backup power supply that matches the current power load parameters, including: The microcontroller obtains the target current value corresponding to the target power supply load rate range into which the current power supply load rate of the power supply falls from the corresponding power supply load rate range and current value. The corresponding power supply load rate range and current value are pre-constructed by the microcontroller, and the power supply load parameter includes the current power supply load rate. The initial duty cycle of the initial pulse width modulation signal is adjusted to a target duty cycle that matches the target current value by the microcontroller unit, thereby obtaining the target pulse width modulation signal; The power supply is controlled to charge the backup power supply according to the target pulse width modulation signal.

3. The method according to claim 2, characterized in that, The backup power supply also includes a detection chip connected to the microcontroller unit. After controlling the power supply to charge the backup power supply according to the target pulse width modulation signal, the method further includes: The detection chip detects the charging status of the backup power supply during the charging process, and sends a charging abnormality signal to the microcontroller unit if an abnormality is detected in the charging status. Upon receiving the charging anomaly signal, the microcontroller unit prevents the power supply from charging the backup power supply.

4. The method according to claim 1, characterized in that, Before controlling the power supply to perform a charging operation on the backup power supply that matches the current power load parameters, the method further includes: Detect the power supply load rate threshold corresponding to the power supply; The current power supply load rate of the power supply is compared with the power supply load rate threshold, wherein the power supply load parameter includes the current power supply load rate; If the current power supply load rate is less than the power supply load rate threshold, it is determined that the current power supply load rate meets the target charging condition.

5. The method according to claim 4, characterized in that, The backup power supply is equipped with a microcontroller unit, and the power supply includes multiple sub-power supplies. Each sub-power supply is connected to the microcontroller unit via a state link. Determining that the current power load rate meets the target charging condition when the current power load rate is less than the power load rate threshold includes: If the current power load rate is less than the power load rate threshold, the state link is detected by the microcontroller unit; If a fault status signal is detected transmitted on the status link, it is determined that the current power supply load rate does not meet the target charging condition, and the power supply is prohibited from charging the backup power supply. The fault status signal is used to indicate that the corresponding sub-power supply has failed. If no fault status signal is detected on the status link, it is determined that the current power supply load rate meets the target charging condition.

6. A charging control device for a server backup power supply, characterized in that, The server is equipped with a backup power supply and a sampling device. The sampling device is connected to the analog signal interface of the server's power supply. The analog signal interface is used to transmit analog signals that characterize the power supply load. The device is applied to the server and includes: The acquisition module is used to control the sampling device to acquire a target analog signal from the analog signal interface at a preset acquisition frequency during the process of the power supply supplying power to the server, wherein the preset acquisition frequency is a frequency greater than the target frequency threshold; The first detection module is used to detect the current power supply load parameters of the power supply based on the target analog signal, wherein the power supply load parameters are used to indicate the power supply load status of the power supply. The first control module is used to control the power supply to perform a charging operation on the backup power supply that matches the current power load parameters, provided that the current power load parameters meet the target charging conditions of the power supply. The second control module is used to prevent the power supply from charging the backup power supply when the current power supply load parameters do not meet the target charging conditions of the power supply. The first detection module includes: a first determining unit, configured to determine the actual power supply current of the power supply currently supplying power to the server based on the target analog signal; a first acquiring unit, configured to acquire the maximum power supply current allowed to be output by the power supply; and a second determining unit, configured to determine the current power supply load rate of the power supply based on the actual power supply current and the maximum power supply current, wherein the power supply load parameter includes the current power supply load rate. The server deploys a central processing unit (CPU) corresponding to the backup power supply, which is connected to the backup power supply. The backup power supply deploys a microcontroller unit (MCU) with an analog-to-digital converter (ADC) on it. The power supply includes multiple sub-power supplies connected to a current-sharing bus. The analog signal interface includes the current-sharing bus. The sampling device includes the ADC, whose sampling interface is connected to the current-sharing bus. The current-sharing bus transmits the largest sub-voltage signal among the sub-voltage signals of the multiple sub-power supplies during the power supply process. The target analog signal includes the largest sub-voltage signal. The first determining unit is further configured to convert the largest sub-voltage signal acquired by the sampling interface into the actual power supply current. The first acquiring unit is further configured to receive the maximum power supply current of the power supply from the CPU via the MCU, wherein the maximum power supply current is obtained by the system software within the CPU detecting the power supply. The second determining unit is further configured to determine the ratio of the actual power supply current to the maximum power supply current as the current power load rate of the power supply via the MCU.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 5.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Battery module voltage control device, battery module and power supply system

    CN109196762A

  • Control method and device and server

    CN114567052A