CN106772091A - The update method of battery capacity value, device and terminal - Google Patents

The update method of battery capacity value, device and terminal Download PDF

Info

Publication number
CN106772091A
CN106772091A CN201611260907.7A CN201611260907A CN106772091A CN 106772091 A CN106772091 A CN 106772091A CN 201611260907 A CN201611260907 A CN 201611260907A CN 106772091 A CN106772091 A CN 106772091A
Authority
CN
China
Prior art keywords
battery
value
battery capacity
terminal
capacity value
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
Application number
CN201611260907.7A
Other languages
Chinese (zh)
Other versions
CN106772091B (en
Inventor
张强
孔凡红
廖福椿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611260907.7A priority Critical patent/CN106772091B/en
Publication of CN106772091A publication Critical patent/CN106772091A/en
Application granted granted Critical
Publication of CN106772091B publication Critical patent/CN106772091B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The embodiment of the invention discloses a kind of update method of battery capacity value, device and terminal.The update method of the battery capacity value includes:Working condition to terminal is detected;When terminal is detected into the working condition of mark in advance, corresponding battery parameter value and preset battery capacity calculation expression are obtained;According to the battery parameter value, the preset battery capacity calculation expression is calculated, obtain corresponding output valve;Battery capacity value is updated according to the output valve, and the dump energy of battery is calculated according to the battery capacity value after renewal.Because terminal is in the working condition in advance mark, the renewal carried out to battery capacity value, and the battery capacity value after updating is more nearly the actual capacity value of battery, therefore the residual electric quantity being calculated according to the battery capacity value after the renewal can also be more nearly the real surplus electricity of battery, the i.e. embodiment of the present invention and can improve the degree of accuracy that terminal calculates the dump energy of battery.

Description

The update method of battery capacity value, device and terminal
Technical field
The invention belongs to cell art, more particularly to a kind of update method of battery capacity value, device and terminal.
Background technology
Terminal can carry out the residue electricity of computing terminal battery by voltameter (coulomb counter, also known as Coulomb meter) Value.This calculation needs to obtain the parameters value of end cell, including the rated capacity value of battery, Ran Houzai These parameter values substitution computing formula is calculated the residual electric quantity of battery.
However, in actual use, several factors can all influence the capability value of battery, such as use environment and battery Itself aging etc..Therefore, the degree of accuracy of the dump energy that the rated capacity value according to battery is calculated is relatively low.
The content of the invention
The embodiment of the present invention provides a kind of update method of battery capacity value, device and terminal, can improve terminal and calculate electricity The degree of accuracy of pond dump energy.
The embodiment of the present invention provides a kind of update method of battery capacity value, including:
Working condition to terminal is detected;
When terminal is detected into the working condition of mark in advance, corresponding battery parameter value and default battery are obtained Calculation of capacity expression formula;
According to the battery parameter value, the preset battery capacity calculation expression is calculated, obtain corresponding defeated Go out value;
Battery capacity value is updated according to the output valve, and battery is calculated according to the battery capacity value after renewal Dump energy.
The embodiment of the present invention also provides a kind of updating device of battery capacity value, including:
Detection module, detects for the working condition to terminal;
Acquisition module, for when terminal is detected into the working condition of mark in advance, obtaining corresponding battery parameter Value and preset battery capacity calculation expression;
Computing module, for according to the battery parameter value, calculating the preset battery capacity calculation expression, Obtain corresponding output valve;
Update module, for being updated to battery capacity value according to the output valve, and holds according to the battery after renewal The dump energy of magnitude calculation battery.
The embodiment of the present invention also provides a kind of terminal, including memory, processor, and stores in the memory simultaneously The computer program that can be run in the processor, realizes that the present invention is implemented described in the computing device during computer program Step in the update method of the battery capacity value that example is provided.
The update method of battery capacity value provided in an embodiment of the present invention, device and terminal, first by terminal-pair itself Working condition is detected.When the working condition that the working condition for detecting terminal is advance mark, can be obtained with triggering terminal Take the battery parameter value and preset battery capacity calculation expression corresponding with the working condition of the advance mark.Then, eventually End can be calculated the preset battery capacity calculation expression, and obtain corresponding output valve according to the battery parameter value. Afterwards, terminal can be updated according to the output valve to battery capacity value, and be calculated according to the battery capacity value after renewal The residual electric quantity of battery.Because terminal is the renewal carried out to battery capacity value in the working condition in advance mark, And the battery capacity value after updating is more nearly the actual capacity value of battery, therefore calculated according to the battery capacity value after the renewal The residual electric quantity for obtaining can also be more nearly the real surplus electricity of battery, the i.e. embodiment of the present invention and can improve terminal calculating The degree of accuracy of the dump energy of battery.
Brief description of the drawings
Below in conjunction with the accompanying drawings, described in detail by specific embodiment of the invention, technical scheme will be made And its advantage is apparent.
Fig. 1 is the schematic flow sheet of the update method of battery capacity value provided in an embodiment of the present invention.
Fig. 2 is another schematic flow sheet of the update method of battery capacity value provided in an embodiment of the present invention.
Fig. 3 is the schematic diagram of a scenario of the update method of battery capacity value provided in an embodiment of the present invention.
Fig. 4 is the another schematic flow sheet of the update method of battery capacity value provided in an embodiment of the present invention.
Fig. 5 is another schematic diagram of a scenario of the update method of battery capacity value provided in an embodiment of the present invention.
Fig. 6 is the structural representation of the updating device of battery capacity value provided in an embodiment of the present invention.
Fig. 7 is another structural representation of the updating device of battery capacity value provided in an embodiment of the present invention.
Fig. 8 is the structural representation of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
Will be detailed below.
Fig. 1 is referred to, Fig. 1 is the schematic flow sheet of the update method of battery capacity value provided in an embodiment of the present invention, flowed Journey can include:
In step S101, the working condition to terminal is detected.
It is understood that the executive agent of the embodiment of the present invention can be the terminal devices such as smart mobile phone, panel computer.
Such as, many terminal devices are all come the residual electric quantity of computing terminal battery by voltameter on the market.This The mode of kind needs to obtain the several parameter values of end cell, including the rated capacity value of battery.Then, then by these parameters Value substitutes into the residual electric quantity that certain computing formula is calculated battery.However, actually the capability value of battery can be subject to very Multifactor influence, such as temperature and battery itself it is aging etc..Therefore, the rated capacity value according to battery is calculated Dump energy the degree of accuracy it is relatively low.
The step of the embodiment of the present invention in S101, the working condition that terminal can be first to itself is detected.
It should be noted that the working condition of terminal can include such as open state, off-mode, charged state, normal Discharge condition (uncharged) when using, etc., illustrates and does not constitute limitation of the invention herein.
In step s 102, when terminal is detected into the working condition of mark in advance, corresponding battery parameter is obtained Value and preset battery capacity calculation expression.
Such as, when terminal detects itself enters the working condition of mark in advance, can obtain pre- with this with triggering terminal The working condition that first marks corresponding battery parameter value and preset battery capacity calculation expression.That is, working as terminal When entering into the working condition of different advance marks, terminal needs to obtain the parameter value of different parameters and different default Battery capacity calculation expression formula.
It should be noted that terminal can be marked to a few thing state in advance, the work of advance mark is made Make state.For example, the working condition of mark can be including open state and charged state etc. in advance.
In a kind of possible implementation method, terminal can previously generate a default mapping table, the default correspondence Relation table record each advance mark working condition and its correspondence the need for obtain parameter item and preset battery capacity calculate Expression formula.
For example, default mapping table can include the content in table 1:
Table 1:The working condition for marking in advance and parameter value and battery capacity calculation expression formula mapping table
Based on this, such as when it is the open state by advance mark that terminal detects its working condition, can trigger Terminal obtains the current temperature value of battery corresponding with open state, and preset function expression formula according to table 1.When terminal detection When to its working condition being the charged state by advance mark, can obtain corresponding with charged state according to table 1 with triggering terminal Residual electric quantity of battery when starting to charge up, electricity full of when be filled with the quantity of electric charge and default mathematic(al) representation of battery, etc. Deng.
In a kind of possible implementation method, step S102 can include:
When terminal is detected into the working condition of mark in advance, whether detection is in preset time range to terminal Battery capacity value be updated;
If detecting, the battery capacity value not to terminal in preset time range is updated, and obtains corresponding battery Parameter value and preset battery capacity calculation expression.
Such as, when the working condition that the working condition that terminal detects itself is advance mark, terminal can also be examined first Survey whether it carried out renewal in preset time range to battery capacity value.For example, the preset time range can be In nearest 6 hours of current time.
If detecting that battery capacity value of the terminal not to terminal in preset time range carried out renewal, then can The battery parameter value and preset battery capacity computational chart corresponding with the working condition of the advance mark is obtained with triggering terminal Up to formula.
If detecting that battery capacity value of the terminal to terminal in default time range carried out renewal, then Terminal can not be updated temporarily to battery capacity value.For example, terminal detects user for end cell charges at the T1 moment. At this point it is possible to whether triggering terminal detects in its 6 hour before the T1 moment carried out renewal to battery capacity value.Example Such as, terminal detected it before the T1 moment T0 moment of 3 hours carried out renewal to battery capacity value.In such case Under, terminal temporarily no longer can be updated to battery capacity value, namely terminal no longer needs to obtain in this charging process Residual electric quantity, electricity when battery is started to charge up full of when be filled with the quantity of electric charge of battery, it is and corresponding with charged state pre- If mathematic(al) representation, and according to the residual electric quantity, the quantity of electric charge, the default mathematic(al) representation is calculated, obtain corresponding Output valve.
It is understood that when terminal is detected into the working condition of mark in advance, further detection terminal is pre- If whether carried out renewal in time range to battery capacity value, and only to detect terminal not right in preset time range In the case that battery capacity value update, ability triggering terminal performs the step of being updated to battery capacity value.Namely Say, in the case where the renewal that terminal had carried out battery capacity value in preset time range is detected, terminal can take This disappear the step of be updated to battery capacity value, so as to reduce the number of times being updated to battery capacity value.By this Mode can reduce the occupancy to the computing resource of terminal, mitigate terminal burden.
In step s 103, according to the battery parameter value, the preset battery capacity calculation expression is calculated, is obtained Corresponding output valve.
Such as, the corresponding parameter value of the working condition that gets the advance mark being presently in it in terminal and default After battery capacity calculation expression formula, terminal can be calculated preset battery capacity calculation expression according to the parameter value, Obtain corresponding output valve.
For example, after battery current temperature value corresponding with open state and preset function expression formula is got, eventually End can calculate the dependent variable of the preset function expression formula, and the preset function expression formula is with the current temperature value as independent variable.Meter The dependent variable for obtaining is corresponding output valve.
In step S104, battery capacity value is updated according to the output valve, and according to the battery capacity after renewal Value calculates the dump energy of battery.
Such as, calculated to preset battery capacity calculation expression, and after obtaining corresponding output valve, terminal can Battery capacity value is updated with according to the output valve, and after this according to the battery capacity value after renewal go calculate battery Dump energy.
For example, after the dependent variable of the preset function expression formula with battery current temperature value as independent variable is calculated, Terminal can be updated according to the dependent variable to battery capacity value.After being updated to battery capacity value, terminal just can be with The dump energy of battery is calculated using the battery capacity value after renewal.
It is understood that due to being, when terminal is in the working condition of mark in advance, battery capacity value to be carried out more Newly, the battery capacity value and after updating is more nearly the actual capacity value of battery, therefore according to the battery capacity value after the renewal The residual electric quantity being calculated can also be more nearly the real surplus electricity of battery, so the embodiment of the present invention can be improved end End calculates the degree of accuracy of the dump energy of battery.
From the foregoing, the update method of the battery capacity value that the present embodiment is provided, first by the work of terminal-pair itself State is detected.When the working condition that the working condition for detecting terminal is advance mark, can with triggering terminal obtain with The working condition of the advance mark corresponding battery parameter value and preset battery capacity calculation expression.Then, terminal can According to the battery parameter value, to calculate the preset battery capacity calculation expression, and obtain corresponding output valve.It Afterwards, terminal can be updated according to the output valve to battery capacity value, and calculate electricity according to the battery capacity value after renewal The residual electric quantity in pond.Due to being, when terminal is in the working condition of mark in advance, battery capacity value to be updated, and more Battery capacity value after new is more nearly the actual capacity value of battery, therefore is calculated according to the battery capacity value after the renewal Residual electric quantity can also be more nearly the real surplus electricity of battery, the i.e. embodiment of the present invention and can improve terminal and calculate battery Dump energy the degree of accuracy.
Fig. 2 is referred to, Fig. 2 is that another flow of the update method of battery capacity value provided in an embodiment of the present invention is illustrated Figure, flow can include:
In step s 201, terminal-pair working condition is detected.
In step S202, when the working condition for detecting terminal is open state, terminal obtains the current temperature of battery Angle value.
Such as, in a kind of possible implementation method, can also comprise the following steps before step S201:
Obtain multiple battery temperature value samples, and battery capacity value sample corresponding with each battery temperature value sample;
According to battery temperature value sample, temperature range is generated, each temperature range includes temperature upper limit and temperature upper limit value;
According to battery capacity value sample, obtain battery capacity value corresponding with each temperature upper limit and with each temperature The corresponding battery capacity value of limit value;
Temperature upper limit, temperature upper limit value battery capacity value corresponding with temperature upper limit according to each temperature range, Battery capacity value corresponding with temperature upper limit value, generates corresponding with each temperature range function expression, and by the function table It is defined as preset function expression formula up to formula.
Such as, terminal can obtain 4 battery temperature value samples, and electricity corresponding with this 4 battery temperature value samples Tankage value sample.For example, 4 battery temperature value samples that terminal gets are respectively -10 DEG C, 0 DEG C, 25 DEG C, 50 DEG C, and with This corresponding battery capacity value sample of 4 temperature value samples is respectively 2500mAh, 2700mAh, 3000mAh, 2600mAh.
In a kind of possible implementation method, can in the following way obtain corresponding with each battery temperature value sample Battery capacity value sample:In laboratory environments, control battery temperature is maintained at a set temperature value, and in the set temperature value It is under environment, battery is fully charged.Then, battery is discharged according to the size of current of setting, until battery stops discharging, note The electric discharge duration of battery during recording this.Then discharge current value is multiplied with electric discharge duration, is calculated the capability value of battery.
For example, control battery temperature is maintained at 25 DEG C, and it is under the temperature environment that battery is fully charged.Afterwards, equally exist Discharged with the current versus cell of 500mA sizes under the temperature environment, when battery discharge is finished, and recorded battery discharge A length of 6 hours, then discharge current value 500mA is mutually obtained into battery capacity value 3000mAh in 6 hours at convenience with electric discharge duration.Need It is noted that there is the control circuit for self-protection in battery, in battery discharge procedure, when the electricity for detecting battery Pressure is when being reduced to discharge cut-off voltage, and battery can stop electric discharge, but now in battery also has sub-fraction electricity.Due to this portion Divide electricity very little and be not involved in battery discharge, therefore this part electricity can be ignored when battery capacity value is calculated.
Counting on these battery temperature value samples, and battery capacity value sample corresponding with each battery temperature value sample Afterwards, these sample values can be stored in the default file of terminal and be called for terminal.
After multiple battery temperature value samples and corresponding battery capacity value sample are got, terminal can first according to this A little battery temperature value samples, generate temperature range, and each temperature range of generation all includes temperature upper limit and temperature upper limit value.
For example, terminal is according to 4-10 DEG C of the battery temperature value samples for getting, 0 DEG C, 25 DEG C, 50 DEG C, the temperature of generation Interval is [- 10,0], [0,25] and [25,50].
After temperature range is generated, terminal can according to the battery capacity value sample for getting before, obtain with it is each The corresponding battery capacity value of temperature upper limit of temperature range, and battery capacity value corresponding with temperature upper limit value.For example, right It is 2700mAh with 0 DEG C of corresponding battery capacity value of temperature upper limit value, with temperature upper limit 25 for temperature range [0,25] DEG C corresponding battery capacity value is 3000mAh.
Then, terminal can be corresponding with temperature upper limit according to the temperature upper limit of each temperature range, temperature upper limit value Battery capacity value battery capacity value corresponding with temperature upper limit value, generate corresponding with each temperature range function expression, And the function expression is defined as corresponding preset function expression formula.
In a kind of possible implementation method, the function expression corresponding with each temperature range of generation can be a letter Number expression formula.For example, for for temperature range [0,25], with (0,2700) and (25,3000) as corresponding linear function 2 points on the rectilinear picture of expression formula, then by the linear function expression formula that is calculated be y=12x+2700.Similarly, For temperature range [- 10,0], the corresponding linear function expression formula of generation is y=20x+2700.For temperature range [25, 50], the corresponding linear function expression formula of generation is y=-16x+3400.
After function expression corresponding with each temperature range is generated, can be defined as the function expression by terminal Preset function expression formula corresponding with each temperature range.For example, terminal can generate a mapping table, such as table 2:
Table 2:Temperature range and preset function expression formula mapping table
Temperature range Corresponding preset function expression formula
[-10,0] Y=20x+2700
[0,25] Y=12x+2700
[25,50] Y=-16x+3400
In terminal in actual use, such as step S201 and S202 can include:
Terminal can be detected to the working condition of itself, when the working condition for detecting terminal is open state, The current temperature value of its battery can be obtained with triggering terminal.
In step S203, terminal obtains corresponding preset function expression formula according to the current temperature value.
Such as, after the current temperature value for getting its battery, terminal can obtain correspondence according to the current temperature value Preset function expression formula.
In a kind of possible implementation method, terminal can first determine the current temperature according to the current temperature value of battery Temperature range belonging to angle value, then obtains preset function expression formula corresponding with the temperature range again.
For example, in step S202, the current temperature value of the battery that terminal gets is 22 DEG C.Terminal determines that this is current Temperature value belongs to [0,25] this temperature range, and then terminal with inquiry table 2, and can obtain corresponding with the temperature range default Function expression y=12x+2700.
In step S204, terminal calculates the dependent variable of the preset function expression formula, the preset function expression formula with deserve Preceding temperature value is independent variable.
Such as, after the preset function expression formula corresponding with battery current temperature value is got, terminal can be calculated The dependent variable of the preset function expression formula, the preset function expression formula is with the current temperature value as independent variable.
For example, after preset function expression formula y=12x+2700 is got, terminal can use 22 DEG C of current temperature value Numerical value is calculated preset function expression formula y=12x+2700 for independent variable, and the dependent variable for obtaining is 2964.
In step S205, terminal is updated according to the dependent variable to battery capacity value, and according to the electricity after renewal Tankage value calculates the dump energy of battery.
Such as, after the dependent variable of preset function expression formula is calculated, terminal can be according to the dependent variable to battery Capability value is updated, and the dump energy of battery is calculated according to the battery capacity value after renewal.
For example, after dependent variable 2964 is calculated, terminal can replace original battery with the dependent variable 2964 Capability value.Also, before updated to battery capacity value next time, control terminal is according to the battery capacity value after renewal 2964mAh calculates the dump energy of battery.
It is understood that needing during due to starting up of terminal to calculate the dump energy of battery, therefore the elder generation in starting up of terminal Battery capacity value is updated according to battery temperature value, the battery capacity value after renewal is more nearly actual capacity value, that The battery dump energy being calculated according to the battery capacity value after renewal can also be closer to real surplus electricity, that is, lead to Crossing this mode can improve the degree of accuracy that terminal calculates dump energy.
Fig. 3 is referred to, Fig. 3 is the schematic diagram of a scenario of the update method of battery capacity value provided in an embodiment of the present invention.
For example, terminal is in off-mode originally, user picks up terminal afterwards, and the terminal supplying power key with thumb-activated, Operation is booted up to terminal, now terminal can be detected and itself enter open state.
When the working condition for detecting terminal is open state, the current temperature value of battery can be obtained with triggering terminal. For example, the current temperature value of battery that terminal gets is 22 DEG C.Then, terminal can read default mapping table (i.e. table 2), and determine that 22 DEG C of current temperature value belongs to default temperature range [0,25].Afterwards, terminal can inquire about the preset relation Table, and obtain and the corresponding function expression y=12x+2700 of temperature range [0,25].
After function expression y=12x+2700 is got, terminal can be with the numerical value 22 of 22 DEG C of current temperature value Independent variable is calculated preset function expression formula y=12x+2700, and the dependent variable for obtaining is 2964.
After dependent variable 2964 is calculated, terminal can replace original battery capacity with the dependent variable 2964 Value, also will battery capacity value be updated to 2964mAh.Also, before updated to battery capacity value next time, control is eventually End calculates the dump energy of battery according to the battery capacity value 2964mAh after renewal.
Fig. 4 is referred to, Fig. 4 is that the another flow of the update method of battery capacity value provided in an embodiment of the present invention is illustrated Figure, flow can include:
In step S301, terminal-pair working condition is detected.
In step s 302, when the working condition for detecting terminal is charged state, terminal obtains electricity when starting to charge up The residual electric quantity in pond, and electricity full of when be filled with the quantity of electric charge of battery.
Such as, step S301 and S302 can include:
The working condition of terminal-pair itself is detected.It is the working condition of terminal charge, i.e. terminal when user is detected During for charged state, the residual electric quantity of battery when it is started to charge up can be obtained with triggering terminal, and electricity full of when be filled with The quantity of electric charge (being filled with the coulomb amount of battery) of battery.
For example, when the working condition for detecting terminal is charged state, battery when starting to charge up that terminal gets Residual electric quantity is the 50% of battery total electricity.Through after a period of time, the electricity that terminal detects battery has been filled with, now eventually End can stop charging.Now, the quantity of electric charge for being filled with battery is obtained by terminal.For example, the electricity that terminal is read by voltameter Full of when be filled with battery the quantity of electric charge be 1480mAh.
In step S303, terminal obtains default mathematic(al) representation corresponding with charged state.
In step s 304, terminal is counted according to the residual electric quantity and the quantity of electric charge to the default mathematic(al) representation Calculate, obtain corresponding output valve.
Such as, step S303 and S304 can include:
Getting residual electric quantity when battery is started to charge up, and electricity full of when be filled with battery the quantity of electric charge it Afterwards, default mathematic(al) representation corresponding with charged state can be obtained with triggering terminal.The default mathematic(al) representation is for calculating The expression formula of battery capacity value.
In a kind of possible implementation method, default mathematic(al) representation can be fcc=cc/ (100%-d0).This is preset Fcc represents battery capacity value in mathematic(al) representation, cc represent electricity full of when be filled with the quantity of electric charge of battery, d0 represents that battery starts Dump energy percentage during charging, namely dump energy accounts for the percentage of total electricity.
It should be noted that above-mentioned default mathematic(al) representation is according to terminal system electricity calculation expression soc=d0+ (cc/fcc) * 100% obtain.Soc represents system spare electricity percentage in the system charge calculation expression, and d0 is represented System initial quantity of electricity percentage, cc represents the electricity that system increases or consumes, and cc is on the occasion of cc is upon discharging when charging Negative value, fcc represents battery capacity value.When electricity is full of, soc is defaulted as 100%.
After default mathematic(al) representation is got, when terminal can be started to charge up according to the battery obtained in step S302 Residual electric quantity (dump energy percentage) and electricity full of when be filled with the quantity of electric charge of battery, to the default mathematic(al) representation Calculated, obtained corresponding output valve.
For example, in step s 302, dump energy percentage when starting to charge up that terminal gets is 50%, and electricity fills The quantity of electric charge that battery is filled with when full is 1480mAh, then default mathematic(al) representation is carried out being calculated fcc=according to both 1480mAh/ (100%-50%)=2960mAh.
In step S305, terminal is updated according to the output valve to battery capacity value, and according to the battery after renewal Capability value calculates the dump energy of battery.
Such as, calculated to default mathematic(al) representation, after obtaining the output valve of the default mathematic(al) representation, terminal Battery capacity value can be updated according to the output valve, and control terminal calculates electricity according to the battery capacity value after renewal The dump energy in pond.
For example, the battery capacity value fcc that the default mathematic(al) representation of terminal-pair is calculated is 2960mAh, then eventually End can replace the original battery capacity value of terminal with 2960mAh.Also, it is being updated next time to battery capacity value Before, control terminal calculates the dump energy of battery according to the battery capacity value 2960mAh after renewal.
It is understood that because when electricity is full of, battery can be automatically stopped charging, to prevent overcharge.Therefore, it can The electricity percentage of battery is defaulted as 100% when electricity is full of, and the dump energy hundred of battery when starting to charge up is subtracted with 100% Point ratio, resulting is exactly that the quantity of electric charge for being filled with battery accounts for the percentage of battery capacity value, and the quantity of electric charge for being filled with battery can be with Arrived by voltameter accurate statistics, therefore electricity is also more nearly according to the battery capacity value that the quantity of electric charge for being filled with battery is calculated The actual capacity value in pond.So, reality is also more closely corresponded to according to the dump energy that the battery capacity value after renewal is calculated Border dump energy, i.e., can improve the degree of accuracy for calculating battery dump energy in this way.
Fig. 5 is referred to, Fig. 5 is that another scene of the update method of battery capacity value provided in an embodiment of the present invention is illustrated Figure.
Such as, user is charged for terminal has accessed charging wire, and now terminal will detect that the working condition of itself is Charged state.In such a case, it is possible to residual electric quantity and electricity that triggering terminal obtains battery when starting to charge up are full of When be filled with the quantity of electric charge (i.e. coulomb amount) of battery.
For example, when the working condition for detecting terminal is charged state, battery when starting to charge up that terminal gets Residual electric quantity is the 50% of battery total electricity.Through after a period of time, the electricity that terminal detects battery has been filled with, now eventually End can stop charging.Now, the electricity that terminal is read by voltameter full of when to be filled with the quantity of electric charge of battery be 1490mAh.
Get start to charge up when battery dump energy percentage 50%, and electricity full of when be filled with the electricity of battery After lotus amount 1490mAh, terminal can obtain default mathematic(al) representation corresponding with charged state, and the default mathematic(al) representation is Expression formula for calculating battery capacity value.In a kind of possible implementation method, default mathematic(al) representation can be fcc= Cc/ (100%-d0).Fcc represents battery capacity value in the default mathematic(al) representation, cc represent electricity full of when be filled with battery The quantity of electric charge, dump energy percentage when d0 represents that battery is started to charge up, namely dump energy accounts for the percentage of total electricity.
For example, by d0=50%, cc=1480mAh substitutes into above-mentioned default mathematic(al) representation fcc=cc/ (100%-d0), Fcc=2960mAh can be calculated.
After the output valve 2960mAh of default mathematic(al) representation fcc=cc/ (100%-d0) is calculated, terminal The original battery capacity value of terminal can be replaced with 2960mAh.Also, before updated to battery capacity value next time, Control terminal calculates the dump energy of battery according to the battery capacity value 2960mAh after renewal.
It should be noted that in the embodiment of the present invention, whenever terminal detects the open state for itself entering mark in advance Or during charged state, it is possible to triggering terminal performs the step of being updated to battery capacity value accordingly.Or, terminal is in inspection When the working condition for measuring itself is the working condition of advance mark, can first detect whether entered in preset time range Went the renewal of battery capacity value.If detecting the renewal that battery capacity value was not carried out in preset time range, then can The step of being updated to battery capacity value accordingly is performed with triggering terminal.If detecting to have entered in preset time range Went the renewal of battery capacity value, then terminal can not perform first it is corresponding the step of being updated to battery capacity value, and The renewal opportunity being to wait for next time arrives.
The embodiment of the present invention also provides a kind of renewal of the battery capacity value of the update method based on above-mentioned battery capacity value Device.Wherein the implication of noun is identical with the update method of above-mentioned battery capacity value, implements details and may be referred to method Explanation in embodiment.
Fig. 6 is referred to, Fig. 6 is the structural representation of the updating device of battery capacity value provided in an embodiment of the present invention.Electricity The updating device 300 of tankage value can include:Detection module 301, acquisition module 302, computing module 303, and update mould Block 304.
Detection module 301, detects for the working condition to terminal.
Such as, the working condition that the detection module 301 of terminal can be first to itself is detected.
It should be noted that the working condition of terminal can include such as open state, off-mode, charged state, normal Discharge condition (uncharged) when using, etc., illustrates and does not constitute limitation of the invention herein.
Acquisition module 302, for when terminal is detected into the working condition of mark in advance, obtaining corresponding battery ginseng Numerical value and preset battery capacity calculation expression.
Such as, during detection module 301 is detected to the working condition of terminal, if detection module 301 is detected Enter the working condition of mark in advance to terminal, then can be obtained and the advance mark with the acquisition module 302 of triggering terminal The corresponding battery parameter value of working condition and preset battery capacity calculation expression.That is, when terminal is entered into not With advance mark working condition when, acquisition module 302 needs to obtain the parameter value of different parameters and different default Battery capacity calculation expression formula.
It should be noted that terminal can be marked to a few thing state in advance, the work of advance mark is made Make state.For example, the working condition of mark can be including open state and charged state etc. in advance.
In a kind of possible implementation method, terminal can previously generate a default mapping table, the default correspondence Relation table record each advance mark working condition and its correspondence the need for obtain parameter item and preset battery capacity calculate Expression formula.
For example, default mapping table can include the content in table 1:
Table 1:The working condition for marking in advance and parameter value and battery capacity calculation expression formula mapping table
Based on this, such as when the working condition that detection module 301 detects terminal is the open state by advance mark When, the current temperature value that acquisition module 302 obtains battery corresponding with open state according to table 1, and default letter can be triggered Number expression formula.When it is the charged state by advance mark that detection module 301 detects its working condition, acquisition can be triggered Module 302 obtained according to table 1 residual electric quantity when corresponding with charged state battery is started to charge up, electricity full of when be filled with electricity The quantity of electric charge in pond and default mathematic(al) representation, etc..
In a kind of possible implementation method, acquisition module 302 can be used for:
When terminal is detected into the working condition of mark in advance, whether detection is in preset time range to terminal Battery capacity value be updated;
If detecting, the battery capacity value not to terminal in preset time range is updated, and obtains corresponding battery Parameter value and preset battery capacity calculation expression.
Such as, when the working condition that the working condition that detection module 301 detects itself is advance mark, acquisition module 302 can also first detect whether it carried out renewal in preset time range to battery capacity value.For example, when this is default Between scope can be in nearest 6 hours of current time.
If detecting that battery capacity value of the terminal not to terminal in preset time range carried out renewal, then can Battery parameter value and the preset battery capacity corresponding with the working condition of the advance mark is obtained to trigger acquisition module 302 Calculation expression.
If detecting that battery capacity value of the terminal to terminal in default time range carried out renewal, then Terminal can not be updated temporarily to battery capacity value.For example, it is terminal electricity that detection module 301 detects user at the T1 moment Charge in pond.At this point it is possible to whether trigger in its 6 hour before the T1 moment of the detection of acquisition module 302 to battery capacity Value carried out renewal.For example, acquisition module 302 detected it before T1 moment T0 moment of 3 hours is to battery capacity Value carried out renewal.In this case, terminal temporarily no longer can be updated to battery capacity value, namely in this charging During terminal no longer need to obtain residual electric quantity of battery when starting to charge up, electricity full of when be filled with the quantity of electric charge of battery, And default mathematic(al) representation corresponding with charged state, and according to the residual electric quantity, the quantity of electric charge, to the default mathematical expression Formula is calculated, and obtains corresponding output valve.
It is understood that when terminal is detected into the working condition of mark in advance, further detection terminal is pre- If whether carried out renewal in time range to battery capacity value, and only to detect terminal not right in preset time range In the case that battery capacity value update, ability triggering terminal performs the step of being updated to battery capacity value.Namely Say, in the case where the renewal that terminal had carried out battery capacity value in preset time range is detected, terminal can take This disappear the step of be updated to battery capacity value, so as to reduce the number of times being updated to battery capacity value.By this Mode can reduce the occupancy to the computing resource of terminal, mitigate terminal burden.
Computing module 303, for according to the battery parameter value, being counted to the preset battery capacity calculation expression Calculate, obtain corresponding output valve.
Such as, the corresponding parameter of the working condition that gets the advance mark being presently in terminal in acquisition module 302 After value and preset battery capacity calculation expression, computing module 303 can be according to the parameter value, to preset battery capacity meter Operator expression formula is calculated, and obtains corresponding output valve.
For example, getting battery current temperature value corresponding with open state and preset function table in acquisition module 302 Up to after formula, computing module 303 can calculate the dependent variable of the preset function expression formula, and the preset function expression formula is current with this Temperature value is independent variable.The dependent variable being calculated is corresponding output valve.
Update module 304, for being updated to battery capacity value according to the output valve, and according to the battery after renewal Capability value calculates the dump energy of battery.
Such as, preset battery capacity calculation expression is calculated in computing module 303, and obtains corresponding output valve Afterwards, the update module 304 of terminal can be updated according to the output valve to battery capacity value, and after this according to renewal Battery capacity value afterwards goes to calculate the dump energy of battery.
For example, being calculated the preset function expression formula with battery current temperature value as independent variable in computing module 303 After dependent variable, update module 304 can be updated according to the dependent variable to battery capacity value.Carried out to battery capacity value After renewal, terminal can just calculate the dump energy of battery using the battery capacity value after updating.
For example, in a kind of possible implementation method, the acquisition module 302 of terminal can be used for:
When the working condition for detecting terminal is charged state, the residual electric quantity of battery when acquisition is started to charge up, with And electricity full of when be filled with the quantity of electric charge of battery;
Obtain default mathematic(al) representation corresponding with charged state.
Based on this, computing module 303 can be used for:According to the residual electric quantity and the quantity of electric charge, to described pre- If mathematic(al) representation is calculated, corresponding output valve is obtained.
For example, when the working condition that detection module 301 detects terminal is charged state, acquisition module can be triggered The residual electric quantities of 302 acquisition terminals batteries when starting to charge up, and electricity full of when be filled with the quantity of electric charge (the i.e. coulomb of battery Amount).
For example, the residual electric quantity of battery when starting to charge up that acquisition module 302 gets is the 50% of battery total electricity. Through after a period of time, the electricity that terminal detects battery has been filled with, now terminal can stop charging.Now, terminal is by electricity The electricity that gauge reads full of when be filled with battery the quantity of electric charge be 1490mAh.
Get residual electric quantity when battery is started to charge up in acquisition module 302, and electricity full of when be filled with battery The quantity of electric charge after, acquisition module 302 can be triggered and obtain default mathematic(al) representation corresponding with charged state again.The present count It is the expression formula for calculating battery capacity value to learn expression formula.
In a kind of possible implementation method, default mathematic(al) representation can be fcc=cc/ (100%-d0).This is preset Fcc represents battery capacity value in mathematic(al) representation, cc represent electricity full of when be filled with the quantity of electric charge of battery, d0 represents that battery starts Dump energy percentage during charging, namely dump energy accounts for the percentage of total electricity.
It should be noted that above-mentioned default mathematic(al) representation is according to terminal system electricity calculation expression soc=d0+ (cc/fcc) * 100% obtain.Soc represents system spare electricity percentage in the system charge calculation expression, and d0 is represented System initial quantity of electricity percentage, cc represents the electricity that system increases or consumes, and cc is on the occasion of cc is upon discharging when charging Negative value, fcc represents battery capacity value.When electricity is full of, soc is defaulted as 100%.
After default mathematic(al) representation is got, the battery that computing module 303 can be obtained according to acquisition module 302 is opened Residual electric quantity (dump energy percentage) and electricity when beginning to charge full of when be filled with the quantity of electric charge of battery, to the present count Learn expression formula to be calculated, obtain corresponding output valve.
For example, dump energy percentage when starting to charge up that gets of acquisition module 302 is 50%, electricity full of when fill The quantity of electric charge for entering battery is 1490mAh, then default mathematic(al) representation is carried out being calculated fcc=according to both 1480mAh/ (100%-50%)=2960mAh.
Calculated to default mathematic(al) representation, after obtaining the output valve of the default mathematic(al) representation, update module 304 can be updated according to the output valve to battery capacity value, and control terminal is counted according to the battery capacity value after renewal Calculate the dump energy of battery.
For example, the battery capacity value fcc that 303 pairs of default mathematic(al) representations of computing module are calculated is 2960mAh, So update module 304 can replace the original battery capacity value of terminal with 2960mAh.Also, carried out to battery capacity value Update next time before, control terminal calculates the dump energy of battery according to the battery capacity value 2960mAh after renewal.
It is understood that because when electricity is full of, battery can be automatically stopped charging, to prevent overcharge.Therefore, it can The electricity percentage of battery is defaulted as 100% when electricity is full of, and the dump energy hundred of battery when starting to charge up is subtracted with 100% Point ratio, resulting is exactly that the quantity of electric charge for being filled with battery accounts for the percentage of battery capacity value, and the quantity of electric charge for being filled with battery can be with Arrived by voltameter accurate statistics, therefore electricity is also more nearly according to the battery capacity value that the quantity of electric charge for being filled with battery is calculated The actual capacity value in pond.So, reality is also more closely corresponded to according to the dump energy that the battery capacity value after renewal is calculated Border dump energy, i.e., can improve the degree of accuracy for calculating battery dump energy in this way.
Also referring to Fig. 7, Fig. 7 is that another structure of the updating device of battery capacity value provided in an embodiment of the present invention is shown It is intended to.In one embodiment, the updating device 300 of battery capacity value can also include:Generation module 305.
Generation module 305 is for obtaining multiple battery temperature value samples and corresponding with each battery temperature value sample Battery capacity value sample;According to the battery temperature value sample, temperature range is generated, the temperature range includes temperature upper limit Value and temperature upper limit value;According to the battery capacity value sample, obtain battery capacity value corresponding with each temperature upper limit, And battery capacity value corresponding with each temperature upper limit value;According to temperature upper limit, the temperature of each temperature range Lower limit battery capacity value corresponding with temperature upper limit battery capacity value corresponding with the temperature upper limit value, generation Function expression corresponding with each temperature range, and the function expression is defined as preset function expression formula.
Such as, the generation module 305 of terminal can obtain 4 battery temperature value samples, and with this 4 battery temperature values The corresponding battery capacity value sample of sample.For example, 4 battery temperature value samples that terminal gets be respectively -10 DEG C, 0 DEG C, 25 DEG C, 50 DEG C, and battery capacity value sample corresponding with this 4 temperature value samples be respectively 2500mAh, 2700mAh, 3000mAh, 2600mAh。
In a kind of possible implementation method, can in the following way obtain corresponding with each battery temperature value sample Battery capacity value sample:In laboratory environments, control battery temperature is maintained at a set temperature value, and in the set temperature value It is under environment, battery is fully charged.Then, battery is discharged according to the size of current of setting, until battery stops discharging, note The electric discharge duration of battery during recording this.Then discharge current value is multiplied with electric discharge duration, is calculated the capability value of battery.
For example, control battery temperature is maintained at 25 DEG C, and it is under the temperature environment that battery is fully charged.Afterwards, equally exist Discharged with the current versus cell of 500mA sizes under the temperature environment, when battery discharge is finished, and recorded battery discharge A length of 6 hours, then discharge current value 500mA is mutually obtained into battery capacity value 3000mAh in 6 hours at convenience with electric discharge duration.Need It is noted that there is the control circuit for self-protection in battery, in battery discharge procedure, when the electricity for detecting battery Pressure is when being reduced to discharge cut-off voltage, and battery can stop electric discharge, but now in battery also has sub-fraction electricity.Due to this portion Divide electricity very little and be not involved in battery discharge, therefore this part electricity can be ignored when battery capacity value is calculated.
Counting on these battery temperature value samples, and battery capacity value sample corresponding with each battery temperature value sample Afterwards, these sample values can be stored in the default file of terminal and be called for terminal.
After multiple battery temperature value samples and corresponding battery capacity value sample are got, generation module 305 can be with First according to these battery temperature value samples, temperature range is generated, each temperature range of generation all includes temperature upper limit and temperature Degree lower limit.
For example, generation module 305 is according to 4-10 DEG C of the battery temperature value samples for getting, 0 DEG C, 25 DEG C, 50 DEG C, generation Temperature range be [- 10,0], [0,25] and [25,50].
After temperature range is generated, generation module 305 can be obtained according to the battery capacity value sample for getting before Take battery capacity value corresponding with the temperature upper limit of each temperature range, and battery capacity value corresponding with temperature upper limit value. For example, being on 2700mAh, with temperature with 0 DEG C of corresponding battery capacity value of temperature upper limit value for for temperature range [0,25] 25 DEG C of corresponding battery capacity values of limit value are 3000mAh.
Then, generation module 305 can be according in the temperature upper limit of each temperature range, temperature upper limit value and temperature The corresponding battery capacity value of limit value battery capacity value corresponding with temperature upper limit value, generates letter corresponding with each temperature range Number expression formula, and the function expression is defined as corresponding preset function expression formula.
In a kind of possible implementation method, the function expression corresponding with each temperature range of the generation of generation module 305 It can be linear function expression formula.For example, for for temperature range [0,25], with (0,2700) and (25,3000) as right 2 points on the rectilinear picture of the linear function expression formula answered, then by the linear function expression formula that is calculated be y=12x +2700.Similarly, for temperature range [- 10,0], the corresponding linear function expression formula of generation is y=20x+2700.For temperature Degree is interval [25,50], and the corresponding linear function expression formula of generation is y=-16x+3400.
After function expression corresponding with each temperature range is generated, can be defined as the function expression by terminal Preset function expression formula corresponding with each temperature range.For example, terminal can generate a mapping table, such as table 2:
Table 2:Temperature range and preset function expression formula mapping table
Temperature range Corresponding preset function expression formula
[-10,0] Y=20x+2700
[0,25] Y=12x+2700
[25,50] Y=-16x+3400
Based on this, in a kind of possible implementation method, the acquisition module 302 of terminal can be used for:
When the working condition for detecting terminal is open state, the current temperature value of battery is obtained;
According to the current temperature value, corresponding preset function expression formula is obtained.
Computing module 303 can be used for:Calculate the dependent variable of the preset function expression formula, the preset function expression formula With the current temperature value as independent variable.
Update module 304 can be used for:Battery capacity value is updated according to the dependent variable, and according to renewal after Battery capacity value calculates the dump energy of battery.
For example, when the working condition that detection module 301 detects terminal is open state, acquisition module can be triggered 302 current temperature values for obtaining battery, and according to the current temperature value, obtain corresponding preset function expression formula.For example, obtaining Module 302 can first determine the target temperature area belonging to the current temperature value after the current temperature value for getting battery Between, then obtain again and the interval corresponding preset function expression formula of the target temperature.
For example, the current temperature value of battery that acquisition module 302 gets is 22 DEG C, and determine that the current temperature value belongs to In [0,25] this temperature range, then acquisition module 302 is according to the acquisition of table 2 preset function expression corresponding with the temperature range Formula y=12x+2700.
After acquisition module 302 gets the current temperature value of battery, and corresponding preset function expression formula, calculate Module 303 can calculate the dependent variable of the preset function expression formula, and the preset function is expressed with the current temperature value as independent variable.
For example, computing module 303 calculates the dependent variable of function expression y=12x+2700, the function expression is with current The numerical value 22 of temperature value is independent variable, and the dependent variable for obtaining is 2964.
After computing module 303 is calculated dependent variable 2964, update module 304 can be replaced with the dependent variable 2964 Fall original battery capacity value.Also, before updated to battery capacity value next time, after control terminal is according to renewal Battery capacity value 2964mAh calculates the dump energy of battery.
It is understood that needing during due to starting up of terminal to calculate the dump energy of battery, therefore the elder generation in starting up of terminal Battery capacity value is updated according to battery temperature value, the battery capacity value after renewal is more nearly actual capacity value, that The battery dump energy being calculated according to the battery capacity value after renewal can also be closer to real surplus electricity, that is, lead to Crossing this mode can improve the degree of accuracy that terminal calculates dump energy.
From the foregoing, the updating device of the battery capacity value that the present embodiment is provided, first by the work of terminal-pair itself State is detected.When the working condition that the working condition for detecting terminal is advance mark, can with triggering terminal obtain with The working condition of the advance mark corresponding battery parameter value and preset battery capacity calculation expression.Then, terminal can According to the battery parameter value, to calculate the preset battery capacity calculation expression, and obtain corresponding output valve.It Afterwards, terminal can be updated according to the output valve to battery capacity value, and calculate electricity according to the battery capacity value after renewal The residual electric quantity in pond.Due to being, when terminal is in the working condition of mark in advance, battery capacity value to be updated, and more Battery capacity value after new is more nearly the actual capacity value of battery, therefore is calculated according to the battery capacity value after the renewal Residual electric quantity can also be more nearly the real surplus electricity of battery, the i.e. embodiment of the present invention and can improve terminal and calculate battery Dump energy the degree of accuracy.
The embodiment of the present invention also provides a kind of terminal, and the terminal can include memory, processor, and storage described In memory and the computer program that can be run in the processor, realized during computer program described in the computing device Step in the update method of battery capacity value provided in an embodiment of the present invention.
For example, in a kind of possible implementation method, above-mentioned terminal can be mobile terminal, such as panel computer, mobile phone. Fig. 8 is referred to, Fig. 8 is mobile terminal structure schematic diagram provided in an embodiment of the present invention.The mobile terminal 500 can include one Individual or more than one computer-readable recording medium memory 501, input block 502, display unit 503, include one Or the part such as the processor 504 and power supply 505 of more than one processing core.It will be understood by those skilled in the art that Fig. 8 In the mobile terminal structure that shows do not constitute restriction to mobile terminal, can include than illustrating more or less part, Or combine some parts, or different part arrangements.
Memory 501 can be used to store application program and data.Include and can hold in the application program of the storage of memory 501 Line code.Application program can constitute various functions module.Processor 504 is by running application journey of the storage in memory 501 Sequence, so as to perform various function application and data processing.
Input block 502 can be used to receive numeral, character information or the user's characteristic information (such as fingerprint) of input, and Produce the keyboard relevant with user's setting and function control, mouse, action bars, optics or trace ball signal input.Specifically Ground, in one embodiment, input block 502 may include Touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touches Display screen or Trackpad, user can be collected thereon or neighbouring touch operation (such as user uses finger, stylus etc. any Operation of the suitable object or annex on Touch sensitive surface or near Touch sensitive surface), and driven according to formula set in advance Corresponding attachment means.
Display unit 503 can be used to showing by user input information or be supplied to the information and mobile terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 504 may include display panel.In possible implementation method, liquid crystal display (LCD, Liquid can be used Crystal Display), the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) matches somebody with somebody Put display panel.
Processor 504 is the control centre of mobile terminal, using each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing application program of the storage in memory 501, and calls storage in memory 501 Data, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.
Mobile terminal also includes the power supply 505 (such as battery) powered to all parts.Power supply can be by power management System is logically contiguous with processor 504, so as to realize management charging, electric discharge and power managed etc. by power-supply management system Function.Power supply 505 can also include one or more direct current or AC power, recharging system, power failure monitor The random component such as circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 8, mobile terminal can also include radio circuit, voicefrequency circuit, camera, bluetooth module Deng will not be repeated here.
In the present embodiment, the processor 504 in mobile terminal can be according to following instruction, will be one or more The corresponding executable code of process of application program is loaded into memory 501, and storage is run by processor 504 in storage Application program in device 501, so as to realize various functions:
Working condition to terminal is detected;When terminal is detected into the working condition of mark in advance, it is right to obtain The battery parameter value and preset battery capacity calculation expression answered;According to the battery parameter value, the default battery is held Amount calculation expression is calculated, and obtains corresponding output valve;Battery capacity value is updated according to the output valve, and root The dump energy of battery is calculated according to the battery capacity value after renewal.
Processor 504 is described when terminal is detected into the working condition of mark in advance in execution, the corresponding electricity of acquisition During the step of pond parameter value and preset battery capacity calculation expression, can include:When the working condition for detecting terminal is During open state, the current temperature value of battery is obtained;According to the current temperature value, corresponding preset function expression formula is obtained.
Based on this, processor 504 is described according to the battery parameter value in execution, to the preset battery capacity computational chart Calculated up to formula, when the step of obtaining corresponding output valve, can be included:Calculate the preset function expression formula because become Amount, the preset function expression formula is with the current temperature value as independent variable.
Processor 504 perform described in battery capacity value is updated according to the output valve, and according to renewal after During the step of battery capacity value calculates the dump energy of battery, can include:Battery capacity value is carried out according to the dependent variable Update, and the dump energy of battery is calculated according to the battery capacity value after renewal.
In a kind of possible implementation method, processor 504 is additionally operable to realize following functions:Obtain multiple battery temperature values Sample, and battery capacity value sample corresponding with each battery temperature value sample;It is raw according to the battery temperature value sample Into temperature range, the temperature range includes temperature upper limit and temperature upper limit value;According to the battery capacity value sample, obtain Battery capacity value corresponding with each temperature upper limit and battery capacity value corresponding with each temperature upper limit value;Root According to the temperature upper limit of each temperature range, temperature upper limit value battery capacity value corresponding with the temperature upper limit and The corresponding battery capacity value of the temperature upper limit value, generation function expression corresponding with each temperature range, and by institute State function expression and be defined as preset function expression formula.
Based on this, processor is described according to the current temperature value in execution, obtains corresponding preset function expression formula During step, can include:According to the current temperature value, determine that the target temperature belonging to the current temperature value is interval, and Obtain and the interval corresponding preset function expression formula of the target temperature.
In a kind of possible implementation method, processor 504 described enters mark in advance when detecting terminal performing During working condition, when the step of obtaining corresponding battery parameter value and preset battery capacity calculation expression, can include:When When the working condition for detecting terminal is charged state, the residual electric quantity of battery when acquisition is started to charge up, and electricity is full of When be filled with the quantity of electric charge of battery;Obtain default mathematic(al) representation corresponding with charged state.
Based on this, processor 504 is described according to the battery parameter value in execution, to the preset battery capacity computational chart Calculated up to formula, when the step of obtaining corresponding output valve, can be included:According to the residual electric quantity and the electric charge Amount, calculates the default mathematic(al) representation, obtains corresponding output valve.
In a kind of possible implementation method, processor 504 described enters mark in advance when detecting terminal performing During working condition, when the step of obtaining corresponding battery parameter value and preset battery capacity calculation expression, can include:When When detecting terminal into the working condition of mark in advance, whether detection is in preset time range to the battery capacity of terminal Value is updated;If detecting, the battery capacity value not to terminal in preset time range is updated, and obtains corresponding Battery parameter value and preset battery capacity calculation expression.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, the detailed description of the update method above with respect to battery capacity value is may refer to, here is omitted.
Battery capacity value in the updating device and foregoing embodiments of the battery capacity value provided in an embodiment of the present invention Update method belong to same design, can run the battery capacity value more on the updating device of the battery capacity value The either method provided in new method embodiment, it implements the update method implementation that process refers to the battery capacity value Example, here is omitted.
It should be noted that for the update method of battery capacity value described in the embodiment of the present invention, this area is commonly surveyed Examination personnel are appreciated that to realize all or part of flow of the update method of battery capacity value described in the embodiment of the present invention, can be The hardware of correlation is controlled to complete by computer program, the computer program can be stored in embodied on computer readable storage In medium, such as storage in memory, and by least one computing device, may include that battery holds as described in the process of implementation The flow of the embodiment of the update method of value.Wherein, described storage medium can for magnetic disc, CD, read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the updating device of the battery capacity value of the embodiment of the present invention, its each functional module can be integrated in one In individual process chip, or modules are individually physically present, it is also possible to which two or more modules are integrated in one In module.Above-mentioned integrated module can both be realized in the form of hardware, it would however also be possible to employ the form reality of software function module It is existing.If the integrated module is to realize in the form of software function module and as independent production marketing or when using, Can store in a computer read/write memory medium, the storage medium is for example read-only storage, disk or CD Deng.
A kind of update method of the battery capacity value for being provided the embodiment of the present invention above, device and terminal are carried out It is discussed in detail, specific case used herein is set forth to principle of the invention and implementation method, above example Illustrate that being only intended to help understands the method for the present invention and its core concept;Simultaneously for those skilled in the art, according to this The thought of invention, be will change in specific embodiments and applications, and in sum, this specification content should not It is interpreted as limitation of the present invention.

Claims (11)

1. a kind of update method of battery capacity value, it is characterised in that methods described includes:
Working condition to terminal is detected;
When terminal is detected into the working condition of mark in advance, corresponding battery parameter value and preset battery capacity are obtained Calculation expression;
According to the battery parameter value, the preset battery capacity calculation expression is calculated, obtain corresponding output valve;
Battery capacity value is updated according to the output valve, and the residue of battery is calculated according to the battery capacity value after renewal Electricity.
2. the update method of battery capacity value according to claim 1, it is characterised in that described when detecting terminal entrance In advance during the working condition of mark, corresponding battery parameter value and preset battery capacity calculation expression are obtained, including:
When the working condition for detecting terminal is open state, the current temperature value of battery is obtained;
According to the current temperature value, corresponding preset function expression formula is obtained;
It is described the preset battery capacity calculation expression is calculated according to the battery parameter value, obtain corresponding defeated Going out value includes:The dependent variable of the preset function expression formula is calculated, the preset function expression formula is with the current temperature value Independent variable;
It is described according to the output valve battery capacity value is updated including:Battery capacity value is carried out according to the dependent variable Update.
3. the update method of battery capacity value according to claim 2, it is characterised in that in the work shape to terminal Before the step of state is detected, also include:
Obtain multiple battery temperature value samples, and battery capacity value sample corresponding with each battery temperature value sample;
According to the battery temperature value sample, temperature range is generated, the temperature range includes temperature upper limit and lowest temperature Value;
According to the battery capacity value sample, obtain battery capacity value corresponding with each temperature upper limit and with each institute State the corresponding battery capacity value of temperature upper limit value;
Temperature upper limit, temperature upper limit value battery corresponding with the temperature upper limit according to each temperature range holds Value battery capacity value corresponding with the temperature upper limit value, generation function expression corresponding with each temperature range, And the function expression is defined as preset function expression formula;
It is described according to the current temperature value, obtaining corresponding preset function expression formula includes:According to the current temperature value, really The target temperature made belonging to the current temperature value is interval, and obtains and the interval corresponding preset function table of the target temperature Up to formula.
4. the update method of battery capacity value according to claim 1, it is characterised in that described when detecting terminal entrance In advance during the working condition of mark, corresponding battery parameter value and preset battery capacity calculation expression are obtained, including:
When the working condition for detecting terminal is charged state, the residual electric quantity of battery, Yi Ji electricity when acquisition is started to charge up Measure full of when be filled with the quantity of electric charge of battery;
Obtain default mathematic(al) representation corresponding with charged state;
It is described the preset battery capacity calculation expression is calculated according to the battery parameter value, obtain corresponding defeated Going out value includes:According to the residual electric quantity and the quantity of electric charge, the default mathematic(al) representation is calculated, obtain phase The output valve answered.
5. the update method of battery capacity value according to claim 1, it is characterised in that described when detecting terminal entrance In advance during the working condition of mark, corresponding battery parameter value and preset battery capacity calculation expression are obtained, including:
When terminal is detected into the working condition of mark in advance, whether detection is in preset time range to the electricity of terminal Tankage value is updated;
If detecting, the battery capacity value not to terminal in preset time range is updated, and obtains corresponding battery parameter Value and preset battery capacity calculation expression.
6. a kind of updating device of battery capacity value, it is characterised in that described device includes:
Detection module, detects for the working condition to terminal;
Acquisition module, for when detecting terminal and entering the working condition of mark in advance, obtain corresponding battery parameter value with And preset battery capacity calculation expression;
Computing module, for according to the battery parameter value, calculating the preset battery capacity calculation expression, obtains Corresponding output valve;
Update module, for being updated to battery capacity value according to the output valve, and according to the battery capacity value after renewal Calculate the dump energy of battery.
7. the updating device of battery capacity value according to claim 6, it is characterised in that the acquisition module is used for:
When the working condition for detecting terminal is open state, the current temperature value of battery is obtained;
According to the current temperature value, corresponding preset function expression formula is obtained;
The computing module is used for:The dependent variable of the preset function expression formula is calculated, the preset function expression formula is with described Current temperature value is independent variable;
The update module is used for:Battery capacity value is updated according to the dependent variable.
8. the updating device of battery capacity value according to claim 7, it is characterised in that described device also includes:Generation Module, is used for
Obtain multiple battery temperature value samples, and battery capacity value sample corresponding with each battery temperature value sample;
According to the battery temperature value sample, temperature range is generated, the temperature range includes temperature upper limit and lowest temperature Value;
According to the battery capacity value sample, obtain battery capacity value corresponding with each temperature upper limit and with each institute State the corresponding battery capacity value of temperature upper limit value;
Temperature upper limit, temperature upper limit value battery corresponding with the temperature upper limit according to each temperature range holds Value battery capacity value corresponding with the temperature upper limit value, generation function expression corresponding with each temperature range, And the function expression is defined as preset function expression formula;
The acquisition module is used for:According to the current temperature value, the target temperature area belonging to the current temperature value is determined Between, and obtain and the interval corresponding preset function expression formula of the target temperature.
9. the updating device of battery capacity value according to claim 6, it is characterised in that the acquisition module is used for:
When the working condition for detecting terminal is charged state, the residual electric quantity of battery, Yi Ji electricity when acquisition is started to charge up Measure full of when be filled with the quantity of electric charge of battery;
Obtain default mathematic(al) representation corresponding with charged state;
The computing module is used for:According to the residual electric quantity and the quantity of electric charge, the default mathematic(al) representation is entered Row is calculated, and obtains corresponding output valve.
10. the updating device of battery capacity value according to claim 6, it is characterised in that the acquisition module is used for:
When terminal is detected into the working condition of mark in advance, whether detection is in preset time range to the electricity of terminal Tankage value is updated;
If detecting, the battery capacity value not to terminal in preset time range is updated, and obtains corresponding battery parameter Value and preset battery capacity calculation expression.
A kind of 11. terminals, including memory, processor, and storage is in the memory and can be transported in the processor Capable computer program, it is characterised in that realize appointing in claim 1 to 5 during computer program described in the computing device The step of update method of the battery capacity value described in meaning one.
CN201611260907.7A 2016-12-30 2016-12-30 Method and device for updating battery capacity value and terminal Expired - Fee Related CN106772091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611260907.7A CN106772091B (en) 2016-12-30 2016-12-30 Method and device for updating battery capacity value and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611260907.7A CN106772091B (en) 2016-12-30 2016-12-30 Method and device for updating battery capacity value and terminal

Publications (2)

Publication Number Publication Date
CN106772091A true CN106772091A (en) 2017-05-31
CN106772091B CN106772091B (en) 2020-02-14

Family

ID=58954695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611260907.7A Expired - Fee Related CN106772091B (en) 2016-12-30 2016-12-30 Method and device for updating battery capacity value and terminal

Country Status (1)

Country Link
CN (1) CN106772091B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107422268A (en) * 2017-06-01 2017-12-01 金卡智能集团股份有限公司 Battery dump energy detection method
CN107436418A (en) * 2017-06-15 2017-12-05 捷开通讯(深圳)有限公司 Method, terminal and the device of calibration battery electricity decay
CN107436410A (en) * 2017-07-19 2017-12-05 上海与德科技有限公司 A kind of electric quantity controlling method, device, equipment and storage medium
CN109103518A (en) * 2018-07-16 2018-12-28 深圳市沃特沃德股份有限公司 battery capacity updating method and system
CN110988691A (en) * 2018-10-03 2020-04-10 凹凸电子(武汉)有限公司 Battery detection system, battery detection method and battery pack
CN111007412A (en) * 2019-12-25 2020-04-14 宜宾凯翼汽车有限公司 Method for updating actual available capacity of power battery
CN111239624A (en) * 2020-02-21 2020-06-05 中航锂电(洛阳)有限公司 Battery capacity calibration method and device, electronic equipment and storage medium
CN111679206A (en) * 2020-06-01 2020-09-18 Oppo(重庆)智能科技有限公司 Electric quantity detection method and device, and storage medium
CN111965548A (en) * 2020-09-27 2020-11-20 哈尔滨工业大学(威海) Battery system sensor fault diagnosis method based on state estimation method
CN112485677A (en) * 2019-09-12 2021-03-12 东莞新能德科技有限公司 Battery capacity updating method and device, electronic device and storage medium
CN112858938A (en) * 2021-02-20 2021-05-28 Oppo广东移动通信有限公司 Electric quantity calculation method and device, storage medium and electronic equipment
CN113495213A (en) * 2020-03-20 2021-10-12 北京京东乾石科技有限公司 Electric quantity prediction model construction method, electric quantity prediction model carrying equipment deployment method and electric quantity prediction model carrying equipment deployment device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0785652A1 (en) * 1995-07-03 1997-07-23 Nippon Telegraph And Telephone Corporation Variable band communication network
KR20060109772A (en) * 2005-04-18 2006-10-23 엘지전자 주식회사 Methods and apparatus' of detecting battery capacity for mobile phone
CN101206246A (en) * 2006-12-22 2008-06-25 明基电通股份有限公司 Method for preestimating battery residual capacity
CN101728588A (en) * 2008-10-10 2010-06-09 鸿富锦精密工业(深圳)有限公司 Wireless communication terminal and method for determining battery electric quantity thereof
CN102074984A (en) * 2010-12-21 2011-05-25 Tcl集团股份有限公司 Mobile terminal for detecting electric quantity of battery on line and detection method thereof
CN103176132A (en) * 2011-12-22 2013-06-26 联芯科技有限公司 Estimation method and terminal device of electricity quantity of battery
CN103675701A (en) * 2013-11-29 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Battery state-of-charge correction method and device
CN104101837A (en) * 2013-04-03 2014-10-15 比亚迪股份有限公司 On-line calculation method for current total capacity of battery
CN104301499A (en) * 2013-07-15 2015-01-21 腾讯科技(深圳)有限公司 Method and device for analyzing battery capacity records of mobile terminal, platform and mobile terminal
CN105403835A (en) * 2014-08-29 2016-03-16 展讯通信(深圳)有限公司 System and method for measuring battery level
CN106093780A (en) * 2016-05-31 2016-11-09 青岛海信移动通信技术股份有限公司 A kind of terminal residual electricity determines method and terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0785652A1 (en) * 1995-07-03 1997-07-23 Nippon Telegraph And Telephone Corporation Variable band communication network
KR20060109772A (en) * 2005-04-18 2006-10-23 엘지전자 주식회사 Methods and apparatus' of detecting battery capacity for mobile phone
CN101206246A (en) * 2006-12-22 2008-06-25 明基电通股份有限公司 Method for preestimating battery residual capacity
CN101728588A (en) * 2008-10-10 2010-06-09 鸿富锦精密工业(深圳)有限公司 Wireless communication terminal and method for determining battery electric quantity thereof
CN102074984A (en) * 2010-12-21 2011-05-25 Tcl集团股份有限公司 Mobile terminal for detecting electric quantity of battery on line and detection method thereof
CN103176132A (en) * 2011-12-22 2013-06-26 联芯科技有限公司 Estimation method and terminal device of electricity quantity of battery
CN104101837A (en) * 2013-04-03 2014-10-15 比亚迪股份有限公司 On-line calculation method for current total capacity of battery
CN104301499A (en) * 2013-07-15 2015-01-21 腾讯科技(深圳)有限公司 Method and device for analyzing battery capacity records of mobile terminal, platform and mobile terminal
CN103675701A (en) * 2013-11-29 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Battery state-of-charge correction method and device
CN105403835A (en) * 2014-08-29 2016-03-16 展讯通信(深圳)有限公司 System and method for measuring battery level
CN106093780A (en) * 2016-05-31 2016-11-09 青岛海信移动通信技术股份有限公司 A kind of terminal residual electricity determines method and terminal

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107422268B (en) * 2017-06-01 2019-10-01 金卡智能集团股份有限公司 Battery dump energy detection method
CN107422268A (en) * 2017-06-01 2017-12-01 金卡智能集团股份有限公司 Battery dump energy detection method
CN107436418A (en) * 2017-06-15 2017-12-05 捷开通讯(深圳)有限公司 Method, terminal and the device of calibration battery electricity decay
CN107436410A (en) * 2017-07-19 2017-12-05 上海与德科技有限公司 A kind of electric quantity controlling method, device, equipment and storage medium
CN109103518B (en) * 2018-07-16 2020-12-22 深圳市沃特沃德股份有限公司 Battery capacity updating method and system
CN109103518A (en) * 2018-07-16 2018-12-28 深圳市沃特沃德股份有限公司 battery capacity updating method and system
CN110988691A (en) * 2018-10-03 2020-04-10 凹凸电子(武汉)有限公司 Battery detection system, battery detection method and battery pack
CN110988691B (en) * 2018-10-03 2022-04-08 凹凸电子(武汉)有限公司 Battery detection system, battery detection method and battery pack
CN112485677A (en) * 2019-09-12 2021-03-12 东莞新能德科技有限公司 Battery capacity updating method and device, electronic device and storage medium
CN111007412A (en) * 2019-12-25 2020-04-14 宜宾凯翼汽车有限公司 Method for updating actual available capacity of power battery
CN111007412B (en) * 2019-12-25 2022-05-17 宜宾凯翼汽车有限公司 Method for updating actual available capacity of power battery
CN111239624A (en) * 2020-02-21 2020-06-05 中航锂电(洛阳)有限公司 Battery capacity calibration method and device, electronic equipment and storage medium
CN113495213A (en) * 2020-03-20 2021-10-12 北京京东乾石科技有限公司 Electric quantity prediction model construction method, electric quantity prediction model carrying equipment deployment method and electric quantity prediction model carrying equipment deployment device
CN111679206A (en) * 2020-06-01 2020-09-18 Oppo(重庆)智能科技有限公司 Electric quantity detection method and device, and storage medium
CN111679206B (en) * 2020-06-01 2022-09-06 Oppo(重庆)智能科技有限公司 Electric quantity detection method and device, and storage medium
CN111965548A (en) * 2020-09-27 2020-11-20 哈尔滨工业大学(威海) Battery system sensor fault diagnosis method based on state estimation method
CN112858938A (en) * 2021-02-20 2021-05-28 Oppo广东移动通信有限公司 Electric quantity calculation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN106772091B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN106772091A (en) The update method of battery capacity value, device and terminal
US11408942B2 (en) Method for predicting service life of retired power battery
KR102386980B1 (en) Method and apparatus for estimating battery life
CN101142732B (en) Method for adjusting support vector machine, apparatus and method for estimating battery state of charge
US9476947B2 (en) Method for ascertaining operating parameters of a battery, battery management system, and battery
EP3465241A1 (en) Method and system for estimating state of charge of a battery using gaussian process regression
CN106505695A (en) A kind of charge control method, device and terminal
US20140015532A1 (en) Remaining life determining system for stationary storage battery, and method of determining remaining life of stationary storage battery
CN102739845B (en) Electronic device capable of detecting battery power and battery power detection method
CN109991545B (en) Battery pack electric quantity detection method and device and terminal equipment
CN102508172A (en) Calculation method for electric quantities of battery, device and terminal
CN101206246A (en) Method for preestimating battery residual capacity
CN105372595A (en) Battery capacity detection system and method
CN109799458B (en) Method for testing peak power, testing apparatus and computer-readable storage medium
CN106249168A (en) A kind of battery curve modification method and device
CN103902005A (en) Battery charging management method, battery charging management device and mobile device
CN116298897A (en) Method and apparatus for battery short detection
CN103460063A (en) Battery voltage measurement
CN205958716U (en) A system and electronic equipment that is arranged in accurate electronic equipment's of sureness battery state of charge
CN107918101A (en) State of charge indicating means and instruction system
US8798945B2 (en) Computing device and method for testing charging and discharging reliability of rechargable battery
US11181586B2 (en) Model-based capacity and resistance correction for rechargeable battery fuel gauging
CN205139344U (en) Power display device and electronic equipment
CN115570980B (en) Method and device for displaying endurance mileage of electric vehicle, computer equipment and storage medium
CN116187510A (en) Ammeter box fault prediction method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200214

CF01 Termination of patent right due to non-payment of annual fee