Summary of the invention
The technical problem to be solved in the present invention is that in view of the deficiencies of the prior art, providing a kind of control mobile terminal pass
The method and system of machine, it is not corresponding with voltage value and make to solve the electricity percentage shown in existing mobile terminal closedown method
At mobile terminal using the time it is shorter, the problem of making troubles to the use of user.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
A method of control mobile terminal shutdown comprising:
Detect mobile terminal power supply status, wherein the power supply status includes low-voltage state and normal voltage state;
When mobile terminal power supply is in low-voltage state, the voltage value of power supply is obtained in real time;
Calibration charge value is obtained according to the corresponding relationship of preset voltage value and charge value, wherein the corresponding relationship is
Battery is in the corresponding relationship of voltage value and charge value under low-voltage state;
The charge value that mobile terminal is currently shown replaces with the calibration charge value, and according to the calibration charge value control
Mobile terminal shutdown processed.
The method of the control mobile terminal shutdown, wherein the detection mobile terminal power supply status, wherein the electricity
Source state includes low-voltage state and normal voltage state specifically:
Obtain the voltage value of mobile terminal power supply;
Mobile terminal power supply status is detected according to the relationship of the voltage value and predetermined voltage threshold, wherein the power supply
State includes low-voltage state and normal voltage state.
The method of the control mobile terminal shutdown, wherein when mobile terminal power supply is in low-voltage state, obtain in real time
The voltage value of power supply is taken to specifically include:
When mobile terminal voltage is in low-voltage state, the mobile terminal state in which is judged, wherein mobile whole
The state at end includes charged state and discharge condition;
When the mobile terminal is in discharge condition, the voltage value of power supply is obtained in real time;
When the mobile terminal is in charged state, end operation.
The method of the control mobile terminal shutdown, wherein described to be closed according to preset voltage value and the corresponding of charge value
System obtains calibration charge value, wherein the corresponding relationship is pair that battery is in voltage value and charge value under low-voltage state
Before should being related to further include:
The voltage value that mobile terminal is shown is obtained, the voltage value and default first power threshold are compared
Compared with;
If the voltage value is more than or equal to default first power threshold, continue the voltage value for obtaining power supply;
If the voltage value is less than default first power threshold, execute according to preset voltage value and charge value
Corresponding relationship obtains the step of calibration charge value.
The method of the control mobile terminal shutdown, wherein the charge value for currently showing mobile terminal replaces with
The calibration charge value, and mobile terminal shutdown is controlled according to the calibration charge value and is specifically included:
The charge value that mobile terminal is currently shown replaces with the calibration charge value;
The calibration charge value is compared with default second power threshold;
When the calibration charge value is less than default second power threshold, control mobile terminal shutdown.
A kind of system of control mobile terminal shutdown comprising:
Detection module, for detecting mobile terminal power supply status, wherein the power supply status includes low-voltage state and just
Normal voltage status;
Voltage obtains module, for obtaining the voltage value of power supply in real time when mobile terminal power supply is in low-voltage state;
Charge value calibration module, for obtaining calibration charge value according to the corresponding relationship of preset voltage value and charge value,
Wherein, the corresponding relationship is the corresponding relationship that battery is in voltage value and charge value under low-voltage state;
Control module, the charge value for currently showing mobile terminal replace with the calibration charge value, and according to institute
State calibration charge value control mobile terminal shutdown.
The system of the control mobile terminal shutdown, wherein the detection module specifically includes:
Acquiring unit, for obtaining the voltage value of mobile terminal power supply;
Voltage value comparing unit, for detecting mobile terminal power supply according to the relationship of the voltage value and predetermined voltage threshold
State, wherein the power supply status includes low-voltage state and normal voltage state.
The system of the control mobile terminal shutdown, wherein the voltage obtains module and specifically includes:
Judging unit, for judging shape locating for the mobile terminal when mobile terminal voltage is in low-voltage state
State, wherein the state of mobile terminal includes charged state and discharge condition;
First processing units, for obtaining the voltage value of power supply in real time when the mobile terminal is in discharge condition;
The second processing unit is closed for when the mobile terminal is in charged state, controlling the control mobile terminal
The system finishing of machine operates.
The system of the control mobile terminal shutdown, further include:
Charge value obtains module, the voltage value shown for obtaining mobile terminal, by the voltage value and in advance
If the first power threshold is compared;
First execution module continues to obtain if being more than or equal to default first power threshold for the voltage value
The voltage value of power supply;
Second execution module executes if being less than default first power threshold for the voltage value according to default
Voltage value and charge value corresponding relationship obtain calibration charge value the step of.
The system of the control mobile terminal shutdown, wherein the control module specifically includes:
Replacement unit, the voltage value for currently showing mobile terminal replace with the calibration charge value;
Charge value comparing unit, for the calibration charge value to be compared with default power threshold;
Control unit, for when the calibration charge value is less than default power threshold, control mobile terminal to shut down.
The utility model has the advantages that compared with prior art, the present invention provides a kind of method and system of control mobile terminal shutdown,
The described method includes: detection mobile terminal power supply status obtains power supply when mobile terminal power supply is in low-voltage state in real time
Voltage value;Calibration charge value is obtained according to the corresponding relationship of preset voltage value and charge value;Mobile terminal is currently shown
Charge value replace with the calibration charge value, and mobile terminal shutdown is controlled according to the calibration charge value.The present invention passes through
It is calibrated according to charge value of the voltage value of acquisition to mobile terminal, and is closed according to the charge value control mobile terminal after calibration
Machine improves the correspondence that mobile terminal shows charge value and voltage value so that when mobile terminal according to the charge value of display into
Row shutdown when, the voltage value be off-mode when voltage value, shown in existing mobile terminal closedown method to solve
Electricity percentage it is not corresponding with voltage value and caused by mobile terminal using the time it is shorter, make troubles to the use of user
The problem of.
Specific embodiment
The present invention provides a kind of method and system of control mobile terminal shutdown, to make the purpose of the present invention, technical solution
And effect is clearer, clear, the present invention is described in more detail as follows in conjunction with drawings and embodiments.It should be appreciated that this
Place is described, and specific examples are only used to explain the present invention, is not intended to limit the present invention.
In the present invention, using the suffix for indicating such as " module ", " component " or " unit " of element only for advantageous
In explanation of the invention, there is no specific meanings for itself.Therefore, module ", " component " or " unit " can mixedly make
With.
Terminal device can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP
The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated
Determine terminal.However, it will be understood by those skilled in the art that other than the element for being used in particular for mobile purpose, according to this hair
The construction of bright embodiment can also apply to the terminal of fixed type.
With reference to the accompanying drawing, by the description of the embodiment, further explanation of the contents of the invention are made.
Fig. 1 is please referred to, Fig. 1 is the process of the preferred embodiment of the method for control mobile terminal shutdown provided by the invention
Figure.The described method includes:
S100, detection mobile terminal power supply status, wherein the power supply status includes low-voltage state and normal voltage shape
State.
Specifically, the detection mobile terminal power supply status refers to the voltage status of detection mobile terminal power supply.It is described
Voltage status includes normal voltage state and low-voltage state.Here, supply voltage state is with a preset voltage threshold
It is normal voltage status when the voltage of the mobile terminal power supply is greater than first voltage threshold value to distinguish standard;
It is low-voltage state when the voltage of the mobile terminal power supply is lower than a preset first voltage threshold value.Due to usually moving
The voltage rating of terminal is 3.7V, mobile terminal in use, supply voltage be in the time longest of 3.7V, and when shifting
For dynamic terminal in charging, supply voltage is likely to be breached limitation voltage 4.2V, therefore in the present embodiment, by this preset first
Voltage threshold is set as 3.7V.The preset first voltage threshold value is not limited to 3.7V, can be according to the volume of mobile terminal power supply
Constant voltage is set.
Illustratively, the detection mobile terminal power supply status, wherein the power supply status includes low-voltage state and just
Normal voltage status can specifically include:
S101, the voltage value for obtaining mobile terminal power supply;
Specifically, power supply electricity of the voltage check device of the mobile terminal every predetermined time detection mobile terminal
Pressure, and the supply voltage that will acquire is exported to comparator.The preset time can be system default, be also possible to user according to
What the demand of oneself was configured.For example, 05 hour etc..In practical applications, can according to mobile terminal state in which and
It prompts user to change the predetermined time, specifically use state or standby mode can be according to mobile terminal to determine whether
User is reminded to change preset time.For example, obtaining running of mobile terminal when mobile terminal is in use state and applying required electricity consumption
Amount reminds user to change the predetermined time according to the size of the electricity consumption.The accuracy of preset time can be improved in this way, thus
Improve the accuracy judged mobile terminal power supply status.
S102, mobile terminal power supply status is determined according to the relationship of the voltage value and preset first voltage threshold value,
In, the power supply status includes low-voltage state and normal voltage state.
Specifically, according to the relationship of the voltage value and preset first voltage threshold value refer to according to the voltage value with
The size relation of preset first voltage threshold value.In practical applications, voltage check device can be obtained by a comparator
The voltage value taken is compared with preset first voltage threshold value, determines power supply status according to comparison result.It is specifically as follows
If the supply voltage is greater than the preset first voltage threshold value, it is determined as normal voltage state, the electricity
Detection device is pressed to continue to detect mobile terminal supply voltage every the predetermined time.If the supply voltage is default lower than described
First voltage threshold value, then be determined as low-voltage state, execute step S200.
S200, when mobile terminal power supply is in low-voltage state, in real time obtain power supply voltage value.
Specifically, refer to that mobile terminal is under discharge condition at power supply when mobile terminal power supply is in low-voltage state
In low-voltage state.That is, only when mobile terminal meets two following conditions simultaneously, could to trigger mobile terminal real-time
Obtain the voltage value of power supply.Described two conditions are respectively that mobile terminal is in discharge condition and mobile terminal power supply is in low electricity
Pressure condition.It should also include sentencing between voltage value to be in low-voltage state when mobile terminal power supply and obtain power supply in real time
Disconnected mobile terminal is in charge/discharge state.That is, it is described when mobile terminal power supply is in low-voltage state, it obtains in real time
The voltage value for taking power supply, can specifically include:
S201, when mobile terminal voltage is in low-voltage state, judge the mobile terminal state in which, wherein
The state of mobile terminal includes charged state and discharge condition;
S202, when the mobile terminal is in discharge condition, in real time obtain power supply voltage value.
S203, when the mobile terminal is in charged state, end operation.
Specifically, described when terminal is in charged state, illustrate that mobile terminal will not enter off-mode, so as to
Terminate the operation for obtaining supply voltage value in real time.
S300, calibration charge value is obtained according to the corresponding relationship of preset voltage value and charge value, wherein the corresponding pass
System is the corresponding relationship that battery is in voltage value and charge value under low-voltage state.
Specifically, calibration charge value is obtained according to the corresponding relationship of preset voltage value and charge value to refer to according to default
Voltage value and battery capacity percentage corresponding relationship obtain calibration charge value.The corresponding relationship of the voltage value and charge value
To be preset, for example, presetting n voltage value, be denoted as respectively: V1, V2 ..., Vn, accordingly be arranged n electricity
Value, be denoted as respectively: P1, P2 ..., Pn;And V1, V2 ..., Vn and P1, P2 ..., establish to correspond between Pn and close
System.Wherein, Vn < V (n-1) < ... < V2 < V1 < 3.7V, Pn < P (n-1) < ... < P2 < P1 < 30%.The one-to-one relationship can be
It is a variety of, it is not just described in detail one by one here, only provides example and be illustrated.For example, direct proportion function, linear function etc..
Further, when being lower than 3.4V due to lithium battery voltage, into automatic shutdown state, the intelligent mobile terminal at this time
And the electricity percentage of FPD is 1%, to set 3.4V for voltage minimum V1, electricity minimum value P1 is set as 1%,
In this way when mobile terminal supply voltage is V1=3.4, battery capacity percentage corresponds to 1%, control mobile terminal shutdown.
S400, the charge value for currently showing mobile terminal replace with the calibration charge value, and according to the standard electric
Magnitude controls mobile terminal shutdown.
Specifically, the charge value currently shown is the charge value that mobile terminal is shown when referring to acquisition voltage value,
That is, the battery capacity percentage of display.It is described to refer to basis according to standard electric magnitude control mobile terminal shutdown
The machine open/close state of the calibration charge value control mobile terminal.That is, when calibration charge value cannot support mobile terminal
When operation, mobile terminal controls its shutdown according to calibration charge value.Whether the calibration charge value can maintain mobile terminal to transport
Row can use preset second power threshold to be judged for standard.Correspondingly, described currently to show mobile terminal
Charge value replace with the calibration charge value, and mobile terminal shutdown is controlled according to the standard electric magnitude, specifically included:
S401, the charge value for currently showing mobile terminal replace with the calibration charge value;
S402, the calibration charge value is compared with default second power threshold;
S403, when the calibration charge value is less than default second power threshold, control mobile terminal shutdown.
Specifically, second power threshold is pre-set.In practical applications, when display electricity percentage is
1%, mobile terminal enters automatic shutdown state, so that second power threshold can be 1%.Calibration charge value and 1% is carried out
Compare, when the calibration charge value is greater than 1%, then continues the voltage value for obtaining power supply, and according to pair of voltage value and charge value
It should be related to and electricity is calibrated;When the calibration charge value is less than 1%, control mobile terminal shutdown.
In another embodiment of the present invention, in order to reduce the energy consumption of calibration, thus in step S100 and step S200
Between can also include low battery percentage comparison procedure, be specifically as follows:
S10, obtain the voltage value that show of mobile terminal, by the voltage value with preset the first power threshold into
Row compares;
If S20, the voltage value are more than or equal to default first power threshold, the power supply of mobile terminal is continued to test
State;
If S30, the voltage value are less than default first power threshold, execute according to preset voltage value and electricity
The corresponding relationship of value obtains the step of calibration charge value.
Specifically, first power threshold is for judging whether the mobile terminal is in low battery state.At this
In embodiment, first power threshold is 30%.In this way, being only in low-voltage state, discharge condition simultaneously in mobile terminal
, just can be according to the voltage value calibration charge value of acquisition and when low battery state, and control the charge value control movement after calibration
Terminal machine open/close state.Energy consumption is reduced in this way, improves the standby time of mobile terminal.
The present invention also provides a kind of systems of control mobile terminal shutdown, as shown in Fig. 2, comprising:
Detection module 100, for detecting mobile terminal power supply status, wherein the power supply status includes low-voltage state
With normal voltage state;
Voltage obtains module 200, for obtaining the voltage of power supply in real time when mobile terminal power supply is in low-pressure state
Value;
Charge value calibration module 300, for obtaining calibration electricity according to the corresponding relationship of preset voltage value and charge value
Value, wherein the corresponding relationship is the corresponding relationship that battery is in voltage value and charge value under low-voltage state;
Control module 400, the charge value for currently showing mobile terminal replace with the calibration charge value, and according to
The standard electric magnitude control mobile terminal shutdown.
The detection module specifically includes:
Acquiring unit, for obtaining the voltage value of mobile terminal power supply;
Voltage value comparing unit, for detecting mobile terminal power supply according to the relationship of the voltage value and predetermined voltage threshold
State, wherein the power supply status includes low-voltage state and normal voltage state.
The voltage obtains module and specifically includes:
Judging unit, for judging shape locating for the mobile terminal when mobile terminal voltage is in low-voltage state
State, wherein the state of mobile terminal includes charged state and discharge condition;
First processing units, for obtaining the voltage value of power supply in real time when the mobile terminal is in discharge condition;
The second processing unit is closed for when the mobile terminal is in charged state, controlling the control mobile terminal
The system finishing of machine operates.
The system of the control mobile terminal shutdown, further include:
Charge value obtains module, the voltage value shown for obtaining mobile terminal, by the voltage value and in advance
If the first power threshold is compared;
First execution module continues to obtain if being more than or equal to default first power threshold for the voltage value
The voltage value of power supply;
Second execution module executes if being less than default first power threshold for the voltage value according to default
Voltage value and charge value corresponding relationship obtain calibration charge value the step of.
The control module specifically includes:
Replacement unit, the voltage value for currently showing mobile terminal replace with the calibration charge value;
Charge value comparing unit, for the calibration charge value to be compared with default power threshold;
Control unit, for when the calibration charge value is less than default power threshold, control mobile terminal to shut down.
In embodiment provided by the present invention, it should be understood that disclosed system and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.