CN111551859B - Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium - Google Patents

Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium Download PDF

Info

Publication number
CN111551859B
CN111551859B CN202010515061.7A CN202010515061A CN111551859B CN 111551859 B CN111551859 B CN 111551859B CN 202010515061 A CN202010515061 A CN 202010515061A CN 111551859 B CN111551859 B CN 111551859B
Authority
CN
China
Prior art keywords
battery
electric quantity
current
power
cut
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
CN202010515061.7A
Other languages
Chinese (zh)
Other versions
CN111551859A (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.)
Zhuhai Zhirong Technology Co.,Ltd.
Original Assignee
Zhuhai Smart Ware Technology 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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=71999247&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN111551859(B) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Zhuhai Smart Ware Technology Co ltd filed Critical Zhuhai Smart Ware Technology Co ltd
Priority to CN202010515061.7A priority Critical patent/CN111551859B/en
Publication of CN111551859A publication Critical patent/CN111551859A/en
Application granted granted Critical
Publication of CN111551859B publication Critical patent/CN111551859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The present invention provides a battery available electricity amount measuring method, a computer apparatus, and a computer-readable storage medium, the battery available electricity amount measuring method including: acquiring the current working state of the battery; acquiring the cut-off electric quantity of the battery in the current working state; acquiring the current electric quantity of a battery; and obtaining the current available electric quantity according to the cutoff electric quantity and the current electric quantity. The computer device comprises a controller for implementing the above-described battery available charge amount method when executing a computer program stored in a memory. The computer-readable storage medium, on which a computer program is stored, which, when executed by a controller, implements the above-described battery available electricity amount measuring method. The method for measuring the available electric quantity of the battery can improve the accuracy of estimating the current available electric quantity of the battery.

Description

Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium
Technical Field
The invention relates to the technical field of battery electricity quantity metering, in particular to a method for metering available electricity quantity of a battery, a computer device applying the method for metering the available electricity quantity of the battery, and a computer readable storage medium applying the method for metering the available electricity quantity of the battery.
Background
Smart devices such as smart phones and tablet computers, and accessory devices with batteries such as a mobile power supply are increasing at an explosive rate. Battery discharge power is increasing with application processor speed, performance enhancements, and the use of other configurations such as larger and higher definition screens. Meanwhile, various fast charging techniques are developed to increase the charging speed of the battery. The accuracy of the battery electricity metering method becomes more difficult when the battery is charged and discharged with high power. On the one hand, during high-power discharge, the capacity which can be discharged by the battery is smaller than the rated capacity, so that the equipment is easy to directly shut down at low power when the battery is low in electric quantity. On the other hand, at the time of high-power charging, the capacity learned by the conventional capacity learning method is much smaller than the actual capacity.
In order to solve the above problems, some techniques in the prior art estimate the electric quantity corresponding to the open circuit voltage when the power is turned off to a low level, i.e., the ocv (open circuit voltage) cutoff electric quantity, and use the electric quantity as the starting point of the available electric quantity and capacity learning, so as to obtain the more accurate available electric quantity and capacity. However, the OCV curves of different batteries are very different, and the battery internal resistance is needed for calculating the cut-off power, in the low power region, the estimation of the battery internal resistance is very difficult and has large deviation, so that the accuracy of the calculated cut-off power has large deviation, and the available power estimated based on the deviation and the learned battery capacity also have large deviation.
Therefore, it is necessary to develop a method for estimating the currently available capacity of the battery without using the OCV curve and improving the accuracy of learning the capacity of the battery.
Disclosure of Invention
A first object of the present invention is to provide a method for measuring the amount of electricity available to a battery, which can improve the accuracy of estimating the current amount of electricity available to the battery.
A second object of the present invention is to provide a computer device capable of improving the accuracy of estimating the current available power of a battery.
It is a third object of the present invention to provide a computer-readable storage medium that can improve the accuracy of estimating the current available charge of a battery.
In order to achieve the first object, the present invention provides a method for measuring an amount of available electricity of a battery, comprising: acquiring the current working state of the battery; acquiring the cut-off electric quantity of the battery in the current working state; acquiring the current electric quantity of a battery; and obtaining the current available electric quantity according to the cutoff electric quantity and the current electric quantity.
According to the scheme, the method for measuring the available electric quantity of the battery can respectively count the cut-off electric quantity in the charging state or the discharging state by acquiring the cut-off electric quantity in the current working state, so that the estimation accuracy of the current available electric quantity is improved.
In a further scheme, the step of obtaining the cut-off electric quantity of the battery in the current working state comprises the following steps: and if the current working state is a discharging state, acquiring the current discharging power, the current internal resistance value of the battery and the current temperature value of the battery, and acquiring the cut-off electric quantity according to the current discharging power, the current internal resistance value of the battery and the temperature value of the battery.
It follows that in the discharged state, the cutoff charge is related to the discharge power, the internal resistance of the battery, and the temperature of the battery. After the discharge power is generally larger than a threshold value, the battery has partial capacity which can not be discharged, namely, the cut-off electric quantity can occur, and the cut-off electric quantity is related to the internal resistance of the battery in the normal-temperature high-electric-quantity region of the battery. The larger the discharge power is, the higher the battery temperature is, the larger the battery internal resistance is, and the larger the cut-off electric quantity is. Therefore, the cut-off electric quantity is obtained according to the current discharge power, the current internal resistance value of the battery and the battery temperature value, and the accuracy of the cut-off electric quantity can be improved.
In a further scheme, the step of obtaining the cut-off electric quantity according to the current discharge power, the internal resistance value of the battery and the current temperature value of the battery comprises the following steps: obtaining power-related cut-off electric quantity according to the current discharge power; obtaining power internal resistance related cut-off electric quantity according to the power related cut-off electric quantity and the internal resistance value of the battery; and acquiring temperature-related cut-off electric quantity corresponding to the current battery temperature value, and acquiring cut-off electric quantity according to the power internal resistance-related cut-off electric quantity and the temperature-related cut-off electric quantity.
Therefore, when the cut-off electric quantity in the discharging state is obtained, the power-related cut-off electric quantity is obtained through the current discharging power. And then, because the power-related cut-off electric quantity is also related to the internal resistance of the battery, the power-related cut-off electric quantity is adjusted according to the internal resistance value of the battery in the normal-temperature high-electric-quantity region of the battery, and the power-internal-resistance-related cut-off electric quantity is calculated. Finally, the battery temperature also has an influence on the cut-off electric quantity, the temperature-related cut-off electric quantity is obtained, and the cut-off electric quantity is obtained according to the power internal resistance-related cut-off electric quantity and the temperature-related cut-off electric quantity, so that the cut-off electric quantity is obtained according to the influence factors such as the discharge power, the battery internal resistance and the battery temperature, and the accuracy of the cut-off electric quantity is improved.
In a further scheme, the current discharge power is obtained through the voltage and current of the battery; or the current discharge power is obtained by the power supply output voltage and the power supply output current.
It follows that the present discharge power can be obtained from the battery voltage and the battery current, or from the power supply output voltage and the power supply output current, and can be selected as desired.
In a further scheme, the step of acquiring the cut-off electric quantity of the battery in the current working state comprises the following steps: and if the current working state is the charging state, acquiring the cut-off electric quantity of the discharging state before charging as the cut-off electric quantity of the charging state.
Therefore, as the low-voltage shutdown protection is not involved in the charging process, the charging process is carried out by taking the cut-off electric quantity of the discharging module as the charging starting point until the discharging module is fully charged, and the charging starting point is defined as the cut-off electric quantity of the charging module, namely, the cut-off electric quantity in the discharging state before the charging process is taken as the cut-off electric quantity in the charging state.
In a further aspect, the step of obtaining the current electric quantity of the battery includes: and acquiring the current battery capacity and the total battery capacity, and acquiring the current electric quantity according to the current battery capacity and the total battery capacity.
Therefore, the proportion of the current battery capacity to the total battery capacity is determined according to the current battery capacity and the total battery capacity, and therefore the current electric quantity is determined.
In a further aspect, the total battery capacity is obtained through battery capacity learning.
Therefore, in order to ensure the accuracy of the calculation of the current electric quantity of the battery, the total capacity of the battery is obtained through battery capacity learning, and the estimation accuracy of the total capacity of the battery can be improved, so that the accuracy of the current electric quantity is improved.
In a further aspect, the step of battery capacity learning includes: when the battery is shut down when discharging to a low level, recording the final cut-off electric quantity in the discharging process and resetting the capacity learning count value; when entering a charging state, accumulating the charging capacity to obtain a capacity learning count value; and (4) acquiring the total capacity of the battery according to the capacity learning count value at the full-charge moment of the battery and the final cut-off electric quantity in the discharging process.
Therefore, after a complete charging process is completed, the cut-off electric quantity before charging is recorded as the reference of capacity learning, and the battery capacity learning is carried out in a battery current accumulation or power accumulation mode, so that the accuracy of the battery capacity learning can be improved.
In order to achieve the second object of the present invention, the present invention provides a computer device comprising a processor and a memory, the memory storing a computer program, the computer program implementing the steps of the method for measuring the amount of available electricity of a battery as described above when the computer program is executed by the processor.
In order to achieve the third object of the present invention, the present invention provides a computer-readable storage medium having stored thereon a computer program, which when executed by a controller, implements the steps of the battery available electricity amount measuring method described above.
Drawings
Fig. 1 is a circuit block diagram of a power supply circuit to which the battery available electricity amount measuring method of the present invention is applied.
Fig. 2 is a flow chart of an embodiment of the method for measuring the amount of available electricity of the battery according to the present invention.
Fig. 3 is a flow chart of the step of obtaining the cutoff capacity in the discharging state in the embodiment of the battery available capacity measuring method of the present invention.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
The method for measuring the available electric quantity of the battery is an application program applied to a power circuit and used for realizing the measurement of the available electric quantity. Preferably, referring to fig. 1, the power circuit includes an electric quantity metering module 1, a charging module 2, a battery module 3, and a discharging module 4, the electric quantity metering module 1 obtains a power input voltage and a power input current of the charging module 2, the electric quantity metering module 1 obtains a battery voltage, a battery current, a battery internal resistance value, and a battery temperature value of the battery module 3, and the electric quantity metering module 1 obtains a power output voltage and a power output current of the discharging module 4, which are well known technologies of those skilled in the art and are not described herein again.
The present invention also provides a computer apparatus comprising a controller for implementing the steps of the above-described battery available charge amount method when executing a computer program stored in a memory. The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a controller, implements the steps of the above-described battery available electricity amount measuring method.
Examples of methods for measuring the amount of electricity available in a battery:
the method for measuring the available electric quantity of the battery is an application program applied to a power circuit and used for realizing the measurement of the available electric quantity.
As shown in fig. 2, the battery available electricity amount measuring method of the present invention, when operating, first performs step S1 to obtain the current operating state of the battery. In order to measure the available electric quantity under different working states, the current working state of the battery needs to be confirmed first. The operating state of the battery includes a charged state and a discharged state. The operation state of the battery is known to those skilled in the art and will not be described herein.
After the current operating state of the battery is obtained, step S2 is executed to obtain the cut-off electric quantity of the battery in the current operating state. The cutoff capacity indicates a capacity that cannot be discharged when the battery is discharged to a low level in a discharge state, that is, a capacity that cannot be used actually. The cutoff charge calculation is only run in the discharge state. Because the batteries have different cut-off electric quantities and the cut-off electric quantities in different states are different, the cut-off electric quantity corresponding to the current working state is obtained, so that the accuracy of electric quantity metering is improved.
In this embodiment, the step of obtaining the cut-off electric quantity of the battery in the current working state includes: and if the current working state is a discharging state, acquiring the current discharging power, the current internal resistance value of the battery and the current temperature value of the battery, and acquiring the cut-off electric quantity according to the current discharging power, the current internal resistance value of the battery and the temperature value of the battery. In the discharge state, the cutoff capacity is related to the discharge power, the internal resistance of the battery, and the temperature of the battery. After the discharge power is generally larger than a threshold value, the battery has partial capacity which can not be discharged, namely, the cut-off electric quantity can occur, and the cut-off electric quantity is related to the internal resistance of the battery in the normal-temperature high-electric-quantity region of the battery. The larger the discharge power is, the higher the battery temperature is, the larger the battery internal resistance is, and the larger the cut-off electric quantity is. Therefore, the cut-off electric quantity is obtained according to the current discharge power, the current internal resistance value of the battery and the battery temperature value, and the accuracy of the cut-off electric quantity can be improved.
In this embodiment, the current discharging power is obtained by the battery voltage and the battery current, and at this time, the current discharging power is obtained by the following formula: pwr _ dchg is Vbat × Ibat, where Vbat is the battery voltage and Ibat is the battery current. The current discharging power can be obtained through the power supply output voltage and the power supply output current, and at the moment, the current discharging power is obtained through the following formula: pwr _ dchg is Vout × Iout/η dchg, where Vout is the power supply output voltage, Iout is the power supply output current, and η dchg is the discharge efficiency.
Referring to fig. 3, when the cut-off power is obtained according to the current discharging power, the battery internal resistance value, and the current battery temperature value, step S21 is first executed to obtain a power-related cut-off power according to the current discharging power. The power-related cutoff charge is obtained by the following equation: pct _ end _ Pwr ═ Pwr _ dchg-Pwr _ base) × Kp, where Pwr _ dchg is the current discharge power, Pwr _ base is the preset power reference, and Kp is the power scaling factor. The power proportionality coefficient Kp is a fixed value and is obtained by integrating test data of various batteries under different discharge powers, and the unit is W/%, which is expressed as the percentage of increase of cutoff electric quantity related to power factors every 1W increase of discharge power on a power reference. When the current discharging power Pwr _ dchg is larger than the power reference Pwr _ base, the power-related cutoff electric quantity starts to increase by the power proportionality coefficient Kp. When the current discharge power Pwr _ dchg is smaller than the power reference Pwr _ base, the power-related cutoff capacity is set to 0.
After the power-related cutoff electrical quantity is obtained, step S22 is executed to obtain a power internal resistance-related cutoff electrical quantity according to the power-related cutoff electrical quantity and the battery internal resistance value. The related cut-off electric quantity of the power internal resistance is obtained by the following formula: pct _ end _ Rdc is Pct _ end _ pwr × ((Rdc-Rdc _ base) × Kr +1), where Rdc is the battery internal resistance value, Rdc _ base is a preset internal resistance reference, and Kr is an internal resistance proportional coefficient. The internal resistance proportional coefficient Kr is a fixed value and can be obtained by integrating battery test data of various different battery internal resistances, the unit is 1/m omega, and the internal resistance is represented as the proportion of the increase of the power-related cutoff electric quantity when the internal resistance of the battery increases by 1m omega on the internal resistance reference. And when the battery internal resistance value Rdc is smaller than the internal resistance reference Rdc _ base, the power internal resistance related cut-off electric quantity is set as the power related cut-off electric quantity.
After the relevant cut-off electric quantity of the power internal resistance is obtained, step S23 is executed to obtain the relevant cut-off electric quantity of the temperature corresponding to the current battery temperature value, and the cut-off electric quantity is obtained according to the relevant cut-off electric quantity of the power internal resistance and the relevant cut-off electric quantity of the temperature. The temperature-dependent cutoff charge is obtained by the following equation: pct _ end _ temp ═ Tbase-Tnow) × Kt, where Tbase is a preset temperature reference, Tnow is a current battery temperature value, and Kt is a temperature proportionality coefficient. The power proportionality coefficient Kt is a fixed value and can be obtained by integrating test data of various batteries at different temperatures, and the unit is ℃/%, which is expressed as the percentage of increase of cut-off electric quantity related to temperature factors when the temperature of the battery is reduced by 1 ℃ on the temperature basis. When the current battery temperature value Tnow is smaller than the temperature reference Tbase, the temperature-related cutoff electric quantity starts to increase in proportion to the temperature proportionality coefficient Kt, and when the current battery temperature value Tnow is larger than the temperature reference Tbase, the temperature-related cutoff electric quantity is set to 0. The cutoff capacity in the battery discharge state is obtained by the following formula: pct _ end ═ Pct _ end _ rdc + Pct _ end _ temp, where Pct _ end _ rdc is the power internal resistance-related cutoff electrical quantity and Pct _ end _ temp is the temperature-related cutoff electrical quantity. When Pct _ end is greater than the cutoff electric-quantity maximum value Pct _ end _ max, the cutoff electric quantity is set to Pct _ end _ max, and the total cutoff electric quantity is limited.
In this embodiment, the step of obtaining the cut-off electric quantity of the battery in the current working state further includes: and if the current working state is the charging state, acquiring the cut-off electric quantity of the discharging state before charging as the cut-off electric quantity of the charging state. Because the low-voltage shutdown protection is not involved during charging, the cut-off electric quantity of the discharging module is used as the charging starting point during charging until the discharging module is fully charged, and the charging starting point is defined as the cut-off electric quantity of the charging module, namely, the cut-off electric quantity of the discharging state before charging is used as the cut-off electric quantity of the charging state. For example, if the discharge module discharges to the end point, the cutoff capacity is 10%, which indicates that 10% of the capacity has not been discharged, so that the charging is started with the 10% capacity as the charging start point, and the capacity is finally charged to 100%, and is actually charged to 90%, so that the cutoff capacity in the charged state is set to be the 10% capacity.
After the ending electric quantity of the battery in the current working state is obtained, step S3 is executed to obtain the current electric quantity of the battery. Wherein the current capacity represents the current remaining capacity of the battery. In this embodiment, the step of obtaining the current electric quantity of the battery includes: the method comprises the steps of obtaining the current battery capacity and the total battery capacity, and obtaining the current electric quantity according to the current battery capacity and the total battery capacity, wherein the current battery capacity is obtained in a battery power coulomb accumulation mode or in a battery current coulomb accumulation mode.
In a preferred embodiment, the current battery capacity is obtained by coulomb accumulation of battery power. The current battery capacity of the discharge process is obtained by the following equation: cap _ now ═ Cap _ init ═ Pwr _ dchg dt, where Cap _ init is the initial battery capacity and Pwr _ dchg is the current discharge power. And continuously accumulating the current discharge power, and calculating to obtain the current battery capacity Cap _ now. The current battery capacity of the charging process is obtained by the following equation: cap _ now ═ Cap _ init +. Pwr _ chg dt where Cap _ init is the initial battery capacity, Pwr _ chg is the current charging power, Pwr _ chg ═ Vin × Iin × η chg, where Vin is the power supply input voltage, Iin is the power supply input current, and η chg is the efficiency at charging. And continuously accumulating the current charging power, and calculating to obtain the current battery capacity Cap _ now. The current electric quantity of the discharging process and the charging process is obtained by the following formula: pct _ now is Cap _ now/Cap _ max, where Cap _ max is the total battery capacity.
In another preferred embodiment, the current battery capacity is obtained by means of coulomb accumulation of battery current. The current battery capacity of the discharge process is obtained by the following equation: cap _ now ═ Cap _ init ═ Idchg dt, where Cap _ init is the initial battery capacity and Idchg is the current battery discharge current. And continuously accumulating the current battery discharge current, and calculating to obtain the current battery capacity Cap _ now. The current battery capacity of the charging process is obtained by the following equation: cap _ now ═ Cap _ init +. Ichg dt where Cap _ init is the initial battery capacity and Ichg is the current battery charging current. And continuously accumulating the current charging power, and calculating to obtain the current battery capacity Cap _ now. The current electric quantity of the discharging process and the charging process is obtained by the following formula: pct _ now is Cap _ now/Cap _ max, where Cap _ max is the total battery capacity.
The total battery capacity is obtained through battery capacity learning. In order to ensure the accuracy of the capacity learning, the capacity learning is executed only when a certain condition is met, namely, a complete charging process is required, and the cut-off electric quantity before charging is required to be recorded as a reference of the capacity learning. The battery capacity learning step includes: when the battery is shut down when discharging to a low level, recording the final cut-off electric quantity in the discharging process and resetting the capacity learning count value; when entering a charging state, accumulating the charging capacity to obtain a capacity learning count value; and (4) acquiring the total capacity of the battery according to the capacity learning count value at the full-charge moment of the battery and the final cut-off electric quantity in the discharging process. The step of accumulating the charge capacity to obtain a capacity learning count value includes: and accumulating the charging capacity in a battery power coulomb accumulation mode or accumulating the charging capacity in a battery current coulomb accumulation mode. The method for accumulating the charging capacity is the same as the method for accumulating the current battery capacity, so that the proportional relationship is consistent when the current electric quantity is calculated, that is, if the current battery capacity is obtained in a battery power coulomb accumulation mode, the total battery capacity must also be obtained in a battery power coulomb accumulation mode.
In a preferred embodiment, the charge capacity is accumulated by battery power coulomb accumulation. The capacity learning count value is obtained by the following formula: cap _ acc ═ Pwr _ chg dt, where Pwr _ chg is the current charging power.
In another preferred embodiment, the charge capacity is accumulated by battery coulomb accumulation. The capacity learning count value is obtained by the following formula: cap _ acc ═ Ichg dt, where Ichg is the current battery charging current.
After obtaining the capacity learning count value, the total battery capacity obtained by learning is obtained by the following formula: cap _ max _ new ═ Cap _ acc/(100-Pct _ end0), where Pct _ end0 is the final cutoff charge for the discharge process. After the obtained total battery capacity is learned, the obtained total battery capacity is updated to the total battery capacity. And in the process of acquiring the capacity learning count value in the charging state, if the charging state is exited in the middle, exiting the capacity learning and re-judging the entering of the capacity learning condition.
After the current electric quantity of the battery is obtained, step S4 is executed to obtain the current available electric quantity according to the cutoff electric quantity and the current electric quantity. The current available power consumption represents the power consumption available for the current battery, and is related to the cut-off power consumption of the battery and the current power consumption, and the cut-off power consumption is normalized by the current power consumption. According to the current electric quantity, the current available electric quantity can be calculated by combining with the cut-off electric quantity as follows: pct _ use ═ Pct _ now-Pct _ end)/(100-Pct _ end). When current electric power amount Pct _ now > cutoff electric power amount Pct _ end, current available electric power amount Pct _ use is set to 0.
The embodiment of the computer device comprises:
the computer device of this embodiment comprises a controller, which implements the steps of the above-described method for measuring the amount of available electricity of the battery when executing the computer program.
For example, a computer program may be partitioned into one or more modules, which are stored in a memory and executed by a controller to implement the present invention. One or more of the modules may be a sequence of computer program instruction segments for describing the execution of a computer program in a computer device that is capable of performing certain functions.
The computer device may include, but is not limited to, a controller, a memory. Those skilled in the art will appreciate that the computer apparatus may include more or fewer components, or combine certain components, or different components, e.g., the computer apparatus may also include input-output devices, network access devices, buses, etc.
For example, the controller may be a Central Processing Unit (CPU), other general purpose controller, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, and so on. The general controller may be a microcontroller or the controller may be any conventional controller or the like. The controller is the control center of the computer device and connects the various parts of the entire computer device using various interfaces and lines.
The memory may be used to store computer programs and/or modules, and the controller may implement various functions of the computer apparatus by executing or otherwise executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. For example, the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (e.g., a sound receiving function, a sound-to-text function, etc.), and the like; the storage data area may store data (e.g., audio data, text data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Computer-readable storage medium embodiments:
the modules integrated by the computer apparatus of the above embodiments, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the processes in the above embodiment of the battery available power measuring method may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a controller to implement the steps of the above embodiment of the battery available power measuring method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The storage medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Therefore, the method for measuring the available electric quantity of the battery can respectively count the cut-off electric quantity in the charging state or the discharging state by acquiring the cut-off electric quantity in the current working state, so that the estimation accuracy of the current available electric quantity is improved.
It should be noted that the above is only a preferred embodiment of the present invention, but the design concept of the present invention is not limited thereto, and any insubstantial modifications made by using the design concept also fall within the protection scope of the present invention.

Claims (8)

1. A method for measuring the amount of available electricity of a battery, comprising: the method comprises the following steps:
acquiring the current working state of the battery;
acquiring the cut-off electric quantity of the battery in the current working state, wherein the step of acquiring the cut-off electric quantity of the battery in the current working state comprises the following steps: if the current working state is a discharging state, obtaining current discharging power, a battery internal resistance value and a current battery temperature value, obtaining power-related cut-off electric quantity according to the current discharging power, obtaining power-related cut-off electric quantity according to the power-related cut-off electric quantity and the battery internal resistance value, obtaining temperature-related cut-off electric quantity corresponding to the current battery temperature value, and obtaining the cut-off electric quantity according to the power-related cut-off electric quantity and the temperature-related cut-off electric quantity, wherein the power-related cut-off electric quantity is obtained by the following formula: pct _ end _ Pwr ═ Pwr _ dchg-Pwr _ base) × Kp, the power internal resistance-related cutoff capacity is obtained by the following equation: pct _ end _ Rdc ═ Pct _ end _ pwr × ((Rdc-Rdc _ base) × Kr +1), the temperature-dependent cutoff capacity is obtained by the following equation: pct _ end _ temp ═ Tbase-Tnow) × Kt, the cutoff capacity is obtained by the following equation: pct _ end ═ Pct _ end _ Rdc + Pct _ end _ temp, wherein Pwr _ dchg is the current discharge power, Pwr _ base is a preset power reference, Kp is a power proportional coefficient, Rdc is the battery internal resistance value, Rdc _ base is a preset internal resistance reference, Kr is an internal resistance proportional coefficient, Tbase is a preset temperature reference, Tnow is the current battery temperature value, and Kt is a temperature proportional coefficient;
acquiring the current electric quantity of the battery;
and obtaining the current available electric quantity according to the cut-off electric quantity and the current electric quantity.
2. The battery available charge metering method according to claim 1, characterized in that:
the current discharge power is obtained through battery voltage and battery current; or
The current discharge power is obtained by the power supply output voltage and the power supply output current.
3. The battery available charge metering method according to claim 1, characterized in that:
the step of obtaining the cut-off electric quantity of the battery in the current working state comprises the following steps:
and if the current working state is the charging state, acquiring the cut-off electric quantity of the discharging state before charging as the cut-off electric quantity of the charging state.
4. The battery available electricity amount measuring method according to any one of claims 1 to 3, wherein:
the step of obtaining the current electric quantity of the battery comprises the following steps:
acquiring the current battery capacity and the total battery capacity, and acquiring the current electric quantity according to the current battery capacity and the total battery capacity.
5. The battery available charge amount measuring method according to claim 4, characterized in that:
the total battery capacity is obtained through battery capacity learning.
6. The method of claim 5, wherein:
the battery capacity learning step includes:
when the battery is discharged to a low power state and is shut down, recording the final cut-off electric quantity in the discharging process and resetting the capacity learning count value;
when entering a charging state, accumulating the charging capacity to obtain the capacity learning count value;
and acquiring the total capacity of the battery according to the capacity learning count value at the full-charge moment of the battery and the final cut-off electric quantity in the discharging process.
7. A computer device comprising a processor and a memory, wherein: the memory stores a computer program which, when executed by the processor, implements the steps of the battery available charge method of any one of claims 1 to 6.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a controller, implements the steps of the battery available charge metering method of any one of claims 1 to 6.
CN202010515061.7A 2020-06-08 2020-06-08 Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium Active CN111551859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010515061.7A CN111551859B (en) 2020-06-08 2020-06-08 Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010515061.7A CN111551859B (en) 2020-06-08 2020-06-08 Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN111551859A CN111551859A (en) 2020-08-18
CN111551859B true CN111551859B (en) 2021-05-18

Family

ID=71999247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010515061.7A Active CN111551859B (en) 2020-06-08 2020-06-08 Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111551859B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303397A (en) * 2008-06-25 2008-11-12 河北工业大学 Method and apparatus for computing lithium ion batteries residual electric energy
CN102104259A (en) * 2009-12-16 2011-06-22 比亚迪股份有限公司 Electric quantity detecting and controlling method and device for rechargeable battery
CN103616647A (en) * 2013-12-09 2014-03-05 天津大学 Battery remaining capacity estimation method for electric car battery management system
CN106340689A (en) * 2016-11-21 2017-01-18 上海航天电源技术有限责任公司 Battery pack system capacity self-learning method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5466485B2 (en) * 2009-11-12 2014-04-09 ルネサスエレクトロニクス株式会社 Microcomputer
CN110518302B (en) * 2019-08-30 2021-02-23 蜂巢能源科技有限公司 Battery management system and method and device for determining remaining battery charging time

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303397A (en) * 2008-06-25 2008-11-12 河北工业大学 Method and apparatus for computing lithium ion batteries residual electric energy
CN102104259A (en) * 2009-12-16 2011-06-22 比亚迪股份有限公司 Electric quantity detecting and controlling method and device for rechargeable battery
CN103616647A (en) * 2013-12-09 2014-03-05 天津大学 Battery remaining capacity estimation method for electric car battery management system
CN106340689A (en) * 2016-11-21 2017-01-18 上海航天电源技术有限责任公司 Battery pack system capacity self-learning method

Also Published As

Publication number Publication date
CN111551859A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
TWI419390B (en) Predicting method of remaining capacity and remaining run-time of a battery device
CN111216592B (en) Power battery charging remaining time estimation method and device and electric vehicle
CN110098646B (en) Charging method, charging device, terminal and readable storage medium
CN111239624B (en) Battery capacity calibration method and device, electronic equipment and storage medium
US10060986B2 (en) Battery remaining power predicting device and battery pack
CN105098876A (en) Battery charging method and battery management system therefor
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
CN109818396B (en) Charging method and device for lithium ion battery pack and terminal equipment
CN113968160B (en) Vehicle charging time estimation method, device, equipment and storage medium
CN111551862B (en) Method for measuring amount of electricity of battery, computer device, and computer-readable storage medium
CN112285583A (en) Method, device and system for testing maximum capacity of battery cell
CN112630661A (en) Battery state of charge (SOC) estimation method and device
US20140100802A1 (en) Method and computer system for measuring remaining battery capacity
CN111551859B (en) Method for measuring amount of electricity available from battery, computer device, and computer-readable storage medium
CN111211381B (en) Method and device for controlling discharge of lithium battery at low temperature
JP5601214B2 (en) Battery capacity correction device and battery capacity correction method
CN110138028B (en) Battery management system, battery charging and discharging control method thereof and terminal equipment
CN111082487A (en) Charging control method and device and electronic equipment
CN115524620A (en) Battery SOC correction method, device and system and readable storage medium
JP7250914B2 (en) Charging method, electronic device and storage medium
CN115113077A (en) Method for determining available window value of battery SOC and related device
CN117081185A (en) Charging control method, device, equipment and storage medium
KR101467363B1 (en) Mehtod and apparatus for estimating state of charge of battery
CN113246783B (en) Charging control method and device, electronic equipment and vehicle
CN117022050B (en) Calculation method, system and medium for rated capacity of power battery

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519000 room 1401-1405, building 4, No. 101, University Road, Tangjiawan Town, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Zhirong Technology Co.,Ltd.

Address before: 519000 room 1505, building 3, 101 University Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI SMART WARE TECHNOLOGY CO.,LTD.