Summary of the invention
In order to overcome the above problems, the method for a kind of remaining battery time and volume calculation is provided.
The invention discloses the evaluation method of a kind of remaining battery time, comprising:
S1. read battery with reference to curve, described is to generate according to the nominal capacity of battery with reference to curve initial;
S2. obtain current battery parameter, said parameter comprises: current voltage, current electric current, discharge time;
S3. judge that battery status is floating charge, discharge or all fills, if floating charge gets into step S4; If discharge gets into step S5; If all fill, get into step S6;
T remaining time when S4. calculating floating charge:
Remaining time T=Tz,
Wherein, Tz for the time of having a few with reference to curve add up with;
Ta remaining time when S5. calculating discharge is:
When voltage changes:
Ta=Ix×Tx×Ty,
Wherein, Ix be with described with reference to curve average current/current electric current as load factor; Tx be with current discharge duration/with reference to the discharge duration of curve from ceiling voltage to current electrical voltage point as time coefficient, Ty be calculate described with reference to curve current electrical voltage point with the time of being had a few of lower part add up with;
When voltage does not change:
Tn=Tn-1-ΔT*K,
Wherein, Δ T is the current voltage duration, and K is a range of decrease coefficient; N is each acquisition time point, is positive integer;
S51 judges whether to stop discharge, if not, returns step S2, if get into step S52;
S52. upgrade reference curve corresponding voltage section with current effective discharge curve section;
S6. calculate the remaining time when all filling:
If the remaining battery time, Tb remaining time that then calculates when all filling was less than the cumulative time with reference to curve that calculates:
T
k=T
k-1+I*ΔT/Iz,
Wherein: I is current electric current, and the current current charges cumulative time of Δ T, Iz is the average current with reference to curve, and k is each acquisition time point, is positive integer;
If the remaining battery time is not less than the cumulative time with reference to curve that calculates, T remaining time when then calculating discharge
KBe the cumulative time that calculates with reference to curve.
Need to prove that the next round circulation of counting cell of the present invention remaining time begins from step S2 again.
In the method for remaining battery time estimation of the present invention, between described step S2 and S3, also comprise step S21, according to described current voltage, current electric current and duration generate current discharge curve.
In the method for remaining battery time estimation of the present invention, described step S21 comprises and carries out denoising, finds out the effective voltage curved section.
In the method for remaining battery time estimation of the present invention, also comprise step S51 behind the described step S5, when being judged as unsaturated discharge, need not upgrade reference curve by current discharge curve.
The invention discloses a kind of method of battery remaining power estimation, be used for the residual capacity of estimating battery, comprising:
A1. read battery with reference to curve, described is to generate according to the nominal capacity of battery with reference to curve;
A2. obtain current battery parameter, said parameter comprises: current voltage, current electric current, discharge time;
A3. judge that battery status is floating charge, discharge or all fills; If floating charge gets into steps A 4; If discharge gets into steps A 5; If all fill, get into steps A 6;
Residual capacity M1 is when A4. calculating floating charge:
M1=∑In×Tn,
Wherein, In is described with reference to recorded current in the curve; Tn is described with reference to the time of writing down in the curve; N is each acquisition time point, is positive integer.
Residual capacity M2 is when A5. calculating discharge:
If voltage changes, then calculate the capacity of the following curved portion of current electrical voltage point position m in the reference curve:
M2=∑Im×Tm,
Wherein, Im is described with reference to the following curved section recorded current of current electrical voltage point in the curve; Tm is the described time with reference to the following curved section record of current electrical voltage point in the curve; M is each acquisition time point, is positive integer.
According to the difference amplitude of current residual capacity M and M2, adjustment residual capacity range of decrease COEFFICIENT K c
If voltage does not change, then: M2=M-I * Δ T*Kc,
Wherein, M is the current residual capacity, and I is current electric current; The time that the current voltage of Δ T continues; Kc is a capacity range of decrease coefficient;
A51 judges whether discharge stops, and if not, returns steps A 2, if get into steps A 52;
A52. upgrade reference curve corresponding voltage section with current effective discharge curve section;
Residual capacity M3 was when A6. calculating was all filled:
As if the electric current of all electrical voltage points that are no more than described reference curve and the integration of time, then:
M3=K+∑Is×Ts,
Wherein, K is the residual capacity of discharge last moment, and Is is current charging current, and Ts is the current charging interval;
As if the electric current of all electrical voltage points that surpass the reference curve of stating and the integration of time, then M3 is said total capacity with reference to curve.
Need to prove that the present invention calculates the circulation of next round battery capacity again from steps A 2 beginnings.
In the method for battery remaining power of the present invention estimation, residual capacity M2 also comprises the denoising step during described discharge, specifically:
Estimate the capability value that draw less than next electrical voltage point by algorithm when residual capacity occurring, then adjust the range of decrease of current residual capacity, negligent decrease speed;
Be far longer than next electrical voltage point and estimate the capability value that draws when residual capacity occurring, then adjust the range of decrease of current residual capacity, make the quickening decrease speed by algorithm.
Confirm through practice, utilize the experimental result of this method to be:
Remaining time:
200-199-198-197--...172-170-169-168--...151-150-149--148-150--149-148-147--...102--101-100-99--...82-81-80-79-78--... 3-2-1--0 (minute)
Residual capacity:
120-119-117--116--...--102.3-101.9-101.5-101.1-100.8-100.6-100.3-99.7-99.2-98.6-...92.2-91.5-90.4-89.6--...-81-80-78-77--76-75-74--...--61--60--59--...--51--50-49......3-2-1-0(AH)
A kind of remaining battery time of embodiment of the present invention and the method and the device of volume calculation have following beneficial technical effects:
Estimate that result and residual capacity result link up remaining time, precision is higher, when guaranteeing availability, has increased user's experience greatly.
Embodiment
By specifying technology contents of the present invention, structural feature, realized purpose and effect, give explanation below in conjunction with execution mode and conjunction with figs. are detailed.
See also the method for Fig. 1, a kind of remaining battery time estimation, comprising:
S1. read battery with reference to curve
If do not have, according to the nominal capacity generation initial cells reference curve of battery with reference to curve;
S2. obtain current battery parameter, said parameter comprises: current voltage, current electric current, discharge time
Battery is a general designation among this paper, can refer to a batteries, a Battery pack or batteries in parallel connection group.
Battery discharge status: when battery connects power consumption equipment, do not have other power supplys to the situation of power consumption equipment power supply under (such as mains failure), battery will discharge to power devices, make the normal continuous running of equipment, claim that battery status is a discharge condition this moment.
Battery current: use the measuring instrument (like the refined Hall element YDG-HSD-4-30A that reaches) of electric current, the powered battery circuit is measured, can effectively collect the current value of battery pack.If under the battery discharge status, the current value of collection is for just, and then battery all fills under the state, and the current value of collection is for negative, otherwise opposite.When battery is under the floating charge state, the current value of collection then can be paced up and down between ± 3A (according to certainty of measurement or this parameter of battery capacity adjustment).
The discharging current characteristics: the electric current under the battery discharge status, be called discharging current, discharging current is different and different according to the power of power consumption equipment; Generally speaking, the power of power consumption equipment is constant, so battery is in the single step of releasing electric process; Electric current generally also is constant, and amplitude of variation is very little.
The discharge voltage characteristics: the voltage under the battery discharge status, be called discharge voltage, discharge voltage is along with the consumption meeting of battery electric quantity slowly descends.When voltage drops to a certain degree (like 40V), will drive not equipment normal operation (possible damage equipment).Battery discharge is dark excessively, and charging is difficult to return to the preceding level of discharge, with the useful life of reducing battery greatly.
The battery discharge curve: the battery discharge curve changes precision with total voltage and writes down; When changing precision, total voltage surpasses 0.1V (can adjust); Write down current voltage, electric current, and the time interval of this electrical voltage point and last electrical voltage point (being the time that last electrical voltage point continues).
With reference to curve: the foundation of the remaining time of battery and residual capacity estimation is that the curve with the history discharge is reference, and we cry its battery with reference to curve, and abbreviation is with reference to curve.
Have self-learning function with reference to curve, after each discharge was accomplished, program at first analyzed the effective voltage curved section, and replacement is with reference to voltage section corresponding in the curve, after the renewal with reference to curve as the basis for forecasting of battery discharge next time.
S21, according to described current voltage, electric current, the time generates current discharge curve;
The unsaturated discharge of battery: if battery just discharges, get into and all fill state, under the state of battery underfill, discharge again, claim that discharge this time is unsaturated discharge.
Unsaturated discharge is very big to the estimation influence of battery, is difficult to this moment do accurate prediction with reference to what discharged under the saturation condition last time with reference to curve.After discharge is accomplished,, also will have influence on the estimation of discharge next time if be updated to the curve of this unsaturated discharge with reference to curve.Therefore in algorithm, add:
(1) time conversion factor processes through voltage in this discharge process, duration and with reference to the voltage in the curve, duration, draws a time conversion factor, makes estimation be tending towards accurate.
(2) judge whether unsaturated discharge of battery, do different disposal,, otherwise be updated to reference in the curve if unsaturated discharge then is not updated to reference in the curve.
S3. judge that battery status is floating charge, discharge or all fills, if floating charge gets into step S4, if discharge gets into step S5; If all fill, get into step S6;
Battery all fills state: in the battery discharge procedure; As the higher power supply of other voltages to power consumption equipment power supply (such as the civil power incoming call); Battery will no longer discharge, and the higher power supply of voltage can charge to battery, this moment battery pack electric current and the current opposite in direction under the battery discharge status; Current value is bigger, claims that this state is a battery charging state.
The battery float state: battery all fills under the state, and charging current can increase very long reducing with the capacity of battery, and after battery was full of, the electric current of battery can be paced up and down about 0A, with very little current discharge or charging, claimed that this state is the floating charge state of battery.
T remaining time when S4. calculating floating charge:
Remaining time T=Tz,
Wherein, Tz for the time of having a few with reference to curve add up with;
Ta remaining time when S5. calculating discharge is:
When voltage changes:
Ta=Ix×Tx×Ty,
Wherein, Ix be with described with reference to curve average current/current electric current as load factor; Tx be with current discharge duration/with reference to the discharge duration of curve from ceiling voltage to current electrical voltage point as time coefficient, Ty be calculate described with reference to curve current electrical voltage point with the time of being had a few of lower part add up with;
When voltage does not change:
Tn=Tn-1-ΔT*K,
Wherein, Δ T is the current voltage duration, and K is a range of decrease coefficient; N is each acquisition time point, is positive integer;
S51 judges whether to stop discharge
If do not stop, getting into step S2
If stop discharge, analyze current effective discharge curve section, get into step S52;
S52. upgrade reference curve corresponding voltage section with current effective discharge curve section
See also Fig. 2; The G point voltage of battery discharge curve (crest in the discharge curve): program circulates at interval by certain hour and reads the cell voltage data; The difference of voltage and this voltage that reads more last time, if difference voltage becomes positive number by negative, then last time voltage is the G point voltage.Compare with the G point voltage of battery again after finding this G point voltage, if this discharge voltage greater than the G point voltage with reference to curve, then is the G point voltage of this discharge with the G point voltage with reference to curve with reference to curve.
If read voltage by precision 3 times and the G point voltage do not occur continuously, and be continuous downward trend, then picking and placeing first point voltage of electric curve is the G point voltage;
If read the G point voltage of voltage>sought, then upgrading this voltage is the G point voltage.
The D point voltage of battery discharge curve (trough in the discharge curve): program circulates at interval by certain hour and reads the cell voltage data; The difference of voltage and this voltage that reads more last time; After finding the G point voltage; If last time voltage became negative with this voltage difference by positive number, then last time voltage is the D point voltage.Compare with the D point voltage of battery again after finding this D point voltage with reference to curve:
If current voltage is less than the D point discharge voltage with reference to curve, then the D point voltage with current discharge curve is the D point voltage of this discharge.
If read the D point voltage of voltage<sought, then upgrading this voltage is the D point voltage.
Curved section between G point voltage and the D point voltage is effective discharge curve section, and G point and D point voltage are the foundations of judging effective discharge curve section, after discharge is accomplished, upgrades curved section corresponding in the reference curve with effective discharge curve section.
S6. calculate the remaining time when all filling:
If the remaining battery time, Tb remaining time that then calculates when all filling was less than the cumulative time with reference to curve that calculates:
T
k=T
K-1+I*ΔT/Iz,
Wherein: I is current electric current, and the current current charges cumulative time of Δ T, Iz is the average current with reference to curve, and k is each acquisition time point, is positive integer;
If the remaining battery time is not less than the cumulative time with reference to curve that calculates, TK remaining time when then calculating discharge is the cumulative time with reference to curve that calculates.
See also Fig. 3, the method for a kind of battery remaining power estimation is used for the residual capacity of estimating battery, comprising:
A1. read battery with reference to curve
If do not have, according to the nominal capacity generation initial cells reference curve of battery with reference to curve;
A2. obtain current battery parameter, said parameter comprises: current voltage, current electric current, discharge time
A3. judge that battery status is floating charge, discharge or all fills; If floating charge gets into steps A 4, if discharge gets into steps A 5,, get into steps A 6 if all fill,
Residual capacity M1 is when A4. calculating floating charge:
M1=∑In×Tn,
Wherein, In is described with reference to recorded current in the curve; Tn is described with reference to the time of writing down in the curve; N is each acquisition time point, is positive integer.
Residual capacity M2 is when A5. calculating discharge:
If voltage changes, then calculate the capacity of the following curved portion of current electrical voltage point position m in the reference curve:
M2=∑Im×Tm;
Wherein, Im is described with reference to the following curved section recorded current of current electrical voltage point in the curve; Tm is the described time with reference to the following curved section record of current electrical voltage point in the curve; M is each acquisition time point, is positive integer.
According to the difference amplitude of current residual capacity M and M2, adjustment residual capacity range of decrease COEFFICIENT K c;
If voltage does not change, then: M2=M-I * Δ T*Kc,
Wherein, M is the current residual capacity, and I is current electric current; The time that the current voltage of Δ T continues; Kc is a capacity range of decrease coefficient;
A51 judges whether to stop discharge, if not, returns steps A 2, if get into steps A 52;
A52. upgrade reference curve corresponding voltage section with current effective discharge curve section,
Residual capacity M3 was when A6. calculating was all filled:
As if the electric current of all electrical voltage points that are no more than described reference curve and the integration of time, then:
M3=K+∑Is×Ts,
Wherein, K is the residual capacity of discharge last moment, and Is is current charging current, and Ts is the current charging interval;
As if the electric current of all electrical voltage points that surpass the reference curve of stating and the integration of time, then M3 is described total capacity with reference to curve.
In the method for battery remaining power of the present invention estimation, residual capacity M2 also comprises the denoising step during described discharge, specifically:
Estimate the capability value that draw less than next electrical voltage point by algorithm when residual capacity occurring, then adjust the range of decrease of current residual capacity, negligent decrease speed;
Be far longer than next electrical voltage point and estimate the capability value that draws when residual capacity occurring, then adjust the range of decrease of current residual capacity, make the quickening decrease speed by algorithm.
This algorithm is suitable for (but being not limited to) various lead acid accumulators commonly used: the estimation of a batteries (free voltage), the remaining time of a Battery pack and volume calculation (joint number arbitrarily).
This algorithm has been done a large amount of evolutions and improvement on the basis of original other algorithms; Continuous test and the improvement of a year and a half have been passed through; Have essence different with original algorithm, the various burrs that the battery predictive the possibility of result occurs have been done a large amount of denoisings, these all belong to my creativity and innovation.
This algorithm is verified in the battery applications of the communications field: use 4 joint 12V battery pack, 24 joint 2.2V battery pack, single-unit 12V battery, single-unit 2.2V battery, big capacity batteries in parallel connection group; To battery discharge, all fill with floating charge state and carried out in a large number test repeatedly; And under the situation that load in the discharge process is repeatedly changed; Carried out test repeatedly in a large number, and can effectively address the above problem, and the result of control estimation is in definite accuracy; When guaranteeing availability, strengthen user experience greatly.
This algorithm also can be applied in other battery applications occasions, as: 40 joint 12V batteries, 40 joint 6V batteries, the remaining time of situation such as 49 joint 2V batteries, the parallel connection of many Battery packs and the prediction of residual capacity.
When system starts for the first time, can according to the battery nominal capacity automatically generate an experience with reference to curve.
After battery discharged at every turn and accomplishes, this effective record that discharges of process analysis upgraded with reference to curve automatically, uses the corresponding voltage section curved portion of this discharge curve renewal with reference to curve, and we claim that this is the self-learning function with reference to curve.
Renewal with reference to curve has following constraint:
1, the voltage of current discharge efficiency curve record is counted>10 (can revise)
2, the non-unsaturated discharge of battery.
Be a real discharge curve record (curve A) of program record below, if discharge for the first time, then it be discharge next time with reference to curve:
The calculating of remaining time
1) remaining time during floating charge
According to the reference curve data, to adding up as the remaining time of battery discharge all writing times in reference curve.
Remaining time when 2) discharging
1, remaining time in when discharge according to current electrical voltage point at relative position with reference to curved portion, with reference to curve average current/current electric current as load factor Ix., calculate with reference to curve and add up and T with the time of being had a few of lower part as time coefficient Tx with current discharge duration/at current electrical voltage point with reference to the discharge duration of curve from ceiling voltage to current electrical voltage point,
Current residual time=Ix*Tx*T then;
For example: the curve A above supposing is with reference to curve; The average current with reference to curve that calculates is 25.20A, during as if discharge, and current voltage 49.100V; Current electric current 40A; The current duration that discharged is T1, calculate with reference to the duration that is put into each electrical voltage point of 49.100V from 52.500V in the curve add up with, supposing to calculate duration is T2.
Then the current residual time (minute)=(25.2/40) * (T1/T2) * (268.0+265.0+260.0)/60,
During discharge, when certain electrical voltage point continue constant, the time * K that current residual time=current residual time-current electrical voltage point continues;
The time value that draws by algorithm less than next electrical voltage point when remaining time will dynamically be adjusted (reducing) time range of decrease coefficient, avoid the significantly saltus step of remaining time of next electrical voltage point.
The denoising of remaining time:
If the appearance of current residual time is then adjusted the range of decrease speed of current residual time less than the time value that next electrical voltage point draws by algorithm, reach with decline in per 5 minutes 1 minute like the adjustment effect; According to actual test shows, 2 electrical voltage point estimation duration differ with actual not too large, after handling like this; Decline that the residual time curve that draws can be very level and smooth or the fluctuation of very little come-up, otherwise can occur, after certain electrical voltage point decline remaining time is a lot; Load is constant; During to next electrical voltage point, increase a lot remaining time suddenly, do not meet convention.
After handling like this, understand saltus step remaining time at most and increased 1,2 minute, level and smooth then decline estimates that the result is more accurate remaining time, strengthens user experience simultaneously greatly.
Remaining time when 3) all filling
Be basic point with the remaining time of discharge last moment remaining time when all filling, according to current charging interval and current integration/add up with reference to the average current of curve.
Constraint: can not surpass the time cusum with reference to all electrical voltage points in the curve remaining time during charging.
The calculating of residual capacity
1) residual capacity during floating charge
According to the reference curve data,, be the residual capacity of battery to the add up product of electric current and time of records all in the reference curve.
Residual capacity when 2) discharging
During discharge the residual capacity initial value be according to current discharge effective voltage point at relative position with reference to curved portion, calculate with reference to curve at the electric current of being had a few and the time product accumulation of current electrical voltage point with the lower part.
For example: the curve A above supposing is with reference to curve; If during discharge; Current effective voltage point 49.100V calculates then that curved portion recorded current and the integration of time are current residual volume calculation value between the minimum voltage point 48.7.100V with reference to being put into from 49.000V in the curve.Then:
Current residual capacity (AH)=(25.257*265.0+25.241*264.0+25.205*260.0)/3600;
If voltage changes, then calculate the capacity of the following curved portion of current electrical voltage point position m in the reference curve:
Mz=∑Im×Tm,
Wherein, Im is described with reference to the following curved section recorded current of current electrical voltage point in the curve; Tm is the described time with reference to the following curved section record of current electrical voltage point in the curve; M is each acquisition time point, is positive integer.
According to the difference amplitude of current residual capacity M and Mz, adjustment residual capacity range of decrease COEFFICIENT K c
Continue when constant current residual capacity=current residual capacity-(the current electric current of time * that current electrical voltage point continues) * Kc when certain electrical voltage point during discharge;
The denoising of residual capacity:
Estimate the capability value that draw less than next electrical voltage point by algorithm when residual capacity occurring, then dynamically adjust the range of decrease of (reducing) current residual capacity, negligent decrease speed.
Be far longer than next electrical voltage point and estimate the capability value that draws by algorithm when residual capacity occurring, then the dynamic range of decrease of adjustment (increase) current residual capacity makes the quickening decrease speed.
Residual capacity when 3) charging
Residual capacity is a basic point with the residual capacity of discharge last moment during charging, adds up according to current charging interval and current integration.
Constraint: residual capacity can not surpass with reference to the electric current of all electrical voltage points in the curve and the integration of time in the charging process, otherwise is the current residual capacity with the total capacity with reference to curve.
1, discharge condition is judged:
Battery is defaulted as floating charge state, and program cycle reads voltage, current value, judges according to the value of electric current whether battery discharges, if electric current<-3A, then be judged to be discharge condition, if electric current>3A, then for all would filling state.If electric current, judges according to the state of last primary cell then that if be discharge last time, then this is a discharge condition greater than-3A and less than 3A.If last time, then this was a floating charge state in order all to fill.Program gets into corresponding estimation process module according to the state of battery.
2, the calculating of remaining battery time under the floating charge state
According to the reference curve data, to adding up as predicted value remaining time of next battery discharge all writing times in reference curve.
T=(∑ΔT)/60)
For example: below with reference to curve data, then T=remaining time (11+12+10+8)/60 (minute)
[discharge time]
Time1=2008-10-21?15∶10∶39
[battery reference curve record]
2, the calculating of battery remaining power under the floating charge state
According to the reference curve data, to records all in the reference curve, the product of add up electric current and time.
C=(∑(I*ΔT))/3600;
For example: below with reference to curve data, current voltage 52.0, then residual capacity=(10.1*12+10.2*10+9.9*8)/3600 (AH)
[discharge time]
Time1=2008-10-21?15∶10∶39
[battery reference curve record]
A kind of remaining battery time of embodiment of the present invention and the method and the device of volume calculation have following beneficial technical effects:
Estimate that result and residual capacity result link up remaining time, precision is higher, when guaranteeing availability, has increased user's experience greatly.
Combine accompanying drawing that embodiments of the invention are described above; But the present invention is not limited to above-mentioned embodiment, and above-mentioned embodiment only is schematically, rather than restrictive; Those of ordinary skill in the art is under enlightenment of the present invention; Not breaking away under the scope situation that aim of the present invention and claim protect, also can make a lot of forms, these all belong to the row of protection scope of the present invention.