1. Technical Field
The present disclosure relates to electronic devices and power control methods thereof, and particularly, to an electronic device with a touch screen and a power control method applied to the touch screen.
2. Description of Related Art
Many electronic devices equipped with touch displays still require that a mechanical button be pushed for powering on/off the devices, which can be inconvenient.
Therefore, what is needed is an electronic device and a power control method thereof to alleviate the limitations described above.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of an electronic device and a power control method thereof. Moreover, in the drawings, like reference numerals designate corresponding sections throughout the several views.
Referring to
In the embodiment, the electronic device 100 is a digital photo frame, in an alternative embodiment, the electronic device may be a mobile phone, an electronic reader, a music player, and other electronic devices equipped with infrared touch screens.
Further referring to
When the main body of the electronic device 100 is turned off, once the time period of a user touching the power key 4 or other regions of the touch screen 3 to block the infrared light beam X reaches a first predetermined time period, the main body of the electronic device 100 automatically turns on. And then, the electronic device 100 automatically turns off if the user touches the power key 4 or other regions of the touch screen 3 to block the infrared light beam X again and the time period of blocking the infrared light beam X reaches the first predetermined time period. The first predetermined time period may be a default setting or preset by the user, such as 3 seconds or 5 seconds. The main body of the electronic device 100 includes components of the electronic device 100 excepting the touch screen control unit 30 and the touch screen 3. In an alternative embodiment, the predetermined time periods of blocking the infrared light beam X to power on and power off the electronic device are different. When the electronic device 100 is powered on and the time period of blocking the infrared light beam X is shorter than the first predetermined time period, the electronic device 100 executes other functions such as page flipping, zooming, according to the design of the system of the electronic device 100.
Referring to
Referring to
The touch screen 3 generates an infrared ray corresponding to the power key 4. The touch screen control unit 30 includes a scan controlling module 31, a detecting module 33, a power controlling module 35 and a buffer 37. The scan controlling module 31 continually scans the infrared ray corresponding to the power key 4. The detecting module 33 determines whether the time of the touch operation blocking the infrared ray (hereinafter “the blocked time”) corresponding to the power key 4 is longer than a first predetermined time period according to the detection results corresponding to a touch operation of a user. The power controlling module 35 turns on or off the power of the main control system 20 when the blocked time of the infrared ray corresponding to the power key 4 is longer than the first predetermined time period.
The touch screen control unit 30 and the touch screen 3 are powered by a power supply. In the embodiment, the power supply is a power supply circuit of the electronic device 100. In an alternative embodiment, the power supply is a mains adapter. In the embodiment, the power supply is an uninterrupted power supply; the main control system 20 is powered by another power supply different from the uninterrupted power supply. Powering on/off the main control system 20 does not affect the power supply of the screen control unit 30 and the touch screen 3.
The scan controlling module 31 is configured for executing different scan modes according to whether the main control system 20 is powered on. In the embodiment, the scan controlling module 31 executes an uninterrupted periodical scan on the full area of the infrared light grid 5 or 5′, when the main control system 20 is powered on. The scan controlling module 31 executes an uninterrupted scan only on the infrared light beam X or X′, when the main control system 20 is powered off. Therefore, whenever the main control system 20 is powered on or powered off, the scan controlling module 31 executes an uninterrupted scan on the infrared light beam X or X′ passing through the power key 4 all the time.
The detecting module 33 is further configured for detecting whether a touch operation exists and the touch location of the touch operation if the touch operation exists, according to the detection results transmitted from the scan controlling module 31. The detecting module 33 is also configured for transmitting the detection results to the scan controlling module 31, the power controlling module 35 and the main processor 21. In the embodiment, the scan controlling module 31 adjusts the scan frequencies on the touch screen 3 according to the detection results transmitted from the detecting module 33. On condition that the main control system 20 is powered on, the scan controlling module 31 reduces the scan frequency on the touch screen 3 when no touch operation exists on the touch screen 3 within a particular second predetermined time period (such as 60 seconds) according to the detection results transmitted from the detecting module 33, and the scan controlling module 31 further reduces the scan frequency when no touch operation exists on the touch screen 3 within another particular second predetermined time period (such as 5 minutes) according to the detection results transmitted from the detecting module 33. For example, when the touch screen 3 does not received a touch operation within 1 minute, the scan controlling module 31 halves the scan frequency on the touch screen 3, and if no touch after 5 minutes, the scan controlling module 31 further halves the scan frequency on the touch screen 3. Thus the electrical energy of the electronic device 100 is effectively saved.
In detail, the detecting module 33 is connected to the plurality of infrared receivers 7/7′, for detecting whether the infrared light beams are blocked according to whether the infrared receivers 7/7′ receive the infrared light beams accordingly. In the embodiment, the detecting module 33 detects each of the infrared receivers 7/7′ in turn to determine whether the touch screen 3 is touched, when the main control system 20 is powered on. The detecting module 33 only detects the particular infrared light beam configured for receiving the infrared light beam X/X′ to determine whether the power key 4 is touched, when the main control system 20 is powered off.
The detecting module 33 is further configured for detecting the blocked time of the infrared light beam X/X′, when the electronic device 100 is powered on.
The power controlling module 35 is configured for determining whether the electronic device 100 is powered off. The power controlling module 35 is further configured for receiving the detection results, and transmitting corresponding control signals to the main processor 21. In the embodiment, on condition that the main control system 20 is powered on, the power controlling module 35 transmits a power off control signal to the main processor 21 when the blocked time of the infrared light beam X/X′ passing through the power key 4 reaches the first predetermined time period (such as one second) according to the detection results transmitted from the detecting module 33. The main processor 21 receives the power off control signal and powers off the main controlling system 20. On condition that the main control system 20 is powered off, the power controlling module 35 transmits a power on control signal to the main processor 21 when the blocked time of the infrared light beam X/X′ passing through the power key 4 reaches the first predetermined time period (such as one second) according to the detection results transmitted from the detecting module 33. The main processor 21 receives the power on control signal and powers on the main controlling system 20.
With such configuration, the main control system 20 is powered on as long as the user touches the power key 4 for the first predetermined time period. And the electronic device 100 is powered on accordingly. The main control system 20 is powered off as long as the user touches the power key 4 for the first predetermined time period again. Thus, it is much convenience and friendly for the user.
Referring to
In step 401, the power controlling module 35 determines whether the main control system 20 of the electronic device 100 is powered off, if yes, the process goes to step S402, otherwise, the process goes to step S406.
In step 402, the scan controlling module 31 executes an uninterrupted periodic scan on the infrared light beam X or X′ passing through the power key 4.
In step S403, the detecting module 33 determines whether the power key 4 is touched according to the detection results from the scan controlling module 31. If yes, the process goes to step S 404, otherwise, the process goes back to step S402. In the embodiment, the detecting module 33 determines whether the infrared light beam X or X′ is blocked according to the detection results of the infrared light beam X or X′, and determines whether the power key 4 is touched accordingly.
In step S404, the detecting module 33 determines whether the touch time period on the power key 4 reaches a first predetermined time period (such as one second), if yes, the process goes to step S405, otherwise, the step goes back to step S402.
In step S405, the power controlling module 35 transmits a power on control signal to the main processor 21 to power on the main control system 20.
In step S406, the detecting module 33 determines whether no touch operation has been performed on the touch screen 3 within a second predetermined time period, if yes, the detecting module 33 determines the touch screen 3 has been touched, and the processor goes to step S407, otherwise, the detecting module 33 determines the touch screen 3 has not been touched, and the process goes back to step S406.
In step S407, the scan controlling module 31 adjusts the scan frequencies on the touch screen 3 according to the detection results transmitted from the detecting module 33.
In step S408, the detecting module 33 determines whether the power key 4 is touched according to the detection results transmitted from the scan controlling module 31, if yes, the process goes to step S409, otherwise, the step goes back to step S406.
In step S409, the detecting module 33 determines whether the touch time period on the power key 4 reaches the first predetermined time period (such as one second), if yes, the process goes to step S410, otherwise, the step goes back to step S406.
In step S410, the power controlling module 35 transmits a power off control signal to the main processor 21 to power off the main control system 20.
Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010612382.5 | Dec 2010 | CN | national |