CN103176132B - The evaluation method of battery electric quantity and terminal device - Google Patents
The evaluation method of battery electric quantity and terminal device Download PDFInfo
- Publication number
- CN103176132B CN103176132B CN201110436267.1A CN201110436267A CN103176132B CN 103176132 B CN103176132 B CN 103176132B CN 201110436267 A CN201110436267 A CN 201110436267A CN 103176132 B CN103176132 B CN 103176132B
- Authority
- CN
- China
- Prior art keywords
- voltage
- cell voltage
- electric quantity
- mapping table
- battery electric
- 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
Landscapes
- Secondary Cells (AREA)
Abstract
The present invention relates to terminal device, disclose a kind of evaluation method and terminal device of battery electric quantity.In the present invention, by before the mapping table cell voltage sampled being substituted into cell voltage and the battery electric quantity obtained according to battery discharge curve figure, first voltage compensation is carried out to the cell voltage sampled, cell voltage after described voltage compensation is substituted into the mapping table of described cell voltage and battery electric quantity, obtain corresponding battery electric quantity and show.Because to power consumption, compared with heavy load, because discharge capacity is comparatively large, voltage drop that is that cause compensates, the voltage after making it compensate can match with the voltage of standard discharge curve, avoids the larger problem of electricity display error in detecting voltage method.Thus system works and stand-by time can be extended.And, based on be still detecting voltage ratio juris, without the need to carrying out current sense, thus the program can be realized when not increasing hardware cost, i.e. low in hardware cost.
Description
Technical field
The present invention relates to terminal device, the battery electric quantity estimation technique particularly in terminal device.
Background technology
At present for battery powered system, maximum challenge is the working time of battery.Usually, electronic system design personnel are primarily focused on and improve DC (direct current)/DC power supply conversion efficiency, reduction system power dissipation and expand battery capacity, extend the working time of battery with this, and often ignore the accuracy problem with power supply conversion efficiency and battery capacity monitoring cell electricity quantity meter of equal importance.If the error range of monitoring cell electricity quantity meter is ± 10%, so just have be equivalent to 10% battery capacity or lost working time.Accurate electric quantity metering can make handheld device make full use of its battery, extends System production time and stand-by time, improves customer satisfaction.
In some mobile phone, require that battery electric quantity display precision is 1%, and several battery compartment numbers of difference only display in the past, this has higher requirement to battery management undoubtedly.Have special chip accurately to show battery electric quantity on the market at present, but consider the factors such as cost, most of mobile phone still uses multiple power source managing chip (PMU) to manage battery, calculates battery electric quantity by detecting voltage method.
The available power of battery has funtcional relationship to its velocity of discharge (relevant with load), working temperature, degree of aging and self-discharge characteristics.In addition, traditional monitoring cell electricity quantity meter also requires to be fully charged battery and completely to discharge to upgrade battery capacity, but this seldom occurs in real world applications, thus causes larger measuring error.Therefore, within the battery operation cycle, accurately predicting battery remaining power and working time is difficult to.
Solution main in the prior art comprises:
(1) detecting voltage method.The theory that detecting voltage method is followed is: in discharge process, and cell voltage can reduce gradually with the passage of electricity.Discharge curve as shown in Figure 1.
(2) current sense method.Perform the coulombmeter algorithm based on current integration by special circuit, thus accurately calculate discharge electricity amount.
(3) electric current and voltage combined techniques.Calculate the full power consumption of battery by voltage detection method under open circuit situation, current method is used for calculating discharge electricity amount, and these two kinds of methods combining get up to solve the electricity display problem under the problem and different power consumption current conditions that battery self-characteristic introduces.
Consider the factor such as cost and pcb board (printed-wiring board (PWB)) area to be detected, scheme (2), (3) are applied less in field of mobile phones, and the main detecting voltage method that uses carrys out estimating battery electricity.And current detecting voltage method major defect to be electricity display error comparatively large, the impact especially by power consumption electric current is comparatively serious.
Summary of the invention
The object of the present invention is to provide a kind of evaluation method and terminal device of battery electric quantity, make terminal device when not increasing hardware cost, higher battery electric quantity display precision can be had, avoid under heavy load working condition, easily allow system enter the situation of low electricity or directly shutdown, thus system works and stand-by time can be extended.
For solving the problems of the technologies described above, embodiments of the present invention provide a kind of evaluation method of battery electric quantity, comprise following steps:
The mapping table of cell voltage under normalized current and battery electric quantity is preserved in advance in terminal device; Wherein, described normalized current is the working current of system when entering holding state but do not enter sleep state;
When estimating battery electric quantity, sampling battery voltage;
According to current loading condition, voltage compensation is carried out to the described cell voltage sampled;
Cell voltage after described voltage compensation is substituted in the mapping table of described cell voltage and battery electric quantity, obtain corresponding battery electric quantity;
The battery electric quantity obtained described in display.
Embodiments of the present invention additionally provide a kind of terminal device, comprise:
Voltage electricity corresponding relation preserves module, for preserving the mapping table of cell voltage under normalized current and battery electric quantity; Wherein, described normalized current is the working current of system when entering holding state but do not enter sleep state;
Sampling module, for when estimating battery electric quantity, sampling battery voltage;
Compensating module, for carrying out voltage compensation according to current loading condition to the cell voltage that described sampling module samples;
Modular converter, for being substituted in the mapping table of described cell voltage and battery electric quantity by the cell voltage after described voltage compensation, obtains corresponding battery electric quantity;
Display module, for showing the battery electric quantity that described modular converter obtains.
Embodiment of the present invention in terms of existing technologies, by before the mapping table cell voltage sampled being substituted into cell voltage and the battery electric quantity obtained according to battery discharge curve figure, first voltage compensation is carried out to the cell voltage sampled, cell voltage after described voltage compensation is substituted in the mapping table of described cell voltage and battery electric quantity, obtain corresponding battery electric quantity and show.Because to power consumption, compared with heavy load, because discharge capacity is comparatively large, voltage drop that is that cause compensates, the voltage after making it compensate can match with the voltage of standard discharge curve, avoids the larger problem of electricity display error in detecting voltage method.Therefore, higher battery electric quantity display precision can be had according to the battery electric quantity that the cell voltage after voltage compensation obtains, avoid under heavy load working condition, easily allow system enter the situation of low electricity or directly shutdown, thus system works and stand-by time can be extended.And, based on be still detecting voltage ratio juris, without the need to carrying out current sense, thus the program can be realized when not increasing hardware cost, i.e. low in hardware cost.
Preferably, carry out, in the step of voltage compensation, comprising following sub-step: prestore the first mapping table according to current loading condition to the described cell voltage sampled, described first mapping table is the pressure drop of each load corresponding under each voltage section; According to the voltage section residing for the described cell voltage sampled, search described first mapping table, obtain pressure drop corresponding under present load; By the pressure drop of the described correspondence found, as the voltage needing to compensate, voltage compensation is carried out to the described cell voltage sampled.The first mapping table obtained in experimentally data is accurately in situation, can bucking voltage preferably, makes the magnitude of voltage after compensation can the discharge curve data of match-on criterion electric current.
Preferably, carry out in the step of voltage compensation according to current loading condition to the described cell voltage sampled, comprise following sub-step: prestore the second mapping table, described second mapping table is the pressure drop of pressure reduction corresponding under each voltage section of the double magnitude of voltage sampled; The pressure reduction of the cell voltage that the cell voltage sampled described in calculating and last time sample; According to the pressure reduction of described calculating, search described second mapping table, obtain pressure drop corresponding under the voltage section residing for the described cell voltage sampled; By the pressure drop of the described correspondence found, as the voltage needing to compensate, voltage compensation is carried out to the described cell voltage sampled.When there being larger pressure drop by this compensation mechanism, can ensure that the magnitude of voltage after compensating can the discharge curve data of match-on criterion electric current further
Preferably, calculating sampling to cell voltage with on once sample the pressure reduction of cell voltage time, first carry out data smoothing process to the described cell voltage sampled and the last cell voltage sampled, the described pressure reduction of calculating is the pressure reduction of the cell voltage that the adjacent double sampling after data smoothing process arrives.Due to when working current instability, sampled voltage fluctuation is very large, and it is very large to carry out voltage compensation difficulty.Therefore by effectively can suppress the shake of sampled voltage to the smoothing process of data.
Accompanying drawing explanation
Fig. 1 is battery discharge curve figure of the prior art;
Fig. 2 is the evaluation method process flow diagram of the battery electric quantity according to first embodiment of the invention;
Fig. 3 is the evaluation method process flow diagram of the battery electric quantity according to second embodiment of the invention;
Fig. 4 is according to each voltage curve schematic diagram in second embodiment of the invention;
Fig. 5 is the evaluation method process flow diagram of the battery electric quantity according to third embodiment of the invention;
Fig. 6 is the terminal device structural representation according to four embodiment of the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, persons of ordinary skill in the art may appreciate that in each embodiment of the present invention, proposing many ins and outs to make reader understand the application better.But, even without these ins and outs with based on the many variations of following embodiment and amendment, each claim of the application technical scheme required for protection also can be realized.
First embodiment of the present invention relates to a kind of evaluation method of battery electric quantity.Idiographic flow as shown in Figure 2.
In step 210, in advance according to the relation of the cell voltage under normalized current and battery electric quantity, draw battery discharge curve figure, and by the mapping table of the cell voltage under the normalized current that obtains according to this battery discharge curve figure and battery electric quantity, be kept in terminal device.Wherein, described normalized current is the working current of system when entering holding state but do not enter sleep state, does not namely carry out any business, closes working current when display screen, closed communication function.
Specifically, under normalized current, the full battery of charging is discharged with described normalized current, till battery electric quantity has consumed.During described battery discharge, periodically cell voltage is sampled.Wherein, the sampling period of voltage can be 30 seconds, and preserved sample voltage data.According to the battery voltage data that described periodic samples arrives, draw described battery discharge curve figure, so just can determine the transformational relation of the voltage-capacity of standard.The mapping table obtaining cell voltage under normalized current and battery electric quantity according to battery discharge curve figure belongs to the known technology of this area, does not repeat them here.
When estimating battery electric quantity, enter step 220.In a step 220, cell voltage is sampled.The voltage sampled is the digital voltage after analog to digital conversion.
Then, in step 230, according to current loading condition, voltage compensation is carried out to the described cell voltage sampled.Due to for terminal device, increase load and can introduce a pressure drop, its pressure drop difference under different voltage condition.This phenomenon can be learnt by battery discharge curve, and namely under same charge condition, discharge current is larger, and sampled voltage is less.Therefore, in the present embodiment, voltage compensation mechanism is added for different loads (such as communication function, Presentation Function etc.).
In the present embodiment, according to the first mapping table prestored, voltage compensation is carried out.Specifically, prestore the first mapping table, this first mapping table is the pressure drop (as shown in table 1) of each load corresponding under each voltage section, matrix data in table 1 is obtained by test, each behavior one voltage section in table 1, row expression as " 4200 " place is greater than 4100mV and is less than or equal to the voltage section of 4200mV, and the row expression at " 4100 " place is greater than 3900mV and is less than or equal to the voltage section of 4100mV, the like.
Voltage (mV) | Display apparatus module | Sound module | Camera module | Communication module | Modulator-demodular unit |
4200 | |||||
4100 | ΔV1 | ΔV2 | |||
3900 | |||||
3800 | |||||
3700 | |||||
3600 | |||||
3500 |
Table 1
In this step, the voltage section residing for the cell voltage sampled, searches this first mapping table, obtains pressure drop corresponding under present load.Such as, whether terminal device is in running order by power-consuming hardware main in acquisition system, learn and currently also open display apparatus module and camera module, and be in " 3900mV to 4100mV " this voltage section by the voltage that ADC (analog to digital converter) samples, then can find in described table 1, pressure drop corresponding under present load is Δ V1 and Δ V2.Then, by the pressure drop of the described correspondence found, as the voltage needing to compensate, voltage compensation is carried out to the described cell voltage sampled.Such as the cell voltage sampled is V, then the cell voltage V ' after voltage compensation=V+ Δ V1+ Δ V2.That is, the load voltage compensation matrix that introducing one is as shown in table 1 in the present embodiment, for the load that power consumption is larger, in different cell voltage situation, calculates its pressure drop.
Then, in step 240, the cell voltage after voltage compensation is substituted in the mapping table of cell voltage and the battery electric quantity preserved in advance, obtain corresponding battery electric quantity.
Then, in step 250, terminal device shows the battery electric quantity obtained, and this step is same as the prior art, does not repeat them here.
It will be understood by those skilled in the art that, when discharge current is constant, cell voltage and electricity have one-to-one relationship, namely can determine its relation by the discharge curve of a certain steady current, as shown in Figure 1.And under real conditions, only in low-power consumption standby state, just substantially meet the constant condition of discharge current, but in more existing systems, after system enters low-power consumption, software cannot sampling battery voltage, only have when system enters normal operating conditions, just can sampling battery voltage.In normal operation, discharge current is not invariable, and in fact, along with the change of business, discharge current fluctuation can be larger, thus it is larger to cause sampled voltage to fluctuate.
And in the present embodiment, because to power consumption, compared with heavy load, because discharge capacity is comparatively large, voltage drop that is that cause compensates, voltage after making it compensate can match with the voltage of standard discharge curve, avoids the larger problem of electricity display error in detecting voltage method.Therefore, higher battery electric quantity display precision can be had according to the battery electric quantity that the cell voltage after voltage compensation obtains, avoid under heavy load working condition, easily allow system enter the situation of low electricity or directly shutdown, thus system works and stand-by time can be extended.And, based on be still detecting voltage ratio juris, without the need to carrying out current sense, thus the program can be realized when not increasing hardware cost, i.e. low in hardware cost.
Second embodiment of the present invention relates to a kind of evaluation method of battery electric quantity.Second embodiment is roughly the same with the first embodiment, key distinction part is: in the first embodiment, terminal device is when carrying out voltage compensation, whether in running order according to power-consuming hardware main in system, pressure drop corresponding search present load in the first mapping table under.And in second embodiment of the invention, needing to prestore the second mapping table, the second mapping table is the pressure drop of pressure reduction corresponding under each voltage section of the double magnitude of voltage sampled.Terminal device is when carrying out voltage compensation, calculate the pressure reduction of the cell voltage that adjacent double sampling arrives, according to the pressure reduction of described calculating, search described second mapping table, obtain pressure drop corresponding under the voltage section residing for the described cell voltage sampled, and the pressure drop of correspondence that will find, as the voltage needing to compensate.
Specifically, as shown in Figure 3, step 310 and step 320 are identical with step 220 with step 210 respectively, do not repeat them here.
In a step 330, terminal device carries out data smoothing process to the cell voltage sampled.Due in discharge process, sampled voltage curve is not steadily smooth, but there is moment large discharge current fluctuation interference, and curve shows as the curve shake in a segment limit.Such actual samples curve is unfavorable for late time data analysis, affects the transformational relation of voltage-capacity.Therefore need the large discharge current fluctuation of these moments of filtering to carry out smooth curve, in the present embodiment, adopt weighted mean algorithm to carry out level and smooth sampled data.
Specifically, weighted average method is that the one of mean value method is improved, if in measuring process, need the special measured value paying attention to certain one-phase (such as current generation), and take into account the measured value considering other stages (such as passing by the stage) again.Can by reducing the shake of sampled data to the smoothing process of sampled data.Because sampled voltage is constantly change, therefore it is not a definite value, but shakes within the specific limits.Therefore the fluctuation in the present embodiment by adopting Weighted Average Algorithm to remove sampled data, its basic thought is that current output valve Y is not only relevant with present sample data, and simultaneously also relevant with a front N-1 sampled data, correlativity weighting coefficient represents, X
irepresent sampled data.Arthmetic statement is as follows:
Wherein: ε
1, ε
2, ε
3... ε
nfor weighting coefficient; And ε
1+ ε
2+ ε
3+ ...+ε
n=1.
In practice, the algorithmic formula after general use distortion describes:
Wherein ε
1+ ε
2+ ε
3+ ...+ε
n=ε, and ε=2
a.
In the present embodiment, get a=4, ε
1=6, ε
2=4, ε
3=3, ε
4=3.Certainly, in actual applications, these parameters can be revised according to real needs (such as the factor such as smooth effect, operand), not enumerate at this.By the smoothing processing of data, the fluctuating range of sampled data can be made to reduce, have good inhibitory mutagenesis sampled value simultaneously, this inhibition can prevent sampled voltage to suddenly change the impact brought.
Then, in step 340 and 350, calculate the pressure reduction of the cell voltage that the adjacent double sampling after data smoothing process arrives, the second mapping table is searched according to the pressure reduction of described calculating, obtain pressure drop corresponding under the voltage section residing for the cell voltage sampled, and in this, as needing the voltage compensated to carry out voltage compensation.
Specifically, due to numerous outer be located at different conditions under the factor such as the current fluctuation that causes all difficulty is added to voltage compensation, when working current instability, sampled voltage fluctuation is very large, and it is larger to carry out voltage compensation difficulty.Above-mentioned curve smoothing algorithm effectively can suppress the shake of sampled voltage, but when there being larger pressure drop, also needs to utilize a kind of curve simulation mechanism to make up this defect.Curve simulation mechanism based on battery in same charge situation, discharge current is different, the characteristic that the voltage presented is different, in the situation that pressure drop is large, according to the pressure reduction of twice measured value in front and back, determine the discharge curve that current voltage is corresponding, after discharge curve is determined, the relation of voltage and electricity just determines.That is, for a system, the discharge current I of existence
0, I
1..., I
n, then corresponding n+1 bar discharge curve, the also corresponding corresponding relation of n+1 kind voltage and electricity, by surveying battery, can obtain I-V-C (current-voltage-electricity) matrix table.If the voltage of one-shot measurement and the discharge curve of correspondence thereof are benchmark in the past, the voltage of the current voltage that records and front one-shot measurement pressure reduction, by the comparison to I-V-C matrix, just can determine corresponding discharge curve, thus from matrix, find corresponding electricity.In theory, the I vector of I-V-C matrix typing is more, and the electricity of acquisition more approaches actual value.In reality, because of different voltage sections same curves be also different in pressure drop, need the dimension V of an increase voltage section
d, the V that namely during actual operation, inquiry is four-dimensional
d-I-V-C matrix, it is more that computing consumes cpu resource, therefore, present embodiment proposes the curve simulation mechanism implementation more simplified on this basis, namely with reference discharge curve for reference, by the voltage transitions after level and smooth in reference discharge curve territory, and the corresponding relation of voltage corresponding to basis of reference discharge curve and electricity, obtain charge value.Specific implementation is as follows:
Prestore second mapping table as shown in table 2, in table 2, every a line represents a voltage section (row as " 4200 " place represents and is greater than 4100mV and is less than or equal to the voltage section of 4200mV, the row expression at " 4100 " place is greater than 3900mV and is less than or equal to the voltage section of 4100mV, the like); Voltage compensation value when each is classified as same pressure drop under different voltage section in table 2.Such as time in the voltage section of 3700mV to 3800mV, when the magnitude of voltage of continuous sampling differs 10mV after level and smooth, then checking in bucking voltage from table 2 is Δ V, then the voltage V obtained after level and smooth should be modified to V '=V+ Δ V after compensation.The problem that can effectively suppress change in pressure drop larger like this.
Voltage pressure drop (mV) | 5 | 10 | 15 | 20 | 25 |
4200 | |||||
4100 | |||||
3900 | |||||
3800 | ΔV | ||||
3700 | |||||
3600 | |||||
3500 |
Table 2
Generally speaking, " curve simulation mechanism " is supplementing the voltage compensation mechanism of specific transactions.Because system cannot obtain current charge/discharge stream, I-V-C matrix table cannot be obtained, after therefore judging Δ I by instantaneous pressure drop (i.e. the pressure reduction of the magnitude of voltage of continuous 2 samplings), the second mapping table as shown in table 2 can be obtained.Under different current battery level, identical " instantaneous pressure drop " corresponding different Δ I, the magnitude of voltage therefore compensated is also different.
In step 360, the cell voltage after voltage compensation is substituted in pre-rendered battery discharge curve figure, obtain corresponding battery electric quantity.Afterwards, in step 370, terminal device shows the battery electric quantity obtained.Step 360 and step 370 are identical with step 250 with step 240 respectively.
Fig. 4 is each voltage curve adopting curve simulation mechanism in present embodiment, and wherein, curve a is the curve of original sampling data, and curve b is the curve after voltage compensation, and curve c is level and smooth simulation curve.In x=55 to x=90 this section of interval, because pressure drop is comparatively large, simulation curve therefore can be adopted here to go to replace (substituting with the straight line of certain slope).
It is worth mentioning that, system needs to determine initial cells electricity after starting, and the initial value of battery electric quantity decides follow-up electricity displayed value, therefore seems particularly important.When system just starts, the peripheral hardware of equipment powers on successively, and therefore power consumption current fluctuation is very large, and it is very large that this just causes sampled voltage to fluctuate, and data can find to average to sampled point during this period of time by experiment, and the curve of its sampled voltage is smoother, shake less.Start period in system, can improve the sampling period, the such as sampling period was 1 second.In smart mobile phone, because equipment is more, system start-up time is longer, than the system start-up time if any 30 seconds.That is, in the system start-up time in 30 seconds, the sampling period can be set to for 1 second.
X=0 to x=55 in Fig. 4 this section of interval is exactly sampled voltage during system startup, and can find that the fluctuation of this segment data is comparatively large, when reason is system startup, electric current instability caused.Therefore adopt mean algorithm to remove level and smooth this section of curve here, diagram smooth effect is obvious.
Third embodiment of the invention relates to a kind of evaluation method of battery electric quantity, combines in present embodiment to the voltage compensation mode in the first and second embodiments.Namely, when carrying out voltage compensation, first carrying out primary voltage compensation according to the first mapping table, then, then carrying out secondary voltage compensation according to the second mapping table, as shown in Figure 5.
Specifically, prestore the first mapping table and the second mapping table, wherein, the first mapping table is the pressure drop of each load corresponding under each voltage section; Second mapping table is the pressure drop of pressure reduction corresponding under each voltage section of the double magnitude of voltage sampled.
When carrying out voltage compensation, the voltage section residing for the cell voltage sampled, searches described first mapping table, pressure drop corresponding under obtaining present load; By the pressure drop of the described correspondence found, need the voltage compensated as first time, first time voltage compensation is carried out to the described cell voltage sampled.
Then, after the cell voltage obtained after described first time voltage compensation carries out data smoothing process, pressure reduction is calculated to the cell voltage after described first time voltage compensation and the last cell voltage sampled; According to the pressure reduction of described calculating, search described second mapping table, pressure drop corresponding under obtaining residing voltage section, and this pressure drop is needed the voltage of compensation as second time, second time voltage compensation is carried out to the described cell voltage sampled.
In the present embodiment, the magnitude of voltage after twice compensation is substituted into battery discharge curve figure, obtain corresponding battery electric quantity and show.
It should be noted that, above the step of various method divide, just in order to be described clearly, a step can be merged into when realizing or some step is split, be decomposed into multiple step, as long as comprise identical logical relation, all in the protection domain of this patent; To adding inessential amendment in algorithm or in flow process or introducing inessential design, but the core design not changing its algorithm and flow process is all in the protection domain of this patent.
Four embodiment of the invention relates to a kind of terminal device, as shown in Figure 6, comprises:
Voltage electricity corresponding relation preserves module, for preserving the mapping table of cell voltage under normalized current and battery electric quantity; Wherein, described normalized current is the working current of system when entering holding state but do not enter sleep state.
Sampling module, for when estimating battery electric quantity, sampling battery voltage.
Compensating module, for carrying out voltage compensation according to current loading condition to the cell voltage that described sampling module samples.
Modular converter, for being substituted in the mapping table of described cell voltage and battery electric quantity by the cell voltage after described voltage compensation, obtains corresponding battery electric quantity.
Display module, for showing the battery electric quantity that described modular converter obtains.
Compensating module comprises following submodule:
First sub module stored, for storing the first mapping table, described first mapping table is the pressure drop of each load corresponding under each voltage section.
First searches submodule, for the voltage section residing for the cell voltage that samples described in basis, searches described first mapping table, obtains pressure drop corresponding under present load.
First compensates submodule, for searching the pressure drop of the correspondence that submodule finds by described first, as the voltage needing to compensate, carries out voltage compensation to the described cell voltage sampled.
Be not difficult to find, present embodiment is the system embodiment corresponding with the first embodiment, and present embodiment can be worked in coordination with the first embodiment and be implemented.The relevant technical details mentioned in first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment also can be applicable in the first embodiment.
It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, also can be a part for a physical location, can also realize with the combination of multiple physical location.In addition, in order to outstanding innovative part of the present invention, the unit not too close with solving technical matters relation proposed by the invention is not introduced in present embodiment, but this does not show the unit that there is not other in present embodiment.
Fifth embodiment of the invention relates to a kind of terminal device.5th embodiment is roughly the same with the 4th embodiment, and key distinction part is: in the 4th embodiment, and compensating module carries out voltage compensation according to the first mapping table.And in fifth embodiment of the invention, compensating module carries out voltage compensation according to the second mapping table.
Specifically, compensating module comprises following submodule:
Second sub module stored, for storing the second mapping table, described second mapping table is the pressure drop of pressure reduction corresponding under each voltage section of the double magnitude of voltage sampled.
Calculating sub module, for calculating the pressure reduction of cell voltage that described sampling module samples and the last cell voltage sampled.
Second searches submodule, for the pressure reduction calculated according to described calculating sub module, searches described second mapping table, obtains pressure drop corresponding under the voltage section residing for the described cell voltage sampled.
Second compensates submodule, for searching the pressure drop of the correspondence that submodule finds by described second, as the voltage needing to compensate, carries out voltage compensation to the described cell voltage sampled.
It is worth mentioning that, described calculating sub module can comprise following subelement:
Smoothing processing subelement, for carrying out data smoothing process to the described cell voltage sampled and the last cell voltage sampled;
The described pressure reduction that described calculating sub module calculates is the pressure reduction of the cell voltage that the adjacent double sampling after data smoothing process arrives.
Be not difficult to find, present embodiment is the system embodiment corresponding with the second embodiment.Because the second embodiment and present embodiment are mutually corresponding, therefore present embodiment can be worked in coordination with the second embodiment and be implemented.The relevant technical details mentioned in second embodiment is still effective in the present embodiment, and the technique effect that can reach in this second embodiment can realize in the present embodiment too, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment also can be applicable in the second embodiment.
Sixth embodiment of the invention relates to a kind of terminal device.Present embodiment combines two kinds of voltage compensation modes in the 4th and the 5th embodiment, and namely compensating module is after carrying out voltage compensation according to the first mapping table, also needs again to carry out voltage compensation according to the second mapping table.
Be not difficult to find, present embodiment is the system embodiment corresponding with the 3rd embodiment.Because the 3rd embodiment is mutually corresponding with present embodiment, therefore present embodiment can be worked in coordination with the 3rd embodiment and be implemented.The relevant technical details mentioned in 3rd embodiment is still effective in the present embodiment, and the technique effect that can reach in the third embodiment can realize in the present embodiment too, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment also can be applicable in the 3rd embodiment.
Persons of ordinary skill in the art may appreciate that the respective embodiments described above realize specific embodiments of the invention, and in actual applications, various change can be done to it in the form and details, and without departing from the spirit and scope of the present invention.
Claims (4)
1. an evaluation method for battery electric quantity, is characterized in that, comprises following steps:
In terminal device, preserve the mapping table of cell voltage under normalized current and battery electric quantity in advance, wherein, described normalized current is the working current of system when entering holding state but do not enter sleep state;
When estimating battery electric quantity, sampling battery voltage;
According to current loading condition, voltage compensation is carried out to the described cell voltage sampled;
Cell voltage after described voltage compensation is substituted in the mapping table of described cell voltage and battery electric quantity, obtain corresponding battery electric quantity;
The battery electric quantity obtained described in display,
Wherein, describedly carry out, in the step of voltage compensation, comprising following sub-step to the described cell voltage sampled according to current loading condition:
Prestore the first mapping table and the second mapping table, wherein, the first mapping table is the pressure drop of each load corresponding under each voltage section; Second mapping table is the pressure drop of pressure reduction corresponding under each voltage section of the double magnitude of voltage sampled;
According to the voltage section residing for the described cell voltage sampled, search described first mapping table, pressure drop corresponding under obtaining present load;
By the pressure drop of the described correspondence found, need the voltage compensated as first time, first time voltage compensation is carried out to the described cell voltage sampled;
After the cell voltage obtained after described first time voltage compensation carries out data smoothing process, pressure reduction is calculated to the cell voltage after described first time voltage compensation and the last cell voltage sampled;
According to the pressure reduction of described calculating, search described second mapping table, pressure drop corresponding under obtaining residing voltage section, and this pressure drop is needed the voltage of compensation as second time, second time voltage compensation is carried out to the described cell voltage sampled.
2. the evaluation method of battery electric quantity according to claim 1, is characterized in that the mapping table of cell voltage under described normalized current and battery electric quantity, obtains in the following manner:
The full battery of charging is discharged with described normalized current, till battery electric quantity has consumed;
During described battery discharge, periodically cell voltage is sampled;
According to the battery voltage data that described periodic samples arrives, draw battery discharge curve figure;
According to described battery discharge curve figure, obtain the mapping table of cell voltage under described normalized current and battery electric quantity.
3. the evaluation method of battery electric quantity according to claim 2, is characterized in that, the described cycle is 30 seconds.
4. a terminal device, is characterized in that, comprises:
Voltage electricity corresponding relation preserves module, for preserving the mapping table of cell voltage under normalized current and battery electric quantity; Wherein, described normalized current is the working current of system when entering holding state but do not enter sleep state;
Sampling module, for when estimating battery electric quantity, sampling battery voltage;
Compensating module, for carrying out voltage compensation according to current loading condition to the cell voltage that described sampling module samples;
Modular converter, for being substituted in the mapping table of described cell voltage and battery electric quantity by the cell voltage after described voltage compensation, obtains corresponding battery electric quantity;
Display module, for showing the battery electric quantity that described modular converter obtains,
Wherein, described compensating module comprises following submodule:
First sub module stored, for storing the first mapping table, described first mapping table is the pressure drop of each load corresponding under each voltage section;
First searches submodule, for the voltage section residing for the cell voltage that samples described in basis, searches described first mapping table, obtains pressure drop corresponding under present load;
First compensates submodule, for searching the pressure drop of the correspondence that submodule finds by described first, as the voltage needing to compensate, carries out voltage compensation to the described cell voltage sampled;
Second sub module stored, for storing the second mapping table, described second mapping table is the pressure drop of pressure reduction corresponding under each voltage section of the double magnitude of voltage sampled;
Calculating sub module, for calculating the pressure reduction of cell voltage that described sampling module samples and the last cell voltage sampled, described calculating sub module comprises smoothing processing subelement, for carrying out data smoothing process to the described cell voltage sampled and the last cell voltage sampled, the described pressure reduction that described calculating sub module calculates is the pressure reduction of the cell voltage that the adjacent double sampling after data smoothing process arrives;
Second searches submodule, for the pressure reduction calculated according to described calculating sub module, searches described second mapping table, obtains pressure drop corresponding under the voltage section residing for the described cell voltage sampled;
Second compensates submodule, for searching the pressure drop of the correspondence that submodule finds by described second, as the voltage needing to compensate, carries out voltage compensation to the described cell voltage sampled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110436267.1A CN103176132B (en) | 2011-12-22 | 2011-12-22 | The evaluation method of battery electric quantity and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110436267.1A CN103176132B (en) | 2011-12-22 | 2011-12-22 | The evaluation method of battery electric quantity and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103176132A CN103176132A (en) | 2013-06-26 |
CN103176132B true CN103176132B (en) | 2015-08-12 |
Family
ID=48636119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110436267.1A Active CN103176132B (en) | 2011-12-22 | 2011-12-22 | The evaluation method of battery electric quantity and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103176132B (en) |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301499B (en) * | 2013-07-15 | 2017-12-15 | 腾讯科技(深圳)有限公司 | Battery capacity of mobile terminal log analysis methodology, device, platform and mobile terminal |
CN103792490B (en) * | 2013-11-22 | 2016-08-17 | 广州视源电子科技股份有限公司 | Method for measuring and calculating battery capacity of system |
CN103792489B (en) * | 2013-11-22 | 2017-03-22 | 广州视源电子科技股份有限公司 | Improved method for measuring and calculating system battery capacity |
CN103969595A (en) * | 2014-05-23 | 2014-08-06 | 开曼群岛威睿电通股份有限公司 | Electric quantity detecting device and method |
CN105866688A (en) * | 2015-12-30 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method of measuring mobile communication terminal equipment cell capacity and system thereof |
CN106026220B (en) * | 2016-05-05 | 2019-07-05 | Oppo广东移动通信有限公司 | It is a kind of charge sampled voltage compensation method and mobile terminal |
CN106772091B (en) * | 2016-12-30 | 2020-02-14 | Oppo广东移动通信有限公司 | Method and device for updating battery capacity value and terminal |
CN106646263A (en) * | 2017-01-16 | 2017-05-10 | 珠海市魅族科技有限公司 | Electric quantity metering method and electric quantity metering device |
TWI629849B (en) * | 2017-01-17 | 2018-07-11 | 盈正豫順電子股份有限公司 | Battery state detection method and system thereof |
JP7042568B2 (en) * | 2017-07-28 | 2022-03-28 | 澤藤電機株式会社 | Motor control device and motor control method |
CN107817859A (en) * | 2017-10-30 | 2018-03-20 | 深圳市道通智能航空技术有限公司 | A kind of cell voltage filtering method and device |
CN107831445A (en) * | 2017-10-30 | 2018-03-23 | 深圳市道通智能航空技术有限公司 | A kind of method and apparatus for obtaining battery dump energy |
CN108008183B (en) * | 2017-11-28 | 2021-01-15 | 深圳市路畅科技股份有限公司 | Electric quantity measuring method, system, equipment and computer storage medium |
CN108107374A (en) * | 2017-12-27 | 2018-06-01 | 北京传嘉科技有限公司 | The battery power quantity display method and device of terminal device |
CN108549029B (en) * | 2018-01-19 | 2021-06-15 | 昆山国显光电有限公司 | Battery electric quantity detection method and device and terminal |
WO2020087373A1 (en) * | 2018-10-31 | 2020-05-07 | 华为技术有限公司 | Compensation method and apparatus for battery voltage, and terminal device |
CN110350260B (en) * | 2019-05-31 | 2021-08-06 | 恒大新能源科技集团有限公司 | Electricity supplementing method for battery cell |
CN112130082B (en) * | 2019-06-05 | 2024-07-16 | 海能达通信股份有限公司 | Method and equipment for calculating battery power and device with storage function |
CN111585572A (en) * | 2020-04-28 | 2020-08-25 | 广州视源电子科技股份有限公司 | Sampling method, device, terminal equipment and storage medium |
CN111596220A (en) * | 2020-06-24 | 2020-08-28 | 深圳市道通科技股份有限公司 | Method for measuring battery reserve capacity of storage battery and battery detection equipment |
CN116430255B (en) * | 2023-03-27 | 2024-02-09 | 广州通则康威科技股份有限公司 | Battery electric quantity self-adaptive display method, device, storage medium and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0512711A2 (en) * | 1991-05-07 | 1992-11-11 | Matsushita Electric Industrial Co., Ltd. | Device for measuring the quantity of electricity stored in a battery |
CN1641372A (en) * | 2004-01-02 | 2005-07-20 | 明基电通股份有限公司 | Mobile electronic device cell volume compensating device and method |
CN1889736A (en) * | 2006-08-08 | 2007-01-03 | 北京天碁科技有限公司 | Method for measuring mobile communication terminal battery electricity quantity |
CN1979942A (en) * | 2005-11-30 | 2007-06-13 | 比亚迪股份有限公司 | Display circuit for residual electricity quantity of secondary cell |
CN101126796A (en) * | 2007-10-12 | 2008-02-20 | 深圳华为通信技术有限公司 | Battery electric quantity detecting method and device |
CN101153894A (en) * | 2006-09-26 | 2008-04-02 | 鸿富锦精密工业(深圳)有限公司 | Electricity quantity detecting method, electricity quantity detecting system and electronic equipment using the same method |
CN101728588A (en) * | 2008-10-10 | 2010-06-09 | 鸿富锦精密工业(深圳)有限公司 | Wireless communication terminal and method for determining battery electric quantity thereof |
CN101806867A (en) * | 2010-03-12 | 2010-08-18 | 中兴通讯股份有限公司 | Method and device for measuring electric quantity of mobile phone battery |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004301784A (en) * | 2003-03-31 | 2004-10-28 | Yazaki Corp | Dischargeable capacity estimating method and device for battery |
-
2011
- 2011-12-22 CN CN201110436267.1A patent/CN103176132B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0512711A2 (en) * | 1991-05-07 | 1992-11-11 | Matsushita Electric Industrial Co., Ltd. | Device for measuring the quantity of electricity stored in a battery |
CN1641372A (en) * | 2004-01-02 | 2005-07-20 | 明基电通股份有限公司 | Mobile electronic device cell volume compensating device and method |
CN1979942A (en) * | 2005-11-30 | 2007-06-13 | 比亚迪股份有限公司 | Display circuit for residual electricity quantity of secondary cell |
CN1889736A (en) * | 2006-08-08 | 2007-01-03 | 北京天碁科技有限公司 | Method for measuring mobile communication terminal battery electricity quantity |
CN101153894A (en) * | 2006-09-26 | 2008-04-02 | 鸿富锦精密工业(深圳)有限公司 | Electricity quantity detecting method, electricity quantity detecting system and electronic equipment using the same method |
CN101126796A (en) * | 2007-10-12 | 2008-02-20 | 深圳华为通信技术有限公司 | Battery electric quantity detecting method and device |
CN101728588A (en) * | 2008-10-10 | 2010-06-09 | 鸿富锦精密工业(深圳)有限公司 | Wireless communication terminal and method for determining battery electric quantity thereof |
CN101806867A (en) * | 2010-03-12 | 2010-08-18 | 中兴通讯股份有限公司 | Method and device for measuring electric quantity of mobile phone battery |
Non-Patent Citations (1)
Title |
---|
电动车辆电池电量检测仪的设计;文明等;《工业仪表与自动化装置》;20071231(第3期);第21-22、37页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103176132A (en) | 2013-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103176132B (en) | The evaluation method of battery electric quantity and terminal device | |
CN101153894B (en) | Electricity quantity detecting method, electricity quantity detecting system and electronic equipment using the same method | |
CN102375127B (en) | Method for displaying residual battery electricity quantity of mobile terminal | |
CN102739845B (en) | Electronic device capable of detecting battery power and battery power detection method | |
Di Nisio et al. | High dynamic range power consumption measurement in microcontroller-based applications | |
CN106019167B (en) | A kind of Intelligent electric energy meter clock battery performance test method based on Work condition analogue | |
CN105372595A (en) | Battery capacity detection system and method | |
CN112114652B (en) | Voltage control method and device, electronic equipment and readable storage medium | |
Carmona-Delgado et al. | Fast and reliable distribution load and state estimator | |
CN103460063A (en) | Battery voltage measurement | |
US20130158912A1 (en) | Apparatus for Measuring the State of Health of a Cell Pack | |
CN115327391B (en) | Detection method and device based on echelon battery utilization | |
Li et al. | A new method to estimate the state of charge of the green battery | |
CN102414568B (en) | AD converter is used to perform multiplying | |
Gong et al. | Estimation of Peukert constant of lithium-ion batteries and its application in battery discharging time prediction | |
CN101408591A (en) | Real time energy detection system of wireless sensor network node | |
KR100698162B1 (en) | System and method for analyzing electric power consumption in a terminal | |
CN115759400A (en) | Method, device and equipment for planning and evaluating secondary equipment of power distribution network | |
US11233404B1 (en) | System and methods for integrating multiple photovoltaic systems | |
Zhu et al. | A review of battery state of health estimation | |
CN103969595A (en) | Electric quantity detecting device and method | |
CN102414638B (en) | Calculating power input to a computer | |
CN115473216A (en) | Method and system for improving line loss calculation of power grid | |
Tsai et al. | Battery cell modeling and online estimation of the state of charge of a lithium-ion battery | |
CN101957433B (en) | Circuit and method for measuring battery electric quantity |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20170418 Address after: 201206 Shanghai, China (Shanghai) free trade zone, the moon Road, No. 3, building fourth, room B412, level 1258 Patentee after: Shanghai Li Ke Semiconductor Technology Co., Ltd. Address before: 201206 Pudong New Area Mingyue Road, Shanghai, No. 1258 Patentee before: Leadcore Technology Co., Ltd. |