CN102946479A - Method for mobile terminal to update electric quantity of battery and mobile terminal - Google Patents

Method for mobile terminal to update electric quantity of battery and mobile terminal Download PDF

Info

Publication number
CN102946479A
CN102946479A CN2012104322861A CN201210432286A CN102946479A CN 102946479 A CN102946479 A CN 102946479A CN 2012104322861 A CN2012104322861 A CN 2012104322861A CN 201210432286 A CN201210432286 A CN 201210432286A CN 102946479 A CN102946479 A CN 102946479A
Authority
CN
China
Prior art keywords
electric weight
battery
original
mobile terminal
power consumption
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.)
Granted
Application number
CN2012104322861A
Other languages
Chinese (zh)
Other versions
CN102946479B (en
Inventor
陈飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201210432286.1A priority Critical patent/CN102946479B/en
Publication of CN102946479A publication Critical patent/CN102946479A/en
Application granted granted Critical
Publication of CN102946479B publication Critical patent/CN102946479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for mobile terminal to update the electric quantity of a battery and the mobile terminal. The method comprises the steps that the battery voltage is collected when the mobile terminal system is started, and the original electric quantity of the battery is obtained through a pre-established voltage and electric quantity conversion table; the current battery voltage is collected to obtain the current collected electric quantity of the battery, and theoretical charging-discharging electric quantity of the battery of the mobile terminal is calculated according to a collection time interval; the collected electric quantity is compared with the original electric quantity, and whether the collected electric quantity is the real current electric quantity of the battery or not is judged in combination with the theoretical charging-discharging electric quantity; and if not, the real current electric quantity of the battery is estimated according to the theoretical charging-discharging electric quantity; and the original electric quantity is updated to the real current electric quantity of the battery and distributed to each functional module of the mobile terminal system. The method has the advantages that the real current electric quantity of the battery is accurately obtained through a battery charging-discharging pre-estimation mechanism, thereby effectively avoiding abnormal fluctuation phenomena from occurring when the electric quantity of the battery is updated by the mobile terminal.

Description

A kind of method of mobile terminal to update battery electric quantity and portable terminal
Technical field
The present invention relates to field of mobile terminals, in particular a kind of method of mobile terminal to update battery electric quantity and portable terminal.
Background technology
Along with the development of mobile communication technology and improving constantly of people's living standard, the use of various portable mobile termianls such as mobile phone is more and more universal, has become the important part of people's daily life.
Present portable mobile termianl generally adopts powered battery, needs in real time the battery electric quantity situation to be upgraded and informed each functional module of described portable terminal; The battery electric quantity update mode of prior art is: gather the voltage of battery, determine the electric weight that battery is current and carry out the electric weight renewal by the corresponding relation of voltage electric weight.But owing to battery of mobile terminal voltage can change along with the variation of mobile terminal system load, when the mobile terminal system load increases the weight of suddenly, cell voltage can reduce accordingly, cell voltage then occurs ging up when load reduction, the battery electric quantity that obtains by said method when for example using portable terminal to make a phone call is lower, but after finishing conversation a period of time, find that battery electric quantity occurs ging up on the contrary.Therefore it is not accurate enough that prior art is upgraded the method for battery electric quantity, the situation of battery electric quantity recurrent fluctuations can occur, the difficulty of bringing for the managing electric quantity of portable terminal.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, defects for prior art, a kind of method and portable terminal of mobile terminal to update battery electric quantity are provided, it is by the estimation mechanism of a power consumption/charging, the electric weight recurrent fluctuations problem that has occurred when having solved mobile terminal to update battery electric quantity in the prior art.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of method of mobile terminal to update battery electric quantity wherein, comprises step:
When S1, mobile terminal system startup, gather cell voltage and draw battery electric quantity by the voltage electric weight conversion table of setting up in advance, be designated as the first original electric weight; Start simultaneously a timer;
S2, detect mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, when detecting mobile terminal system and enter low-power consumption mode, the time that the record move terminal system enters low-power consumption mode is the very first time, closes described timer;
S3, reception user operational order wake mobile terminal system up, and recording the described mobile terminal system current time was the second time; Control gathers cell voltage and draws the first current collection electric weight of battery by described voltage electric weight conversion table; Calculate simultaneously the theoretical charge/discharge electricity amount of battery within the described time very first time to the second;
S4, gather electric weight with described first and compare with the described first original electric weight, judge in conjunction with described theoretical charge/discharge electricity amount whether described the first collection electric weight is the current true electric weight of battery;
S5, when described first gathers electric weight and is the current true electric weight of battery, upgrade the described first original electric weight and be described first and gather electric weight; Otherwise calculate the current estimation electric weight of battery according to described theoretical charge/discharge electricity amount, upgrading the described first original electric weight is described estimation electric weight;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing; Waken system accuses that portable terminal processed enters non-low-power consumption mode.
The method of described mobile terminal to update battery electric quantity wherein, also comprises step after the described step S5:
The first original electric weight after S6, distribution are upgraded is to each functional module of mobile terminal system.
The method of described mobile terminal to update battery electric quantity, wherein, when the theoretical charge/discharge electricity amount of the battery within the described time very first time to the second of the calculating among the step S3 specifically comprises step:
If the described portable terminal of step S31 is in charged state, calculate then that the theoretic maximum of battery is filled with electric weight within the described time very first time to the second;
If the described portable terminal of step S32 is in non-charged state, then calculate the theoretic maximum power consumption electric weight of battery within the described time very first time to the second;
Described step S4 specifically comprises step:
If the described portable terminal of step S41 is in charged state, control gathers electric weight with described first and the first original electric weight compares, when described first gathers electric weight and be filled with electric weight greater than the described first original electric weight and its difference less than described maximum, judge that described first gathers electric weight and be the current true electric weight of battery;
If the described portable terminal of step S42 is in non-charged state, control gathers electric weight with described first and the first original electric weight compares, when the described first original electric weight greater than described the first collection capacity and its difference during less than described maximum power consumption electric weight, judge that described first gathers electric weight and be the current true electric weight of battery.
The method of described mobile terminal to update battery electric quantity, wherein, described step S5 comprises step:
S51, when described first gathers electric weight and is the current true electric weight of battery, upgrade the described first original electric weight and be described first and gather electric weight;
S52, when described first gathers electric weight and is not the current true electric weight of battery, if portable terminal is in charged state, then is filled with electric weight according to the theoretic maximum of battery and calculates the current estimation electric weight of battery and upgrade the described first original electric weight, be specially:
When described first gathers electric weight less than described the first original electric weight, keep the described first original electric weight constant; When described first gathers electric weight and is filled with electric weight greater than the described first original electric weight and its difference greater than described maximum, calculate the described first original electric weight and described maximum be filled with electric weight and as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight;
S53, when described first gathers electric weight and is not the current true electric weight of battery, if portable terminal is in non-charged state, then calculates the current estimation electric weight of battery and upgrade the described first original electric weight according to the theoretic maximum power consumption electric weight of battery, be specially:
When described first gathers electric weight greater than described the first original electric weight, keep the described first original electric weight constant; When the described first original electric weight gathers electric weight and its difference greater than described maximum power consumption electric weight greater than described first, calculate the difference of the described first original electric weight and described maximum power consumption electric weight as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight.
A kind of portable terminal that adopts the method for described mobile terminal to update battery electric quantity wherein, comprising:
The first initial module, be used for when mobile terminal system starts, gathering cell voltage, and draw battery electric quantity by the voltage electric weight conversion table of in advance foundation, be designated as the first original electric weight; Start simultaneously a timer;
Detection module, be used for detecting mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, when detecting mobile terminal system and enter low-power consumption mode, the time that the record move terminal system enters low-power consumption mode is the very first time, closes described timer;
The first acquisition module, be used for to receive user's operational order waken system, the record move terminal system current time was the second time; Gather cell voltage and draw the first current collection electric weight of battery by described voltage electric weight conversion table; And calculating theoretic charge/discharge electricity amount of battery within the described time very first time to the second;
The first judge module, be used for will described first gathering electric weight and the described first original electric weight compares, judge in conjunction with the theoretic charge/discharge electricity amount of battery whether described the first collection electric weight is the current true electric weight of battery;
The first update module, be used for when described first gathers electric weight and be the current true electric weight of battery, upgrading the described first original electric weight is described the first collection electric weight; Otherwise, calculate the current estimation electric weight of battery according to the theoretic charge/discharge electricity amount of battery, and to upgrade the described first original electric weight be described estimation electric weight;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing; Waken system accuses that mobile terminal system processed enters non-low-power consumption mode.
Described portable terminal wherein, also comprises:
The first distribution module, be used for the first original electric weight after distribution is upgraded to each functional module of mobile terminal system.
Described portable terminal, wherein, described the first acquisition module comprises:
Collecting unit, be used for to receive user's operational order and wake mobile terminal system up, the record move terminal system current time was the second time; Gather simultaneously cell voltage and draw the first current collection electric weight of battery by described voltage electric weight conversion table;
The charging computing unit, be used for when portable terminal is in charged state, calculating that the theoretic maximum of battery is filled with electric weight within the described time period very first time to the second;
The power consumption computing unit, be used for when portable terminal is in non-charged state, calculating the theoretic maximum power consumption electric weight of battery within the described time period very first time to the second;
Described the first judge module specifically is used for, described the first collection electric weight and the described first original electric weight are compared, when described portable terminal is in charged state and described first and gathers electric weight and be filled with electric weight greater than the described first original electric weight and its difference less than described maximum, perhaps when described portable terminal is in non-charged state and the described first original electric weight and gathers electric weight and its difference less than described maximum power consumption electric weight greater than described first, judge that described first gathers electric weight and be the current true electric weight of battery.
Described portable terminal, wherein, described the first update module comprises:
The first updating block, be used for when described first gathers electric weight and be the current true electric weight of battery, upgrading the described first original electric weight is described the first collection electric weight;
The second updating block, be used for when described the first collection electric weight is not the current true electric weight of battery, if portable terminal is in charged state, then be filled with electric weight according to the theoretic maximum of battery and calculate the current estimation electric weight of battery and upgrade the described first original electric weight, be specially:
When described first gathers electric weight less than described the first original electric weight, keep the described first original electric weight constant; When described first gathers electric weight and is filled with electric weight greater than the described first original electric weight and its difference greater than described maximum, calculate the described first original electric weight and described maximum be filled with electric weight and as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight;
The 3rd upgrade the unit, be used for when described the first collection electric weight is not the current true electric weight of battery, if portable terminal is in non-charged state, then calculate the current estimation electric weight of battery and upgrade the first original electric weight according to the theoretic maximum power consumption electric weight of battery, be specially:
When described first gathers electric weight greater than described the first original electric weight, keep the described first original electric weight constant; When the described first original electric weight gathers electric weight and its difference greater than described maximum power consumption electric weight greater than described first, calculate the difference of the described first original electric weight and described maximum power consumption electric weight as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight.
A kind of method of mobile terminal to update battery electric quantity wherein, comprises step:
Gather cell voltage and draw battery electric quantity by the voltage electric weight conversion table of setting up in advance when L1, mobile terminal system startup, be designated as the second original electric weight; Start simultaneously a timer;
L2, detect mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, do not enter low-power consumption mode if detect mobile terminal system, then when described timer expiry, gather cell voltage, and draw the second current collection electric weight of battery by described voltage electric weight conversion table;
L3, gather electric weight and the described second original electric weight compares with described second, when portable terminal is in charged state and described second and gathers electric weight less than or equal to described the second original electric weight, perhaps when portable terminal is in non-charged state and described second and gathers electric weight more than or equal to described the second original electric weight, judging described second, to gather electric weight be not the current true electric weight of battery;
L4, when described second gathers electric weight and is not the current true electric weight of battery, keep the described second original electric weight constant; Otherwise, if portable terminal be in charged state then control upgrade the described second original electric weight be the described second original electric weight add 1 and, if then upgrade when portable terminal is in non-charged state the described second original electric weight be the second original electric weight subtract 1 poor;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing.
The method of described mobile terminal to update battery electric quantity wherein, also comprises step after the described step L4:
The second original electric weight after L5, distribution are upgraded is to each functional module of mobile terminal system.
A kind of portable terminal that adopts the method for described mobile terminal to update battery electric quantity wherein, comprising:
The second initial module, be used for when mobile terminal system starts the collection cell voltage and draw battery electric quantity by pre-stored voltage electric weight conversion table at mobile terminal system, be designated as the second original electric weight, start simultaneously a timer, whether enter low-power consumption mode to detect mobile terminal system in predetermined time at described timer;
If the second acquisition module, be used for when described timer does not detect mobile terminal system and enters low-power consumption mode in predetermined time, then when described timer expiry, gather cell voltage also, and draw the second current collection electric weight of battery by described voltage electric weight conversion table;
The second judge module, be used for will described the second collection electric weight and the described second original electric weight compare, when portable terminal is in charged state and described second and gathers electric weight less than or equal to described the second original electric weight, perhaps when portable terminal is in non-charged state and described second and gathers electric weight more than or equal to described the second original electric weight, judging described second, to gather electric weight be not the current true electric weight of battery;
The second update module, be used for when described the second collection electric weight is not the current true electric weight of battery, keeping the described second original electric weight constant; Otherwise, if portable terminal be in charged state then control upgrade the described second original electric weight be the described second original electric weight add 1 and, if portable terminal be in non-charged state then upgrade the described second original electric weight be the second original electric weight subtract 1 poor;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing.
Described portable terminal wherein, also comprises:
The second distribution module, be used for the second original electric weight after distribution is upgraded to each functional module of mobile terminal system.
The method of a kind of mobile terminal to update battery electric quantity provided by the present invention and portable terminal, it carries out verification and correction by a battery charging and discharging pre-estimation mechanism to the battery electric quantity that directly collects, and can draw the accurately current electric weight of battery; Make portable terminal increase new function: can draw accurately the current true electric weight of battery and upgrade to carry out electric weight, the unusual fluctuations that occurred when effectively having avoided mobile device to upgrade battery electric quantity; And the present invention need not specific hardware supports, realizes that cost is low, is conducive to apply in the portable mobile termianl that has come into operation in a large number.
Description of drawings
Fig. 1 is the flow chart of the first embodiment of the method for a kind of mobile terminal to update battery electric quantity of the present invention.
Fig. 2 is the flow chart of the second embodiment of the method for a kind of mobile terminal to update battery electric quantity of the present invention.
Fig. 3 is the specific algorithm flow chart of embodiment of the method for a kind of mobile terminal to update battery electric quantity of the present invention.
Fig. 4 is the first embodiment theory diagram of a kind of portable terminal of the present invention.
Fig. 5 is the first acquisition module theory diagram of the first embodiment of a kind of portable terminal of the present invention.
Fig. 6 is the first update module theory diagram of the first embodiment of a kind of portable terminal of the present invention.
Fig. 7 is the theory diagram of the second embodiment of a kind of portable terminal of the present invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The method of a kind of mobile terminal to update battery electric quantity of the present invention needed to test the corresponding relation that records described battery of mobile terminal voltage and electric weight, the following table[of described corresponding relation that records in the present embodiment before implementing] shown in:
table[]?=
{
100,100,100,100,100,100,99,99,99,99, the electric weight that // 4.11V – 4.2V is corresponding
99,98,98,97,97,96,96,95,95,94, the electric weight that // 4.01V – 4.1V is corresponding
93,93,92,91,90,90,89,88,87,86, the electric weight that // 3.91V – 4V is corresponding
85,84,83,82,80,79,78,76,75,73, the electric weight that // 3.81V – 3.9V is corresponding
72,70,69,67,65,63,61,58,56,53, the electric weight that // 3.71V – 3.8V is corresponding
50,47,44,40,36,31,27,24,22,19, the electric weight that // 3.61V – 3.7V is corresponding
17,14,12,10,9,8,7,6,6,5, the electric weight that // 3.51V – 3.6V is corresponding
5,4,4,4,4,3,3,3,3,3, the electric weight that // 3.41V – 3.5V is corresponding
2,2,2,2,2,2,2,1,1,1, the electric weight that // 3.31V – 3.4V is corresponding
1,1,1,1,1,1,1,1,0,0, the electric weight that // 3.21V – 3.3V is corresponding
0,0,0,0,0,0,0,0,0,0, the electric weight that // 3.11V – 3.2V is corresponding
0,0,0,0,0,0,0,0,0,0, the electric weight that // 3.01V – 3.1V is corresponding
The electric weight that 0,0 // 2.99V – 3V is corresponding
};
Based on above-mentioned battery of mobile terminal voltage and the corresponding relation of electric weight, in mobile terminal system, set up in advance a voltage electric weight conversion table.On this basis, the flow chart of the first embodiment of the method for a kind of mobile terminal to update battery electric quantity of the present invention said method comprising the steps of as shown in Figure 1:
When 100, mobile terminal system starts, gather cell voltage, and draw battery electric quantity (battery capacity of mobile terminal namely is the mobile terminal system electric weight) by the voltage electric weight conversion table of setting up in advance, be designated as the first original electric weight; Start simultaneously a timer, with detect described timer in predetermined time described mobile terminal system whether enter low-power consumption mode.
Setting described timer predetermined time in the present embodiment is 30 seconds, when described timer expiry, ADC(Analog to Digital Converter with triggering mobile terminals, analog-digital converter) gathers cell voltage, timer restarts timing simultaneously, with real-time update system electric weight.When detecting mobile terminal system in predetermined time at described timer and enter low-power consumption mode, then close described timer.Wherein, the characteristic feature of described low-power consumption mode is that backlight, the screen of portable terminal is in closed condition, corresponding non-low-power consumption mode (also claiming high power consumption mode) but characteristic feature be that backlight, the screen of portable terminal is in operating state.
101, detect mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, when detecting mobile terminal system and enter low-power consumption mode, the record move terminal system current time is T1, closes described timer.
102, receive user's operational order and wake mobile terminal system up, recording the described mobile terminal system current time is T2; And gather cell voltage and draw the first current collection electric weight of battery by described voltage electric weight conversion table; Calculate simultaneously described battery of mobile terminal and subtract the theoretical charge/discharge electricity amount of T1 in the time at T2, enter step 103.
103, described the first collection electric weight and the described first original electric weight are compared, judge that in conjunction with described theoretical charge/discharge electricity amount described first gathers whether electric weight is the current true electric weight of battery.Enter step 104.
104, when described first gathers electric weight and be the current true electric weight of battery, upgrade the described first original electric weight and be described first and gather electric weight; Otherwise, calculate the current estimation electric weight of described battery according to described theoretical charge/discharge electricity amount, then upgrading the described first original electric weight is described estimation electric weight.
The primary cell electric weight upgrade to finish, and distributes after the described renewal the first original electric weight to each functional module of mobile terminal system.
The present invention also provides a kind of the second embodiment of method of mobile terminal to update battery electric quantity, as shown in Figure 2, said method comprising the steps of:
Gather cell voltage when 200, portable terminal starts and draw battery electric quantity by the voltage electric weight conversion table of setting up in advance, be designated as the second original electric weight; Start simultaneously a timer, whether enter low-power consumption mode at described timer in predetermined time to detect mobile terminal system.
201, detect mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, do not enter low-power consumption mode if detect mobile terminal system, then when described timer expiry, gather cell voltage, and draw the second current collection electric weight of battery by described voltage electric weight conversion table.
202, described the second collection electric weight and the described second original electric weight are compared, judge according to the charging and discharging state of portable terminal whether described the second collection electric weight is the current true electric weight of battery.In the embodiment of the invention, described determination methods is: when portable terminal is in charged state and described second and gathers electric weight less than or equal to described the second original electric weight, perhaps when portable terminal is in non-charged state and described second and gathers electric weight more than or equal to described the second original electric weight, judging described second, to gather electric weight be not the current true electric weight of battery.
203, when described second gathers electric weight and be not the current true electric weight of battery, then keep the described second original electric weight constant; Otherwise, if portable terminal be in charged state then control upgrade the described second original electric weight be the described second original electric weight add 1 and, if then upgrade when portable terminal is in for non-charged state the described second original electric weight be original electric weight subtract 1 poor.
At last, the second original electric weight was to each functional module of mobile terminal system after distribution was upgraded.
Particularly, the below's act specific embodiment is further explained explanation to the method for mobile terminal to update battery electric quantity of the present invention.As shown in Figure 3, when starting mobile terminal system, gather cell voltage and draw battery electric quantity by the voltage electric weight conversion table of setting up in advance, be designated as original electric weight C1; And start a timer.Detect mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, when detecting described mobile terminal system and enter low-power consumption mode, the record move terminal system current time is T1, closes simultaneously described timer.Specifically see embodiment one and embodiment two to two kinds of situations of operation of battery electric quantity update this moment.
Embodiment one: mobile terminal system has entered low-power consumption mode, and described portable terminal is in charged state.
Shown in 1 branch among Fig. 3, portable terminal receives the operational order that the user lights screen, wake mobile terminal system up so that it enters non-low-power consumption mode, namely enter high power consumption mode, the record move terminal system current time is T2, and drawing the time span that mobile terminal system is in low-power consumption mode is T=T2-T1.The ADC that control starts in the mobile terminal system gathers cell voltage, draws corresponding battery electric quantity by described voltage electric weight conversion table, namely draws the current collection electric weight of battery, is designated as C2; Calculate simultaneously that the theoretic maximum of described battery of mobile terminal is filled with electric weight in described time T, be designated as Q0.The computational methods of described Q0 are: the charging ability K(that at first measures described battery is the maximum electric weight that per second can be filled with, charge to the 1000mAh battery such as the 360mA charging current, K=0.01 so), K being multiply by described time T namely obtains the maximum of described battery in time T and is filled with electric weight Q0.
Control compares described C2 and C1, if C2<=C1, because its battery electric quantity can not reduce when portable terminal was in charged state, therefore can judge the certainly not current true electric weight of battery of C2, keep described battery capacity of mobile terminal this moment is C1, and namely giving tacit consent to the current true electric weight of battery is C1.
If described C2〉C1, the difference and the described Q0 that then further described C2 are subtracted C1 compare, as C2-C1〉during Q0, because described Q0 is that described battery of mobile terminal theoretic maximum in time T is filled with electric weight, therefore can judge that described C2 is not the current true electric weight of battery, then control control the more original electric weight C1=C1+Q0 of new record with C1 and Q0's and as the current estimation electric weight of battery.When C2-C1<=Q0, can judge that then described C2 is the current true electric weight of battery, C1=C2 is upgraded in control.Then the described original electric weight after will upgrading is distributed to each functional module of described mobile terminal system, restarts simultaneously described timer.Specifically can realize by the following is code:
If (current collection electric weight C2〉record original electric weight C1 and charged state and low-power consumption mode)
{
If(C2>C1+K*T)
Battery electric quantity update is C1+K*T;
Else
Battery electric quantity update is C2;
}
Else
{
The value C1 of the original electric weight before battery electric quantity keeps ignores the battery electric quantity that current collection obtains;
}
For example: the original electric weight C1=50(battery electric quantity of hypothetical record is 100 to the maximum, 50 is 50% electric weight), current collection electric weight C2=53, T1=12:30:00, T2=12:31:40, described battery of mobile terminal charging ability K=0.01 is supposed in T=100 second so, can get Q0=1, because C2-C1〉Q0, being C2〉C1+Q0, so the current true electric weight of the battery that estimates is 51 (they being C1+Q0), upgrade original electric weight C1=51.Each functional module that original electric weight 51 was given mobile terminal system after distribution was upgraded restarts described timer simultaneously.
Embodiment two: mobile terminal system has entered low-power consumption mode, and described portable terminal is in non-charged state.
Shown in 2 branches among Fig. 3, receive the operational order that the user wakes screen up, wake mobile terminal system up and make it enter high power consumption mode, the record move terminal system current time is T02, and drawing the time span that mobile terminal system is in low-power consumption mode is T0=T02-T1.The ADC that simultaneously control starts in the mobile terminal system gathers the current voltage of battery, draws the current collection electric weight of battery by the corresponding table of described voltage electric weight, is designated as C02; Calculate simultaneously at the theoretic maximum power consumption electric weight of described time T 0 interior battery, be designated as Q00.
Described C02 and C1 are compared, if C02 〉=C1, battery electric quantity may increase scarcely when being in non-charged state owing to portable terminal, therefore can judge the certainly not current true electric weight of battery of C02, do not upgrade battery electric quantity this moment, and namely keeping battery electric quantity is original electric weight C1.
If described C02<C1, the value and the described Q00 that then further described C1 are subtracted C02 compare, as C1-C02〉during Q00, because described Q00 is that described battery of mobile terminal is at time T 0 interior theoretic maximum power consumption electric weight, therefore can judge that described C02 is not the current true electric weight of battery, control with the difference of C1-Q00 as the current estimation electric weight of battery; C1=C1-Q00 is upgraded in control.When C1-C02<=Q00, can judge that then it is the current true electric weight of battery that described C02 is, C1=C02 is upgraded in control.Then the original electric weight C1 after will upgrading is distributed to each functional module in the mobile terminal system, restarts simultaneously described timer, and again monitors described portable terminal and whether entered low-power consumption mode.Specifically can realize by the following is code:
If (original electric weight C1 and non-charged state and the low-power consumption mode of current collection electric weight C02<record)
{
If(C02<C1-K*T0)
Battery electric quantity update is C1-K*T0;
Else
Battery electric quantity update is C02;
}
Else
{
Keeping the value of battery electric quantity is C1, ignores the battery electric quantity of current collection;
}
For example: the original electric weight C1=50 of hypothetical record, C2=47, T1=12:30:00, T02=12:40:00, K=0.01, T0=600 second so, Q00=6 are because C02<C1 and C02〉C1-K*T0, so original electric weight C1 just should be updated to C02, be that current battery electric quantity update is 47, and be distributed to other modules uses of mobile terminal system.
Therefore, as described in above-mentioned embodiment one, two, when mobile terminal system enters high power consumption mode by low-power consumption, according to battery charging ability or power consumption ability, estimate low-power consumption mode in the time period the theoretic maximum of described battery of mobile terminal be filled with electric weight (charged state) or maximum power consumption electric weight (non-charged state).When described collection electric weight charge status obvious and described battery of mobile terminal is run counter to, be that the described collection electric weight of charged state is on the contrary less than described original electric weight, perhaps described collection electric weight then keeps battery electric quantity constant on the contrary greater than described original electric weight during non-charged state; When the changing value of the original electric weight that gathers the relatively last record of electric weight exceeds the theoretic maximum charge/discharge electricity amount of battery, be filled with electric weight (charged state) or maximum power consumption electric weight (non-charged state) estimates the current true electric weight of battery according to described maximum; Otherwise gather collection electric weight that cell voltage obtains as the current true electric weight of battery take current ADC, control battery electric quantity after the battery electric quantity of new record more and distribution are upgraded to other functional modules of mobile terminal system.
Be specific embodiment one, two based on above-mentioned the first embodiment, the invention provides a kind of portable terminal that adopts the method for described mobile terminal to update battery electric quantity, such as Fig. 4, comprising:
The first initial module 410, be used for when mobile terminal system starts, gathering cell voltage, and draw the battery electric weight of uniting by the voltage electric weight conversion table of setting up in advance, be designated as the first original electric weight; Start simultaneously a timer, whether enter low-power consumption mode at described timer in predetermined time with the monitoring mobile terminal system.Specifically described with reference to Fig. 1 and embodiment.
Detection module 420, be used for detecting mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, when detecting mobile terminal system and enter low-power consumption mode, the time that the record move terminal system enters low-power consumption mode is the very first time, closes described timer; Specifically described with reference to Fig. 1 and embodiment.
The first acquisition module 430, be used for to receive user's operational order waken system, the record move terminal system current time was the second time; Gather simultaneously cell voltage and draw the first current collection electric weight of battery by described voltage electric weight conversion table; And calculating theoretic charge/discharge electricity amount of battery within the described time very first time to the second; Specifically described with reference to Fig. 1 and embodiment.
The first judge module 440, be used for will described first gathering electric weight and the described first original electric weight compares, judge in conjunction with the theoretic charge/discharge electricity amount of battery whether described the first collection electric weight is the current true electric weight of battery; Specifically described with reference to Fig. 1 and embodiment.
The first update module 450, be used for when described first gathers electric weight and be the current true electric weight of battery, upgrading the described first original electric weight is described the first collection electric weight; Otherwise, calculate the current estimation electric weight of battery according to the theoretic charge/discharge electricity amount of battery, and to upgrade the described first original electric weight be described estimation electric weight; Specifically described with reference to Fig. 1 and embodiment.
Further, described mobile phone also comprises:
The first distribution module 460, be used for the first original electric weight after distribution is upgraded to each functional module of mobile terminal system.
Better, as shown in Figure 5, described the first acquisition module 430 comprises:
Collecting unit 431, be used for to receive user's operational order waken system, the record move terminal system current time was the second time; Gather simultaneously cell voltage and draw the first current collection electric weight of battery by described voltage electric weight conversion table;
Charging computing unit 432, be used for when portable terminal is in charged state, calculating that the theoretic maximum of battery is filled with electric weight within the described time period very first time to the second;
Power consumption computing unit 433, be used for when portable terminal is in non-charged state, calculating the theoretic maximum power consumption electric weight of battery within the described time period very first time to the second;
Described the first judge module 440 specifically is used for, described the first collection electric weight and the described first original electric weight are compared, when described portable terminal is in charged state and described first and gathers electric weight and be filled with electric weight greater than the described first original electric weight and its difference less than described maximum, perhaps when described portable terminal is in non-charged state and the described first original electric weight and gathers electric weight and its difference less than described maximum power consumption electric weight greater than described first, judge that described first gathers electric weight and be the current true electric weight of battery.
Better, as shown in Figure 6, described the first update module 450 comprises:
The first updating block 451, be used for when described first gathers electric weight and be the current true electric weight of battery, upgrading the described first original electric weight is described the first collection electric weight;
The second updating block 452, be used for when described the first collection electric weight is not the current true electric weight of battery, if portable terminal is in charged state, then be filled with electric weight according to the theoretic maximum of battery and calculate the current estimation electric weight of battery and upgrade the described first original electric weight, be specially:
When described first gathers electric weight less than described the first original electric weight, keep the described first original electric weight constant, when described first gathers electric weight and is filled with electric weight greater than the described first original electric weight and its difference greater than described maximum, calculate the described first original electric weight and described maximum be filled with electric weight and as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight;
The 3rd upgrade unit 453, be used for when described the first collection electric weight is not the current true electric weight of battery, if portable terminal is in non-charged state, then calculate the current estimation electric weight of battery and upgrade the first original electric weight according to the theoretic maximum power consumption electric weight of battery, be specially:
When described first gathers electric weight greater than described the first original electric weight, keep the described first original electric weight constant, when the described first original electric weight gathers electric weight and its difference greater than described maximum power consumption electric weight greater than described first, calculate the difference of the described first original electric weight and described maximum power consumption electric weight as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight.
Further, do not enter low-power consumption mode if detect mobile terminal system in the scheduled time at described timer, also there are two kinds of situations in the present invention to the renewal of battery electric quantity, embodiment three specific as follows and embodiment four.
Embodiment three: described mobile terminal system is high power consumption mode, and described portable terminal is in the state of charging.
Shown in 3 branches among Fig. 3, when within the described scheduled time, not detecting mobile terminal system and enter low-power consumption mode, trigger described ADC and gather the current voltage of battery, draw the current collection electric weight of battery by the corresponding table of described voltage-electric weight, be designated as M2.
Control compares described M2 and C1, owing to be charging, battery electric quantity can not reduce, and just upgrades battery electric quantity during greater than the original electric weight that records before so only have when described collection electric weight.M2<=C1 even, then keeping battery electric quantity is C1, namely the mobile terminal system acquiescence with described C1 as the current true electric weight of battery.If described M2〉C1, then control renewal battery electric quantity is C1+1, i.e. described original electric weight C1=C1+1 is upgraded in control.Battery electric quantity after upgrading is distributed to each functional module of mobile terminal system, restarts simultaneously described timer.
Need to prove that in the embodiment of the invention, mobile terminal system is in the increase of battery electric quantity under the high power consumption mode or reduces take 1 as unit metering, the situation that can avoid battery electric quantity to alter a great deal suddenly specifically can realize by the following is code:
If (current collection electric weight M2〉record original electric weight C1 and charged state and high power consumption mode)
{
Upgrade battery electric quantity C1=C1+1;
}
Else
{
The C1 of the record before battery electric quantity keeps, the battery electric quantity that current collection is obtained is left in the basket;
}
Embodiment four: described mobile terminal system is high power consumption mode, and described portable terminal is in the state of non-charging.
Shown in 4 branches among Fig. 3, when described timer expiry; Trigger the voltage that described ADC gathers current battery, draw the current collection electric weight of battery by the corresponding table of described voltage electric weight, be designated as M02.
Control compares described M02 and C1, if M02 〉=C1, because battery electric quantity must be to reduce when portable terminal was in non-charged state, therefore can judge the certainly not current true electric weight of battery of M02, keep battery electric quantity this moment is that original electric weight C1 does not upgrade, and namely giving tacit consent to the current true electric weight of battery is original electric weight C1.If described M02<C1, control is updated to C1-1 with the battery current electric quantity, and the original electric weight C1=C1-1 of new record more.Then the original electric weight C1 after will upgrading is distributed to each functional module in the mobile terminal system, restarts simultaneously described timer.Specifically can realize by the following is code:
If (original electric weight C1 and non-charged state and the high power consumption mode of current collection electric weight M02<record)
{
The renewal battery electric quantity is C1-1;
}
Else
{
Original electric weight C1 before mobile terminal system keeps, the battery electric quantity that current collection is obtained is left in the basket;
}
Therefore, method by the above embodiment of the present invention three, four described mobile terminal to update battery electric quantities, when mobile terminal system is in high power consumption mode, the periodic cell voltage that gathers draws the current collection electric weight of battery, original electric weight with described collection electric weight and preservation compares first, only have when described collection electric weight during greater than original electric weight (during charging) or less than original electric weight (during non-charged state), just battery electric quantity is upgraded, otherwise do not upgrade battery electric quantity.The recurrent fluctuations situation that has occurred when effectively having avoided upgrading battery electric quantity is so that the managing electric quantity of portable terminal is more accurate.
Based on above-described embodiment three and four, the present invention also provides a kind of portable terminal that adopts the method for mobile terminal to update battery electric quantity described above, and as shown in Figure 7, the portable terminal of present embodiment comprises:
The second initial module 510, be used for when portable terminal starts the collection cell voltage and draw battery electric quantity by pre-stored voltage electric weight conversion table in system, be designated as the second original electric weight, start simultaneously a timer, whether enter low-power consumption mode to detect mobile terminal system in predetermined time at described timer; Wherein, the characteristic feature of described low-power consumption mode is that backlight, the screen of portable terminal is in the state of closing.Specifically as described in Fig. 2 and the embodiment.
If the second acquisition module 520, be used for detecting mobile terminal system in predetermined time at described timer and do not enter low-power consumption mode, when described timer expiry, gather cell voltage and draw the second current collection electric weight of battery by described voltage electric weight conversion table; Specifically as described in Fig. 2 and the embodiment.
The second judge module 530, be used for will described the second collection electric weight and the described second original electric weight compare, when portable terminal is in charged state and described second and gathers electric weight less than or equal to described the second original electric weight, perhaps when portable terminal is in non-charged state and described second and gathers electric weight more than or equal to described the second original electric weight, judging described second, to gather electric weight be not the current true electric weight of battery; Specifically as described in Fig. 2 and the embodiment.
The second update module 540, be used for when described the second collection electric weight is not the current true electric weight of battery, keeping the described second original electric weight constant; Otherwise, if portable terminal be in charged state then control upgrade the described second original electric weight be the described second original electric weight add 1 and, if portable terminal be in non-charged state then upgrade the described second original electric weight be the second original electric weight subtract 1 poor; Specifically as described in Fig. 2 and the embodiment.
Better, described portable terminal also comprises:
The second distribution module 550, be used for the second original electric weight after distribution is upgraded to each functional module of mobile terminal system.
In sum, the method for a kind of mobile terminal to update battery electric quantity provided by the present invention and portable terminal, it carries out verification and correction by a battery charging and discharging pre-estimation mechanism to the battery electric quantity that directly collects, and draws thus accurately battery electric quantity; Make portable terminal increase new function by the present invention: can draw accurately the current true electric weight of battery and carry out electric weight renewal, the unusual fluctuations that occurred when effectively having avoided the mobile terminal to update battery electric quantity; And the present invention need not specific hardware supports, realizes that cost is low, is conducive to apply in the portable mobile termianl that has come into operation in a large number.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (12)

1. the method for a mobile terminal to update battery electric quantity is characterized in that, comprises step:
When S1, mobile terminal system startup, gather cell voltage and draw battery electric quantity by the voltage electric weight conversion table of setting up in advance, be designated as the first original electric weight; Start simultaneously a timer;
S2, detect mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, when detecting mobile terminal system and enter low-power consumption mode, the time that the record move terminal system enters low-power consumption mode is the very first time, closes described timer;
S3, reception user operational order wake mobile terminal system up, and recording the described mobile terminal system current time was the second time; Control gathers cell voltage and draws the first current collection electric weight of battery by described voltage electric weight conversion table; Calculate simultaneously the theoretical charge/discharge electricity amount of battery within the described time very first time to the second;
S4, gather electric weight with described first and compare with the described first original electric weight, judge in conjunction with described theoretical charge/discharge electricity amount whether described the first collection electric weight is the current true electric weight of battery;
S5, when described first gathers electric weight and is the current true electric weight of battery, upgrade the described first original electric weight and be described first and gather electric weight; Otherwise calculate the current estimation electric weight of battery according to described theoretical charge/discharge electricity amount, upgrading the described first original electric weight is described estimation electric weight;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing; Waken system accuses that portable terminal processed enters non-low-power consumption mode.
2. the method for mobile terminal to update battery electric quantity according to claim 1 is characterized in that, also comprises step after the described step S5:
The first original electric weight after S6, distribution are upgraded is to each functional module of mobile terminal system.
3. the method for mobile terminal to update battery electric quantity according to claim 1 is characterized in that, when the theoretical charge/discharge electricity amount of the battery within the described time very first time to the second of the calculating among the step S3 specifically comprises step:
If the described portable terminal of step S31 is in charged state, calculate then that the theoretic maximum of battery is filled with electric weight within the described time very first time to the second;
If the described portable terminal of step S32 is in non-charged state, then calculate the theoretic maximum power consumption electric weight of battery within the described time very first time to the second;
Described step S4 specifically comprises step:
If the described portable terminal of step S41 is in charged state, control gathers electric weight with described first and the first original electric weight compares, when described first gathers electric weight and be filled with electric weight greater than the described first original electric weight and its difference less than described maximum, judge that described first gathers electric weight and be the current true electric weight of battery;
If the described portable terminal of step S42 is in non-charged state, control gathers electric weight with described first and the first original electric weight compares, when the described first original electric weight greater than described the first collection capacity and its difference during less than described maximum power consumption electric weight, judge that described first gathers electric weight and be the current true electric weight of battery.
4. the method for mobile terminal to update battery electric quantity according to claim 3 is characterized in that, described step S5 comprises step:
S51, when described first gathers electric weight and is the current true electric weight of battery, upgrade the described first original electric weight and be described first and gather electric weight;
S52, when described first gathers electric weight and is not the current true electric weight of battery, if portable terminal is in charged state, then is filled with electric weight according to the theoretic maximum of battery and calculates the current estimation electric weight of battery and upgrade the described first original electric weight, be specially:
When described first gathers electric weight less than described the first original electric weight, keep the described first original electric weight constant; When described first gathers electric weight and is filled with electric weight greater than the described first original electric weight and its difference greater than described maximum, calculate the described first original electric weight and described maximum be filled with electric weight and as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight;
S53, when described first gathers electric weight and is not the current true electric weight of battery, if portable terminal is in non-charged state, then calculates the current estimation electric weight of battery and upgrade the described first original electric weight according to the theoretic maximum power consumption electric weight of battery, be specially:
When described first gathers electric weight greater than described the first original electric weight, keep the described first original electric weight constant; When the described first original electric weight gathers electric weight and its difference greater than described maximum power consumption electric weight greater than described first, calculate the difference of the described first original electric weight and described maximum power consumption electric weight as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight.
5. a portable terminal that adopts the method for the described mobile terminal to update battery electric quantity of claim 1 is characterized in that, comprising:
The first initial module, be used for when mobile terminal system starts, gathering cell voltage, and draw battery electric quantity by the voltage electric weight conversion table of in advance foundation, be designated as the first original electric weight; Start simultaneously a timer;
Detection module, be used for detecting mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, when detecting mobile terminal system and enter low-power consumption mode, the time that the record move terminal system enters low-power consumption mode is the very first time, closes described timer;
The first acquisition module, be used for to receive user's operational order and wake mobile terminal system up, recording the described mobile terminal system current time was the second time; Gather cell voltage and draw the first current collection electric weight of battery by described voltage electric weight conversion table; And calculating theoretic charge/discharge electricity amount of battery within the described time very first time to the second;
The first judge module, be used for will described first gathering electric weight and the described first original electric weight compares, judge in conjunction with the theoretic charge/discharge electricity amount of battery whether described the first collection electric weight is the current true electric weight of battery;
The first update module, be used for when described first gathers electric weight and be the current true electric weight of battery, upgrading the described first original electric weight is described the first collection electric weight; Otherwise, calculate the current estimation electric weight of battery according to the theoretic charge/discharge electricity amount of battery, and to upgrade the described first original electric weight be described estimation electric weight;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing; Waken system accuses that mobile terminal system processed enters non-low-power consumption mode.
6. portable terminal according to claim 5 is characterized in that, also comprises:
The first distribution module, be used for the first original electric weight after distribution is upgraded to each functional module of mobile terminal system.
7. portable terminal according to claim 5 is characterized in that, described the first acquisition module comprises:
Collecting unit, be used for to receive user's operational order and wake mobile terminal system up, recording the described mobile terminal system current time was the second time; Gather simultaneously cell voltage and draw the first current collection electric weight of battery by described voltage electric weight conversion table;
The charging computing unit, be used for when portable terminal is in charged state, calculating that the theoretic maximum of battery is filled with electric weight within the described time period very first time to the second;
The power consumption computing unit, be used for when portable terminal is in non-charged state, calculating the theoretic maximum power consumption electric weight of battery within the described time period very first time to the second;
Described the first judge module specifically is used for, described the first collection electric weight and the described first original electric weight are compared, when described portable terminal is in charged state and described first and gathers electric weight and be filled with electric weight greater than the described first original electric weight and its difference less than described maximum, perhaps when described portable terminal is in non-charged state and the described first original electric weight and gathers electric weight and its difference less than described maximum power consumption electric weight greater than described first, judge that described first gathers electric weight and be the current true electric weight of battery.
8. portable terminal according to claim 7 is characterized in that, described the first update module comprises:
The first updating block, be used for when described first gathers electric weight and be the current true electric weight of battery, upgrading the described first original electric weight is described the first collection electric weight;
The second updating block, be used for when described the first collection electric weight is not the current true electric weight of battery, if portable terminal is in charged state, then be filled with electric weight according to the theoretic maximum of battery and calculate the current estimation electric weight of battery and upgrade the described first original electric weight, be specially:
When described first gathers electric weight less than described the first original electric weight, keep the described first original electric weight constant; When described first gathers electric weight and is filled with electric weight greater than the described first original electric weight and its difference greater than described maximum, calculate the described first original electric weight and described maximum be filled with electric weight and as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight;
The 3rd upgrade the unit, be used for when described the first collection electric weight is not the current true electric weight of battery, if portable terminal is in non-charged state, then calculate the current estimation electric weight of battery and upgrade the first original electric weight according to the theoretic maximum power consumption electric weight of battery, be specially:
When described first gathers electric weight greater than described the first original electric weight, keep the described first original electric weight constant; When the described first original electric weight gathers electric weight and its difference greater than described maximum power consumption electric weight greater than described first, calculate the difference of the described first original electric weight and described maximum power consumption electric weight as the current estimation electric weight of battery, upgrading the described first original electric weight is described estimation electric weight.
9. the method for a mobile terminal to update battery electric quantity is characterized in that, comprises step:
Gather cell voltage and draw battery electric quantity by the voltage electric weight conversion table of setting up in advance when L1, mobile terminal system startup, be designated as the second original electric weight; Start simultaneously a timer;
L2, detect mobile terminal system in predetermined time at described timer and whether enter low-power consumption mode, do not enter low-power consumption mode if detect mobile terminal system, then when described timer expiry, gather cell voltage, and draw the second current collection electric weight of battery by described voltage electric weight conversion table;
L3, gather electric weight and the described second original electric weight compares with described second, when portable terminal is in charged state and described second and gathers electric weight less than or equal to described the second original electric weight, perhaps when portable terminal is in non-charged state and described second and gathers electric weight more than or equal to described the second original electric weight, judging described second, to gather electric weight be not the current true electric weight of battery;
L4, when described second gathers electric weight and is not the current true electric weight of battery, keep the described second original electric weight constant; Otherwise, if portable terminal be in charged state then control upgrade the described second original electric weight be the described second original electric weight add 1 and, if then upgrade when portable terminal is in non-charged state the described second original electric weight be the second original electric weight subtract 1 poor;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing.
10. the method for mobile terminal to update battery electric quantity according to claim 9 is characterized in that, also comprises step after the described step L4:
The second original electric weight after L5, distribution are upgraded is to each functional module of mobile terminal system.
11. a portable terminal that adopts the method for the described mobile terminal to update battery electric quantity of claim 9 is characterized in that, comprising:
The second initial module, be used for when mobile terminal system starts the collection cell voltage and draw battery electric quantity by pre-stored voltage electric weight conversion table at mobile terminal system, be designated as the second original electric weight, start simultaneously a timer, whether enter low-power consumption mode to detect mobile terminal system in predetermined time at described timer;
If the second acquisition module, be used for when described timer does not detect mobile terminal system and enters low-power consumption mode in predetermined time, then when described timer expiry, gather cell voltage also, and draw the second current collection electric weight of battery by described voltage electric weight conversion table;
The second judge module, be used for will described the second collection electric weight and the described second original electric weight compare, when portable terminal is in charged state and described second and gathers electric weight less than or equal to described the second original electric weight, perhaps when portable terminal is in non-charged state and described second and gathers electric weight more than or equal to described the second original electric weight, judging described second, to gather electric weight be not the current true electric weight of battery;
The second update module, be used for when described the second collection electric weight is not the current true electric weight of battery, keeping the described second original electric weight constant; Otherwise, if portable terminal be in charged state then control upgrade the described second original electric weight be the described second original electric weight add 1 and, if portable terminal be in non-charged state then upgrade the described second original electric weight be the second original electric weight subtract 1 poor;
Wherein, described low-power consumption mode refers to that backlight, the screen of portable terminal are in the state of closing.
12. portable terminal according to claim 11 is characterized in that, also comprises:
The second distribution module, be used for the second original electric weight after distribution is upgraded to each functional module of mobile terminal system.
CN201210432286.1A 2012-11-02 2012-11-02 Method for mobile terminal to update electric quantity of battery and mobile terminal Active CN102946479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210432286.1A CN102946479B (en) 2012-11-02 2012-11-02 Method for mobile terminal to update electric quantity of battery and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210432286.1A CN102946479B (en) 2012-11-02 2012-11-02 Method for mobile terminal to update electric quantity of battery and mobile terminal

Publications (2)

Publication Number Publication Date
CN102946479A true CN102946479A (en) 2013-02-27
CN102946479B CN102946479B (en) 2015-01-21

Family

ID=47729384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210432286.1A Active CN102946479B (en) 2012-11-02 2012-11-02 Method for mobile terminal to update electric quantity of battery and mobile terminal

Country Status (1)

Country Link
CN (1) CN102946479B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991191A (en) * 2015-05-06 2015-10-21 惠州Tcl移动通信有限公司 System and method of dynamically detecting mobile terminal battery capacity
CN105425166A (en) * 2015-12-31 2016-03-23 上海博泰悦臻网络技术服务有限公司 Battery power detecting method and battery power detecting device
CN106230058A (en) * 2016-08-25 2016-12-14 惠州Tcl移动通信有限公司 The seat of a kind of mobile terminal fills charge display method and system
CN106680728A (en) * 2016-12-30 2017-05-17 深圳天珑无线科技有限公司 Electricity quantity detecting method and device
CN106950501A (en) * 2017-03-09 2017-07-14 福建飞毛腿动力科技有限公司 A kind of dump energy computational methods of Li-ion batteries piles
CN107111469A (en) * 2015-12-23 2017-08-29 华为技术有限公司 A kind of method, user interface, device, electronic equipment and storage medium for adjusting display screen display interface
CN107277906A (en) * 2017-07-28 2017-10-20 广东欧珀移动通信有限公司 Mode selecting method, device, terminal and computer-readable recording medium
CN107390126A (en) * 2017-06-06 2017-11-24 广州视源电子科技股份有限公司 The battery electric quantity display control method and display control unit of a kind of electronic equipment
CN107910909A (en) * 2017-11-01 2018-04-13 福建新大陆支付技术有限公司 A kind of POS electric power systems and its electric quantity managing method
CN108427621A (en) * 2018-03-27 2018-08-21 广东欧珀移动通信有限公司 Battery power quantity display method, device, electronic device and computer readable storage medium
CN108957348A (en) * 2018-08-16 2018-12-07 厦门芯阳科技股份有限公司 A kind of battery capacity evaluation method of low cost
CN109116290A (en) * 2018-06-14 2019-01-01 出门问问信息科技有限公司 A kind of optimization method, device and the electronic equipment of the metering of equipment voltameter
CN109523772A (en) * 2018-12-29 2019-03-26 东莞钜威动力技术有限公司 A kind of voltage data transmission method, device, terminal and storage medium
CN110213811A (en) * 2019-05-14 2019-09-06 惠州Tcl移动通信有限公司 Mobile terminal shutdown electricity control processing method, mobile terminal and storage medium
CN110618386A (en) * 2018-06-19 2019-12-27 中兴通讯股份有限公司 Battery electric quantity proportion detection method, equipment and computer readable storage medium
CN111469713A (en) * 2020-04-28 2020-07-31 东风汽车集团有限公司 Passive equalization control method for new energy automobile power battery
CN112834818A (en) * 2021-01-05 2021-05-25 北京嘀嘀无限科技发展有限公司 Electric quantity determining method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1810058A (en) * 2003-07-02 2006-07-26 维夫康姆公司 Method for estimating the remaining working life of a battery for a radiocommunication device
CN101860060A (en) * 2010-05-31 2010-10-13 中兴通讯股份有限公司 Method and device for indicating electric quantity of rechargeable battery
CN102014213A (en) * 2010-12-22 2011-04-13 深圳市五巨科技有限公司 Method and device for prompting remaining time of mobile terminal battery
CN102375127A (en) * 2011-11-11 2012-03-14 深圳市中兴移动通信有限公司 Method for displaying residual battery electricity quantity of mobile terminal
CN102721927A (en) * 2012-05-04 2012-10-10 惠州Tcl移动通信有限公司 Method and system for detecting battery electric quantity of mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1810058A (en) * 2003-07-02 2006-07-26 维夫康姆公司 Method for estimating the remaining working life of a battery for a radiocommunication device
CN101860060A (en) * 2010-05-31 2010-10-13 中兴通讯股份有限公司 Method and device for indicating electric quantity of rechargeable battery
CN102014213A (en) * 2010-12-22 2011-04-13 深圳市五巨科技有限公司 Method and device for prompting remaining time of mobile terminal battery
CN102375127A (en) * 2011-11-11 2012-03-14 深圳市中兴移动通信有限公司 Method for displaying residual battery electricity quantity of mobile terminal
CN102721927A (en) * 2012-05-04 2012-10-10 惠州Tcl移动通信有限公司 Method and system for detecting battery electric quantity of mobile device

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991191B (en) * 2015-05-06 2018-12-07 惠州Tcl移动通信有限公司 The system and method for dynamic detection battery capacity of mobile terminal
CN104991191A (en) * 2015-05-06 2015-10-21 惠州Tcl移动通信有限公司 System and method of dynamically detecting mobile terminal battery capacity
CN107111469A (en) * 2015-12-23 2017-08-29 华为技术有限公司 A kind of method, user interface, device, electronic equipment and storage medium for adjusting display screen display interface
US11036272B2 (en) 2015-12-23 2021-06-15 Huawei Technologies Co., Ltd. Method and apparatus for adjusting display interface of screen, user interface, electronic device, and storage medium
CN105425166A (en) * 2015-12-31 2016-03-23 上海博泰悦臻网络技术服务有限公司 Battery power detecting method and battery power detecting device
CN105425166B (en) * 2015-12-31 2020-08-28 上海博泰悦臻网络技术服务有限公司 Battery electric quantity detection method and device
CN106230058A (en) * 2016-08-25 2016-12-14 惠州Tcl移动通信有限公司 The seat of a kind of mobile terminal fills charge display method and system
CN106230058B (en) * 2016-08-25 2019-04-30 惠州Tcl移动通信有限公司 A kind of seat of mobile terminal fills charge display method and system
CN106680728A (en) * 2016-12-30 2017-05-17 深圳天珑无线科技有限公司 Electricity quantity detecting method and device
CN106950501A (en) * 2017-03-09 2017-07-14 福建飞毛腿动力科技有限公司 A kind of dump energy computational methods of Li-ion batteries piles
CN106950501B (en) * 2017-03-09 2019-06-25 福建飞毛腿动力科技有限公司 A kind of remaining capacity calculation method of Li-ion batteries piles
CN107390126A (en) * 2017-06-06 2017-11-24 广州视源电子科技股份有限公司 The battery electric quantity display control method and display control unit of a kind of electronic equipment
CN107277906A (en) * 2017-07-28 2017-10-20 广东欧珀移动通信有限公司 Mode selecting method, device, terminal and computer-readable recording medium
CN107277906B (en) * 2017-07-28 2019-09-24 Oppo广东移动通信有限公司 Mode selecting method, device, terminal and computer readable storage medium
CN107910909B (en) * 2017-11-01 2023-03-31 福建新大陆支付技术有限公司 POS power supply system and electric quantity management method thereof
CN107910909A (en) * 2017-11-01 2018-04-13 福建新大陆支付技术有限公司 A kind of POS electric power systems and its electric quantity managing method
CN108427621A (en) * 2018-03-27 2018-08-21 广东欧珀移动通信有限公司 Battery power quantity display method, device, electronic device and computer readable storage medium
CN109116290A (en) * 2018-06-14 2019-01-01 出门问问信息科技有限公司 A kind of optimization method, device and the electronic equipment of the metering of equipment voltameter
CN109116290B (en) * 2018-06-14 2020-08-11 出门问问信息科技有限公司 Optimization method and device for metering of equipment electricity meter and electronic equipment
CN110618386A (en) * 2018-06-19 2019-12-27 中兴通讯股份有限公司 Battery electric quantity proportion detection method, equipment and computer readable storage medium
CN110618386B (en) * 2018-06-19 2022-08-02 中兴通讯股份有限公司 Battery electric quantity proportion detection method, equipment and computer readable storage medium
CN108957348A (en) * 2018-08-16 2018-12-07 厦门芯阳科技股份有限公司 A kind of battery capacity evaluation method of low cost
CN109523772A (en) * 2018-12-29 2019-03-26 东莞钜威动力技术有限公司 A kind of voltage data transmission method, device, terminal and storage medium
CN110213811A (en) * 2019-05-14 2019-09-06 惠州Tcl移动通信有限公司 Mobile terminal shutdown electricity control processing method, mobile terminal and storage medium
CN111469713A (en) * 2020-04-28 2020-07-31 东风汽车集团有限公司 Passive equalization control method for new energy automobile power battery
CN111469713B (en) * 2020-04-28 2021-11-12 东风汽车集团有限公司 Passive equalization control method for new energy automobile power battery
CN112834818A (en) * 2021-01-05 2021-05-25 北京嘀嘀无限科技发展有限公司 Electric quantity determining method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN102946479B (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN102946479B (en) Method for mobile terminal to update electric quantity of battery and mobile terminal
JP5816906B2 (en) Battery status monitoring system
CN102195304B (en) Method and device for managing service time of cell and portable computer
US9142980B2 (en) Apparatus and method for controlling charge capacity balancing operation of secondary battery cell
CN103064027B (en) A kind of 750KV intelligent wireless accumulator on-line monitoring and maintenance system
WO2017016385A1 (en) Estimation method and apparatus for state-of-charge value of battery
US9225186B2 (en) Method and device for controlling charge of battery
CN109228959A (en) Electric bicycle intelligent charging system and charging method with fire-proof and explosion-proof function
CN102593540A (en) Battery activating method, battery activating module and terminal
CN102986113A (en) Charge/discharge control apparatus
CN101860056A (en) Power lithium battery pack balancing and managing system based on Map model
CN101206246A (en) Method for preestimating battery residual capacity
CN102012487A (en) Charging detection method and detector of battery
CN111845455A (en) Charging control method and device for storage battery of electric vehicle
CN104765396B (en) Shutdown voltage dynamic adjusting method and the system of adjustment based on mobile terminal
CN103117567B (en) Chip with charge-discharge function and electric quantity detecting function
CN112924866B (en) Method and device for detecting capacity retention rate, vehicle and storage medium
CN101296439A (en) System and method for displaying residual power-on time of mobile phone battery and saving power
CN104539005A (en) Mobile terminal charging control system and method
CN110323808B (en) Charging stop method, charging stop device, computer equipment and storage medium
CN103402026A (en) Method for processing idle mode of mobile terminal and mobile terminal
CN110297192A (en) Electricity bearing calibration when the method and booting of electricity when a kind of estimation battery charging and discharging
EP2849274A1 (en) Storage battery management device, storage battery management method, and program
CN107910909A (en) A kind of POS electric power systems and its electric quantity managing method
RU156115U1 (en) BATTERY ELECTRONIC RECORDER

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