Movatterモバイル変換


[0]ホーム

URL:


CN108351386B - A kind of electricity value calculation method, electronic device and storage medium - Google Patents

A kind of electricity value calculation method, electronic device and storage medium
Download PDF

Info

Publication number
CN108351386B
CN108351386BCN201680066771.8ACN201680066771ACN108351386BCN 108351386 BCN108351386 BCN 108351386BCN 201680066771 ACN201680066771 ACN 201680066771ACN 108351386 BCN108351386 BCN 108351386B
Authority
CN
China
Prior art keywords
model parameter
battery model
parameter table
battery
growth rate
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 LtdfiledCriticalHuawei Technologies Co Ltd
Publication of CN108351386ApublicationCriticalpatent/CN108351386A/en
Application grantedgrantedCritical
Publication of CN108351386BpublicationCriticalpatent/CN108351386B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

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, ahandset 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, andbattery 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 thedisplay 140 is part of a user interface and that thehandset 100 may include fewer than or the same user interface shown.
Thebattery 190 is mainly used to supply power to the components of the mobile phone. The battery may be logically connected to theprocessor 180 through a power management system, thereby implementing functions such as charging, discharging, and power management through the power management system.
In addition, theprocessor 180 is a control center of themobile phone 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of themobile phone 100 and processes data by operating or executing software programs and/or modules stored in thememory 120 and calling data stored in thememory 120, thereby performing overall monitoring of the mobile phone. TheRF circuit 110 may be used for receiving and transmitting signals during a message transmission or a call. Thememory 120 may be used to store software programs and modules, and theprocessor 180 executes various functional applications and data processing of themobile phone 100 by operating the software programs and modules stored in thememory 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 thehandset 100. Thedisplay screen 140 may be used to display information entered by or provided to the user as well as various menus of thehandset 100 and may also accept user input. Thehandset 100 may also include at least onesensor 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 thehandset 100. The I/O subsystem 170 controls input and output of external devices, which may include other devices, aninput controller 171, asensor controller 172, and adisplay 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.
Instep 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 numberBattery model parametertable
Reference interval
1 of charging cycle numberT1
Reference interval of charge cycle number 2T2
............
Reference interval N-1 of charging cycle numberTN-1
Reference interval N of charging cycle numberTN
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 numberBattery model parameter table
Reference value of charge cycle number 1T1
Reference value of number of charge cycles 2T2
............
Reference value of charge cycle number N-1TN-1
Reference value N of number of charging cyclesTN
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 thereference value 1 of the charging cycle number, thereference 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 [ chargingcycle 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 aninterval 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, instep 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 numberBattery 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 onstep 304, the electronic device, instep 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 instep 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, instep 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 instep 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 instep 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 thestep 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, instep 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 anelectronic device 700, where theelectronic device 700 stores N battery model parameter tables, where N is an integer greater than 1. Referring to fig. 7, theelectronic device 700 may include: afirst calculation unit 701, adetermination unit 702, asecond calculation unit 703, athird calculation unit 704, and aprocessing unit 705. Thefirst calculating unit 701 may be configured to calculate a number of charging cycles of the battery; the determiningunit 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 calculatingunit 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 calculatingunit 704 may be configured to executestep 304 in fig. 5, the determiningunit 702 may specifically be configured to executestep 3022 in fig. 5, and the determiningunit 702 may also be configured to executestep 401 and step 403 in fig. 6. In addition, theelectronic 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, theelectronic 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 theelectronic 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 aprocessor 801 and amemory 802.Processor 801 may include one or more multi-core processors, among others. Theprocessor 801 may be a general purpose processor, an application specific integrated circuit, or a Digital Signal Processor (DSP). Thememory 802, which may be a non-transitory storage medium, is coupled to theprocessor 801 for storing different types of data. TheMemory 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. Thememory 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 thememory 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)

Translated fromChinese
1.一种电量值计算方法,应用于电子设备,其特征在于,所述电子设备中保存有N个电池模型参数表,N为大于1的整数,所述方法包括:1. A method for calculating an electric quantity value, applied to an electronic device, characterized in that, N battery model parameter tables are stored in the electronic device, and N is an integer greater than 1, and the method comprises:计算电池的充电周期数;Calculate the number of charge cycles of the battery;根据所述充电周期数,从所述N个电池模型参数表中确定目标电池模型参数表,所述电池模型参数表中满充容量随着温度升高的变化趋势是先升高再降低;According to the number of charging cycles, a target battery model parameter table is determined from the N battery model parameter tables, and the change trend of the full charge capacity in the battery model parameter table as the temperature increases is first increased and then decreased;根据所述目标电池模型参数表计算电池的电量值;Calculate the power value of the battery according to the target battery model parameter table;每个所述电池模型参数表对应一个充电周期数参考区间;所述电池模型参数表还包括容量增长率参考值;所述方法还包括:Each of the battery model parameter tables corresponds to a reference interval for the number of charging cycles; the battery model parameter table further includes a reference value of capacity growth rate; the method further includes:计算电池的容量增长率;Calculate the capacity growth rate of the battery;所述根据所述充电周期数,从所述N个电池模型参数表中确定目标电池模型参数表包括:The determining the target battery model parameter table from the N battery model parameter tables according to the number of charging cycles includes:根据所述充电周期数、所述充电周期数参考区间,所述容量增长率和所述容量增长率参考值,从所述N个电池模型参数表中确定所述目标电池模型参数表;Determine 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 the first reference value of capacity growth rate and the value of the capacity growth rate in the first battery model parameter table corresponding to the first reference interval of the number of charging cycles in which the number of charging cycles is located is less than or equal to the first threshold When , determine 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 a first threshold, and the first capacity growth rate reference value is greater than the capacity growth rate,若存在第二电池模型参数表,所述第二电池模型参数表中的第二容量增长率参考值与所述容量增长率的差值的绝对值小于或者等于第一阈值,且所述第二电池模型参数表对应的第二充电周期数参考区间大于所述第一充电周期数参考区间,则确定所述第二电池模型参数表为所述目标电池模型参数表;If there is a second battery model parameter table, 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 If the second charging cycle number reference interval corresponding to the battery model parameter table is greater than the first charging cycle number reference interval, the second battery model parameter table is determined to be the target battery model parameter table;若不存在,则确定所述第一电池模型参数表为所述目标电池模型参数表;If it does not exist, determining 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 a first threshold, and the first capacity growth rate reference value is smaller than the capacity growth rate,若存在第三电池模型参数表,所述第三电池模型参数表中的第三容量增长率参考值与所述容量增长率的差值的绝对值小于或者等于第一阈值,且所述第三电池模型参数表对应的第三充电周期数参考区间小于所述第一充电周期数参考区间,则确定所述第三电池模型参数表为所述目标电池模型参数表;If there is a third battery model parameter table, 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 less than or equal to the first threshold, and the third If the third reference interval of the number of charging cycles corresponding to the battery model parameter table is smaller than the reference interval of the first number of charging cycles, the third battery model parameter table is determined to be the target battery model parameter table;若不存在,则确定所述第一电池模型参数表为所述目标电池模型参数表。If it does not exist, the first battery model parameter table is determined as the target battery model parameter table.2.根据权利要求1所述的方法,其特征在于,所述根据所述充电周期数,从所述N个电池模型参数表中确定目标电池模型参数表包括:2. The method according to claim 1, wherein determining a target battery model parameter table from the N battery model parameter tables according to the number of charging cycles comprises:在匹配时刻,根据所述充电周期数,从所述N个电池模型参数表中确定目标电池模型参数表;其中,所述匹配时刻包括所述电子设备的开机时刻、关机时刻或充电截止时刻。At the matching moment, according to the number of charging cycles, a target battery model parameter table is determined from the N battery model parameter tables; wherein, the matching moment includes the power-on moment, power-off moment or charging cut-off moment of the electronic device.3.根据权利要求2所述的方法,其特征在于,所述计算电池的充电周期数包括:3. The method according to claim 2, wherein the calculating the number of charging cycles of the battery comprises:在与充电器建立连接时,记录第一电量值;When establishing a connection with the charger, record the first power value;在与充电器断开连接时,记录第二电量值;When disconnecting from the charger, record the second power value;当所述第二电量值大于所述第一电量值时,将所述第二电量值与所述第一电量值的差值累加至充电总量中;When the second power value is greater than the first power value, accumulating the difference between the second power value and the first power value into the total charge;根据所述充电总量,计算所述充电周期数。The number of charging cycles is calculated according to the total amount of charging.4.根据权利要求1-3任一项所述的方法,其特征在于,每个所述电池模型参数表对应一个充电周期数参考区间;所述根据所述充电周期数,从所述N个电池模型参数表中确定目标电池模型参数表包括:4. The method according to any one of claims 1-3, wherein each of the battery model parameter tables corresponds to a reference interval for the number of charging cycles; The battery model parameter table to determine the target battery model parameter table includes:确定所述充电周期数所在的第一充电周期数参考区间对应的第一电池模型参数表,所述第一电池模型参数表即为所述目标电池模型参数表。A first battery model parameter table corresponding to the first charging cycle number reference interval in which the charging cycle number is located is determined, and the first battery model parameter table is the target battery model parameter table.5.根据权利要求1-3任一项所述的方法,其特征在于,所述计算电池的容量增长率包括:5. The method according to any one of claims 1-3, wherein the calculating the capacity growth rate of the battery comprises:在充电过程中的第一时刻,记录电池的第一电压值和库仑计的第一容量计数值;At the first moment in the charging process, record the first voltage value of the battery and the first capacity count value of the coulomb counter;在充电过程中的第二时刻,记录电池的第二电压值和库仑计的第二容量计数值;At the second moment in the charging process, record the second voltage value of the battery and the second capacity count value of the coulomb counter;根据所述第一电压值、所述第一容量计数值、所述第二电压值和所述第二容量计数值,计算所述容量增长率。The capacity growth rate is calculated based on the first voltage value, the first capacity count value, the second voltage value, and the second capacity count value.6.根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1-3, wherein the method further comprises:当本次计算获得的所述容量增长率与上一次计算获得的容量增长率的差值大于第二阈值时,将充电总量清零。When the difference between the capacity growth rate obtained by the current calculation and the capacity growth rate obtained by the previous calculation is greater than the second threshold, the total amount of charging is reset to zero.7.一种电子设备,其特征在于,所述电子设备中保存有N个电池模型参数表,N为大于1的整数,所述电子设备包括:7. An electronic device, characterized in that, N battery model parameter tables are stored in the electronic device, where N is an integer greater than 1, and the electronic device comprises:第一计算单元,用于计算电池的充电周期数;a first calculation unit for calculating the number of charging cycles of the battery;确定单元,用于根据所述充电周期数,从所述N个电池模型参数表中确定目标电池模型参数表,所述电池模型参数表中满充容量随着温度升高的变化趋势是先升高再降低;The determining unit is configured to determine a target battery model parameter table from the N battery model parameter tables according to the number of charging cycles, and the change trend of the full charge capacity in the battery model parameter table as the temperature rises is the first increase high and then lower;第二计算单元,用于根据所述目标电池模型参数表计算电池的电量值;a second calculation unit, configured to calculate the power value of the battery according to the target battery model parameter table;每个所述电池模型参数表对应一个充电周期数参考区间;所述电池模型参数表还包括容量增长率参考值;所述电子设备还包括:Each of the battery model parameter tables corresponds to a reference interval for the number of charging cycles; the battery model parameter table further includes a reference value of capacity growth rate; the electronic device further includes:第三计算单元,用于计算电池的容量增长率;The third calculation unit is used to calculate the capacity growth rate of the battery;所述确定单元具体用于:The determining unit is specifically used for:根据所述充电周期数、所述充电周期数参考区间,所述容量增长率和所述容量增长率参考值,从所述N个电池模型参数表中确定所述目标电池模型参数表;Determine 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 the first charging cycle number reference interval where the charging cycle number is located;当所述第一电池模型参数表中的容量增长率参考值,与所述容量增长率的差值的绝对值小于或者等于第一阈值时,确定所述第一电池模型参数表为所述目标电池模型参数表;When the absolute value of the difference between the capacity growth rate reference value in the first battery model parameter table and the capacity growth rate is less than or equal to the first threshold, determine 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 in the first battery model parameter table 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 there is a second battery model parameter table, the absolute value of the difference between the second capacity growth rate reference value included in the second battery model parameter table and the capacity growth rate is less than or equal to the first threshold, and the first The second battery model parameter table corresponding to the second charging cycle number reference interval is greater than the first charging cycle number reference interval, determining the second battery model parameter table as the target battery model parameter table;若不存在,则确定所述第一电池模型参数表为所述目标电池模型参数表;If it does not exist, determining that the first battery model parameter table is the target battery model parameter table;所述确定单元还用于:The determining unit is also used for:当所述第一电池模型参数表中的第一容量增长率参考值,与所述容量增长率的差值的绝对值大于第一阈值,且所述第一容量增长率参考值小于所述容量增长率时,When the absolute value of the difference between the first capacity growth rate reference value in the first battery model parameter table and the capacity growth rate is greater than the first threshold, and the first capacity growth rate reference value is smaller than the capacity growth rate,若存在第三电池模型参数表,所述第三电池模型参数表包括的第三容量增长率参考值,与所述容量增长率的差值的绝对值小于或者等于第一阈值,且所述第三电池模型参数表对应的第三充电周期数参考区间小于所述第一充电周期数参考区间,则确定所述第三电池模型参数表为所述目标电池模型参数表;If there is a third battery model parameter table, the absolute value of the difference between the third capacity growth rate reference value included in the third battery model parameter table and the capacity growth rate is less than or equal to the first threshold, and the third reference value of the capacity growth rate is less than or equal to the first threshold. The third battery model parameter table corresponding to the third charging cycle number reference interval is smaller than the first charging cycle number reference interval, then determining that the third battery model parameter table is the target battery model parameter table;若不存在,则确定所述第一电池模型参数表为所述目标电池模型参数表。If it does not exist, the first battery model parameter table is determined as the target battery model parameter table.8.根据权利要求7所述的电子设备,其特征在于,所述确定单元具体用于:8. The electronic device according to claim 7, wherein the determining unit is specifically configured to:在匹配时刻,根据所述充电周期数,从所述N个电池模型参数表中确定目标电池模型参数表;其中,所述匹配时刻包括所述电子设备的开机时刻、关机时刻或充电截止时刻。At the matching moment, according to the number of charging cycles, a target battery model parameter table is determined from the N battery model parameter tables; wherein, the matching moment includes the power-on moment, power-off moment or charging cut-off moment of the electronic device.9.根据权利要求8所述的电子设备,其特征在于,所述第一计算单元具体用于:9. The electronic device according to claim 8, wherein the first computing unit is specifically used for:在与充电器建立连接时,记录第一电量值;When establishing a connection with the charger, record the first power value;在与充电器断开连接时,记录第二电量值;When disconnecting from the charger, record the second power value;当所述第二电量值大于所述第一电量值时,将所述第二电量值与所述第一电量值的差值累加至充电总量中;When the second power value is greater than the first power value, accumulating the difference between the second power value and the first power value into the total charge;根据所述充电总量,计算所述充电周期数。According to the total amount of charging, the number of charging cycles is calculated.10.根据权利要求7-9任一项所述的电子设备,其特征在于,每个所述电池模型参数表对应一个充电周期数参考区间;所述确定单元具体用于:10. The electronic device according to any one of claims 7-9, wherein each of the battery model parameter tables corresponds to a reference interval for the number of charging cycles; the determining unit is specifically used for:确定所述充电周期数所在的第一充电周期数参考区间对应的第一电池模型参数表,所述第一电池模型参数表即为所述目标电池模型参数表。A first battery model parameter table corresponding to the first charging cycle number reference interval in which the charging cycle number is located is determined, and the first battery model parameter table is the target battery model parameter table.11.根据权利要求7-9任一项所述的电子设备,其特征在于,所述第三计算单元具体用于:11. The electronic device according to any one of claims 7-9, wherein the third computing unit is specifically configured to:在充电过程中的第一时刻,记录电池的第一电压值和库仑计的第一容量计数值;At the first moment in the charging process, record the first voltage value of the battery and the first capacity count value of the coulomb counter;在充电过程中的第二时刻,记录电池的第二电压值和库仑计的第二容量计数值;At the second moment in the charging process, record the second voltage value of the battery and the second capacity count value of the coulomb counter;根据所述第一电压值、所述第一容量计数值、所述第二电压值和所述第二容量计数值,计算所述容量增长率。The capacity growth rate is calculated based on the first voltage value, the first capacity count value, the second voltage value, and the second capacity count value.12.根据权利要求7-9任一项所述的电子设备,其特征在于,所述电子设备还包括:12. The electronic device according to any one of claims 7-9, wherein the electronic device further comprises:处理单元,用于当所述第二计算单元本次计算获得的所述容量增长率,与上一次计算获得的容量增长率的差值大于第二阈值时,将充电总量清零。The processing unit is configured to clear the total amount of charging when the difference between the capacity growth rate obtained by the current calculation by the second calculation unit and the capacity growth rate obtained by the previous calculation is greater than a second threshold.13.一种电子设备,其特征在于,包括存储器和处理器,所述处理器与所述存储器耦合,所述存储器用于存储N个电池模型参数表,以及计算机可执行程序代码,N为大于1的整数,所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述电子设备执行根据权利要求1-6任一项所述的方法。13. An electronic device, characterized in that it comprises a memory and a processor, the processor is coupled with the memory, and the memory is used to store N battery model parameter tables, and computer-executable program codes, where N is greater than 1, the program code includes instructions that, when executed by the processor, cause the electronic device to perform the method of any one of claims 1-6.14.一种存储一个或多个程序的计算机可读存储介质,其特征在于,所述一个或多个程序包括指令,所述指令当被电子设备执行时,使所述电子设备执行根据权利要求1至6任一项所述的方法。14. A computer-readable storage medium storing one or more programs, wherein the one or more programs comprise instructions that, when executed by an electronic device, cause the electronic device to perform the execution according to the claims The method of any one of 1 to 6.
CN201680066771.8A2016-10-142016-10-14 A kind of electricity value calculation method, electronic device and storage mediumActiveCN108351386B (en)

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
PCT/CN2016/102222WO2018068329A1 (en)2016-10-142016-10-14Power capacity value calculation method, electronic device, and storage medium

Publications (2)

Publication NumberPublication Date
CN108351386A CN108351386A (en)2018-07-31
CN108351386Btrue CN108351386B (en)2021-04-09

Family

ID=61905074

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201680066771.8AActiveCN108351386B (en)2016-10-142016-10-14 A kind of electricity value calculation method, electronic device and storage medium

Country Status (2)

CountryLink
CN (1)CN108351386B (en)
WO (1)WO2018068329A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119689276A (en)*2025-02-122025-03-25凹凸电子(武汉)有限公司Method, apparatus and machine readable program product for determining state of charge of a battery

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN218984883U (en)2019-07-012023-05-09思派创品牌公司Electric carding appliance
CN110609188B (en)*2019-09-252022-07-15潍柴动力股份有限公司Method, device and equipment for detecting aging of oil quantity metering unit
CN113162164B (en)*2021-04-092022-12-06Tcl通讯(宁波)有限公司 A battery power display method, terminal and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102331560A (en)*2011-05-162012-01-25中国科学院上海微系统与信息技术研究所 A method for estimating state of charge of Ni-MH battery
CN103852727A (en)*2014-02-142014-06-11清华大学深圳研究生院Method and device for estimating power battery charge state on line
CN104991196A (en)*2015-06-302015-10-21上海斐讯数据通信技术有限公司Battery power measurement method
CN105319507A (en)*2014-06-052016-02-10福特全球技术公司Method and System for Estimating Battery Model Parameters
CN105334466A (en)*2015-09-282016-02-17Tcl移动通信科技(宁波)有限公司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 numberPriority datePublication dateAssigneeTitle
US8660808B2 (en)*2008-12-022014-02-25Broadcom CorporationMethod for accurate battery run time estimation utilizing load-condition voltage
CN102306943B (en)*2011-09-152014-05-21河北工业大学 Li-ion battery management system and control method thereof
US10393813B2 (en)*2013-08-272019-08-27The Regents Of The University Of MichiganOn-board state of health monitoring of batteries using incremental capacity analysis
CN103675702B (en)*2013-12-042016-05-25清华大学A kind of method of real-time assessment cell health state
CN103698714B (en)*2014-01-022016-06-29清华大学Battery capacity decay mechanism discrimination method and system
CN105353313B (en)*2015-09-282020-07-28欣旺达电子股份有限公司Method and device for estimating state of charge of battery
CN105717455B (en)*2016-01-302018-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 numberPriority datePublication dateAssigneeTitle
CN102331560A (en)*2011-05-162012-01-25中国科学院上海微系统与信息技术研究所 A method for estimating state of charge of Ni-MH battery
CN103852727A (en)*2014-02-142014-06-11清华大学深圳研究生院Method and device for estimating power battery charge state on line
CN105319507A (en)*2014-06-052016-02-10福特全球技术公司Method and System for Estimating Battery Model Parameters
CN104991196A (en)*2015-06-302015-10-21上海斐讯数据通信技术有限公司Battery power measurement method
CN105334466A (en)*2015-09-282016-02-17Tcl移动通信科技(宁波)有限公司Method for accurately displaying total battery electric quantity of mobile terminal and system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119689276A (en)*2025-02-122025-03-25凹凸电子(武汉)有限公司Method, apparatus and machine readable program product for determining state of charge of a battery

Also Published As

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

Similar Documents

PublicationPublication DateTitle
WO2018129997A1 (en)Charging control method, charging control device and terminal
CN108351386B (en) A kind of electricity value calculation method, electronic device and storage medium
WO2021008403A1 (en)Battery charging management method, terminal device, and storage medium
CN112654877B (en) A charging detection method, a charging detection device and a terminal device
EP2851700A1 (en)Method and terminal for displaying capacity of battery
WO2021190320A1 (en)Battery charging protection method and charging protection apparatus, mobile terminal, and storage medium
CN107356881B (en) Terminal control method, device and terminal
CN113725937B (en) A battery charging method and electronic device
CN106772091A (en)The update method of battery capacity value, device and terminal
WO2021238198A1 (en)Charging method, charging chip, and terminal device
CN112698229B (en)Short-circuit current detection method and device, readable storage medium and electronic equipment
CN112858938A (en)Electric quantity calculation method and device, storage medium and electronic equipment
CN112540304A (en)Battery power management method, electronic device and computer storage medium
CN114865755A (en)Multi-battery power supply, charging and discharging method and electronic equipment
CN104617344A (en)Method and apparatus for shortening charging time
CN114859258A (en) Fuel gauges and electronics for multi-battery applications
CN114844182A (en) Charging circuit, charging method and electronic device
CN112924875B (en)Battery detection method and device and electronic equipment
WO2020005196A1 (en)Battery state estimation
CN113285499B (en) Charging control method, electronic device, control device and storage medium
CN110687458A (en)Terminal battery electric quantity determination method and device
CN103033693A (en)Mobile terminal charging testing system and method
CN115219930B (en) Vehicle battery aging warning method, device, electronic equipment and storage medium
CN108963350B (en)Battery protection method and device
CN112054564B (en)Circuit detection method and device, equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp