1. Technical Field
Embodiments of the present disclosure relate to power management of electronic devices, and particularly to an apparatus and method for automatically booting up an electronic device.
2. Description of Related Art
When a battery of an electronic device, such as a smart phone or a personal digital assistant, is used up, another battery may be installed to replace the previously used battery and supply power for the electronic device. When another battery is installed, the electronic device needs to be booted up by operating a power key of the electronic device, which is somehow inconvenient. In some solutions, when a battery is detected to be installed or reinstalled, the electronic device may be automatically booted up. However, in some situations, if the installed or reinstalled battery is the same one as the previously used battery, the user may not want to immediately boot up the electronic device, for instance, when the user just wants to pull out the battery to check some information (e.g., current or voltage information) or clean dust from the electronic device after the electronic device is powered off. In contrast, when another battery for example a fully charged battery is installed to replace the previously used up battery, most of people would like to immediately boot up the electronic device. Therefore, an improved solution for automatically booting the electronic device is desired.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one”.
The driving unit 150 detects a unique identification (ID) of any battery when the battery is installed or reinstalled into the battery compartment 130, and determines whether to automatically boot up the electronic device 100 according to the detected unique ID. In the embodiment, the unique ID may be a serial number(S/N) of the battery.
Referring to
The detection module 153 detects the unique ID of a battery when the battery is installed or reinstalled into the battery compartment 130. In one embodiment, the detection module 153 may be activated when a current output by the battery is detected by the driving unit 150. For example, the driving unit 150 may generate a triggering signal when the current is detected, and then activate the detection module 153 using the triggering signal.
The comparison module 155 compares the detected unique ID with a previous ID stored in the storage module 154, and generates a control signal when the detected unique ID is different from the previous ID. Additionally, the storage module 154 obtains the detected unique ID from the comparison module 155, and replaces the previous ID with the obtained unique ID. In the embodiment, the previous ID is initialized to be “null” at the first time when the battery compartment 130 receives the battery, and the detected unique ID is determined to be different from the previous ID. The previous ID is defined to be a unique ID of a battery that is previously used by the electronic device 100. It is indicated that the battery previously used by the electronic device 100 is replaced by another battery having the detected unique ID, when the detected unique ID is different from the previous ID.
The implementation module 156 boots up the electronic device 100 according to the control signal. Further, if the detected unique ID is the same as the previous ID, the implementation module 156 may boot up the electronic device 100 when a user operates a power key of the electronic device 100. In some particular conditions, the user may immediately remove the battery for other operations when the battery is installed or reinstalled. In other embodiment, the electronic device 100 may be booted up after a predetermined time period when the control signal is generated in order to avoid misoperations under the particular conditions.
Referring to
In step S202, when a battery is installed or reinstalled into the battery compartment 130, the detection module 153 detects a unique ID of the battery. In the embodiment, the detection module 153 may be activated when a current output by the battery is detected by the driving unit 150.
In step S204, the comparison module 155 compares the detected unique ID with a previous ID stored in the storage module 154.
In step S206, the comparison module 155 generates a control signal when the detected unique ID is different from the previous ID.
In step S208, the implementation module 156 boots up the electronic device 100 according to the control signal.
In step S210, the storage module 154 obtains the detected unique ID from the comparison module 155, and replaces the previous ID with the obtained unique ID. In the embodiment, the previous ID is initialized to “null” at the first time when the battery compartment 130 receives the battery, and the detected unique ID is determined to be different from the previous ID. The previous ID is defined to be a unique ID of a battery that is previously used by the electronic device 100. It is indicated that the battery previously used by the electronic device 100 is replaced by another battery having the detected unique ID, when the detected unique ID is different from the previous ID. Thus, the electronic device 100 can be automatically booted up when the battery used by the electronic device 100 is replaced.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110337718.6 | Oct 2011 | CN | national |