CN104375085B - A kind of method, apparatus and terminal detecting battery capacity - Google Patents
A kind of method, apparatus and terminal detecting battery capacity Download PDFInfo
- Publication number
- CN104375085B CN104375085B CN201310350470.6A CN201310350470A CN104375085B CN 104375085 B CN104375085 B CN 104375085B CN 201310350470 A CN201310350470 A CN 201310350470A CN 104375085 B CN104375085 B CN 104375085B
- Authority
- CN
- China
- Prior art keywords
- battery
- voltage
- current
- electricity
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/382—Arrangements for monitoring battery or accumulator variables, e.g. SoC
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Secondary Cells (AREA)
Abstract
The invention discloses a kind of method, apparatus and terminal for detecting battery capacity, wherein this method comprises: determining current operating current according to voltage difference, wherein voltage difference is the voltage value at load resistance both ends;Table is corresponded to voltage electricity according to operating current and carries out Interpolating transform, obtains the charge value of present battery, wherein voltage electricity corresponds to the respective value of voltage and electricity under table record charge or discharge state.By with the present invention, table progress Interpolating transform is corresponded to voltage electricity using interpolation method to obtain the charge value of battery, voltameter chip is not used, also available accurate charge value, terminal cost is reduced, and increases the electricity consumption duration of terminal, uses voltameter chip when solving prior art measuring electric quantity value, the use of voltameter chip will increase the cost of terminal, but also can reduce the use time of end cell.
Description
Technical field
The present invention relates to communication fields, more particularly to a kind of method, apparatus and terminal for detecting battery capacity.
Background technique
As end product use is gradually extensive, users are also increasing for the demand of end product, still
The competition of terminal market is also increasingly fierce.This requires us to work hard in power consumption and cost, improves product competitiveness;
On condition that the function of end product must be complete, and the detection to electricity, it is essential function on portable terminal.
Currently, the detection method of quantity of electricity on end product is generally divided into three kinds, cell voltage monitoring method, fuel cell modelling side
Method, Coulomb meter.
Battery voltage monitoring method: this method be carry out the estimation of electricity by monitoring the voltage of battery, so its
Precision is lower, but is easier to realize, so being widely used in terminal device.However in the flash-over characteristic of lithium battery
In, the voltage and electricity of battery are not simple linear relationship, as shown in Figure 1, exactly this non-linear relation directly results in
The height of voltage monitoring electricity is error, and the error of final electricity estimated value is more than 20%.So percentages show essence can not be used
True charge value can only be shown with segmented.Mobile phone user is frequently found, and in mobile phone electric connection words, display only has lattice electricity, and
After having made a call, the electricity of battery has jumped to two lattice again, namely because electricity caused by voltage jump jumps.
Fuel cell modelling method: this method is the discharge curve according to lithium battery, establishes a discharging model, every measurement one
A voltage value finds corresponding battery capacity according to the voltage in a model.This method can effectively improve electricity
Estimation precision, error range reach 5%, and it goes without doing, and the first of battery capacity is estimated, and easy to use, but the tables of data
Foundation be it is more complicated, particularly in view of power supply ripple, bullet, simulation conducting resistance, the factors such as temperature drift influence, and it is right
Different type battery cannot be preferably compatible with.
Coulomb meter: in anode or cathode one current sense resistor of series connection of battery, when electric current passes through monitoring resistor,
Voltage difference will be generated at the both ends of resistance, the electric current for flowing through battery is calculated by detection voltage difference.The Current versus time
Integral is exactly the charge value changed, can be precisely calculated the electric quantity change of battery in this way, precision is up to 1%.But use integral
Method can have accumulated error, the time is longer, and accumulated error is bigger.Although there are accumulated error and battery are pre- for the first time for Coulomb meter
The problem of estimating, and the precision of current sense resistor directly affects the precision of electricity, but cooperate the prison of cell voltage and temperature
Control, some software algorithms can preferably reduce the first electricity of lithium battery estimate, accumulated error, cell degradation, current detecting electricity
Hinder precision etc. influence of the factor to measurement result.It is the mainstream usage of voltameter chip now in this way.
In above-mentioned detection method of quantity of electricity, some detection methods can not accurate detection go out charge value, though some detection methods
It so can accurately detect charge value, but require using voltameter chip, the use of voltameter chip will increase terminal
Cost, but also the use time of end cell can be reduced.
Summary of the invention
The present invention provides a kind of method, apparatus and terminal for detecting battery capacity, to solve in the prior art, electricity
Although detection method can accurately detect charge value, need using voltameter chip, the use of voltameter chip can increase
Add the cost of terminal, but also the problem of using the time of end cell can be reduced.
In order to solve the above technical problems, on the one hand, the present invention provides a kind of method for detecting battery capacity, comprising: according to
Voltage difference determines current operating current, wherein the voltage difference is the voltage value at load resistance both ends;According to the work
Make current vs voltage electricity and correspond to table progress Interpolating transform, obtains the charge value of present battery, wherein the voltage electricity is corresponding
Table records the respective value of voltage and electricity under charge or discharge state.
Further, before determining current operating current, further includes: save the voltage difference to instantaneous voltage difference
Array, and determine the flat of the multiple voltage difference or the voltage difference recorded in the array of the instantaneous voltage difference
Mean value;The current charge and discharge state of battery is determined according to the average value of the voltage difference or the voltage difference.
Further, determine that the current charge and discharge state of battery includes: to save to preset according to the average value of the voltage difference
The average value of the voltage difference of number;The case where the average value of the voltage difference of the preset times is all larger than zero
Under, determine that battery is currently discharge condition;The case where the average value of the voltage difference of the preset times is respectively less than zero
Under, determine that battery is currently charged state.
Further, the charge value for obtaining present battery includes: to be based on charging current to voltage by Lagrange's interpolation
Electricity corresponds to table and carries out an Interpolating transform, to obtain the charge value of present battery, wherein the charging current is in for battery
The electric current of constant-current charging phase;Alternatively, according to charging current to time integral, to obtain the charge value of present battery, wherein institute
Stating charging current is the electric current that battery is in constant voltage charging phase;Alternatively, being based on discharge current pair by Lagrange's interpolation
Voltage electricity corresponds to table and carries out quadratic interpolation transformation, to obtain the charge value of present battery.
Further, discharge current is based on by Lagrange's interpolation and table progress quadratic interpolation change is corresponded to voltage electricity
Change, with obtain the charge value of present battery include: by the discharge current to the voltage electricity under different loads correspond to table into
Interpolating transform of row corresponds to table with the voltage electricity obtained under present load;Worked as by the average voltage of battery to described
Voltage electricity under preceding load corresponds to table and carries out an Interpolating transform, to obtain the charge value of present battery.
Further, after the charge value for obtaining present battery, further includes: determine electricity according to the maximum operating currenbt of statistics
Minimum interval when changing 1%;In the case where determining that the charge value of battery changes, undergo between the minimum time
Every rear, then show fixed charge value.
Further, the formula of minimum interval when determining electric quantity change 1% according to the maximum operating currenbt of statistics is such as
Under: T=(C/Imax) * (60/100), wherein T consumed time when being electric quantity change 1%, C is battery total capacity, and Imax is
Maximum operating currenbt.
Further, the method also includes: switching between charged state and discharge condition currently has occurred when detecting
When, the numerical value stored in the array of instantaneous voltage difference is subjected to buffering replacement according to pre-determined number, wherein the pre-determined number
For the quantity for storing array in the array of the instantaneous voltage difference.
On the other hand, the present invention also provides a kind of devices for detecting battery capacity, comprising: the first determining module is used for root
Current operating current is determined according to voltage difference, wherein the voltage difference is the voltage value at load resistance both ends;Interpolating transform
Module carries out Interpolating transform for corresponding to table to voltage electricity according to the operating current, obtains the charge value of present battery,
In, the voltage electricity corresponds to the respective value of voltage and electricity under table record charge or discharge state.
Further, described device further include: the second determining module, it is poor to instantaneous voltage for saving the voltage difference
The array of value, and determine the multiple voltage difference or the voltage difference recorded in the array of the instantaneous voltage difference
Average value;Third determining module, for determining that battery is current according to the average value of the voltage difference or the voltage difference
Charge and discharge state.
Further, described device further include: the 4th determining module, for determining electricity according to the maximum operating currenbt of statistics
Minimum interval when changing 1%;Display module, for undergoing institute in the case where determining that the charge value of battery changes
After stating minimum interval, then show fixed charge value.
Further, the Interpolating transform module includes: the first Interpolating transform unit, for passing through Lagrange's interpolation base
Table is corresponded to voltage electricity in charging current and carries out an Interpolating transform, to obtain the charge value of present battery, wherein described to fill
Electric current is the electric current that battery is in constant-current charging phase;Second Interpolating transform unit, for passing through Lagrange's interpolation base
Table is corresponded to voltage electricity in discharge current and carries out quadratic interpolation transformation, to obtain the charge value of present battery;Integral unit is used
According to charging current to time integral, to obtain the charge value of present battery, wherein the charging current be battery be in perseverance
Press the electric current of charging stage.
In another aspect, the present invention provides a kind of terminal again, comprising: the dress of detection battery capacity described in any of the above embodiments
It sets.
The present invention corresponds to table progress Interpolating transform to voltage electricity to obtain the charge value of battery, no by using interpolation method
Using voltameter chip, also available accurate charge value, reduces terminal cost, and increase the electricity consumption duration of terminal, solves
Voltameter chip is used when the prior art of having determined measuring electric quantity value, the use of voltameter chip will increase the cost of terminal, and
End cell can also be reduced uses the time.
Detailed description of the invention
Fig. 1 is the flash-over characteristic schematic diagram of lithium battery in the prior art;
Fig. 2 is the flow chart that the method for battery capacity is detected in the embodiment of the present invention;
Fig. 3 is the tandem circuit schematic diagram that the method for battery capacity is detected in the embodiment of the present invention;
Fig. 4 is that the first structural schematic diagram of the device of battery capacity is detected in the embodiment of the present invention;
Fig. 5 is second of device of the structural schematic diagram that battery capacity is detected in the embodiment of the present invention;
Fig. 6 is that the third structural schematic diagram of the device of battery capacity is detected in the embodiment of the present invention;
Fig. 7 is the structural schematic diagram that the Interpolating transform module of device of battery capacity is detected in the embodiment of the present invention;
Fig. 8 is the flow chart that the method for battery capacity is detected in the preferred embodiment of the present invention one;
Fig. 9 is that the circuit of the device of detection battery capacity of voltameter principle is utilized in the preferred embodiment of the present invention two to show
It is intended to;
Figure 10 is the flow chart that current working current is calculated in the preferred embodiment of the present invention two;
Figure 11 is quadratic interpolation exemplary diagram in the preferred embodiment of the present invention two.
Specific embodiment
Although can accurately detect charge value to solve prior art detection method of quantity of electricity, need using electricity
Chip is counted, the use of voltameter chip will increase the cost of terminal, but also can reduce the problem of using the time of end cell,
The present invention provides a kind of method, apparatus and terminal for detecting battery capacity, below in conjunction with attached drawing and embodiment, to the present invention
It is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, do not limit
The present invention.
The embodiment of the invention provides a kind of method for detecting battery capacity, the process of this method is as shown in Fig. 2, include step
Rapid S202 to step S204.
Step S202 determines current operating current according to voltage difference, wherein voltage difference is load resistance both ends
Voltage value.
The tandem circuit of the above method is as shown in figure 3, be utilized the electricity for accessing load resistance between battery and circuit system
Road detects cell voltage and system voltage by foregoing circuit, and further obtains voltage difference, further according to loading for access
To current operating current, wherein operating current may include charging current and discharge current.
Step S204 corresponds to table to voltage electricity according to operating current and carries out Interpolating transform, obtains the electricity of present battery
Value, wherein voltage electricity corresponds to the respective value of voltage and electricity under table record charge or discharge state.
It, can be based on Lagrange's interpolation formula, further according to current operating current to voltage in above-mentioned steps
Electricity corresponds to table and carries out Interpolating transform, obtains the charge value of battery.The present embodiment is by using Lagrange's interpolation to voltage
Electricity corresponds to table and carries out Interpolating transform to obtain the charge value of battery, does not use voltameter chip, also available accurate electricity
Magnitude reduces terminal cost, and increases the electricity consumption duration of terminal, uses voltameter when solving prior art measuring electric quantity value
Chip, the problem of reducing power consumption of terminal.Certainly, those skilled in the art according to actual needs, can choose other formula work
Based on, carry out Interpolating transform.
Before step S202 execution, first voltage difference can also be saved into the array of instantaneous voltage difference, and root
The multiple voltage difference recorded in array according to instantaneous voltage difference calculates an average value;Battery is determined according to the average value
Current charge and discharge state, wherein if the average value is greater than zero, it is determined that battery is in discharge condition, if the average value
Less than zero, it is determined that battery is in charged state.In such a way that the average value of voltage difference determines battery current state, relatively
In the mode for only determining battery current state with voltage difference, determining accuracy rate is higher.
In implementation process, in order to further determine the state being presently in, the voltage difference of preset times can be saved
Average value, wherein the preset times can be an empirical value, and those skilled in the art can be configured according to demand, example
Such as 15 times.If the average value of 15 voltage differences is all larger than zero, it can determine that battery is currently discharge condition;If 15
The average value of secondary voltage difference is respectively less than zero, then can determine that battery is currently charged state.If again during 15 times,
There is non-full the case where being more than or less than zero in average value, then abandons the process for this time judging battery status, wait until next 15
Judged again when secondary.
If current battery is in constant-current charging phase, charging current is based on to voltage electricity by Lagrange's interpolation
It measures corresponding table and carries out an Interpolating transform, to obtain the charge value of present battery.If current battery is in constant-voltage charge rank
Section, the integral that the Current versus time on load resistance can be used obtain voltage value.If current battery is in electric discharge
State is based on discharge current by Lagrange's interpolation and corresponds to table progress quadratic interpolation transformation to voltage electricity, to be worked as
The charge value of preceding battery.
Wherein, battery is under discharge condition and obtains the process of the charge value of present battery, can be and pass through electric discharge
Electric current corresponds to table to the voltage electricity under different loads and carries out an Interpolating transform, to obtain the voltage electricity pair under present load
Answer table;Table is corresponded to the voltage electricity under present load by the average voltage of battery again and carries out an Interpolating transform, with
To the charge value of present battery.
After step S204 has determined the charge value of battery, directly the charge value can be shown.But due to
The charge value of battery can have certain jump, therefore there are some unstability.To solve the above-mentioned problems, the present embodiment mentions
A kind of process that buffered can be further carried out to charge value is supplied, comprising: determine according to the maximum operating currenbt of statistics
Minimum interval when electric quantity change 1%, wherein the operating current can be charging current, be also possible to discharge current;?
In the case where determining that the charge value of battery changes, fixed charge value is shown again after undergoing minimum interval.It determines
The formula of minimum interval is as follows: T=(C/Imax) * (60/100), wherein T consumed time, C when being electric quantity change 1%
For battery total capacity, ImaxFor maximum operating currenbt.Wherein, the statistical work of above-mentioned maximum operating currenbt can be continuous acquisition
Statistics, every time after acquisition, all record maximum value in two nearest operating currents.For example, acquiring two works for the first time
Make electric current, record maximum electric current in two operating currents, by a job of the maximum electric current and subsequent second of acquisition
Electric current is compared.It, will be second if the operating current of second of acquisition is greater than predetermined maximum electric current at this time
The operating current of acquisition is determined as current maximum electric current;If the operating current of second of acquisition is less than predetermined at this time
Maximum electric current, then maximum electric current does not change.
During the above method is implemented, cutting between charged state and discharge condition currently has occurred if detected
It changes and (discharge condition is become from charged state, alternatively, becoming charged state from discharge condition), then it will instantaneous electricity according to pre-determined number
The numerical value stored in the array of pressure difference carries out buffering replacement, wherein pre-determined number is storage in the array of instantaneous voltage difference
The quantity of array.
The present embodiment additionally provides a kind of device for detecting battery capacity, and the structural representation of the device is as shown in figure 4, packet
It includes:
First determining module 10, for determining current operating current according to voltage difference, wherein voltage difference is negative
Carry the voltage value at resistance both ends;Interpolating transform module 20 is coupled with the first determining module 10, is used for according to operating current to voltage
Electricity correspond to table carry out Interpolating transform, obtain the charge value of present battery, wherein voltage electricity correspond to table for record charge or
The respective value of voltage and electricity under discharge condition.
Fig. 5 shows a kind of structural schematic diagram of the device of above-mentioned detection battery capacity, the device based on Fig. 4, above-mentioned dress
Setting to include:
Second determining module 30 for saving voltage difference to the array of instantaneous voltage difference, and determines instantaneous voltage
The average value of the multiple voltage difference or voltage difference that are recorded in the array of difference;Third determining module 40 determines mould with second
Block 30 and the coupling of the first determining module 10, for according to the average value of voltage difference or voltage difference determine battery it is current fill,
Discharge condition.
Above-mentioned third determining module 40 can also include: the list for the average value for saving the voltage difference of preset times
Member;For determining that battery is currently discharge condition in the case where the average value of the voltage difference of preset times is all larger than zero
Unit;For determining that battery is currently charged state in the case where the average value of the voltage difference of preset times is respectively less than zero
Unit.
Fig. 6 shows another structural schematic diagram of the device of above-mentioned detection battery capacity, and the device based on Fig. 5 is above-mentioned
Device can also include: the 4th determining module 50, couple with third determining module 40, for the maximum operating currenbt according to statistics
Determine minimum interval when electric quantity change 1%;Display module 60 is coupled with the 4th determining module 50, for determining battery
Charge value change in the case where, after undergoing minimum interval, then show fixed charge value.
Fig. 7 shows the preferred structure schematic diagram of Interpolating transform module 20 in the device of above-mentioned detection battery capacity, wherein
The Interpolating transform module 20 includes: the first Interpolating transform unit 202, for being based on charging current pair by Lagrange's interpolation
Voltage electricity corresponds to table and carries out an Interpolating transform, to obtain the charge value of present battery, wherein charging current is in for battery
The electric current of constant-current charging phase;Second Interpolating transform unit 204, for being based on discharge current to electricity by Lagrange's interpolation
Piezoelectricity amount corresponds to table and carries out quadratic interpolation transformation, to obtain the charge value of present battery;Integral unit 206, for according to charging
Integrated current over time, to obtain the charge value of present battery, wherein the charging current is that battery is in constant voltage charging phase
Electric current.
Wherein, the second Interpolating transform unit 204 determines charge value as follows: by discharge current to different loads
Under voltage electricity correspond to table carry out an Interpolating transform, table is corresponded to the voltage electricity obtained under present load;Pass through battery
Average voltage to the voltage electricity under present load correspond to table carry out an Interpolating transform, to obtain the electricity of present battery
Value.
Above-mentioned apparatus can also include one and currently have occurred between charged state and discharge condition for that ought detect
When switching, the numerical value stored in the array of instantaneous voltage difference is carried out to the module of buffering replacement according to pre-determined number, wherein pre-
Determine the quantity of storage array in the array that number is instantaneous voltage difference.
Preferred embodiment
This preferred embodiment provides a kind of new method that battery capacity is detected on terminating machine.For terminal, the party
Method may make end product to reduce to reduce the power consumption of complete machine using voltameter chip institute without using voltameter chip
Bring cost;For developer, both it can shorten the R&D cycle without setting up complicated battery model, and can be to avoid
The jump of electricity caused by simple voltage monitoring method, obtains the battery capacity percentage of degree of precision.
The method for the detection battery capacity that the present embodiment proposes be by monitor cell voltage, it is big according to the load of terminal
It is small, table is corresponded to the electricity voltage under different loads and carries out quadratic interpolation, a series of optimization algorithm of going forward side by side is realized to battery
The accurate estimation of charge value when charge and discharge.Specific technical solution is illustrated below.The process of this method as shown in figure 8,
Including step S802 to S804.Step S802, according to cell voltage and current system load when initialization, preestimating battery is initially electric
Amount;Step S804 by Lagrange's interpolation algorithm, accurately estimates the charge value of battery in the process of running.
Wherein, step S802 includes:
Pass through A-D converter (Analog-to-Digital Converter, referred to as ADC) sampling battery initial voltage
(V_BATT), and the array for saving the instantaneous voltage value of battery is initialized;By ADC sampling system initial voltage (V_SYS), ask
Voltage difference (V_BATT-V_SYS) is taken, and initializes the array for saving instantaneous voltage difference.Voltage is searched according to cell voltage
Electricity corresponds to table, calculates battery initial quantity of electricity value.
Further, step S804 includes: the calculating of (1) to voltage;(2) to battery charging and discharging the calculating of electricity when;(3)
The calculating of electricity buffering.
Wherein, (1) includes: to the calculating of voltage
By ADC sampling battery instantaneous voltage (V_BATT), circulation is saved into the array of the instantaneous voltage value of battery, and asks
It is averaged;By ADC sampling system instantaneous voltage (V_SYS), voltage difference (V_BATT-V_SYS) is sought, and recycles preservation
Into the array of instantaneous voltage difference, and averaged.The current charge and discharge of battery are judged further according to the average value of voltage difference
State, wherein the average value of ten voltage differences is saved, and is judged, if 10 times both greater than zero, battery is currently to put
Electricity condition, if 10 times both less than zero, battery is currently charged state.
Wherein, the buffered when calculating of electricity includes: to battery charging and discharging switching when (2) are to battery charging and discharging;It is right
The calculating of battery charge;Calculating to battery discharge electricity;Buffered is carried out to charge value.
Buffered when to battery charging and discharging switching, comprising: in the state switching of battery charging and discharging, carry out 10 electricity
Measure the buffering of calculating cycle, wherein in charging, carry out counting full judgement, in electric discharge, carry out counting empty judgement.
Calculating to battery charge, comprising: battery is divided into constant-current charging phase and constant-voltage charge during the charging process
Stage enters constant-voltage charge rank if cell voltage reaches the charging limitation voltage of battery when battery is in charged state
Section is in constant-current charging phase if cell voltage is not up to the charging limitation voltage of battery.When battery is in constant-current charge
Stage can carry out an interpolation, obtain the charge value of present battery according to current charging current.When battery is in constant pressure
Charging stage adds up the electricity of present battery using the current value on current flow sensitive resistance (load resistance) to time integral
Magnitude.
Calculating to battery discharge electricity, comprising: according to current discharge current, carry out quadratic interpolation, obtain current electricity
The charge value in pond, wherein the process for carrying out quadratic interpolation using operating current is as follows: according to current discharge current, to difference
Voltage electricity under load corresponds to table and carries out first time interpolation, and the voltage electricity obtained under present load corresponds to table, reuses electricity
The average voltage in pond corresponds to table to voltage electricity and carries out second of interpolation, obtains the charge value of present battery.
Buffered is carried out to charge value, comprising: according to the maximum charging current or maximum discharge current of terminal, calculate
Minimum interval when electric quantity change 1% uses following formula: T=(C/Imax) * (60/100), wherein C indicates that battery always holds
Amount, unit mAh;ImaxIndicate maximum current, unit mA;T indicates the time consumed by electric quantity change 1%, and unit is minute.
The present embodiment is not in the case where using voltameter chip, electricity of the battery implemented in software under charge status
Estimation, solving must be in turn resulted in the related technology and be interrupted that power consumption is larger using voltameter chip, and higher cost is asked
Topic.
Preferred embodiment two
This preferred embodiment provides a kind of mobile terminal, includes the device of detection battery capacity inside the mobile terminal,
Wherein, which has used the circuit diagram of voltameter in end product, as shown in figure 9, in the anode series connection one of battery
A load resistance for being used to detect electric current, is respectively connected to one input pin of multiselect of ADC at the both ends of resistance.With reference to the accompanying drawing
The method that detection cell voltage is realized on the mobile terminal is illustrated.
Figure 10 is the flow chart for calculating current working current.As shown in Figure 10 comprising (step S1002 is extremely for following process
Step S1014).
Step S1002 judges that battery whether there is.If so, S1004 is thened follow the steps, it is no to then follow the steps S1014.
Wherein it is possible to by the ID pin for reading battery or judge the temperature of battery and realize the process for judging that battery whether there is.
Step S1004 respectively samples cell voltage (V_BATT) and system voltage (V_SYS) by ADC.
Step S1006 fills cell voltage array, and averaged.
Step S1008 seeks voltage difference (V_BATT-V_SYS), and carries out average value processing.
Step S1010, according to voltage difference judge battery locating for charging and discharging state.
During above-mentioned steps are realized, it can be the voltage value that will be sampled every time and be put into the array that capacity is 10, logarithm
After data in group remove maximum value and minimum value, average value is calculated.Then the judgement of battery charging condition is carried out, for example,
The average value of ten voltage differences is saved, and is judged, if 10 times both greater than zero, battery is currently discharge condition, such as
Fruit 10 times both less than zero, then battery is currently charged state.
Step S1012 uses the charge and discharge of the computing the resistor value present battery of the average value and current sense resistor of voltage difference
Electric current.
Step S1014, is directly entered and dispatches next time.
After having judged current battery status and charged state, before determining charging and discharging currents, it can also be filled
The buffered of electricity condition switching, it is, carrying out the slow of 10 electricity calculating cycles in the state switching of battery charging and discharging
Punching.In charging, it is incremented by electricity calculating cycle, carries out counting full judgement, in electric discharge, electricity calculating cycle of successively decreasing is counted
The empty judgement of number.Then, electricity calculating is carried out, is divided into charge capacity calculating and discharge electricity amount calculates, finally carry out at electricity buffering
Reason, it may be assumed that according to the maximum charging current and maximum discharge current of terminal, between minimum time when calculating electric quantity change 1%
Every.
It is it needs to be determined that the state that battery is presently in the implementation procedure of above-mentioned steps S1012.Battery is in obstructed
State is crossed, the process for calculating charge value is also different.
If battery is in charged state, judge that battery is in constant-current charging phase or constant voltage charging phase.Wherein,
The above-mentioned different phase criteria for classifying are as follows: when cell voltage reach battery charging limit voltage, that is, enter constant voltage charging phase, it is no
Then it is in constant-current charging phase.If carrying out an interpolation according to current charging current in constant-current charging phase, obtaining
The charge value of present battery.If being in constant voltage charging phase, using current charging current value to time integral, add up current
The charge value of battery.Finally when battery is in the charging stage, electricity is monotonic increase, it may be assumed that electricity hundred obtained by contrast conting
Point than with electricity percentage to be updated, so that charge value is in incremental state.
If battery is in discharge condition, according to current discharge current, quadratic interpolation is carried out, present battery is obtained
Charge value, when battery is in discharge regime, electricity is monotone decreasing, so finally carrying out at monotone decreasing to charge value
Reason.
Specifically, table is corresponded to the voltage electricity under different loads and carries out first time interpolation according to current discharge current,
The voltage electricity obtained under present load corresponds to table, and the average voltage for reusing battery corresponds to table to voltage electricity and carries out second
Secondary interpolation obtains the charge value of present battery.Such as: current working current 80mA, as shown in figure 11, exist now 50mA with
Voltage under 100mA load, electricity homologous thread, calculating slope between current point first is (100-80)/(80-50), root
Slope calculates the voltage value on different electricity points accordingly, obtains a new voltage electricity homologous thread, i.e. voltage electricity under 80mA
Homologous thread is measured, finally voltage electricity under 80mA is searched using the average voltage of present battery and corresponds to table, obtained after interpolation
Final charge value.
When showing connection load resistance in table 1, change system power, in 50mA-1000mA load sudden change, electricity
The testing result of pond electricity.As can be seen from the table, as in load variation, cell voltage has fluctuation, but electricity is tieed up
88% is held, battery capacity stablizes output, no catastrophe.
Table 1
Voltage (MV) | Electricity (%) |
3996 | 88 |
3995 | 88 |
4092 | 88 |
4101 | 88 |
4000 | 88 |
3958 | 88 |
3946 | 88 |
3936 | 88 |
3929 | 88 |
4074 | 88 |
4077 | 88 |
In table as can be seen that in load variation, cell voltage has fluctuation, but electricity maintains 88%, battery electricity
Amount stablizes output, no catastrophe.
The end product that this preferred embodiment provides can not have to use voltameter chip, so that the power consumption of complete machine is reduced,
Reduce using cost brought by voltameter chip;Developer uses technical solution of the present invention, both can be without setting up multiple
Miscellaneous battery model shortens the R&D cycle, and can jump to avoid electricity caused by simple voltage monitoring method, obtain compared with
High-precision battery capacity value.
Although for illustrative purposes, the preferred embodiment of the present invention has been disclosed, those skilled in the art will recognize
It is various improve, increase and replace be also it is possible, therefore, the scope of the present invention should be not limited to the above embodiments.
Claims (11)
1. a kind of method for detecting battery capacity characterized by comprising
Voltage difference is saved to the array of instantaneous voltage difference, and is recorded in the array of the determining instantaneous voltage difference more
The average value of the secondary voltage difference or the voltage difference, wherein the voltage difference is the voltage value at load resistance both ends;
The current charge and discharge state of battery is determined according to the average value of the voltage difference or the voltage difference;
Current operating current is determined according to the voltage difference;
Table is corresponded to voltage electricity according to the operating current and carries out Interpolating transform, obtains the charge value of present battery, wherein institute
State the respective value of voltage and electricity that voltage electricity corresponds under table record charge or discharge state.
2. the method as described in claim 1, which is characterized in that determine that battery is current according to the average value of the voltage difference
Charge and discharge state includes:
Save the average value of the voltage difference of preset times;
In the case where the average value of the voltage difference of the preset times is all larger than zero, determining battery currently is electric discharge shape
State;
In the case where the average value of the voltage difference of the preset times is respectively less than zero, determining battery currently is charging shape
State.
3. the method as described in claim 1, which is characterized in that the charge value for obtaining present battery includes:
Charging current is based on by Lagrange's interpolation, and a table Interpolating transform of progress is corresponded to voltage electricity, it is current to obtain
The charge value of battery, wherein the charging current is the electric current that battery is in constant-current charging phase;Alternatively,
According to charging current to time integral, to obtain the charge value of present battery, wherein the charging current is in for battery
The electric current of constant voltage charging phase;Alternatively,
Discharge current is based on by Lagrange's interpolation, and table progress quadratic interpolation transformation is corresponded to voltage electricity, it is current to obtain
The charge value of battery.
4. method as claimed in claim 3, which is characterized in that be based on discharge current to voltage electricity by Lagrange's interpolation
It measures corresponding table and carries out quadratic interpolation transformation, include: to obtain the charge value of present battery
Table is corresponded to the voltage electricity under different loads by the discharge current and carries out an Interpolating transform, currently to be born
Voltage electricity under carrying corresponds to table;
Table is corresponded to the voltage electricity under the present load by the average voltage of battery and carries out an Interpolating transform, with
To the charge value of present battery.
5. method according to any one of claims 1 to 4, which is characterized in that after the charge value for obtaining present battery, also
Include:
Minimum interval when electric quantity change 1% is determined according to the maximum operating currenbt of statistics;
In the case where determining that the charge value of battery changes, after undergoing the minimum interval, fixed electricity is shown
Magnitude.
6. method as claimed in claim 5, which is characterized in that determine electric quantity change 1% according to the maximum operating currenbt of statistics
When minimum interval formula it is as follows:
T=(C/Imax) * (60/100), wherein T consumed time when being electric quantity change 1%, C is battery total capacity, ImaxFor
Maximum operating currenbt.
7. method as claimed in claim 5, which is characterized in that the method also includes:
When detect currently the switching between charged state and discharge condition has occurred when, it is according to pre-determined number that instantaneous voltage is poor
The numerical value stored in the array of value carries out buffering replacement, wherein the pre-determined number is in the array of the instantaneous voltage difference
Store the quantity of array.
8. a kind of device for detecting battery capacity characterized by comprising
First determining module, for determining current operating current according to voltage difference, wherein the voltage difference is load electricity
Hinder the voltage value at both ends;
Interpolating transform module carries out Interpolating transform for corresponding to table to voltage electricity according to the operating current, obtains current electricity
The charge value in pond, wherein the voltage electricity corresponds to the respective value of voltage and electricity under table record charge or discharge state;
Second determining module for saving the voltage difference to the array of instantaneous voltage difference, and determines the instantaneous electricity
The average value of the multiple voltage difference or the voltage difference that are recorded in the array of pressure difference;
Third determining module, for according to the average value of the voltage difference or the voltage difference determine battery it is current fill,
Discharge condition.
9. device as claimed in claim 8, which is characterized in that further include:
4th determining module determines minimum interval when electric quantity change 1% for the maximum operating currenbt according to statistics;
Display module, in the case where determining that the charge value of battery changes, after undergoing the minimum interval, then
Show fixed charge value.
10. device as claimed in claim 8, which is characterized in that the Interpolating transform module includes:
First Interpolating transform unit corresponds to table progress one to voltage electricity for being based on charging current by Lagrange's interpolation
Secondary Interpolating transform, to obtain the charge value of present battery, wherein the charging current is the electricity that battery is in constant-current charging phase
Stream;
Second Interpolating transform unit corresponds to table progress two to voltage electricity for being based on discharge current by Lagrange's interpolation
Secondary Interpolating transform, to obtain the charge value of present battery;
Integral unit is used for according to charging current to time integral, to obtain the charge value of present battery, wherein the charging
Electric current is the electric current that battery is in constant voltage charging phase.
11. a kind of terminal characterized by comprising detect the dress of battery capacity described in any one of claim 8 to 10
It sets.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310350470.6A CN104375085B (en) | 2013-08-13 | 2013-08-13 | A kind of method, apparatus and terminal detecting battery capacity |
PCT/CN2013/087794 WO2014161325A1 (en) | 2013-08-13 | 2013-11-25 | Method, device and terminal for detecting electric quantity of battery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310350470.6A CN104375085B (en) | 2013-08-13 | 2013-08-13 | A kind of method, apparatus and terminal detecting battery capacity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104375085A CN104375085A (en) | 2015-02-25 |
CN104375085B true CN104375085B (en) | 2019-03-26 |
Family
ID=51657513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310350470.6A Active CN104375085B (en) | 2013-08-13 | 2013-08-13 | A kind of method, apparatus and terminal detecting battery capacity |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104375085B (en) |
WO (1) | WO2014161325A1 (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103974323B (en) * | 2014-05-30 | 2019-01-15 | 努比亚技术有限公司 | Mobile terminal and its information uploading method |
CN106483462B (en) * | 2015-08-28 | 2019-09-17 | 炬芯(珠海)科技有限公司 | A kind of measurement method and device of battery charge |
CN105607006B (en) * | 2015-09-30 | 2019-04-12 | 宇龙计算机通信科技(深圳)有限公司 | Determination method, system and the terminal of battery capacity |
CN106569132A (en) * | 2015-10-13 | 2017-04-19 | 中兴通讯股份有限公司 | Power display method and apparatus |
CN105891722B (en) * | 2016-04-06 | 2017-11-17 | 广东欧珀移动通信有限公司 | The computational methods and device of a kind of terminal battery electricity quantity |
CN106501730A (en) * | 2016-12-06 | 2017-03-15 | 歌尔科技有限公司 | A kind of battery electric quantity processing method and equipment |
CN107436410A (en) * | 2017-07-19 | 2017-12-05 | 上海与德科技有限公司 | A kind of electric quantity controlling method, device, equipment and storage medium |
CN109813775A (en) * | 2017-11-20 | 2019-05-28 | 上海观流智能科技有限公司 | Specific ion detection method, system, computer readable storage medium and equipment |
CN109633459B (en) * | 2018-12-31 | 2021-04-09 | 浙江高泰昊能科技有限公司 | SOC interval dynamic curve correction method based on power battery application |
CN110297192B (en) * | 2019-07-04 | 2021-04-06 | 广东乐心医疗电子股份有限公司 | Method for estimating electric quantity during charging and discharging of battery and electric quantity correction method during starting |
CN110794315B (en) * | 2019-08-06 | 2022-07-12 | 厦门亿联网络技术股份有限公司 | Method for detecting electric quantity of rechargeable battery |
CN110716142A (en) * | 2019-10-16 | 2020-01-21 | 蔚复来(浙江)科技股份有限公司 | Low-power-consumption battery electric quantity detection method |
CN111426965B (en) * | 2020-05-15 | 2022-05-06 | 深圳英集芯科技股份有限公司 | Method for calculating electric quantity of battery |
CN111740464B (en) * | 2020-07-03 | 2022-07-22 | 歌尔科技有限公司 | Battery power compensation method, device, equipment and readable storage medium |
CN113533844A (en) * | 2021-08-17 | 2021-10-22 | 南昌黑鲨科技有限公司 | Electric quantity meter circuit, control method, electric quantity meter and terminal |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3392506B2 (en) * | 1994-02-24 | 2003-03-31 | 株式会社東芝 | Solar power generation simulator |
SE515398C2 (en) * | 1996-04-29 | 2001-07-30 | Emerson Energy Systems Ab | Battery Capacity Gauge |
CN2743892Y (en) * | 2004-09-24 | 2005-11-30 | 深圳市万拓电子技术有限公司 | External cell bag for portable notebook computer |
JP2006275549A (en) * | 2005-03-28 | 2006-10-12 | Seiko Epson Corp | Information terminal and calculation method of battery power |
CN103217651B (en) * | 2013-04-18 | 2015-09-23 | 中国科学院广州能源研究所 | A kind of evaluation method of storage battery charge state and system |
-
2013
- 2013-08-13 CN CN201310350470.6A patent/CN104375085B/en active Active
- 2013-11-25 WO PCT/CN2013/087794 patent/WO2014161325A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
CN104375085A (en) | 2015-02-25 |
WO2014161325A1 (en) | 2014-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104375085B (en) | A kind of method, apparatus and terminal detecting battery capacity | |
EP3285081B1 (en) | Battery state of health detection device and method | |
JP5466564B2 (en) | Battery degradation estimation method, battery capacity estimation method, battery capacity equalization method, and battery degradation estimation apparatus | |
CN106461732B (en) | Method for estimating state of health of battery | |
CN103250066B (en) | The system and method for sensing battery capacity | |
CN104698388B (en) | The cell degradation detection method and its device of a kind of mobile terminal | |
WO2018059074A1 (en) | Detection method and device for micro short circuit of battery | |
EP2325658B1 (en) | Device and method for estimating battery resistance characteristics using battery voltage behaviour | |
KR101402802B1 (en) | Apparatus and Method for cell balancing based on battery's voltage variation pattern | |
CN102203626A (en) | Apparatus and method for cell balancing using the voltage variation behavior of battery cell | |
CN101535827A (en) | Apparatus and method for determination of the state-of-charge of a battery when the battery is not in equilibrium | |
CN104698385A (en) | Cell state calculation apparatus and cell state calculation method | |
CN102119338A (en) | Apparatus and method for estimating state of health of battery based on battery voltage variation pattern | |
JP2006242880A (en) | Condition detector for power supply device, power supply device, and initial characteristic extractor used for power supply device | |
CN111463513B (en) | Method and device for estimating full charge capacity of lithium battery | |
CN104965176A (en) | Battery cell state-of-health estimation method | |
CN107169170B (en) | A kind of prediction technique of battery remaining power | |
CN113406523B (en) | Energy storage battery state evaluation method and device, electronic equipment and storage system | |
CA2899239A1 (en) | Method for determining a state of charge and remaining operation life of a battery | |
WO2019140956A1 (en) | Electricity quantity metering accuracy detection method, device and computer storage medium | |
CN113219351A (en) | Monitoring method and device for power battery | |
CN110687458A (en) | Terminal battery electric quantity determination method and device | |
CN117222904A (en) | Battery state estimating device and power system | |
CN111142032B (en) | Method, device and equipment for determining battery electric quantity and storage medium | |
CN112415400A (en) | Battery capacity estimation method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |