The charging method of a kind of terminal and deviceTechnical field
The present invention relates to communication technical field, the charging method of a kind of terminal and device.
Background technology
The most numerous end products, such as mobile phone, tablet (panel computer), wireless router etc. produceProduct are provided with the lithium battery of high power capacity, and are equipped with the function charged by computer USB mouth.
As long as existing end product is connected on PC by USB interface, then the battery of terminal starts to lead toCrossing USB port charging, the time being connected on PC due to terminal may be the longest, therefore, and the battery of terminalBattery quick aging may be caused by full charge, overcharge, shorten the life-span of battery, continuing of batteryBoat ability also can decline.
Therefore, in order to avoid terminal is electrically charged and full charge in the case of battery electric quantity abundance, extendThe battery life of end product, the charging method of existing end product also needs to improve.
Summary of the invention
The technical problem to be solved is to provide charging method and the device of a kind of terminal, it is possible to keep awayExempt from terminal to be electrically charged and full charge in the case of battery electric quantity abundance, extend the battery longevity of end productLife.
In order to solve above-mentioned technical problem, the invention provides the charging method of a kind of terminal, the method bagInclude:
After detecting that the USB interface of terminal powers on;
Such as the optimization charge condition of satisfied setting, the then regular current electric quantity according to the described terminal detectedIt is charged management, including, change charged state in the following manner:
Terminal be not at charged state and as described in current electric quantity less than first threshold, then described terminal is enteredRow charging;
Terminal be in charged state and as described in current electric quantity more than or equal to Second Threshold, then stop charging;
Wherein, described first threshold is less than described Second Threshold, and described Second Threshold is less than or equal to batteryFull Charge Capacity.
Further, described optimization charge condition, including: opposite equip. can be by described USB interfaceCommunicate with this terminal;
After detecting that the USB interface of terminal powers on, opposite equip. can not by as described in USB interfaceCommunicate with this terminal, then described terminal is charged until electricity is full of.
Further, it is judged that whether opposite equip. can be communicated with this terminal by described USB interface,Including: after USB interface terminal being detected powers on, shake hands with described opposite equip., if heldHands success, then judge that described opposite equip. can be communicated with this terminal by described USB interface, noThen judge that described opposite equip. can not be communicated with this terminal by described USB interface.
Further, it is impossible to enough opposite equip.s communicated by described USB interface and this terminal, bagInclude: charger.
Further, described optimization charge condition, including: the charge mode of user setup is for optimizing chargingPattern.
In order to solve above-mentioned technical problem, present invention also offers the charging device of a kind of terminal, including:
Detection module, after detecting that the USB interface of terminal powers on, opens charge management module;
Charge management module, is used for as met the optimization charge condition set, then regular basis detectsThe current electric quantity of described terminal is charged management, including, change charged state in the following manner: such as endEnd is not at charged state and described current electric quantity is less than first threshold, then be charged described terminal;Terminal be in charged state and as described in current electric quantity more than or equal to Second Threshold, then stop charging;InstituteState first threshold and be less than or equal to battery Full Charge Capacity less than described Second Threshold, described Second Threshold.
Further, described optimization charge condition, including: opposite equip. can be by described USB interfaceCommunicate with this terminal;
Charge management module, be additionally operable to opposite equip. can not by as described in USB interface enter with this terminalRow communication, then be charged described terminal until electricity is full of.
Further, it is judged that whether opposite equip. can be communicated with this terminal by described USB interface,Including: after USB interface terminal being detected powers on, shake hands with described opposite equip., if heldHands success, then judge that described opposite equip. can be communicated with this terminal by described USB interface, noThen judge that described opposite equip. can not be communicated with this terminal by described USB interface.
Further, it is impossible to enough opposite equip.s communicated by described USB interface and this terminal, bagInclude: charger.
Further, described optimization charge condition, including: the charge mode of user setup is for optimizing chargingPattern.
Compared with prior art, the charging method of a kind of terminal that the present invention provides and device, end detectedAfter the USB interface of end powers on, such as the optimization charge condition of satisfied setting, the then institute that periodically basis detectsThe current electric quantity stating terminal is charged management, including: when the current electric quantity of battery is less than low threshold,Opening and charge until being charged to during a high threshold be automatically stopped charging, the current electric quantity at battery is higher than lowWhen thresholding and terminal are not on charged state, it is not turned on charging.The method is it can be avoided that terminal is at batteryIt is electrically charged and full charge in the case of electricity abundance, extends the battery life of end product.
Accompanying drawing explanation
Fig. 1 is the charging method flow chart of a kind of terminal of the embodiment of the present invention.
Fig. 2 is the structural representation of the charging device of a kind of terminal of the embodiment of the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawingEmbodiments of the invention are described in detail.It should be noted that in the case of not conflicting, this ShenEmbodiment in please and the feature in embodiment can mutual combination in any.
Root, it was found that lithium battery maintains the 80% of Full Charge Capacity, can improve the service life of battery, thisBright embodiment gives the scheme that improve battery life theoretical according to this research.
As it is shown in figure 1, embodiments provide the charging method of a kind of terminal, the method includes:
S10, after detecting that the USB interface of terminal powers on, performs step S20;
S20, such as the optimization charge condition of satisfied setting, then regular current according to the described terminal detectedElectricity is charged management, including, change charged state in the following manner:
Terminal be not at charged state and as described in current electric quantity less than first threshold, then described terminal is enteredRow charging;
Terminal be in charged state and as described in current electric quantity more than or equal to Second Threshold, then stop charging;Described first threshold is less than described Second Threshold, and described Second Threshold is less than or equal to battery Full Charge Capacity.
Step S20 farther includes following feature:
Wherein, it is contemplated that user is when utilizing charger to be charged terminal, it is intended to battery is full of,Therefore, according to the use habit of user, it is set as including " opposite equip. energy by described optimization charge conditionEnough communicated by described USB interface and this terminal " condition, then detect that the USB of terminal connectsMouth power on after, opposite equip. can not by as described in USB interface communicate with this terminal, then to instituteState terminal to be charged until electricity is full of;
Wherein, it is judged that whether opposite equip. can be communicated with this terminal by described USB interface, bagInclude: after USB interface terminal being detected powers on, shake hands with described opposite equip., if shaken handsSuccess, then judge that described opposite equip. can be communicated with this terminal by described USB interface, otherwiseJudge that described opposite equip. can not be communicated with this terminal by described USB interface;
Wherein, it is impossible to enough opposite equip.s communicated by described USB interface and this terminal, including:Charger;
Wherein, it is contemplated that the diversified demand of user, therefore, by " optimization charge mode ", being set to canOption, user can select to use the charge mode of " optimization charge mode ", it is also possible to selects to use nowThere is " normal charging mode " in technology;
Wherein, when setting optimization charge condition, " opposite equip. can be by described USB interface and this endEnd communicates " the condition of condition and " charge mode of user setup be optimization charge mode ", twoPerson can be independently operated, and can also be used in combination;When the two is used in combination, as opposite equip. can lead toCross described USB interface and this terminal communicate and the charge mode of user setup is for optimizing charge mode,Then periodically it is charged management according to the current electric quantity of the described terminal detected.
As in figure 2 it is shown, embodiments provide the charging device of a kind of terminal, including:
Detection module, after detecting that the USB interface of terminal powers on, opens charge management module;
Charge management module, is used for as met the optimization charge condition set, then regular basis detectsThe current electric quantity of described terminal is charged management, including, change charged state in the following manner: such as endEnd is not at charged state and described current electric quantity is less than first threshold, then be charged described terminal;Terminal be in charged state and as described in current electric quantity more than or equal to Second Threshold, then stop charging;InstituteState first threshold and be less than or equal to battery Full Charge Capacity less than described Second Threshold, described Second Threshold.
Wherein, described optimization charge condition, including: opposite equip. can be by described USB interface and basisTerminal communicates;
Charge management module, be additionally operable to opposite equip. can not by as described in USB interface enter with this terminalRow communication, then be charged described terminal until electricity is full of.
Wherein, it is judged that whether opposite equip. can be communicated with this terminal by described USB interface, bagInclude: after USB interface terminal being detected powers on, shake hands with described opposite equip., if shaken handsSuccess, then judge that described opposite equip. can be communicated with this terminal by described USB interface, otherwiseJudge that described opposite equip. can not be communicated with this terminal by described USB interface.
Wherein, it is impossible to enough opposite equip.s communicated by described USB interface and this terminal, including:Charger.
Wherein, described optimization charge condition, including: the charge mode of user setup is for optimizing charge mode.
The charging method of a kind of terminal that above-described embodiment provides and device, detect the USB interface of terminalAfter powering on, such as the optimization charge condition of satisfied setting, then regular current according to the described terminal detectedElectricity be charged management, including: battery current electric quantity less than low threshold time, open charging untilBeing charged to during a high threshold be automatically stopped charging, the current electric quantity at battery does not has higher than low threshold and terminalWhen being in charged state, it is not turned on charging.The method is it can be avoided that terminal is in the sufficient feelings of battery electric quantityIt is electrically charged and full charge under condition, extends the battery life of end product.
One of ordinary skill in the art will appreciate that all or part of step in said method can pass through programInstructing related hardware to complete, described program can be stored in computer-readable recording medium, as read-onlyMemorizer, disk or CD etc..Alternatively, all or part of step of above-described embodiment can also useOne or more integrated circuits realize, and correspondingly, each module/unit in above-described embodiment can useThe form of hardware realizes, it would however also be possible to employ the form of software function module realizes.The present invention is not restricted to appointThe combination of the hardware and software of what particular form.
It should be noted that the present invention also can have other various embodiments, without departing substantially from the present invention spirit andIn the case of its essence, those of ordinary skill in the art can make various corresponding change according to the present inventionAnd deformation, but these change accordingly and deform the protection model that all should belong to appended claims of the inventionEnclose.