Method of balancing a supply current and device for supplying power

Embodiments of the present disclosure relates to a method and device for balancing a supply current. In one embodiment, a current supply current for a load is detected. A first signal representing the current supply current is transmitted to a digital logic module. A second signal representing a maximum supply current and a third signal representing a minimum supply current are received from the digital logic module. A subsequent supply current for the load is determined based on the current supply current, the maximum supply current and the minimum supply current. By using the method and device according to the embodiments of the present disclosure, the supply currents of a plurality of power supply units for the load can be balanced a simple way with a low hardware cost.

RELATED APPLICATIONS

This application claim priority from Chinese Patent Application Number CN201710249895.6, filed on Apr. 17, 2017 at the State Intellectual Property Office, China, titled “METHOD FOR BALANCING SUPPLIED CURRENTS AND APPARATUS FOR SUPPLYING POWER” the contents of which is herein incorporated by reference in its entirety.

FIELD

Embodiments of the present disclosure relate to power supply technologies, and more specifically, to a method of balancing a supply current and a device for supplying power.

BACKGROUND

In an electronic device, such as a data storage device and the like, a plurality of power supply units are often used to supply power to the electronic device in need of massive power consumption. For a plurality of power supply units, there exists a situation that the supply currents of the power supply units are unbalanced. Therefore, the output power of a certain power supply unit may exceed its maximum rated output current, which can easily reduce the service life of the power supply unit. In a more severe situation, it may cause a power supply unit failure. Thus, the supply currents of the plurality of power supply units need to be balanced.

SUMMARY

In general, example embodiments of the present disclosure relates to a method of balancing a supply current and a device for supplying power.

According to a first aspect of the present disclosure, there is provided a method of balancing a supply current. The method comprises: detecting a current supply current for a load; transmitting, to a digital logic module, a first signal representing the current supply current; receiving, from the digital logic module, a second signal representing a maximum supply current and a third signal representing a minimum supply current; and determining a subsequent supply current for the load based on the current supply current, the maximum supply current and the minimum supply current.

In some embodiments, wherein determining a subsequent supply current for the load comprises: determining an average supply current based on the maximum supply current and the minimum supply current; and determining the subsequent supply current based on the average supply current and the current supply current.

In some embodiments, determining an average supply current comprises: computing a median of the maximum supply current and the minimum supply current as the average supply current.

In some embodiments, determining a subsequent supply current for the load comprises: determining a difference between the average supply current and the current supply current; and determining the subsequent supply current based on the difference.

In some embodiments, determining the subsequent supply current based on the difference comprises: in response to the difference being below a predetermined threshold, maintaining the current supply current as the subsequent supply current.

In some embodiments, determining the subsequent supply current based on the difference comprises: in response to the difference being above a predetermined threshold and the average supply current being above the current supply current, increasing the supply current by a first current amount as the subsequent supply current.

In some embodiments, determining the subsequent supply current based on the difference comprises: in response to the difference being above the predetermined threshold and the average supply current being below current the supply current, decreasing the supply current by a second current amount as the subsequent supply current.

In some embodiments, increasing the supply current by a first current amount comprises: increasing an output voltage for the load by a first voltage amount.

In some embodiments, decreasing the supply current by a second current amount comprises: decreasing an output voltage for the load by a second voltage amount.

According to a second aspect of the present disclosure, there is provided a device for supplying power, comprising: a power output circuit, a current sensing circuit and a microprocessor. The power output circuit is configured to output a current supply current to a load. The current sensing circuit is configured to sense the current supply current. The microprocessor configured to: receive, from the current sensing circuit, a first signal representing the supply current; transmit the first signal to a digital logic module; receive, from the digital logic module, a second signal representing a maximum supply current and a third signal representing a minimum supply current; and determine a subsequent supply current for the load based on the current supply current, the maximum supply current and the minimum supply current.

According to a third aspect of the present disclosure, there is provided a power source, comprising: a plurality of the above devices for supplying power and a digital logic circuit. The digital logic circuit is configured to receive a plurality of current supply currents, to determine, based on the plurality of current supply currents, the second signal representing the maximum supply current and the third signal representing the minimum supply current, and to transmit the second and third signals to the plurality of devices.

According to a fourth aspect of the present disclosure, there is provided a computer program product being tangibly stored on a non-transient computer-readable medium and comprising machine-executable instructions which, when executed, cause a machine to perform steps of the above method.

It should be understood that the Summary does not intend to identify key or essential features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easier to understand through the description below.

Throughout the drawings, same or similar reference signs refer to same or similar elements.

DETAILED DESCRIPTION OF EMBODIMENTS

The principles of the present disclosure are now described with reference to some example embodiments. It can be appreciated that those embodiments are described only for the purpose of illustrating and assisting those skilled in the art to understand and implement the present disclosure, but are not intended for limiting the scope of the present disclosure in any manner. The contents of the present disclosure described herein can be implemented by various ways except the ways described below.

As used herein, the term “includes” and its variants are to be read as open-ended terms which mean “includes, but is not limited to.” The term “based on” is to be read as “based at least in part on.” The term “one embodiment” is to be read as “at least one embodiment.” The term “a further embodiment” is to be read as “at least one further embodiment.” The terms “first,” “second,” “third” and the like are only for distinguishing the objects referred to without limiting the order of these objects.

The electronic device, such as the memory and the like, usually consumes a large amount of electricity. Therefore, a plurality of power supply units are often used to supply power to the electronic device, and output currents of the plurality of power supply units need to be balanced. A plurality of methods for balancing the supply currents exist in the prior art, but these methods are complicated and suffer from high costs.

For example, a traditional method of balancing currents includes using an analog current sharing bus connected to all power supply units, in which only the power supply unit having the maximum output current drives the voltage level of the current sharing bus, while the other power supply units correspondingly change their output currents based on the voltage of the current sharing bus. The method requires a very complicated analog circuit, which is unstable and susceptible to bus noises.

For example, another traditional method of balancing currents includes using a communication current sharing bus connected to all power supply units, such as Internal Integrated Circuit (I2C) bus, Universal Asynchronous Receiver/Transmitter (UART) bus or Controller Area Network (CAN) bus. These buses transmit current sharing information with each other and correspondingly adjust the currents. The method requires a very intricate firmware design and a microcontroller with a high performance. Besides, the method acts slowly in response to sudden load changes, as it needs a large amount of time for intercommunication and adjustment.

Embodiments of the present disclosure provide a method of balancing currents. The method uses a simple digital logic module, for example AND gate and OR gate, to balance supply currents of the plurality of power supply units without a big change to the power supply units.FIG. 1illustrates a simplified block diagram of a power supply system100in which some embodiments of the present disclosure can be implemented. The power supply system100comprises a plurality of power supply units (PSUs) collectively supplying power to a system load110, a digital logic module120and a system load110.FIG. 1illustrates three PSUs102,104and106. It can be understood that two or more PSUs can also be utilized. The PSU can be, for example, Uninterruptible Power Supply (UPS) or battery cell. From the perspective of a single power supply unit (for example the PSU102), the power supply unit supplies power to the system load110via the single power supply circuit, whereas from the perspective of the system load110, the system load110receives power from the plurality of power supply units via a plurality of power supply circuits. Correspondingly, from the perspective of the single power supply unit (for example the PSU102), the power supply unit transmits, to a digital logic module120, a signal representing a power supply state of the single power supply unit (such as the first signal described below), whereas from the perspective of the digital logic module120, the digital logic module receives, from the plurality of power supply units, the signals representing the power supply states of the respective power supply units (such as a plurality of first signals), respectively. The digital logic module120may include AND gates and OR gates and be coupled to all PSUs. The system load110is an electronic device, such as a memory and the like. Besides, although the plurality of power supply units and the digital logic module are demonstrated as separated means, they can also be integrated in a single power source.

FIG. 2illustrates a schematic diagram of an example of the PSU102inFIG. 1. It can be understood that the PSUs104and106have an essentially same or similar configuration as that of the PSU102. The PSU102includes a power output means1022, a resistor R1, a current sensing circuit1024and a microprocessor1026. The power output means1022supplies power via the resistor R1to the load at the port VOUT. The current sensing circuit1024detects the voltage across the resistor R1to determine the current flowing from the power output means1022and being provided to the load.

The microprocessor1026receives the voltage value across the resistor R1and converts it into a pulse width signal representing the voltage value. In this context, each pulse width signal corresponding to the supply current value can be referred to as “the first signal” for the sake of discussion. It will be appreciated that, depending on the number of PSUs, there are a corresponding number of first signals. The microprocessor1026outputs via a port Iminor Imaxa first signal to the digital logic module120. Although outputting the first signal to the digital processing module120via the microprocessor1026has been shown, there may be other signal transmission methods as well. For example, the voltage across the resistor R1is transmitted to the digital logic module120via other conversion means, or the current sensing circuit1024directly converts it into a pulse width modulation signal and directly transmits the pulse width modulation signal to the digital logic module120.

The digital logic module120receives the first signals I_1, I_2and I_3from the PSUs102,104and106, and then performs logic “AND” and “OR” operations on the first signals I_1, I_2and I_3, so as to determine the maximum supply current Imaxand the minimum supply current Imin. In this context, the signal representing the maximum supply current Imaxis referred to as “the second signal” and the signal representing the minimum supply current Iminis referred to as “the third signal.” Then, the digital logic module120transmits the second signal and the third signal to each PSU.

The PSU receives the second signal and the third signal via the ports Imaxand Imin, respectively. The microprocessor1026determines the average current based on the received second and third signals, and then controls (1022) the output current based on the average current and the current supply current. Although the port Imaxor Iminis shown to bidirectionally transmit signals in a distributed mode, the microprocessor1026can also have a separate output port, which is different from the port Imaxor Imin, to output the first signal to the digital logic module120.

FIG. 3illustrates a schematic diagram of waveforms of output voltages of components inFIG. 1. As an example, the operations of the digital logic module120are described below with reference toFIG. 3. InFIGS. 3, I_1, I_2and I_3represent the first signal from the PSUs102,104and106, respectively. The first signal is a pulse width modulation signal and its width represents the magnitude of the supply current. It can be appreciated that the supply current can be detected at the same time, in order to obtain more accurate supply current information. For example, the first signals in the same cycle can be obtained using the clock in an interruptive manner. The digital logic module120performs logic AND and OR operations on the first signals from the PSUs102,104and106in the same cycle (for example 1 ms is a cycle). Through the logic OR operation, the first signal having the minimum width (for example I_1) can be determined as Imin. Through the logic AND operation, the first signal having the maximum width (for example I_3) can be determined as Imax. The digital logic module120then transmits both the second signal Imaxand the third signal Iminto the PSUs102,104and106.

FIG. 4illustrates a flowchart of a method400for balancing currents according to embodiments of the present disclosure. For example, the method400can be implemented by the PSUs102,104and106in the power supply system ofFIG. 1. At402, the current sensing circuit1024detects the current supply current402. The current sensing circuit1024transmits the detected voltage signal representing the supply current Isto the microprocessor1026. The microprocessor1026then converts the voltage signal into a pulse width modulation first signal.

At404, the microprocessor1026transmits the first signal to the digital logic module120. As stated above, the digital logic module120performs logic operations on the first signals from the PSUs102,104and106to determine the second signal and the third signal representing Imaxand Imin.

At406, the microprocessor1026in each PSU receives the second signal and the third signal representing Imaxand Iminvia the port Imaxand Imin, respectively.

At408, the microprocessor1026computes the average supply current signal Iabased on Imaxand Imin, for example, the median of Imaxand Imincan be determined as the average supply current. It can be understood that the above determination method is only an example and the average supply current can also be determined by other methods, for example each Iscan be added up and the sum can be averaged to obtain the average supply current.

At410, the microprocessor1026computes the absolute value of the difference between the current supply current Isand the average supply current Ia, and determines whether the absolute value is below a predetermined threshold, such as 5% of the average supply current. It can be appreciated that 5% is only an example and other percentage values can also be used, for example 1%, 2% or the like.

In response to the absolute value of the difference being below the predetermined threshold, for example below 5% of the average supply current, at418, the output current of the power output means1022is maintained without adjusting the power output means1022. That is, the current supply current serves as the subsequent supply current for providing to the load.

At410, if the absolute value of the difference is below the average supply current by a certain percentage, at412, whether the current supply current is below the average supply current is determined. If the current supply current is below the average supply current, at414, the microprocessor1026increases the current supply current by a first current amount. For the power output means1022, the current can be increased in various ways. For example, the microprocessor1026can increase the output voltage of the power output means1022by a first voltage amount (such as 50 mV) by adjusting the pulse modulation signals to the power output means1022, such that the current supply current provided to the load is forced to be increased by a first current amount as the subsequent supply current.

If the current supply current is below the average supply current, at416, the microprocessor1026decreases the current supply current by a second current amount. For the power output means1022, the current can be decreased in various ways. For example, the microprocessor1026can decrease the output voltage of the power output means1022by a second voltage amount (such as 50 mV) by adjusting the pulse modulation signals to the power output means1022, such that the current supply current provided to the load is forced to be increased by a second current amount as the subsequent supply current.

It can be appreciated that the flowchart inFIG. 4is only an example and other methods can be used to control subsequent supply currents for the load. For example, the output voltage of the power output means1022is adjusted based on the current supply current and the average supply current. In an example, the output voltage adjusting amount is ΔV=1*(Ia−Is)/Ia(V). For example, if Is=Ia*95%, the microprocessor1026increases the output voltage of the power output means1022by 50 mV. If Is=Ia*102%, the microprocessor1026decreases the output voltage of the power output means1022by 20 mV.

It will be appreciated that while an embodiment of the method of the present disclosure has been described according to the acts in the sequence of the flowchart, the acts of the embodiments of the present disclosure are not necessarily performed in the order described above. There may be some other combinations and sequences of the blocks.

FIG. 5illustrates a schematic block diagram of an example of the power supply unit inFIG. 1. As shown, the power supply unit includes a power supply module502, a sensing module504and a processing module506. It can be understood that the PSU102, PSU104and PSU106have essentially the same or similar configuration as that of the power supply unit. The power supply module502is configured to supply power to the load, such as memory and the like. The sensing module504is configured to sense the current supply current. The processing module506is configured to transmit a pulse width modulation signal representing the current supply current to an external digital logic module, receives the pulse width modulation signals representing the maximum supply current and the minimum supply current from the digital logic module, and determines the subsequent supply current provided to the load based on the current supply current, the maximum supply current and the minimum supply current. Features related to operations/functions of each module have been described above and will not be repeated here.

It will be appreciated the each module of the power supply unit shown inFIG. 5can be implemented by hardware. For example, one or more of the above modules502,504and506can be implemented as hardware modules, including but not limited to: Integrated Circuit (IC) chip, Application-Specific Integrated Circuit (ASIC) chip, System-On-Chip (SOC), Field Programmable Gate Array (FPGA) and the like.

Alternatively or additionally, some or all of the modules of the power supply unit can be implemented by software. For example, in one embodiment, the power supply unit can be implemented as a computer program product tangibly included in a storage medium accessible by the device and executed by the controller in the device.

FIG. 6illustrates a schematic diagram of a device600for implementing embodiments of the present disclosure. The device600can be the system100described above. As shown, the device600includes a central process unit (CPU)601, which can act as the above described controller610. The CPU601can perform various suitable acts and processing based on the computer program instructions stored in the read-only memory (ROM)602or the computer program instructions loaded into the random-access memory (RAM)603from the storage unit608. Various kinds of programs and data required by the operations of the device600can also be stored in the RAM603. CPU601, ROM602and RAM603are connected to each other via a bus604. The input/output (I/O) interface605is also connected to the bus604.

A plurality of components in the device600are connected to the I/O interface605, including: an input unit606, such as a keyboard, a mouse and the like; an output unit607, such as various kinds of displays and loudspeakers and the like; a storage unit608, such as a disk and an optical disk and the like; and a communication unit609, such as a network card, a modem, a wireless communication transceiver and the like. The communication unit609allows the device600to exchange information/data with other devices via the computer network, such as the Internet, and/or various telecommunication networks.

The device600also includes a plurality of batteries or PSU (not shown). A plurality of power supply device, such as the batteries and PSUs102,104and16, can be used for supplying power to the CPU601, the ROM602, the RAM603, the input unit606, the storage unit608and the communication unit609.

Each procedure and processing described above, such as the method400, can also be performed by the processing unit601besides the microprocessor1026. For example, in some embodiments, the method400can be implemented as a computer software program tangibly included in the machine-readable medium, for example the storage unit608. In some embodiments, the computer program can be partially or fully loaded and/or mounted to the device600via the ROM602and/or the communication unit609. When the computer program is loaded to the RAM603and executed by the CPU601, acts in one or more blocks of the above described method400can be implemented.

Generally speaking, various embodiments of the present disclosure can be implemented by hardware or dedicated circuit, software, logic, or any combinations thereof. Some aspects can be implemented by hardware while other aspects can be implemented by firmware or software, in which the firmware or the software can be executed by the controller, the microprocessor or other computing devices. Although aspects of the present disclosure is illustrated and described as block diagram and flow chart or represented using some other graphs, it should be understood that the block, device, system, technology or method described herein can be implemented by hardware, software, firmware, dedicated circuit or logic, universal hardware, or controller or other computing devices, or any combinations thereof in a non-restrictive manner.

Moreover, although the operations are described in a particular order, it should not be construed that these operations are required to be performed according to the sequence shown or in succession, or all operations shown are required to be performed to achieve a desired outcome. In some cases, multi-tasking or parallel processing can be beneficial. Likewise, although details of several implementations are included in the above discussion, they should not be interpreted as any restrictions on the scope of the present disclosure, instead, the descriptions of the features are only directed to the particular embodiments. Some features described in separate embodiments can also be implemented in one single embodiment in combination. On the contrary, various features described in a single embodiment can also be implemented in several embodiments separately or in any suitable sub-combinations.

Although the present disclosure has been described with specific structure features and/or method acts, it should be understood that the present disclosure defined in the attached claims does not necessarily restrict to the above described particular features or acts. The above described particular features and acts are disclosed only as example forms for implementing the claims.