CN104280686B - Storage battery residual electric quantity detection method - Google Patents

Storage battery residual electric quantity detection method Download PDF

Info

Publication number
CN104280686B
CN104280686B CN201410539126.6A CN201410539126A CN104280686B CN 104280686 B CN104280686 B CN 104280686B CN 201410539126 A CN201410539126 A CN 201410539126A CN 104280686 B CN104280686 B CN 104280686B
Authority
CN
China
Prior art keywords
battery
max
storage battery
charged state
flag
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.)
Expired - Fee Related
Application number
CN201410539126.6A
Other languages
Chinese (zh)
Other versions
CN104280686A (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201410539126.6A priority Critical patent/CN104280686B/en
Publication of CN104280686A publication Critical patent/CN104280686A/en
Application granted granted Critical
Publication of CN104280686B publication Critical patent/CN104280686B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Tests Of Electric Status Of Batteries (AREA)

Abstract

The invention discloses a storage battery residual electric quantity detection method. The method comprises the following steps (1) conducting initializing; (2) judging whether a storage battery is in a charging state or a discharging state currently, conducting charging state electric quantity detection if the storage battery is in the charging state, and conducting discharging state electric quantity detection if the storage battery is in the discharging state; (3) dynamically setting the sampling frequency, and executing the step (2) again. According to the storage battery residual electric quantity detection method, on the premise that the hardware cost is not increased, the storage battery electric quantity detection result becomes quite accurate, the problem that a user of charging equipment cannot accurately know the equipment residual electric quantity is solved, the capacity of automatically correcting an accumulated error in the using process is achieved, the storage battery residual electric quantity detection method can automatically adapt to the influences of storage battery aging and environment temperature changes on the electricity storage capacity and the discharging capacity of the storage battery, the working frequency can be automatically adjusted so as to adapt to the changing working condition of the storage battery, frequency conversion sampling is achieved, and the storage battery residual electric quantity detection method can be widely applied to charging equipment for a smart phone, a tablet personal computer, a portable computer, an electric car and the like.

Description

A kind of battery residual capacity measurement method
Technical field
The present invention relates to a kind of analog quantity detecting method, particularly to a kind of battery residual capacity measurement method.
Background technology
Between the pole plate of analog quantity acquiring device acquisition battery voltage is usually used in charging equipment, by the remaining electricity of battery The mapping relations of voltage between amount percentage and accumulator plate, obtain battery dump energy percentage indirectly.
However, as shown in figure 1, voltage between the pole plate of battery dump energy percentage and battery, in functional image Often only assume approximate linear correlation in stage casing, but when electricity is relatively low or higher, between the pole plate of battery, voltage is with storage The reduction of battery dump energy percentage and rapid decrease.This causes charging equipment just fully charged or when dump energy is relatively low, Shown dump energy percentages rapid decrease in charging equipment, allows user cannot hold charging equipment exactly Dump energy.
Some charging equipment, on the basis of above battery dump energy method for detecting percentage, to battery Between dump energy percentage and accumulator plate, the mapping relations of voltage are modified so as to accumulator electric-quantity is relatively low and electricity When higher, between accumulator plate, voltage can more accurately be mapped to battery dump energy percentage, makes charging equipment Dump energy percentages show more accurate.But when the operation power of charging equipment increases suddenly, due to battery The presence of polarizing polar plates phenomenon, between accumulator plate, voltage is decreased obviously so that the remaining electricity of the battery that detects of charging equipment Amount percentage is substantially low.This makes charging equipment when electricity is relatively low, once abruptly entering the working condition of relatively high power, will It is mistakenly considered accumulator electric-quantity at once too low, cause charging equipment automatic shutdown singularly.
When a charging equipment dump energy is more, tend not to automatically close after abruptly entering relatively high power working condition Machine, but the dump energy percentages shown by charging equipment can reduce rapidly.However, when charging equipment turns again to relatively After low power working condition, because accumulator plate degree of polarization weakens, voltage recovery between accumulator plate, battery remains Remaining electric power detection result occurs rise, causes the mistake of the dump energy percentages resilience that charging equipment shows.
No matter above any battery residual capacity measurement method, all using voltage between by accumulator plate between obtain The method taking battery dump energy percentage.But due to voltage between battery dump energy percentage and accumulator plate Nonlinear correlation, and the presence of accumulator plate polarization phenomena, by accumulator plate between voltage, indirect gain battery remain The method of remaining electricity percentage is it is impossible to be accurately detected the dump energy percentage of battery.
Content of the invention
It is an object of the invention to overcoming the deficiencies in the prior art to cause user cannot accurate assurance charging set The problem of standby dump energy, provides a kind of testing result very accurate, can avoid the dump energy hundred shown by charging equipment Divide ratio numerical value resilience mistake, electricity-saving characteristic can be taken into account while ensureing dump energy percentage testing result accuracy Battery residual capacity measurement method.
The purpose of the present invention is achieved through the following technical solutions:A kind of battery residual capacity measurement method, bag Include following steps:
S1:Initialization, carries out Initialize installation to the parameter needing to use;
S2:Judging that battery is currently at charged state or discharge condition, if being in charged state, carrying out step S3, if being in discharge condition, carries out step S4;
S3:It is charged state electric power detection;
S4:Carry out discharge condition electric power detection;
S5:Dynamic setting sample frequency, return to step S2.
Further, the initialization of described step S1 includes following sub-step:
S11:If battery current residual electricity percentage is q, q accounts for the maximum electricity of battery for battery current residual electricity The percentage of amount, as final detection variable;
S12:If battery current residual electricity is Q, and initializes Q, make Q=0;
S13:If battery maximum electricity is Qmax
S14:If the charged state sampling period is Ti, the discharge condition sampling period is To
S15:If the battery tension upper limit is Umax, battery tension lower limit is Umin
S16:If electrical power number sequence W, its item number upper limit is N;
S17:If battery charge/discharge status indicator is that (its value is to represent charged state when 0 to Flag, and its value is to represent when 1 Discharge condition).
Further, there are three kinds of states, respectively charged state, discharge condition and spare time in theory in described battery Configuration state, the idle state of battery is considered as the special discharge condition that a kind of discharge current in discharge condition is 0, therefore electric power storage Pond only has charging and discharging two states, either-or.
Further, it is charged state electric power detection in described step S3 and include following sub-step:
S31:Judge whether Flag is equal to 1, if Flag==1, make Flag=0 and empty number sequence W;
S32:Obtain charging current value Ii
S33:Q is made to add up Ii*Ti, i.e. Q=Q+Ii*Ti
S34:Obtain charging voltage value Ui
S35:Make q=f (Ui), wherein f (Ui) for battery dump energy percentage with regard to accumulator plate between voltage letter Numerical value;
S36:Judge UiWhether it is equal to UmaxIf, Ui==UmaxThen make Qmax=Q;
S37:Wait charged state sampling period Ti
S38:By UiWith IiProduct be added in number sequence W.
Further, in described step S4, discharge condition electric power detection includes following sub-step:
S41:Judge whether Flag is equal to 0, if Flag==0, make Flag=1 and empty number sequence W;
S42:Obtain discharge current Io
S43:Judge IoWhether it is less than C*QmaxIf, Io<C*QmaxThen obtain discharge voltage value Uo;Otherwise make Q regressive Io*To, I.e. Q=Q-Io*To, then carry out the operation of step S46;
S44:Judge UoWhether it is equal to UminIf, Uo==Umin, then make Q=0 and q=0, then carry out the behaviour of step S47 Make;
S45:Judge q whether more than battery dump energy percentage with regard to accumulator plate between voltage functional value f (Uo), if q>f(Uo), then make q=f (Uo) and Q=q*Qmax, then carry out the operation of step S47, otherwise directly carry out step The operation of S47;
S46:Judge Q/QmaxWhether it is less than q, if Q/Qmax<Q then makes q=Q/Qmax
S47:Wait discharge condition sampling period To
S48:By UoWith IoProduct be added in number sequence W.
Further, in described S5, dynamic setting sample frequency comprises the following steps:
S51:Calculate standard deviation α of number sequence W;
S52:Judge whether Flag is equal to 0, if Flag==0, carry out step S53, otherwise carry out step S54;
S53:Make TiEqual to the charged state sampling period with regard to several W standard deviations α functional value Tin(α);
S54:Make ToEqual to the discharge condition sampling period with regard to number sequence W standard deviation α functional value Tout(α).
The invention has the beneficial effects as follows:
1st, on the premise of not increasing hardware cost, make the electric power detection result of battery become very accurate, solve The user of charging equipment cannot accurate assurance equipment dump energy problem, simultaneously the detection method of the present invention can also avoid When accumulator load is larger, exhaust and automatic shutdown singularly because accumulator plate polarization makes charging equipment take for electricity Phenomenon, more avoids the mistake of the dump energy percentages resilience shown by charging equipment;
2nd, the detection method of the present invention has the ability that cumulative errors are calibrated automatically in use, can automatically adapt to Battery is aging and the impact to battery power storage ability and discharge capability for the variation of ambient temperature, being capable of adjust automatically work frequency Rate, to adapt to the working condition of battery change it is achieved that frequency-change sampling, and then is ensureing the inspection of battery dump energy percentage On the premise of surveying result accuracy, take into account the electricity-saving characteristic of method;
3rd, it is generally applicable to all kinds, the charging equipment of various model, on the premise of not increasing hardware cost, with pure Pure software algorithm achieves the accurate detection function of charging equipment internal battery dump energy, is not limited by operating system System, can be widely used in the charging equipments such as smart mobile phone, panel computer, portable computer, electric automobile.
Brief description
Fig. 1 is voltage relationship figure between one piece of lithium ion battery dump energy percentage and pole plate;
Fig. 2 is the detection method flow chart of the present invention;
Fig. 3 is the flow chart of initialization step in the detection method of the present invention;
Fig. 4 is the flow chart of charged state electric power detection step in the detection method of the present invention;
Fig. 5 is the flow chart of discharge condition electric power detection step in the detection method of the present invention;
Fig. 6 is the flow chart arranging sample frequency step dynamic in the detection method of the present invention.
Specific embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings, but the content protected of the present invention be not limited to Lower described.
As shown in Fig. 2 a kind of battery residual capacity measurement method, comprise the following steps:
S1:Initialization, carries out Initialize installation to the parameter needing to use;
S2:Judging that battery is currently at charged state or discharge condition, if being in charged state, carrying out step S3, if being in discharge condition, carries out step S4;
S3:It is charged state electric power detection;
S4:Carry out discharge condition electric power detection;
S5:Dynamic setting sample frequency, return to step S2.
When battery residual capacity measurement starts execution, first the parameters needing in method to use are defined And initial assignment, next the loop structure of formal access method, obtains battery dump energy percentage in real time, and then realizes Accurate detection to charging equipment internal battery dump energy percentage, as shown in figure 3, the initialization package of described step S1 Include following sub-step:
S11:If battery current residual electricity percentage is q:
Q accounts for the percentage of battery maximum electricity for battery current residual electricity, as final detection variable;Q is one Individual percentage, between 0~100%, in its current battery of expression, dump energy accounts for the percentage of battery maximum electricity, " the dump energy percentage " generally showing in the intelligent mobile terminals such as smart mobile phone, panel computer.Due to battery Charge storage ability and discharge capability are all affected by factors such as the aging, variation of ambient temperature of battery, the therefore mesh of the present embodiment The value as detecting q, that is, q be this " battery residual capacity measurement method " final goal parameter, other all parameters Presence be ensure battery dump energy percentage q accuracy;
S12:If battery current residual electricity is Q, and initializes Q, make Q=0:
Q is a decimal, and it is used for representing current dump energy in battery, and its unit is current unit and time The product of unit, usually MAH (mA.H) or ampere-hour (A.H), the value of Q is initialized to 0, represents that battery is swashed just Electricity when living is 0;
S13:If battery maximum electricity is Qmax
QmaxIt is a decimal, it is used for representing the maximum electricity that battery may store, i.e. QmaxValue full for battery Electricity size during electricity condition, its unit is the product of current unit and chronomere, usually MAH (mA.H) or ampere-hour (A.H), QmaxValue be updated in charging complete each time and calibrate, and then achieve automatic adapt to battery aging and The impact to battery power storage ability and discharge capability for the variation of ambient temperature;
S14:If the charged state sampling period is Ti, the discharge condition sampling period is To
TiIt is a decimal, it is used for representing the size in sampling period during battery state of charge, according to frequency and cycle Relational expression f=1/T, work as TiValue get over hour, charged state sample frequency is higher, works as TiValue bigger when, charged state sample Frequency is lower;ToIt is a decimal, when it is used for representing battery discharging state, the size in sampling period, works as ToValue get over hour, Discharge condition sample frequency is higher, works as ToValue bigger when, discharge condition sample frequency is lower;
It should be noted that:Sample frequency is higher, and precision can be higher, and sample frequency is lower, and precision can be lower.But precision Higher, corresponding amount of calculation increase can bring a certain degree of power consumption to increase, and therefore needs balance in the specific implementation wherein Pros and cons, construct suitable sampling period function.In addition, for TiAnd ToWhen giving initial value, give according to actual needs One value that is less and not being 0, because can adjust automatically T in implementation procedure afterwardsiAnd ToValue.
S15:If the battery tension upper limit is Umax, battery tension lower limit is Umin
UmaxA decimal, it is used for representing upper voltage limit between accumulator plate, its unit be usually volt (V) or Millivolt (mV), when battery is in charged state, when between accumulator plate, voltage reaches Umax, that is, represent the battery charger of battery Complete.It should be noted that different types of battery, upper voltage limit often differs greatly.Therefore, need in actual applications To be U according to the type of batterymaxSetting is corresponding to be worth, the U of such as lithium ion batterymaxIt is worth for 4.2;
UminIt is a decimal, it is used for representing the lower voltage limit between accumulator plate, its unit is volt (V) or millivolt (mV), when between accumulator plate, open-circuit voltage is less than or equal to UminWhen, that is, represent that accumulator electric-quantity has exhausted.Should be noted It is, different types of battery, lower voltage limit often differs greatly.Therefore, need the class according to battery in actual applications Type, is UminSetting is corresponding to be worth, the U of such as lithium ion batteryminIt is worth for 3.
S16:If electrical power number sequence W, its item number upper limit is N:
Each item in W is a decimal, represents the charge or discharge performance number in some moment for the battery, for protecting The card stability of a system, is also the memory headroom saving charging equipment, charged state electric power detection and the inspection of discharge condition electricity simultaneously Survey share W ordered series of numbers, specific implementation method in " charged state electric power detection " and " discharge condition electric power detection " step specifically Bright.It should be noted that the item number of number sequence W is limited in below N, it is to prevent the method in the process of implementation ceaselessly Take charging equipment memory headroom, and for the speed of response to battery-operated state for the ensuring method.The value of N is got over Greatly, system operation is more steady, but method can be accordingly slack-off to the speed of response of battery-operated state, otherwise the value of N is less, Method can be faster to the speed of response of battery-operated state, but system run all right can accordingly weaken.Therefore, in reality In application, need to arrange a suitable value for N according to the actual needs;
S17:If battery charge/discharge status indicator is Flag:
Flag is a Boolean type variable, and its value is fictitious time, represents that battery is in charged state, its value is true When, represent that battery is in discharge condition.(representing false with 0 herein, represent true with 1)
After initial work completes, judge that battery is currently at charged state or discharge condition immediately, filling Respectively using different detection methods when electricity condition and discharge condition, the dump energy of battery is detected.Described storage There are three kinds of states, respectively charged state, discharge condition and idle state in theory in battery, by battery in the present embodiment Idle state be considered as the special discharge condition that a kind of discharge current in discharge condition is 0, therefore battery only charges and puts Electric two states, either-or.
The method being charged state electric power detection in step S3 described in the present embodiment is:It is in charging shape in battery During state, by the mapping relations of voltage between battery dump energy percentage and accumulator plate, obtain battery dump energy While percentage, by battery charging current is carried out with the integration with regard to the time, the dump energy of battery is united Meter.In battery charging complete, the maximum charge value of battery is updated, and then achieves the inspection of battery dump energy During survey, the cumulative errors of generation are calibrated automatically, and its idiographic flow is as shown in figure 4, include following sub-step:
S31:Judge whether Flag is equal to 1, if Flag==1, make Flag=0 and empty number sequence W;
S32:Obtain charging current value Ii
S33:Q is made to add up Ii*Ti, i.e. Q=Q+Ii*Ti
S34:Obtain charging voltage value Ui
S35:Make q=f (Ui), wherein f (Ui) for battery dump energy percentage with regard to accumulator plate between voltage letter Numerical value;
S36:Judge UiWhether it is equal to UmaxIf, Ui==UmaxThen make Qmax=Q;
S37:Wait charged state sampling period Ti
S38:By UiWith IiProduct be added in number sequence W.
The purpose of step S31 is:When battery enters charged state from discharge condition, would indicate that the change of battery condition Amount Flag is set to 0, represents that battery comes into charged state;When battery enters charged state from discharge condition, by number In row W, existing discharge power numerical value is all removed, and fills for storage in ensuing " charged state electric power detection " work Electric work rate score.
The purpose of step S32 and S33 is:Record charged state sampling period TiIn this period of time, battery is filled with How many electricity.
The purpose of step S34 and S35 is:Mapping by voltage between battery dump energy percentage and accumulator plate Relation, indirect gain battery dump energy percentage q, f (x) are battery dump energy percentage q with regard to accumulator plate Between voltage function, the parsing of suitable f (x) function can be constructed according to battery species and accumulator property in actual applications Formula, by charging voltage UiBring into and can get battery dump energy percentage q=f (Ui).
The purpose of step S36 is:When between accumulator plate, voltage reaches upper limit UmaxWhen, represent battery charging complete, this When the value of battery dump energy Q is given Qmax, that is, have updated QmaxValue, complete to Q simultaneouslymaxCalibration.
The purpose of step S37 is:Control charged state sample frequency it should be noted that detecting in guarantee the method The accuracy of the battery dump energy percentage q arriving, is waiting charged state sampling period TiWhen, need to consider " charging Make the time that logic judgment and numerical operation are consumed in the step for state electric power detection ", that is, adopt twice before and after needing to ensure Time interval between sample action is accurate Ti.
The purpose of step S38 is:Voltage U between the accumulator plate that get thisiWith charging current IiMultiplication is filled Electrical power, this charge power numerical value is added in W.Its reason will describe in detail in " dynamically arranging sample frequency " step. It should be noted that when the item number of number sequence W is less than N, only needing to new charge power when adding new charge power numerical value Numerical value is added to the end of number sequence W as last of current ordered series of numbers.But, when the item number of number sequence W has reached N When, need to delete the 1st of current number sequence W before adding new charge power numerical value, using new charge power numerical value as N item It is added in number sequence W, N is less than with the item number that this keeps number sequence W.
In step S4 described in the present embodiment, the method for discharge condition electric power detection is:It is in discharge condition in battery, When discharge current is less than certain threshold value, by the mapping relations of voltage between battery dump energy percentage and accumulator plate, Obtain battery dump energy percentage;When discharge current is more than or equal to this threshold value, by entering to battery discharging electric current Row, with regard to the integration of time, obtains battery dump energy percentage, the mutual calibration error of two methods.On the one hand pass through f X () obtains error produced by battery dump energy percentage, battery discharging electric current can be carried out with regard to time integral Process calibration.On the other hand, by carrying out to battery discharging electric current obtaining battery dump energy hundred with regard to time integral Divide the produced error of ratio, the process calibration of battery dump energy percentage can be obtained by f (x).Its idiographic flow is such as Shown in Fig. 5, including following sub-step:
S41:Judge whether Flag is equal to 0, if Flag==0, make Flag=1 and empty number sequence W;
S42:Obtain discharge current Io
S43:Judge IoWhether it is less than C*QmaxIf, Io<C*QmaxThen obtain discharge voltage value Uo;Otherwise make Q regressive Io*To, I.e. Q=Q-Io*To, then carry out the operation of step S46;
S44:Judge UoWhether it is equal to UminIf, Uo==Umin, then make Q=0 and q=0, then carry out the behaviour of step S47 Make;
S45:Judge q whether more than battery dump energy percentage with regard to accumulator plate between voltage functional value f (Uo), if
q>f(Uo), then make q=f (Uo) and Q=q*Qmax, then carry out the operation of step S47, otherwise directly carry out step S47
Operation;
S46:Judge Q/QmaxWhether it is less than q, if Q/Qmax<Q then makes q=Q/Qmax
S47:Wait discharge condition sampling period To
S48:By UoWith IoProduct be added in number sequence W.
The purpose of step S41 is:When battery enters discharge condition from charged state, would indicate that the change of battery condition Amount Flag is set to 1, represents that battery comes into discharge condition;When battery enters discharge condition from charged state, by number In row W, existing charge power numerical value is all removed, and puts for storage in ensuing " discharge condition electric power detection " work Electric work rate score.
The purpose of step S42 and S43 is:Judge the current discharge current I of batteryoWhether sufficiently small, because in electric power storage During tank discharge, discharge current IoBigger, accumulator plate degree of polarization is bigger, causes voltage between accumulator plate lower.Therefore, Only in battery discharging electric current IoBattery dump energy percentage and accumulator plate just can be passed through when sufficiently small Between voltage mapping relations, indirect gain battery dump energy percentage q.But, in battery discharging electric current IoWhen larger, Accumulator plate degree of polarization is big, and between accumulator plate, voltage is substantially low, now needs by battery discharging electric current Io Carry out the integration with regard to the time, to obtain battery in discharge cycle ToThis outputs how many electric energy for a period of time, and then calculates Go out the value of dump energy percentage q.Judging battery discharging electric current IoWhen whether sufficiently small, with battery maximum electricity Qmax It is multiplied by multiplying power C as critical value, the value of C can be chosen properly according to battery species and accumulator property in actual applications Value, that is, C represent " electric discharge C lead " of battery.When battery discharging electric current IoLess than this critical value, then it is judged as discharge current IoSufficiently small, when battery discharging electric current IoMore than or equal to this critical value, then it is judged as discharge current IoLarger.
The purpose of step S44 is:When between discovery accumulator plate, voltage reaches lower limit UminWhen, accumulator electric-quantity Q is set to 0, battery dump energy percentage q is set to 0 simultaneously, that is, have updated the value of Q and q, also complete the calibration of Q and q simultaneously.
The purpose of step S45 is:As discharge current IoWhen sufficiently small, battery dump energy percentage and electric power storage can be passed through The mapping relations of voltage between the pole plate of pond, indirect gain battery dump energy percentage q.F (x) is battery dump energy percentage Than q with regard to accumulator plate between voltage function, in actual applications can according to battery species and accumulator property construction close Suitable f (x) function analytic expression, by discharge voltage UoBring into and can get battery dump energy percentage q=f (Uo), with season Q=q*Qmax, the value of Q is calibrated.For avoiding the mistake of battery dump energy numerical value resilience, q is carried out assignment it Before, first determine whether whether q is more than f (Uo), if q is more than f (Uo), then make q=f (Uo), otherwise do not operate.
The purpose of step S46 is:As discharge current IoWhen larger, by discharge current IoCarry out the integration with regard to the time, Obtain in discharge condition sampling period ToThis following period of time battery outputs how many electricity, by deducting original electricity The electricity consuming, obtains the numerical value of new battery dump energy percentage q.For avoiding battery dump energy numerical value resilience Mistake, before carrying out assignment to q, first determines whether Q/QmaxWhether it is less than q, if Q/QmaxLess than q, then make q=Q/Qmax, otherwise Do not operate.
The purpose of step S47 is:Control discharge condition sample frequency.It should be noted that for ensureing to examine in the present embodiment The accuracy of the battery dump energy percentage q measuring, is waiting discharge condition sampling period ToWhen, need to consider " putting Make the time that logic judgment and numerical operation are consumed, that is, before and after needing to ensure twice in the step for electricity condition electric power detection " Time interval between sampling action is accurate To.
The purpose of step S48 is:Voltage U between the accumulator plate that get thisoWith discharge current IoMultiplication is put Electrical power, this discharge power numerical value is added in W.Its reason will describe in detail in " dynamically arranging sample frequency " step. It should be noted that when the item number of number sequence W is less than N, only needing to new discharge power when adding new discharge power numerical value Numerical value is added to the end of number sequence W as last of current ordered series of numbers.But, when the item number of number sequence W has reached N When, need to delete the 1st of current number sequence W before adding new discharge power numerical value, using new discharge power numerical value as N item It is added in number sequence W, N is less than with the item number that this keeps number sequence W.
As shown in fig. 6, dynamic setting sample frequency comprises the following steps in S5 described in the present embodiment:
S51:Calculate standard deviation α of number sequence W;
S52:Judge whether Flag is equal to 0, if Flag==0, carry out step S53, otherwise carry out step S54;
S53:Make TiEqual to the charged state sampling period with regard to number sequence W standard deviation α functional value Tin(α);
S54:Make ToEqual to the discharge condition sampling period with regard to number sequence W standard deviation α functional value Tout(α).
The purpose of step S51 is:By calculating standard deviation α of number sequence W, obtain the battery state of charge that represented with α or Under discharge condition, the degree of stability of its charge power or discharge power.The value of α is bigger, represents that stability is poorer, the value of α is less, Represent that stability is stronger.
The purpose of step S52 is:By judging to the value of battery condition flag Flag, obtain battery current It is in charged state or discharge condition, respectively charged state electric power detection and the setting of discharge condition electric power detection are adopted accordingly The sample cycle.
The purpose of step S53 is:Obtain the α of an expression charge power stability in step s 51, α value is bigger, Represent charge power stability poorer it should be correspondingly improved charged state sample frequency Ti, to adapt to unstable charging work( Rate.α value is less, represents that charge power stability is stronger, can correspondingly reduce charged state sample frequency Ti, reduce work Amount, reduces the power consumption of method.It should be noted that sample frequency is higher, precision is higher, and power consumption also has certain journey simultaneously Degree increases, and sample frequency is lower, and precision is lower, and power consumption simultaneously also has and to a certain degree reduces, and therefore in actual applications, needs Weigh the advantages and disadvantages, a suitable charged state sampling period T can be constructed as needediFunction T with regard to standard deviation α of number sequence Win (α).
The purpose of step S54 is:Obtain the α of an expression discharge power stability in step s 51, α value is bigger, Represent discharge power stability poorer it should be correspondingly improved discharge condition sample frequency To, to adapt to unstable electric discharge work( Rate.α value is less, represents that discharge power stability is stronger, can correspondingly reduce discharge condition sample frequency To, reduce work Amount, reduces the power consumption of method.It should be noted that sample frequency is higher, precision is higher, and power consumption also has certain journey simultaneously Degree increases, and the lower precision of sample frequency is lower, and power consumption simultaneously also has and to a certain degree reduces.Therefore in actual applications, need Weigh the advantages and disadvantages, a suitable discharge condition sampling period T can be constructed as neededoFunction with regard to standard deviation α of number sequence W Tout(α).
All of above step logically creates a loop structure, obtains battery dump energy percentage in real time, enters And realize the accurate detection to charging equipment internal battery dump energy percentage.
The realization of " tired error count difference is calibrated automatically " function of the present invention is so that the detection method of the present invention can adapt to store automatically The impact to battery power storage ability and discharge capability of cell degradation and variation of ambient temperature.The electric power detection process of the present invention is complete Entirely it is not required to manually to participate in, as long as after the once complete charge/discharge process of battery experience, you can autonomous learning is in method Need the parameters value using.
No matter battery is in charged state or discharge condition to the battery residual capacity measurement method of the present invention, and it is adopted The current working condition of sample frequency equal dynamic adaptable battery is it is achieved that dynamic frequency-conversion is sampled.Therefore this method is generally suitable for In all kinds, the battery of various models, that is, this " battery residual capacity measurement method " there is universality.Intelligent mobile is eventually End itself possesses analog acquisition ability and necessary operational capability, does not therefore need to increase for implementing this method any hard Part, on the premise of not increasing hardware cost, achieves charging equipment internal battery dump energy with software algorithm purely Accurate detection function.If in actual applications, needing to set in the charging not possessing analog acquisition ability and operational capability Standby middle enforcement this method, then must specially add and adopt for the analog quantity gathering voltage and charge/discharge current between accumulator plate Storage and the computing chip being suitable for.
Those of ordinary skill in the art will be appreciated that, embodiment described here is to aid in reader and understands this Bright principle is it should be understood that protection scope of the present invention is not limited to such special statement and embodiment.This area Those of ordinary skill can make various other each without departing from present invention essence according to these technology disclosed by the invention enlightenment Plant concrete deformation and combine, these deform and combine still within the scope of the present invention.

Claims (2)

1. a kind of battery residual capacity measurement method it is characterised in that:Comprise the following steps:
S1:Initialization, carries out Initialize installation to the parameter needing to use;Including following sub-step:
S11:If battery current residual electricity percentage is q, q accounts for battery maximum electricity for battery current residual electricity Percentage, as final detection variable;
S12:If battery current residual electricity is Q, and initializes Q, make Q=0;
S13:If battery maximum electricity is Qmax
S14:If the charged state sampling period is Ti, the discharge condition sampling period is To
S15:If the battery tension upper limit is Umax, battery tension lower limit is Umin
S16:If electrical power number sequence W, its item number upper limit is N;
S17:If battery charge/discharge status indicator is Flag, when Flag value is for 0, represent charged state, its value is to represent when 1 to put Electricity condition;
S2:Judging that battery is currently at charged state or discharge condition, if being in charged state, carrying out step S3, such as Fruit is in discharge condition and then carries out step S4;
S3:It is charged state electric power detection;Including following sub-step:
S31:Judge whether Flag is equal to 1, if Flag==1, make Flag=0 and empty number sequence W;
S32:Obtain charging current value Ii;I represents the number of times of charged state detection, and i is positive integer;
S33:Q is made to add up Ii*Ti, i.e. Q=Q+Ii*Ti
S34:Obtain charging voltage value Ui
S35:Make q=f (Ui), wherein f (Ui) for battery dump energy percentage with regard to accumulator plate between voltage function Value;
S36:Judge UiWhether it is equal to UmaxIf, Ui==UmaxThen make Qmax=Q;
S37:Wait charged state sampling period Ti
S38:By UiWith IiProduct be added in number sequence W;
S4:Carry out discharge condition electric power detection;Including following sub-step:
S41:Judge whether Flag is equal to 0, if Flag==0, make Flag=1 and empty number sequence W;
S42:Obtain discharge current Io;O represents the number of times of charged state detection, and o is positive integer;
S43:Judge IoWhether it is less than C*QmaxIf, Io<C*QmaxThen obtain discharge voltage value Uo;Otherwise make Q regressive Io*To, i.e. Q= Q-Io*To, then carry out the operation of step S46;
S44:Judge UoWhether it is equal to UminIf, Uo==Umin, then make Q=0 and q=0, then carry out the operation of step S47;
S45:Judge q whether more than battery dump energy percentage with regard to accumulator plate between voltage functional value f (Uo), if q >f(Uo), then make q=f (Uo) and Q=q*Qmax, then carry out the operation of step S47, otherwise directly carry out the operation of step S47;
S46:Judge Q/QmaxWhether it is less than q, if Q/Qmax<Q then makes q=Q/Qmax
S47:Wait discharge condition sampling period To
S48:By UoWith IoProduct be added in number sequence W;
S5:Dynamic setting sample frequency, return to step S2, dynamic setting sample frequency comprises the following steps:
S51:Calculate standard deviation α of number sequence W;
S52:Judge whether Flag is equal to 0, if Flag==0, carry out step S53, otherwise carry out step S54;
S53:Make TiEqual to the charged state sampling period with regard to number sequence W standard deviation α functional value Tin(α);
S54:Make ToEqual to the discharge condition sampling period with regard to number sequence W standard deviation α functional value Tout(α).
2. battery residual capacity measurement method according to claim 1 it is characterised in that:Described battery is in theory Three kinds of states of upper presence, respectively charged state, discharge condition and idle state, the idle state of battery is considered as the shape that discharges In state, a kind of discharge current is 0 special discharge condition, and therefore battery only has charging and discharging two states, either-or.
CN201410539126.6A 2014-10-13 2014-10-13 Storage battery residual electric quantity detection method Expired - Fee Related CN104280686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410539126.6A CN104280686B (en) 2014-10-13 2014-10-13 Storage battery residual electric quantity detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410539126.6A CN104280686B (en) 2014-10-13 2014-10-13 Storage battery residual electric quantity detection method

Publications (2)

Publication Number Publication Date
CN104280686A CN104280686A (en) 2015-01-14
CN104280686B true CN104280686B (en) 2017-02-15

Family

ID=52255759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410539126.6A Expired - Fee Related CN104280686B (en) 2014-10-13 2014-10-13 Storage battery residual electric quantity detection method

Country Status (1)

Country Link
CN (1) CN104280686B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10093197B2 (en) * 2015-12-22 2018-10-09 Ford Global Technologies, Llc Key off energy management system
CN105866691B (en) * 2016-03-29 2018-10-09 盐城工学院 A kind of cadmium-nickel accumulator detection method of quantity of electricity and device
CN106125009B (en) * 2016-08-31 2019-07-12 四川苏格通讯技术有限公司 Battery performance detection method and battery performance detection device
CN109596989B (en) * 2018-12-29 2021-01-01 出门问问信息科技有限公司 Method and device for displaying electric quantity of electronic equipment and electronic equipment
CN109633447B (en) * 2019-01-09 2022-02-11 福建联迪商用设备有限公司 Remaining power display method and computer-readable storage medium
CN109884540B (en) * 2019-03-19 2020-12-29 浙江绿源电动车有限公司 Method for measuring electric quantity of lead-acid battery
CN110245164A (en) * 2019-05-09 2019-09-17 阿里巴巴集团控股有限公司 A kind of data backflow detection method, device and equipment
CN110687466A (en) * 2019-10-18 2020-01-14 苏州浪潮智能科技有限公司 Electric quantity verification method and device
CN113711069A (en) * 2020-01-15 2021-11-26 深圳市大疆创新科技有限公司 Battery abnormity detection method and system, battery and movable platform
CN111781450A (en) * 2020-06-30 2020-10-16 歌尔科技有限公司 Electric parameter sampling method, sampling device, earphone and readable storage medium
CN112014750A (en) * 2020-09-01 2020-12-01 珠海艾派克微电子有限公司 Battery electric quantity detection method, device, chip and storage medium
CN113253126B (en) * 2021-04-29 2022-04-26 南方电网调峰调频发电有限公司 Method for selecting voltage and current sampling frequency and filtering time window of battery management system
CN114636949B (en) * 2022-03-03 2022-10-25 杭州华塑科技股份有限公司 Method and device for judging charge and discharge states of battery
CN114816959B (en) * 2022-05-07 2023-01-13 深圳宇凡微电子有限公司 Method and device for displaying battery power of LCD screen

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955752A (en) * 2005-10-24 2007-05-02 中兴通讯股份有限公司 Method for monitoring charging process of battery of mobile terminal
CN101206246A (en) * 2006-12-22 2008-06-25 明基电通股份有限公司 Method for preestimating battery residual capacity
CN102104259A (en) * 2009-12-16 2011-06-22 比亚迪股份有限公司 Electric quantity detecting and controlling method and device for rechargeable battery
CN102147450A (en) * 2010-12-22 2011-08-10 航天恒星科技有限公司 Monitoring system for electric quantity of lithium battery
CN102655549A (en) * 2012-01-31 2012-09-05 吕林波 Method for estimating remaining time and capacity of battery
CN103675701A (en) * 2013-11-29 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Battery state-of-charge correction method and device
CN103675706A (en) * 2013-12-13 2014-03-26 桂林电子科技大学 Power battery electric charge quantity estimation method
CN103675683A (en) * 2012-09-02 2014-03-26 东莞市振华新能源科技有限公司 Lithium battery state of charge (SOC) estimation method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955752A (en) * 2005-10-24 2007-05-02 中兴通讯股份有限公司 Method for monitoring charging process of battery of mobile terminal
CN101206246A (en) * 2006-12-22 2008-06-25 明基电通股份有限公司 Method for preestimating battery residual capacity
CN102104259A (en) * 2009-12-16 2011-06-22 比亚迪股份有限公司 Electric quantity detecting and controlling method and device for rechargeable battery
CN102147450A (en) * 2010-12-22 2011-08-10 航天恒星科技有限公司 Monitoring system for electric quantity of lithium battery
CN102655549A (en) * 2012-01-31 2012-09-05 吕林波 Method for estimating remaining time and capacity of battery
CN103675683A (en) * 2012-09-02 2014-03-26 东莞市振华新能源科技有限公司 Lithium battery state of charge (SOC) estimation method
CN103675701A (en) * 2013-11-29 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Battery state-of-charge correction method and device
CN103675706A (en) * 2013-12-13 2014-03-26 桂林电子科技大学 Power battery electric charge quantity estimation method

Also Published As

Publication number Publication date
CN104280686A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN104280686B (en) Storage battery residual electric quantity detection method
CN104360285B (en) A kind of battery capacity modification method based on improved ampere-hour integration method
CN102262216B (en) Electric quantity detection method for chargeable battery and apparatus thereof
CN101430366B (en) Battery charge state detection method
CN103606716B (en) A kind of charging method and device
CN102944847B (en) Battery electricity detection method and system
CN201229395Y (en) Lithium ion battery set residual electric energy computation device
CN102739845B (en) Electronic device capable of detecting battery power and battery power detection method
CN103364735A (en) Method and device for accurately displaying battery electric quantity of portable power source
CN103792490B (en) The method measured and calculate system battery electricity
CN103901347A (en) Method for display of battery level and terminal
CN101303397A (en) Method and apparatus for computing lithium ion batteries residual electric energy
CN104282960B (en) Battery module
CN2906637Y (en) Battery power tester for electric bicycle
CN102854471A (en) Method and device for metering electric quantity of battery
CN103018680A (en) Metering method and metering device of battery level and battery supply set
CN104535933A (en) Battery remaining capacity measuring method and system
CN105006871B (en) A kind of method and device for being used to simulate actual battery charging process
CN105203968B (en) A kind of on-line measurement system of lead-acid accumulator dump energy
CN106842042A (en) It is a kind of that method, system and the electronic equipment calibrated are shown to electricity
CN101034137A (en) Measurement of battery ending discharge voltage and correcting method
CN109581236A (en) Detection method, device and the computer readable storage medium of capacity of lithium ion battery
CN107169170A (en) A kind of Forecasting Methodology of battery remaining power
CN101144837A (en) Voltage detection circuit and control method
CN103942133B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170215

Termination date: 20181013

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