Power supply control method, apparatus and device, and computer-readable storage medium
Patent Information
- Application Number
- PCT/CN2025/129215
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-28
- Filing Date
- 2025-10-22
- Publication Date
- 2026-10-01
Smart Images

Figure CN2025129215_01102026_PF_FP_ABST
Abstract
Description
A power supply control method, apparatus, device, and computer-readable storage medium
[0001] This application claims priority to Chinese Patent Application No. 202510386283.6, filed on March 28, 2025, entitled "A power supply control method, apparatus, device and computer-readable storage medium", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This invention relates to the field of power supply design, and in particular to a power supply control method, apparatus, device, and computer-readable storage medium. Background Technology
[0003] The operating power of some electrical devices varies dynamically. The power consumption of electrical devices is not only related to their own operating power, but also has a more direct relationship with the power supply situation of the electrical devices. However, there is a lack of a mature power supply control method in related technologies, which leads to high power consumption of electrical devices and increases electricity costs.
[0004] Therefore, how to provide a solution to the above-mentioned technical problems is a problem that needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this invention is to provide a power supply control method, device, equipment, and computer-readable storage medium. This invention can determine the target load line value based on the real-time load current value, and then send the target load line value to the power supply module of the electrical device. The power supply module can then adjust the power supply voltage of the electrical device based on the target load line value through the load line. While ensuring the normal operation of the electrical device, the power conversion efficiency of the power supply module can be optimized by finely adjusting the load line value, thereby reducing the energy consumption of the electrical device and reducing the electricity cost.
[0006] To solve the above-mentioned technical problems, the present invention provides a power supply control method, comprising:
[0007] Obtain the real-time load current value of the electrical device;
[0008] Based on the first correspondence, the target load line value corresponding to the load current value is determined, wherein the first correspondence includes a preset correspondence between the load current value and the load line value;
[0009] The target load line value is sent to the power supply module of the electrical device so that the power supply module can adjust the power supply voltage of the electrical device based on the target load line value.
[0010] On the other hand, based on the first correspondence, the target load line value corresponding to the load current value is determined as follows:
[0011] Determine the current range in which the load current value is located from a set of multiple preset current value ranges;
[0012] Based on the first correspondence, determine the load line value corresponding to the current value range where the load current value is located, and use it as the target load line value.
[0013] The first correspondence includes the correspondence between the preset load current value range and the load line value.
[0014] On the other hand, determining the current range in which the load current value falls from a set of preset current value ranges includes:
[0015] Based on multiple preset current thresholds, the current value range of the load current value is determined by comparing it with the current thresholds.
[0016] On the other hand, based on multiple preset current thresholds, the current value range of the load current value is determined by comparing it with the current thresholds, including:
[0017] Determine whether the load current value is greater than the initial current threshold, where the initial current threshold is the median of the current thresholds in the current threshold sequence, which consists of the current thresholds arranged in ascending order.
[0018] If it is greater than, then the threshold switching order is determined to be the order in which the current threshold increases;
[0019] If it is not greater than, then the threshold switching order is determined to be the order in which the current threshold decreases;
[0020] Record the initial comparison result between the load current value and the initial current threshold, where the initial comparison result includes whether it is greater than or not greater than;
[0021] According to the threshold switching order, the next current threshold in the current threshold sequence is taken as the latest target current threshold, where the initial current threshold is taken as the first target current threshold.
[0022] Determine whether the load current value is greater than the target current threshold and use the determination result as a non-initial comparison result, where the non-initial comparison result includes greater than or not greater than.
[0023] Determine whether the latest non-initial comparison result is the opposite of the initial comparison result;
[0024] If not the opposite, then the following steps are performed: according to the threshold switching order, the next current threshold in the current threshold sequence is taken as the latest target current threshold.
[0025] Conversely, the current value range between the current target current threshold and the reference current threshold is taken as the current value range of the load current value. The reference current threshold is the next current threshold in the current threshold sequence based on the current target current threshold, in reverse order of the threshold switching sequence.
[0026] On the other hand, the power supply control method also includes:
[0027] In response to the first modification instruction, the first correspondence is updated and / or, in response to the second modification instruction, the current threshold sequence is updated.
[0028] On the other hand, after obtaining the real-time load current value of the electrical device, and before determining the target load line value corresponding to the load current value according to the first correspondence, the power supply control method further includes:
[0029] Determine whether the load current value is greater than a preset current warning value;
[0030] If the value is greater than the specified value, the control indicator will display a message indicating that the current value is too high.
[0031] On the other hand, there is the baseboard management controller used in servers;
[0032] The electrical components include the server's central processing unit, and the power supply module includes a voltage regulator.
[0033] To address the aforementioned technical problems, the present invention also provides a power supply control device, comprising:
[0034] The first acquisition module is used to acquire the real-time load current value of the electrical device;
[0035] The first determining module is used to determine the target load line value corresponding to the load current value according to the first correspondence relationship, wherein the first correspondence relationship includes a preset correspondence relationship between the load current value and the load line value;
[0036] The first transmitting module is used to transmit the target load line value to the power supply module of the electrical device, so that the power supply module can adjust the power supply voltage of the electrical device based on the target load line value through the load line.
[0037] To address the aforementioned technical problems, the present invention also provides a power supply control device, comprising:
[0038] Memory, used to store computer programs;
[0039] A processor for implementing the power supply control method as described above when executing the computer program.
[0040] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the power supply control method described above.
[0041] Beneficial effects: The present invention provides a power supply control method. Considering that (1) the power device can work normally within a certain power supply voltage range and (2) under the same load current value, the power supply module outputs different power supply voltages, which correspond to different power conversion efficiencies, the present invention can determine the target load line value based on the real-time load current value, and then send the target load line value to the power supply module of the power device, so that the power supply module can adjust the power supply voltage of the power device through the load line based on the target load line value. On the basis of ensuring the normal operation of the power device, the power conversion efficiency of the power supply module can be optimized by finely adjusting the load line value, thereby reducing the energy consumption of the power device and reducing the electricity cost.
[0042] The present invention also provides a power supply control device, equipment, and computer-readable storage medium, which have the same beneficial effects as the power supply control method described above. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention, the relevant technologies and the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 is a flowchart illustrating a power supply control method provided by the present invention;
[0045] Figure 2 is a waveform diagram of a voltage regulation process provided by the present invention;
[0046] Figure 3 is a waveform diagram of another voltage regulation process provided by the present invention;
[0047] Figure 4 is a flowchart illustrating another power supply control method provided by the present invention;
[0048] Figure 5 is a structural schematic diagram of a power supply control device provided by the present invention;
[0049] Figure 6 is a structural schematic diagram of a power supply control device provided by the present invention;
[0050] Figure 7 is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. Detailed Implementation
[0051] The core of this invention is to provide a power supply control method, device, equipment, and computer-readable storage medium. This invention can determine a target load line value based on real-time load current values, and then send the target load line value to the power supply module of the electrical device. The power supply module can then adjust the power supply voltage of the electrical device based on the target load line value. While ensuring the normal operation of the electrical device, this fine-tuning of the load line value optimizes the power conversion efficiency of the power supply module, thereby reducing the energy consumption of the electrical device and lowering electricity costs. To make the objectives, technical solutions, and advantages of the embodiments of this invention clearer, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0052] Please refer to Figure 1, which is a flowchart illustrating a power supply control method provided by the present invention. The power supply control method includes:
[0053] S101: Obtain the real-time load current value of the electrical device;
[0054] Specifically, considering the technical problems mentioned above, and also considering that (1) the electrical device can work normally within a certain power supply voltage range and (2) under the same load current value, the power supply module outputs different power supply voltages, which correspond to different energy conversion efficiencies; that is to say, under the same load current value, the selection of the power supply voltage can affect the energy conversion efficiency of the power supply module, thereby affecting the energy consumption of the electrical device. As for the power supply module, the adjustment of the output voltage (i.e., the power supply voltage) can actually be adjusted by the load line method. The adjustment method is Vout = Vo - Iout * RLL, where Iout is the load current value, Vo is the initial output voltage, RLL is the set load line value, and Vout is the adjusted output voltage. Please refer to Figure 2. Figure 2 is a waveform diagram of a voltage regulation process provided by the present invention. Fixed voltage mode (fixed) In load line mode, the output voltage can be adjusted without changing the load current value. However, in load line mode, the output voltage can be adjusted based on the load line value and the changing load current value. Figure 2 shows the voltage regulation waveform using a "globally unified load line value". That is, regardless of the load current value, the same load line value is used to adjust the output voltage. However, theoretically, the "output voltage value that maximizes the power conversion efficiency of the power supply module" corresponds to different load current values. The relationship between the load current value and the "output voltage value that maximizes the power conversion efficiency of the power supply module" is not linear. In other words, if the output voltage is adjusted using the load line shown in Figure 2, the power conversion efficiency of the power supply module cannot be maximized. For example, within a certain load current value range in Figure 2, the output voltage calculated according to the load line in the figure is not the output voltage that maximizes the power conversion efficiency of the power supply module at that time.
[0055] Specifically, as shown in Figure 2, when adjusting the output voltage based on the selected load line value, it is necessary to ensure that the output voltage is between the upper and lower voltage limits of the electrical device.
[0056] The load line value can be calculated using RLL = (Vout2 - Vout1) / (Iout2 - Iout1), where Iout2 and Vout2 correspond to the current and voltage values at a sampling point at a later time, and Iout1 and Vout1 correspond to the current and voltage values at a sampling point at an earlier time. The current and voltage values can be measured during testing. By selecting the voltage and current values corresponding to two sampling points, the load line value for each current value range can be obtained. The optimal load line value for each current value range can be selected through laboratory testing.
[0057] Specifically, based on the above theories and considerations, this embodiment of the invention aims to determine different load line values for different load current values, so that the power supply module can adjust the output voltage based on the corresponding load line value under different load current values, so that under various complex current values, it can output the "output voltage value that maximizes the power supply module's energy conversion efficiency", thereby maximizing the power supply module's energy conversion efficiency, which is equivalent to reducing the energy consumption of the electrical device; therefore, in this step, the real-time load current value of the electrical device can be obtained first, so as to use it as the data set basis for subsequent steps.
[0058] There are various ways to obtain the real-time load current value of the electrical device. For example, it can communicate with the power supply module, request the current output current value from the power supply module and use it as the real-time load current value. This embodiment of the invention does not limit the specific methods.
[0059] S102: Determine the target load line value corresponding to the load current value according to the first correspondence relationship, wherein the first correspondence relationship includes the preset correspondence relationship between the load current value and the load line value;
[0060] Specifically, in order to obtain the load line value that "maximizes the power conversion efficiency of the power supply module" under various load current values, relevant tests can be conducted in advance by the staff to obtain the load line value that "maximizes the power conversion efficiency of the power supply module" under various load current values and form a first correspondence. Then, in this step, the target load line value corresponding to the load current value can be determined according to the first correspondence, so as to efficiently and accurately obtain the target load line value corresponding to the load current value and use it as the data basis for subsequent steps.
[0061] S103: Send the target load line value to the power supply module of the electrical device so that the power supply module can adjust the power supply voltage of the electrical device based on the target load line value through the load line.
[0062] Specifically, after determining the target load line value, the target load line value can be sent to the power supply module of the electrical device. The power supply module can then adjust the power supply voltage of the electrical device based on the target load line value through the load line. In other words, the power supply voltage corresponding to the real-time load current value can be determined using the formula of the load line method mentioned above. This allows the power supply module to operate at the highest energy conversion efficiency for the real-time load current value, thereby reducing system energy consumption.
[0063] The power supply module can be configured with an initial load line value so that the output voltage can be adjusted according to the change of load current value at the initial moment. After the load line value is configured and modified, the output voltage can be adjusted according to the change of load current value based on the latest load line value.
[0064] In addition, considering that the power supply module may experience performance changes due to factors such as usage time and ambient temperature, the first correspondence needs to be updated and calibrated periodically to ensure that the power supply module can maintain high power conversion efficiency for a long time. Therefore, this power supply control method can count the cumulative working time of the power supply module and determine whether the cumulative working time of the power supply module has reached the preset time limit for adjusting the first correspondence. If it has, the method can control the prompt to indicate that the first correspondence needs to be redefined so as to update the first correspondence in a timely manner. It can also monitor whether the specified environmental parameters of the power supply module (such as the ambient temperature value) exceed the preset parameter range. If they exceed the range, the method can control the prompt to indicate that the first correspondence needs to be redefined so as to update the first correspondence in a timely manner.
[0065] This invention provides a power supply control method. Considering that (1) the power device can work normally within a certain power supply voltage range and (2) under the same load current value, the power supply module outputs different power supply voltages, which correspond to different power conversion efficiencies, this invention can determine the target load line value based on the real-time load current value, and then send the target load line value to the power supply module of the power device, so that the power supply module can adjust the power supply voltage of the power device through the load line based on the target load line value. On the basis of ensuring the normal operation of the power device, the power conversion efficiency of the power supply module can be optimized by finely adjusting the load line value, thereby reducing the energy consumption of the power device and reducing the electricity cost.
[0066] Based on the above embodiments:
[0067] As an optional embodiment, determining the target load line value corresponding to the load current value based on the first correspondence includes:
[0068] Determine the current range in which the load current value is located from a set of multiple preset current value ranges;
[0069] Based on the first correspondence, determine the load line value corresponding to the current value range where the load current value is located, and use it as the target load line value.
[0070] The first correspondence includes the correspondence between the preset load current value range and the load line value.
[0071] Specifically, to better illustrate the embodiments of the present invention, please refer to Figures 3 and 4. Figure 3 is a waveform diagram of another voltage regulation process provided by the present invention, and Figure 4 is a flowchart of another power supply control method provided by the present invention. Figure 3 shows that different load line values are used for different current value ranges. The current value range is defined as zero to the first current threshold, the current value range is defined as the range from the first current threshold to the second current threshold, and the current value range is defined as "greater than the second current threshold". The three current value ranges correspond to the first to the third load line values, respectively. Figure 4 shows that in the pre-preparation stage, the load line values of each current value range need to be tested, and then the initial load line value is selected and burned into the power supply module. The "first correspondence relationship determined according to the load line values of each current value range" is stored in the processor. When the power supply module is working, the processor can communicate with the power supply module and obtain the load current value. According to the first correspondence relationship, the target load line value corresponding to the load current value is determined (from the first to the Nth load line value) and configured in the power supply module. The power supply module can then adjust the output voltage according to the load line value.
[0072] Specifically, considering that determining the corresponding load line value for each load current point requires a huge amount of work, and the ratio of the workload to the actual energy-saving benefits is high, while in reality, within a certain current range, the corresponding load line value can basically enable the power supply module to output the "output voltage that leads to the highest power conversion efficiency of the power supply module", the first correspondence in this embodiment can be the correspondence between the preset load current range and the load line value. Accordingly, after obtaining the real-time load current value, the current range in which the load current value is located can be determined from multiple preset current ranges. Then, according to the first correspondence, the load line value corresponding to the current range in which the load current value is located can be determined and used as the target load line value. This not only efficiently obtains the power conversion efficiency of the power supply module by determining the load line value, but also reduces the workload of the preliminary preparation work, reduces labor costs, and improves work efficiency.
[0073] The specific number of current value intervals and the range of current values involved in the current value intervals can be determined by testing based on the actual needs of the electrical device and the characteristics of the power supply module. This embodiment of the invention does not limit these parameters.
[0074] As an optional embodiment, determining the current value range in which the load current value falls from a preset plurality of current value ranges includes:
[0075] Based on multiple preset current thresholds, the current value range of the load current value is determined by comparing it with the current thresholds.
[0076] Specifically, considering that each current value range includes boundary values at both ends, by using the boundary values of each current value range as current thresholds and comparing the load current value with each current threshold, the current value range in which the load current value is located can be determined efficiently and accurately. Therefore, in this embodiment of the invention, the current value range in which the load current value is located can be determined by comparing it with multiple preset current thresholds.
[0077] Of course, in addition to this specific method, other methods can be used to determine the current value range of the load current value from multiple preset current value ranges. This embodiment of the invention does not limit the specific methods.
[0078] As an optional embodiment, the current value range of the load current value is determined by comparing it with a plurality of preset current thresholds, including:
[0079] Determine whether the load current value is greater than the initial current threshold, where the initial current threshold is the median of the current thresholds in the current threshold sequence, which consists of the current thresholds arranged in ascending order.
[0080] If it is greater than, then the threshold switching order is determined to be the order in which the current threshold increases;
[0081] If it is not greater than, then the threshold switching order is determined to be the order in which the current threshold decreases;
[0082] Record the initial comparison result between the load current value and the initial current threshold, where the initial comparison result includes whether it is greater than or not greater than;
[0083] According to the threshold switching order, the next current threshold in the current threshold sequence is taken as the latest target current threshold, where the initial current threshold is taken as the first target current threshold.
[0084] Determine whether the load current value is greater than the target current threshold and use the determination result as a non-initial comparison result, where the non-initial comparison result includes greater than or not greater than.
[0085] Determine whether the latest non-initial comparison result is the opposite of the initial comparison result;
[0086] If not the opposite, then the following steps are performed: according to the threshold switching order, the next current threshold in the current threshold sequence is taken as the latest target current threshold.
[0087] Conversely, the current value range between the current target current threshold and the reference current threshold is taken as the current value range of the load current value. The reference current threshold is the next current threshold in the current threshold sequence based on the current target current threshold, in reverse order of the threshold switching sequence.
[0088] Specifically, considering that the more current value ranges there are, the more current thresholds exist, without an efficient current threshold comparison method, it may be necessary to compare most of the current thresholds before determining the current value range in which the load current value falls, which may be inefficient. However, considering that sorting the current thresholds by their numerical values and starting from the median threshold, traversing towards either increasing or decreasing, can effectively reduce the number of current thresholds to compare when searching for a current value range, this embodiment of the invention can use "current thresholds arranged in ascending order" as the current threshold sequence, and the median of each current threshold in the current threshold sequence as the initial current threshold. Then, when searching for the current value range in which the load current value falls, it can first determine whether the load current value is greater than the initial current threshold (and record this initial comparison result). If it is greater, then the threshold switching order can be determined to be the order of increasing current thresholds (that is, performing current threshold switching from the increasing direction in the current threshold sequence). If the threshold is not greater than the target current threshold, the threshold switching order is determined to be the order of decreasing current thresholds (that is, the current thresholds are compared one by one in the current threshold sequence from the decreasing direction). Then, according to the threshold switching order, the next current threshold after the current target current threshold in the current threshold sequence is taken as the latest target current threshold, and it is determined whether the load current value is greater than the target current threshold. The result of the determination is taken as the non-initial comparison result. Then, it is determined whether the latest non-initial comparison result is opposite to the initial comparison result. If they are opposite, the comparison can be ended, and the current value interval between the current target current threshold and the reference current threshold (the next current threshold in the current threshold sequence with the current target current threshold as the reference) is taken as the current value interval of the load current value. If they are not opposite, the execution step "According to the threshold switching order, the next current threshold after the current target current threshold in the current threshold sequence is taken as the latest target current threshold" can be returned to continue to find the current value interval.
[0089] In this embodiment of the invention, since the search can be performed sequentially from the median of the current threshold sequence towards one end of the current threshold sequence, the efficiency of determining the current value range can be effectively improved, thereby improving work efficiency.
[0090] Of course, besides this specific solution, there are many other solutions for "determining the current value range of the load current value by comparing it with multiple preset current thresholds", and this embodiment of the invention does not limit them here.
[0091] As an optional embodiment, the power supply control method further includes:
[0092] In response to the first modification instruction, the first correspondence is updated and / or, in response to the second modification instruction, the current threshold sequence is updated.
[0093] Specifically, considering that staff may need to modify the first correspondence or current value range, this embodiment of the invention can provide an interface for modifying the first correspondence and the "current threshold sequence that determines the current value range". That is, it can update the first correspondence in response to the first modification instruction and / or update the current threshold sequence in response to the second modification instruction, so that staff can conveniently and efficiently modify and update the first correspondence and the "current threshold sequence that determines the current value range".
[0094] As an optional embodiment, after obtaining the real-time load current value of the electrical device and before determining the target load line value corresponding to the load current value according to the first correspondence, the power supply control method further includes:
[0095] Determine whether the load current value exceeds the preset current warning value;
[0096] If the value is greater than the specified value, the control indicator will display a message indicating that the current value is too high.
[0097] Specifically, considering that excessively high load current may cause danger, the processor in the power supply control method of this embodiment can assist in monitoring and warning of the load current value. That is, it can issue a warning before the load current value reaches a dangerous value. Therefore, in this embodiment, it can determine whether the load current value is greater than a preset current warning value. If it is greater, it can control the indicator to indicate that the current value is too high so that relevant personnel can discover and deal with it in time to avoid a larger accident.
[0098] It can also set a danger value and issue an alarm when the load current value exceeds the danger value. The danger value can be greater than the current warning value.
[0099] The prompter can be of various types, such as a voice announcer or a display, and this embodiment of the invention does not limit it.
[0100] As an optional embodiment, it is applied to a baseboard management controller for a server;
[0101] The electrical components include the server's central processing unit, and the power supply module includes a voltage regulator.
[0102] Specifically, considering that the central processing unit of a server is a typical power-consuming device whose load current value changes dynamically, and that its power supply module can adjust the output voltage through the load line, the power-consuming device in this embodiment of the invention includes the central processing unit of the server, and the power supply module includes a voltage regulator (VR). Correspondingly, considering that the baseboard management controller in the server can obtain the real-time load current value through communication with the voltage regulator and configure and change the load line value in the voltage regulator, the power supply control method in this embodiment of the invention can be applied to the baseboard management controller of the server.
[0103] The communication method between the substrate management controller and the voltage regulator can be various, such as I2C (Inter-Integrated Circuit), etc., and the embodiments of the present invention are not limited thereto.
[0104] Of course, besides this specific example, the electrical device and the power supply module can be of many other types, and the embodiments of the present invention are not limited here.
[0105] Please refer to Figure 5, which is a structural schematic diagram of a power supply control device provided by the present invention. The power supply control device includes:
[0106] The first acquisition module 51 is used to acquire the real-time load current value of the electrical device;
[0107] The first determining module 52 is used to determine the target load line value corresponding to the load current value according to the first correspondence relationship, wherein the first correspondence relationship includes a preset correspondence relationship between the load current value and the load line value;
[0108] The first transmitting module 53 is used to transmit the target load line value to the power supply module of the electrical device, so that the power supply module can adjust the power supply voltage of the electrical device based on the target load line value through the load line.
[0109] Based on the above embodiments:
[0110] As an optional embodiment, the first determining module 52 includes:
[0111] The first determining submodule is used to determine the current value range in which the load current value is located from a set of multiple preset current value ranges.
[0112] The second determining submodule is used to determine the load line value corresponding to the current value range where the load current value is located, based on the first correspondence relationship, and use it as the target load line value.
[0113] The first correspondence includes the correspondence between the preset load current value range and the load line value.
[0114] As an optional embodiment, the first determining submodule is specifically used for:
[0115] Based on multiple preset current thresholds, the current value range of the load current value is determined by comparing it with the current thresholds.
[0116] As an optional embodiment, the second determining submodule includes:
[0117] The first judgment module is used to determine whether the load current value is greater than the initial current threshold. The initial current threshold is the median of each current threshold in the current threshold sequence. The current threshold sequence is: each current threshold arranged in ascending order. If it is greater than the initial current threshold, the third determination submodule is triggered. If it is not greater than the initial current threshold, the fourth determination submodule is triggered.
[0118] The third determining submodule is used to determine the threshold switching order as the order in which the current threshold increases;
[0119] The fourth determining submodule is used to determine the threshold switching order as the order in which the current threshold decreases;
[0120] The first recording module is used to record the initial comparison result between the load current value and the initial current threshold, wherein the initial comparison result includes greater than or not greater than;
[0121] The fifth determination submodule is used to determine the next current threshold in the current threshold sequence as the latest target current threshold according to the threshold switching order, wherein the initial current threshold is used as the first target current threshold.
[0122] Determine whether the load current value is greater than the target current threshold and use the determination result as a non-initial comparison result, where the non-initial comparison result includes greater than or not greater than.
[0123] The second judgment module is used to determine whether the latest non-initial comparison result is opposite to the initial comparison result. If it is not opposite, the fifth determination submodule is triggered; if it is opposite, the sixth determination submodule is triggered.
[0124] The sixth determination submodule is used to take the current value range between the current target current threshold and the reference current threshold as the current value range of the load current value. The reference current threshold is the next current threshold in the current threshold sequence based on the current target current threshold, in reverse order of the threshold switching order.
[0125] As an optional embodiment, the power supply control device further includes:
[0126] The modification module is used to update the first correspondence in response to the first modification instruction and / or update the current threshold sequence in response to the second modification instruction.
[0127] As an optional embodiment, the power supply control device further includes:
[0128] The third judgment module is used to determine whether the load current value is greater than the preset current warning value. If it is greater, the prompt module is triggered.
[0129] The prompt module is used to control the prompt device to indicate that the current value is too high.
[0130] For a description of the power supply control device provided in the embodiments of the present invention, please refer to the foregoing embodiments of the power supply control method; the embodiments of the present invention will not be repeated here.
[0131] Please refer to Figure 6, which is a structural schematic diagram of a power supply control device provided by the present invention. The power supply control device includes:
[0132] Memory 61 is used to store computer programs;
[0133] The processor 62 is used to implement the steps of the power supply control method as described in the foregoing embodiments when executing a computer program.
[0134] For a description of the power supply control device provided in the embodiments of the present invention, please refer to the foregoing embodiments of the power supply control method; the embodiments of the present invention will not be repeated here.
[0135] Please refer to Figure 7, which is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. The computer-readable storage medium 71 stores a computer program 72. When the computer program 72 is executed by the processor, it implements the steps of the power supply control method as described in the foregoing embodiments.
[0136] For a description of the computer-readable storage medium provided in the embodiments of the present invention, please refer to the foregoing embodiments of the power supply control method; the embodiments of the present invention will not be repeated here.
[0137] The present invention also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the power supply control method as described in the foregoing embodiments.
[0138] For a description of the computer program product provided in the embodiments of the present invention, please refer to the foregoing embodiments of the power supply control method; the embodiments of the present invention will not be repeated here.
[0139] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatuses disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section. It should also be noted that in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. In the absence of further clarification, an element defined by the phrase "comprising a…" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0140] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A power supply control method, characterized in that, include: Obtain the real-time load current value of the electrical device; Based on the first correspondence, the target load line value corresponding to the load current value is determined, wherein the first correspondence includes a preset correspondence between the load current value and the load line value; The target load line value is sent to the power supply module of the electrical device so that the power supply module can adjust the power supply voltage of the electrical device based on the target load line value.
2. The power supply control method according to claim 1, characterized in that, Based on the first correspondence, the target load line value corresponding to the load current value is determined as follows: Determine the current range in which the load current value is located from a set of multiple preset current value ranges; Based on the first correspondence, determine the load line value corresponding to the current value range where the load current value is located, and use it as the target load line value. The first correspondence includes the correspondence between the preset load current value range and the load line value.
3. The power supply control method according to claim 2, characterized in that, From a set of preset current value ranges, the current value range in which the load current value falls is determined, including: Based on multiple preset current thresholds, the current value range of the load current value is determined by comparing it with the current thresholds.
4. The power supply control method according to claim 3, characterized in that, Based on multiple preset current thresholds, the current value range of the load current value is determined by comparing it with the current thresholds, including: Determine whether the load current value is greater than the initial current threshold, where the initial current threshold is the median of the current thresholds in the current threshold sequence, which consists of the current thresholds arranged in ascending order. If it is greater than, then the threshold switching order is determined to be the order in which the current threshold increases; If it is not greater than, then the threshold switching order is determined to be the order in which the current threshold decreases; Record the initial comparison result between the load current value and the initial current threshold, where the initial comparison result includes whether it is greater than or not greater than; According to the threshold switching order, the next current threshold in the current threshold sequence is taken as the latest target current threshold, where the initial current threshold is taken as the first target current threshold. Determine whether the load current value is greater than the target current threshold and use the determination result as a non-initial comparison result, where the non-initial comparison result includes greater than or not greater than. Determine whether the latest non-initial comparison result is the opposite of the initial comparison result; If not the opposite, then the following steps are performed: according to the threshold switching order, the next current threshold in the current threshold sequence is taken as the latest target current threshold. Conversely, the current value range between the current target current threshold and the reference current threshold is taken as the current value range of the load current value. The reference current threshold is the next current threshold in the current threshold sequence based on the current target current threshold, in reverse order of the threshold switching sequence.
5. The power supply control method according to claim 4, characterized in that, The power supply control method further includes: In response to the first modification instruction, the first correspondence is updated and / or, in response to the second modification instruction, the current threshold sequence is updated.
6. The power supply control method according to claim 1, characterized in that, After obtaining the real-time load current value of the electrical device, and before determining the target load line value corresponding to the load current value according to the first correspondence, the power supply control method further includes: Determine whether the load current value is greater than a preset current warning value; If the value is greater than the specified value, the control indicator will display a message indicating that the current value is too high.
7. The power supply control method according to any one of claims 1 to 6, characterized in that, Baseboard management controller used in servers; The electrical components include the server's central processing unit, and the power supply module includes a voltage regulator.
8. A power supply control device, characterized in that, include: The first acquisition module is used to acquire the real-time load current value of the electrical device; The first determining module is used to determine the target load line value corresponding to the load current value according to the first correspondence relationship, wherein the first correspondence relationship includes a preset correspondence relationship between the load current value and the load line value; The first transmitting module is used to transmit the target load line value to the power supply module of the electrical device, so that the power supply module can adjust the power supply voltage of the electrical device based on the target load line value through the load line.
9. A power supply control device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the power supply control method as described in 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 that, when executed by a processor, implements the steps of the power supply control method as described in any one of claims 1 to 7.