CN107426424A - A kind of charge/discharge control method and mobile terminal - Google Patents
A kind of charge/discharge control method and mobile terminal Download PDFInfo
- Publication number
- CN107426424A CN107426424A CN201710612226.0A CN201710612226A CN107426424A CN 107426424 A CN107426424 A CN 107426424A CN 201710612226 A CN201710612226 A CN 201710612226A CN 107426424 A CN107426424 A CN 107426424A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- electricity
- electrical demand
- value
- charge
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/34—Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
- H02J7/342—The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention provides a kind of charge/discharge control method and mobile terminal, is related to mobile communication technology field, and this method is applied to the first mobile terminal, and this method includes:Data are used according to the electricity of the current residual electricity of the first mobile terminal and the first mobile terminal at least one measurement period, determine the electrical demand information of the first mobile terminal;According to the electrical demand information of the first mobile terminal and the electrical demand information of the second mobile terminal, the first mobile terminal of control charges to the second mobile terminal, or, the second mobile terminal of control charges to the first mobile terminal.The present invention controls the discharge and recharge between mobile terminal, can more fully meet the charge requirement of user, improve the intelligent of mobile terminal according to the electrical demand information of mobile terminal.
Description
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of charge/discharge control method and mobile terminal.
Background technology
At present, the battery capacity of mobile terminal device is encountered due to the restriction by factors such as volume, weight, prices
Bottleneck, battery capacity is generally smaller, causes user at least to charge once daily, just can guarantee that mobile terminal normal use.
If the user frequently to go out, also needs to carry bulky portable power source.And for frequent airplane trip user, due to
Airline is generally not allowed portable power source to consign, and the portable power source boarded a plane to carrying also has the limitation of capacity, to use
Family brings inconvenience using mobile terminals such as mobile phones.
With the development of each side such as consumer electronics, smart home, Internet of Things, the electronic product of people at one's side is increasingly
More, some mobile terminals can mutually charge so that the mobile terminal that electricity exhausts can also be used.However, current mobile terminal
Between the difference of decision-making technique, typically comparison voltage that mutually charges, it is just that voltage is larger that voltage difference is more than certain threshold value
Person is as master mobile terminal to being charged from mobile terminal.Although this decision-making technique has certain feasibility, but not complete
The full desirability for meeting user, such as, user only needs to use master mobile terminal this moment, whole from movement without use
End, it is to be charged from mobile terminal blindly to make master mobile terminal, is likely to result in master mobile terminal electricity and exhausts more, influences to use
Family uses.Therefore, this decision-making technique can cause erroneous decision unavoidably, influence Consumer's Experience.
The content of the invention
It is existing according to electricity its purpose is to solve the invention provides a kind of charge/discharge control method and mobile terminal
The decision-making technique that pressure difference is mutually charged, the desirability of user is not complied fully with, the problem of easily causing erroneous decision.
On the one hand, the embodiment provides a kind of charge/discharge control method, this method is applied to the first movement eventually
End, this method include:
According to the current residual electricity of the first mobile terminal and the first mobile terminal at least one measurement period
Electricity uses data, determines the electrical demand information of the first mobile terminal;
According to the electrical demand information of the first mobile terminal and the electrical demand information of the second mobile terminal, control first
Mobile terminal charges to the second mobile terminal, or, the second mobile terminal of control charges to the first mobile terminal.
On the other hand, embodiments of the invention additionally provide a kind of mobile terminal, including:
Information determination module, for the current residual electricity according to the first mobile terminal and the first mobile terminal at least
Electricity in one measurement period uses data, determines the electrical demand information of the first mobile terminal;
Charge control module, for the electrical demand information and the electricity of the second mobile terminal according to the first mobile terminal
Demand information, the first mobile terminal of control charge to the second mobile terminal, or, the second mobile terminal of control is whole to the first movement
End charging.
Another aspect, embodiments of the invention additionally provide a kind of mobile terminal, including:Memory, processor and storage
On a memory and the computer program that can run on a processor, above-mentioned charge and discharge is realized when computer program is executed by processor
Step in electric control method.
Another further aspect, embodiments of the invention additionally provide a kind of computer-readable recording medium, computer-readable storage
Computer program is stored with medium, the step in above-mentioned charge/discharge control method is realized when computer program is executed by processor
Suddenly.
Embodiments of the invention control the discharge and recharge between mobile terminal, energy according to the electrical demand information of mobile terminal
Enough charge requirements for more fully meeting user, improve the intelligent of mobile terminal.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 represents the flow chart for the charge/discharge control method that one embodiment of the invention provides;
Fig. 2 represents the flow chart for the charge/discharge control method that another embodiment of the present invention provides;
Fig. 3 represents the flow chart of the specific example of the present invention;
Fig. 4 represents one of block diagram of mobile terminal that one embodiment of the invention provides;
Fig. 5 represents the two of the block diagram for the mobile terminal that one embodiment of the invention provides;
Fig. 6 represents the block diagram for the mobile terminal that another embodiment of the present invention provides;
Fig. 7 represents the block diagram for the mobile terminal that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Referring to Fig. 1, one embodiment of the invention provides a kind of charge/discharge control method, applied to the first mobile terminal,
Including:
Step 101, according to the current residual electricity of the first mobile terminal and the first mobile terminal at least one statistics
Electricity in cycle uses data, determines the electrical demand information of the first mobile terminal.
Wherein, electrical demand information is to be determined according to current residual electricity and electricity using data, to show the
The current electrical demand degree of one mobile terminal.Pass through electrical demand information so that it is recent that electrical demand degree refers to user
Use habit, specifically, the recent use habit of user would know that using data by the electricity in measurement period.And count
Cycle can sets itself.
Step 102, according to the electrical demand information of the first mobile terminal and the electrical demand information of the second mobile terminal,
The first mobile terminal is controlled to charge the second mobile terminal, or, the second mobile terminal of control charges to the first mobile terminal.
Specifically, when the electrical demand information of the first mobile terminal and the electrical demand information table of the second mobile terminal
Bright, the electrical demand degree of the first mobile terminal is less than the electrical demand degree of the second mobile terminal, then controls the first movement eventually
Second mobile terminal is charged at end;Or first mobile terminal electrical demand degree higher than the second mobile terminal electricity need
Degree is sought, then controls the second mobile terminal to charge the first mobile terminal.
Embodiments of the invention control the discharge and recharge between mobile terminal, energy according to the electrical demand information of mobile terminal
Enough charge requirements for more fully meeting user, improve the intelligent of mobile terminal.
Referring to Fig. 2, another embodiment of the present invention provides a kind of charge/discharge control method, applied to the first movement eventually
End, including:
Step 201, according to the current residual electricity of the first mobile terminal and the first mobile terminal at least one statistics
Electricity in cycle uses data, determines the electrical demand information of the first mobile terminal;Wherein, measurement period includes current time
Multiple service life before, each service life include multiple time quantums, and each time quantum includes multiple chronon lists
Member.
In this step, electrical demand information is to be determined according to current residual electricity and electricity using data, to table
The current electrical demand degree of bright first mobile terminal.Pass through electrical demand information so that electrical demand degree refers to user
Recent use habit, specifically, the recent use habit of user would know that using data by the electricity in measurement period, and
Measurement period can sets itself.
Specifically, measurement period includes multiple service life, and service life includes multiple time quantums, and time quantum includes
Multiple time subunits.
Such as measurement period include 4 weeks, service life be one week, time quantum be one week in certain day, time subunit
For certain several hour in one day.
Preferably, step 201 includes:
According to default electrical demand parameter, the electrical demand information of the first mobile terminal is determined, electrical demand information is extremely
Include electrical demand value less;Electrical demand parameter include current demand electricity, electricity using predicted value and electricity difference plus
It is at least one in weight average value;Electrical demand value is that the numerical value of summation gained is weighted to electrical demand parameter.
In this step, electrical demand parameter include current demand electricity, electricity using predicted value and electricity difference plus
It is at least one in weight average value;And electrical demand value is that one or more electrical demand parameters are weighted with summation gained
Numerical value;For example electrical demand parameter includes current demand electricity and electricity uses predicted value, then electrical demand value is to current
Demand electricity and electricity use the numerical value obtained by predicted value weighted sum.Specifically, according to default electrical demand parameter, it is determined that
The step of electrical demand information of first mobile terminal, including:It is right according to default first weights of each electrical demand parameter
Electrical demand parameter obtains the electrical demand value of the first mobile terminal to be weighted summation;It is pre- for each electrical demand parameter
If the first weights, electrical demand value is obtained with weighted sum.
Wherein, required electricity when current demand electricity is the first mobile terminal current state to electricity full state;I.e.
Electricity lacking in the battery of mobile terminal.
Electricity is to be moved eventually using the first of data determination according to the electricity at least one measurement period using predicted value
Hold the predicted value using electricity in next time subunit at current time, i.e. in each time quantum of measurement period,
The time subunit corresponding with current time uses power quantity predicting value, to the use habit according to user, thus it is speculated that mobile
Terminal can consumable electricity in next time subunit.
For example measurement period is 4 weeks, time quantum is daily, and time subunit is 1 hour, then electricity uses predicted value
For in the hour where current time in every day in 4 weeks, electricity used in mobile terminal, by reference to electricity using predicting
Following power consumption of value prediction mobile terminal, as electrical demand parameter, closer to the use habit of user.
The weighted average of electricity difference is first that data determination is used according to the electricity at least one measurement period
The weighted average of the electricity difference of history dump energy and current residual electricity in preset number service life, electricity are poor
Dump energy and the dump energy at mobile terminal current time in other i.e. corresponding with current time service life of value
Difference, such as service life are one week, and current time is the very first time subelement of Wednesday, then electricity difference uses week to be each
The dump energy of the very first time subelement of the Wednesday of phase and the difference of the dump energy at current time.
Step 202, according to the electrical demand information of the first mobile terminal and the electrical demand information of the second mobile terminal,
The first mobile terminal is controlled to charge the second mobile terminal, or, the second mobile terminal of control charges to the first mobile terminal.
Specifically, when the electrical demand information of the first mobile terminal and the electrical demand information table of the second mobile terminal
Bright, the electrical demand degree of the first mobile terminal is less than the electrical demand degree of the second mobile terminal, then controls the first movement eventually
Second mobile terminal is charged at end;Or first mobile terminal electrical demand degree higher than the second mobile terminal electricity need
Degree is sought, then controls the second mobile terminal to charge the first mobile terminal.
Preferably, this method also includes:
The historical data used according to the electricity at least one measurement period, determine that electricity uses predicted value.
The historical data used according to electricity of the user at least one measurement period, prediction will caused power consumptions
Amount.
Specifically, the historical data used according to the electricity at least one measurement period, determine that electricity uses predicted value
The step of, including:
Determine in the second preset number time quantum before current time, the chronon list corresponding with current time
The electricity use value of member;
According to electricity use value, determine that the first mobile terminal uses in the electricity of next time subunit at current time
Predicted value;Electricity calculates gained using the average that predicted value is electricity use value, or according to default algorithm to electricity use value
Numerical value.
Wherein, it is first determined corresponding with current time in the second preset number time quantum before current time
Time subunit electricity use value, such as, time quantum is daily, and time subunit is per hour, the second preset data
For three, current time was nine thirty, then electricity use value is daily 9 points to 10 points of the electricity use value of first three day.Electricity makes
After being determined with value, multiple electricity use values are averaged, or electricity use value calculated using default algorithm, are obtained
Numerical value use predicted value for electricity.
Preferably, this method also includes:
The historical data used according to the electricity at least one measurement period, determine the weighted average of electricity difference.
Wherein it is determined that after electricity difference, electricity weighted differences are averaging to obtain weighted average.
The historical data used according to the electricity at least one measurement period, determine the weighted average of electricity difference
Step, including:
The historical data used according to the electricity at least one measurement period of the first mobile terminal, determine that first is default
In number service life in the time quantum corresponding with current time unit, with the time subunit phase where current time
The dump energy of corresponding time subunit and the electricity difference of current residual electricity;
According to default second weights, the first preset number electricity weighted differences are averaging, obtain electricity difference
Weighted average.
For example service life is one week, current time is the very first time subelement of Wednesday, then electricity difference is each to make
With the dump energy of the very first time subelement of the Wednesday in cycle and the difference of the dump energy at current time;Multiple differences determine
Afterwards, according to default second weights, the first preset number electricity weighted differences is averaging, obtain the weighting of electricity difference
Average value.Electricity difference shows the difference between the dump energy at current time and the dump energy that user is usual.
Preferably, step 202 includes:
The first step, when the electrical demand value of the first mobile terminal is less than the electrical demand value of the second mobile terminal, control
First mobile terminal charges to the second mobile terminal;Second step, when the electrical demand value of the first mobile terminal is higher than the second movement
During the electrical demand value of terminal, the second mobile terminal of control charges to the first mobile terminal.
Specifically, when the first mobile terminal electrical demand value be less than the second mobile terminal electrical demand value, then control
First mobile terminal charges to the second mobile terminal;Or first the electrical demand value of mobile terminal be higher than the second mobile terminal
Electrical demand value, then control the second mobile terminal to charge the first mobile terminal.
Preferably, the above-mentioned first step includes:
When the weighted average of electricity difference is not more than a default electricity difference threshold, and the use of the 3rd preset number
The first mobile terminal is in the probability of charged state less than two points in the time quantum corresponding with current time unit in cycle
One of, and current residual electricity is more than default dump energy threshold value, then when the electrical demand value of the first mobile terminal is less than second
During the electrical demand value of mobile terminal, the first mobile terminal of control charges to the second mobile terminal.
In this step, when the weighted average of electricity difference is not more than electricity difference threshold, show the residue at current time
Electricity with it is usual and without exception;And the 3rd in preset number service life, the time quantum corresponding with current time, first
The probability that mobile terminal is in charged state is less than half, shows that the first mobile terminal is simultaneously uncharged generally at this moment;
And first mobile terminal it is current dump energy it is enough, more than default dump energy threshold value;Three above condition shows the first shifting
Dynamic terminal can be used as master mobile terminal to be charged for the second mobile terminal, and not influence the use of the first mobile terminal.Pass through setting
Three above condition, it is blindly to be charged from mobile terminal that can avoid the first mobile terminal, influences user's use.
Preferably, after step 202, this method also includes:
When detecting that user changes the charging of the first mobile terminal or the state being electrically charged, the first of adjustment current demand electricity
Weights and/or default second weights of adjustment.
Wherein, when user intervenes the charging of the first mobile terminal or the state being electrically charged manually, electrical demand value is shown
Determination mode does not meet the demand of user, therefore adjusts the first weights of current demand electricity, heightens or reduce current demand electricity
The weight of amount.
The second weights of electricity difference are adjusted, for example time quantum is one day, 4 time quantums before current time
Second weights are respectively W1, W2, W3 and W4, and W1 represents the second weights of yesterday, and W2 represents the second weights of the day before yesterday, with such
Push away;It is defaulted as W1>W2>W3>W4, the magnitude relationship between 4 weights can be adjusted according to being actually needed;For example possible user recognizes
Referential is had more for the data before 4 days, can be adjusted to W4>W1>W2>W3.Increase feedback mechanism, each weight can be carried out
Amendment, so as to better adapt to the change of user's request.
Preferably, the first mobile terminal of control charges to the second mobile terminal, or, the second mobile terminal of control is to first
The step of mobile terminal charges, including:
Detect the current motor pattern of the first mobile terminal do not meet it is default can discharge and recharge motor pattern when, stop holding
The mobile terminal of row first charges or is electrically charged.
For example to identify that the current motor pattern of user is not met among the data that acceleration transducer is got default
Can discharge and recharge motor pattern when, stop perform the first mobile terminal charging or be electrically charged.
In the above embodiment of the present invention, by the electricity need that data determination is used according to current residual electricity and electricity
Information is sought, to show the current electrical demand degree of mobile terminal;By contrasting the first mobile terminal and the second mobile terminal
Electrical demand information, control the mode that mutually charges therebetween.Consider mobile terminal current residual electricity and use
The recent use habit in family, decision-making is carried out with reference to the actual conditions of user, enables the mobile terminal of some electricity redundancies automatic
The ground mobile terminal in short supply to some electricity charges, and improves the usage experience of user and the service efficiency of battery.The present invention
Solve the existing decision-making technique mutually to be charged according to voltage difference, do not comply fully with the desirability of user, easily
The problem of causing erroneous decision.
As a specific example, referring to Fig. 3, in the flow chart of the charge/discharge control method shown in Fig. 3, electrical demand letter
Cease for electrical demand degree (Need Level, hereinafter abbreviated as NL), for evaluating mobile terminal for the preferential of electrical demand
Level, the strategy for selecting mutually to charge between each mobile terminal by the NL values of each mobile terminal.Wherein, if two mobile whole
The distance at end is less than certain threshold value, then NL value fraction juniors are exported electricity as master mobile terminal (makees to fraction the higher person
For from mobile terminal).
Specifically, electrical demand degree scoring is weighted by following factor and obtained:
NL=S1+S2+S3;
Wherein, S1=current demands electricity * weights W1;
S2=electricity usage amount predicted value * weights W2;
S3 be electricity difference weighted average, specifically, respectively with each week in nearest four week with it is current when
Battery allowance at the time of carving corresponding subtracts the battery allowance at current time, the difference of gained four D1, D2, D3, and D4 is multiplied by respectively
Weight W31, W32, W33, W34, then after being added divided by 4, that is, obtain weighted average S3, that is to say, that:
S3=(D1*W31+D2*W32+D3*W33+D4*W34)/4;
Because user using mobile terminal behavior pattern be typically using a week as the cycle, for compare two
The time difference at two moment corresponding to individual data is the integral multiple in week.The confidence level at the time point nearer apart from current time is more
Height, weight W31 can be set>W32>W33>W34.
Charge/discharge control method shown in Fig. 3 mainly includes the following steps that:
Step 301, detect that the distance between the first mobile terminal and the second mobile terminal are less than certain threshold value.
Step 302, the NL of the first mobile terminal is determined.
Wherein, step 302 includes following sub-step:
Step 3021, current demand electricity is determined;
Step 3022, determine that electricity uses predicted value;
Step 3023, the weighted average of electricity difference is determined;
Step 3024, current demand electricity, electricity are weighted using the weighted average of predicted value and electricity difference
Summation, obtains the NL values of the first mobile terminal.
Step 303, judge whether the NL of the first mobile terminal is more than the NL of the second mobile terminal.
If the determination result is YES, then step 304 is performed, otherwise performs step 305.
Step 304, the second mobile terminal is controlled to be charged for the first mobile terminal.
Step 305, the first mobile terminal is controlled to be charged for the second mobile terminal.
If it should be noted that at the time of each correspondence in nearest eight week with current time in week (when sharing eight
Carve) there is N number of (N is between 0-8) moment to be in charged state.
If S3>Electricity difference threshold value, and N is more than or equal to 4, then and this mobile terminal can not be used as electric quantity output end.
And the current motor pattern of user is identified among the data that acceleration transducer is got, for user not
Wish some motion states of execution automatic charging function, the function that pause automated wireless mutually charges.
Step 306, if detecting, user artificially changes the input mutually to charge and output end twice in succession, corrects
The numerical value of weight.
Specifically, corresponding weight W1, W31, W32, W33, W34 are accordingly changed so that this scoring
The priority decisions strategy of formulation adjusts to the direction that user needs.
Alternatively, W1 is preferentially changed, it is currently practical towards making the mutual charging strategy that scoring is made meet user
The direction of demand is increased or reduced W1, if W1 amplitudes of variation reach 20 percent, uses same method
W34, W33, W32, W31 are changed successively.If still not meeting user's actual need, further above-mentioned amplitude of variation is controlled
80 percent, repeat aforesaid operations.
In the above embodiment of the present invention, by the electricity need that data determination is used according to current residual electricity and electricity
Evaluation;By contrasting the first mobile terminal and the second mobile terminal electrical demand value, the mode mutually to charge therebetween is controlled.
Consider mobile terminal current residual electricity and the recent use habit of user, determined with reference to the actual conditions of user
Plan, the mobile terminal for enabling the mobile terminal of some electricity redundancies automatically in short supply to some electricity charge, and improve and use
The usage experience at family and the service efficiency of battery.The present invention solves the existing decision-making party mutually to be charged according to voltage difference
Method, the desirability of user is not complied fully with, the problem of easily causing erroneous decision.
Referring to Fig. 4, the embodiment provides a kind of mobile terminal 400, including:
Information determination module 401, exist for the current residual electricity according to the first mobile terminal and the first mobile terminal
Electricity at least one measurement period uses data, determines the electrical demand information of the first mobile terminal.
Wherein, electrical demand information is to be determined according to current residual electricity and electricity using data, to show the
The current electrical demand degree of one mobile terminal.Pass through electrical demand information so that it is recent that electrical demand degree refers to user
Use habit, specifically, the recent use habit of user would know that using data by the electricity in measurement period.And count
Cycle can sets itself.
Charge control module 402, for the electrical demand information according to the first mobile terminal and the second mobile terminal
Electrical demand information, the first mobile terminal of control charge to the second mobile terminal, or, the second mobile terminal of control moves to first
Dynamic terminal charge.
Specifically, when the electrical demand information of the first mobile terminal and the electrical demand information table of the second mobile terminal
Bright, the electrical demand degree of the first mobile terminal is less than the electrical demand degree of the second mobile terminal, then controls the first movement eventually
Second mobile terminal is charged at end;Or first mobile terminal electrical demand degree higher than the second mobile terminal electricity need
Degree is sought, then controls the second mobile terminal to charge the first mobile terminal.
Embodiments of the invention control the discharge and recharge between mobile terminal, energy according to the electrical demand information of mobile terminal
Enough charge requirements for more fully meeting user, improve the intelligent of mobile terminal.
Preferably, measurement period includes multiple service life before current time, when each service life includes multiple
Between unit, each time quantum includes multiple time subunits;
Information determination module 401 includes:
First determination sub-module 4011, for according to default electrical demand parameter, determining the electricity of the first mobile terminal
Demand information, electrical demand information comprise at least electrical demand value;Electrical demand parameter includes current demand electricity, electricity uses
It is at least one in the weighted average of predicted value and electricity difference;Electrical demand value is that electrical demand parameter is weighted
Numerical value obtained by summing;
Wherein, required electricity when current demand electricity is the first mobile terminal current state to electricity full state;
Electricity is to be moved eventually using the first of data determination according to the electricity at least one measurement period using predicted value
Hold the predicted value using electricity in next time subunit at current time;
The weighted average of electricity difference is first that data determination is used according to the electricity at least one measurement period
The weighted average of the electricity difference of history dump energy and current residual electricity in preset number service life.
Alternatively, include referring to Fig. 5, the first determination sub-module 4011:
Computing unit 40111, for default first weights according to each electrical demand parameter, to electrical demand parameter
To be weighted summation, the electrical demand value of the first mobile terminal is obtained.
Alternatively, also include referring to Fig. 5, mobile terminal 400:
Power quantity predicting module 403, for the historical data used according to the electricity at least one measurement period, it is determined that electric
Amount uses predicted value;
Power quantity predicting module 403 includes:
Second determination sub-module 4031, for determining in the second preset number time quantum before current time, with
The electricity use value of current time corresponding time subunit;
3rd determination sub-module 4032, for according to electricity use value, determining the first mobile terminal under current time
The electricity of one time subunit uses predicted value;Average of the electricity using predicted value for electricity use value, or according to default
Algorithm calculates electricity use value the numerical value of gained.
Alternatively, also include referring to Fig. 5, mobile terminal 400:
Electricity determining module 404, for the historical data used according to the electricity at least one measurement period, it is determined that electric
Measure the weighted average of difference;
Electricity determining module 404 includes:
Difference determination sub-module 4041, used for the electricity at least one measurement period according to the first mobile terminal
Historical data, determine in corresponding with current time unit time quantum in the first preset number service life, and ought
The corresponding dump energy of time subunit of time subunit where the preceding moment and the electricity difference of current residual electricity;
Weight computing submodule 4042, for according to default second weights, adding to the first preset number electricity difference
Power is averaging, and obtains the weighted average of electricity difference.
Alternatively, include referring to Fig. 5, charge control module 402:
Discharge submodule 4021, is needed for the electrical demand value when the first mobile terminal less than the electricity of the second mobile terminal
During evaluation, the first mobile terminal of control charges to the second mobile terminal;
Charge submodule 4022, is needed for the electrical demand value when the first mobile terminal higher than the electricity of the second mobile terminal
During evaluation, the second mobile terminal of control charges to the first mobile terminal.
Alternatively, electric discharge submodule 4021 is used for:
When the weighted average of electricity difference is not more than a default electricity difference threshold, and the use of the 3rd preset number
The first mobile terminal is in the probability of charged state less than two points in the time quantum corresponding with current time unit in cycle
One of, and current residual electricity is more than default dump energy threshold value, then when the electrical demand value of the first mobile terminal is less than second
During the electrical demand value of mobile terminal, the first mobile terminal of control charges to the second mobile terminal.
Alternatively, also include referring to Fig. 5, mobile terminal 400:
Modified weight module 405, for detect user change the first mobile terminal charging or be electrically charged state when, adjust
The first weights and/or default second weights of adjustment of whole current demand electricity.
Alternatively, include referring to Fig. 5, charge control module 402:
Stop charging submodule 4023, for detect the current motor pattern of the first mobile terminal do not meet it is default can
During discharge and recharge motor pattern, stop performing the charging of the first mobile terminal or be electrically charged.
In the above embodiment of the present invention, by the electricity need that data determination is used according to current residual electricity and electricity
Information is sought, to show the current electrical demand degree of mobile terminal 400;By contrasting the first mobile terminal and the second movement eventually
The electrical demand information at end, control the mode mutually to charge therebetween.Consider the current residual electricity of mobile terminal 400 with
And the use habit that user is recent, decision-making is carried out with reference to the actual conditions of user, enables the mobile terminal 400 of some electricity redundancies
Enough mobile terminals 400 automatically in short supply to some electricity charge, and improve the usage experience of user and the use effect of battery
Rate.
On the other hand, embodiments of the invention additionally provide a kind of mobile terminal, including:Memory, processor and storage
On a memory and the computer program that can run on a processor, realized when the computer program is by the computing device
Each process of above-mentioned charge/discharge control method embodiment, and identical technique effect can be reached, to avoid repeating, here no longer
Repeat.
Another further aspect, embodiments of the invention additionally provide a kind of computer-readable recording medium, computer-readable storage
Computer program is stored with medium, is realized when computer program is executed by processor each in above-mentioned charge/discharge control method
Process, and identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable storage
Medium, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
Referring to Fig. 6, another embodiment of the present invention provides a kind of mobile terminal 600.Mobile terminal 600 shown in Fig. 6
Including:At least one processor 601, memory 602, at least one network interface 604 and other users interface 603.It is mobile
Each component in terminal 600 is coupled by bus system 605.It is understood that bus system 605 is used to realize these groups
Connection communication between part.Bus system 606 is in addition to including data/address bus, in addition to power bus, controlling bus and state
Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 605 in figure 6.
Wherein, user interface 603 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch Link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 602 of system and method described herein be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 602 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Operating system 6021 and application program 6022.
Wherein, operating system 6021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for
Realize various basic businesses and the hardware based task of processing.Application program 6022, include various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business, realize the embodiment of the present invention
The program of method may be embodied in application program 6022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 602, specifically, can be application
The program stored in program 6022 or instruction, processor 601 are used for:According to the current residual electricity of the first mobile terminal and
Electricity of one mobile terminal at least one measurement period uses data, determines the electrical demand information of the first mobile terminal;
According to the electrical demand information of the first mobile terminal and the electrical demand information of the second mobile terminal, the first mobile terminal is controlled
Second mobile terminal is charged, or, the second mobile terminal of control charges to the first mobile terminal.
The method that the embodiments of the present invention disclose can apply in processor 601, or be realized by processor 601.
Processor 601 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing
Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 602, processor 601 read the information in memory 602, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application
Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized herein by performing the module (such as process, function etc.) of function described herein for software
Described technology.Software code is storable in memory and passes through computing device.Memory can within a processor or
Realized outside processor.
Alternatively, include multiple service life before current time as another embodiment, measurement period, each make
Include multiple time quantums with the cycle, each time quantum includes multiple time subunits;
According to the current residual electricity of the first mobile terminal and the first mobile terminal at least one measurement period
Electricity uses data, the step of determining the electrical demand information of the first mobile terminal, including:
According to default electrical demand parameter, the electrical demand information of the first mobile terminal is determined, electrical demand information is extremely
Include electrical demand value less;Electrical demand parameter include current demand electricity, electricity using predicted value and electricity difference plus
It is at least one in weight average value;Electrical demand value is that the numerical value of summation gained is weighted to electrical demand parameter;
Wherein, required electricity when current demand electricity is the first mobile terminal current state to electricity full state;
Electricity is to be moved eventually using the first of data determination according to the electricity at least one measurement period using predicted value
Hold the predicted value using electricity in next time subunit at current time;
The weighted average of electricity difference is first that data determination is used according to the electricity at least one measurement period
The weighted average of the electricity difference of history dump energy and current residual electricity in preset number service life.
Alternatively, it is additionally operable to as another embodiment, processor 601:According to the default of each electrical demand parameter
First weights, to electrical demand parameter to be weighted summation, obtain the electrical demand value of the first mobile terminal.
Alternatively, it is additionally operable to as another embodiment, processor 601:According to the electricity at least one measurement period
The historical data used, determine that electricity uses predicted value;
The historical data used according to the electricity at least one measurement period, the step of electricity uses predicted value is determined,
Including:
Determine in the second preset number time quantum before current time, the chronon list corresponding with current time
The electricity use value of member;
According to electricity use value, determine that the first mobile terminal uses in the electricity of next time subunit at current time
Predicted value;Electricity calculates gained using the average that predicted value is electricity use value, or according to default algorithm to electricity use value
Numerical value.
Alternatively, it is additionally operable to as another embodiment, processor 601:According to the electricity at least one measurement period
The historical data used, determine the weighted average of electricity difference;
The historical data used according to the electricity at least one measurement period, determine the weighted average of electricity difference
Step, including:
The historical data used according to the electricity at least one measurement period of the first mobile terminal, determine that first is default
In number service life in the time quantum corresponding with current time unit, with the time subunit phase where current time
The dump energy of corresponding time subunit and the electricity difference of current residual electricity;
According to default second weights, the first preset number electricity weighted differences are averaging, obtain electricity difference
Weighted average.
Alternatively, it is additionally operable to as another embodiment, processor 601:When the electrical demand value of the first mobile terminal is low
When the electrical demand value of the second mobile terminal, the first mobile terminal of control charges to the second mobile terminal;Or
When the electrical demand value of the first mobile terminal is higher than the electrical demand value of the second mobile terminal, the movement of control second
The mobile terminal of terminal-pair first charges.
Alternatively, it is additionally operable to as another embodiment, processor 601:When the weighted average of electricity difference is not more than
One default electricity difference threshold, and time quantum corresponding with current time unit in the 3rd preset number service life
The probability that interior first mobile terminal is in charged state is less than half, and current residual electricity is more than default dump energy threshold
Value, then when the electrical demand value of the first mobile terminal is less than the electrical demand value of the second mobile terminal, the movement of control first is eventually
Second mobile terminal is charged at end.
Alternatively, it is additionally operable to as another embodiment, processor 601:Detect that user changes the first mobile terminal and filled
When electricity or the state being electrically charged, the first weights and/or default second weights of adjustment of current demand electricity are adjusted.
Alternatively, it is additionally operable to as another embodiment, processor 601:Detect the current motion of the first mobile terminal
Pattern do not meet it is default can discharge and recharge motor pattern when, stop perform the first mobile terminal charging or be electrically charged.
Mobile terminal 600 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal 600 of the embodiment of the present invention, pass through what is determined according to current residual electricity and electricity using data
Electrical demand information, to show the current electrical demand degree of mobile terminal;Moved by contrasting the first mobile terminal and second
The electrical demand information of dynamic terminal, controls the mode mutually to charge therebetween.Consider mobile terminal current residual electricity
And the use habit that user is recent, decision-making is carried out with reference to the actual conditions of user, enables the mobile terminal of some electricity redundancies
Enough mobile terminals automatically in short supply to some electricity charge, and improve the usage experience of user and the service efficiency of battery.
Referring to Fig. 7, another embodiment of the present invention provides a kind of mobile terminal 700.Specifically, the mobile end in Fig. 7
End 700 can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted
Computer etc..
Mobile terminal 700 in Fig. 7 includes radio frequency (Radio Frequency, RF) circuit 710, memory 720, input
Unit 730, display unit 740, processor 750, Wi-Fi (Wireless Fidelity) module 760, voicefrequency circuit 770, electricity
Source 780.
Wherein, input block 730 can be used for the numeral or character information for receiving user's input, and generation and mobile terminal
The signal input that 700 user is set and function control is relevant.
Specifically, in the embodiment of the present invention, the input block 730 can include contact panel 731.Contact panel 731,
Referred to as touch-screen, collecting touch operation of the user on or near it, (for example user is any suitable using finger, stylus etc.
The operation of object or annex on contact panel 731), and corresponding attachment means are driven according to formula set in advance.It is optional
, contact panel 731 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection means, and is converted into contact coordinate, then gives the processor 750, and can reception processing device
750 orders sent simultaneously are performed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Type realizes contact panel 731.Except contact panel 731, input block 730 can also include other input equipments 732, and other are defeated
Enter equipment 732 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball,
One or more in mouse, action bars etc..
Wherein, display unit 740 can be used for display by the information of user's input or be supplied to information and the movement of user
The various menu interfaces of terminal 700.Display unit 740 may include display panel 741, optionally, can use LCD or organic hairs
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that contact panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined
After measuring the touch operation on or near it, processor 750 is sent to determine the type of touch event, is followed by subsequent processing device
750 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And arrangement mode of the conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/
Or the data in the second memory 722, processor 750 are used for:According to the current residual electricity of the first mobile terminal and
Electricity of one mobile terminal at least one measurement period uses data, determines the electrical demand information of the first mobile terminal;
According to the electrical demand information of the first mobile terminal and the electrical demand information of the second mobile terminal, the first mobile terminal is controlled
Second mobile terminal is charged, or, the second mobile terminal of control charges to the first mobile terminal.
Alternatively, include multiple service life before current time as another embodiment, measurement period, each make
Include multiple time quantums with the cycle, each time quantum includes multiple time subunits;
According to the current residual electricity of the first mobile terminal and the first mobile terminal at least one measurement period
Electricity uses data, the step of determining the electrical demand information of the first mobile terminal, including:
According to default electrical demand parameter, the electrical demand information of the first mobile terminal is determined, electrical demand information is extremely
Include electrical demand value less;Electrical demand parameter include current demand electricity, electricity using predicted value and electricity difference plus
It is at least one in weight average value;Electrical demand value is that the numerical value of summation gained is weighted to electrical demand parameter;
Wherein, required electricity when current demand electricity is the first mobile terminal current state to electricity full state;
Electricity is to be moved eventually using the first of data determination according to the electricity at least one measurement period using predicted value
Hold the predicted value using electricity in next time subunit at current time;
The weighted average of electricity difference is first that data determination is used according to the electricity at least one measurement period
The weighted average of the electricity difference of history dump energy and current residual electricity in preset number service life.
Alternatively, it is additionally operable to as another embodiment, processor 750:According to the default of each electrical demand parameter
First weights, to electrical demand parameter to be weighted summation, obtain the electrical demand value of the first mobile terminal.
Alternatively, it is additionally operable to as another embodiment, processor 750:According to the electricity at least one measurement period
The historical data used, determine that electricity uses predicted value;
The historical data used according to the electricity at least one measurement period, the step of electricity uses predicted value is determined,
Including:
Determine in the second preset number time quantum before current time, the chronon list corresponding with current time
The electricity use value of member;
According to electricity use value, determine that the first mobile terminal uses in the electricity of next time subunit at current time
Predicted value;Electricity calculates gained using the average that predicted value is electricity use value, or according to default algorithm to electricity use value
Numerical value.
Alternatively, it is additionally operable to as another embodiment, processor 750:According to the electricity at least one measurement period
The historical data used, determine the weighted average of electricity difference;
The historical data used according to the electricity at least one measurement period, determine the weighted average of electricity difference
Step, including:
The historical data used according to the electricity at least one measurement period of the first mobile terminal, determine that first is default
In number service life in the time quantum corresponding with current time unit, with the time subunit phase where current time
The dump energy of corresponding time subunit and the electricity difference of current residual electricity;
According to default second weights, the first preset number electricity weighted differences are averaging, obtain electricity difference
Weighted average.
Alternatively, it is additionally operable to as another embodiment, processor 750:When the electrical demand value of the first mobile terminal is low
When the electrical demand value of the second mobile terminal, the first mobile terminal of control charges to the second mobile terminal;Or
When the electrical demand value of the first mobile terminal is higher than the electrical demand value of the second mobile terminal, the movement of control second
The mobile terminal of terminal-pair first charges.
Alternatively, it is additionally operable to as another embodiment, processor 750:When the weighted average of electricity difference is not more than
One default electricity difference threshold, and time quantum corresponding with current time unit in the 3rd preset number service life
The probability that interior first mobile terminal is in charged state is less than half, and current residual electricity is more than default dump energy threshold
Value, then when the electrical demand value of the first mobile terminal is less than the electrical demand value of the second mobile terminal, the movement of control first is eventually
Second mobile terminal is charged at end.
Alternatively, it is additionally operable to as another embodiment, processor 750:Detect that user changes the first mobile terminal and filled
When electricity or the state being electrically charged, the first weights and/or default second weights of adjustment of current demand electricity are adjusted.
Alternatively, it is additionally operable to as another embodiment, processor 750:Detect the current motion of the first mobile terminal
Pattern do not meet it is default can discharge and recharge motor pattern when, stop perform the first mobile terminal charging or be electrically charged.
Mobile terminal 700 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal 700 of the embodiment of the present invention, pass through what is determined according to current residual electricity and electricity using data
Electrical demand information, to show the current electrical demand degree of mobile terminal;Moved by contrasting the first mobile terminal and second
The electrical demand information of dynamic terminal, controls the mode mutually to charge therebetween.Consider mobile terminal current residual electricity
And the use habit that user is recent, decision-making is carried out with reference to the actual conditions of user, enables the mobile terminal of some electricity redundancies
Enough mobile terminals automatically in short supply to some electricity charge, and improve the usage experience of user and the service efficiency of battery.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc, CD etc. are various can be with Jie of store program codes
Matter.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (20)
- A kind of 1. charge/discharge control method, applied to the first mobile terminal, it is characterised in that including:According to the current residual electricity of first mobile terminal and first mobile terminal at least one measurement period Interior electricity uses data, determines the electrical demand information of first mobile terminal;According to the electrical demand information of first mobile terminal and the electrical demand information of the second mobile terminal, described in control First mobile terminal charges to second mobile terminal, or, control second mobile terminal whole to the described first movement End charging.
- 2. charge/discharge control method according to claim 1, it is characterised in that the measurement period include current time it Preceding multiple service life, each service life include multiple time quantums, when each time quantum includes multiple Between subelement;The current residual electricity and first mobile terminal according to first mobile terminal is at least one statistics Electricity in cycle uses data, the step of determining the electrical demand information of first mobile terminal, including:According to default electrical demand parameter, the electrical demand information of first mobile terminal, the electrical demand letter are determined Breath comprises at least electrical demand value;The electrical demand parameter includes current demand electricity, electricity uses predicted value and electricity It is at least one in the weighted average of difference;The electrical demand value for the electrical demand parameter be weighted summation institute The numerical value obtained;Wherein, required electricity when the current demand electricity is the first mobile terminal current state to electricity full state Amount;The electricity using predicted value be determined according to the electricity at least one measurement period using data described the Predicted value using electricity of one mobile terminal in next time subunit at current time;The weighted average of the electricity difference is to be determined according to the electricity at least one measurement period using data The weighted average of the electricity difference of history dump energy and current residual electricity in first preset number service life.
- 3. charge/discharge control method according to claim 2, it is characterised in that described to be joined according to default electrical demand Number, the step of determining the electrical demand information of first mobile terminal, including:According to default first weights of each electrical demand parameter, the electrical demand parameter is asked with being weighted With obtain the electrical demand value of first mobile terminal.
- 4. charge/discharge control method according to claim 2, it is characterised in that methods described also includes:The historical data used according to the electricity at least one measurement period, determine that the electricity uses predicted value;The historical data that the electricity according at least one measurement period uses, determine that the electricity uses predicted value The step of, including:Determine in the second preset number time quantum before current time, the time subunit corresponding with current time Electricity use value;According to the electricity use value, electricity of first mobile terminal in next time subunit at current time is determined Use predicted value;Average of the electricity using predicted value for the electricity use value, or according to default algorithm to the electricity Measure the numerical value that use value calculates gained.
- 5. charge/discharge control method according to claim 4, it is characterised in that methods described also includes:The historical data used according to the electricity at least one measurement period, determine the weighted average of the electricity difference Value;The historical data that the electricity according at least one measurement period uses, determines the weighting of the electricity difference The step of average value, including:The historical data used according to the electricity at least one measurement period of first mobile terminal, determines first In preset number service life in the time quantum corresponding with current time unit, with the chronon list where current time The corresponding dump energy of time subunit of member and the electricity difference of current residual electricity;According to default second weights, the first preset number electricity weighted differences are averaging, it is poor to obtain the electricity The weighted average of value.
- 6. charge/discharge control method according to claim 2, it is characterised in that described according to first mobile terminal The electrical demand information of electrical demand information and the second mobile terminal, first mobile terminal is controlled to be moved to described second Terminal charge, or, the step of controlling second mobile terminal to charge first mobile terminal, including:When the electrical demand value of first mobile terminal is less than the electrical demand value of second mobile terminal, described in control First mobile terminal charges to second mobile terminal;When the electrical demand value of first mobile terminal is higher than the electrical demand value of second mobile terminal, described in control Second mobile terminal charges to first mobile terminal.
- 7. charge/discharge control method according to claim 6, it is characterised in that described when the electricity of first mobile terminal When amount requirements are less than the electrical demand value of second mobile terminal, first mobile terminal is controlled to be moved to described second The step of terminal charge, including:When the weighted average of the electricity difference is not more than a default electricity difference threshold, and the use of the 3rd preset number First mobile terminal is in the probability of charged state and is less than in the time quantum corresponding with current time unit in cycle Half, and the current residual electricity is more than default dump energy threshold value, then when the electricity of first mobile terminal needs When evaluation is less than the electrical demand value of second mobile terminal, first mobile terminal is controlled to second mobile terminal Charging.
- 8. charge/discharge control method according to claim 5, it is characterised in that control first mobile terminal pair Second mobile terminal charging, or, the step of controlling second mobile terminal to charge first mobile terminal it Afterwards, including:When detecting that user changes the first mobile terminal charging or the state being electrically charged, the current demand electricity is adjusted First weights and/or adjustment default second weights.
- 9. charge/discharge control method according to claim 1, it is characterised in that control first mobile terminal pair Second mobile terminal charging, or, the step of controlling second mobile terminal charge first mobile terminal, wrap Include:Detect the current motor pattern of first mobile terminal do not meet it is default can discharge and recharge motor pattern when, stop holding Row the first mobile terminal charging is electrically charged.
- A kind of 10. mobile terminal, it is characterised in that including:Information determination module, for the current residual electricity according to the first mobile terminal and first mobile terminal at least Electricity in one measurement period uses data, determines the electrical demand information of first mobile terminal;Charge control module, for the electrical demand information and the electricity of the second mobile terminal according to first mobile terminal Demand information, first mobile terminal is controlled to charge second mobile terminal, or, control second mobile terminal First mobile terminal is charged.
- 11. mobile terminal according to claim 10, it is characterised in that the measurement period was included before current time Multiple service life, each service life include multiple time quantums, and each time quantum includes multiple chronons Unit;Described information determining module includes:First determination sub-module, for according to default electrical demand parameter, determining the electrical demand of first mobile terminal Information, the electrical demand information comprise at least electrical demand value;The electrical demand parameter includes current demand electricity, electricity Using at least one in the weighted average of predicted value and electricity difference;The electrical demand value is to the electrical demand Parameter is weighted the numerical value of summation gained;Wherein, required electricity when the current demand electricity is the first mobile terminal current state to electricity full state Amount;The electricity using predicted value be determined according to the electricity at least one measurement period using data described the Predicted value using electricity of one mobile terminal in next time subunit at current time;The weighted average of the electricity difference is to be determined according to the electricity at least one measurement period using data The weighted average of the electricity difference of history dump energy and current residual electricity in first preset number service life.
- 12. mobile terminal according to claim 11, it is characterised in that first determination sub-module includes:Computing unit, for default first weights according to each electrical demand parameter, to the electrical demand parameter To be weighted summation, the electrical demand value of first mobile terminal is obtained.
- 13. mobile terminal according to claim 11, it is characterised in that the mobile terminal also includes:Power quantity predicting module, for the historical data used according to the electricity at least one measurement period, it is determined that described Electricity uses predicted value;The power quantity predicting module includes:Second determination sub-module, for determining in the second preset number time quantum before current time, with current time The electricity use value of corresponding time subunit;3rd determination sub-module, for according to the electricity use value, determining first mobile terminal under current time The electricity of one time subunit uses predicted value;The electricity uses the average that predicted value is the electricity use value, or root The numerical value of gained is calculated the electricity use value according to default algorithm.
- 14. mobile terminal according to claim 13, it is characterised in that the mobile terminal also includes:Electricity determining module, for the historical data used according to the electricity at least one measurement period, it is determined that described The weighted average of electricity difference;The electricity determining module includes:Difference determination sub-module, used for the electricity at least one measurement period according to first mobile terminal Historical data, determine in corresponding with current time unit time quantum in the first preset number service life, and ought The corresponding dump energy of time subunit of time subunit where the preceding moment and the electricity difference of current residual electricity;Weight computing submodule, for according to default second weights, asking the first preset number electricity weighted differences It is average, obtain the weighted average of the electricity difference.
- 15. mobile terminal according to claim 11, it is characterised in that the charge control module includes:Discharge submodule, is needed for the electrical demand value when first mobile terminal less than the electricity of second mobile terminal During evaluation, first mobile terminal is controlled to charge second mobile terminal;Charge submodule, is needed for the electrical demand value when first mobile terminal higher than the electricity of second mobile terminal During evaluation, second mobile terminal is controlled to charge first mobile terminal.
- 16. mobile terminal according to claim 15, it is characterised in that the electric discharge submodule is used for:When the weighted average of the electricity difference is not more than a default electricity difference threshold, and the use of the 3rd preset number First mobile terminal is in the probability of charged state and is less than in the time quantum corresponding with current time unit in cycle Half, and the current residual electricity is more than default dump energy threshold value, then when the electricity of first mobile terminal needs When evaluation is less than the electrical demand value of second mobile terminal, first mobile terminal is controlled to second mobile terminal Charging.
- 17. mobile terminal according to claim 14, it is characterised in that including:Modified weight module, during for detecting that user changes first mobile terminal charging or the state being electrically charged, adjustment The first weights and/or adjustment default second weights of the current demand electricity.
- 18. mobile terminal according to claim 10, it is characterised in that the charge control module includes:Stop charging submodule, for detect the current motor pattern of first mobile terminal do not meet it is default can charge and discharge During coron pattern, stop performing the first mobile terminal charging or be electrically charged.
- A kind of 19. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The computer program run on processor is stated, the computer program is realized such as claim 1 to 9 during the computing device Any one of charge/discharge control method in step.
- 20. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the computer program realize charge and discharge control side as claimed in any one of claims 1-9 wherein when being executed by processor Step in method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710612226.0A CN107426424B (en) | 2017-07-25 | 2017-07-25 | A kind of charge/discharge control method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710612226.0A CN107426424B (en) | 2017-07-25 | 2017-07-25 | A kind of charge/discharge control method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107426424A true CN107426424A (en) | 2017-12-01 |
CN107426424B CN107426424B (en) | 2019-07-26 |
Family
ID=60430319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710612226.0A Active CN107426424B (en) | 2017-07-25 | 2017-07-25 | A kind of charge/discharge control method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107426424B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108235795A (en) * | 2017-12-20 | 2018-06-29 | 深圳前海达闼云端智能科技有限公司 | Charging method, device, terminal device and computer readable storage medium |
CN108539822A (en) * | 2018-04-28 | 2018-09-14 | 鲍丁玲 | A kind of battery protecting method of charger baby, device and its readable storage medium storing program for executing machine terminal equipment |
CN108696688A (en) * | 2018-07-13 | 2018-10-23 | 维沃移动通信有限公司 | A kind of camera, terminal and image pickup method |
CN109669629A (en) * | 2018-11-22 | 2019-04-23 | 厦门科灿信息技术有限公司 | Battery charging and discharging date storage method and terminal device |
CN109768602A (en) * | 2018-10-11 | 2019-05-17 | 浙江动一新能源动力科技股份有限公司 | A kind of the battery pack charging/discharging thereof and system of garden instrument |
CN111654084A (en) * | 2020-06-16 | 2020-09-11 | 中国联合网络通信集团有限公司 | Reverse power supply terminal confirmation method and system, and reverse charging method and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103730933A (en) * | 2013-12-23 | 2014-04-16 | 联想(北京)有限公司 | Charging method and electronic devices |
CN103986831A (en) * | 2014-05-19 | 2014-08-13 | 可牛网络技术(北京)有限公司 | Mobile terminal battery available time prediction method and device |
CN104426186A (en) * | 2013-09-02 | 2015-03-18 | 联想(北京)有限公司 | Charging control method and electronic equipment |
KR20160022179A (en) * | 2014-08-19 | 2016-02-29 | 경북대학교 산학협력단 | Device, system and method for wireless power relay, recording medium for performing the method |
KR20160031216A (en) * | 2014-09-12 | 2016-03-22 | 경북대학교 산학협력단 | Uninterruptible power supply and control method thereof, recording medium for performing the method |
KR20160035266A (en) * | 2014-09-23 | 2016-03-31 | 이귀봉 | System and method for cutting off standby power |
CN105680510A (en) * | 2016-01-29 | 2016-06-15 | 宇龙计算机通信科技(深圳)有限公司 | Charging control method and charging control device used for electronic equipment |
CN105743158A (en) * | 2014-12-24 | 2016-07-06 | 三星电子株式会社 | Apparatus and method for charging electronic device having battery |
CN105790349A (en) * | 2016-01-27 | 2016-07-20 | 努比亚技术有限公司 | Mutual charging control method and device for mobile terminals |
CN106125878A (en) * | 2016-06-13 | 2016-11-16 | 联想(北京)有限公司 | A kind of charging method and electronic equipment |
CN106383767A (en) * | 2016-09-13 | 2017-02-08 | 广东小天才科技有限公司 | charging reminding method and device |
-
2017
- 2017-07-25 CN CN201710612226.0A patent/CN107426424B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104426186A (en) * | 2013-09-02 | 2015-03-18 | 联想(北京)有限公司 | Charging control method and electronic equipment |
CN103730933A (en) * | 2013-12-23 | 2014-04-16 | 联想(北京)有限公司 | Charging method and electronic devices |
CN103986831A (en) * | 2014-05-19 | 2014-08-13 | 可牛网络技术(北京)有限公司 | Mobile terminal battery available time prediction method and device |
KR20160022179A (en) * | 2014-08-19 | 2016-02-29 | 경북대학교 산학협력단 | Device, system and method for wireless power relay, recording medium for performing the method |
KR20160031216A (en) * | 2014-09-12 | 2016-03-22 | 경북대학교 산학협력단 | Uninterruptible power supply and control method thereof, recording medium for performing the method |
KR20160035266A (en) * | 2014-09-23 | 2016-03-31 | 이귀봉 | System and method for cutting off standby power |
CN105743158A (en) * | 2014-12-24 | 2016-07-06 | 三星电子株式会社 | Apparatus and method for charging electronic device having battery |
CN105790349A (en) * | 2016-01-27 | 2016-07-20 | 努比亚技术有限公司 | Mutual charging control method and device for mobile terminals |
CN105680510A (en) * | 2016-01-29 | 2016-06-15 | 宇龙计算机通信科技(深圳)有限公司 | Charging control method and charging control device used for electronic equipment |
CN106125878A (en) * | 2016-06-13 | 2016-11-16 | 联想(北京)有限公司 | A kind of charging method and electronic equipment |
CN106383767A (en) * | 2016-09-13 | 2017-02-08 | 广东小天才科技有限公司 | charging reminding method and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108235795A (en) * | 2017-12-20 | 2018-06-29 | 深圳前海达闼云端智能科技有限公司 | Charging method, device, terminal device and computer readable storage medium |
WO2019119326A1 (en) * | 2017-12-20 | 2019-06-27 | 深圳前海达闼云端智能科技有限公司 | Charging method, device, terminal apparatus, and computer readable storage medium |
CN108539822A (en) * | 2018-04-28 | 2018-09-14 | 鲍丁玲 | A kind of battery protecting method of charger baby, device and its readable storage medium storing program for executing machine terminal equipment |
CN108696688A (en) * | 2018-07-13 | 2018-10-23 | 维沃移动通信有限公司 | A kind of camera, terminal and image pickup method |
CN109768602A (en) * | 2018-10-11 | 2019-05-17 | 浙江动一新能源动力科技股份有限公司 | A kind of the battery pack charging/discharging thereof and system of garden instrument |
CN110783977A (en) * | 2018-10-11 | 2020-02-11 | 浙江动一新能源动力科技股份有限公司 | Battery pack charging and discharging method and system of electric tool and battery pack |
CN109768602B (en) * | 2018-10-11 | 2021-11-09 | 浙江动一新能源动力科技股份有限公司 | Battery pack charging and discharging method and system for garden tool |
CN110783977B (en) * | 2018-10-11 | 2022-05-10 | 浙江动一新能源动力科技股份有限公司 | Battery pack charging and discharging method and system of electric tool and battery pack |
CN109669629A (en) * | 2018-11-22 | 2019-04-23 | 厦门科灿信息技术有限公司 | Battery charging and discharging date storage method and terminal device |
CN111654084A (en) * | 2020-06-16 | 2020-09-11 | 中国联合网络通信集团有限公司 | Reverse power supply terminal confirmation method and system, and reverse charging method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107426424B (en) | 2019-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107426424A (en) | A kind of charge/discharge control method and mobile terminal | |
CN108347068B (en) | A kind of method and mobile terminal of charging | |
CN107466077A (en) | A kind of method for switching network and mobile terminal | |
CN106469011B (en) | A kind of information display method and mobile terminal | |
CN106451640A (en) | Charging method and mobile terminal | |
CN107608863B (en) | Calibration method for electric quantity display and mobile terminal | |
CN106201321A (en) | A kind of application control method and mobile terminal | |
CN105958588A (en) | Charging method and mobile terminal | |
CN108377581A (en) | A kind of configuration method, mobile terminal and the base station of discontinuous reception DRX parameters | |
CN105898705A (en) | Method for controlling scanning frequency of wireless local area network and mobile terminal | |
CN106714251A (en) | Network connection method and mobile terminal | |
CN107565639A (en) | A kind of charging reminding method and mobile terminal | |
CN107277213B (en) | Contact person classification processing method, cloud device and mobile terminal | |
CN106125984A (en) | The touch-control processing method of a kind of mobile terminal and mobile terminal | |
CN106981904A (en) | The method and charge-discharge control system of a kind of charge and discharge control | |
CN108270252A (en) | The method and mobile terminal of a kind of charging, charging equipment | |
CN106502785A (en) | A kind of cleaning internal memory method and device of mobile terminal | |
CN106325753A (en) | Payment interface display method and mobile terminal | |
CN106953675A (en) | A kind of mobile terminal and antenna connection method | |
CN107222642A (en) | A kind of call processing method, antenna structure and mobile terminal | |
CN106357918A (en) | Method for adjusting screen brightness and mobile terminal | |
CN107145215A (en) | A kind of background application method for cleaning and mobile terminal | |
CN104636406A (en) | Method and device for pushing information according to user behaviors | |
CN107357484A (en) | One kind prompting mark adding method, terminal and computer-readable recording medium | |
CN107071264A (en) | A kind of image resolution ratio method of adjustment and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |