DEVICES WITH BATTERY REMAINING CAPACITY ESTIMATING FUNCTIONS

- O2MICRO INC.

A device includes an interface and a processor. The interface receives information for a parameter indicative of a status of a battery. The processor calculates a remaining capacity of the battery, calculates a capacity ratio of the calculated remaining capacity to a capacity reference of the battery, compares the parameter with a parameter reference to generate a first comparison result, compares the capacity ratio with a ratio reference to generate a second comparison result, sets an amount according to the first and second comparison results, and changes the calculated remaining capacity by the amount.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
RELATED APPLICATION

The present application claims priority to Patent Application No. 201210507614, filed on Nov. 30, 2012, with the State Intellectual Property Office of the People's Republic of China.

BACKGROUND

In a conventional method for estimating remaining capacity (RC) of a battery, the value of the remaining capacity (hereinafter, the RC value) is estimated by reading an initial RC value from a lookup table based on the open-circuit voltage of the battery, and by increasing or decreasing the RC value based on a count of charges passing in and out of the battery (referred to as “coulomb counting”). More specifically, batteries usually have certain voltage versus capacity characteristics. The lookup table lists RC values corresponding to different voltage references. In the lookup table, the RC value corresponding to each voltage reference is obtained by counting charges passing in a fully-discharged battery until an open-circuit voltage of the battery reaches the voltage reference. The counted value of the coulomb charges is the RC value corresponding to the voltage reference. This lookup table includes inaccuracies due to accumulated errors caused by the coulomb counting. In addition, a battery usually has a residual capacity left in the battery when the battery is fully discharged. The value of the residual capacity (hereinafter, the RES value) varies as the voltage, current, or temperature of the battery varies, which aggravates the inaccuracies in the estimating process.

In another conventional method for estimating remaining capacity of a battery, a residual capacity table (hereinafter, the RES table) is used to reduce the inaccuracy caused by the residual capacity. More specifically, the RES table lists RES values corresponding to different voltage references, current references, and temperature references. The remaining capacity is estimated based on the RES table, the above mentioned lookup table, and the coulomb counting method. However, to establish the RES table, the battery needs to repeat charging and discharging cycles for a large number of times and to be tested under different battery voltages, battery currents, and temperature, which is a complex and time-consuming process.

Additionally, in both of these conventional methods, when the battery is in use, e.g., being charged by a charger or being discharged to power a device, the estimating of the remaining capacity also includes inaccuracy caused by coulomb counting. A device such as a mobile phone or a tablet computer can employ the above mentioned methods to estimate a remaining capacity of a battery that powers the device. The device can further calculate a relative state of charge (RSOC) of the battery and display the RSOC on a screen of the device. The RSOC is represented by a capacity ratio of the remaining capacity to a fully-charged capacity of the battery in percentage form. Due to the inaccuracies mentioned above, the RSOC shown on the screen is different from the actual RSOC. For example, the shown RSOC may be 95% when the actual RSOC is 99%, or the shown RSOC may be 5% when the actual RSOC is 1%. Thus, at the moment when the battery is fully charged, the RSOC shown on the screen may jump from 95% to 100%. Moreover, when the battery is fully discharged, the device may unexpectedly turn off even though the RSOC on the screen shows that the battery still has remaining capacity.

SUMMARY

In one embodiment, a device includes an interface and a processor. The interface receives information for a parameter indicative of a status of a battery. The processor calculates a remaining capacity of the battery, calculates a capacity ratio of the calculated remaining capacity to a capacity reference of the battery, compares the parameter with a parameter reference to generate a first comparison result, compares the capacity ratio with a ratio reference to generate a second comparison result, sets an amount according to the first and second comparison results, and changes the calculated remaining capacity by the amount.

BRIEF DESCRIPTION OF THE DRAWINGS

Features and advantages of embodiments of the claimed subject matter will become apparent as the following detailed description proceeds, and upon reference to the drawings, wherein like numerals depict like parts, and in which:

FIG. 1 illustrates a block diagram of an example of a system, in an embodiment according to the present invention.

FIG. 2 illustrates an example of a flowchart for estimating a remaining capacity of a battery, in an embodiment according to the present invention.

FIG. 3 illustrates an example of a flowchart for estimating a remaining capacity of a battery using a charge algorithm, in an embodiment according to the present invention.

FIG. 4 illustrates examples of plots for a remaining capacity and a battery current associated with a battery, in an embodiment according to the present invention.

FIG. 5 illustrates an example of a flowchart for estimating a remaining capacity of a battery using a discharge algorithm, in an embodiment according to the present invention.

FIG. 6 illustrates examples of plots for a remaining capacity and a battery voltage associated with a battery, in an embodiment according to the present invention.

FIG. 7 illustrates a flowchart of examples of operations performed by a device, in an embodiment according to the present invention.

DETAILED DESCRIPTION

Reference will now be made in detail to the embodiments of the present invention. While the invention will be described in conjunction with these embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims.

Embodiments described herein may be discussed in the general context of computer-executable instructions residing on some form of computer-usable medium, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. The functionality of the program modules may be combined or distributed as desired in various embodiments.

Some portions of the detailed descriptions which follow are presented in terms of procedures, logic blocks, processing and other symbolic representations of operations on data bits within a computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. In the present application, a procedure, logic block, process, or the like, is conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, although not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system.

It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present application, discussions utilizing the terms such as “calculating,” “comparing,” “generating,” “changing,” “multiplying,” “increasing,” “decreasing” or the like, refer to the actions and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.

By way of example, and not limitation, computer-usable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read only memory (ROM), electrically erasable programmable ROM (EEPROM), flash memory or other memory technology, compact disk ROM (CD-ROM), digital versatile disks (DVDs) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information.

Communication media can embody computer-readable instructions, data structures, program modules or other data and includes any information delivery media. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer-readable media.

Furthermore, in the following detailed description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be recognized by one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the present invention.

Embodiments according to the present invention estimate a remaining capacity of a battery. In one embodiment, a device calculates the remaining capacity of the battery by coulomb counting, and calibrates the value of the remaining capacity (hereinafter, the RC value) based on a status of the battery. By way of example, the device increases/decreases the RC value by an amount that is determined by checking the range of a parameter of the battery. In a charging state, the parameter includes a charging current of the battery. In a discharging state, the parameter includes a voltage across the battery. Compared with a conventional method for estimating a remaining capacity of a battery, the calibrated RC value is expected to be more accurate. Additionally, the RES table used in a conventional method is omitted, and the process of estimating the remaining capacity is simplified. Also, the remaining capacity (e.g., the relative state of charge) that is displayed to the user more accurately represents the actual remaining capacity.

FIG. 1 illustrates a block diagram of an example of a system 100, in an embodiment according to the present invention. The system 100 includes a battery pack 110 and a host device 130. In one embodiment, the battery pack 110 is plugged into the host device 130 to power the host device 130. The battery pack 110 can also be charged by a charger via the host device 130.

In one embodiment, the battery pack 110 includes a battery 102 having battery cells coupled, e.g., in series, and includes a temperature sense circuit 104 to sense a battery temperature of the battery 102. The system 100 further includes a voltage sense circuit 106 coupled to the battery pack 110 to sense a battery voltage VBAT of the battery 102, and a current sense circuit 108 coupled to the battery pack 110 to sense a battery current IBAT of the battery 102.

The host device 130 can be, but is not limited to, a computing device such as a desktop, a laptop, a smart phone, a palmtop, a tablet computer, etc. The host device 130 includes a battery monitor 120, a processor 140, a memory 134, and a screen 132. The battery monitor 120 includes a multiplexer 112, an analog-to-digital converter (ADC) 114, and register units. The multiplexer 112 selectively transfers information for a parameter, e.g., a battery voltage VBAT, a battery current IBAT, a battery temperature, etc., indicative of a status of the battery 102 to the ADC 114, and the ADC 114 converts the information into digital form. The information in digital form is stored into the register units. The register units include, but are not limited to, a temperature register unit 121 to store the value of the battery temperature, a voltage register unit 122 to store the value of the battery voltage VBAT, a current register unit 123 to store the value of the battery current IBAT, a remaining capacity (RC) unit 124 to store an estimated RC value of the battery 102, and an open-circuit voltage (OCV) register unit 125 to store the value of an open-circuit voltage of the battery 102. The memory 134, e.g., a non-transitory computer-readable storage device, can store computer-executable instructions that, when executed by the processor 140, cause the processor 140 to perform operations such as counting coulomb charges and calculating/estimating the remaining capacity of the battery 102. The screen 132 can display a status, e.g., the remaining capacity, a relative state of charge (RSOC), etc., of the battery 102. The processor 140 can read and execute the computer-executable instructions from the memory 134, receive battery information for the parameter indicative of the status of the battery 102 via an interface 141, e.g., a communication bus, and estimate the remaining capacity and RSOC of the battery 102 based on the computer-executable instructions and the battery status information. The processor 140 can further control the screen 132 to display the status of the battery 102.

As used herein, the term “battery temperature” means a dynamic temperature of the battery 102; the term “battery voltage VBAT” means a dynamic voltage across the battery 102 when the battery 102 is in use, e.g., being charged by a charger or being discharged to power the host device 130; the term “battery current IBAT” means a dynamic current flowing in or out of the battery 102, e.g., a charging current or a discharging current; and the term “open-circuit voltage” means a voltage across the battery 102 when the battery 102 is open-circuited.

As used herein, “relative state of charge” is represented by a capacity ratio of a remaining capacity to a capacity reference, e.g., a fully-charged capacity, of the battery 102 in percentage form. In one embodiment, the term “remaining capacity” means the total amount of charges RCTOT remaining in the battery 102, and the term “fully-charged capacity” means the total amount of charges FCTOT stored in the battery 102 when the battery 102 is fully charged. In one such embodiment, the value of the relative state of charge (hereinafter, RSOC value) can be given by:


RSOC=(RCTOT/FCTOT)*100%.

In another embodiment, the “remaining capacity” means the amount of charges RCAVA remaining in and available to be discharged from the battery 102, and the term “fully-charged capacity” means the amount of charges FCAVA stored in and available to be discharged from the battery 102 when the battery 102 is fully charged. More specifically, the battery 102 has a residual capacity RES, e.g., some residual charges, left in the battery 102 when the battery 102 is fully discharged. When the battery 102 is not fully discharged, the available remaining capacity RCAVA can have the value of the total amount of charges RCTOT minus the value of the residual capacity RES, e.g., RCAVA=RCTOT−RES. When the battery 102 is fully charged, the available fully-charged capacity FCAVA can be equal to the total amount of charges FCTOT minus the value of the residual capacity RES, e.g., FCAVA=FCTOT−RES. In one such embodiment, the RSOC value can be given by: RSOC=[(RCTOT−RES)/(FCTOT−RES)]*100%.

In one embodiment, the memory 134 includes a lookup table that lists RC values corresponding to different voltage references of the battery 102, and the lookup table can be used to estimate an initial RC value of the battery 102. For example, the lookup table includes an RC value R1 corresponding to a voltage V1, an RC value R2 corresponding to a voltage V2, . . . , an RC value RN corresponding to a voltage VN. When the battery pack 110 is plugged into the host device 130, the battery monitor 120 receives an open-circuit voltage VOPEN of the battery 102 from the voltage sense circuit 106 and stores the value of the open-circuit voltage VOPEN in the OCV register unit 125. The processor 140 receives information for the open-circuit voltage VOPEN via the interface 141, and reads from the lookup table an RC value corresponding to the open-circuit voltage VOPEN. The read RC value can be referred to as an initial RC value of the battery 102.

In one embodiment, when the battery 102 is in use, e.g., being charged or discharged, the processor 140 performs coulomb counting to calculate the amount of change ΔC in the charges of the battery 102, and calculates the remaining capacity of the battery 102 by increasing or decreasing the aforementioned initial RC value by the amount ΔC. The calculated value of the remaining capacity is stored in the RC register unit 124, and this calculated value can be referred to as a pre-stored RC value of the battery 102. In one embodiment, the term “coulomb counting” used herein means multiplying a current IBAT, e.g., a charging current or a discharging current, of the battery 102 by the time period of the operation of the battery 102. During a charging process, when the battery 102 is close to being fully charged, the processor 140 estimates a dynamic RC value of the battery 102 based on the RC value stored in the RC register unit 124, and also based on a charge algorithm, in an embodiment according to the present invention. During a discharging process, when the battery 102 is close to being fully discharged, the processor 140 estimates a dynamic RC value of the battery 102 based on the RC value stored in the RC register unit 124, and also based on a discharge algorithm, in an embodiment according to the present invention. By using the charge algorithm and the discharge algorithm, the processor 140 can calibrate/adjust the estimated RC value so that a difference between the estimated RC value and the actual RC value of the battery 102 decreases. Hence, the estimated RC value can be calibrated/adjusted toward the actual RC value. The RSOC value shown on the screen 132 can also be calibrated/adjusted toward the actual RSOC value of the battery 102. Additionally, the RES table used in conventional methods is omitted, and the process of estimating the remaining capacity is simplified.

FIG. 2 illustrates an example of a flowchart 200 for estimating a remaining capacity of a battery, in an embodiment according to the present invention. Although specific steps are disclosed in FIG. 2, such steps are examples. That is, the present invention is well suited to performing various other steps or variations of the steps recited in FIG. 2. In one embodiment, the flowchart 200 is implemented as a computer program, e.g., including computer-executable instructions, stored in a computer-readable medium, e.g., the memory 134. FIG. 2 is described in combination with FIG. 1.

In step 202, the host device 130 is powered on. In step 204, the host device 130 detects whether the battery 102 has just been plugged in. By way of example, at the moment when a battery is plugged into the host device 130, a flag signal stored in a flag register (not shown in FIG. 1) in the host device 130 can be automatically set to, e.g., digital “1.” As such, the host device 130 can be informed that a battery has just been plugged in, by the flag signal, and then the host device 130 may perform initial configuration. After the initial configuration, the processor 140 can set the flag signal to, e.g., digital “0.” When the battery remains plugged in the host device 130, the flag signal remains digital “0.” Accordingly, in one embodiment, the battery 102 has just been plugged into the host device 130 if the flag signal is digital “1,” or has been used for a while if the flag signal is digital “0.” However, the invention is not so limited. In another embodiment, whether the battery 102 has just been plugged into the host device 130 or has been used for a while can be determined by another way.

In one embodiment, if the battery 102 has just been plugged into the host device 130, then the RC register unit 124 of the battery monitor 120 does not have information about the remaining capacity of the battery 102, and the flowchart 200 goes to step 206. If the battery 102 has been used for a while after the battery 102 is plugged into the host device 130, then the RC register unit 124 has the information for the remaining capacity of the battery 102, and the flowchart 200 goes to step 208.

In step 206, the battery monitor 120 receives an open-circuit voltage VOPEN of the battery 102 from the voltage sense circuit 106 and transfers the information for the open-circuit voltage VOPEN to the processor 140. The processor 140 reads, from the aforementioned lookup table, an RC value corresponding to the open-circuit voltage VOPEN, and this RC value can be referred to as an initial RC value RCINIT. In step 208, the processor 140 reads an RC value stored in the RC register unit 124, and this RC value can be referred to as a pre-stored RC value RCPRE.

In step 210, the processor 140 detects whether the battery 102 is in an idle state or in use. By way of example, when the battery 102 is fully charged, the host device 130 can terminate the charging of the battery 102 and no current may flow in or out of the battery 102. In this situation, the battery 102 is in an idle state. When the processor 140 detects that the battery 102 is in use, e.g., being charged or discharged, then the flowchart 200 goes to step 212.

In step 212, the processor 140 detects whether the battery 102 is in a discharging state, e.g., being discharged to power loads such as components and circuitry in the host device 130. If the battery 102 is in the discharging state, the flowchart 200 goes to step 214; otherwise, it goes to step 222.

In step 214, the processor 140 detects whether the battery 102 is close to being fully discharged. In one embodiment, when a battery voltage VBAT of the battery 102 decreases to a voltage reference VREF1, the battery 102 is close to being fully discharged. The voltage reference VREF1 is determined by an end-of-discharge voltage VEOD of the battery 102. By way of example, if the battery 102 has a battery voltage VEOD, e.g., 3.5V, when the battery 102 is fully discharged, then this battery voltage VEOD, e.g., 3.5V, can be referred to as “end-of-discharge voltage.” The voltage reference VREF1 can be set to be, e.g., VEOD+50 mV. In one embodiment, if the processor 140 detects that the battery 102 is close to being fully discharged, e.g., a battery voltage VBAT of the battery 102 has decreased to the voltage reference VREF1, then the flowchart 200 goes to step 216; otherwise, it goes to step 218. In step 216, the processor 140 performs a discharge algorithm to estimate the remaining capacity of the battery 102, which is further detailed in FIG. 5.

In step 222, the processor 140 detects whether the battery 102 is in a charging state, e.g., being charged via the host device 130. If the battery 102 is in the charging state, the flowchart 200 goes to step 224; otherwise, it goes to step 210.

In step 224, the processor 140 detects whether the battery 102 is close to being fully charged. In one embodiment, when a battery voltage VBAT of the battery 102 increases to a voltage reference VREF2 of the battery 102, the battery 102 is close to being fully charged. By way of example, in the charging state, a battery voltage VBAT of the battery 102 can increase until it reaches a constant-voltage threshold VCV. When the battery voltage VBAT reaches the constant-voltage threshold VCV, the battery 102 enters a constant-voltage charging mode, the battery voltage VBAT can remain substantially constant, and the charging current IBAT of the battery 102 starts to decrease. In one embodiment, the voltage reference VREF2 is the constant-voltage threshold VCV. In another embodiment, the voltage reference VREF2 is slightly less than the constant-voltage threshold VCV. In one embodiment, if the processor 140 detects that the battery 102 is close to being fully charged, e.g., a battery voltage VBAT of the battery 102 has increased to the voltage reference VREF2, then the flowchart 200 goes to step 226; otherwise, it goes to step 218. In step 226, the processor 140 performs a charge algorithm to estimate the remaining capacity of the battery 102, which is further detailed in FIG. 3.

In step 218, the processor 140 performs coulomb counting to calculate the remaining capacity of the battery 102. By way of example, the processor 140 can repeat the coulomb counting at a predetermined frequency 1/TPRE. In other words, in each cycle period TPRE, the processor 140 counts the charges passing in and out of the battery 102. The processor 140 calculates the amount of charges ΔC by multiplying a current IBAT, e.g., a charging current or a discharging current, of the battery 102 by the time period of operation of the battery 102, e.g., the cycle period TPRE. Thus, the amount ΔC is given by: ΔC=IBAT*TPRE. If the battery 102 is in the discharging state, then the processor 140 decreases the RC value (e.g., the initial RC value RCINIT obtained by the step 206 or the pre-stored RC value RCPRE obtained by the step 208) by the amount ΔC, and stores the updated RC value to the RC register unit 124. If the battery 102 is in the charging state, then the processor 140 increases the RC value by the amount ΔC, and stores the updated RC value to the RC register unit 124.

FIG. 3 illustrates an example of a flowchart 300 for estimating a remaining capacity of a battery using a charge algorithm, e.g., the charge algorithm mentioned in step 226 of FIG. 2, in an embodiment according to the present invention. Although specific steps are disclosed in FIG. 3, such steps are examples. That is, the present invention is well suited to performing various other steps or variations of the steps recited in FIG. 3. In one embodiment, the flowchart 300 is implemented as a computer program, e.g., including computer-executable instructions, stored in a computer-readable medium, e.g., the memory 134. FIG. 3 is described in combination with FIG. 1 and FIG. 2.

In one embodiment, the processor 140 performs the steps in the flowchart 300 to calculate a remaining capacity of the battery 102 and calculate a capacity ratio of the calculated remaining capacity to a capacity reference of the battery 102. The processor 140 also compares a parameter of the battery 102 with a parameter reference to generate a first comparison result, compares the capacity ratio with a ratio reference to generate a second comparison result, sets an amount of increment ΔRC1 according to the first and second comparison results, and changes the calculated remaining capacity by the amount of increment ΔRC1. In one embodiment, the capacity reference includes a fully-charged capacity of battery 102 defined above, and the capacity ratio is the relative state of charge (RSOC) defined above. In the example of FIG. 3, the parameter includes a charging current ICHG of the battery 102, and the processor 140 compares the charging current ICHG with a current reference to generate the first comparison result. The processor 140 increases the calculated remaining capacity according to the first and second comparison results.

More specifically, in step 302, the processor 140 performs coulomb counting to obtain the amount of change ΔC in the charges of the battery 102. In step 304, the processor 140 compares a battery voltage VBAT of the battery 102 with a voltage reference, e.g., a constant-voltage threshold VCV of the battery 102. If the battery voltage VBAT is less than the constant-voltage threshold VCV, then the flowchart 300 goes to step 324; otherwise, it goes to step 306.

In step 324, the processor 140 sets the increment ΔRC1 to the amount ΔC obtained by step 302, and increases the RC value by the amount ΔC. The computer program of the flowchart 300 returns an updated RC value RC+ΔC, and the processor 140 stores the updated RC value RC+ΔC in the RC register unit 124. In other words, if the battery voltage VBAT is less than the constant-voltage threshold VCV, then the processor 140 can perform the coulomb counting to estimate the RC value, similar to the step 218 of FIG. 2.

In step 306, the processor 140 compares the charging current ICHG with a first current reference and a second current reference to determine a range of the charging current ICHG. More specifically, in one embodiment, when the battery 102 operates in a constant-current charging mode, the charging current ICHG can have a substantially constant value ICV, and the battery voltage VBAT increases. When the battery voltage VBAT increases to the constant-voltage threshold VCV, the battery 102 enters a constant-voltage charging mode, and the charging current ICHG decreases if the battery 102 continues to be charged. In one embodiment, when the charging current ICHG decreases to an end-of-charge current IEOC, the battery 102 is considered to be fully charged. In the example of FIG. 3, the end-of-charge current IEOC is one-tenth of the constant value ICV; however, embodiments according to the invention are not so limited. In the example of FIG. 3, in step 306, the processor 140 compares the charging current ICHG with a current reference 9IEOC and a current reference 10IEOC, e.g., the constant value ICV, to determine whether the charging current ICHG is within a range [9IEOC, 10IEOC). In one embodiment, [α, β) represents a range from a boundary value α to a boundary value β, including the boundary value α and excluding the boundary value β.

Continuing with the example, if the charging current ICHG is not within the range [9IEOC, 10IEOC), e.g., the charging current ICHG is less than the current reference 9IEOC, then the flowchart 300 goes to step 312. In step 312, the processor 140 decreases the first and second current references, and compares the charging current ICHG with the next set of decreased current references, e.g., current references 8IEOC and 9IEOC. Similarly, if the charging current ICHG is less than the current reference 8IEOC, then the processor 140 further decreases the first and second current references to yet another set of decreased current references, and compares the charging current ICHG with those decreased current references. The processor 140 can repeat the comparing process until the processor 140 determines the range of the charging current ICHG.

In one embodiment, the processor 140 increases the aforementioned ratio reference if the first and second current references are decreased. By way of example, in step 306, if the charging current ICHG is detected to be within the range [9IEOC, 10IEOC), then the processor 140 performs step 308 to compare the RSOC value with a ratio reference 91%. In step 312, if the charging current ICHG is detected to be within the range [8IEOC, 9IEOC), then the processor 140 performs step 314 to compare the RSOC value with a ratio reference 92%. Similarly, in step 318, if the charging current ICHG is detected to be within the range (IEOC, 2IEOC), then the processor 140 performs step 320 to compare the RSOC value with a ratio reference 99%. In other words, the processor 140 determines whether the charging current ICHG is within a range defined by the first and second current references. If the charging current ICHG is within the range, then the processor 140 further compares the RSOC value with a ratio reference corresponding to the range. If the charging current ICHG is not within the range, then the processor 140 decreases the first and second current references, and also increases the ratio reference.

As shown in FIG. 3, if the charging current ICHG is within the range [9IEOC, 10IEOC), e.g., the charging current ICHG is less than the current reference 10IEOC and is equal to or greater than the current reference 9IEOC, and if the RSOC value is less than the ratio reference 91%, then the flowchart 300 goes to step 328. In step 328, the processor 140 sets the amount of increment ΔRC1 to be, e.g., ΔC+90%*CF, and increases the RC value by the amount ΔC+90%*CF. Similarly, if the charging current ICHG is within the range [8IEOC, 9IEOC), and the RSOC value is less than the ratio reference 92%, then the flowchart 300 goes to step 330. In step 330, the processor 140 sets the increment ΔRC1 to be, e.g., ΔC+80%*CF, and increases the RC value by the amount ΔC+80%*CF. Operations of setting the increment ΔRC1 and increasing the RC value by the increment ΔRC1, corresponding to the ranges [7IEOC, 8IEOC), . . . , [2IEOC, 3IEOC), are performed in a similar manner, and therefore are not repetitively detailed herein. If the charging current ICHG is within the range (IEOC, 2IEOC), e.g., the charging current ICHG is less than the current reference 2IEOC and greater than the end-of-charge current IEOC, and if the RSOC value is less than the ratio reference 99%, then the flowchart 300 goes to step 332. In step 332, the processor 140 sets the increment ΔRC1 to be, e.g., ΔC+10%*CF, and increases the RC value by the increment ΔC+10%*CF. In one embodiment, because the rate of increase of the actual remaining capacity of the battery 102 decreases when the charging current ICHG decreases, the processor 140 can, but not necessarily, decrease the increment ΔRC1 when the charging current ICHG decreases as illustrated in the example of FIG. 3.

In one embodiment, the parameter CF is referred to as a “catching factor,” and is equal to 1% of the fully-charged capacity of the battery 102. For example, a battery for a smartphone may have a fully-charged capacity of 1600 mAH (milliampere-hour), and 1% of its fully-charged capacity is 16 mAH. For another example, a battery for a tablet computer may have a fully-charged capacity of 7000 mAH, and 1% of its fully-charged capacity is 70 mAH. The increments ΔC+90%*CF, ΔC+80%*CF and ΔC+10%*CF disclosed in the steps 328, 330, and 332 are not intended to limit the invention. In another embodiment, the increments ΔRC1 set in steps 328, 330 and 332, and in other similar steps (not shown in FIG. 3) can have any value as long as the increments ΔRC1 are greater than the amount ΔC and less than the caching factor CF, e.g., 1% of the fully-charged capacity of the battery 102.

Moreover, in step 310, if the RSOC value is detected to be equal to 91%, then the flowchart 300 goes to step 324 to increase the RC value by the amount ΔC and returns the updated RC value RC+ΔC. If the RSOC value is detected to be greater than 91%, then the flowchart 300 goes to step 326. In step 326, the processor 140 keeps the RC value unchanged and the computer program of the flowchart 300 returns the unchanged RC value. Similar descriptions for steps 316 and 322 are omitted.

Furthermore, in step 318, if the charging current ICHG is detected to have decreased to the end-of-charge current IEOC, then the flowchart 300 goes to step 334. In step 334, the processor 140 increases the RC value by the amount 100%*CF and the computer program of the flowchart 300 returns an updated RC value RC+100%*CF.

FIG. 4 illustrates examples of plots for the remaining capacity and the charging current ICHG described in relation to FIG. 3, in an embodiment according to the present invention. FIG. 4 is described in combination with FIG. 3. In one embodiment, the curve 402 represents the RSOC value obtained by performing the flowchart 300, the curve 404 represents the RSOC value obtained simply by coulomb counting without performing the flowchart 300, and the curve 406 represents the charging current ICHG.

As shown in FIG. 4, at time TA, the charging current ICHG starts to decrease, and the battery 102 is close to being fully charged. The charging current ICHG decreases as the RSOC of the battery 102 increases. In one embodiment, by performing the steps in the flowchart 300, the RSOC value can be controlled to be, for example, 91% when the charging current ICHG is within the range [9IEOC, 10IEOC), 92% when the charging current ICHG is within the range [8IEOC, 9IEOC), . . . , and 99% when the charging current ICHG is within the range (IEOC, 2IEOC). In addition, the RSOC value can be controlled to be 100% when the charging current ICHG has decreased to the end-of-charge current IEOC.

By way of example, at time TB in FIG. 4, the charging current ICHG is within the range [8IEOC, 9IEOC), and the RSOC value at the curve 404 is 91%. Therefore, the processor 140 performs step 330 of the flowchart 300 to increase the RC value by an increment ΔRC1, e.g., ΔRC1=ΔC+80%*CF. Thus, the RSOC value increases toward 92%. As mentioned above, the increment ΔRC1 is less than 1% of the fully-charged capacity of the battery 102, and therefore the RSOC value does not jump from 91% to 93% after the RC value is increased.

Consequently, compared with conventional methods for estimating a remaining capacity of a battery, the RC value obtained by performing the flowchart 300 can be closer to the actual RC value, and the RSOC value shown on the screen 132 can be closer to the actual RSOC value of the battery 102. In addition, the RSOC value shown on the screen 132 does not change discontinuously.

FIG. 5 illustrates an example of a flowchart 500 for estimating a remaining capacity of a battery using a discharge algorithm, e.g., the discharge algorithm mentioned in step 216 of FIG. 2, in an embodiment according to the present invention. Although specific steps are disclosed in FIG. 5, such steps are examples. That is, the present invention is well suited to performing various other steps or variations of the steps recited in FIG. 5. In one embodiment, the flowchart 500 is implemented as a computer program, e.g., including computer-executable instructions, stored in a computer-readable medium, e.g., the memory 134. FIG. 5 is described in combination with FIG. 1 and FIG. 2.

In one embodiment, the processor 140 performs the steps in the flowchart 500 to calculate a remaining capacity of the battery 102 and calculate a capacity ratio, e.g., an RSOC value, of the battery 102. The processor 140 also compares a parameter of the battery 102 with a parameter reference to generate a first comparison result, compares the capacity ratio with a ratio reference to generate a second comparison result, sets an amount of decrement ΔRC2 according to the first and second comparison results, and changes the calculated remaining capacity by the amount of decrement ΔRC2. In the example of FIG. 5, the parameter includes a battery voltage VBAT of the battery 102, and the processor 140 compares the battery voltage VBAT with a voltage reference to generate the first comparison result. The processor 140 decreases the calculated remaining capacity according to the first and second comparison results.

More specifically, in step 502, the processor 140 performs coulomb counting to obtain the amount of change ΔC in the charges of the battery 102. In step 504, the processor 140 can read an end-of-discharge voltage VEOD of the battery 102 from a table. More specifically, in one embodiment, a battery voltage VBAT of the battery 102 decreases in a discharging state. When the battery voltage VBAT decreases to the end-of-discharge voltage VEOD, the battery 102 is considered to be fully discharged. In one embodiment, the memory 134 further includes a table that lists values of the end-of-discharge voltage VEOD corresponding to different battery temperatures. The processor 140 can read an end-of-discharge voltage VEOD from the table according to a battery temperature received from the temperature sense circuit 104. In another embodiment, the end-of-discharge voltage VEOD is a preset voltage independent of the battery temperature. In one such embodiment, the step 504 can be skipped.

In step 506, the processor 140 compares the battery voltage VBAT with a voltage reference, e.g., 5VT+VEOD. In one embodiment, when the RSOC of the battery 102 is 5%, the battery 102 has a voltage VTEST. The voltage reference VT can be chosen such that a difference between the voltage reference 5VT+VEOD and the voltage VTEST is less than a predetermined limit. In step 506, if the battery voltage VBAT is equal to or greater than the voltage reference 5VVT+VEOD, then the flowchart 500 goes to step 526; otherwise, it goes to step 508.

In step 526, the processor 140 sets the decrement ΔRC2 to be the amount ΔC obtained by step 502, and decreases the RC value by the amount ΔC. The computer program of the flowchart 500 returns an updated RC value RC−ΔC, and the processor 140 stores the updated RC value RC−ΔC in the RC register unit 124. In other words, if the battery voltage VBAT is equal to or greater than the voltage reference 5VT+VEOD, then the processor 140 can perform the coulomb counting to estimate the RC value, similar to the step 218 of FIG. 2.

In step 508, the processor 140 compares the battery voltage VBAT with a first voltage reference, e.g., 4VT+VEOD, and a second voltage reference, e.g., 5VT+VEOD, to determine a range of the battery voltage VBAT. More specifically, the processor 140 compares the battery voltage VBAT with the voltage references 4VT+VEOD and 5VT+VEOD to determine whether the battery voltage VBAT is within the range [4VT+VEOD, 5VT+VEOD).

If the battery voltage VBAT is not within the range [4VT+VEOD, 5VT+VEOD), e.g., the battery voltage VBAT is less than the voltage reference 4VT+VEOD, then the flowchart 500 goes to step 514. In step 514, the processor 140 decreases the first and second voltage references, and compares the battery voltage VBAT with the next set of decreased voltage references, e.g., voltage references 3VT+VEOD and 4VT+VEOD. Similarly, if the battery voltage VBAT is less than the voltage reference 3VT+VEOD, then the processor 140 further decreases the first and second voltage references to yet another set of decreased voltage references, and compares the battery voltage VBAT with those decreased voltage references. The processor 140 can repeat the comparing process until the processor 140 determines the range of the battery voltage VBAT.

In one embodiment, the processor 140 decreases the aforementioned ratio reference if the first and second voltage references are decreased. By way of example, in step 508, if the battery voltage VBAT is detected to be within the range [4VT+VEOD, 5VT+VEOD), then the processor 140 performs step 510 to compare the RSOC value with a ratio reference 5%. In step 514, if the battery voltage VBAT is detected to be within the range [3VT+VEOD, 4VT+VEOD), then the processor 140 performs step 516 to compare the RSOC value with a ratio reference 4%. Similarly, in step 520, if the battery voltage VBAT is detected to be within the range (VEOD, VT+VEOD), then the processor 140 performs step 522 to compare the RSOC value with a ratio reference 1%. In other words, the processor 140 determines whether the battery voltage VBAT is within a range defined by the first and second voltage references. If the battery voltage VBAT is within the range, then the processor 140 further compares the RSOC value with a ratio reference corresponding to the range. If the battery voltage VBAT is not within the range, then the processor 140 decreases the first and second voltage references, and also decreases the ratio reference.

As shown in FIG. 5, if the battery voltage VBAT is within the range [4VT+VEOD, 5VT+VEOD), e.g., the battery voltage VBAT is less than the voltage reference 5VT+VEOD and is equal to or greater than the voltage reference 4VT+VEOD, and if the RSOC value is greater than the ratio reference 5%, then the flowchart 500 goes to step 530. In step 530, the processor 140 sets the amount of decrement ΔRC2 to be, e.g., ΔC+10%*CF, and decreases the RC value by the amount ΔC+10%*CF. Similarly, if the battery voltage VBAT is within the range [3VT+VEOD, 4VT+VEOD), and the RSOC value is greater than the ratio reference 4%, then the flowchart 500 goes to step 532. In step 532, the processor 140 sets the decrement ΔRC2 to be, e.g., ΔC+10%*CF, and decreases the RC value by the amount ΔC+10%*CF. Operations of setting the decrement ΔRC2 and decreasing the RC value by the decrement ΔRC2, corresponding to the ranges [2VT+VEOD, 3VT+VEOD) and [VT+VEOD, 2VT+VEOD) are performed in a similar manner, and therefore are not repetitively detailed herein. If the battery voltage VBAT is within the range (VEOD, VT+VEOD), e.g., the battery voltage VBAT is less than the voltage reference VT+VEOD and greater than the end-of-discharge voltage VEOD, and if the RSOC value is greater than the ratio reference 1%, then the flowchart 500 goes to step 534. In step 534, the processor 140 sets the decrement ΔRC2 to be, e.g., ΔC+10%*CF, and decreases the RC value by the amount ΔC+10%*CF.

The decrements ΔC+10%*CF disclosed in the steps 530, 532, and 534 are not intended to limit the invention. In another embodiment, the decrements ΔRC2 set in steps 530, 532, and 534, and in other similar steps (not shown in FIG. 5) can have any value as long as the decrements ΔRC2 are greater than the amount ΔC and less than the catching factor CF (e.g., 1% of the fully-charged capacity of the battery 102).

Moreover, in step 512, if the RSOC value is detected to be equal to, e.g., 5%, then the flowchart 500 goes to step 526 to decrease the RC value by the mount ΔC and returns the updated RC value RC−ΔC. If the RSOC value is detected to be less than 5%, then the flowchart 500 goes to step 528. In step 528, the processor 140 keeps the RC value unchanged and the computer program of the flowchart 500 returns the unchanged RC value. Similar descriptions for steps 518 and 524 are omitted.

Furthermore, in step 520, if the battery voltage VBAT is detected to have decreased to the end-of-discharge battery VEOD, then the flowchart 500 goes to step 536. In step 536, the processor 140 decreases the RC value by the amount 100%*CF and the computer program of the flowchart 500 returns an updated RC value RC-100%*CF.

FIG. 6 illustrates examples of plots for the remaining capacity and the battery voltage VBAT described in relation to FIG. 5, in an embodiment according to the present invention. FIG. 6 is described in combination with FIG. 5. In one embodiment, the curve 602 represents the RSOC value obtained by performing the flowchart 500, the curve 604 represents the RSOC value obtained simply by coulomb counting without performing the flowchart 500, and the curve 606 represents the battery voltage VBAT.

As shown in FIG. 6, at time T′A, the battery voltage VBAT decreases to the voltage reference 5VT+VEOD, and the battery 102 is close to being fully discharged. The battery voltage VBAT decreases as the RSOC of the battery 102 decreases. In one embodiment, by performing the steps in the flowchart 500, the RSOC value can be controlled to be, e.g., 5% when the battery voltage VBAT is within the range [4VT+VEOD, 5VT+VEOD), 4% when the battery voltage VBAT is within the range [3VT+VEOD, 4VT+VEOD), . . . , and 1% when the battery voltage VBAT is within the range (VEOD, VT+VEOD). In addition, the RSOC value can be controlled to be 0% when the battery voltage VBAT has decreased to the end-of-discharge voltage VEOD.

By way of example, at time TB in FIG. 6, the battery voltage VBAT is within the range [3VT+VEOD, 4VT+VEOD), and the RSOC value at the curve 604 is 5%, and therefore the processor 140 performs step 532 of the flowchart 500 to decrease the RC value by a decrement ΔRC2, e.g., ΔRC2=ΔC+10%*CF. Thus, the RSOC value decreases toward 4%. As mentioned above, the decrement ΔRC2 is less than 1% of the fully-charged capacity of the battery 102, and therefore the RSOC value does not jump from 5% to 3% after the RC value is decreased.

Consequently, compared with conventional methods for estimating a remaining capacity of a battery, the RC value obtained by performing the flowchart 500 can be closer to the actual RC value, and the RSOC value shown on the screen 132 can be closer to the actual RSOC value of the battery 102. In addition, the RSOC value shown on the screen 132 does not change discontinuously.

FIG. 7 illustrates a flowchart 700 of examples of operations performed by a device, e.g., the host device 130 in FIG. 1, in an embodiment according to the present invention. In one embodiment, the flowchart 700 is implemented as a computer program, e.g., including computer-executable instructions, stored in a computer-readable medium, e.g., the memory 134. FIG. 7 is described in combination with FIG. 1, FIG. 2, FIG. 3, FIG. 4, FIG. 5 and FIG. 6.

In step 702, the processor 140 calculates a capacity ratio, e.g., the above mentioned RSOC, of a calculated remaining capacity of the battery 102 to a capacity reference, e.g., a fully-charged capacity, of the battery 102.

In step 704, the processor 140 compares a parameter, e.g., a charging current ICHG in a charging state or a battery voltage VBAT in a discharging state, indicative of a status of the battery 102 with a parameter reference, e.g., the current references mentioned in FIG. 3 or the voltage reference mentioned in FIG. 5, to generate a first comparison result.

In step 706, the processor 140 compares the capacity ratio, e.g., the RSOC, with a ratio reference, e.g., the ratio references in FIG. 3 or FIG. 5, to generate a second comparison result.

In step 708, the processor 140 sets an amount of change, e.g., an increment ΔRC1 or a decrement ΔRC2, according to the first and second comparison results, and changes the calculated remaining capacity by the amount.

In summary, embodiments according to the present invention provide methods for estimating an RC (remaining capacity) value and RSOC (relative state of charge) value of a battery, and devices that implement those methods. In one embodiment, during a charging process, the range of the battery current is determined and an increment is determined according to the range. The RC value of the battery is increased by the increment. In another embodiment, during a discharging process, the range of the battery voltage is determined and a decrement is determined according to the range. The RC value of the battery is decreased by the decrement. As a result, the estimated RC value and ROSC value are adjusted toward the actual RC value and ROSC value. Embodiments according to the present invention can be used in any kind of device which is operable for estimating a remaining capacity of a battery. The device can be, but is not limited to, a desktop, a laptop, a smart phone, a palmtop, or a tablet computer.

While the foregoing description and drawings represent embodiments of the present invention, it will be understood that various additions, modifications and substitutions may be made therein without departing from the spirit and scope of the principles of the present invention as defined in the accompanying claims. One skilled in the art will appreciate that the invention may be used with many modifications of form, structure, arrangement, proportions, materials, elements, and components and otherwise, used in the practice of the invention, which are particularly adapted to specific environments and operative requirements without departing from the principles of the present invention. The presently disclosed embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims and their legal equivalents, and not limited to the foregoing description.

Claims

1. A device comprising:

an interface configured to receive information for a parameter indicative of a status of a battery; and
a processor, coupled to said interface, configured to calculate a remaining capacity of said battery and calculate a capacity ratio of the calculated remaining capacity to a capacity reference of said battery, configured to compare said parameter with a parameter reference to generate a first comparison result, configured to compare said capacity ratio with a ratio reference to generate a second comparison result, configured to set an amount according to said first and second comparison results, and configured to change said calculated remaining capacity by said amount.

2. The device as claimed in claim 1, wherein said calculated remaining capacity is obtained by multiplying a current of said battery by a time period of operation of said battery.

3. The device as claimed in claim 1, wherein said battery has a fully-charged capacity when said battery is fully-charged, and wherein said capacity reference comprises said fully-charged capacity.

4. The device as claimed in claim 1, wherein said parameter comprises a charging current of said battery, and wherein said charging current decreases as said battery is charged in a predetermined charging mode.

5. The device as claimed in claim 4, wherein said processor compares said charging current with a current reference to generate said first comparison result, and wherein said processor increases said calculated remaining capacity by said amount if said charging current is less than said current reference and if said capacity ratio is less than said ratio reference.

6. The device as claimed in claim 4, wherein said processor compares said charging current with a first current reference and a second current reference to determine a range of said charging current, and wherein said processor increases said ratio reference if said first and second current references are decreased.

7. The device as claimed in claim 1, wherein said parameter comprises a battery voltage of said battery in a discharging state.

8. The device as claimed in claim 7, wherein said processor compares said battery voltage with a voltage reference to generate said first comparison result, and wherein said processor decreases said calculated remaining capacity by said amount if said battery voltage is less than said voltage reference and if said capacity ratio is greater than said ratio reference.

9. The device as claimed in claim 7, wherein said processor compares said battery voltage with a first voltage reference and a second voltage reference to determine a range of said battery voltage, and wherein said processor decreases said ratio reference if said first and second voltage references are decreased.

10. A method for estimating a remaining capacity of a battery, said method comprising:

calculating, using a processor, a capacity ratio of a calculated remaining capacity of said battery to a capacity reference of said battery;
comparing a parameter indicative of a status of said battery with a parameter reference to generate a first comparison result;
comparing said capacity ratio with a ratio reference to generate a second comparison result;
setting an amount according to said first and second comparison results; and
changing said calculated remaining capacity by said amount.

11. The method as claimed in claim 10, further comprising:

multiplying a current of said battery by a time period of operation of said battery to obtain said calculated remaining capacity.

12. The method as claimed in claim 10, further comprising:

comparing a charging current of said battery with a current reference to generate said first comparison result; and
increasing said calculated remaining capacity by said amount if said charging current is less than said current reference and said capacity ratio is less than said ratio reference.

13. The method as claimed in claim 10, further comprising:

comparing a battery voltage of said battery with a voltage reference to generate said first comparison result; and
decreasing said calculated remaining capacity by said amount if said battery voltage is less than said voltage reference and said capacity ratio is greater than said ratio reference.

14. A device comprising:

a processor; and
a memory coupled to said processor, said memory comprising computer-readable instructions that, when executed by said processor, cause said processor to calculate a remaining capacity of said battery, to calculate a capacity ratio of the calculated remaining capacity to a capacity reference of said battery, to compare a parameter indicative of a status of said battery with a parameter reference to generate a first comparison result, to compare said capacity ratio with a ratio reference to generate a second comparison result, to set an amount according to said first and second comparison results, and to change said calculated remaining capacity by said amount.

15. The device as claimed in claim 14, wherein said computer-readable instructions, when executed by said processor, cause said processor to multiply a current of said battery by a time period of operation of said battery to obtain said calculated remaining capacity.

16. The device as claimed in claim 14, wherein said battery has a fully-charged capacity when said battery is fully charged, and wherein said capacity reference comprises said fully-charged capacity.

17. The device as claimed in claim 14, wherein said parameter comprises a charging current of said battery, and wherein said computer-readable instructions, when executed by said processor, cause said processor to compare said charging current with a current reference to generate said first comparison result, and to increase said calculated remaining capacity by said amount if said charging current is less than said current reference and if said capacity ratio is less than said ratio reference.

18. The device as claimed in claim 14, wherein said parameter comprises a charging current of said battery, and wherein said computer-readable instructions, when executed by said processor, cause said processor to compare said charging current with a first current reference and a second current reference to determine a range of said charging current, and to increase said ratio reference if said first and second current references are decreased.

19. The device as claimed in claim 14, wherein said parameter comprises a battery voltage of said battery, and wherein said computer-readable instructions, when executed by said processor, cause said processor to compare said battery voltage with a voltage reference to generate said first comparison result, and to decrease said calculated remaining capacity by said amount if said battery voltage is less than said voltage reference and if said capacity ratio is greater than said ratio reference.

20. The device as claimed in claim 14, wherein said parameter comprises a battery voltage of said battery, and wherein said computer-readable instructions, when executed by said processor, cause said processor to compare said battery voltage with a first voltage reference and a second voltage reference to determine a range of said battery voltage, and to decrease said ratio reference if said first and second voltage references are decreased.

Patent History
Publication number: 20140156209
Type: Application
Filed: Jan 18, 2013
Publication Date: Jun 5, 2014
Applicant: O2MICRO INC. (Santa Clara, CA)
Inventors: Yi YUAN (Wuhan), Yingguo ZHANG (Wuhan), Zhibin HUA (Shenzhen), Hua-Yi WANG (Taipei City), Ping LIU (Shenzhen)
Application Number: 13/745,299
Classifications
Current U.S. Class: Battery Monitoring (702/63)
International Classification: G01R 31/36 (20060101); G06F 17/00 (20060101);