CN108351386B - Electric quantity value calculation method, electronic equipment and storage medium - Google Patents

Electric quantity value calculation method, electronic equipment and storage medium Download PDF

Info

Publication number
CN108351386B
CN108351386B CN201680066771.8A CN201680066771A CN108351386B CN 108351386 B CN108351386 B CN 108351386B CN 201680066771 A CN201680066771 A CN 201680066771A CN 108351386 B CN108351386 B CN 108351386B
Authority
CN
China
Prior art keywords
model parameter
battery model
parameter table
value
battery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680066771.8A
Other languages
Chinese (zh)
Other versions
CN108351386A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108351386A publication Critical patent/CN108351386A/en
Application granted granted Critical
Publication of CN108351386B publication Critical patent/CN108351386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]

Abstract

A method for calculating the electric quantity value of battery, an electronic device and a storage medium relate to the field of electronic technology, and can automatically match a battery model parameter table according to the actual aging degree of the battery, so that the electric quantity value of the battery can be accurately calculated according to the parameters in the matched battery model parameter table. The method comprises the following steps: the electronic equipment stores N battery model parameter tables, wherein N is an integer greater than 1, and the electronic equipment calculates the number of charging cycles of the battery (301); determining a target battery model parameter table (302) from the N battery model parameter tables based on the number of charge cycles; then, the electric quantity value of the battery is calculated according to the target battery model parameter table (303).

Description

Electric quantity value calculation method, electronic equipment and storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method for calculating an electric quantity value, an electronic device, and a storage medium.
Background
At present, the current electric quantity value of a battery is calculated by combining parameters in a battery model parameter table and coulomb counter counting generally by adopting the battery-powered electronic equipment, so whether the parameters in the used battery model parameter table are accurate or not is a key factor for determining the precision of the electric quantity value. The electronic device is usually configured with a battery model parameter table only when it is shipped from the factory, and the battery model parameter table is constructed for a new battery. In the use process of the electronic equipment, the battery can be slowly aged and damaged due to the problems of self attributes and the like, and a battery model parameter table configured in factory leaving cannot be matched with the existing battery, so that the calculation of the electric quantity value is deviated, and the phenomena of battery 'insufficient charge' and the like occur.
One solution adopted in the prior art is that after an electronic device leaves a factory, a battery model parameter table is reconstructed in stages and pushed to a user in an online upgrade manner, and the user can only update an old battery model parameter table after manually clicking upgrade.
In fact, the aging degree of the battery is directly related to the usage degree of the user, and the usage degree of the electronic equipment is different for different users, so that the aging degree of the battery in the electronic equipment of different users is also different. If the same reconstructed battery model parameter table is pushed in the same time period, the compatibility of the pushed battery model parameter table is poor and cannot be matched with the aging degree of the battery in each electronic device, so that the current electric quantity value of each battery cannot be accurately calculated according to the pushed battery model parameter table, and therefore the problems that a newer battery cannot be fully utilized and an older battery is not fully charged are caused.
Disclosure of Invention
The embodiment of the invention provides an electric quantity value calculation method, electronic equipment and a storage medium, which can automatically match a battery model parameter table according to the actual aging degree of a battery, so that the electric quantity value of the battery can be accurately calculated according to parameters in the matched battery model parameter table.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides an electric quantity value calculation method, which is applied to an electronic device, where N battery model parameter tables are stored in the electronic device, where N is an integer greater than 1, and the method includes: first, the electronic device calculates the number of charge cycles of the battery. Then, the electronic device determines a target battery model parameter table from the N battery model parameter tables according to the number of charging cycles. And then, the electronic equipment calculates the electric quantity value of the battery according to the target battery model parameter table.
Therefore, the electronic equipment can determine the target battery model parameter table matched with the aging degree of the battery through the charging period number capable of reflecting the aging degree of the battery, and accurately calculate the current actual electric quantity value of the battery according to the parameters in the matched target battery model parameter table.
In one possible implementation, the electronic device calculating a number of charge cycles of the battery includes: first, the electronic device records a first electric quantity value when establishing connection with the charger. Then, the electronic device records the second electric quantity value when the electronic device is disconnected from the charger. When the second electric quantity value is larger than the first electric quantity value, the electronic equipment accumulates the difference value between the second electric quantity value and the first electric quantity value into the total charging amount. Then, the electronic device calculates the number of charging cycles according to the total amount of charging.
Since the number of times of full charge of the battery can be calculated based on the total amount of charge, and since the battery can discharge its charge only after it is charged, the number of charge cycles of the battery can be expressed as the number of times of full charge of the battery.
In one possible implementation manner, the expression that the electronic device calculates the number of charging cycles according to the total charging amount may be: n is Total/100%, where n represents the number of charging cycles, Total represents the Total amount of charging, and "/" represents the quotient operator.
In one possible implementation, each battery model parameter table corresponds to a reference interval of the number of charging cycles. The electronic device determining a target battery model parameter table from the N battery model parameter tables according to the number of charging cycles comprises: the electronic equipment determines a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is located, wherein the first battery model parameter table is a target battery model parameter table.
Therefore, the electronic equipment can quickly and intuitively determine the target battery model parameter table matched with the aging degree of the battery according to the number of charging cycles, so that the electric quantity value of the battery can be accurately calculated according to the parameters in the matched target battery model parameter table.
In one possible implementation, the battery model parameter table further includes a capacity growth rate reference value. The method further comprises the following steps: the electronic device calculates a capacity growth rate of the battery. At this time, the electronic device determining the target battery model parameter table from the N battery model parameter tables according to the number of charging cycles includes: the electronic equipment determines a target battery model parameter table from the N battery model parameter tables according to the charging cycle number, the charging cycle number reference interval, the capacity growth rate and the capacity growth rate reference value.
Thus, the electronic device can determine the target battery model parameter table matching the aging degree of the battery more accurately by simultaneously considering the number of charge cycles and the capacity increase rate, which can reflect the aging degree of the battery.
In a possible implementation manner, when an absolute value of a difference between a first capacity growth rate reference value and a capacity growth rate in a first battery model parameter table corresponding to a first charging cycle number reference interval in which the number of charging cycles is located is less than or equal to a first threshold, the electronic device determines that the first battery model parameter table is a target battery model parameter table.
When the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is smaller than or equal to the first threshold, it can be shown that the first battery model parameter table corresponding to the number of charge cycles can be accurately matched with the aging degree of the battery, so that the electronic device can determine that the first battery model parameter table is the target battery model parameter table.
In a possible implementation manner, when the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is greater than the first threshold and the first capacity growth rate reference value is greater than the capacity growth rate, if the second battery model parameter table exists, the absolute value of the difference between the second capacity growth rate reference value and the capacity growth rate in the second battery model parameter table is less than or equal to the first threshold, and the second charge cycle number reference interval corresponding to the second battery model parameter table is greater than the first charge cycle number reference interval, the electronic device determines that the second battery model parameter table is the target battery model parameter table. If not, determining the first battery model parameter table as the target battery model parameter table.
When the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is greater than the first threshold value and the first capacity growth rate reference value is greater than the capacity growth rate, it is indicated that the capacity growth rate is much smaller than the capacity growth rate reference value in the first battery model parameter table and the actual aging degree of the battery is higher than the corresponding aging degree of the first battery model parameter table. Therefore, the battery model parameter table that can be accurately matched to the degree of aging of the battery may be a battery model parameter table corresponding to a charge cycle number reference section including a larger number of charge cycles.
In one possible implementation, when the electronic device determines that the second battery model parameter table is the target battery model parameter table, the method further includes: the electronic equipment adjusts the total charge amount and the charge-discharge cycle number so that the adjusted charge-discharge cycle number is in a second charge cycle number reference interval corresponding to the second battery model parameter table.
In a possible implementation manner, when the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is greater than a first threshold and the first capacity growth rate reference value is smaller than the capacity growth rate, if a third battery model parameter table exists, the absolute value of the difference between the third capacity growth rate reference value and the capacity growth rate in the third battery model parameter table is smaller than or equal to the first threshold, and a third charge cycle number reference interval corresponding to the third battery model parameter table is smaller than the first charge cycle number reference interval, the electronic device determines that the third battery model parameter table is the target battery model parameter table; if not, the electronic equipment determines that the first battery model parameter table is the target battery model parameter table.
When the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is greater than the first threshold value and the first capacity growth rate reference value is less than the capacity growth rate, it is indicated that the capacity growth rate is much greater than the capacity growth rate reference value in the first battery model parameter table and the actual aging degree of the battery is lower than the corresponding aging degree of the first battery model parameter table. Therefore, the battery model parameter table that can be accurately matched to the degree of aging of the battery may be a battery model parameter table that includes a reference interval of the number of charge cycles having a smaller number of charge cycles.
In one possible implementation manner, when the electronic device determines that the third battery model parameter table is the target battery model parameter table, the method further includes: and the electronic equipment adjusts the total charge amount and the charge-discharge cycle number so that the adjusted charge-discharge cycle number is in a third charge cycle number reference interval corresponding to the third battery model parameter table.
In one possible implementation, the electronic device calculating a capacity growth rate of the battery includes: first, the electronic device records a first voltage value of the battery and a first capacity count value of the coulometer at a first time during charging. Next, the electronic device records a second voltage value of the battery and a second capacity count value of the coulometer at a second time during the charging process. Then, the electronic device calculates a capacity increase rate based on the first voltage value, the first capacity count value, the second voltage value, and the second capacity count value.
In one possible implementation, the expression for the electronic device to calculate the capacity growth rate is:
r=(CC2-CC1)/(V2-V1)*10。
where r denotes a capacity increase rate, CC2 denotes a second capacity count value, CC1 denotes a first capacity count value, V2 denotes a second voltage value, and V1 denotes a first voltage value.
In one possible implementation manner, the first time is a time when the open-circuit voltage of the battery reaches a preset voltage, and the first voltage value is the preset voltage; the second time is a charge cut-off time, and the second voltage value is a cut-off voltage. The preset voltage can be a voltage value near a cut-off voltage, and the calculated capacity increase rate of the battery in a voltage range close to the cut-off voltage is accurate.
In one possible implementation, the method further includes: and when the difference value between the capacity increase rate obtained by the calculation and the capacity increase rate obtained by the previous calculation is larger than a second threshold value, clearing the total charge amount.
Because the increase of the charging cycle number and the capacity increase rate of the battery are gradually reduced along with the increase of the service time, when the electronic device determines that the difference value between the capacity increase rate obtained by the current calculation and the capacity increase rate obtained by the last calculation is greater than the second threshold, it indicates that the capacity increase rate of the battery is obviously increased, the electronic device may replace a new battery or a battery with lower aging degree, and the total charging amount and the charging cycle number stored in the electronic device are parameters corresponding to the old battery used before, the electronic device needs to zero the stored total charging amount and re-accumulate the total charging amount, so that the charging cycle number corresponding to the replaced battery is calculated according to the re-accumulated total charging amount.
In one possible implementation, the electronic device determines the target battery model parameter table from the N battery model parameter tables according to the number of charging cycles at the matching time. The matching time comprises the starting time, the shutdown time or the charging ending time of the electronic equipment or the dormancy awakening time. When the electronic equipment is matched and switched to load the target battery model parameter table at the starting-up time, the shutdown time, the charging ending time or the dormancy awakening time, the direct experience effect of a user cannot be influenced.
In a second aspect, an embodiment of the present invention provides an electronic device, where N battery model parameter tables are stored in the electronic device, where N is an integer greater than 1. The electronic device includes: the first calculating unit is used for calculating the charging period number of the battery. And the determining unit is used for determining a target battery model parameter table from the N battery model parameter tables according to the number of the charging cycles. And the second calculating unit is used for calculating the electric quantity value of the battery according to the target battery model parameter table.
In a possible implementation manner, the determining unit is specifically configured to: at the matching moment, determining a target battery model parameter table from the N battery model parameter tables according to the number of charging cycles; the matching time comprises the starting time, the shutdown time or the charging ending time of the electronic equipment.
In a possible implementation manner, the first computing unit is specifically configured to: recording a first electric quantity value when the connection with the charger is established; recording a second electric quantity value when the charger is disconnected; when the second electric quantity value is larger than the first electric quantity value, accumulating the difference value between the second electric quantity value and the first electric quantity value into the total charging amount; the number of charging cycles is calculated based on the total amount of charge.
In one possible implementation, each battery model parameter table corresponds to a reference interval of the number of charging cycles. The determination unit is specifically configured to: and determining a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is positioned, wherein the first battery model parameter table is a target battery model parameter table.
In a possible implementation manner, each battery model parameter table corresponds to a reference interval of the number of charging cycles, and the battery model parameter table further includes a reference value of the capacity growth rate. The electronic device further includes: and the third calculating unit is used for calculating the capacity increase rate of the battery. The determination unit is specifically configured to: and determining a target battery model parameter table from the N battery model parameter tables according to the charging cycle number, the charging cycle number reference interval, the capacity growth rate and the capacity growth rate reference value.
In a possible implementation manner, the determining unit is specifically configured to: determining a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is positioned; and when the absolute value of the difference value between the capacity growth rate reference value and the capacity growth rate in the first battery model parameter table is less than or equal to a first threshold value, determining the first battery model parameter table as a target battery model parameter table.
In a possible implementation manner, the determining unit is further configured to: when a first capacity growth rate reference value in the first battery model parameter table and an absolute value of a difference value between the first capacity growth rate reference value and the capacity growth rate are larger than a first threshold value, and the first capacity growth rate reference value is larger than the capacity growth rate, if a second battery model parameter table exists, an absolute value of a difference value between a second capacity growth rate reference value included in the second battery model parameter table and the capacity growth rate is smaller than or equal to the first threshold value, and a second charging cycle number reference interval corresponding to the second battery model parameter table is larger than a first charging cycle number reference interval, the second battery model parameter table is determined to be a target battery model parameter table. If not, determining the first battery model parameter table as the target battery model parameter table.
In a possible implementation manner, the determining unit is further configured to: when the first capacity growth rate reference value in the first battery model parameter table and the absolute value of the difference value between the first capacity growth rate reference value and the capacity growth rate are larger than a first threshold value, and the first capacity growth rate reference value is smaller than the capacity growth rate, if a third battery model parameter table exists, the third battery model parameter table includes a third capacity growth rate reference value, the absolute value of the difference value between the third capacity growth rate reference value and the capacity growth rate is smaller than or equal to the first threshold value, and a third charging cycle number reference interval corresponding to the third battery model parameter table is smaller than the first charging cycle number reference interval, the third battery model parameter table is determined to be a target battery model parameter table. If not, determining the first battery model parameter table as the target battery model parameter table.
In a possible implementation manner, the third computing unit is specifically configured to: recording a first voltage value of the battery and a first capacity count value of the coulometer at a first time in the charging process; recording a second voltage value of the battery and a second capacity count value of the coulometer at a second time in the charging process; and calculating the capacity increase rate according to the first voltage value, the first capacity counting value, the second voltage value and the second capacity counting value.
In one possible implementation, the electronic device further includes: and the processing unit is used for clearing the total charge amount when the difference value between the capacity increase rate obtained by the second calculating unit in the current calculation and the capacity increase rate obtained by the last calculation is larger than a second threshold value.
In another aspect, an embodiment of the present invention provides an electronic device, which may implement the functions performed by the electronic device in the foregoing method embodiments, where the functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
In one possible design, the structure of the electronic device includes a processor configured to support the electronic device to perform the corresponding functions of the above method. The electronic device also includes a memory for coupling to the processor for storing program instructions and data necessary for the electronic device.
In another aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for the electronic device, which includes a program designed to execute the above aspects.
Compared with the prior art, in the scheme provided by the embodiment of the invention, the electronic equipment can determine the target battery model parameter table matched with the aging degree of the battery through the charging cycle number capable of reflecting the aging degree of the battery, so that the current electric quantity value actually possessed by the battery can be accurately calculated according to the parameters in the matched target battery model parameter table.
For ease of understanding, examples are given in part to illustrate concepts related to the present invention. As follows:
open Circuit Voltage (OCV): terminal voltage of the battery in an open state.
Internal Resistance of the Battery (Rbatt): when the battery is in operation, the current flows through the resistance of the battery.
Battery capacity: the storage capacity of the battery is mAh.
Full Charge Capacity (FCC): the amount of power that can be stored when the battery is fully charged.
Capacity Percentage (PC): the battery actually has a capacity that is a percentage of the full charge capacity.
Electric quantity value: the battery currently has a capacity that is a percentage of the full charge capacity, i.e., the current capacity percentage of the battery.
Capacity growth rate: the capacity increase rate indicates a capacity value of the battery that increases when the battery increases by a unit voltage during the charging process.
The charge cutoff time: while the battery is charging, the electronic device determines when the capacity of the battery reaches a full charge capacity.
Total charge: the accumulated charge amount of the battery.
And (3) fully charging: every time the accumulated charge amount of the battery increases by 100%, it corresponds to a full charge process.
And (3) complete discharge: every time the accumulated discharge capacity of the battery is increased by 100%, the battery corresponds to a complete discharge process.
Charging period: the process of the battery from full charge to full discharge to full charge.
Number of charging cycles: the number of cycles of the battery full charge process and the full discharge process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile phone according to an embodiment of the present invention;
fig. 2 is a diagram illustrating a relationship between a percentage of a full charge capacity of a battery in an initial full charge capacity and a number of charging cycles according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for calculating an electric quantity value according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for determining a parameter table of a battery model according to a number of charge cycles according to an embodiment of the present invention;
FIG. 5 is a flow chart of another method for calculating an electric quantity value according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for determining a parameter table of a target battery model according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a block diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The electronic device according to the embodiment of the present invention is a device powered by a battery, and may be, for example, a mobile phone, an MP3, a tablet computer, a Personal Digital Assistant (PDA), or the like. Taking an electronic device as an example of a mobile phone, a partial structural block diagram of the electronic device can be seen in fig. 1. Referring to fig. 1, a handset 100 may generally include: radio Frequency (RF) circuitry 110, memory 120, other input devices 130, display screen 140, sensors 150, audio circuitry 160, I/O subsystem 170, processor 180, and battery 190. Those skilled in the art will appreciate that the handset configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or may combine certain components, or split certain components, or arranged in different components. Those skilled in the art will appreciate that the display 140 is part of a user interface and that the handset 100 may include fewer than or the same user interface shown.
The battery 190 is mainly used to supply power to the components of the mobile phone. The battery may be logically connected to the processor 180 through a power management system, thereby implementing functions such as charging, discharging, and power management through the power management system.
In addition, the processor 180 is a control center of the mobile phone 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. The RF circuit 110 may be used for receiving and transmitting signals during a message transmission or a call. The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone 100 by operating the software programs and modules stored in the memory 120. Other input devices 130 may be used to receive entered numeric or character information and generate key signal inputs relating to user settings and function controls of the handset 100. The display screen 140 may be used to display information entered by or provided to the user as well as various menus of the handset 100 and may also accept user input. The handset 100 may also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and the handset 100. The I/O subsystem 170 controls input and output of external devices, which may include other devices, an input controller 171, a sensor controller 172, and a display controller 173.
The general process of calculating the battery charge value by using the battery-powered electronic device is as follows: the electronic equipment firstly obtains the temperature of the battery and searches the full charge capacity corresponding to the temperature in a battery model parameter table; then obtaining the open-circuit voltage of the battery, and searching a capacity percentage reference value corresponding to the open-circuit voltage in a battery model parameter table; then, according to the capacity percentage reference value and the temperature, searching the corresponding battery internal resistance in the battery model parameter table; and then calculating the current actual electric quantity value of the electronic equipment according to the full charge capacity, the open-circuit voltage, the capacity percentage reference value, the internal resistance of the battery and the capacity counting value of the coulometer.
It should be noted that the "electric quantity value" of the battery calculated by the electric quantity value calculation method provided in the embodiment of the present invention is an electric quantity value actually possessed by the battery at present, and specifically may be a percentage of the capacity actually possessed by the battery at present occupying the full charge capacity, and is not the same parameter as a preset capacity percentage reference value in the battery model parameter table.
Aiming at the problem that the calculation of the electric quantity value of the battery is inaccurate due to the fact that the battery model parameter table is not matched with the aging degree of the battery in the prior art, the embodiment of the invention provides the electric quantity value calculation method, which can accurately match the target battery model parameter table according to the charging and discharging cycle number capable of reflecting the actual aging degree of the battery, so that the electric quantity value of the battery can be accurately calculated according to the parameters in the matched target battery model parameter table.
The number of charging cycles is used to indicate the number of cycles of the full charging process and the full discharging process of the battery, i.e. the number of cycles of charging and discharging the battery. When the accumulated charging amount of the battery increases by 100%, corresponding to a full charging process; when the accumulated discharge capacity of the battery increases by 100%, a complete discharge process is performed. Since the battery can only be discharged after charging, the number of charging cycles corresponds in fact to the number of full charges of the battery.
It is experimentally determined that at a certain temperature, the corresponding relationship between the percentage of the full charge capacity of the battery to the initial full charge capacity and the number of battery charging cycles during the actual use of a certain type of battery can be shown in fig. 2. As can be seen from fig. 2, the longer the battery is used, the larger the number of charging cycles of the battery in the actual use process is, the higher the battery aging degree is, and the smaller the full charge capacity of the battery is, and the full charge capacity of the battery is the essential expression of the battery aging degree. It can be seen that the magnitude of the charging cycle number of the battery in the actual use process can reflect the aging degree of the battery.
The embodiment of the invention provides an electric quantity value calculation method which can be applied to electronic equipment powered by a battery, wherein N battery model parameter tables are stored in the electronic equipment, and N is an integer larger than 1. Referring to fig. 3, the method may include:
301. the electronic device calculates a number of charge cycles of the battery.
The number of charging cycles is the number of charging cycles calculated in real time during the actual use of the battery. Since the number of charge cycles of the battery can be used to reflect the degree of aging of the battery, the electronic device can calculate and save the number of charge cycles of the battery as a reference factor for determining the degree of aging of the battery.
302. The electronic device determines a target battery model parameter table from the N battery model parameter tables according to the number of charging cycles.
After the number of charge cycles of the battery is obtained through calculation, the electronic device may determine, according to the number of charge cycles, a battery model parameter table that matches the aging degree of the battery reflected by the number of charge cycles from N battery model parameter tables that are pre-stored in the electronic device, as a target battery model parameter table.
303. The electronic equipment calculates the electric quantity value of the battery according to the target battery model parameter table.
The electric quantity value obtained by calculation here is the electric quantity value actually currently possessed by the battery, and specifically may be a percentage of the full charge capacity occupied by the capacity actually currently possessed by the battery, that is, a current capacity percentage of the battery. The electronic equipment can automatically load the target battery model parameter table after determining the target battery model parameter table matched with the aging degree of the battery according to the number of charging cycles, so that the electric quantity value of the battery can be accurately calculated according to the parameters in the loaded target battery model parameter table.
When the target battery model parameter table is different from the originally used battery model parameter table of the electronic equipment, the electronic equipment loads the target battery model parameter table, which is equivalent to switching from the originally used battery model parameter table to a new target battery model parameter table.
It should be noted that, after determining the parameter table of the target battery model, the process of calculating the electric quantity value of the battery by the electronic device according to the parameters in the parameter table of the target battery model is the same as that in the prior art, and is not described herein again.
In the method for calculating an electric quantity value provided in the above embodiment of the present invention, the electronic device determines the target battery model parameter table matched with the aging degree of the battery according to the number of charging cycles capable of reflecting the aging degree of the battery, so that the electric quantity value actually possessed by the battery at present can be accurately calculated according to the parameters in the matched target battery model parameter table.
In step 301, the calculating, by the electronic device, the number of charging cycles of the battery may specifically include:
3011. when the electronic equipment is connected with the charger, the first electric quantity value is recorded.
3012. And when the electronic equipment is disconnected from the charger, recording the second electric quantity value.
In step 3011, "connection establishment" and "disconnection" refer to the electronic device being connected and disconnected to and from the charger during the same charging process.
3013. When the second electric quantity value is larger than the first electric quantity value, the electronic equipment accumulates the difference value between the second electric quantity value and the first electric quantity value into the total charging amount.
3014. The electronic device calculates the number of charging cycles based on the total amount of charging.
Since the battery can only be discharged after charging, the number of charging cycles corresponds in practice to the number of times the battery is fully charged. The above-mentioned process 3011-3014 is actually a process of calculating the number of times of full charge of the battery, that is, a process of calculating the number of charging cycles of the battery.
When the number of charging cycles of the battery is calculated, the electronic device may count up the total charging amount of the battery, the total charging amount may be represented by a capacity percentage of the battery, the total charging amount of the battery may be 0 when the battery leaves a factory, and when the total charging amount reaches 100%, that is, when the capacity percentage of the battery reaches 100%, the battery may be considered to have completed a complete charging process, so as to correspond to a charging and discharging cycle. Thus, the number of charge cycles can be obtained by dividing the accumulated total amount of charge by 100%. That is, the expression for the electronic device to calculate the number of charging cycles according to the total amount of charging may be:
n is Total/100% of formula one
In the first expression, n represents the number of charge cycles, Total represents the Total amount of charge, and "/" represents the quotient operator.
Specifically, if Total is the first value before step 3011, when the electronic device establishes a connection with the charger in step 3011, the recorded first electric quantity value is QAWhen the electronic device is disconnected from the charger in step 3012, the recorded second electric quantity value is QBWhen Q is obtainedB>QAWhen it is, it shows that the battery is charged with electric quantity QB-QAThus, the Total amount of charge Total + obtained in step 3013 is calculated to be Q +B-QAThat is, the total charge amount calculated in step 3013 is the first value and (Q)B-QA) The sum of (1); when Q isB≤QAWhen the Total charge is over, the battery is not charged, so that the Total charge amount Total is not processed. Specifically, the first and second electric quantity values may be represented by a capacity percentage of the battery, for example, the first electric quantity value may be 30% and the second electric quantity value may be 90%.
Specifically, in the embodiment of the present invention, each battery model parameter table stored in the electronic device may correspond to a charging cycle number reference interval, or correspond to a charging cycle number reference value.
For example, when each battery model parameter table corresponds to a charge cycle reference interval, the corresponding relationship between the battery model parameter table and the charge cycle reference value can be seen in table 1 below.
TABLE 1
Reference interval of charging period number Battery model parameter table
Reference interval
1 of charging cycle number T1
Reference interval of charge cycle number 2 T2
...... ......
Reference interval N-1 of charging cycle number TN-1
Reference interval N of charging cycle number TN
For example, when each battery model parameter table corresponds to a charge cycle reference value, the corresponding relationship between the battery model parameter table and the charge cycle reference value can be seen in table 2 below.
TABLE 2
Reference value of charge cycle number Battery model parameter table
Reference value of charge cycle number 1 T1
Reference value of number of charge cycles 2 T2
...... ......
Reference value of charge cycle number N-1 TN-1
Reference value N of number of charging cycles TN
Wherein, when each battery model parameter table corresponds to a reference value of the charging period number, the reference value can also beCorresponding to a reference interval of charging cycle number corresponding to each battery model parameter table. For example, in the above Table 2, the battery model parameter Table T1Corresponding to the reference value 1 of the charging cycle number, the reference value 1 of the charging cycle number can be equivalent to the interval demarcation point, and the parameter table T of the battery model1May correspond to a reference interval corresponding to [ charging cycle number reference 1, charging cycle number reference 2) ]; battery model parameter table TiCorresponding to the reference value i of the charging cycle number, which can be equivalent to the interval demarcation point, the parameter table T of the battery modeliMay correspond to a reference interval corresponding to [ charging cycle number reference i, charging cycle number reference i +1), where i is a positive integer less than or equal to N.
For example, when each battery model parameter table corresponds to a parameter interval of the number of charge cycles, the specific structure of the battery model parameter table can be seen in table 3 below. The unit of the temperature can be mAh, the unit of the full charge capacity can be mAh, the unit of the opened voltage can be V, and the unit of the internal resistance of the battery can be m omega.
TABLE 3
Figure GPA0000257734400000171
Figure GPA0000257734400000181
As can be seen from table 3, the battery model parameter table can be used to represent the corresponding relationship between the temperature and full charge capacity, the open circuit voltage, the temperature and capacity percentage reference values, and the temperature and capacity percentage reference values and the battery internal resistance.
Note that, in table 3, the interval id is used to identify an interval. For example, the interval may be a specific interval [100, 200 ], or may be an interval boundary point 100. The battery model parameter table shown in table 3 shows only the correspondence of several temperatures (e.g., 5 temperatures are shown in table 2) to the full charge capacity. In fact, the electronic device may obtain a continuous function curve for representing the corresponding relationship between different temperatures and full charge capacity according to a plurality of data sets given in the battery model parameter table. Wherein the upper and lower temperature boundaries of the function curve may be 60 ℃ and-20 ℃, respectively.
When each battery model parameter table in the electronic device corresponds to a reference interval of the number of charging cycles, in step 302, the determining, by the electronic device, the target battery model parameter table from the N battery model parameter tables according to the number of charging cycles may specifically include:
3021. the electronic equipment determines a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is located, wherein the first battery model parameter table is a target battery model parameter table.
The aging degree of the battery can be reflected by the charging period number of the battery in the actual use process, so that the electronic equipment can determine a first battery model parameter table corresponding to a first charging period number reference interval in which the charging period number is positioned, namely a target battery model parameter table matched with the aging degree of the battery, and the electric quantity value of the battery can be calculated according to parameters in the matched target battery model parameter table.
Illustratively, when a battery has a standard life of 500 charge cycles, table 2 may be embodied as shown in table 4 below.
TABLE 4
Reference interval of charging period number Battery model parameter table
[0,500/N) T1
[500/N,2*500/N) T2
[2*500/N,3*500/N) T3
...... ......
[(N-2)*500/N,(N-1)*500/N) TN-1
[(N-1)*500/N,...) TN
Taking the correspondence between the reference interval of the charging cycle number and the parameter table of the battery model shown in table 4 as an example, the process of the electronic device determining the parameter table of the first battery model corresponding to the reference interval of the charging cycle number n is as shown in fig. 4.
In the embodiment, the electronic equipment can quickly and intuitively determine the target battery model parameter table matched with the aging degree of the battery according to the corresponding relation among the charging cycle number, the charging cycle number reference interval and the battery model parameter table, so that the electric quantity value of the battery can be accurately calculated according to the parameters in the matched target battery model parameter table.
Further, the battery model parameter table may further include a capacity growth rate reference value. For example, a battery model parameter table including a capacity growth rate reference value may be found in table 5 below. Wherein, the unit of the capacity growth rate reference value can be mAh/0.1V.
TABLE 5
Figure GPA0000257734400000201
Figure GPA0000257734400000211
When the battery model parameter table further includes a capacity increase rate reference value, referring to fig. 5, the method for calculating an electric quantity value according to the embodiment of the present invention may further include the following step 304:
304. the electronic device calculates a capacity growth rate of the battery.
Based on step 304, the electronic device, in step 302, determining the target battery model parameter table from the N battery model parameter tables according to the number of charging cycles may specifically include:
3022. the electronic equipment determines a target battery model parameter table from the N battery model parameter tables according to the charging cycle number, the charging cycle number reference interval, the capacity growth rate and the capacity growth rate reference value.
Wherein the capacity increase rate indicates a capacity value (i.e., a difference in coulomb counter capacity count value) of the battery that increases in response to a unit voltage increase of the battery during charging. In general, the longer the battery is used, the higher the internal resistance of the battery, the smaller the rate of increase in the capacity of the battery, and the higher the degree of degradation of the battery. Thus, the capacity growth rate of the battery can also be used to reflect the degree of aging of the battery. Therefore, the electronic device can determine the target battery model parameter table matching the aging degree of the battery more accurately by simultaneously considering the number of charge cycles and the capacity increase rate that can reflect the aging degree of the battery.
Specifically, the electronic device may calculate the capacity increase rate of the battery in step 304 by:
3041. the electronic device records a first voltage value of the battery and a first capacity count value of the coulometer at a first time during charging.
3042. The electronic device records a second voltage value of the battery and a second capacity count value of the coulometer at a second time during the charging process.
3043. The electronic device calculates a capacity increase rate according to the first voltage value, the first capacity count value, the second voltage value, and the second capacity count value.
Specifically, when the unit voltage is 0.1V, the electronic device may calculate the capacity increase rate according to the first count value and the second count value by the following expression:
r ═ 10 (CC2-CC1)/(V2-V1) of the formula bis
In the second expression, r represents a capacity increase rate, CC2 represents a second capacity count value, CC1 represents a first capacity count value, V2 represents a second voltage value, and V1 represents a first voltage value. The unit of the first capacity count value and the unit of the second capacity count value may be mAh, and the unit of the first voltage value and the unit of the second voltage value may be V.
In a possible implementation manner, the first voltage value may be a preset voltage value, and the first time may be a time when the open-circuit voltage of the battery reaches the preset voltage value; the second time may be a charge cut-off time, and the second voltage value may be a cut-off voltage. At the charge off time, the voltage of the battery is an off voltage. The preset voltage can be a voltage value near a cut-off voltage, and the calculated capacity increase rate of the battery is more accurate in a voltage segment range near the cut-off voltage. For example, the preset voltage may be 4.2V, and the cut-off voltage may be 4.4V.
The charge ending time is the time when the electronic device determines that the capacity of the battery reaches the full charge capacity in the process of charging the battery. The charging-off time of the electronic device is not necessarily the time when the electronic device is disconnected from the charger, that is, the charging-off time and the charging-stop time of the electronic device are not the same concept. Specifically, when the battery is charged, the monitoring program in the electronic device reports a charge termination message, and the electronic device can determine that the time is the charge termination time.
Referring to fig. 6, in step 3022, the electronic device may determine the target battery model parameter table from the N battery model parameter tables according to the number of charge cycles, the reference interval of the number of charge cycles, the capacity growth rate, and the reference value of the capacity growth rate, which includes the following three cases:
in the first case: in a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is located, an absolute value of a difference between a first capacity growth rate reference value and a capacity growth rate is less than or equal to a first threshold. In this case, step 3022 may specifically be the following step 401:
401. the electronic device determines the first battery model parameter table as a target battery model parameter table.
When determining the target battery model parameter table, the electronic device may first determine, according to the charge cycle number, which is a parameter capable of reflecting the aging degree of the battery, a first battery model parameter table corresponding to a charge cycle number reference interval in which the charge cycle number is located.
For convenience of illustration, the embodiment of the present invention will use N in Table 1 as 5, and the first battery model parameter table as the battery model parameter table T in Table 13Battery model parameter table T3The reference interval of the corresponding charge cycle number is [200, 300) for example.
After the first battery model parameter table is determined, when the absolute value of the difference between the first capacity growth rate reference value in the first battery model parameter table and the calculated capacity growth rate is smaller than or equal to the first threshold, it can be stated that the first battery model parameter table corresponding to the number of charging cycles can be accurately matched with the aging degree of the battery, so that the electronic device can determine that the first battery model parameter table is the target battery model parameter table. The specific value of the first threshold may be set as needed, and may be, for example, 5%.
When the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is larger than the first threshold, it can be shown that the number of charging cycles of the battery and the actual capacity growth rate of the battery cannot be accurately matched, and at this time, the target battery model parameter table can be determined according to the capacity growth rate of the battery.
In the second case: the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is greater than a first threshold, and the first capacity growth rate reference value is greater than the capacity growth rate. In this case, step 3022 may specifically be the following step 402:
402. if the second battery model parameter table exists, the absolute value of the difference value between the second capacity growth rate reference value and the capacity growth rate included in the second battery model parameter table is smaller than or equal to the first threshold value, and the second charging cycle number reference interval corresponding to the second battery model parameter table is larger than the first charging cycle number reference interval, the electronic equipment determines that the second battery model parameter table is the target battery model parameter table.
When the absolute value of the difference between the first capacity growth rate reference value and the calculated capacity growth rate is greater than the first threshold value, and the first capacity growth rate reference value is greater than the capacity growth rate, it can be shown that the capacity growth rate is much smaller than the first capacity growth rate reference value, and the actual aging degree of the battery is higher than the aging degree corresponding to the first battery model parameter table. Therefore, the second battery model parameter table that can be accurately matched to the degree of aging of the battery may be a battery model parameter table in which the number of charge cycles in the corresponding charge cycle reference interval is larger.
Therefore, the electronic device may determine whether a second battery model parameter table exists from the battery model parameter table in which the number of charge cycles in the corresponding charge cycle number reference interval is greater than the number of charge cycles in the charge cycle number reference interval corresponding to the first battery model parameter table, such that an absolute value of a difference between a second capacity increase rate reference value and a capacity increase rate in the second battery model parameter table is less than or equal to the first threshold value. If the battery aging degree exists, the second battery model parameter table is a target battery model parameter table which can be accurately matched with the aging degree of the battery. Illustratively, when the first battery model parameter table is the battery model parameter table T of Table 13The electronic device may then sequentially determine the battery model parameter table T3The subsequent battery model parameter table T4And T5Whether there is a second battery model parameter table that satisfies the above conditions.
And after the second battery model parameter table is determined to be the target battery model parameter table, the electronic equipment can adjust the total charging amount and the charging period number, so that the charging period number is adjusted to be within a second charging period number reference interval corresponding to the second battery model parameter table, and the electronic equipment can quickly and accurately determine the target battery model parameter table according to the adjusted charging period number. Specifically, if the reference interval of the second charging cycle number corresponding to the second battery model parameter table is [ a, b ], the electronic device may adjust the charging cycle number to a boundary value a, or may adjust the charging cycle number to an arbitrary value between (a, b).
When the second battery model parameter table satisfying the condition in step 402 does not exist, it can be stated that there is no other battery model parameter table that can more accurately match the degree of aging of the battery than the first battery model parameter table, and thus the electronic device can execute step 401 described above to determine the first battery model parameter table as the target battery model parameter table.
In the third case: the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is greater than a first threshold, and the first capacity growth rate reference value is less than the capacity growth rate. In this case, step 3022 is specifically the following step 403:
403. and if a third battery model parameter table exists, the absolute value of the difference value between a third capacity growth rate reference value and the capacity growth rate in the third battery model parameter table is smaller than or equal to a first threshold value, and a third charging cycle number reference interval corresponding to the third battery model parameter table is smaller than a first charging cycle number reference interval, determining the third battery model parameter table as a target battery model parameter table.
When the absolute value of the difference between the first capacity growth rate reference value and the calculated capacity growth rate is greater than the first threshold and the first capacity growth rate reference value is smaller than the capacity growth rate, it can be shown that the capacity growth rate is much greater than the first capacity growth rate reference value and the actual aging degree of the battery is lower than the aging degree corresponding to the first battery model parameter table. Therefore, the third battery model parameter table that can be accurately matched to the degree of aging of the battery may be a battery model parameter table in which the number of charge cycles in the corresponding charge cycle reference interval is smaller.
Thus, the electronic device may be referenced from a corresponding number of charge cyclesAnd determining whether a third battery model parameter table exists in the battery model parameter table with the charging period number smaller than the charging period number in the charging period number reference interval corresponding to the first battery model parameter table, so that the absolute value of the difference value between a third capacity growth rate reference value and the capacity growth rate in the third battery model parameter table is smaller than or equal to a first threshold value. If the battery aging degree exists, the third battery model parameter table is a target battery model parameter table which can be accurately matched with the aging degree of the battery. Illustratively, when the first battery model parameter table is the battery model parameter table T of Table 13The electronic device may then sequentially determine the battery model parameter table T3Previous battery model parameter table T2And T1Whether or not there is a third battery model parameter table that satisfies the above conditions.
And after the third battery model parameter table is determined to be the target battery model parameter table, the electronic device can adjust the total charging amount and the charging period number, so that the charging period number is adjusted to be within a third charging period number reference interval corresponding to the third battery model parameter table, and the electronic device can quickly and accurately determine the target battery model parameter table according to the adjusted charging period number. Specifically, if the reference interval of the second charging cycle number corresponding to the second battery model parameter table is [ c, d ], the electronic device may adjust the charging cycle number to a boundary value c, or may adjust the charging cycle number to an arbitrary value between (c, d).
When the third battery model parameter table satisfying the condition in step 403 does not exist, it can be stated that there is no other battery model parameter table that can more accurately match the degree of aging of the battery than the first battery model parameter table, and thus the electronic device can execute step 401 described above to determine the first battery model parameter table as the target battery model parameter table.
Further, after the step 304, the method provided in the embodiment of the present invention may further include:
305. and when the difference value between the capacity increase rate obtained by the electronic equipment in the current calculation and the capacity increase rate obtained by the last calculation is larger than a second threshold value, clearing the total charge amount.
The second threshold may be greater than the first threshold, and a specific value of the second threshold may be actually set, for example, the second threshold may be 10%. Generally, as the usage time increases, the number of charge and discharge cycles increases, and the capacity increase rate of the battery gradually decreases, when the electronic device determines that the difference between the capacity increase rate obtained by the current calculation and the capacity increase rate obtained by the previous calculation is greater than the second threshold, which indicates that the capacity increase rate of the battery significantly increases, the electronic device may replace a new battery or a battery with low aging degree, and the total charge amount and the number of charge cycles currently stored in the electronic device are parameters corresponding to the old battery used before, so that the electronic device needs to zero the stored total charge amount and re-accumulate the total charge amount, and then calculate the number of charge and discharge cycles corresponding to the replaced battery according to the re-accumulated total charge amount.
Optionally, in step 302, the electronic device may specifically determine the target battery model parameter table from the N battery model parameter tables according to the number of charging cycles at the matching time. The specific time point of the matching moment can be set according to actual needs, so that when the electronic equipment switches the last loaded battery model parameter table into the loaded target battery model parameter table at the matching moment, the direct experience effect of a user cannot be influenced. Optionally, the matching time may include a power-on time, a power-off time, or a charge cutoff time of the electronic device.
In addition, if the reference interval of the number of charging cycles corresponding to the currently loaded battery model parameter table is [ e, f), and the number of charging cycles is g, when (g-f)/(f-e) is greater than a third threshold, it can be described that the matching state of the number of charging cycles and the currently loaded battery model parameter table is seriously imbalanced, the electronic device may not be matched for a long time and switch a new target battery model parameter table, and the electronic device needs to re-match the new target battery model parameter table as soon as possible, so that the loaded battery model parameter table is kept matched with the aging degree of the battery. At this moment, the matching time can also include the dormancy awakening time of the electronic equipment, so that the electronic equipment can be matched with a new target battery model parameter table again at the dormancy awakening time, and the direct experience effect of a user cannot be influenced.
The specific value of the third threshold may be set according to actual needs, and may be, for example, 30%. For example, if the reference interval of the charging cycle number corresponding to the currently loaded battery model parameter table is [100, 200 ], and the current charging cycle number is 240, the difference between 240 and 200 is 40, the interval length of [100, 200) is 200 and 100, and the ratio of 40 to 100 is 40%, which is greater than the preset third threshold value of 30%, so that at the next sleep and wake-up time, the electronic device may re-match and load a new target battery model parameter table.
In the electric quantity calculation method provided by the above embodiment of the present invention, the electronic device, in combination with the number of charge cycles and the capacity increase rate, can more accurately determine the target battery model parameter table matching with the aging degree of the battery, so that the electric quantity value of the battery can be accurately calculated according to the target battery model parameter table.
Another embodiment of the present invention further provides an electronic device 700, where the electronic device 700 stores N battery model parameter tables, where N is an integer greater than 1. Referring to fig. 7, the electronic device 700 may include: a first calculation unit 701, a determination unit 702, a second calculation unit 703, a third calculation unit 704, and a processing unit 705. The first calculating unit 701 may be configured to calculate a number of charging cycles of the battery; the determining unit 702 may be configured to determine a target battery model parameter table from the N battery model parameter tables according to the number of charging cycles; the second calculating unit 703 may be configured to calculate the electric quantity value of the battery according to the parameter table of the target battery model.
Further, the third calculating unit 704 may be configured to execute step 304 in fig. 5, the determining unit 702 may specifically be configured to execute step 3022 in fig. 5, and the determining unit 702 may also be configured to execute step 401 and step 403 in fig. 6. In addition, the electronic device 700 in fig. 7 may be configured to execute any one of the above method flows, and the embodiment of the present invention is not described in detail herein.
Further, the electronic device 700 in fig. 7 is presented in the form of a functional unit. An "element" may refer to an Application Specific Integrated Circuit (ASIC), a Circuit, a processor and memory that execute one or more software or firmware programs, an Integrated logic Circuit, and/or other devices that may provide the described functionality. In a simple embodiment, those skilled in the art will appreciate that the electronic device 700 of FIG. 7 may take the form shown in FIG. 8. The units may be implemented by the processor and memory of fig. 8.
As shown in fig. 8, an electronic device 800 may include a processor 801 and a memory 802. Processor 801 may include one or more multi-core processors, among others. The processor 801 may be a general purpose processor, an application specific integrated circuit, or a Digital Signal Processor (DSP). The memory 802, which may be a non-transitory storage medium, is coupled to the processor 801 for storing different types of data. The Memory 802 may comprise a Read Only Memory (ROM), a Random Access Memory (RAM), or other types of dynamic storage devices that may store information and instructions, and may also be a disk Memory. The memory 802 may be used to hold instructions to implement the charge value calculation method. When executed by the processor, cause the electronic device 800 to perform the associated steps of fig. 3-6.
The electronic device 800 may implement one or more instructions to trigger a charge value calculation according to embodiments of the present invention. These instructions may be stored in the memory 802 or may be integrated into the kernel of the operating system or a plug-in to the kernel.
Embodiments of the present invention also provide a computer storage medium for storing computer software instructions for the electronic device shown in fig. 7 or fig. 8, which contains a program designed to execute the method embodiments. The electric quantity value calculation can be realized by executing the stored program.
It will be appreciated by those of ordinary skill in the art that all or a portion of the subject matter of the present application may be implemented in software, in combination with hardware and/or firmware. For example, the subject matter described herein may be implemented in software executed by one or more processors. In one exemplary embodiment, the subject matter described herein may be implemented using a non-transitory computer-readable medium having stored thereon computer-executable instructions that, when executed by a computer processor, control the computer to perform steps. Example computer readable media suitable for implementing the subject matter described herein include non-transitory computer readable media such as disk memory devices, chip memory devices, programmable logic devices, and application specific integrated circuits. In addition, a computer-readable medium embodying the subject matter described herein may be located on a single device or computing platform or may be distributed across multiple devices or computing platforms.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. An electric quantity value calculation method is applied to electronic equipment, and is characterized in that N battery model parameter tables are stored in the electronic equipment, N is an integer greater than 1, and the method comprises the following steps:
calculating the charging period number of the battery;
determining a target battery model parameter table from the N battery model parameter tables according to the number of the charging cycles, wherein the change trend of the full charge capacity along with the temperature rise in the battery model parameter table is firstly increased and then decreased;
calculating the electric quantity value of the battery according to the target battery model parameter table;
each battery model parameter table corresponds to a charging cycle number reference interval; the battery model parameter table further comprises a capacity growth rate reference value; the method further comprises the following steps:
calculating the capacity growth rate of the battery;
determining a target battery model parameter table from the N battery model parameter tables according to the number of charge cycles comprises:
determining the target battery model parameter table from the N battery model parameter tables according to the charging cycle number, the charging cycle number reference interval, the capacity growth rate and the capacity growth rate reference value;
when the absolute value of the difference between a first capacity growth rate reference value and the capacity growth rate in a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is located is less than or equal to a first threshold, determining the first battery model parameter table as the target battery model parameter table;
when the absolute value of the difference between the first capacity growth rate reference value and the capacity growth rate is greater than a first threshold value, and the first capacity growth rate reference value is greater than the capacity growth rate,
if a second battery model parameter table exists, the absolute value of the difference value between a second capacity growth rate reference value in the second battery model parameter table and the capacity growth rate is smaller than or equal to a first threshold value, and a second charging cycle number reference interval corresponding to the second battery model parameter table is larger than the first charging cycle number reference interval, determining that the second battery model parameter table is the target battery model parameter table;
if not, determining the first battery model parameter table as the target battery model parameter table;
when an absolute value of a difference between the first capacity growth rate reference value and the capacity growth rate is greater than a first threshold value, and the first capacity growth rate reference value is less than the capacity growth rate,
if a third battery model parameter table exists, the absolute value of the difference value between a third capacity growth rate reference value in the third battery model parameter table and the capacity growth rate is smaller than or equal to a first threshold value, and a third charging cycle number reference interval corresponding to the third battery model parameter table is smaller than the first charging cycle number reference interval, determining that the third battery model parameter table is the target battery model parameter table;
if not, determining the first battery model parameter table as the target battery model parameter table.
2. The method of claim 1, wherein said determining a target battery model parameter table from said N battery model parameter tables based on said number of charge cycles comprises:
at the matching moment, determining a target battery model parameter table from the N battery model parameter tables according to the number of the charging cycles; the matching time comprises the starting time, the shutdown time or the charging ending time of the electronic equipment.
3. The method of claim 2, wherein the calculating the number of charge cycles for the battery comprises:
recording a first electric quantity value when the connection with the charger is established;
recording a second electric quantity value when the charger is disconnected;
when the second electric quantity value is larger than the first electric quantity value, accumulating the difference value of the second electric quantity value and the first electric quantity value into the total charge amount;
and calculating the charging period number according to the total charging amount.
4. A method according to any of claims 1-3, wherein each of said battery model parameter tables corresponds to a reference interval of charge cycle numbers; determining a target battery model parameter table from the N battery model parameter tables according to the number of charge cycles comprises:
and determining a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is positioned, wherein the first battery model parameter table is the target battery model parameter table.
5. The method of any of claims 1-3, wherein calculating the capacity growth rate of the battery comprises:
recording a first voltage value of the battery and a first capacity count value of the coulometer at a first time in the charging process;
recording a second voltage value of the battery and a second capacity count value of the coulometer at a second time in the charging process;
and calculating the capacity increase rate according to the first voltage value, the first capacity counting value, the second voltage value and the second capacity counting value.
6. The method according to any one of claims 1-3, further comprising:
and when the difference value between the capacity increase rate obtained by the calculation and the capacity increase rate obtained by the previous calculation is larger than a second threshold value, clearing the total charge amount.
7. An electronic device, wherein N battery model parameter tables are stored in the electronic device, N being an integer greater than 1, the electronic device comprising:
a first calculating unit for calculating a number of charging cycles of the battery;
the determining unit is used for determining a target battery model parameter table from the N battery model parameter tables according to the number of the charging cycles, wherein the change trend of the full charge capacity along with the temperature rise in the battery model parameter table is firstly increased and then reduced;
the second calculation unit is used for calculating the electric quantity value of the battery according to the target battery model parameter table;
each battery model parameter table corresponds to a charging cycle number reference interval; the battery model parameter table further comprises a capacity growth rate reference value; the electronic device further includes:
a third calculation unit for calculating a capacity increase rate of the battery;
the determining unit is specifically configured to:
determining the target battery model parameter table from the N battery model parameter tables according to the charging cycle number, the charging cycle number reference interval, the capacity growth rate and the capacity growth rate reference value;
determining a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is positioned;
when the absolute value of the difference value between the reference value of the capacity growth rate in the first battery model parameter table and the capacity growth rate is smaller than or equal to a first threshold value, determining the first battery model parameter table as the target battery model parameter table;
when a first capacity growth rate reference value in the first battery model parameter table, an absolute value of a difference from the capacity growth rate is greater than a first threshold value, and the first capacity growth rate reference value is greater than the capacity growth rate,
if a second battery model parameter table exists, the second battery model parameter table comprises a second capacity increase rate reference value, the absolute value of the difference value between the second capacity increase rate reference value and the capacity increase rate is smaller than or equal to a first threshold value, and a second charging cycle number reference interval corresponding to the second battery model parameter table is larger than the first charging cycle number reference interval, determining that the second battery model parameter table is the target battery model parameter table;
if not, determining the first battery model parameter table as the target battery model parameter table;
the determination unit is further configured to:
when a first capacity growth rate reference value in the first battery model parameter table, an absolute value of a difference from the capacity growth rate is greater than a first threshold value, and the first capacity growth rate reference value is less than the capacity growth rate,
if a third battery model parameter table exists, the absolute value of a difference value between a third capacity growth rate reference value included in the third battery model parameter table and the capacity growth rate is smaller than or equal to a first threshold value, and a third charging cycle number reference interval corresponding to the third battery model parameter table is smaller than the first charging cycle number reference interval, determining that the third battery model parameter table is the target battery model parameter table;
if not, determining the first battery model parameter table as the target battery model parameter table.
8. The electronic device according to claim 7, wherein the determining unit is specifically configured to:
at the matching moment, determining a target battery model parameter table from the N battery model parameter tables according to the number of the charging cycles; the matching time comprises the starting time, the shutdown time or the charging ending time of the electronic equipment.
9. The electronic device of claim 8, wherein the first computing unit is specifically configured to:
recording a first electric quantity value when the connection with the charger is established;
recording a second electric quantity value when the charger is disconnected;
when the second electric quantity value is larger than the first electric quantity value, accumulating the difference value of the second electric quantity value and the first electric quantity value into the total charge amount;
and calculating the charging period number according to the total charging amount.
10. The electronic device of any one of claims 7-9, wherein each of the battery model parameter tables corresponds to a reference interval of charge cycle numbers; the determining unit is specifically configured to:
and determining a first battery model parameter table corresponding to a first charging cycle number reference interval in which the charging cycle number is positioned, wherein the first battery model parameter table is the target battery model parameter table.
11. The electronic device according to any of claims 7-9, wherein the third computing unit is specifically configured to:
recording a first voltage value of the battery and a first capacity count value of the coulometer at a first time in the charging process;
recording a second voltage value of the battery and a second capacity count value of the coulometer at a second time in the charging process;
and calculating the capacity increase rate according to the first voltage value, the first capacity counting value, the second voltage value and the second capacity counting value.
12. The electronic device of any of claims 7-9, further comprising:
and the processing unit is used for clearing the total charge amount when the difference value between the capacity increase rate obtained by the second calculating unit in the current calculation and the capacity increase rate obtained by the last calculation is larger than a second threshold value.
13. An electronic device comprising a memory and a processor coupled to the memory, the memory for storing a list of N battery model parameters, N being an integer greater than 1, and computer-executable program code, the program code comprising instructions that, when executed by the processor, cause the electronic device to perform the method of any of claims 1-6.
14. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by an electronic device, cause the electronic device to perform the method of any of claims 1-6.
CN201680066771.8A 2016-10-14 2016-10-14 Electric quantity value calculation method, electronic equipment and storage medium Active CN108351386B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/102222 WO2018068329A1 (en) 2016-10-14 2016-10-14 Power capacity value calculation method, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN108351386A CN108351386A (en) 2018-07-31
CN108351386B true CN108351386B (en) 2021-04-09

Family

ID=61905074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680066771.8A Active CN108351386B (en) 2016-10-14 2016-10-14 Electric quantity value calculation method, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108351386B (en)
WO (1) WO2018068329A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609188B (en) * 2019-09-25 2022-07-15 潍柴动力股份有限公司 Method, device and equipment for detecting aging of oil quantity metering unit
CN113162164B (en) * 2021-04-09 2022-12-06 Tcl通讯(宁波)有限公司 Battery electric quantity display method, terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331560A (en) * 2011-05-16 2012-01-25 中国科学院上海微系统与信息技术研究所 Method for estimating state of charge of nickel-metal hydride battery
CN103852727A (en) * 2014-02-14 2014-06-11 清华大学深圳研究生院 Method and device for estimating power battery charge state on line
CN104991196A (en) * 2015-06-30 2015-10-21 上海斐讯数据通信技术有限公司 Battery power measurement method
CN105319507A (en) * 2014-06-05 2016-02-10 福特全球技术公司 Method and System for Estimating Battery Model Parameters
CN105334466A (en) * 2015-09-28 2016-02-17 Tcl移动通信科技(宁波)有限公司 Method for accurately displaying total battery electric quantity of mobile terminal and system thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8660808B2 (en) * 2008-12-02 2014-02-25 Broadcom Corporation Method for accurate battery run time estimation utilizing load-condition voltage
CN102306943B (en) * 2011-09-15 2014-05-21 河北工业大学 Lithium ion battery management system
US10393813B2 (en) * 2013-08-27 2019-08-27 The Regents Of The University Of Michigan On-board state of health monitoring of batteries using incremental capacity analysis
CN103675702B (en) * 2013-12-04 2016-05-25 清华大学 A kind of method of real-time assessment cell health state
CN103698714B (en) * 2014-01-02 2016-06-29 清华大学 Battery capacity decay mechanism discrimination method and system
CN105353313B (en) * 2015-09-28 2020-07-28 欣旺达电子股份有限公司 Method and device for estimating state of charge of battery
CN105717455B (en) * 2016-01-30 2018-10-02 清华大学 The selection method of the battery cell SOC and capacity estimation algorithm of battery pack

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331560A (en) * 2011-05-16 2012-01-25 中国科学院上海微系统与信息技术研究所 Method for estimating state of charge of nickel-metal hydride battery
CN103852727A (en) * 2014-02-14 2014-06-11 清华大学深圳研究生院 Method and device for estimating power battery charge state on line
CN105319507A (en) * 2014-06-05 2016-02-10 福特全球技术公司 Method and System for Estimating Battery Model Parameters
CN104991196A (en) * 2015-06-30 2015-10-21 上海斐讯数据通信技术有限公司 Battery power measurement method
CN105334466A (en) * 2015-09-28 2016-02-17 Tcl移动通信科技(宁波)有限公司 Method for accurately displaying total battery electric quantity of mobile terminal and system thereof

Also Published As

Publication number Publication date
CN108351386A (en) 2018-07-31
WO2018068329A1 (en) 2018-04-19

Similar Documents

Publication Publication Date Title
EP3349324A1 (en) Charging control method, charging control device and terminal
US8253380B2 (en) Characteristic tracking method and circuit for a battery module
CN109888885B (en) Charging control method, charging control device, storage medium and electronic equipment
CN106772091B (en) Method and device for updating battery capacity value and terminal
CN112540304B (en) Battery power management method, electronic device and computer storage medium
WO2021008403A1 (en) Battery charging management method, terminal device, and storage medium
WO2021190320A1 (en) Battery charging protection method and charging protection apparatus, mobile terminal, and storage medium
US20230344259A1 (en) Battery Charging Method and Electronic Device
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
WO2021238198A1 (en) Charging method, charging chip, and terminal device
WO2014101807A1 (en) Method and terminal for displaying capacity of battery
CN107918076B (en) Power adapter detection method and power adapter detection device
CN108351386B (en) Electric quantity value calculation method, electronic equipment and storage medium
CN114865755B (en) Multi-battery power supply, charging and discharging method and electronic equipment
CN114844182B (en) Charging circuit, charging method and electronic equipment
CN110687458A (en) Terminal battery electric quantity determination method and device
CN105573458B (en) Information processing method and electronic equipment
CN112698229A (en) Short-circuit current detection method and device, readable storage medium and electronic equipment
CN110244229A (en) Battery control method and electronic equipment
CN108963350B (en) Battery protection method and device
JP5601214B2 (en) Battery capacity correction device and battery capacity correction method
WO2020097864A1 (en) Charging detection method, charging detection apparatus, and terminal device
CN111600355B (en) Charging control method, device and equipment
CN114142110A (en) Battery control method, device, electronic equipment and storage medium
CN107453454B (en) Charging control method and system of clock power supply of mobile terminal and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant