A kind of method and mobile terminal controlling output current of charger based on mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly, to one kind control output current of charger based on mobile terminal
Method and mobile terminal.
Background technology
Development with mobile communication and the continuous improvement of people's living standard, the use of various mobile terminals such as mobile phone is got over
More to popularize, mobile phone has become as indispensable means of communication in people's life.Existing mobile terminal function gets more and more,
It is a problem that its battery charges.
The needs fast in order to meet high capacity cell charging, mobile terminal will be furnished with high-power charger, to improve charging
Speed.However, when user connects charger and uses mobile terminal, electric current should being confessed due to charger and is used for charging, again
Confess electric current to use for mobile terminal, therefore, output current of charger is very big;If being not added with to output current of charger controlling
System, can lead to mobile terminal temperature to increase rapidly, bring danger.
Therefore, prior art has yet to be improved and developed.
Content of the invention
The technical problem to be solved in the present invention is, uses mobile terminal for user in prior art in connection charger
When, the defect that mobile terminal temperature increases rapidly, provide a kind of based on mobile terminal control output current of charger method and
Mobile terminal.The method providing a kind of control output current of charger of fast and reliable, decreases potential safety hazard, improves peace
Quan Xing.
The technical scheme that present invention solution technical problem is adopted is as follows:
A kind of method that output current of charger is controlled based on mobile terminal, wherein, comprising:
A, preserve when mobile terminal charges each application program corresponding charger output electricity in advance in the terminal
Flow valuve;
B, when mobile terminal charges, obtain currently open the application list;
The output current of charger value corresponding with all application programs opened that c, inquiry prestore, and compare this
A little application program corresponding output current of charger values opened, obtain wherein one minimum current value;
D, by be used in charger mobile terminal use output current be set to described minimum current value.
Described controls the method for output current of charger it is characterised in that described step c is also wrapped based on mobile terminal
Include:
C1, when only opening an application program in mobile terminal charging process, then obtain the corresponding charger of this application
Output current value;
C2, the output current using for mobile terminal of the current setting of acquisition, and answer with being somebody's turn to do of acquisition in step c1
Compared with corresponding output current of charger value.
The described method that output current of charger is controlled based on mobile terminal, wherein, described step d also includes:
If this application program of d1 corresponding output current of charger value is less than using for mobile terminal of current setting
Output current, then will be used in charger for mobile terminal use output current be set to the corresponding charging of this application program
Device output current value.
The described method that output current of charger is controlled based on mobile terminal, wherein, described step a also includes:
Preserve each application program corresponding output current of charger value in advance in a memory in the mobile terminal.
The described method that output current of charger is controlled based on mobile terminal, wherein, described step b also includes:
B1, when mobile terminal charges, detect and determine whether that application is opened;
B2, when there being application to open, then obtain currently open the application list.
A kind of mobile terminal, wherein, comprising:
Prestore module, correspond to for preserving each application program when mobile terminal charges in advance in the terminal
Output current of charger value;
Open program acquisition module, for when mobile terminal charges, obtaining currently open the application list;
Inquiry and comparison module, defeated for inquiring about the charger corresponding with all application programs opened prestoring
Go out current value, and compare the application program corresponding output current of charger value that these have opened, obtain wherein one minimum current
Value;
Applied current setup module, for by be used in charger mobile terminal use output current be set to described in
Small current value.
Described mobile terminal, wherein, described inquiry is included with comparison module:
Query unit, for inquiring about the output current of charger corresponding with all application programs opened prestoring
Value;When only opening an application program in mobile terminal charging process, then obtain the corresponding output current of charger of this application
Value;
Acquiring unit and comparing unit, the corresponding output current of charger value of the application program for more having opened, obtain
Arrive wherein one minimum current value;Or when only opening an application program in mobile terminal charging process, obtain and currently arrange
For mobile terminal use output current, and with obtain this application corresponding output current of charger value compared with
Relatively.
Described mobile terminal, wherein, described applied current setup module includes:
First arranging unit, supplies for the output current being used for mobile terminal use in charger is set to application program
Minimum current value in electric current;
Second arranging unit, for when only opening an application program in mobile terminal charging process, if this application journey
Sequence corresponding output current of charger value is less than the output current using for mobile terminal of current setting, then by charger
In for for mobile terminal use output current be set to this application program corresponding output current of charger value.
Described mobile terminal, wherein, the described module that prestores includes: memory cell, in advance mobile whole
Each application program corresponding output current of charger value is preserved in the memorizer at end.
Described mobile terminal, wherein, described program acquisition module of opening includes:
Detector unit, for when mobile terminal charges, detecting and determining whether that application is opened;
Acquiring unit, for when there being application to open, then obtaining currently open the application list.
A kind of method and mobile terminal controlling output current of charger based on mobile terminal provided by the present invention, due to
Employ when mobile terminal charges, obtain currently open the application list;What inquiry prestored is beaten with all
The application program corresponding output current of charger value opened, and compare the application program corresponding charger output that these have opened
Current value, obtains wherein one minimum current value;By be used in charger mobile terminal use output current be set to described in
Small current value.Its suitable output current of charger of application control that can be opened according to mobile terminal is it is ensured that mobile terminal
The safety charging, decreases potential safety hazard, improves safety.
Brief description
Fig. 1 is the flow process of the first preferred embodiment of method that the present invention controls output current of charger based on mobile terminal
Figure.
Fig. 2 is that the method based on mobile terminal control output current of charger described in second embodiment of the invention is preferably real
The flow chart applying example.
Fig. 3 is the functional schematic block diagram of the preferred embodiment of the mobile terminal of the present invention.
Specific embodiment
For making the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention further describes.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and without
In the restriction present invention.
Refer to Fig. 1, Fig. 1 is the first preferable reality of the method that the present invention controls output current of charger based on mobile terminal
The flow chart applying example.The method that output current of charger is controlled based on mobile terminal shown in Fig. 1, comprising:
Step s100, preserve the corresponding charger of each application program when mobile terminal charges in advance in the terminal
Output current value.
In the embodiment of the present invention, need to preserve the corresponding charging of each application program in advance in a memory in the mobile terminal
Device output current value, that is, store the output current of charger value that each application program needs when charging.For example: wechat is corresponding
Charger current value is 1300ma, and the corresponding charger current value of MPC is 900ma, cuts the corresponding charger current of Citrullus vulgariss
It is worth for 950ma.
Step s200, when mobile terminal charges, obtain currently open the application list;I.e. when mobile terminal is opened
When machine charges, detect and determine whether that application is opened, when there being application to open, then obtain currently open Application Column
Table.
The output current of charger value corresponding with all application programs opened that step s300, inquiry prestore,
And compare the application program corresponding output current of charger value that these have opened, obtain wherein one minimum current value.
After obtaining currently open the application list, then one by one inquiry prestore with all opened should
With program one-to-one output current of charger value, and compare the application program corresponding charger output electricity that these have opened
Flow valuve, obtains wherein one minimum current value.
Step s400, by be used in charger mobile terminal use output current be set to described minimum current value.
The maximum output current that will use for mobile terminal in charger in the present invention be set to all open should
With minimum output current of charger value in program.For example, currently open application has: wechat, MPC, cuts Citrullus vulgariss;
If getting the corresponding charger current value of wechat from memorizer is 1300ma, the corresponding charger current value of MPC is
900ma, cutting the corresponding charger current value of Citrullus vulgariss is 950ma;Then choosing the little value of the electricity in these current values is 900ma, by filling
On electric current setting charger, the maximum allowable electric current flowing through is 900ma.
The method that output current of charger is controlled based on mobile terminal described in second embodiment of the invention, as shown in Fig. 2
Comprise the following steps:
Step s10, when only opening an application program in mobile terminal charging process, then obtain that this application is corresponding to fill
Electrical equipment output current value;
Step s20, obtain the output current using for mobile terminal of current setting, and with step s10 in obtain
This application corresponding output current of charger value compare:
If this application program of step s30 corresponding output current of charger value is less than the whole for moving of current setting
The output current that end uses, then be set to this application program by the output current being used in charger using for mobile terminal and correspond to
Output current of charger value.
In this second embodiment when an application program is opened, first whether detection mobile terminal connects charger;As
Fruit mobile terminal has connected charger and has then obtained this application corresponding output current of charger value from memorizer.
Obtain the output current of charger of current setting, and with obtain this application corresponding output current of charger value phase
Relatively, if this application program corresponding output current of charger value is less than the output using for mobile terminal of current setting
Electric current, then be set to the output of this application program corresponding charger by the output current being used in charger using for mobile terminal
Current value.For example: if currently having arranged the maximum allowable electric current tided on charger is 950ma, if application program cuts Citrullus vulgariss quilt
Open, then obtaining from memorizer and cutting Citrullus vulgariss corresponding output current of charger value is 900ma;Then maximum fair on setting charger
Being permitted the electric current that flows through is 900ma, to limit the electric current of charger output it is ensured that the safety of mobile terminal.
Therefore, the invention provides a kind of method of the control output current of charger of fast and reliable, decrease peace
Full hidden danger, improves safety.
Based on above-described embodiment, present invention also offers a kind of mobile terminal, as shown in Figure 3, comprising:
Prestore module 410, for preserving each application program when mobile terminal charges in advance in the terminal
Corresponding output current of charger value;As detailed above.
Open program acquisition module 420, for when mobile terminal charges, obtaining currently open Application Column
Table;As detailed above.
Inquiry and comparison module 430, for inquiring about the charging corresponding with all application programs opened prestoring
Device output current value, and compare the application program corresponding output current of charger value that these have opened, obtain wherein one minimum
Current value;As detailed above.
Applied current setup module 440, for being set to institute by the output current being used for mobile terminal use in charger
State minimum current value;As detailed above.
Described mobile terminal, wherein, described inquiry is included with comparison module:
Query unit, for inquiring about the output current of charger corresponding with all application programs opened prestoring
Value;When only opening an application program in mobile terminal charging process, then obtain the corresponding output current of charger of this application
Value;As detailed above.
Acquiring unit and comparing unit, the corresponding output current of charger value of the application program for more having opened, obtain
Arrive wherein one minimum current value;Or when only opening an application program in mobile terminal charging process, obtain and currently arrange
For mobile terminal use output current, and with obtain this application corresponding output current of charger value compared with
Relatively;As detailed above.
Described mobile terminal, wherein, described applied current setup module includes:
First arranging unit, supplies for the output current being used for mobile terminal use in charger is set to application program
Minimum current value in electric current;As detailed above.
Second arranging unit, for when only opening an application program in mobile terminal charging process, if this application journey
Sequence corresponding output current of charger value is less than the output current using for mobile terminal of current setting, then by charger
In for for mobile terminal use output current be set to this application program corresponding output current of charger value;Specifically as above
Described.
Described mobile terminal, wherein, the described module that prestores includes: memory cell, in advance mobile whole
Each application program corresponding output current of charger value is preserved in the memorizer at end;As detailed above.
Described mobile terminal, wherein, described program acquisition module of opening includes:
Detector unit, for when mobile terminal charges, detecting and determining whether that application is opened;As detailed above.
Acquiring unit, for when there being application to open, then obtaining currently open the application list;Concrete as above institute
State.
In sum, a kind of method and movement controlling output current of charger based on mobile terminal provided by the present invention
Terminal, due to employing when mobile terminal charges, obtains currently open the application list;Inquiry prestore with
The corresponding output current of charger value of all application programs opened, and compare that the application program that these have opened is corresponding to be filled
Electrical equipment output current value, obtains wherein one minimum current value;The output current setting of mobile terminal use will be used in charger
For described minimum current value.Its suitable output current of charger of application control that can be opened according to mobile terminal it is ensured that
The safety that mobile terminal charges, decreases potential safety hazard, improves safety.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention
Shield scope.