Summary of the invention
In order to solve the deficiency that prior art exists, the object of the present invention is to provide a kind of device and method of realizing entering fast the handheld terminal battery saving mode, utilize battery saving mode shortcut or power supply detection module, enter the battery saving mode of handheld terminal fast, close non-essential system service, application service and calling system interface, turn down screen intensity, reduce system sound volume, reduce cpu frequency, reduce the power consumption of handheld terminal to greatest extent, prolonged the stand-by time of handheld terminal.
For achieving the above object, a kind of device of realizing entering fast the handheld terminal battery saving mode provided by the invention, this device comprises central processing unit, the battery saving mode shortcut, power supply detection module, and handheld terminal interface module, wherein,
Described central processing unit receives the key information of described battery saving mode shortcut transmission and the electric quantity of power supply remaining information that described power supply detection module sends; Control the mode of operation of described handheld terminal and the operating state of described handheld terminal interface module;
Described battery saving mode shortcut is used to receive user's input, and key information is sent to described central processing unit;
Described power supply detection module is used to detect the dump energy of power supply, and the electric quantity of power supply remaining information is sent to described central processing unit;
Described handheld terminal interface module is accepted the control of described central processing unit, finishes corresponding system service and application service.
For achieving the above object, a kind of method that realizes entering fast the handheld terminal battery saving mode provided by the invention, this method may further comprise the steps:
1) receives key information by the battery saving mode shortcut, and it is handled;
2) receive electric quantity of power supply surplus value information by the power supply detection module, and it is handled;
3) battery saving mode of startup handheld terminal.
Further, described step 1) is further comprising the steps of:
A) receive key information by the battery saving mode shortcut;
B) judgement has or not key information;
C) when key information, start the battery saving mode of handheld terminal;
Described step 2) further comprising the steps of:
A) receive electric quantity of power supply surplus value information by the power supply detection module;
B) judge whether the electric quantity of power supply surplus value is lower than power supply dump energy preset value;
C) when the electric quantity of power supply surplus value is lower than power supply dump energy preset value, start the battery saving mode of handheld terminal.
Further, described step 3) also comprises closes non-essential system service of handheld terminal and application service, and the calling system interface, turns down screen intensity, reduces system sound volume, reduces cpu frequency, reduces standby energy consumption to greatest extent.
The present invention has significant advantage and technique effect, adopt battery saving mode shortcut or power supply detection module, enter the battery saving mode of handheld terminal fast, turn off unnecessary service (bluetooth service for example, the WLAN service, the service that GPRS service and other not influence system run well); Hang up or close the major applications service, and close or reduce system's consumption of electric (for example close 1 backlight or turn down brightness of backlight, reduce cpu frequency etc.) by hardware; Only keep necessary system service and application service (such as phone and note), which program the user can select to operate under the battery saving mode by configuration, according to user-selected pattern, only open note and phone as mobile phone, mobile phone approximately can improve stand-by time 2-3 doubly.
The present invention be advantageous in that, each user can independently select to enjoy strong functions and still obtain more stand-by time, promptly can freely switch by the user, satisfy different user, different demands under the varying environment, and help the user when mobile phone will cut off the power supply, to prolong stand-by time, in emergency circumstances avoid loss or strive for interests for the user.The application of present technique can effectively improve the cell phone standby time, and corresponding what pay is stopping of some function, but whether function is started shooting and all determined by the user.And the user does not need to be concerned about details and implementation, and a key triggers/closes, and greatly reduces the complicated operation degree and to the requirement of professional knowledge.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 1 is according to the principle of device block diagram that enters the handheld terminal battery saving mode fast of the present invention, as shown in Figure 1, this the present invention's the device that enters the handheld terminal battery saving mode fast, comprisecentral processing unit 101, batterysaving mode shortcut 102, power supply detection module 103, and handheld terminalfunctional module 104, wherein:
Central processing unit 101, connect batterysaving mode shortcut 102, power supply detection module 103, and handheldterminal interface module 104, receive the key information of batterysaving mode shortcut 102 transmissions and the electric quantity of power supply remaining information that power supply detection module 103 sends, and according to the mode of operation of key information and electric quantity of power supply remaining information control handheld terminal, and the operating state of handheld terminal interface module 104.Whencentral processing unit 101 received key information or electric quantity of power supply less than preset value,central processing unit 101 control handheld terminals entered battery saving mode.The mode of operation of handheld terminal has normal mode and battery saving mode, and when handheld terminal was in normal mode, the total interface module of handheld terminal was all in running order; And handheld terminal is when being in battery saving mode, and handheld terminal is in closed condition according to user's needs with corresponding system service (interface module) and application service.
Batterysaving mode shortcut 102 is the power key or the dedicated array of keys of handheld terminal; At the power key of handheld terminal during as batterysaving mode shortcut 102, definition long by power key as the key information that enters battery saving mode fast; When adopting dedicated array of keys as batterysaving mode shortcut 102, then the definition weak point enters the key information of battery saving mode fast by the dedicated array of keys conduct.Batterysaving mode shortcut 102 receiving the user when triggering, sends tocentral processing unit 101 with key information.
Power supply detection module 103 is used to detect the dump energy of power supply, and the electric quantity of power supply remaining information is sent tocentral processing unit 101.
Handheldterminal interface module 104 is accepted the control ofcentral processing unit 101, finishes the system service functions and the application service function of handheld terminal.
Fig. 2 is according to hand terminal system Organization Chart of the present invention, as shown in Figure 2, the system service of handheld terminal comprises: system service WLAN interface module, the GPRS interface module, the GPS interface module, the BLUETOOTH interface module, VPN interface module, system service functions modules such as SENSOR interface module;
The application service of handheld terminal comprises: application services such as phone, note, mail, address book, alarm clock, calendar, multimedia, office tools, browser, recreation, location, the its corresponding system service functions module of different application services is finished the function of handheld terminal and is used together.
Because the system service of above-mentioned handheld terminal and application service adopt technique known to realize, are not the claimed technical scheme of the present invention, therefore do not elaborate.
Fig. 3 is according to the method flow diagram that enters the handheld terminal battery saving mode fast of the present invention, below with reference to Fig. 3, the method that enters the handheld terminal battery saving mode fast of the present invention is described in detail:
At first, instep 301, battery savingmode shortcut 102 receives user's triggering, and key information is sent tocentral processing unit 101;
Instep 302,central processing unit 101 judges whether receive key information, receives key information, then enters battery saving mode, forwardsstep 303 to; Do not receive key information, thenforward step 307 to;
Instep 303,central processing unit 101 cuts out non-essential system service; In this step, the system service thatcentral processing unit 101 cuts out comprises:
1) calls the WLAN interface, close WLAN;
2) call the GPRS interface, close GPRS;
3) call blue tooth interface, close bluetooth;
4) call the GPS interface, close positioner;
5) call the SENSOR interface, close various inductors, as gravity sensor, acceleration induction device etc.;
6) for other inessential service, call the corresponding interface, enter and close;
7) system mode is set, prevents that system service from being restarted.
Instep 304,central processing unit 101 cuts out non-essential application service; This step further comprises:
1)central processing unit 101 is at first searched the current system process of present handheld terminal, and filters out non-essential application service;
2) travel through each inessential application, obtain corresponding PID (process number);
3) calling system interface is closed corresponding process number;
4) check system state prevents that inessential application from being restarted.
Instep 305,central processing unit 101 calling system interfaces are turned down screen intensity, reduce system sound volume, reduce cpu frequency, reduce standby energy consumption to greatest extent;
Instep 306,central processing unit 101 control handheld terminals can only use phone and SMS;
Instep 307,central processing unit 101 detects the power supply dump energy by the power supply detection module, and the electric weight of power supply detects and adopts technological means commonly used, so the present invention does not do detailed description;
Instep 308,central processing unit 101 receives the power supply dump energy information that power supply detection module 103 sends, and judge according to power supply dump energy information whether the power supply dump energy is lower than power supply dump energy preset value, in the present invention, preferred power supply dump energy preset value is 10% of a general supply electric weight; The power supply dump energy is lower than preset value, then enters battery saving mode, forwards step 303 to; Otherwise forward step 309 to;
Instep 309, handheld terminal is in work under the normal mode.
One of ordinary skill in the art will appreciate that: the above only is the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, it still can be made amendment to the technical scheme of aforementioned each embodiment record, perhaps part technical characterictic wherein is equal to replacement.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.