The content of the invention
A kind of electric quantity display method and device based on energy are the embodiment of the invention provides, intuitively can accurately be reacted
Energy and use time that battery is laid at present, strengthen Consumer's Experience.
The present invention provides a kind of electric quantity display method based on energy, including:Battery discharge curve is fitted to multistage straight
The cell voltage profiles that line is combined into;Obtain corresponding electricity and voltage at each section of straight line end points;And it is straight according to each section
Corresponding electricity and voltage calculate the energy percentage of the electric discharge at any point to be shown at line endpoints.
Wherein, the slope of multistage straight line is different.
Wherein, the energy hundred of the electric discharge at any point is calculated according to corresponding electricity at each section of straight line end points and voltage
Point than the step of include:Either segment linear discharge starting point is calculated according to corresponding electricity at each section of straight line end points and voltage
Electric discharge energy;The electric discharge of any point on the energy balane either segment straight line of the electric discharge according to either segment linear discharge starting point
Energy;The energy percentage of the electric discharge of any point is calculated, wherein, energy percentage is the energy and battery of the electric discharge of any point
The ratio between total energy.
Wherein, on the energy balane either segment straight line of the electric discharge according to either segment linear discharge starting point any point electric discharge
Energy the step of include:Calculate the energy and either segment linear discharge starting point of the electric discharge of either segment linear discharge starting point and appoint
The energy sum discharged between a bit, wherein, the energy of the electric discharge of either segment linear discharge starting point is for before either segment straight line
All sections of linear discharges energy sum.
Wherein, the energy for being discharged between either segment linear discharge starting point and any point is for either segment linear discharge starting point and appoints
Multistage Straight Combination between a little into the area that is surrounded of cell voltage profiles and coordinate system risen with either segment linear discharge
Put the product with the electricity difference of any point.
The present invention also provides a kind of electric quantity display device based on energy, including:Fitting a straight line module, for battery to be put
Electric curve matching into multistage Straight Combination into cell voltage profiles;Acquisition module, is connected, with fitting a straight line module for obtaining
Corresponding electricity and voltage at each section of straight line end points;And energy computation module, it is connected with acquisition module, for according to each
Corresponding electricity and voltage calculate the energy percentage of the electric discharge at any point to be shown at section straight line end points.
Wherein, the slope of multistage straight line is different.
Wherein, energy computation module is used for:Calculate any according to corresponding electricity at each section of straight line end points and voltage
The energy of the electric discharge of section linear discharge starting point;The energy balane either segment of the electric discharge according to either segment linear discharge starting point is straight
The energy of the electric discharge of any point on line;The energy percentage of the electric discharge of any point is calculated, wherein, energy percentage is any point
The ratio between the energy of electric discharge and total energy of battery.
Wherein, energy computation module is used for:The energy and either segment for calculating the electric discharge of either segment linear discharge starting point are straight
The energy sum discharged between line electric discharge starting point and any point, wherein, the energy of the electric discharge of either segment linear discharge starting point is
The energy sum of all sections of linear discharges before either segment straight line.
Wherein, the energy for being discharged between either segment linear discharge starting point and any point is for either segment linear discharge starting point and appoints
Multistage Straight Combination between a little into the area that is surrounded of cell voltage profiles and coordinate system risen with either segment linear discharge
Put the product with the electricity difference of any point.
By such scheme, the beneficial effects of the invention are as follows:The present invention is straight by the way that battery discharge curve is fitted into multistage
The cell voltage profiles that line is combined into;Obtain corresponding electricity and voltage at each section of straight line end points;And it is straight according to each section
Corresponding electricity and voltage calculate the energy percentage of the electric discharge at any point to be shown at line endpoints, can be intuitively accurate
Energy and use time that true reaction cell is laid at present, strengthen Consumer's Experience.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on this
Embodiment in invention, it is every other that those of ordinary skill in the art are obtained under the premise of performing creative labour is not made
Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of the electric quantity display method based on energy of the embodiment of the present invention.This is based on the electricity of energy
Amount display method is applied to mobile terminal.As shown in figure 1, the electric quantity display method based on energy includes:
Step S10:By battery discharge curve be fitted to multistage Straight Combination into cell voltage profiles.
In embodiments of the present invention, by battery discharge curve be fitted to N sections of Straight Combination into cell voltage profiles, its
In, N is the positive integer more than or equal to 1.And the straight line hop count N that the cell voltage profiles being fitted to include can set as needed
Put, this is not restricted.And the slope of multistage straight line is different.Referring to Fig. 2, battery discharge curve is fitted to 5 sections of differences oblique
The straight line of rate, respectively straight line L1, L2, L3, L4, L5.
Step S11:Obtain corresponding electricity and voltage at each section of straight line end points.
In embodiments of the present invention, power taking Chi total electricity be Q, at each section of straight line end points corresponding electricity be Q1, Q2,
Q3, Q4;Corresponding electrical voltage point is V1, V2, V3, V4, V5 respectively.Wherein, for corresponding electricity, mesh at each section of straight line end points
Preceding mobile terminal has all had computational methods, can be obtained according to the existing computational methods, and therefore not to repeat here.
Step S12:The energy of the electric discharge at any point is calculated according to corresponding electricity at each section of straight line end points and voltage
Percentage is measured to be shown.
In step s 12, further include:
Step S120:Either segment linear discharge starting point is calculated according to corresponding electricity at each section of straight line end points and voltage
The energy of the electric discharge at place.
In embodiments of the present invention, the electricity of the starting point of first paragraph straight line is the total electricity Q of battery.Either segment linear discharge
The energy of the electric discharge of starting point is the energy sum of all sections of linear discharges before either segment straight line.Specifically, according to physics
Learn formula to understand, electricity Q0=∫ Idt, the W=UIt=∫ udt* ∫ Idt of any point.Therefore, the starting point of second segment straight line can be drawn
Q1, that is, the electric discharge of the terminal Q1 of first paragraph straight line energy W1=(V1+V2) * T1* (Q-Q1)/2;Similarly the 3rd section of straight line
The energy of the corresponding electric discharges of terminal Q2 of starting point, i.e. second segment straight line is W2=W1+ (V2+V3) * (T2-T1) * (Q1-Q2)/2,
The 4th section of starting point of straight line, i.e., the 3rd section energy W3 of the corresponding electric discharges of terminal Q3 of straight line, the 5th section can similarly be calculated
The energy W4 of the corresponding electric discharges of terminal Q4 of section straight line of the starting point of straight line, i.e., the 4th.
Step S121:Any point on the energy balane either segment straight line of the electric discharge according to either segment linear discharge starting point
The energy of electric discharge.
In step S121, the energy and either segment linear discharge starting point of the electric discharge of either segment linear discharge starting point are calculated
The energy sum discharged between any point.Wherein, the energy for being discharged between either segment linear discharge starting point and any point is to appoint
Multistage Straight Combination between one section of linear discharge starting point and any point into the face that is surrounded with coordinate system of cell voltage profiles
Product and either segment linear discharge starting point and the product of the electricity difference of any point.Continuation be with the cell voltage profiles shown in Fig. 2
Example, the 3rd section of energy W '=W1+W2+ (V '+V3) * (T '-T2) * (Q2- of the corresponding electric discharge in middle any point T ' places of straight line L3
Q’)/2.Wherein, the cell voltage profiles and coordinate system between the 3rd section of straight line L3 electric discharges starting point Q2 and any point T ' are surrounded
Area is (V '+V3) * (T '-T2)/2.
Step S122:The energy percentage of the electric discharge of any point is calculated, wherein, energy percentage is the electric discharge of any point
The ratio between total energy of energy and battery.
Continue by taking the cell voltage profiles shown in Fig. 2 as an example, the middle any point T ' places of the 3rd section of straight line L3 are corresponding to put
Energy percentage η=W '/(W1+W2+W3+W4+W5) of electricity.Therefore, accordingly, for being fitted to the N sections of cell voltage of straight line
Curve, energy percentage η={ the W1+W2 ...+W at any point on Y straight linesY-1+(V’+VY-1)*(T’-TY-1)(Q’-
QY-1)/2}/(W1+W2+…+WN), wherein, Y is positive integer, and Y is less than N.
In embodiments of the present invention, the dump energy percentage of the final any point of display of mobile terminal subtracts this for 1
The energy percentage η of any corresponding electric discharge.In this way, the present invention calculates energy percentage by the way of piecewise fitting, than
Using traditional electricity percentage, more can energy that intuitively accurate reaction cell is laid at present and use time, enhancing uses
Experience at family.
Fig. 3 is the structural representation of the electric quantity display device based on energy of the embodiment of the present invention.As shown in figure 3, being based on
The electric quantity display device 10 of energy includes:Fitting a straight line module 11, acquisition module 12 and energy computation module 13.Fitting a straight line
Module 11 be used for by battery discharge curve be fitted to multistage Straight Combination into cell voltage profiles.Acquisition module 12 is intended with straight line
Matched moulds block 11 is connected, for obtaining corresponding electricity and voltage at each section of straight line end points.Energy computation module 13 and acquisition
Module 12 is connected, the energy for calculating the electric discharge at any point according to corresponding electricity at each section of straight line end points and voltage
Percentage is being shown.
The electric quantity display device 10 based on energy of the embodiment of the present invention is preferably mobile terminal, for display electricity.
In embodiments of the present invention, fitting a straight line module 11 by battery discharge curve be fitted to N sections of Straight Combination into cell voltage it is bent
Line, wherein, N is the positive integer more than or equal to 1.And the straight line hop count N that the cell voltage profiles being fitted to include can basis
Need to set, this is not restricted.And the slope of multistage straight line is different.Power taking Chi total electricity is Q, for each section of straight line
Corresponding electricity at end points, current mobile terminal has all had computational methods, and acquisition module 12 can be according to the existing meter
Calculation method is obtained, and therefore not to repeat here.
In embodiments of the present invention, energy computation module 13 is used for:According to corresponding electricity at each section of straight line end points with
And voltage calculates the energy of the electric discharge of either segment linear discharge starting point;The energy of the electric discharge according to either segment linear discharge starting point
Amount calculates the energy of the electric discharge of any point on either segment straight line;The energy percentage of the electric discharge of any point is calculated, wherein, energy hundred
Point than the electric discharge for any point energy and the ratio between total energy of battery.
Wherein, energy computation module 13 is straight in the energy balane either segment of the electric discharge according to either segment linear discharge starting point
On line during the energy of the electric discharge of any point, it is used for:The energy and either segment for calculating the electric discharge of either segment linear discharge starting point are straight
The energy sum discharged between line electric discharge starting point and any point.Wherein, the energy of the electric discharge of either segment linear discharge starting point is
The energy sum of all sections of linear discharges before either segment straight line.Discharged between either segment linear discharge starting point and any point
Energy for the multistage Straight Combination between either segment linear discharge starting point and any point into cell voltage profiles and coordinate system institute
The area for surrounding and either segment linear discharge starting point and the product of the electricity difference of any point.
In embodiments of the present invention, the dump energy percentage of the final any point of display of electric quantity display device 10 subtracts for 1
Remove the energy percentage of the corresponding electric discharge of any point.In this way, the present invention calculates energy percentage by the way of piecewise fitting
Than, than using traditional electricity percentage, more can energy that intuitively accurate reaction cell is laid at present and use time, increase
Strong Consumer's Experience.
In sum, the present invention by by battery discharge curve be fitted to multistage Straight Combination into cell voltage profiles;
Obtain corresponding electricity and voltage at each section of straight line end points;And according to corresponding electricity and electricity at each section of straight line end points
Pressure calculates the energy percentage of the electric discharge at any point to be shown, intuitively can be laid at present accurate reaction cell
Energy and use time, strengthen Consumer's Experience.
Embodiments of the invention are the foregoing is only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.