Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned defect for prior art, a kind of processing method and mobile terminal of mobile terminal idle mode are provided, propose a kind of method that mobile terminal is in long-term idle mode, make current battery electric quantity send shutdown command in the best storage value range; If current battery electric quantity is not at the best storage value range, sending electric discharge or charging instruction reaches in the best storage value range battery electric quantity, this method can make the user select after long-term idle mode to guarantee that battery capacity of mobile terminal adjusts to optimum idle scope for a long time, guarantee that battery capacity loss after mobile terminal is idle for a long time is minimum, increased the useful life of battery of mobile terminal.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of processing method of mobile terminal idle mode wherein, comprising:
A, set in advance the best storage value range of described mobile terminal battery electric quantity under long-term idle mode;
The long-term idle mode of B, the described mobile terminal of unlatching, and detect current battery electric quantity and obtain described battery electric quantity every a set time, the described battery electric quantity that obtains and the upper and lower bound that sets in advance the best storage value range of preservation are compared;
C, when described current battery electric quantity in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown; When described current battery electric quantity, not at described best storage value range, send electric discharge or charging instruction so that battery electric quantity reaches in the best storage value range.
The processing method of described mobile terminal idle mode wherein, also comprises step in described steps A:
A1, according to the characteristic of battery under different conditions, in mobile terminal, be arranged in advance under long-term idle mode the best storage value range of the electric weight suitable with described battery.
The processing method of described mobile terminal idle mode, wherein, described step C also comprises:
C11, when described current battery electric quantity not at described best storage value range, and current battery electric quantity more than or equal on described best storage value range in limited time, control and open described mobile terminal discharge procedures described battery is carried out to discharge operation;
C12, when mobile terminal in discharge process, open simultaneously a timer, every a Preset Time, detect battery electric quantity, and execution step C13;
C13, when described battery discharges gradually, regularly described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown.
The processing method of described mobile terminal idle mode, wherein, described step C also comprises:
C21, when described current battery electric quantity not at described best storage value range, and current battery electric quantity is less than or equal under described best storage value range in limited time, opens described mobile terminal charge prompting program, points out the user to charge to described mobile terminal;
C22, after the mobile terminal connecting charger, open a timer, every a Preset Time, detect battery electric quantity, and execution step C23;
C23, when described battery gradually charge timing described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown.
The processing method of described mobile terminal idle mode, wherein, described step C11 also comprises:
By flashlight, startup GPS reception, the adjustment screen intensity of opening on described mobile terminal, be the brightest or control the computing of CPU high load capacity to consume fast the battery electric quantity of described mobile terminal, complete described discharge procedures.
A kind of mobile terminal wherein, comprising:
Module is set, be used to setting in advance the best storage value range of described mobile terminal battery electric quantity under long-term idle mode;
Detection module, for opening the long-term idle mode of described mobile terminal, and every a set time, detect current battery electric quantity and obtain described battery electric quantity, the described battery electric quantity that obtains and the upper and lower bound that sets in advance the best storage value range of preservation are compared;
Control module, for working as described current battery electric quantity in described best storage value range, send shutdown command, makes the mobile terminal automatic shutdown; When described current battery electric quantity, not at described best storage value range, send electric discharge or charging instruction so that battery electric quantity reaches in the best storage value range.
Described mobile terminal, wherein, the described module that arranges comprises:
Set in advance unit, for the characteristic according to battery under different conditions, in mobile terminal, be arranged in advance under long-term idle mode the best storage value range of the electric weight suitable with described battery.
Described mobile terminal, wherein, described control module comprises:
Directly control unit, for working as described current battery electric quantity in described best storage value range, send shutdown command, makes the mobile terminal automatic shutdown;
The control of discharge unit, for working as described current battery electric quantity not at described best storage value range, and current battery electric quantity is controlled the described mobile terminal discharge procedures of unlatching described battery is carried out to discharge operation more than or equal on described best storage value range, prescribing a time limit; When mobile terminal, in discharge process, open simultaneously a timer, every a Preset Time, detect battery electric quantity; When described battery discharges gradually, regularly described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown;
Charging control unit, for working as described current battery electric quantity not at described best storage value range, and current battery electric quantity is less than or equal under described best storage value range prescribes a time limit, and opens described mobile terminal charge prompting program, and the prompting user charges to described mobile terminal; After the mobile terminal connecting charger, open a timer, every a Preset Time, detect battery electric quantity; When described battery gradually charge timing described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown.
Described mobile terminal, wherein, described detection module also comprises:
Acquiring unit, be used to obtaining the battery electric quantity of described mobile terminal;
Comparing unit, compare for the described battery electric quantity that will obtain and the upper and lower bound that sets in advance the best storage value range of preservation;
Timing unit, for obtaining described battery electric quantity every a set time detection trigger module.
Described mobile terminal, wherein, described control of discharge unit also comprises:
Subelement is opened in electric discharge, be used to controlling the described mobile terminal discharge procedures of unlatching, described battery is carried out to discharge operation;
The discharge procedures subelement, be the brightest or control the computing of CPU high load capacity to consume fast the battery electric quantity of described mobile terminal for flashlight, startup GPS reception, adjustment screen intensity by opening on described mobile terminal, completes described discharge procedures;
Electric discharge stops subelement, for when described battery, discharging gradually and regularly described battery electric quantity detected in described best storage value range, sends shutdown command, makes the mobile terminal automatic shutdown;
Simultaneously, described charging control unit also comprises:
The charger detection sub-unit, for the insertion of charger with extract detection;
Subelement is opened in charging, and be used to opening described mobile terminal charge prompting program, the prompting user charges to described mobile terminal, after the mobile terminal connecting charger, opens a timer, every a Preset Time, detects battery electric quantity;
Charging stops subelement, for when described battery gradually charge timing described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown.
The processing method of a kind of mobile terminal idle mode provided by the present invention and mobile terminal, it makes mobile terminal increase new function: after the user selects this pattern, can make battery capacity of mobile terminal adjust to the scope that optimum leaves unused for a long time, guarantee that battery capacity loss after mobile terminal is idle for a long time is minimum, increased the useful life of battery of mobile terminal.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of preferred embodiment of the processing method of a kind of mobile terminal idle mode of the present invention.
Step S110, set in advance the best storage value range of described mobile terminal battery electric quantity under long-term idle mode;
In the situation that mobile terminal will be left unused for a long time, battery for the protection mobile terminal, can reduce by the idle mode of opening mobile terminal after battery capacity is left unused because mobile terminal is long-term the loss that causes, and at first need by the best storage value range of its battery electric quantity is set under long-term idle mode described mobile terminal in advance; The best storage value range of described battery electric quantity comprises the upper and lower bound of battery electric quantity best storage value range; For example, will on the best storage value range of battery electric quantity under long-term idle mode, be limited to 60%, under be limited to 40%.Enter thus step S120.
Step S120, open the long-term idle mode of described mobile terminal, and every a set time, detect current battery electric quantity and obtain described battery electric quantity, the described battery electric quantity that obtains and the upper and lower bound that sets in advance the best storage value range of preservation are compared;
As can be known according to previous step, the user can be by setting in advance the best storage value range of described mobile terminal battery electric quantity under long-term idle mode, the user will select to open the long-term idle mode of described mobile terminal this moment, as shown in Figure 6, Fig. 6 is the interface schematic diagram that the mobile terminal of the processing method of a kind of mobile terminal idle mode of the present invention is opened long-term idle mode; After the operational order that described mobile terminal receives the user need to be opened long-term idle mode, controlling unlatching the current battery electric quantity of automatic acquisition then compares with the best storage value range that sets in advance by obtaining current battery electric quantity, in addition also to detect every a set time battery electric quantity of current renewal, and judge the electric weight size of current battery electric quantity and the best storage value range upper limit or best storage value range lower limit; Enter thus step S130.
Step S130, in described best storage value range, send shutdown command when described current battery electric quantity, makes the mobile terminal automatic shutdown; When described current battery electric quantity, not at described best storage value range, send electric discharge or charging instruction so that battery electric quantity reaches in the best storage value range.
As can be known after mobile terminal receives long-term idle mode according to above-mentioned steps, through testing result, relatively judge the electric weight size of current battery electric quantity and the best storage value range upper limit or best storage value range lower limit, if described current battery electric quantity detected in described best storage value range, be that current battery electric quantity is greater than best storage value range lower limit and less than the best storage value range upper limit, send shutdown command, and control the mobile terminal automatic shutdown; If described current battery electric quantity detected not at described best storage value range, send electric discharge or charging instruction battery electric quantity is reached in the best storage value range.Can make like this battery capacity of mobile terminal adjust to the scope that optimum leaves unused for a long time, the assurance battery capacity is lost minimum after mobile terminal is idle for a long time, has increased the useful life of battery of mobile terminal.
the above is by a kind of process of processing method of mobile terminal idle mode, described comparatively clearly while for mobile terminal, long-term idle mode being set, at first the best storage value range of battery electric quantity will be set, then open the long-term idle mode of described mobile terminal, automatically detect and obtain the current battery electric quantity of described mobile terminal this moment, the best storage value range that will obtain again current battery electric quantity and the battery electric quantity that sets in advance compares and judges that it is whether in the scope that sets in advance, according to judged result, to mobile terminal, send dependent instruction again, make the mobile terminal automatic shutdown or adjust in the best storage value range.Can guarantee that like this battery capacity loss after mobile terminal is idle for a long time is minimum, increase the useful life of battery of mobile terminal.
In addition, in the processing method of described mobile terminal idle mode, at described step S110, also comprise step:
Step S100, according to the characteristic of battery under different conditions, select to be arranged under long-term idle mode the best storage value range of the electric weight suitable with described battery in advance in mobile terminal.
Due to the long-term certain influence that has of storing the battery various aspects of performance, and temperature, the humidity of controlling storage environment are conducive to the long-term maintenance of inside battery performance, therefore, fully realizing and understanding on the basis of long term storage on battery physical characteristic and electrochemical properties impact, characteristic according to battery under different conditions, adopt scheme targetedly, in mobile terminal, select in advance to be arranged under long-term idle mode the best storage value range of the electric weight suitable with described battery.Can reduce unnecessary loss, realize maximizing the benefits.
As can be known according to the step S130 of a upper embodiment, in the processing method of described mobile terminal idle mode, if described current battery electric quantity not at described best storage value range, has two kinds of situations to occur: the first, current battery electric quantity is more than or equal to the best storage value range upper limit; The second, current battery electric quantity is less than or equal to best storage value range lower limit.
Therefore, described step S130 also comprises:
Step S1311, when described current battery electric quantity not at described best storage value range, and current battery electric quantity more than or equal on described best storage value range in limited time, control and open described mobile terminal discharge procedures described battery is carried out to discharge operation;
According to abovementioned steps S120, check and judge current battery electric quantity more than or equal on described best storage value range, prescribing a time limit, open described mobile terminal discharge procedures, and be the brightest or control the computing of CPU high load capacity to consume fast the battery electric quantity of described mobile terminal by flashlight, startup GPS reception, the adjustment screen intensity of opening on described mobile terminal, complete described discharge procedures.
Step S1312, in discharge process, open a timer when mobile terminal simultaneously, every a Preset Time, detects battery electric quantity, and execution step S1313;
According to previous step S1311, open a timer by various discharge procedures the time, and continue to detect every a Preset Time (for example 5 seconds) electric weight that obtains battery, after the operation of the discharge procedures of certain hour, whether the current battery electric quantity of described mobile terminal is less than or equals the best storage value range upper limit with judgement.
Step S1313, regularly detect described battery electric quantity in described best storage value range when described battery discharges gradually, sends shutdown command, makes the mobile terminal automatic shutdown.
According to above-mentioned steps S1311-1312, complete discharge procedures and time opening, be convenient to detect battery electric quantity current after discharge procedures every a set time, if after the electric discharge of experience certain hour being detected, current described battery electric quantity is less than on the best storage value range, prescribing a time limit, namely when described battery discharges gradually, regularly described battery electric quantity detected in described best storage value range, carry out this step and namely send the shutdown of shutdown command control mobile terminal.
Above method by control of discharge makes battery capacity of mobile terminal adjust to the scope that optimum leaves unused for a long time, and the assurance battery capacity is lost minimum after mobile terminal is idle for a long time, has increased the useful life of battery of mobile terminal.
In addition, the processing method of described mobile terminal idle mode, if described current battery electric quantity the second situation occurs not at described best storage value range, namely current battery electric quantity is less than or equal to best storage value range lower limit.So, described step S130 also comprises:
S1321, not at described best storage value range, and current battery electric quantity is less than or equal under described best storage value range in limited time, opens described mobile terminal charge prompting program, points out the user to charge to described mobile terminal when described current battery electric quantity;
Due to when mobile terminal is selected long-term idle mode, its current battery electric quantity detected and be less than or equal to best storage value range lower limit, in order to keep battery capacity loss after mobile terminal is idle for a long time minimum, automatically open described mobile terminal charge prompting program, the prompting user charges to described mobile terminal.
S1322, after the mobile terminal connecting charger, open a timer, every a Preset Time, detects battery electric quantity, and execution step C1323;
S1321 is as can be known according to previous step, the user charges to mobile terminal according to charge prompting, after the mobile terminal connecting charger, for guaranteeing that the electric weight after the battery of mobile terminal charging remains in the best storage value range, need to open a timer, and will whether reach more than or equal to described best storage value range lower limit every a Preset Time detection battery electric quantity.
S1323, when described battery gradually charge timing described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown.
Due to above-mentioned steps S1321-1322, mobile terminal charged and the real-time electric weight of battery detected, so, when battery electric quantity more than or equal to described best storage value range under in limited time, namely when described battery gradually charge timing described battery electric quantity detected in described best storage value range, send and stop charging instruction, and send shutdown command, make described mobile terminal automatic shutdown.And then completed mobile terminal and make the battery storage of mobile terminal reach the process in the optimum range value by charge control method.
As shown in Figure 2, Fig. 2 is that note transmit leg of the present invention is processed the flow chart with the preferred embodiment of the note process that quarter-bell information is set.The present embodiment said method comprising the steps of:
Step S201, reception the instruction of opening the long-term idle mode of mobile terminal, enter step S202 afterwards;
Step S202, obtain current battery electric quantity Cn, enter afterwards step S203;
Step S203, more current battery electric quantity Cn and default battery electric quantity best storage value range lower limit CL compare, if current battery electric quantity Cn is less than or equal to CL, enter step S205, otherwise enter step S204;
Step S204, current battery electric quantity Cn and default battery electric quantity best storage value range upper limit CH are compared, if Cn enters step S213 more than or equal to CH, otherwise enter step S218;
Step S205, prompting user insert charger, enter afterwards step S206;
Step S206, start to detect charger and whether insert, if charger detected, insert enter step S207, otherwise enter step S205 prompting user, again be plugged charger;
The function of opening charging instruction is sent in step S207, control, enters afterwards step S208;
Step S208, opening timing device T0, enter step S209 afterwards;
Step S209, judge whether timer T0 is overtime, if yes then enter step S210, otherwise enter step S209;
Step S210, obtain current battery electric quantity Cn, enter afterwards step S211;
Step S211, current battery electric quantity Cn and default battery electric quantity best storage value range lower limit CL are compared, if Cn enters step S212 greater than CL, otherwise enter step S209;
The function that stops charging instruction being sent in step S212, control, enters afterwards step S218;
Step S213, unlatching discharge procedures start electric discharge, enter afterwards step S214;
According to step S204, current battery electric quantity Cn and default battery electric quantity best storage value range upper limit CH are compared, if Cn opens discharge procedures more than or equal to CH, start electric discharge.
Step S214, by timer module 123 opening timing device T0, enter afterwards step S215;
Step S215, judge whether timer T0 is overtime, if yes then enter step S216, otherwise enter step S215;
Step S216, obtain current battery electric quantity Cn, enter afterwards step S217;
Step S217, by battery electric quantity best storage value range upper limit CL default in the more current battery electric quantity Cn of comparision of quantity of electricity module 122 and setting unit 110, compared, if Cn enters step S218 less than CH, otherwise enter step S215;
Step S218, by shutdown control unit 150, send shutdown command and control the mobile terminal shutdown.
Embodiment based on the processing method of above-mentioned a kind of mobile terminal idle mode, the present invention also provides a kind of mobile terminal of processing method of mobile terminal idle mode, and Fig. 3 is the mobile terminal module structural representation of the processing method of a kind of mobile terminal idle mode of the present invention.Specifically comprise:
Module 310 is set, be used to setting in advance the best storage value range of described mobile terminal battery electric quantity under long-term idle mode; Specifically as described in the step S110 of above-mentioned embodiment of the method.
Detection module 320, for opening the long-term idle mode of described mobile terminal, and every a set time, detect current battery electric quantity and obtain described battery electric quantity, the described battery electric quantity that obtains and the upper and lower bound that sets in advance the best storage value range of preservation are compared; Specifically as described in the step S120 of above-mentioned embodiment of the method.
Control module 330, for working as described current battery electric quantity in described best storage value range, send shutdown command, makes the mobile terminal automatic shutdown; When described current battery electric quantity, not at described best storage value range, send electric discharge or charging instruction so that battery electric quantity reaches in the best storage value range; Specifically as described in the step S130 of above-mentioned embodiment of the method.
Set in advance unit 300, according to the characteristic of battery under different conditions, in mobile terminal, be arranged in advance under long-term idle mode the best storage value range of the electric weight suitable with described battery; Specifically as described in the step S100 of above-mentioned embodiment of the method.
Directly control unit 331, for working as described current battery electric quantity in described best storage value range, send shutdown command, makes the mobile terminal automatic shutdown; Specifically as described in the step S130 of above-mentioned embodiment of the method.
Control of discharge unit 332, for working as described current battery electric quantity not at described best storage value range, and current battery electric quantity, more than or equal on described best storage value range, prescribing a time limit, is controlled the described mobile terminal discharge procedures of unlatching described battery is carried out to discharge operation; When mobile terminal, in discharge process, open simultaneously a timer, every a Preset Time, detect battery electric quantity; When described battery discharges gradually, regularly described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown; Specifically as described in the step S1321-S1323 of above-mentioned embodiment of the method.
Charging control unit 333, for working as described current battery electric quantity not at described best storage value range, and current battery electric quantity is less than or equal under described best storage value range prescribes a time limit, and opens described mobile terminal charge prompting program, and the prompting user charges to described mobile terminal; After the mobile terminal connecting charger, open a timer, every a Preset Time, detect battery electric quantity; When described battery gradually charge timing described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown.Specifically as described in the step S1311-S1313 of above-mentioned embodiment of the method.
Described mobile terminal, wherein, described detection module also comprises:
As shown in Figure 4, Fig. 4 is the mobile terminal detection module cellular construction schematic diagram of the processing method of a kind of mobile terminal idle mode of the present invention.
Acquiring unit 311, be used to obtaining the battery electric quantity of described mobile terminal; Specifically as described in the step S120 of above-mentioned embodiment of the method.
Comparing unit 312, compare for the described battery electric quantity that will obtain and the upper and lower bound that sets in advance the best storage value range of preservation; Specifically as described in the step S120 of above-mentioned embodiment of the method.
Timing unit 313, for obtaining described battery electric quantity every a set time detection trigger module.Specifically as described in the step S130 of above-mentioned embodiment of the method.
As shown in Figure 5, Fig. 5 is the mobile terminal charge control module cellular construction schematic diagram of the processing method of a kind of mobile terminal idle mode of the present invention.
Described mobile terminal, wherein, described control of discharge unit also comprises:
Subelement 3321 is opened in electric discharge, be used to controlling the described mobile terminal discharge procedures of unlatching, described battery is carried out to discharge operation; Specifically as described in the step S1311 of above-mentioned embodiment of the method.
Discharge procedures subelement 3322, be the brightest or control the computing of CPU high load capacity to consume fast the battery electric quantity of described mobile terminal for flashlight, startup GPS reception, adjustment screen intensity by opening on described mobile terminal, completes described discharge procedures; Specifically as described in the step S1312 of above-mentioned embodiment of the method.
Electric discharge stops subelement 3323, for when described battery, discharging gradually and regularly described battery electric quantity detected in described best storage value range, sends shutdown command, makes the mobile terminal automatic shutdown; Specifically as described in the step S1313 of above-mentioned embodiment of the method.
Described charging control unit also comprises:
Charger detection sub-unit 3331, for the insertion of charger with extract detection; Specifically as described in the step S1322 of above-mentioned embodiment of the method.
Subelement 3332 is opened in charging, and be used to opening described mobile terminal charge prompting program, the prompting user charges to described mobile terminal, after the mobile terminal connecting charger, opens a timer, every a Preset Time, detects battery electric quantity; Specifically as described in the step S1321 of above-mentioned embodiment of the method.
Charging stops subelement 3333, for when described battery gradually charge timing described battery electric quantity detected in described best storage value range, send shutdown command, make the mobile terminal automatic shutdown; Specifically as described in the step S1323 of above-mentioned embodiment of the method.
In sum, the processing method of a kind of mobile terminal idle mode provided by the present invention and mobile terminal, described comparatively clearly while for mobile terminal, long-term idle mode being set, it makes mobile terminal increase new function: after the user selects this pattern, can make battery capacity of mobile terminal adjust to the scope that optimum leaves unused for a long time, guarantee that battery capacity loss after mobile terminal is idle for a long time is minimum, increased the useful life of battery of mobile terminal.
Should be understood that; application of the present invention is not limited to above-mentioned giving an example; for those of ordinary skills; can be improved according to the above description or conversion; the long-term idle storage method of all kinds of storage batterys for example, all these improve and conversion all should belong to the protection range of claims of the present invention.