Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, it is anti-to provide a kind of mobile terminal
The only method and system of charging over-voltage.Method, the purpose for providing a kind of fast and reliable over-voltage that prevents from charging are to solve now
With the presence of the mobile terminal overvoltage crowbar reaction time in technology, it is possible to rise voltage too fast moment height in charging
Voltage makes protection, easily leads to the impaired problem of mobile terminal.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of method that mobile terminal prevents charging over-voltage, wherein include:
A, several time slots and corresponding charging voltage thresholding, the corresponding charging voltage door of each time slot are marked off in advance
Limit, time slot press descending arrangement, and corresponding charging voltage thresholding is then ascending arrangement;And adjacent charging voltage door
There are rules incremented by successively for the difference of limit;
B, when detecting that current charging voltage is higher than currently set charging voltage thresholding, that is, last setting is obtained
The charging voltage thresholding is arranged if time interval is less than the corresponding time slot of charging voltage thresholding to current time interval
Next charging voltage thresholding;
C, when current set charging voltage thresholding is to be arranged in last charging voltage thresholding then to stop charging.
The method that the mobile terminal prevents charging over-voltage, wherein the step B is specifically included:
B1. it when detecting that charging voltage is higher than currently set charging voltage thresholding, that is, obtains last setting and is somebody's turn to do
Charging voltage thresholding is to current time interval;
B2. if acquired time interval is less than the corresponding time slot of current charging voltage thresholding, judge current set
Whether the charging voltage thresholding set is to be arranged in last charging voltage thresholding, if YES then executing C, otherwise executes B3;
B3., next charging voltage thresholding is set.
The method that the mobile terminal prevents charging over-voltage, wherein the step A further include: when dividing three in advance
Gap t1, t2, t3 and corresponding charging voltage thresholding v1, v2, v3, i.e. t1 correspond to v1, and t2 corresponds to v2, and t3 corresponds to v3;And t1 > t2 >
T3, v1 < v2 < v3, v2-v1 < v3-V2.
The method that the mobile terminal prevents charging over-voltage, wherein between the step A and B further include:
B0, first setting charging voltage thresholding is the charging voltage thresholding for coming first.
The method that the mobile terminal prevents charging over-voltage, wherein further include before step B0 described in the step as
Lower step:
S1. start timer, execute B0 when the timer expires.
The method that the mobile terminal prevents charging over-voltage, wherein the time-out time of the timer is 30 seconds.
The method that the mobile terminal prevents charging over-voltage, wherein after the step C further include:
D, after control stops charging, charger is plugged again, and control restores charging.
A kind of system that mobile terminal prevents charging over-voltage, wherein include:
Module is preset, for marking off several time slots and corresponding charging voltage thresholding in advance, each time slot is corresponding
One charging voltage thresholding, time slot press descending arrangement, and corresponding charging voltage thresholding is then ascending arrangement;And
There are rules incremented by successively for the difference of adjacent charging voltage thresholding;
Detection and thresholding setup module detect that current charging voltage is higher than current set charging voltage door for working as
In limited time, that is, the last charging voltage thresholding that is arranged is obtained to current time interval, if time interval is less than charging electricity
Pressure gate limits corresponding time slot and next charging voltage thresholding is then arranged;
Charge control module, for being to be arranged in last charging voltage thresholding when current set charging voltage thresholding
Then stop charging.
The system that the mobile terminal prevents charging over-voltage, wherein detection with thresholding setup module includes:
Detection unit, for when detecting that charging voltage is higher than currently set charging voltage thresholding, that is, obtaining
The charging voltage thresholding is once set to current time interval;
Judging unit is sentenced if being less than the corresponding time slot of current charging voltage thresholding for acquired time interval
Whether disconnected current set charging voltage thresholding is to be arranged in last charging voltage thresholding;
Setting unit, for next charging voltage thresholding to be arranged.
The system that the mobile terminal prevents charging over-voltage, wherein the module that presets includes: to preset list
Member, for dividing three time slots t1, t2, t3 and corresponding charging voltage thresholding v1, v2, v3 in advance, i.e. t1 corresponds to v1, and t2 is corresponding
V2, t3 correspond to v3;And t1>t2>t3, v1<v2<v3, v2-v1<v3-V2;
Detection and thresholding setup module further include: timer start unit, for controlling starting timer, when timer is super
Constantly executing first setting charging voltage thresholding is the charging voltage thresholding for coming first;
The time-out time of the timer is 30 seconds.
Mobile terminal provided by the present invention prevents the method and system of charging over-voltage, by marking off several time slots in advance
And corresponding charging voltage thresholding, the corresponding charging voltage thresholding of each time slot, time slot presses descending arrangement, corresponding
Charging voltage thresholding is then ascending arrangement;And there are rules incremented by successively for the difference of adjacent charging voltage thresholding;Work as inspection
When measuring charging voltage and being higher than current set charging voltage thresholding, that is, the last charging voltage thresholding that is arranged is obtained to working as
Next charging voltage door is arranged if time interval is less than the corresponding time slot of charging voltage thresholding in preceding time interval
Limit;When current set charging voltage thresholding is to be arranged in last charging voltage thresholding then to stop charging.It effectively solves existing
With the presence of the mobile terminal overvoltage crowbar reaction time in technology, it is possible to rise voltage too fast moment height in charging
Voltage makes protection, easily leads to the impaired problem of mobile terminal, can be possible to rise voltage in charging using the present invention
Too fast instant high-voltage makes protection, to reduce the risk that charging over-voltage damages mobile terminal, improves safety
Property, it provides users with the convenient.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to
It is of the invention in limiting.
Referring to Figure 1, Fig. 1 is the flow chart of the preferred embodiment for the method that mobile terminal of the present invention prevents charging over-voltage.
The method that a kind of mobile terminal shown in FIG. 1 prevents charging over-voltage, comprising:
Step S10, several time slots and corresponding charging voltage thresholding, the corresponding charging electricity of each time slot are marked off in advance
Pressure gate limit, time slot press descending arrangement, and corresponding charging voltage thresholding is then ascending arrangement;And adjacent charging electricity
There are rules incremented by successively for the difference of pressure gate limit;
Such as: it divides three time slots t1, t2, t3 in advance and corresponding charging voltage thresholding v1, v2, v3, i.e. t1 corresponds to v1,
T2 corresponds to v2, and t3 corresponds to v3;And t1>t2>t3, v1<v2<v3, v2-v1<v3-V2.
Step S20, when detecting that current charging voltage is higher than currently set charging voltage thresholding, that is, upper one is obtained
Secondary setting charging voltage thresholding is to current time interval, if time interval is less than the corresponding time slot of charging voltage thresholding
Next charging voltage thresholding is then set;
In the specific implementation, start timer, execute B0 when (for example, 30 seconds) when the timer times out.B0. first setting is filled
Piezoelectric voltage thresholding is the charging voltage thresholding for coming first.
B1. it when detecting that charging voltage is higher than currently set charging voltage thresholding, that is, obtains last setting and is somebody's turn to do
Charging voltage thresholding is to current time interval;
B2. if acquired time interval is less than the corresponding time slot of current charging voltage thresholding, judge current set
Whether the charging voltage thresholding set is to be arranged in last charging voltage thresholding, if YES then executing S30, otherwise executes B3;
B3., next charging voltage thresholding is set.
When " last time setting charging voltage thresholding time interval till now " is closer, illustrate that charger output voltage changes
Quickly, when time slot corresponding less than the thresholding, next detection voltage threshold is set.
S30, the charging voltage thresholding set by current are to be arranged in last charging voltage thresholding then to stop charging.
The method of the present invention is described in further details below by way of a specific Application Example:
S100 executes step S200 when detecting that mobile terminal connects charger;Starting time-out time simultaneously is 30 seconds
Timer, when the timer expires also will execute step S200;
It should be noted that step S200 will be immediately performed when detecting that mobile terminal connects charger, but simultaneously
Start timer.
S200, resets timer, and setting charging voltage thresholding is v1;
It should be noted that dividing three time slots t1, t2, t3 and corresponding charging voltage thresholding in advance in the present embodiment
V1, v2, v3, i.e. t1 correspond to v1, and t2 corresponds to v2, and t3 corresponds to v3;And t1>t2>t3, v1<v2<v3, v2-v1<v3-V2;
For example t1 is 2 microseconds, and t2 is 1.2 microseconds, and t3 is 0.8 microsecond, and v1 is 6.5 volts, and v2 is 7.5 volts, and v3 is 9.5 volts,
It meets t1>t2>t3, v1<v2<v3, v2-v1<v3-V2, such purpose be exactly enable charging voltage when rising very fast by
It detects quickly;
The effect of timer is after certain primary execution step S300, if 30 seconds later voltage does not detect again
It is higher than set charging voltage thresholding to charging voltage, then is resetted.
S300 obtains last setting when detecting that charging voltage is higher than currently set charging voltage thresholding
The charging voltage thresholding is arranged if time interval is less than the corresponding time slot of charging voltage thresholding to current time interval
Next charging voltage thresholding;When current set charging voltage thresholding is to be arranged in last charging voltage thresholding then to stop
Charging;
Specifically, when detecting that charging voltage is higher than currently set charging voltage thresholding, i.e. the acquisition last time sets
The charging voltage thresholding is set to current time interval;If time interval is less than the corresponding time slot of charging voltage thresholding,
Whether the current set charging voltage thresholding of judgement is to be arranged in (the i.e. current set charging of last charging voltage thresholding
Whether voltage threshold is v3), if YES then stop charging, otherwise next charging voltage thresholding is set (i.e. current set
Charging voltage thresholding is that charging voltage thresholding is then arranged if v1 is v2, current set charging voltage thresholding be if v2 then
Setting charging voltage thresholding is v3);
In addition, the purpose for stopping charging is mobile whole for preventing detected potential high-voltage charge bring from damaging
The risk at end, hereafter needing to plug charger again could restore to charge.
The present invention provides a kind of fast and reliable method, purposes for preventing charging over-voltage to be that solution moves in the prior art
Dynamic terminal overvoltage crowbar is possible to rise voltage too fast instant high-voltage in charging and makes guarantor there are the reaction time
Shield, easily leads to the impaired problem of mobile terminal.
Based on above method embodiment, the present invention also provides the system that a kind of mobile terminal prevents charging over-voltage, such as Fig. 3
It is shown, the system comprises:
Module 310 is preset, for marking off several time slots and corresponding charging voltage thresholding, each time slot pair in advance
A charging voltage thresholding is answered, time slot presses descending arrangement, and corresponding charging voltage thresholding is then ascending arrangement;And
And there are rules incremented by successively for the difference of adjacent charging voltage thresholding;As detailed above.
Detection and thresholding setup module 320 detect that current charging voltage is higher than current set charging electricity for working as
Pressure gate is prescribed a time limit, that is, obtains the last charging voltage thresholding that is arranged to current time interval, if time interval is filled less than this
Next charging voltage thresholding is then arranged in the corresponding time slot of piezoelectric voltage thresholding;As detailed above.
Charge control module 330, for being to be arranged in last charging voltage when current set charging voltage thresholding
Thresholding then stops charging;As detailed above.
The system that the mobile terminal prevents charging over-voltage, wherein detection with thresholding setup module includes:
Detection unit, for when detecting that charging voltage is higher than currently set charging voltage thresholding, that is, obtaining
The charging voltage thresholding is once set to current time interval;As detailed above.
Judging unit is sentenced if being less than the corresponding time slot of current charging voltage thresholding for acquired time interval
Whether disconnected current set charging voltage thresholding is to be arranged in last charging voltage thresholding;As detailed above.
Setting unit, for next charging voltage thresholding to be arranged;As detailed above.
The system that the mobile terminal prevents charging over-voltage, wherein the module that presets includes: to preset list
Member, for dividing three time slots t1, t2, t3 and corresponding charging voltage thresholding v1, v2, v3 in advance, i.e. t1 corresponds to v1, and t2 is corresponding
V2, t3 correspond to v3;And t1>t2>t3, v1<v2<v3, v2-v1<v3-V2;As detailed above.
Detection and thresholding setup module further include: timer start unit, for controlling starting timer, when timer is super
Constantly executing first setting charging voltage thresholding is the charging voltage thresholding for coming first;
The time-out time of the timer is 30 seconds;As detailed above.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Related hardware (such as processor, controller etc.) is instructed to complete by computer program, the program can be stored in a meter
In the storage medium that calculation machine can be read, which may include the process such as above-mentioned each method embodiment when being executed.It is wherein described
Storage medium can be for memory, magnetic disk, CD etc..
In conclusion a kind of mobile terminal provided by the invention prevents the method and system of charging over-voltage, the method is logical
After marking off several time slots and corresponding charging voltage thresholding, the corresponding charging voltage thresholding of each time slot in advance, time slot is pressed
Descending arrangement, corresponding charging voltage thresholding are then ascending arrangements;And the difference of adjacent charging voltage thresholding is deposited
In rule incremented by successively;When detecting that charging voltage is higher than currently set charging voltage thresholding, that is, obtain last
The charging voltage thresholding is set to current time interval, if time interval is less than the corresponding time slot of charging voltage thresholding
Next charging voltage thresholding is set;When current set charging voltage thresholding is to be arranged in last charging voltage thresholding then
Stop charging.Mobile terminal overvoltage crowbar in the prior art is effectively solved to be possible in charging pair there are the reaction time
Voltage rises too fast instant high-voltage and makes protection, easily leads to the impaired problem of mobile terminal, to reduce charging over-voltage
The risk that mobile terminal is damaged.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.