The acquisition methods of charge parameter, the method and terminal that show remaining charging duration
Technical field
The present invention relates to field of mobile terminals, more particularly to when a kind of acquisition methods of charge parameter, display residue charging
Long method and mobile terminal.
Background technology
With the continuous development of mobile communication technology, various mobile terminal products emerge in an endless stream, and with which quickly, easily
Operation and powerful function excite the strong desire to buy of consumer.User buy mobile phone when except select its fashion and
Property profile outside, operate intuitive and convenient, powerful is also requisite selection factor.Therefore, it is desirable in numerous competitions
Take the course of its own in product, good Consumer's Experience is very important.
Existing mobile phone charging display interface is all that single charging progress shows, or has also only shown battery
How much percentage ratio filled.This intuitive display is poor, more often user wish oneself to can directly be seen that also how many when
Between be full of, then according to the remaining time go plan when plug charge power supply line.For example, if user is wanted outside carrying mobile phone
Go out, if can only see there remains that how many electricity are filled or have been filled with that how much percentage ratio is accurately remained without one
If the remaining time, user is difficult intuitively to plan outgoing time point.In addition, existing many battery of mobile phone display functions can
Hard requirement user battery electric quantity is exhausted or is completely filled with after could correct display parameters, and this undoubtedly limits use
The use at family, but as a lot of reasons user can not charge fully according to this premise, this undoubtedly greatly reduces the body of user
Test.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of acquisition methods of charge parameter, can obtain mobile terminal
Related charge parameter, the method and mobile terminal of a kind of display residue charging duration, allows the user to obtain in charging process
Know remaining charging duration, to improve Consumer's Experience.
In order to solve above-mentioned technical problem, the invention provides a kind of acquisition methods of charge parameter, including:
During mobile terminal is to battery charging, the magnitude of voltage of battery described in timing sampling records each sampled point
The magnitude of voltage that corresponding charging duration and sampling are obtained;
The corresponding relation of charging duration and magnitude of voltage is stored in the terminal.
Further, said method also has following feature:
The process that the mobile terminal charges to battery, is the charging measurement mistake carried out to battery before mobile terminal dispatches from the factory
Journey;
The corresponding relation of the charging duration and magnitude of voltage, records during a charging measurement, or, be by
Repeatedly the charging duration and magnitude of voltage of charging measurement process record is obtained after being fitted with curve mode.
Further, said method also has following feature:
The process that the mobile terminal charges to battery, is that the mobile terminal self study after dispatching from the factory obtains the corresponding relation
Process.
Further, said method also has following feature:
During the mobile terminal obtains the corresponding relation by self study, as the battery has been filled with, record
Self study has been completed, and is otherwise recorded self study and is not also completed;
When the mobile terminal charges to battery again, such as judge that self study has been completed, the mobile terminal sampling electricity
The magnitude of voltage in pond, calculates remaining charging duration according to the corresponding relation;Such as judge that the self study is not also completed, then open again
Start from the process that study obtains the corresponding relation.
Further, said method also has following feature:
During the magnitude of voltage of the mobile terminal sampling battery, if the electricity of the sampling is not inquired from the corresponding relation
Pressure value, then record the magnitude of voltage charging duration corresponding with this charging process of the sampling, until the magnitude of voltage sampled
Equal to the minimum amount of voltage that recorded in the corresponding relation;
By the charging duration recorded in the corresponding relation respectively all plus the minimum is reached in this charging process
The charging duration of magnitude of voltage, is then updated to the corresponding relation.
In order to solve the above problems, present invention also offers a kind of method that mobile terminal shows remaining charging duration, bag
Include:
In charging process, the magnitude of voltage of sampling battery;
From the corresponding relation of the magnitude of voltage and charging duration of the battery for prestoring, the magnitude of voltage for inquiring about the sampling is corresponding
Charging duration;
According to charging duration when battery is full of in the corresponding relation and the charging duration for inquiring, calculate surplus
Remaining charging duration simultaneously shows.
Further, said method also has following feature:
It is described in charging process, the magnitude of voltage of sampling battery is the magnitude of voltage of timing sampling battery;
In the corresponding relation of the magnitude of voltage from the battery for prestoring and charging duration, the magnitude of voltage pair of the sampling is inquired about
The charging duration answered, be by timing sampling to the magnitude of voltage of battery match an immediate magnitude of voltage for prestoring, should
Magnitude of voltage corresponding charging duration of the corresponding charging duration of the magnitude of voltage for prestoring for matching as the sampling.
Further, said method also has following feature:
The corresponding relation is to carry out a charging measurement to obtain before the mobile terminal dispatches from the factory to battery, or institute
State during carrying out multiple charging measurement to battery before mobile terminal dispatches from the factory, the charging duration of record and magnitude of voltage are with curve mode
What fitting was obtained, or the self study acquisition in charging process after the mobile terminal dispatches from the factory.
Further, said method also has following feature:
The mobile terminal during self study, as the battery has been filled with, is then recorded after dispatching from the factory in charging process
Self study has been completed, and is otherwise recorded self study and is not also completed;
When the mobile terminal charges to battery again, such as judge that self study has been completed, the mobile terminal sampling electricity
The magnitude of voltage in pond, calculates remaining charging duration according to the corresponding relation;Such as judge that the self study is not also completed, then open again
Start from the process that study obtains the corresponding relation.
Further, said method also has following feature:Also include:
During the magnitude of voltage of the mobile terminal sampling battery, if the electricity of the sampling is not inquired from the corresponding relation
Pressure value, then record the magnitude of voltage of the sampling and its charging duration in this charging process, until magnitude of voltage for sampling etc.
The minimum amount of voltage that recorded in the corresponding relation;
By the charging duration recorded in the corresponding relation respectively all plus the minimum is reached in this charging process
The charging duration of magnitude of voltage, is then updated to the corresponding relation.
Further, said method also has following feature:Also include:
The mobile terminal points out whether to be charged the corresponding relation of duration and the magnitude of voltage of battery when beginning is charged
Self study.
In order to solve the above problems, present invention also offers a kind of mobile terminal, including:
First sampling module, for during charging to battery, the magnitude of voltage of battery described in timing sampling;
Logging modle, for recording the magnitude of voltage that the corresponding charging duration of each sampled point and sampling are obtained;
Memory module, for storing the corresponding relation of the charging duration and magnitude of voltage.
Further, above-mentioned mobile terminal also has following feature:The mobile terminal also includes:
Second sampling module, in charging process, periodically or receives the magnitude of voltage of instruction post-sampling battery;
Enquiry module, for, in the corresponding relation that stores from the memory module, inquiring about the electricity of the second sampling module sampling
Pressure is worth corresponding charging duration;
Computing module, for according in the corresponding relation, battery is full of when charging duration and the charging for inquiring
Duration, calculates remaining charging duration.
Further, above-mentioned mobile terminal also has following feature:
The enquiry module, be by timing sampling to the magnitude of voltage of battery match the immediate voltage for prestoring
Value, the corresponding charging duration of the magnitude of voltage for prestoring that this is matched is used as the corresponding charging duration of the magnitude of voltage of the sampling.
Further, above-mentioned mobile terminal also has following feature:The mobile terminal also includes:
Display module, for showing the remaining charging duration.
Further, above-mentioned mobile terminal also has following feature:
The display module, be additionally operable to charge start when, display whether to be charged the magnitude of voltage of duration and battery
The information of the self study of corresponding relation.
Further, above-mentioned mobile terminal also has following feature:
First sampling module, during the self study acquisition corresponding relation, is determined after the mobile terminal dispatches from the factory
When sample the magnitude of voltage of the battery;
The logging modle, is additionally operable to by judging it is whether complete to record self study whether the battery has been filled with
Into.
Further, above-mentioned mobile terminal also has following feature:The mobile terminal also includes:
Judge module, for when beginning is charged, judging whether self study is complete according to the record of the logging modle
Into if judging, self study has been completed, and activates the second sampling module, if judging, self study is not completed, and triggering self study is obtained
Take the process of the corresponding relation.
Further, above-mentioned mobile terminal also has following feature:The mobile terminal also includes update module,
The enquiry module, if being additionally operable to from the corresponding relation of memory module storage, does not inquire the second sampling
The corresponding charging duration of magnitude of voltage of module samples, then trigger the logging modle;
The logging modle, the magnitude of voltage for being additionally operable to record the sampling of the second sampling module are corresponding with this charging process
Charging duration, the minimum amount of voltage that records in the magnitude of voltage sampled is equal to the corresponding relation;
The update module, by the charging duration recorded in the corresponding relation respectively all plus in this charging process
The charging duration of the minimum amount of voltage that is reached, then the corresponding relation is carried out more according to the record of the logging modle
Newly.
Further, above-mentioned mobile terminal also has following feature:
First sampling module, during being the charging measurement carried out to battery before the mobile terminal dispatches from the factory, regularly adopts
The magnitude of voltage of battery described in sample;
The logging modle, is that the corresponding charging duration of each sampled point and sampling are recorded during a charging measurement
The magnitude of voltage for obtaining, or after recording charging duration and magnitude of voltage during multiple charging measurement, intended with curve mode
The corresponding relation of the charging duration and magnitude of voltage is obtained after conjunction.
To sum up, the present invention provides a kind of acquisition methods of charge parameter, the method for showing remaining charging duration and movement eventually
End, can obtain the related charge parameter of mobile terminal, overcome the battery charging parameter display mode list of existing mobile terminal
One, not intuitively, the problems such as poor user experience, remaining time of charging can be shown with self adaptation, such user just can be according to residue
Charging duration schedule ahead or the every plan of modification, can make consumer have a good Consumer's Experience.
Description of the drawings
Schematic diagrams of the Fig. 1 for the mobile terminal of one embodiment of the invention;
Schematic diagrams of the Fig. 2 for the mobile terminal of another embodiment of the present invention;
Flow charts of the Fig. 3 for the acquisition methods of the charge parameter of the embodiment of the present invention;
Flow charts of the Fig. 4 for the method for the remaining charging duration of display of the embodiment of the present invention one;
Flow charts of the Fig. 5 for the method for the remaining charging duration of display of the embodiment of the present invention two;
Flow charts of the Fig. 6 for the charging self study in the embodiment of the present invention two;
Fig. 7 is the flow chart for showing remaining charging duration in the embodiment of the present invention two.
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutual combination in any.
For a better understanding of the present invention, the present invention is further described with specific embodiment below in conjunction with the accompanying drawings.
Schematic diagrams of the Fig. 1 for the mobile terminal of one embodiment of the invention, as shown in figure 1, the mobile terminal bag of the present embodiment
Include:
First sampling module, for during charging to battery, the magnitude of voltage of battery described in timing sampling;
Logging modle, for recording the magnitude of voltage that the corresponding charging duration of each sampled point and sampling are obtained;
Memory module, for storing the corresponding relation of the charging duration and magnitude of voltage.
Schematic diagrams of the Fig. 2 for the mobile terminal of another embodiment of the present invention, as shown in Fig. 2 the mobile terminal of the present embodiment
In addition to the module that the mobile terminal shown in Fig. 1 includes, can also include::
Second sampling module, in charging process, periodically or receives the magnitude of voltage of instruction post-sampling battery;
Enquiry module, for, in the corresponding relation that stores from the memory module, inquiring about the electricity of the second sampling module sampling
Pressure is worth corresponding charging duration;
Computing module, for according in the corresponding relation, battery is full of when charging duration and the charging for inquiring
Duration, calculates remaining charging duration.
Wherein, the mobile terminal of the present embodiment can also include:
Display module, for showing the remaining charging duration.
Wherein, the display module is can be also used for when beginning is charged, and displays whether to be charged duration with battery
The information of the self study of the corresponding relation of magnitude of voltage.
Wherein, the enquiry module be by timing sampling to the magnitude of voltage of battery match one and immediate prestore
Magnitude of voltage, during corresponding as the magnitude of voltage of the sampling charging of the corresponding charging duration of the magnitude of voltage for prestoring that this is matched
It is long.
In a preferred embodiment, first sampling module, is that self study obtains institute after the mobile terminal dispatches from the factory
During stating corresponding relation, the magnitude of voltage of battery described in timing sampling;
The logging modle, is additionally operable to by judging it is whether complete to record self study whether the battery has been filled with
Into.
Wherein, in the preferred embodiment, the mobile terminal can also include:
Judge module, for when beginning is charged, judging whether self study is complete according to the record of the logging modle
Into if judging, self study has been completed, and activates the second sampling module, if judging, self study is not completed, and triggering self study is obtained
Take the process of the corresponding relation.
Wherein, in the preferred embodiment, the mobile terminal can also include:The mobile terminal also includes updating mould
Block,
The enquiry module, if being additionally operable to from the corresponding relation of memory module storage, does not inquire the second sampling
The corresponding charging duration of magnitude of voltage of module samples, then trigger the logging modle;
The logging modle, the magnitude of voltage for being additionally operable to record the sampling of the second sampling module are corresponding with this charging process
Charging duration, the minimum amount of voltage that records in the magnitude of voltage sampled is equal to the corresponding relation;
The update module, by the charging duration recorded in the corresponding relation respectively all plus in this charging process
The charging duration of the minimum amount of voltage that is reached, then the corresponding relation is carried out more according to the record of the logging modle
Newly.
In another preferred embodiment, first sampling module, is battery to be carried out before the mobile terminal dispatches from the factory
Charging measurement during, the magnitude of voltage of battery described in timing sampling;
The logging modle, is that the corresponding charging duration of each sampled point and sampling are recorded during a charging measurement
The magnitude of voltage for obtaining, or after recording charging duration and magnitude of voltage during multiple charging measurement, intended with curve mode
The corresponding relation of the charging duration and magnitude of voltage is obtained after conjunction.
Flow charts of the Fig. 3 for the acquisition methods of the charge parameter of the embodiment of the present invention, as shown in Fig. 2 the side of the present embodiment
Method includes below step:
S10, mobile terminal to battery charging during, the magnitude of voltage of battery described in timing sampling records each and adopts
The magnitude of voltage that the corresponding charging duration of sampling point and sampling are obtained;
S20, the corresponding relation of charging duration and magnitude of voltage is stored in the terminal.
In a preferred embodiment, in step S10, the process that the mobile terminal charges to battery can be mobile whole
Charging measurement process battery carried out before bringing out factory;
In step S20, the corresponding relation of the charging duration and magnitude of voltage can be remembered during a charging measurement
Record, or, it is to obtain after curve mode fitting by the charging duration and magnitude of voltage of multiple charging measurement process record.
In a preferred embodiment, in step S10, process, or dispatch from the factory that the mobile terminal charges to battery
Mobile terminal self study afterwards obtains the process of the corresponding relation.
Wherein, during the mobile terminal obtains the corresponding relation by self study, as the battery has been filled with,
Record self study has been completed, and is otherwise recorded self study and is not also completed;
When the mobile terminal charges to battery again, such as judge that self study has been completed, the mobile terminal sampling electricity
The magnitude of voltage in pond, calculates remaining charging duration according to the corresponding relation;Such as judge that the self study is not also completed, then open again
Start from the process that study obtains the corresponding relation.
Wherein, during the magnitude of voltage of the mobile terminal sampling battery, if described adopting is not inquired from the corresponding relation
The magnitude of voltage of sample, then record the magnitude of voltage charging duration corresponding with this charging process of the sampling, until sampling
The minimum amount of voltage that magnitude of voltage is recorded in being equal to the corresponding relation;
By the charging duration recorded in the corresponding relation respectively all plus the minimum is reached in this charging process
The charging duration of magnitude of voltage, is then updated to the corresponding relation.
The method of the remaining charging duration of display for being proposed to the embodiment of the present invention with two embodiments below carries out detailed
Explanation.
Embodiment one
Before mobile terminal dispatches from the factory, the battery of the supporting model of the mobile terminal is tested, for example, be 0 from magnitude of voltage
Shi Qi, is charged to battery, timing sampling magnitude of voltage, the magnitude of voltage and corresponding charging duration of record down-sampling, such as t-v pair
Relation value is answered, the memory element (for example, flash (dodging storage)) of a curve values write mobile terminal after repeatedly testing, is fitted to
In, this test can adopt certain altofrequency method of testing, enough accurate with the curve for ensureing to be fitted.As shown in figure 4, the present embodiment
Including below step:
Step 101:Mobile terminal in charging process, the current magnitude of voltage of timing sampling battery;
Step 102:The corresponding charging duration t of magnitude of voltage of sampling is searched in t-V curve values1;
As learning process is a centrifugal pump using the t-v curve values that certain intervals are preserved, thus sampling obtain it is current
Magnitude of voltage, can set a matching range and then matching is gone in flash, as long as there is the matching range in flash to which
In value, it is possible to think that the match is successful.
Step 103:Total duration t when battery is full of is read from t-V curve valuesn, calculate remaining charging duration t0, t0=
tn-t1;
Step 104, reads remaining charging duration t0, including on screen.
Certainly, in step 101, mobile terminal is received in charging process, or when user passes through menu queries
Start the current magnitude of voltage of sampling battery after the instruction of the remaining charging duration of display of user input.
Advantage of this embodiment is that battery before dispatching from the factory through testing repeatedly, sample frequency is higher, t-v fit time tables
It is relatively accurate, so as to the remaining time for showing can be more accurate.
Embodiment two
In the present embodiment the corresponding relation of the magnitude of voltage of the battery of mobile terminal and charging duration be in charging process from
What study was obtained, as shown in figure 5, including below step:
Step 201:Mobile terminal is started to charge up.
Step 202:Judge whether last time charging self study completes, if not completing, turn to step 203, if completing, turn
To step 204;
In the present embodiment, the default value of preset charged state flag bit flag is 0, that is, give tacit consent to self study and do not complete, if
Flag=1 represents that self study is completed.
Step 203:It is charged self study flow process.
Generally, charge in first time or user's last time charges in the case that be not completely filled with battery all enter
Row charging self study.
Step 204:Eject whether prompting frame prompting needs to relearn, if user selects to need study, turn to step
203;If user selects to learn, step 205 is turned to;
Generally, after another kind of size battery is changed or with the use of battery, the charging duration of battery is
Need to relearn during change.
Step 205:According to the magnitude of voltage and the corresponding relation of charging duration of existing battery, remaining charging duration is obtained,
And shown.
Advantage of this embodiment is that, it is not necessary to battery is tested before dispatching from the factory, and is adapted to state any in battery
Under, remaining time of charging can be shown, the self-learning link of increase can record automatically t-V matched curve values, change battery
After self study can update t-V curve values again, adaptive ability is higher, shows that remaining time is also more accurate.
Charging self study flow charts of the Fig. 6 for the present embodiment, including below step:
Step 301:The t-v curve values for having been preserved in emptying memory element first.
Step 302:The voltage of timing sampling battery, the magnitude of voltage of record sampling is corresponding with this charging process to be filled
Electric duration.
Step 303:Judge whether battery fills with, that is, judge whether the voltage of battery has reached peak, for example
4.2V, if being full of, turns to step 304;If underfill, step 305 is turned to.
Step 304:Stop sampling, charge flag flag is put into 1, mark self study process is completed.
Step 305:Charge flag flag is set to 0, mark self study process is not completed.
The Main Function of this self study flow process is adaptive record and learns the new t-V curve values of battery.Fill for next time
Electricity is obtained and shows that remaining time provides the data that can be inquired about, so as to ensure correctly to show remaining time of charging.
Flow charts of the Fig. 7 for the remaining charging duration of display of the present embodiment, step are as follows:
Step 401:In charging process, the current magnitude of voltage of timing sampling battery.
Step 402:Judge whether current voltage value can be found in existing t-V curve linear relationships, if can not find out, turn to
Step 403, if finding, turns to step 404;
User is charged when last time, it is possible to started to charge up from zero power, causes zero (i.e. in t-V
0 moment in curve linear relationship) corresponding magnitude of voltage is not zero.Assume that 0 time corresponding voltage value is 2V, then the magnitude of voltage of 0V~2V
It is not recorded, t-V curve values imperfections.The magnitude of voltage for sampling in the range of 0V~2V in this case, just need
First to carry out t-V curves it is perfect after, then obtain remaining charging duration.
Step 403:If it find that not finding magnitude of voltage, i.e. current voltage value than 0 point of corresponding voltage value in t-v curve
It is little, then the magnitude of voltage and its charging duration in this charging process of sampling are recorded in the memory unit, until what is sampled
Magnitude of voltage can be found on curve, that is, reached the magnitude of voltage of minimum in t-v curves, and upgrade in time t-v curve values.
The update method of the present embodiment can distinguish all each charging duration for the record in original t-v curve linear relationships
Add, in this charging process, portion during charging when sampling minimum magnitude of voltage in t-v curves, will t-V coordinates carry out phase
The translation answered is capable of achieving to update.
Then the corresponding duration t of magnitude of voltage of present sample is read in t-V curve values in the updated1And total duration tn, turn
To step 405.
Step 404:The corresponding time t of magnitude of voltage of present sample is read in t-V curve values1And total time tn, turn to step
Rapid 405.
Step 405:Calculate remaining charging duration t0:t0=tn-t1。
Step 406:To be charged t remaining time0It is shown on screen.
The present embodiment, it is contemplated that in the case of not being charged from zero power, t-V is bent by renolation for user
Line value, and then self adaptation shows correct residue charging duration.
One of ordinary skill in the art will appreciate that all or part of step in said method can be instructed by program
Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read only memory, disk or CD
Deng.Alternatively, all or part of step of above-described embodiment can also be realized using one or more integrated circuits.Accordingly
Ground, each module/unit in above-described embodiment can be realized in the form of hardware, it would however also be possible to employ the shape of software function module
Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.
The preferred embodiments of the present invention are these are only, certainly, the present invention can also there are other various embodiments, without departing substantially from this
In the case of spirit and its essence, those of ordinary skill in the art work as and can make various corresponding changes according to the present invention
And deformation, but these corresponding changes and deformation should all belong to the protection domain of appended claims of the invention.