Method, device, equipment, medium and program product for acquiring remaining battery power
By acquiring the battery's output characteristic parameters and combining the ampere-hour integration method and the voltage integration method, the current detection error is corrected, thus solving the error problem in estimating the battery's remaining capacity using the ampere-hour integration method and achieving a more accurate estimation of the battery's remaining capacity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BESTECHNIC SHANGHAI CO LTD
- Filing Date
- 2025-05-23
- Publication Date
- 2026-07-07
AI Technical Summary
In existing technologies, there are errors in estimating the remaining battery capacity using the ampere-hour integration method, which leads to accumulated errors after prolonged use.
By acquiring the battery's output characteristic parameters, including real-time terminal voltage and operating current, at preset intervals during battery use, and combining the ampere-hour integration method and voltage integration method, the current detection error is corrected by utilizing the preset correspondence between the remaining power and the equivalent DC impedance, and a more accurate remaining power is calculated.
This reduces the error in calculating remaining battery capacity caused by current detection errors, and improves the accuracy of battery capacity estimation.
Smart Images

Figure CN120669141B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery technology, and more specifically, to a method, apparatus, device, medium, and program product for obtaining the remaining power of a battery. Background Technology
[0002] The remaining battery charge is of great significance for battery status monitoring and vehicle operation. In existing technologies, the ampere-hour integration method and open-circuit voltage method are commonly used to estimate the State of Charge (SOC).
[0003] However, due to the error in current detection, the ampere-hour integration method will accumulate errors when estimating the remaining battery capacity over a long period of time. Summary of the Invention
[0004] The purpose of this application is to provide a method, apparatus, device, medium, and program product for obtaining remaining power, so as to solve the problem of errors in estimating remaining power using the ampere-hour integration method in related technologies.
[0005] In a first aspect, embodiments of this application provide a method for obtaining the remaining battery power, including:
[0006] During battery use, the battery's output characteristic parameters are acquired at preset intervals, including the battery's real-time terminal voltage and operating current.
[0007] Following the order in which the output characteristic parameters were acquired, the following operations are performed for each output characteristic parameter in turn:
[0008] Obtain the first target remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter;
[0009] Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter.
[0010] Using the first target remaining power, matching operations are performed in the preset correspondence between remaining power and estimated open circuit voltage, and in the preset correspondence between remaining power and equivalent DC impedance, respectively, to obtain the target estimated open circuit voltage and the target equivalent DC impedance.
[0011] The estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter.
[0012] Based on the voltage integration method, the real-time error power is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage.
[0013] The first initial remaining power is corrected using the real-time error power, and the second target remaining power corresponding to the output characteristic parameter is obtained.
[0014] In the above implementation process, when the second target remaining power corresponding to the output characteristic parameter is obtained, the estimated open-circuit voltage and equivalent DC impedance corresponding to the first target remaining power are obtained by performing a matching operation in the preset correspondence between remaining power and estimated open-circuit voltage, and in the preset correspondence between remaining power and equivalent DC impedance, using the first target remaining power corresponding to the previous output characteristic parameter. Since the acquisition time of adjacent output characteristic parameters is very short, the difference between the estimated open-circuit voltages corresponding to adjacent output characteristic parameters is also very small, and the difference between the equivalent DC impedances corresponding to adjacent output characteristic parameters is also very small. Therefore, the estimated open-circuit voltage corresponding to the first target remaining power, i.e., the target estimated open-circuit voltage, can be determined as the estimated open-circuit voltage corresponding to the output characteristic parameter. Simultaneously, the equivalent DC impedance corresponding to the first target remaining power, i.e., the target equivalent DC impedance, can be determined as the equivalent DC impedance corresponding to the output characteristic parameter. Then, the estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter. In a battery, the terminal voltage is obtained by subtracting the product of the equivalent DC impedance and the operating voltage from the open-circuit voltage. Therefore, given the target estimated open-circuit voltage, target equivalent DC impedance, and operating current, the estimated terminal voltage corresponding to this output characteristic parameter can be obtained. Then, based on the voltage integration method, the difference between the estimated terminal voltage and the real-time terminal voltage is used to calculate the real-time error charge. This allows us to obtain the real-time error charge caused by the current detection error when acquiring this output characteristic parameter. Finally, the real-time error charge is used to correct the first initial remaining charge calculated based on the ampere-hour integration method, thereby reducing the error in estimating the remaining charge using the ampere-hour integration method.
[0015] Further, the first initial remaining power is corrected using the real-time error power to obtain the second target remaining power corresponding to the output characteristic parameter, including: determining the sum of the first initial remaining power and the real-time error power as the second target remaining power corresponding to the output characteristic parameter.
[0016] In the above implementation process, the first initial charge is calculated using the operating current in the output characteristic parameters based on the ampere-hour integration method. The real-time error charge represents the error charge caused by the current detection error when acquiring the output characteristic parameters. Therefore, by calculating the sum of the first initial remaining charge and the real-time error charge, the error charge caused by the current detection error when acquiring the output characteristic parameters can be corrected, thereby reducing the error in calculating the remaining charge due to measurement errors.
[0017] Furthermore, based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter, including:
[0018] The estimated power consumption is obtained by integrating the output characteristic parameter with the operating current in the output characteristic parameter using the acquisition time and the operating current in the output characteristic parameter.
[0019] Obtain the second initial remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter;
[0020] The difference between the second initial remaining power and the estimated power consumption is determined as the first initial remaining power.
[0021] In the above implementation process, by using the acquisition time of the output characteristic parameter and the operating current in the output characteristic parameter to perform ampere-hour integration calculation, the acquisition time of the previous output characteristic parameter can be obtained, and the battery power consumption during the acquisition time of the current output characteristic parameter can be obtained, i.e., the estimated power consumption. Then, by obtaining the difference between the second initial remaining power and the estimated power consumption, the first initial remaining power corresponding to the output characteristic parameter can be obtained.
[0022] Further, the first initial remaining power is corrected using the real-time error power to obtain the second target remaining power corresponding to the output characteristic parameter, including:
[0023] The cumulative error power is obtained, which represents the sum of the real-time error power corresponding to all output characteristic parameters whose acquisition time is earlier than that of the output characteristic parameter;
[0024] The sum of the cumulative error power, the first initial remaining power, and the real-time error power corresponding to the output characteristic parameter is determined as the second target remaining power.
[0025] In the above implementation process, the cumulative error charge is obtained, and the sum of the cumulative error charge, the first initial remaining charge, and the real-time error charge corresponding to the output characteristic parameter is determined as the second target remaining charge. Since there is a measurement error each time the battery's output characteristic parameter is acquired, and the first initial remaining charge corresponding to the output characteristic parameter depends on the second initial remaining charge corresponding to the previous output characteristic parameter, the first initial remaining charge is affected by the measurement accuracy of the previous output characteristic parameter. However, since the cumulative error charge can represent the sum of the real-time error charges corresponding to all output characteristic parameters acquired before this output characteristic parameter, that is, the cumulative error charge can represent the sum of the error charge caused by the measurement error of the battery's output characteristic parameter each time it is acquired, determining the second target remaining charge by the sum of the cumulative error charge, the first initial remaining charge, and the real-time error charge corresponding to the output characteristic parameter can not only correct the error charge caused by the measurement error of this output characteristic parameter, but also correct the error charge caused by the measurement errors of other output characteristic parameters before this output characteristic parameter.
[0026] Furthermore, based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter, including:
[0027] The estimated power consumption is obtained by integrating the output characteristic parameter with the operating current in the output characteristic parameter using the acquisition time and the operating current in the output characteristic parameter.
[0028] The difference between the first target remaining power and the estimated power consumption is determined as the first initial remaining power.
[0029] In the above implementation process, by using the acquisition time of the output characteristic parameter and the operating current in the output characteristic parameter to perform ampere-hour integration calculation, the acquisition time of the previous output characteristic parameter can be obtained, and the battery power consumption during the acquisition time of the current output characteristic parameter can be obtained, i.e., the estimated power consumption. Then, the difference between the first target remaining power and the estimated power consumption is determined as the first initial remaining power. Since the first target remaining power is the corrected remaining power, calculating the difference between the first target remaining power and the estimated power consumption can more accurately obtain the first initial remaining power.
[0030] Further, obtaining the estimated terminal voltage corresponding to the output characteristic parameter based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter includes:
[0031] The target equivalent DC impedance voltage is obtained by multiplying the operating current in the output characteristic parameter by the target equivalent DC impedance.
[0032] The estimated terminal voltage corresponding to the output characteristic parameter is obtained by subtracting the target equivalent DC impedance voltage from the target estimated open-circuit voltage.
[0033] In the above implementation process, the voltage shared by the target equivalent DC impedance can be obtained by calculating the product between the operating current and the target equivalent DC impedance in the output characteristic parameter. This is the target equivalent DC impedance voltage. Thus, given the battery's open-circuit voltage, the battery's terminal voltage can be obtained. Specifically, the estimated terminal voltage corresponding to this output characteristic parameter can be obtained by subtracting the target equivalent DC impedance voltage from the target estimated open-circuit voltage.
[0034] Further, obtaining the target remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter includes:
[0035] If the output characteristic parameter is the first output characteristic parameter obtained, the initial battery capacity is determined as the first target remaining battery capacity;
[0036] The initial charge level refers to the battery's charge level before the first acquisition of the battery's output characteristic parameters.
[0037] In the above implementation process, since this output characteristic parameter is the first one obtained, there are no other output characteristic parameters prior to it. However, obtaining the second target remaining battery capacity of this output characteristic parameter depends on the first target remaining battery capacity of the previous output characteristic parameter. Therefore, the initial battery capacity is used as the first target remaining battery capacity corresponding to the previous output characteristic parameter, so that the second target remaining battery capacity corresponding to this output characteristic parameter can be successfully obtained.
[0038] Secondly, embodiments of this application provide an apparatus for obtaining the remaining battery power, comprising:
[0039] The first acquisition module is configured to acquire the battery's output characteristic parameters at preset intervals during battery use. The output characteristic parameters include the battery's real-time terminal voltage and operating current.
[0040] The operation module is configured to perform the following operations sequentially for each output characteristic parameter, according to the order in which they are acquired:
[0041] Obtain the first target remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter;
[0042] Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter.
[0043] Using the first target remaining power, matching operations are performed in the preset correspondence between remaining power and estimated open circuit voltage, and in the preset correspondence between remaining power and equivalent DC impedance, respectively, to obtain the target estimated open circuit voltage and the target equivalent DC impedance.
[0044] The estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter.
[0045] Based on the voltage integration method, the real-time error power is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage.
[0046] The first initial remaining power is corrected using the real-time error power, and the second target remaining power corresponding to the output characteristic parameter is obtained.
[0047] Thirdly, this application provides an electronic device, including a processor, a memory, and a communication bus; the communication bus is used to realize the connection and communication between the processor and the memory; the processor is used to execute one or more programs stored in the memory to implement any of the above-described methods for obtaining the remaining battery power.
[0048] Fourthly, this application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement any of the above-described methods for obtaining the remaining battery power.
[0049] Fifthly, embodiments of this application provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements any of the above-described methods for obtaining the remaining battery power. Attached Figure Description
[0050] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0051] Figure 1 This is a flowchart illustrating a method for obtaining the remaining power of a second target corresponding to a single output characteristic parameter, as provided in an embodiment of this application.
[0052] Figure 2 A schematic diagram of the equivalent circuit model of a battery provided in an embodiment of this application;
[0053] Figure 3 A schematic diagram of a device for obtaining the remaining battery power provided in an embodiment of this application;
[0054] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0055] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0056] Example 1:
[0057] To address the problem in existing technologies where errors in current detection lead to inaccuracies in estimating the remaining battery capacity using the ampere-hour integration method, this application provides a method for obtaining the remaining battery capacity. First, during battery use, the battery's output characteristic parameters, including the real-time terminal voltage and operating current, can be acquired at preset time intervals.
[0058] The battery's terminal voltage represents the voltage between the positive and negative terminals of the battery. The real-time terminal voltage of the battery is the terminal voltage detected at preset time intervals.
[0059] The battery's operating current characterizes the amount of current the battery provides when an external load is connected to it.
[0060] The battery usage process characterizes whether the battery is in the process of charging or discharging.
[0061] For example, the output characteristic parameters of the battery during use can be obtained through an ADC (Analog-to-Digital Converter).
[0062] Then, following the order in which the output characteristic parameters were acquired, each output characteristic parameter can be processed sequentially, such as... Figure 1 The operation steps shown are used to obtain the second target remaining power corresponding to each output characteristic parameter.
[0063] Alternatively, after acquiring each output characteristic parameter, the acquired output characteristic parameter can be processed as follows: Figure 1 The operation shown is used to estimate the remaining power of the second target corresponding to each output characteristic parameter in real time.
[0064] Optionally, see Figure 1 The diagram illustrates a method for obtaining the remaining battery power of a second target corresponding to one of the output characteristic parameters. The method for obtaining the remaining battery power of a second target corresponding to one of the output characteristic parameters may include the following steps:
[0065] Step S101: Obtain the first target remaining power corresponding to the previous output characteristic parameter of the output characteristic parameter.
[0066] In some embodiments, if the output characteristic parameter is the first output characteristic parameter obtained, the initial battery capacity can be determined as the first target remaining battery capacity. The initial battery capacity is the battery capacity before the first acquisition of the battery's output characteristic parameter.
[0067] If this output characteristic parameter is not the first output characteristic parameter obtained, then the first target remaining battery power corresponding to the previous output characteristic parameter is also calculated according to... Figure 1 The method shown is to obtain the remaining power of the second target corresponding to one of the output characteristic parameters, and the obtained remaining power of the second target.
[0068] In some embodiments, the second target remaining battery power corresponding to each output characteristic parameter can be stored in a preset location. Thus, when it is necessary to obtain the second target remaining battery power corresponding to a subsequent output characteristic parameter, the second target remaining battery power corresponding to the previous output characteristic parameter can be obtained from the preset location.
[0069] Alternatively, each time the remaining battery power corresponding to a second target corresponding to an output characteristic parameter is obtained, the remaining battery power stored at a preset position can be updated with the remaining battery power corresponding to that second target corresponding to the output characteristic parameter. Thus, when it is necessary to obtain the remaining battery power corresponding to a subsequent output characteristic parameter, the remaining battery power corresponding to the previous output characteristic parameter of the subsequent output characteristic parameter can be directly obtained from the preset position.
[0070] Step S102: Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter.
[0071] In one optional implementation of this embodiment, the estimated power consumption can be obtained by performing ampere-hour integration calculation using the acquisition time of the output characteristic parameter and the operating current in the output characteristic parameter. The second initial remaining power corresponding to the previous output characteristic parameter is then obtained. The difference between the second initial remaining power and the estimated power consumption is determined as the first initial remaining power. That is, the first initial remaining power corresponding to the output characteristic parameter can be obtained by subtracting the estimated power consumption from the second initial remaining power.
[0072] In some embodiments, when the output characteristic parameter is the first output characteristic parameter obtained, the initial battery capacity can be determined as the second initial remaining battery capacity corresponding to the previous output characteristic parameter of the output characteristic parameter.
[0073] If the output characteristic parameter is not the first output characteristic parameter obtained, then the second initial remaining charge corresponding to the previous output characteristic parameter is the first initial remaining charge calculated based on the ampere-hour integration method using the operating current in the previous output characteristic parameter.
[0074] Similarly, the first initial remaining charge corresponding to each output characteristic parameter can be stored. This makes it easier to calculate the first initial remaining charge corresponding to the current output characteristic parameter based on the ampere-hour integration method, using the first initial remaining charge corresponding to the previous output characteristic parameter and the operating current in the current output characteristic parameter.
[0075] In another optional implementation of this embodiment, the estimated power consumption can be obtained by performing ampere-hour integration calculation using the acquisition time of the output characteristic parameter and the operating current in the output characteristic parameter; the difference between the first target remaining power and the estimated power consumption is determined as the first initial remaining power corresponding to the output characteristic parameter. That is, the first initial remaining power corresponding to the output characteristic parameter is obtained by subtracting the estimated power consumption from the first target remaining power.
[0076] Step S103: Using the first target remaining power, a matching operation is performed in the preset correspondence between remaining power and estimated open circuit voltage, and in the preset correspondence between remaining power and equivalent DC impedance, to obtain the target estimated open circuit voltage and the target equivalent DC impedance.
[0077] In some embodiments, before obtaining the second target remaining charge corresponding to the output characteristic parameter, the correspondence between the remaining charge and the estimated open-circuit voltage can be obtained using the open-circuit voltage method. This yields a preset correspondence between the remaining charge and the estimated open-circuit voltage. Since different types of batteries have different OCV-SOC (Open Circuit Voltage-State of Charge) characteristic curves, and the battery's OCV-SOC characteristic curve does not change over time, the correspondence between the remaining charge and the estimated open-circuit voltage, obtained in advance, can be reused in the process of obtaining the second target remaining charge corresponding to the output characteristic parameter.
[0078] In some embodiments, the same battery may include OCV-SOC characteristic curves at different ambient temperatures, each OCV-SOC characteristic curve being measured at different ambient temperatures. Therefore, the output characteristic parameters may include the ambient temperature of the battery, so that the ambient temperature can be used to match multiple OCV-SOC characteristic curves to obtain the correspondence between the preset remaining capacity and the estimated open-circuit voltage corresponding to the ambient temperature.
[0079] Similarly, for the same battery, there can be multiple relationships between remaining charge and equivalent DC impedance, each corresponding to a different ambient temperature. Correspondingly, by utilizing the ambient temperature in the output characteristic parameters, a matching operation can be performed to obtain the relationship between remaining charge and equivalent DC impedance at different ambient temperatures.
[0080] In some embodiments, the equivalent circuit model of the battery can be as follows: Figure 2 As shown, U OC U represents the open-circuit voltage of a battery. T R1 represents the terminal voltage of the battery. R2 represents the equivalent resistance of the cathodic polarization reaction. R0 represents the internal resistance in ohms. The sum of R1, R2, and R0 is called the equivalent DC impedance. C1 represents the equivalent capacitance of the cathodic polarization reaction. R2 represents the equivalent capacitance of the anodic polarization reaction. U1 represents the equivalent voltage of the cathodic polarization reaction, and U2 represents the equivalent voltage of the anodic polarization reaction.
[0081] Open circuit voltage U OC Terminal voltage U T The equivalent voltage U1 of the cathodic polarization reaction and the equivalent voltage U2 of the anodic polarization reaction satisfy the following formula: U T =U OC -R0I T -U1-U2. Where, I T Characterizes the battery's operating current. The rate of change of the equivalent voltage U1 of the cathode polarization reaction with time t satisfies the formula: The rate of change of the equivalent voltage U2 of the anodic polarization reaction with time t satisfies the formula:
[0082] The battery's terminal voltage, remaining charge, and operating current are obtained at different usage times. Based on Ohm's law, the equivalent DC impedance of the battery at each remaining charge level is calculated. This establishes the relationship between remaining charge and equivalent DC impedance.
[0083] Alternatively, a recursive least squares method with a forgetting factor can be used to identify the battery's terminal voltage, open-circuit voltage, and operating current at different usage durations, yielding identification results. These results include the identified ohmic resistance, the equivalent resistance of the cathode polarization reaction, the equivalent resistance of the anodic polarization reaction, the equivalent capacitance of the cathode polarization reaction, and the equivalent capacitance of the anodic polarization reaction.
[0084] In detail, based on the recursive least squares method with a forgetting factor, identifying the battery's terminal voltage, open-circuit voltage, and operating current at different usage times can include the following steps:
[0085] First, let's look at formula U. T =U OC -R0I T -U1-U2 can be expressed in the frequency domain and then written in transfer function form to obtain the transfer function. Where s represents the complex variable in the Laplace transform, E(s) = U OC (s)-U T (s).
[0086] Then the transfer function Perform a bilinear transformation to map to the z-plane. That is, the bilinear transformation formula... Substitute the transfer function Perform the calculations, while setting τ1 = R1C1 and τ2 = R2C2. The bilinear transformation transfer function can then be obtained. Where T represents the sampling time, and z represents the discrete domain. k1, k2, k3, k4, and k5 are all coefficients. The functional expression of k1 is: The functional expression for k2 is: The function expression for k3 is: The function expression for k4 is The function expression for k5 is:
[0087] Then let a = R0, b = τ1τ2, c = τ1 + τ2, d = R0 + R1 + R2, e = R0τ1 + R0τ2 + R1τ2 + R2τ1. This will give us... R2 = da - R1. Combining this with the function expressions for k1, k2, k3, k4, and k5, we can obtain...
[0088] Since k1, k2, k3, k4, and k5 can be obtained through parameter identification and calculation using the least squares method, based on obtaining k1, k2, k3, k4, and k5, the formula can be used... Calculate 'a' to obtain the ohmic resistance R0. Simultaneously, the formula can be used... Calculate b and obtain it based on the formula. c can also be obtained by calculation or based on the formula. Calculate d, and obtain based on the formula Calculate e. Then you can base it on... R1 is calculated, and R2 is calculated based on the formula R2 = da - R1. Finally, the sum of R0, R1, and R2 is calculated to obtain the equivalent DC impedance.
[0089] Step S104: Obtain the estimated terminal voltage corresponding to the output characteristic parameter based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter.
[0090] The target equivalent DC impedance voltage can be obtained by multiplying the operating current in this output characteristic parameter by the target equivalent DC impedance. Then, the target estimated open-circuit voltage is subtracted from the target equivalent DC impedance voltage to obtain the estimated terminal voltage corresponding to this output characteristic parameter.
[0091] Step S105: Based on the voltage integration method, the real-time error power is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage.
[0092] Optionally, a target integrator gain coefficient can be obtained by matching a preset relationship between remaining battery capacity and integrator gain coefficient using a first target remaining battery capacity. The integrator gain coefficient characterizes the rate of change of battery terminal voltage relative to remaining battery capacity. Then, based on the voltage integration method, the real-time error battery capacity is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage and the target integrator gain parameter.
[0093] Similarly, there can be multiple preset correspondences between remaining battery power and integrator gain coefficients, each corresponding to a different ambient temperature at which the battery is located. Correspondingly, the output characteristic parameters can include the ambient temperature of the battery. Then, using the ambient temperature, the correspondence between remaining battery power and integrator gain coefficients that corresponds to the ambient temperature is selected from among the multiple correspondences.
[0094] The preset relationship between remaining battery power and integrator gain coefficient can be obtained in the following way:
[0095] After obtaining the correspondence between remaining power and estimated open-circuit voltage, for the correspondence between the remaining power and estimated open-circuit voltage of the i-th group, the first difference can be obtained by subtracting the remaining power of the i-th group from the remaining power of the (i+1)-th group. Then, the second difference can be obtained by subtracting the estimated open-circuit voltage of the i-th group from the estimated open-circuit voltage of the (i+1)-th group. Finally, the ratio between the second difference and the first difference is determined as the integrator gain parameter corresponding to the remaining power of the i-th group.
[0096] The integrator gain parameter corresponding to the remaining charge in group i satisfies the formula: Where, α i The integrator gain parameter characterizes the remaining charge of the i-th group. OCV i+1 Characterizes the estimated open-circuit voltage of the (i+1)th group. OCV i Characterizes the estimated open-circuit voltage of the i-th group. SOC i+1This represents the remaining power in the (i+1)th group. SOC i This represents the remaining power in the i-th group.
[0097] Step S106: Correct the first initial remaining power using the real-time error power to obtain the second target remaining power corresponding to the output characteristic parameter.
[0098] The real-time error power can be either positive or negative.
[0099] In one optional implementation of this embodiment, the sum of the first initial remaining power and the real-time error power can be determined as the second target remaining power corresponding to the output characteristic parameter.
[0100] In one optional implementation of this embodiment, if the first initial remaining power is equal to the difference between the second initial remaining power and the estimated power consumption, the cumulative error power can be obtained, and the sum of the cumulative error power, the first initial remaining power, and the real-time error power corresponding to the output characteristic parameter can be determined as the second target remaining power. The cumulative error power represents the sum of the real-time error power corresponding to all output characteristic parameters whose acquisition time is earlier than the output characteristic parameter.
[0101] The method for obtaining remaining battery power provided in this application embodiment, when obtaining a second target remaining power corresponding to the output characteristic parameter, uses the first target remaining power corresponding to the previous output characteristic parameter to perform a matching operation in the preset correspondence between remaining power and estimated open-circuit voltage, and in the preset correspondence between remaining power and equivalent DC impedance, to obtain the estimated open-circuit voltage and equivalent DC impedance corresponding to the first target remaining power. Since the acquisition time of adjacent output characteristic parameters is very short, the difference between the estimated open-circuit voltages corresponding to adjacent output characteristic parameters is also very small, and the difference between the equivalent DC impedances corresponding to adjacent output characteristic parameters is also very small. Therefore, the estimated open-circuit voltage corresponding to the first target remaining power, i.e., the target estimated open-circuit voltage, can be determined as the estimated open-circuit voltage corresponding to the output characteristic parameter. Simultaneously, the equivalent DC impedance corresponding to the first target remaining power, i.e., the target equivalent DC impedance, can be determined as the equivalent DC impedance corresponding to the output characteristic parameter. Then, the estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter. In a battery, the terminal voltage is obtained by subtracting the product of the equivalent DC impedance and the operating voltage from the open-circuit voltage. Therefore, given the target estimated open-circuit voltage, target equivalent DC impedance, and operating current, the estimated terminal voltage corresponding to this output characteristic parameter can be obtained. Then, based on the voltage integration method, the real-time error charge is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage. This allows us to obtain the real-time error charge caused by current detection error when acquiring this output characteristic parameter. Finally, the real-time error charge is used to correct the initial remaining charge calculated based on the ampere-hour integration method, thereby reducing the error in estimating the remaining charge using the ampere-hour integration method.
[0102] Example 2
[0103] This embodiment provides further examples and explanations of the present application based on the above embodiments.
[0104] The battery is, for example, a lithium-ion battery.
[0105] Before obtaining the output characteristic parameters of the lithium-ion battery for the first time, the initial capacity of the lithium-ion battery can be obtained first. The initial capacity of the lithium-ion battery is then determined as the first target remaining capacity corresponding to the previous output characteristic parameter obtained for the first time, and the second initial remaining capacity corresponding to the previous output characteristic parameter obtained for the first time.
[0106] Then, during the discharge process of the lithium-ion battery, the battery's output characteristic parameters are acquired at preset intervals. The preset interval ranges from 100 milliseconds to 1 second.
[0107] Once an output characteristic parameter is obtained, the ambient temperature in that parameter can be used to find the corresponding relationship between the remaining charge and the estimated open-circuit voltage, as well as the relationship between the remaining charge and the equivalent DC impedance.
[0108] Then, using the first target remaining charge corresponding to the previous output characteristic parameter of this output characteristic parameter, a matching operation is performed in the correspondence between the obtained remaining charge and the estimated open circuit voltage, and the correspondence between the remaining charge and the equivalent DC impedance, to obtain the target estimated open circuit voltage and the target equivalent DC impedance.
[0109] Then, the target equivalent DC impedance voltage can be obtained by multiplying the operating current in the output characteristic parameter by the target equivalent DC impedance; and the target estimated open circuit voltage can be obtained by subtracting the target equivalent DC impedance voltage from the target estimated open circuit voltage.
[0110] Then, using the remaining power of the first target, a matching operation is performed in the preset correspondence between the remaining power and the integrator gain coefficient to obtain the target integrator gain coefficient.
[0111] Then, the difference between the estimated terminal voltage and the real-time terminal voltage in the output characteristic parameter, along with the target integrator gain coefficient, is input into the integrator to obtain the real-time error charge.
[0112] Simultaneously, based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter can be calculated using the operating current in the output characteristic parameter.
[0113] Finally, the real-time error power, the cumulative error power, and the first initial remaining power are summed to obtain the second target remaining power corresponding to the output characteristic parameter.
[0114] Example 3:
[0115] Based on the same inventive concept, this application also provides a device 300 for obtaining the remaining battery power. Please refer to [link to relevant documentation]. Figure 3 As shown. It should be understood that the specific functions of device 300 can be found in the description above; to avoid repetition, detailed descriptions are omitted here. Device 300 includes at least one software function module that can be stored in memory or embedded in the operating system of device 300 in the form of software or firmware. Specifically:
[0116] See Figure 3 As shown, the device 300 is applied to an electronic device and includes: an acquisition module 301 and an operation module 302. Wherein:
[0117] The acquisition module 301 is configured to acquire the battery's output characteristic parameters at preset intervals during battery use. The output characteristic parameters include the battery's real-time terminal voltage and operating current.
[0118] The operation module 302 is configured to perform the following operations sequentially for each output characteristic parameter, according to the order in which the output characteristic parameters are acquired:
[0119] Obtain the first target remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter;
[0120] Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter.
[0121] Using the remaining power of the first target, matching operations are performed in the preset correspondence between the remaining power and the estimated open-circuit voltage, and in the preset correspondence between the remaining power and the equivalent DC impedance, respectively, to obtain the target estimated open-circuit voltage and the target equivalent DC impedance.
[0122] The estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter.
[0123] Based on the voltage integration method, the real-time error power is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage;
[0124] The first initial remaining power is corrected using the real-time error power, and the second target remaining power corresponding to the output characteristic parameter is obtained.
[0125] It should be understood that, for the sake of brevity, some of the content described in Embodiment 1 will not be repeated in this embodiment.
[0126] Example 4:
[0127] Based on the same inventive concept, this embodiment provides an electronic device, see [link to relevant documentation]. Figure 4 As shown, it includes a processor 401 and a memory 402. Wherein:
[0128] The processor 401 is used to execute one or more programs stored in the memory 402 to implement the above-described method for obtaining the remaining battery power.
[0129] It is understandable that processor 401 can be a processor core or processor chip, or other circuitry capable of program configuration and execution. Memory 402 can be RAM (Random Access Memory), ROM (Read-Only Memory), flash memory, etc., but this is not a limitation.
[0130] It's understandable. Figure 4 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 4 The more or fewer components shown, or having the same Figure 4 Different configurations are shown. For example, it may also have an internal communication bus 403 for communication between the processor 401 and the memory 402; or it may have an external communication interface, such as a USB (Universal Serial Bus) interface, a CAN (Controller Area Network) bus interface, etc.; or it may have an information display component such as a display screen, but this is not a limitation.
[0131] Based on the same inventive concept, this embodiment also provides a computer-readable storage medium, such as a floppy disk, optical disk, hard disk, flash memory, USB flash drive, SD (Secure Digital Memory Card), MMC (Multimedia Card), etc., in which one or more programs implementing the above steps are stored. These one or more programs can be executed by one or more processors to implement the above method for obtaining the remaining battery power. Further details will not be elaborated here.
[0132] Based on the same inventive concept, this embodiment also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described method for obtaining the remaining battery power.
[0133] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0134] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0135] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0136] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.
[0137] In this article, "multiple" refers to two or more.
[0138] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for obtaining the remaining power of a battery, characterized in that, include: During battery use, the battery's output characteristic parameters are acquired at preset intervals, including the battery's real-time terminal voltage and operating current. Following the order in which the output characteristic parameters were acquired, the following operations are performed for each output characteristic parameter in turn: Obtain the first target remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter; Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter. Using the first target remaining power, matching operations are performed in the preset correspondence between remaining power and estimated open circuit voltage, and in the preset correspondence between remaining power and equivalent DC impedance, respectively, to obtain the target estimated open circuit voltage and the target equivalent DC impedance. The estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter. Based on the voltage integration method, the real-time error power is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage. The first initial remaining power is corrected using the real-time error power, and the second target remaining power corresponding to the output characteristic parameter is obtained.
2. The method according to claim 1, characterized in that, The first initial remaining power is corrected using the real-time error power to obtain the second target remaining power corresponding to the output characteristic parameter, including: The sum of the first initial remaining power and the real-time error power is determined as the second target remaining power corresponding to the output characteristic parameter.
3. The method according to claim 1, characterized in that, Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter, including: The estimated power consumption is obtained by integrating the output characteristic parameter with the operating current in the output characteristic parameter using the acquisition time and the operating current in the output characteristic parameter. Obtain the second initial remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter; The difference between the second initial remaining power and the estimated power consumption is determined as the first initial remaining power.
4. The method according to claim 3, characterized in that, The first initial remaining power is corrected using the real-time error power to obtain the second target remaining power corresponding to the output characteristic parameter, including: The cumulative error power is obtained, which represents the sum of the real-time error power corresponding to all output characteristic parameters whose acquisition time is earlier than that of the output characteristic parameter; The sum of the cumulative error power, the first initial remaining power, and the real-time error power corresponding to the output characteristic parameter is determined as the second target remaining power.
5. The method according to claim 1, characterized in that, Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter, including: The estimated power consumption is obtained by integrating the output characteristic parameter with the operating current in the output characteristic parameter using the acquisition time and the operating current in the output characteristic parameter. The difference between the first target remaining power and the estimated power consumption is determined as the first initial remaining power.
6. The method according to claim 1, characterized in that, The estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter, including: The target equivalent DC impedance voltage is obtained by multiplying the operating current in the output characteristic parameter by the target equivalent DC impedance. The estimated terminal voltage corresponding to the output characteristic parameter is obtained by subtracting the target equivalent DC impedance voltage from the target estimated open-circuit voltage.
7. The method according to any one of claims 1 to 6, characterized in that, Obtain the target remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter, including: If the output characteristic parameter is the first output characteristic parameter obtained, the initial battery capacity is determined as the first target remaining battery capacity; The initial charge level refers to the battery's charge level before the first acquisition of the battery's output characteristic parameters.
8. A device for obtaining the remaining power of a battery, characterized in that, include: The acquisition module is configured to acquire the battery's output characteristic parameters at preset intervals during battery use. The output characteristic parameters include the battery's real-time terminal voltage and operating current. The operation module is configured to perform the following operations sequentially for each output characteristic parameter, according to the order in which they are acquired: Obtain the first target remaining battery power corresponding to the previous output characteristic parameter of this output characteristic parameter; Based on the ampere-hour integration method, the first initial remaining charge corresponding to the output characteristic parameter is calculated using the operating current in the output characteristic parameter. Using the first target remaining power, matching operations are performed in the preset correspondence between remaining power and estimated open circuit voltage, and in the preset correspondence between remaining power and equivalent DC impedance, respectively, to obtain the target estimated open circuit voltage and the target equivalent DC impedance. The estimated terminal voltage corresponding to the output characteristic parameter is obtained based on the target estimated open-circuit voltage, the target equivalent DC impedance, and the operating current in the output characteristic parameter. Based on the voltage integration method, the real-time error power is calculated using the difference between the estimated terminal voltage and the real-time terminal voltage. The first initial remaining power is corrected using the real-time error power, and the second target remaining power corresponding to the output characteristic parameter is obtained.
9. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the method for obtaining the remaining battery power as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method for obtaining the remaining battery power as described in any one of claims 1 to 7.
11. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method for obtaining the remaining battery power as described in any one of claims 1 to 7.