A kind of charging method of terminal and device
Technical field
The present invention relates to communication technical field, in particular a kind of charging method of terminal and device.
Background technology
Current numerous end product, products such as mobile phone, tablet (panel computer), wireless router all has been equipped with the lithium battery of high power capacity, and has been equipped with by the function of computer USB mouth charging.
Existing end product is as long as be connected on PC by USB interface, the battery of terminal starts to charge by the USB mouth, because the time that terminal is connected on PC may be very long, therefore, the battery of terminal may completely be charged, be overcharged, cause the battery quick aging, shortened the life-span of battery, the flying power of battery also can descend.
Therefore, for fear of terminal, in the situation that the battery electric quantity abundance is recharged and full charging, extend the battery life of end product, the charging method of existing end product also needs to improve.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of charging method and device of terminal, can avoid terminal in the situation that the battery electric quantity abundance is recharged and full charging, extends the battery life of end product.
In order to solve the problems of the technologies described above, the invention provides a kind of charging method of terminal, the method comprises:
After the USB interface that terminal detected powers on;
As met the optimization charge condition of setting, regularly according to the current electric quantity of the described terminal detected, carry out Charge Management, comprise, change in the following manner charged state:
As terminal not in charged state and as described in current electric quantity lower than first threshold, described terminal is charged;
As terminal in charged state and as described in current electric quantity be more than or equal to Second Threshold, stop the charging;
Wherein, described first threshold is less than described Second Threshold, and described Second Threshold is less than or equal to the battery Full Charge Capacity.
Further, described optimization charge condition comprises: opposite equip. can communicate by described USB interface and this terminal;
After the USB interface that terminal detected powers on, as opposite equip. can not by as described in USB interface and this terminal communicate, described terminal is charged until electric weight is full of.
Further, judge whether opposite equip. can communicate by described USB interface and this terminal, comprise: after the USB interface that terminal detected powers on, with described opposite equip., shaken hands, if shake hands successfully, judge that described opposite equip. can communicate by described USB interface and this terminal, otherwise judge that described opposite equip. can not communicate by described USB interface and this terminal.
Further, the opposite equip. that can not communicate by described USB interface and this terminal, comprising: charger.
Further, described optimization charge condition comprises: the charge mode that the user arranges is for optimizing charge mode.
In order to solve the problems of the technologies described above, the present invention also provides a kind of charging device of terminal, comprising:
Detection module, after powering on for detection of the USB interface to terminal, open charge management module;
Charge management module, for the optimization charge condition as satisfied setting, regularly according to the current electric quantity of the described terminal detected, carry out Charge Management, comprise, change in the following manner charged state: as terminal not in charged state and as described in current electric quantity lower than first threshold, described terminal is charged; As terminal in charged state and as described in current electric quantity be more than or equal to Second Threshold, stop the charging; Described first threshold is less than described Second Threshold, and described Second Threshold is less than or equal to the battery Full Charge Capacity.
Further, described optimization charge condition comprises: opposite equip. can communicate by described USB interface and this terminal;
Charge management module, also for as opposite equip. can not by as described in USB interface and this terminal communicate, described terminal is charged until electric weight is full of.
Further, judge whether opposite equip. can communicate by described USB interface and this terminal, comprise: after the USB interface that terminal detected powers on, with described opposite equip., shaken hands, if shake hands successfully, judge that described opposite equip. can communicate by described USB interface and this terminal, otherwise judge that described opposite equip. can not communicate by described USB interface and this terminal.
Further, the opposite equip. that can not communicate by described USB interface and this terminal, comprising: charger.
Further, described optimization charge condition comprises: the charge mode that the user arranges is for optimizing charge mode.
Compared with prior art, the charging method of a kind of terminal provided by the invention and device, after the USB interface that terminal detected powers on, as met the optimization charge condition of setting, regularly according to the current electric quantity of the described terminal detected, carry out Charge Management, comprising: in the current electric quantity of battery during lower than low threshold, open charging until automatically stop charging while being charged to a high threshold, during not in charged state, do not open charging higher than low threshold and terminal in the current electric quantity of battery.The method can avoid terminal in the situation that the battery electric quantity abundance is recharged and full charging, extends the battery life of end product.
The accompanying drawing explanation
The charging method flow chart of a kind of terminal that Fig. 1 is the embodiment of the present invention.
The structural representation of the charging device of a kind of terminal that Fig. 2 is the embodiment of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing, embodiments of the invention are elaborated.It should be noted that, in the situation that do not conflict, the embodiment in the application and the feature in embodiment be combination in any mutually.
According to research, lithium battery maintains 80% of Full Charge Capacity, can improve the useful life of battery, and the embodiment of the present invention has provided the scheme according to the raising battery life of this research theory.
As shown in Figure 1, the embodiment of the present invention provides a kind of charging method of terminal, and the method comprises:
S10, after the USB interface that terminal detected powers on, execution step S20;
S20, as met the optimization charge condition of setting, regularly carry out Charge Management according to the current electric quantity of the described terminal detected, and comprises, changes in the following manner charged state:
As terminal not in charged state and as described in current electric quantity lower than first threshold, described terminal is charged;
As terminal in charged state and as described in current electric quantity be more than or equal to Second Threshold, stop the charging; Described first threshold is less than described Second Threshold, and described Second Threshold is less than or equal to the battery Full Charge Capacity.
Step S20 further comprises following characteristics:
Wherein, consider that the user is when utilizing charger to be charged to terminal, tend to battery is full of, therefore, according to user's use habit, described optimization charge condition is set as comprising to the condition of " opposite equip. can communicate by described USB interface and this terminal ", after the USB interface that terminal detected powers on, as opposite equip. can not by as described in USB interface and this terminal communicate, described terminal is charged until electric weight is full of;
Wherein, judge whether opposite equip. can communicate by described USB interface and this terminal, comprise: after the USB interface that terminal detected powers on, with described opposite equip., shaken hands, if shake hands successfully, judge that described opposite equip. can communicate by described USB interface and this terminal, otherwise judge that described opposite equip. can not communicate by described USB interface and this terminal;
Wherein, the opposite equip. that can not communicate by described USB interface and this terminal, comprising: charger;
Wherein, consider user's diversified demand, therefore, " optimization charge mode " is set to option, the user can select to adopt the charge mode of " optimization charge mode ", also can select to adopt " common charge mode " of the prior art;
Wherein, set while optimizing charge condition, the condition of the condition of " opposite equip. can communicate by described USB interface and this terminal " and " charge mode that the user arranges is for optimizing charge mode ", the two can independently use, and also can combine use; When the two is combined while using, as opposite equip. can by as described in USB interface with this terminal communicates and the user arranges charge mode for optimizing charge mode, the current electric quantity of the described terminal that regularly basis detects is carried out Charge Management.
As shown in Figure 2, the embodiment of the present invention provides a kind of charging device of terminal, comprising:
Detection module, after powering on for detection of the USB interface to terminal, open charge management module;
Charge management module, for the optimization charge condition as satisfied setting, regularly according to the current electric quantity of the described terminal detected, carry out Charge Management, comprise, change in the following manner charged state: as terminal not in charged state and as described in current electric quantity lower than first threshold, described terminal is charged; As terminal in charged state and as described in current electric quantity be more than or equal to Second Threshold, stop the charging; Described first threshold is less than described Second Threshold, and described Second Threshold is less than or equal to the battery Full Charge Capacity.
Wherein, described optimization charge condition comprises: opposite equip. can communicate by described USB interface and this terminal;
Charge management module, also for as opposite equip. can not by as described in USB interface and this terminal communicate, described terminal is charged until electric weight is full of.
Wherein, judge whether opposite equip. can communicate by described USB interface and this terminal, comprise: after the USB interface that terminal detected powers on, with described opposite equip., shaken hands, if shake hands successfully, judge that described opposite equip. can communicate by described USB interface and this terminal, otherwise judge that described opposite equip. can not communicate by described USB interface and this terminal.
Wherein, the opposite equip. that can not communicate by described USB interface and this terminal, comprising: charger.
Wherein, described optimization charge condition comprises: the charge mode that the user arranges is for optimizing charge mode.
The charging method of a kind of terminal that above-described embodiment provides and device, after the USB interface that terminal detected powers on, as met the optimization charge condition of setting, regularly according to the current electric quantity of the described terminal detected, carry out Charge Management, comprise: in the current electric quantity of battery during lower than low threshold, open charging until automatically stop charging while being charged to a high threshold, in the current electric quantity of battery, higher than low threshold and terminal, during not in charged state, do not open charging.The method can avoid terminal in the situation that the battery electric quantity abundance is recharged and full charging, 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 come the instruction related hardware to complete by program, described program can be stored in computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuits, and correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that; the present invention also can have other various embodiments; in the situation that do not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.