A kind of charging current control method and system based on mobile terminal
Technical field
A kind of the present invention relates to technical field of mobile terminals, more particularly to charging current control method based on mobile terminal
And system.
Background technology
With the development and the continuous improvement of people's living standard of mobile communication, the use of various mobile terminals such as mobile phone is got over
More to popularize, mobile phone has become indispensable Communication instrument in people's life.
The battery electric quantity percentage ratio of intelligent mobile terminal is less than 1%, when the electric current 1 for being close to 1A charges, using intelligent mobile
Terminal makes a phone call or opens flash lamp to take pictures, and intelligent mobile terminal moment occurs the electric current 2 of 2A or so.At intelligent mobile end
In the case that end charging system impedance is constant, the appearance of electric current 2 reduces the charging voltage signal VCHG of power management module output.
The Charge Management control unit of power management module detects charging voltage signal VCHG less than the minimum that charging voltage is arranged
Voltage signal 4.35V, the then output of the Charge Management control unit charge closing voltage signal VCHG of power management module, then lithium
The charging current 1 of battery is 0, and charger can not charge to intelligent mobile terminal, the great inconvenience of cause the user.
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, for the drawbacks described above of prior art, there is provided a kind of based on mobile whole
The charging current control method at end and system.Made a phone call or beaten in charging process by the mobile terminal of user of the present invention
Open flash lamp take pictures etc. application when can be normally carried out charging, provide users with the convenient.
The technical scheme adopted by present invention solution technical problem is as follows:
A kind of charging current control method based on mobile terminal, wherein, method includes:
The wink of A, mobile terminal when a scheduled time detecting the charging current in battery charging process and opening application
Between current value, and contrast the size of charging current and instantaneous current value, if charging current is more than instantaneous current value, mobile terminal is defeated
Go out the first level signal, if charging current is less than instantaneous current value, mobile terminal exports second electrical level signal;
If B mobile terminals detect the first level signal, immediate current when application is opened in central processing unit control is from the
One passage is exported;
If C mobile terminals detect second electrical level signal, immediate current when application is opened in central processing unit control is first passed through
Stream process drop in second channel, then export through first passage.
The described charging current control method based on mobile terminal, wherein, step A is specifically included:
The wink of A1, mobile terminal when a scheduled time detecting the charging current in battery charging process and opening application
Between current value;
A2, by charging current with open application when instantaneous current value contrasted, if charging current be more than instantaneous current value,
The first level signal of mobile terminal controlled output;
If A3 charging currents are less than instantaneous current value, mobile terminal controlled output second electrical level signal.
The described charging current control method based on mobile terminal, wherein, step B is specifically included:
B1, when mobile terminal detects the first level signal, central processing unit calls the first control signal to instruct;
B2, first control instruction control first passage are opened, and during the unlatching application, immediate current is from first passage
Output.
The described charging current control method based on mobile terminal, wherein, step C is specifically included:
C1, when mobile terminal detects second electrical level signal, central processing unit calls the second control signal to instruct;
C2, second control signal instruction control second channel are opened, and immediate current is converted into voltage signal by control,
And blood pressure lowering process is carried out, until immediate current is less than charging current;
C3, central processing unit call the 3rd control signal instruct, control through second channel process after immediate current from
First passage is exported.
The described charging current control method based on mobile terminal, wherein, first level signal is believed for high level
Number, the second electrical level signal is low level signal, and the scheduled time is 2ms.
A kind of charging current control system based on mobile terminal, wherein, system includes:
Module is prestored, and the instantaneous current value that application appearance is opened during in advance mobile terminal charging is deposited
Storage;
Detection and contrast module, detect the charging current in battery charging process for mobile terminal every a scheduled time
Instantaneous current value when applying with unlatching, and the size of charging current and instantaneous current value is contrasted, if charging current is more than moment
Current value, mobile terminal export the first level signal, if charging current is less than instantaneous current value, mobile terminal exports second electrical level
Signal;
First control module, for detecting the first level signal when mobile terminal, application is opened in central processing unit control
When immediate current from first passage export;
Second control module, for detecting second electrical level signal when mobile terminal, application is opened in central processing unit control
When immediate current first through second channel drop stream process, then through first passage export.
The described charging current control system based on mobile terminal, wherein, the detection is included with contrast module:
Detector unit, detects the charging current in battery charging process and unlatching for mobile terminal every a scheduled time
Instantaneous current value during application;
Contrast and control unit, for being contrasted charging current with instantaneous current value when opening application, if charge electricity
Stream is more than instantaneous current value, the first level signal of mobile terminal controlled output;
First control unit, if being less than instantaneous current value for charging current, mobile terminal controlled output second electrical level is believed
Number.
The described charging current control system based on mobile terminal, wherein, first control module includes:
First detection and call unit, for detecting the first level signal when mobile terminal, central processing unit calls the
One control signal is instructed;
Second control unit, opens for first control instruction control first passage, moment during the unlatching application
Electric current is exported from first passage.
The described charging current control system based on mobile terminal, wherein, second control module includes:
Second detection and call unit, for detecting second electrical level signal when mobile terminal, central processing unit calls the
Two control signals are instructed;
3rd control unit, opens for second control signal instruction control second channel, controls immediate current
Voltage signal is converted into, and carries out blood pressure lowering process, until immediate current is less than charging current;
4th control unit, calls the 3rd control signal to instruct for central processing unit, controls through second channel process
Immediate current afterwards is exported from first passage.
The described charging current control system based on mobile terminal, wherein, first level signal is believed for high level
Number, the second electrical level signal is low level signal, and the scheduled time is 2ms.
The invention provides a kind of charging current control method and system based on mobile terminal, method includes:Mobile whole
An instantaneous current value when scheduled time detecting the charging current in battery charging process and opening application is held, and is contrasted and is filled
Electric current and the size of instantaneous current value, if charging current is more than instantaneous current value, mobile terminal exports the first level signal, if
Charging current is less than instantaneous current value, and mobile terminal exports low level signal;If mobile terminal detects the first level signal, in
Immediate current when application is opened in central processor control is exported from first passage;If mobile terminal detects low level signal, in
Immediate current when application is opened in central processor control first drops stream process through second channel, then exports through first passage.The present invention
Can make mobile terminal battery electric quantity is relatively low be charged when, made a phone call using mobile terminal or opened flash lamp takes pictures etc. should
Used time can charge normal, and provide users with the convenient.
Description of the drawings
Fig. 1 is a kind of flow process of the first preferred embodiment of charging current control method based on mobile terminal of the present invention
Figure.
Fig. 2 is the first of the first preferred embodiment of a kind of charging current control method based on mobile terminal of the present invention
Refinement step flow chart.
Fig. 3 is the second of the first preferred embodiment of a kind of charging current control method based on mobile terminal of the present invention
Refinement step flow chart.
Fig. 4 is the 3 of the first preferred embodiment of a kind of charging current control method based on mobile terminal of the present invention
Refinement step flow chart.
Fig. 5 is a kind of flow process of the concrete application embodiment of charging current control method based on mobile terminal of the present invention
Figure.
Fig. 6 is a kind of function of the first preferred embodiment of charging current control system based on mobile terminal of the present invention
Theory diagram.
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 is further described.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and without
Of the invention in limiting.
The charging current control method based on mobile terminal that the present invention is provided, below with first level signal as height
Level signal, the second electrical level signal are specifically described for embodiment for low level signal:
A kind of charging current control method based on mobile terminal described in first embodiment of the invention, as shown in figure 1, bag
Include:
Step S100, mobile terminal detect the charging current in battery charging process every a scheduled time and open application
When instantaneous current value, and contrast the size of charging current and instantaneous current value, if charging current is more than instantaneous current value, mobile
Terminal exports high level signal, if charging current is less than instantaneous current value, mobile terminal exports low level signal.
When being embodied as, current flow and current unlatching when mobile terminal is to charging are applied such as make a phone call or carry out
Open the immediate current that mobile terminal is produced when flash lamp is taken pictures to be monitored.
If step S200 mobile terminal detects high level signal, moment electricity during application is opened in central processing unit control
Stream is exported from first passage.
When being embodied as, current processing module is set in the inside of mobile terminal, and current processing module there are two passages,
First passage and second channel.First passage is a simple path, and second channel is connected with current processing unit.When
Mobile terminal detects current charging current more than the instantaneous current value for prestoring, that is, be more than reference voltage signal, now wink
Between electric current will not drag down charging voltage value, mobile terminal can be charged normal, and central processing unit controls the moment during unlatching application
Electric current is exported from first passage, and does not make any process.
If step S300 mobile terminal detects low level signal, moment electricity during application is opened in central processing unit control
Stream first drops stream process through second channel, then exports through first passage.
It is embodied as, when mobile terminal detects current charging current less than the instantaneous current value that prestores, now wink
Between electric current can drag down charging voltage value, mobile terminal central processing unit controls the immediate current and enters second channel, logical second
Current flow signal is switched to voltage signal first in road, then voltage signal is carried out blood pressure lowering process by voltage reduction module, until defeated
Go out current value less than after present charging current value, then by process after immediate current export from first passage.
When being embodied as, as shown in Fig. 2 step S100 is specifically included:
Step S110, mobile terminal detect the charging current in battery charging process every a scheduled time and open application
When instantaneous current value;
Step S120, by charging current with open application when instantaneous current value contrasted, if charging current be more than moment
Current value, mobile terminal controlled output high level signal;
If step S130 charging current is less than instantaneous current value, mobile terminal controlled output low level signal.
When being embodied as, as shown in figure 3, step S200 is specifically included:
Step S210, when mobile terminal detects high level signal, central processing unit calls the first control signal to instruct;
Step S220, first control instruction control first passage are opened, and immediate current when opening application is from the
One passage is exported.
When being embodied as, as shown in figure 4, step S300 is specifically included:
Step S310, when mobile terminal detects low level signal, central processing unit calls the second control signal to instruct;
Step S320, second control signal instruction control second channel are opened, and immediate current is converted into electricity by control
Pressure signal, and blood pressure lowering process is carried out, until immediate current is less than charging current;
Step S330, central processing unit call the 3rd control signal to instruct, and control the moment after second channel process
Electric current is exported from first passage.
The scheduled time is 2ms(Millisecond).
When intelligent mobile terminal is when charging, make a phone call or open the take pictures instantaneous current signal of appearance of flash lamp and be less than
Charging current signal, charging current detection module need detection instantaneous current signal now, and setting detection time is 20ms, prevents
Current signal moment only occur is increased above suddenly charging current signal.
Pulse count unit counts the number of pulses that charging current detection module detects charging current signal, if charging current
Time when signal occurs is t1.Charging current detection module starts to detect instantaneous current signal, arranges and detect 10 times, per 2ms
Detection is once.
Charging current detection module sends high level of current pulse signal to pulse count unit, and pulse count unit is exported
The high level of current pulse signal detection moment battery signal.
Pulse count unit often exports a high level of current pulse signal, and its internal accumulator element can automatically upwards
Quantity of progressively increasing 1, till being added to quantity 5.If the accumulator element inside pulse count unit progressively increases automatically upwards to number
Time when measuring 5 is t2, then t2-t1=10ms.
Present invention also offers a kind of concrete application embodiment of the charge control method based on mobile terminal, such as Fig. 5 institutes
Show, specific implementation step is as follows:
Step S10, charging current detection module detect 2 signal of electric current every 2ms(Open the immediate current of application), afterwards
Execution step S20;
When intelligent mobile terminal charge when, make a phone call or open flash lamp take pictures appearance 2 signal of immediate current little
In 1 signal of charging current, charging current detection module 300 needs detection 2 signal of electric current now, arranges detection time and is
Detect once every 2ms in 10ms, 10ms, preventing 2 signal moment of electric current is increased above suddenly 1 signal of charging current.
Whether step S20, charging current detection module judge charging current 1 more than high level of current pulse signal(Open
Instantaneous current signal during application is 2 signal of electric current);If it has, then execution step S30, if it is otherwise, execution step S40;
If high level of current pulse signal is the comparison reference signal of electric current comparing unit, as intelligent mobile terminal is logical
During words, search network or opening flash lamp are taken pictures, and moment occurs the electric current 2 of 2A or so.If the electricity of electric current comparing unit
The size of stream comparison reference signal high level of current pulse signal is equal to electric current 2 and is about 2A, i.e. high level of current pulse signal is
For instantaneous current signal.The electric current comparison signal of electric current comparing unit is 1 signal of charging current.
Step S30, when electric current comparing unit exports high level signal, execution step S50 afterwards;
When electric current comparing unit exports high level signal, then 1 signal of charging current is more than high level of current pulse signal
(Instantaneous current signal), i.e., 1 signal of charging current make a phone call more than intelligent mobile terminal or open when flash lamp is taken pictures occur
2 signal of immediate current, then 2 signal of immediate current will not drag down suddenly power management module output charging voltage signal
VCHG.
Step S40, when electric current comparing unit exports low level signal, execution step S60 afterwards;
When electric current comparing unit exports low level signal, then 1 signal of charging current is less than high level of current pulse signal
(Immediate current), i.e. 1 signal of charging current makes a phone call less than intelligent mobile terminal or opens wink for occurring when flash lamp is taken pictures
Between 2 signal of electric current, then power management module output charging voltage signal VCHG dragged down by 2 signal of electric current suddenly, mobile terminal
Cannot charge.
Step S50, central processing unit call the passage 1 of the first control signal, control electric current processing module to open, and export wink
Between electric current, execution step S90 afterwards;
Central processing unit is from its internal instruction register cell call control signal 1(First control signal)Instruction, output
Control signal 1(First control signal)CH1 first passages in control electric current processing module, first passage are opened, output electricity
Flow 2 signals.As 2 signal of electric current does not drag down the charging voltage signal VCHG of power management module output, then 2 signal of electric current is not
The charging of intelligent mobile terminal, charger energy bio-occlusion intelligent mobile terminal can be disturbed to charge.
Step S60, central processing unit call the passage 2 of the second control signal, control electric current processing module to open;Hold afterwards
Row step S70;
Central processing unit is instructed from its internal instruction register cell call control signal 2, and output control signal 2 controls electricity
CH2 second channels in stream process module, second channel are opened, and 2 signal demand of electric current of output passes through current processing module
Processed.
Step S70, immediate current enter current/voltage converting unit through passage 2 and switch to voltage signal, and voltage signal is through drop
Pressure unit controls immediate current in the state less than charging current 1, and after blood pressure lowering, voltage signal is defeated through Voltage to current transducer module
The instantaneous current signal gone out after processing, afterwards execution step S80;
2 signal of electric current is converted into voltage letter by current/voltage converting unit of 2 signal of electric current in current processing module
Number, the voltage signal is through pressure unit process by the control of 2 signal of electric current in the state less than 1 signal of charging current.After blood pressure lowering
Voltage signal by voltage current conversion unit output process after 2 signal of electric current.
Step S80, central processing unit call the passage 1 of the 3rd control signal, control electric current processing module to open, output warp
The immediate current that crosses after processing, afterwards execution step S90;
Central processing unit is instructed from its internal instruction register cell call control signal 3, and output control signal 3 controls electricity
CH1 first passages in stream process module, first passage are opened, 2 signal of electric current after output process.Electric current after the process
Charging of 2 signals without interference with intelligent mobile terminal, charger energy bio-occlusion intelligent mobile terminal are charged.
Step S90, end.
From above-described embodiment, the invention provides a kind of charging current control method based on mobile terminal, passes through
Contrast mobile terminal charging current and the immediate current size produced when opening application, and should using central processing unit control unlatching
The size of the immediate current that the used time produces, makes mobile terminal be made a phone call or be opened flash lamp to take pictures when battery electric quantity is relatively low
Can charge normal, provide users with the convenient.
Above-described embodiment is based on, the present invention also provides a kind of charging current control system based on mobile terminal, such as Fig. 6 institutes
Show, system includes:
Detection and contrast module 520, detect the charging in battery charging process for mobile terminal every a scheduled time
Instantaneous current value when electric current and unlatching application, and the size of charging current and instantaneous current value is contrasted, if charging current is more than
Instantaneous current value, mobile terminal export high level signal, if charging current is less than instantaneous current value, mobile terminal exports low level
Signal;As detailed above.
First control module 530, for detecting high level signal when mobile terminal, application is opened in central processing unit control
When immediate current from first passage export;As detailed above.
Second control module 540, for detecting low level signal when mobile terminal, application is opened in central processing unit control
When immediate current first through second channel drop stream process, then through first passage export;As detailed above.
The described charging current control system based on mobile terminal, wherein, the detection is included with contrast module 520:
Detector unit, detects the charging current in battery charging process and unlatching for mobile terminal every a scheduled time
Instantaneous current value during application;As detailed above.
Contrast and control unit are right for carrying out charging current and instantaneous current value during the unlatching application for prestoring
Than if charging current is more than instantaneous current value, mobile terminal controlled output high level signal;As detailed above.
First control unit, if be less than instantaneous current value, mobile terminal controlled output low level signal for charging current;
As detailed above.
The described charging current control system based on mobile terminal, wherein, first control module 530 includes:
First detection and call unit, for detecting high level signal when mobile terminal, central processing unit calls first
Control signal is instructed;As detailed above.
Second control unit, opens for first control instruction control first passage, moment during the unlatching application
Electric current is exported from first passage;As detailed above.
The described charging current control system based on mobile terminal, wherein, second control module 540 includes:
Second detection and call unit, for detecting low level signal when mobile terminal, central processing unit calls second
Control signal is instructed;As detailed above.
3rd control unit, opens for second control signal instruction control second channel, controls immediate current
Voltage signal is converted into, and carries out blood pressure lowering process, until immediate current is less than charging current;As detailed above.
4th control unit, calls the 3rd control signal to instruct for central processing unit, controls through second channel process
Immediate current afterwards is exported from first passage;As detailed above.
The described charging current control system based on mobile terminal, wherein, first level signal is believed for high level
Number, the second electrical level signal is low level signal, and the scheduled time is 2ms;As detailed above.
In sum, the invention provides a kind of charging current control method and system based on mobile terminal, method bag
Include:Immediate current of a mobile terminal when scheduled time detecting the charging current in battery charging process and opening application
Value, and the size of charging current and instantaneous current value is contrasted, if charging current is more than instantaneous current value, the high electricity of mobile terminal output
Ordinary mail number, if charging current is less than instantaneous current value, mobile terminal exports low level signal;If mobile terminal detects high level
Signal, immediate current when application is opened in central processing unit control are exported from first passage;If mobile terminal detects low level
Signal, immediate current when application is opened in central processing unit control first drop stream process through second channel, then export through first passage.
The present invention can make mobile terminal battery electric quantity is relatively low be charged when, made a phone call using smart mobile phone or opened flash lamp bat
According to when can charge normal, provide users with the convenient.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, and for those of ordinary skills, can
To be improved according to the above description or be converted, all these modifications and variations should all belong to the guarantor of claims of the present invention
Shield scope.