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 describes.
Referring to Fig. 1, Fig. 1 is the flow signal of the embodiment of remaining battery capacity calculation method one of mobile terminal of the present invention
Figure.
S101:Obtain the movement state information of mobile terminal;
In the present embodiment, by obtaining the acceleration of mobile terminal at different moments, and mobile terminal is analyzed at different moments
Acceleration, so as to obtain the movement state information residing for mobile terminal, the motion state according to residing for mobile terminal, judge to use
In the validity of the parameter for the dump energy for calculating battery of mobile terminal, to ensure the accurate remaining electricity of calculating battery of mobile terminal
Amount.
S102:According to movement state information, the effective voltage value of battery of mobile terminal is obtained;
In the present embodiment, according to acquired motion state of mobile terminal information, the use that mobile terminal is gathered is judged
In the validity of the parameter for the dump energy for calculating battery of mobile terminal, for example, judge that what mobile terminal gathered is used for
The validity of the magnitude of voltage of battery of mobile terminal dump energy is calculated, is used to calculate its remaining battery electricity so as to obtain mobile terminal
The effective voltage value of amount.
S103:According to effective voltage value, the dump energy of battery of mobile terminal is calculated;
In the present embodiment, after obtaining effective voltage value of the mobile terminal for calculating its battery dump energy, utilize
Current integrating method calculates the dump energy of battery of mobile terminal, is used to calculate its remaining battery electricity according to acquired mobile terminal
The effective voltage value of amount, calculates the size of current at mobile terminal each moment, then brings into Current integrating method formula, calculates shifting
The dump energy of dynamic end cell, or using open circuit voltage method, be used to calculate its battery according to acquired mobile terminal
The effective voltage value of dump energy, it is corresponding that effective voltage value is correspondingly found out in open-circuit voltage-battery dump energy relation curve
Battery dump energy, so as to obtain the dump energy of battery of mobile terminal.
Certainly, as skilled in the art to understand, for calculate the method for battery of mobile terminal dump energy include but
Above two is not limited to, the method using the calculating battery of mobile terminal dump energy of battery of mobile terminal voltage can be this reality
Apply example and illustrate method for calculating battery of mobile terminal dump energy, do not limit herein.
Referring to Fig. 2, the flow that Fig. 2 is another embodiment of remaining battery capacity calculation method of mobile terminal of the present invention is shown
It is intended to.
S201:Obtain the movement state information of mobile terminal;
In the present embodiment, by obtaining the acceleration of mobile terminal at different moments, and mobile terminal is analyzed at different moments
Acceleration, so as to obtain the movement state information residing for mobile terminal, the motion state according to residing for mobile terminal, judge to use
In the validity of the parameter for the dump energy for calculating battery of mobile terminal, to ensure the accurate remaining electricity of calculating battery of mobile terminal
Amount.
Alternatively, using one first preset time as interval, the first acceleration and the second acceleration of mobile terminal are obtained,
By obtaining the vector difference of the first acceleration and the second acceleration, the motion state residing for mobile terminal is analyzed, certainly, such as originally
Art personnel are understood, acceleration magnitude that can be using the first preset time as the multigroup mobile terminal of interval acquiring, for analyzing
Motion state residing for mobile terminal, the acceleration magnitude group number of acquired mobile terminal is more, and its analysis result is more accurate, this reality
Apply example to be analyzed with the acceleration magnitude of two groups of mobile terminals, for being only for example, not thereby to shifting acquired in the present embodiment
Dynamic terminal acceleration magnitude group number causes to limit.
Alternatively, the first preset time can be 1 millisecond, 2 milliseconds, 3 milliseconds etc., to realize to mobile terminal acceleration
Monitoring in real time, the first preset time is Millisecond, and the first preset time is shorter, obtains the period distances of mobile terminal acceleration just
Shorter, just closer to the specific motion state of mobile terminal, its analysis result is more accurate, does not limit herein.
S202:Analyze the motion state of mobile terminal;
In the present embodiment, using one first preset time as interval, the first acceleration and second of mobile terminal is obtained
Acceleration, the vector difference of the first acceleration and the second acceleration is obtained, if the phasor difference of the first acceleration and the second acceleration
Value is more than predetermined acceleration difference, then mobile terminal is in abnormal motion state, if the arrow of the first acceleration and the second acceleration
Amount difference is no more than predetermined acceleration difference, then mobile terminal is in ordinary running condition.
Alternatively, the vector difference of the first acceleration and the second acceleration obtains first using three-dimensional system of coordinate as reference system
The vector difference of acceleration and the second acceleration, i.e., subtraction of vector computing is done to the first acceleration and the second acceleration, preset
Acceleration difference includes predetermined acceleration absolute value differences and predetermined acceleration direction difference, and the first acceleration and second add
After speed carries out subtraction of vector computing, absolute value and the predetermined acceleration absolute value differences of the vector difference obtained are compared
It is right, and the acceleration direction change of the vector difference obtained is compared with predetermined acceleration direction difference (mainly to accelerating
The angle that degree direction changes is compared), after the first acceleration and the second acceleration carry out subtraction of vector computing, obtained
The absolute value of vector difference be more than the acceleration direction of predetermined acceleration absolute value differences and/or the vector difference obtained and become
Change is more than predetermined acceleration direction difference, such as the first acceleration is 9m/s, and after the first preset time, mobile terminal adds
Speed is the second acceleration -6m/s, and the absolute value of its vector difference is 15m/s, and it is more than predetermined acceleration absolute value differences, and
And first the acceleration direction change of acceleration and the second acceleration be more than 90 degree, it is more than predetermined acceleration direction difference, then
Judge that mobile terminal be in abnormal motion state, it is on the contrary then judgement mobile terminal is in ordinary running condition.
Alternatively, predetermined acceleration difference includes predetermined acceleration absolute value differences and predetermined acceleration direction difference,
Predetermined acceleration absolute value differences can be 10m/s, 15m/s, 20m/s etc., predetermined acceleration direction difference can be 90 degree,
100 degree, 120 degree etc., certainly, as skilled in the art to understand, predetermined acceleration absolute value differences and predetermined acceleration
Direction difference includes but is not limited to said circumstances, can interpolate that abnormal motion occurs for mobile terminal, can be explained by the present embodiment
The predetermined acceleration absolute value differences and predetermined acceleration direction difference stated, are not limited herein.
S203:Obtain the effective voltage value of battery of mobile terminal;
In the present embodiment, using one second preset time as period distances, the first voltage value of battery of mobile terminal is obtained
And second voltage value, with reference to the motion state of corresponding moment mobile terminal, the first electricity of battery of mobile terminal acquired in judgement
The validity of pressure value and second voltage value, so as to obtain the effective voltage value of battery of mobile terminal, for subsequent movement terminal
The calculating of the dump energy of battery.
Alternatively, using one second preset time as interval, the first voltage value and the second electricity of battery of mobile terminal are obtained
Pressure value, the first difference of first voltage value and second voltage value is obtained, and obtain the first absolute value of the first difference, judge first
Whether absolute value is more than predeterminated voltage difference:If the first absolute value is more than predeterminated voltage difference, and mobile terminal is in abnormal and transported
Dynamic state, then illustrate that violent oscillatory motion occurs for mobile terminal or abnormal conditions, the battery such as falls to be connected with battery of mobile terminal
Of short duration separation or loose contact occur for device, pressure difference increase, current magnitude of voltage should not be used to carry out battery dump energy meter
Calculate, therefore using first voltage value as effective voltage value, carry out further battery dump energy calculating;If the first absolute value is no more than pre-
If voltage difference, in conjunction with the motion state of mobile terminal, it can be determined that it is ordinary running condition to go out mobile terminal, and first is absolute
Value is within the scope of nominal error, can be ignored, therefore first voltage value and second voltage value can be effectively electric
Pressure value.It should be noted that mobile terminal is in ordinary running condition, battery of mobile terminal is in stable with battery connector and connected
State is connect, is not in the situation of pressure difference increase, that is, the first absolute value is not over predeterminated voltage difference.
Certainly, as skilled in the art to understand, can be using the second preset time as the multigroup mobile terminal of interval acquiring
Magnitude of voltage, it is acquired so as to obtain the effective voltage value of battery of mobile terminal for analyzing the motion state residing for mobile terminal
The magnitude of voltage group number of mobile terminal is more, and its analysis result is more accurate, and the present embodiment is carried out with the magnitude of voltage of two groups of mobile terminals
Analysis, for being only for example, not thereby causes to limit to mobile terminal magnitude of voltage group number acquired in the present embodiment.
Alternatively, the second preset time can be 1 millisecond, 2 milliseconds, 3 milliseconds etc., to realize to battery of mobile terminal voltage
Real-time monitoring, the second preset time is Millisecond, and the second preset time is shorter, obtain battery of mobile terminal voltage week during
Every shorter, just closer to the specific voltage change situation of mobile terminal, its analysis result is more accurate, does not limit herein.
Alternatively, predeterminated voltage difference can be 70mV, 80mV, 90mV etc., not limit herein, predeterminated voltage difference can
To include but is not limited to said circumstances, the determination of predeterminated voltage difference is required to reflect that abnormal motion occurs for mobile terminal,
The abnormal ups and downs for causing its battery both end voltage to occur, so as to judge the validity of battery of mobile terminal both end voltage, and then are obtained
Take the effective voltage value of battery of mobile terminal.
S204:Obtain the temperature curve information of battery of mobile terminal;
In the present embodiment, there is linear relationship in the resistance of battery of mobile terminal and temperature, under different temperatures, mobile terminal
The resistance of battery is different from the relation curve of temperature, therefore battery of mobile terminal can come with multigroup resistance-temperature relationship song
Line, corresponding resistance-temperature relationship curve, i.e. temperature curve information are found by the temperature of battery of mobile terminal, and combined current
Temperature draws the resistance of battery of mobile terminal this moment.Using one the 3rd preset time as interval, the first temperature of mobile terminal is obtained
Value and second temperature value, with reference to the motion state of corresponding moment mobile terminal, the first of battery of mobile terminal acquired in judgement
The validity of temperature value and second temperature value, so as to obtain the temperature curve information of battery of mobile terminal, for subsequent movement
The calculating of the dump energy of end cell.
Alternatively, using one the 3rd preset time as period distances, the first temperature value and the second temperature of mobile terminal are obtained
Angle value, the first temperature value and the second difference of second temperature value are obtained, and obtain the second absolute value of the second difference.Judge second
Whether absolute value is more than preset temperature difference:If the second absolute value is more than preset temperature difference, and mobile terminal is in normal fortune
Dynamic state, the temperature rise for illustrating mobile terminal is due to that heat caused by mobile terminal works causes its temperature to raise, therefore is needed
Temperature curve information of the temperature curve under corresponding temperature as mobile terminal is selected, i.e., temperature is bent corresponding to second temperature value
Line is the temperature curve information of mobile terminal;If the second absolute value is more than preset temperature difference, and mobile terminal is in abnormal and transported
Dynamic state, then illustrate that mobile terminal occurs violent oscillatory motion or the abnormal case such as falls, cause mobile terminal temperature anomaly liter
Height, therefore select temperature curve information of the temperature curve as mobile terminal corresponding to the first temperature value;If the second absolute value is not
More than preset temperature difference, then it is considered that the second difference is the normal temperature rise of mobile terminal, therefore the first temperature value and the
Temperature curve corresponding to two temperature values can be as the temperature curve information of mobile terminal.
Certainly, as skilled in the art to understand, can be using the 3rd preset time as the multigroup mobile terminal of interval acquiring
Temperature value, for analyzing the motion state residing for mobile terminal, so as to obtain the temperature curve information of battery of mobile terminal, obtained
Take that the temperature value group number of mobile terminal is more, and its analysis result is more accurate, and the present embodiment is entered with the temperature value of two groups of mobile terminals
Row analysis, for being only for example, not thereby causes to limit to mobile terminal temperature value group number acquired in the present embodiment.
Alternatively, the 3rd preset time can be 1 millisecond, 2 milliseconds, 3 milliseconds etc., to realize to battery of mobile terminal temperature
Real-time monitoring, the 3rd preset time is Millisecond, and the 3rd preset time is shorter, obtain battery of mobile terminal temperature week during
Every shorter, just closer to mobile terminal actual temp situation of change, its analysis result is more accurate, does not limit herein.
Alternatively, preset temperature difference can be 1 DEG C, 2 DEG C, 3 DEG C etc., certainly, as skilled in the art to understand, in advance
If temperature gap includes but is not limited to said circumstances, the determination of preset temperature difference is required to reflect that mobile terminal occurs greatly
Amplitude vibrations such as fall at the abnormal conditions, cause battery of mobile terminal temperature to produce abnormal rise, meet the pre- of above-mentioned condition
If temperature gap can not limited herein by the preset temperature difference that the present embodiment illustrates.
S205:Calculate the dump energy of battery of mobile terminal;
In the present embodiment, according to the effective voltage value and temperature curve information of above-mentioned acquired mobile terminal, carry out
The calculating of battery of mobile terminal dump energy.Current integrating method either open circuit voltage method etc. can be used, moves terminal
The calculating of battery dump energy.Certainly, using battery of mobile terminal voltage and the computational methods of temperature curve information, can be
The present embodiment calculates the computational methods of battery of mobile terminal dump energy, does not limit herein.
Alternatively, battery of mobile terminal dump energy is calculated using Current integrating method, its essence is in battery of mobile terminal
When carrying out charge or discharge, the dump energy of battery is calculated by accumulating the electricity for being charged into or releasing, while according to electric discharge
Rate and battery temperature compensate to result of calculation.Dump energy of the battery in discharge and recharge original state is set to SOC0, it is a certain
Moment battery of mobile terminal dump energy is set to SOC, SOC and SOC0Between functional relation be
Wherein Q is battery rated capacity, and η is efficiency for charge-discharge, also referred to as coulombic efficiency, and its value is influenceed by battery charging and discharging multiplying power and temperature
Coefficient determines that i is the moment battery current, according to the effective voltage value of above-mentioned acquired mobile terminal, and according to mobile whole
The temperature curve information at end determines the resistance of current mobile terminal battery, so as to calculate the moment battery current i, Jin Erji
Calculate battery of mobile terminal dump energy.
Alternatively, battery of mobile terminal dump energy is calculated using open circuit voltage method, its essence is according to mobile terminal electricity
Variation relation between the open-circuit voltage and inside battery lithium concentration in pond, the open circuit electricity of battery of mobile terminal is fitted indirectly
One-to-one relation between pressure and the dump energy of battery of mobile terminal.The battery of mobile terminal is at full charge afterwards with solid
Determine discharge-rate (can be 1C) to be discharged, until the voltage of battery stops electric discharge, root when being reduced to the blanking voltage of battery
The relation curve between battery open circuit voltage and dump energy is obtained according to the discharge process, when battery is in actual working state
When, it is bent by the relation between battery open circuit voltage and dump energy according to the effective voltage value at the battery both ends of above-mentioned acquisition
Line, battery dump energy corresponding to present active voltage value is obtained, so as to calculate battery of mobile terminal dump energy.
S206:The result of calculation of battery of mobile terminal dump energy is compensated;
In the present embodiment, above-described embodiment is used for the computational methods for calculating mobile terminal dump energy, to a certain extent
Ignore the influence of battery self discharge rate, degree of aging and charge-discharge magnification to battery dump energy, and battery is in not equality of temperature
There is very big difference in degree or different periods in life-span, its internal resistance, for a long time in the past can be to battery of mobile terminal dump energy
Result of calculation causes larger error, therefore is repaiied according to the effective voltage value and temperature curve information, introducing of battery of mobile terminal
Positive coefficient is corrected to the accumulated error of battery of mobile terminal dump energy result of calculation, to ensure battery of mobile terminal residue
The accuracy of electricity result of calculation.
S207:Show the dump energy of battery of mobile terminal;
In the present embodiment, according to the dump energy of calculated battery of mobile terminal, result of calculation is shown in movement
The user interface of terminal, can in the form of percentage either column figure or be the two combination in the form of show, herein
Do not limit.
In summary, present invention motion state according to residing for mobile terminal, the movement state information of mobile terminal, root are obtained
According to the movement state information of mobile terminal, the effective voltage value and temperature curve information of mobile terminal are obtained, and then calculates and moves
The dump energy of dynamic end cell, while according to the effective voltage value and temperature curve information of acquired mobile terminal, to meter
Calculate result and introduce correction factor, it is possible to increase the accuracy of the dump energy result of calculation of battery of mobile terminal.
Referring to Fig. 3, Fig. 3 is the structural representation of the embodiment of mobile terminal one of the present invention.
In the present embodiment, mobile terminal 300 includes processor 301, the detection induction installation 303 of circuit 302 and first,
Processor 301 is connected with the detection induction installation 303 of circuit 302 and first respectively, and detection circuit 302 is used to gather mobile terminal
The magnitude of voltage of 300 batteries 304, such as pass through circuit and the voltage of the DC converters acquisition battery 304 of current mobile terminal 300
Value, the first induction installation 303 are used for the movement state information for gathering mobile terminal 300, and mobile terminal 300 also includes battery and connected
Device 305, can be connected by thimble or FPC with the circuit main board of mobile terminal 300, at the same with the battery 304 of mobile terminal 300
Electrical connection, to be powered for mobile terminal 300, mobile terminal 300 also includes display device 306, to mobile terminal 300 is electric
The result of calculation of the dump energy of pond 304 is shown that processor 301 is able to carry out program to realize that above-described embodiment illustrates shifting
The remaining battery capacity calculation method of dynamic terminal, is just repeated no more herein.
Alternatively, the first induction installation 303 can be acceleration transducer etc., such as gravity accelerometer, direction
Sensor, angular transducer etc., the situation of change of the acceleration of mobile terminal 300 can be monitored in real time, can be the present embodiment institute
The first induction installation 303 illustrated, is not limited herein.
Alternatively, mobile terminal 300 further comprises the second induction installation 307, and the second induction installation 307 can be temperature
Sensor, for gathering the temperature value of the battery 304 of mobile terminal 300, the different temperatures value of the battery 304 of mobile terminal 300 is corresponding
Different temperature curve information, processor 301 can be according to the movement state information of mobile terminal 300, effective voltage value and temperature
Calibration curve information is spent, calculates the charged state or discharge condition of the battery 304 of mobile terminal 300, and then calculate the battery of mobile terminal 300
304 dump energy.
Referring to Fig. 4, Fig. 4 is the structural representation of the embodiment of inventive memory device one.
In the present embodiment, storage device 400 is had program stored therein data 401, and routine data 401 can be performed to realize
Above-described embodiment illustrates the remaining battery capacity calculation method of mobile terminal, just repeats no more herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can
To realize by another way.For example, device embodiments described above are schematical, for example, the module or
The division of unit, it is a kind of division of logic function, can there is other dividing mode, such as multiple units or group when actually realizing
Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown
Or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit it is indirect
Coupling or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of present embodiment according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this
The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, it is included within the scope of the present invention.