1. Technical Field
Embodiments of the present disclosure relate to power management technology, and particularly to an electronic device and method for managing current of the electronic device.
2. Description of Related Art
Servers include a plurality of hardware devices, such as processors, hard disks, and electronic fans. The momentary current of each kind of the hardware devices may reach a peak value when the server is powered on, the normal current of each type of the hardware devices is reduced rapidly when the server is under a normal operation condition. For example, the normal current of an electronic fan is a fifth of the peak value of the momentary current of the electronic fan. Thus, if a total current supplied by a server is less than a sum of the peak value of the momentary current of each kind of hardware devices, the server cannot be turned on successfully. To resolve this problem, a high power supply should be installed in the server. However, a cost of the high power supply is expensive. Therefore, a more efficient method for managing the current of an electronic device is desired.
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The BMC 12 includes a current management system 10. The current management system 10 may be used to control each electronic fan 14 rotating with a low current and a low speed to reduce a peak value of the current of the electronic device 11 when the electronic device 11 is powered on. For example, as shown in
In block S301, an output port of each control signal of the BMC 12 is connected to the input port of the PWM signal of each electronic fan 14.
In block S302, the initialization module 200 initializes each control signal of the BMC 12 of the electronic device 11 to be a low level before the electronic device 11 is powered on. In one embodiment, the initialization module 200 initializes each control signal of the BMC 12 to be the low level by assigning a value “0” to the data register of the GPIO signal of the BMC 12.
In block S303, the first detection module 210 determines if a power on signal of the electronic device 11 is received. If the power on signal of the electronic device 11 is received, the procedure goes to block S304. If the power on signal of the electronic device 11 is not received, block S303 is repeated.
In block S304, the first processing module 220 maintains each control signal under a low-level status for a specified time, and controls each electronic fan 14 rotating with a low current (e.g., 0.2 A) and a low speed to reduce a peak value of the current in the electronic device 11. In one embodiment, the specified time is greater than five seconds and less than ten seconds.
In block S305, the first processing module 220 sets each control signal of the
BMC 12 to be a high level when the specified time elapses, and rotates each electronic fan 14 with a normal current (e.g., 1.5 A) and a normal speed. In one embodiment, the first processing module 220 sets each control signal of the BMC 12 to be the high level by assigning the value “1” to the data register of the GPIO signal of the BMC 12.
In block 5306, the second detection module 230 determines if a power off signal of the electronic device 11 is received. If the power off signal of the electronic device 11 is received, the procedure goes to block S307. If the power off signal of the electronic device 11 is not received, block S306 is repeated.
In block S307, the second processing module 240 sets each control signal of the BMC 12 to be the low level. As mentioned above, the second processing module 240 sets each control signal of the BMC 12 to be the low level by assigning the value “0” to the data register of the GPIO signal of the BMC 12.
As mentioned above, because the current of each of the five electronic fans 14 is reduced to 0.2 A when the electronic device 11 is powered on, and the sum of the peak value of the current of the storage device 15, the processor 16, and the other hardware devices 17 of the electronic device 11 keeps 14A. Thus, the total current needed by the electronic device 11 is reduced to (0.2*5+14)=15 A, and the electronic device 11 is turned on successfully.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 201010298251.4 | Sep 2010 | CN | national |