1. Technical Field
The present disclosure relates to an electronic device and a method for powering off the electronic device.
2. Description of Related Art
During factory testing of electronic devices, external power sources are used to implement certain tests. When testing devices that do not have an operating system (OS), after detecting connection of the device being tested to an external power source, a power management unit (PMU) will automatically power up the electronic device and supply power to all the components of the electronic device. Therefore, if the test technician turns off the electronic device first before disconnecting the external power source, because of the connection of the external power, the electronic device will automatically turn back on and remain on even after the external power source is disconnected. This wastes times and may cause other problems if the technician forgets to disconnect the external power source first.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
Referring to
The electronic device 1 includes a processing unit 11, a power management unit (PMU) 12, an input unit 13, an internal power supply unit 14, and other components, such as a display unit 15 and a storage unit 16. The internal power supply unit 14 supplies power to the electronic device 1 through the PMU 12.
The input unit 13 generates a power off signal in response to a power off operation thereon and sends the power off signal to the processing unit 11. After receiving the power off signal, the processing unit 11 periodically checks whether the electronic device 1 has been disconnected from the external power supply 3. The processing unit 11 controls the PMU 12 to cut off the connection between the PMU 12 and the internal power supply unit 14 to power off the electronic device 1 if it is determined that the electronic device 1 has been disconnected from the external power supply 3.
In step S202, the processing unit 11 receives the power off signal, and periodically checks whether the electronic device 1 has been disconnected from the external power supply 3. If the electronic device 1 has been disconnected from the external power supply 3, the procedure goes to step S203.
In Step 203 the processing unit 11 control the PMU 12 to disconnect from the internal power supply unit 14, thus powering off the electronic device 1. This way a technician is alerted to the fact they are trying to turn off power sources in the wrong order when the device fails to turn off if they have not first disconnect external power supply before directly turning off the device.
Although, the present disclosure has been specifically described on the basis of preferred embodiments, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010268165.9 | Aug 2010 | CN | national |