Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, a kind of mobile terminal is provided to wake rear cell voltage calibration steps, system and mobile terminal up, be intended to the accuracy being improved the voltage that mobile terminal first time when waking up obtains by the present invention, prevent mobile terminal from cell voltage abnormal conditions in use occurring, for user provides convenience.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of mobile terminal wakes rear cell voltage calibration steps up, wherein, comprises step:
If S1 detects that mobile terminal is in wake-up states, then obtain the first magnitude of voltage V1 and very first time value T1 that preserve when last described mobile terminal is in dormant state;
S2, acquisition current time, and be labeled as the second time value T2;
Current battery level value after mobile terminal described in the voltage calibration formulae discovery that S3, basis are preset wakes up also shows.
Described mobile terminal wakes rear cell voltage calibration steps up, and wherein, described step S1 specifically comprises:
S11, detect mobile terminal state in real time;
If S12 detects that described mobile terminal is in dormant state, then read the current hibernation time, and the described current hibernation time is saved in mobile terminal memory, be labeled as very first time value T1;
S13, further reading current hibernation magnitude of voltage, and described current hibernation magnitude of voltage is saved in mobile terminal memory, be labeled as the first magnitude of voltage V1.
Described mobile terminal wakes rear cell voltage calibration steps up, and wherein, described mobile terminal memory is power down nonvolatile memory, comprising: FLASH and EEPROM.
Described mobile terminal wakes rear cell voltage calibration steps up, and wherein, described step S3 specifically comprises step:
S31, the negative pole of battery of mobile terminal interface held with the COM of voltage table be connected, the positive pole of battery of mobile terminal interface is held with the uV of voltage table simultaneously and be connected;
S32, described mobile terminal is set is in dormant state, and the changing value of described voltage table in record unit time;
S33, the changing value of described voltage table is set as described unit interval dormant state voltage drop value K;
S34, according to preset voltage calibration formula: the second magnitude of voltage V2=first magnitude of voltage V1-(second time value T2-very first time value T1) * unit interval dormant state voltage drop value K set current mobile terminal wake up after battery voltage value.
A kind of mobile terminal wakes rear cell voltage calibration system up, wherein, comprising:
First magnitude of voltage and time value acquisition module, if for detecting that mobile terminal is in wake-up states, then obtain the first magnitude of voltage V1 and very first time value T1 that preserve when last described mobile terminal is in dormant state;
Second time value acquisition module, for obtaining current time, and is labeled as the second time value T2;
Magnitude of voltage calibration module, the current battery level value after waking up for mobile terminal according to the voltage calibration formulae discovery preset also shows.
Described mobile terminal wakes rear cell voltage calibration system up, and wherein, described first magnitude of voltage and time value acquisition module specifically comprise:
State detection unit, for detecting mobile terminal state in real time;
Very first time value acquiring unit, if for detecting that described mobile terminal is in dormant state, then reads the current hibernation time, and is saved in mobile terminal memory by the described current hibernation time, be labeled as very first time value T1;
First magnitude of voltage acquiring unit, for reading current hibernation magnitude of voltage further, and being saved in mobile terminal memory by described current hibernation magnitude of voltage, being labeled as the first magnitude of voltage V1.
Described mobile terminal wakes rear cell voltage calibration system up, and wherein, described mobile terminal memory is power down nonvolatile memory, comprising: FLASH and EEPROM.
Described mobile terminal wakes rear cell voltage calibration system up, and wherein, described magnitude of voltage calibration module specifically comprises:
Battery interface linkage unit, is connected for being held with the COM of voltage table by the negative pole of battery of mobile terminal interface, is held by the positive pole of battery of mobile terminal interface be simultaneously connected with the uV of voltage table;
Unit voltage change records unit, is in dormant state for arranging described mobile terminal, and the changing value of described voltage table in record unit time;
Voltage drop value K setup unit, for being set as described unit interval dormant state voltage drop value K by the changing value of described voltage table;
Computing unit, for according to preset voltage calibration formula: the second magnitude of voltage V2=first magnitude of voltage V1-(second time value T2-very first time value T1) * unit interval dormant state voltage drop value K set current mobile terminal wake up after battery voltage value.
A kind of mobile terminal, comprises above arbitrary described mobile terminal and wakes rear cell voltage calibration system up.
A kind of mobile terminal provided by the present invention wakes rear cell voltage calibration steps, system and mobile terminal up, described method specifically comprises: if detect, mobile terminal is in wake-up states, then obtain the first magnitude of voltage V1 and very first time value T1 that preserve when last described mobile terminal is in dormant state; Obtain current time, and be labeled as the second time value T2; According to preset voltage calibration formulae discovery described in mobile terminal wake up after current battery level value and show.The present invention calculates by a kind of default voltage calibration formula the cell voltage that mobile terminal wakes the acquisition of rear first time up, improve the accuracy of the voltage that mobile terminal first time when waking up obtains, avoid mobile terminal and cell voltage abnormal conditions in use occur, provide users with the convenient.
Embodiment
The invention discloses a kind of mobile terminal and wake rear cell voltage calibration steps, system and mobile terminal up, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, 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, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the process flow diagram that mobile terminal of the present invention wakes the preferred embodiment of rear cell voltage calibration steps up.Mobile terminal shown in Fig. 1 wakes rear cell voltage calibration steps up, comprising:
If step S101 detects that mobile terminal is in wake-up states, then obtain the first magnitude of voltage V1 and very first time value T1 that preserve when last described mobile terminal is in dormant state.
In the embodiment of the present invention, described step S1 specifically comprises:
S11, detect mobile terminal state in real time;
If S12 detects that described mobile terminal is in dormant state, then read the current hibernation time, and the described current hibernation time is saved in mobile terminal memory, be labeled as very first time value T1;
S13, further reading current hibernation magnitude of voltage, and described current hibernation magnitude of voltage is saved in mobile terminal memory, be labeled as the first magnitude of voltage V1.
That is, the embodiment of the present invention carries out calculating based on the first magnitude of voltage of preserving and very first time value when the mobile terminal memory last time receives dormancy instruction.Particularly, when mobile terminal sleep instruction being detected, reading current time and being saved in storer, being labeled as very first time T1, read current voltage simultaneously and be saved in storer, being labeled as the first voltage V1.
Further, described mobile terminal memory is power down nonvolatile memory, comprising: FLASH and EEPROM etc.
Step S102, acquisition current time, and be labeled as the second time value T2.
Current battery level value after mobile terminal described in the voltage calibration formulae discovery that step S103, basis are preset wakes up also shows.
In the embodiment of the present invention, described step S103 specifically comprises step:
S31, the negative pole of battery of mobile terminal interface held with the COM of voltage table be connected, the positive pole of battery of mobile terminal interface is held with the uV of voltage table simultaneously and be connected;
S32, described mobile terminal is set is in dormant state, and the changing value of described voltage table in record unit time;
S33, the changing value of described voltage table is set as described unit interval dormant state voltage drop value K;
S34, according to preset voltage calibration formula: the second magnitude of voltage V2=first magnitude of voltage V1-(second time value T2-very first time value T1* unit interval dormant state voltage drop value K set current mobile terminal wake up after battery voltage value.
Namely, when mobile terminal transfers wake-up states to from dormant state, obtain current time, the cell voltage V1 preserved when simultaneously receiving dormancy instruction according to the last time and time T1, adopt the voltage calibration formula preset to carry out the calculating of cell voltage when mobile terminal wakes up.
Further, the unit interval dormant state voltage drop value K in the voltage calibration formula that the embodiment of the present invention is preset needs to measure in advance, measures mode as shown in Figure 2.First, mobile terminal 20 is connected battery 10, namely mobile terminal 20 battery interface+pole and battery 10+pole is connected, the battery interface-pole of mobile terminal 20 and battery 10-pole is connected.Secondly, mobile terminal 20 is connected voltage table 30, and namely battery interface-the pole of mobile terminal 20 is held with the COM of voltage table 30 and is connected, and the battery interface+pole of mobile terminal 20 is held with the uV of voltage table 30 and is connected.By mobile terminal 20 dormancy, the change of voltage table 30 registration in record unit time. now, voltage drop value K corresponding to unit interval dormant state consumes power is exactly the change of voltage table 30 registration in the aforementioned unit interval.
Therefore, the present invention calculates by a kind of default voltage calibration formula the cell voltage that mobile terminal wakes the acquisition of rear first time up, improve the accuracy of the voltage that mobile terminal first time when waking up obtains, avoid mobile terminal and cell voltage abnormal conditions in use occur, provide users with the convenient.
Based on above-described embodiment, the present invention also provides a kind of mobile terminal to wake rear cell voltage calibration system up, as shown in Figure 3, comprising:
First magnitude of voltage and time value acquisition module 100, if for detecting that mobile terminal is in wake-up states, then obtain the first magnitude of voltage V1 and very first time value T1 that preserve when last described mobile terminal is in dormant state; As detailed above.
Second time value acquisition module 200, for obtaining current time, and is labeled as the second time value T2; As detailed above.
Magnitude of voltage calibration module 300, the current battery level value after waking up for mobile terminal according to the voltage calibration formulae discovery preset also shows; As detailed above.
Further, described first magnitude of voltage and time value acquisition module 100 specifically comprise:
State detection unit, for detecting mobile terminal state in real time; As detailed above.
Very first time value acquiring unit, if for detecting that described mobile terminal is in dormant state, then reads the current hibernation time, and is saved in mobile terminal memory by the described current hibernation time, be labeled as very first time value T1; As detailed above.
First magnitude of voltage acquiring unit, for reading current hibernation magnitude of voltage further, and being saved in mobile terminal memory by described current hibernation magnitude of voltage, being labeled as the first magnitude of voltage V1; As detailed above.
Further, described mobile terminal memory is power down nonvolatile memory, comprising: FLASH and EEPROM.
Further, described magnitude of voltage calibration module 300 specifically comprises:
Battery interface linkage unit, is connected for being held with the COM of voltage table by the negative pole of battery of mobile terminal interface, is held by the positive pole of battery of mobile terminal interface be simultaneously connected with the uV of voltage table; As detailed above.
Unit voltage change records unit, is in dormant state for arranging described mobile terminal, and the changing value of described voltage table in record unit time; As detailed above.
Voltage drop value K setup unit, for being set as described unit interval dormant state voltage drop value K by the changing value of described voltage table; As detailed above.
Computing unit, for according to preset voltage calibration formula: the second magnitude of voltage V2=first magnitude of voltage V1-(second time value T2-very first time value T1) * unit interval dormant state voltage drop value K set current mobile terminal wake up after battery voltage value; As detailed above.
Further, the present invention also provides a kind of mobile terminal, comprises above arbitrary described mobile terminal and wakes rear cell voltage calibration system up.
In sum, a kind of mobile terminal provided by the present invention wakes rear cell voltage calibration steps, system and mobile terminal up, described method specifically comprises: if detect, mobile terminal is in wake-up states, then obtain the first magnitude of voltage V1 and very first time value T1 that preserve when last described mobile terminal is in dormant state; Obtain current time, and be labeled as the second time value T2; According to preset voltage calibration formulae discovery described in mobile terminal wake up after current battery level value and show.The present invention calculates by a kind of default voltage calibration formula the cell voltage that mobile terminal wakes the acquisition of rear first time up, improve the accuracy of the voltage that mobile terminal first time when waking up obtains, avoid mobile terminal and cell voltage abnormal conditions in use occur, provide users with the convenient.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.