Battery power calculation method, device, electronic device and storage medium

By collecting current and voltage from the battery in low-power consumption mode, and performing historical compensation and linear interpolation calculations, the problem of low accuracy in battery state estimation is solved and more accurate power calculation is achieved.

CN118362908BActive Publication Date: 2024-10-11ZHEJIANG GEOFORCECHIP TECH CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202410793420.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-11
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

The accuracy of existing battery state of charge estimation is not high, especially in low power consumption mode. Due to the reduction of current and voltage sampling frequency, leakage current problems occur in the integral calculation, resulting in large power prediction errors.

Method used

When the battery is in low power consumption mode, the current and voltage are collected, and the voltage change rate is calculated through compensation and linear interpolation with the historical sampling current to determine the open circuit voltage value, thereby accurately calculating the battery's integrated power and power.

Benefits of technology

By compensating leakage current and improving voltage change rate calculation accuracy, the calculation accuracy of battery SOC is significantly improved and the error of power prediction is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118362908B_ABST
    Figure CN118362908B_ABST
Patent Text Reader

Abstract

The present application provides a battery power calculation method, device, electronic device and storage medium, which relates to the field of battery management technology. The battery power calculation method includes collecting the sampling current and sampling voltage corresponding to the battery at different times when the power-consuming device where the battery is located is in a low-power consumption mode; compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculating the integrated power of the battery at the current moment according to the compensated sampling current at the current moment; calculating the voltage change rate of the battery within a preset sampling time period according to the sampling voltage, and determining the open circuit voltage value corresponding to the current moment according to the sampling voltage change rate; and calculating the power of the battery at the current moment according to the integrated power of the battery at the current moment and the open circuit voltage value. The present application can improve the accuracy of battery power calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery management technology, and in particular to a battery power calculation method, device, electronic device and storage medium. Background Art

[0002] Battery power management includes battery power prediction. Under normal circumstances, the battery current is sampled at regular intervals, and power prediction is performed based on the sampled current. That is to say, the current sampling frequency remains unchanged. However, when the battery is in low power mode, the current sampling frequency is reduced. There is a leakage current problem when performing integral calculations for power prediction, resulting in large errors in power prediction results and low accuracy in battery state of charge (SOC) estimation.

[0003] It should be noted that the above statements are only used to provide background technical information related to the present application and do not necessarily constitute prior art. Summary of the invention

[0004] In view of this, the purpose of the present application is to propose a battery power calculation method, device, electronic device and storage medium. The present application can specifically solve the problem of low accuracy of existing battery power status estimation.

[0005] Based on the above-mentioned purpose, in the first aspect, the present application proposes a battery power calculation method, including: when the power-consuming device where the battery is located is in a low power consumption mode, collecting the sampling current and sampling voltage corresponding to the battery at different times; compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculating the integrated power of the battery at the current moment according to the compensated sampling current at the current moment; calculating the voltage change rate of the battery within a preset sampling time period according to the sampling voltage, and determining the open circuit voltage value corresponding to the current moment according to the sampling voltage change rate; calculating the power of the battery at the current moment according to the integrated power of the battery at the current moment and the open circuit voltage value.

[0006] Optionally, the sampling current at the current moment is compensated according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, including: calculating the sum of the sampling current at the current moment and the preset number of historical sampling currents; and taking the average value of the sum as the compensated sampling current at the current moment.

[0007] Optionally, the method also includes: obtaining the real-time current of the battery, and determining that the electrical device where the battery is located has switched from the low power mode to the normal mode based on the real-time current being greater than or equal to a preset value; compensating the integrated power of the battery at the current moment based on the difference between the sampled current of the battery at the first moment and the sampled current of the battery at the second moment; wherein the sampled current at the first moment is the sampled current collected for the last time in the low power mode, and the sampled current at the second moment is the sampled current collected for the first time after the electrical device switches from the low power mode to the normal mode.

[0008] Optionally, the preset sampling time period includes at least one sampling cycle, and the voltage change rate of the battery within the preset sampling time period is calculated based on the sampled voltage, including: using a linear interpolation method to predict the voltage value at the moment when the voltage is not collected within each sampling cycle, to obtain the voltage value at each moment within the preset sampling time; according to the voltage value at each moment within the preset sampling time, calculating a first sum value and a second sum value within the sampling time, the first sum value being the sum of the voltage at each moment in the first half of the preset sampling time, and the second sum value being the sum of the voltage at each moment in the second half of the preset sampling time; according to the difference between the second sum value and the first sum value, and the number of sampling cycles of the preset sampling time, obtaining the voltage change rate of the battery within the preset sampling time.

[0009] Optionally, the open circuit voltage value corresponding to the current moment is determined based on the sampled voltage change rate, including: when the sampled voltage change rate is less than or equal to a preset value, the sampled voltage collected at the current moment is used as the open circuit voltage value; when the sampled voltage change rate is greater than the preset value, the historical valid open circuit voltage value is used as the open circuit voltage value corresponding to the current moment.

[0010] Optionally, the charge of the battery at the current moment is calculated based on the integrated charge of the battery at the current moment and the open circuit voltage value, including: obtaining an initial absolute charge based on the open circuit voltage value corresponding to the current moment and a preset battery model, the preset battery model including a correspondence between the open circuit voltage value and the initial absolute charge; calculating a first current absolute charge of the battery based on the initial absolute charge and the integrated charge of the battery; and obtaining the charge of the battery at the current moment based on the first current absolute charge of the battery.

[0011] Optionally, the method also includes: calculating the first output impedance corresponding to the battery under the first current absolute power and battery temperature; obtaining an open circuit voltage corresponding to the first output impedance as a first open circuit voltage based on the correspondence between the output impedance and the open circuit voltage of the battery; calculating the second current absolute power of the battery based on the first open circuit voltage and the battery temperature; performing weighted calculation on the first current absolute power and the second current absolute power to obtain a target absolute power; and calculating the power of the battery at the current moment based on the target absolute power.

[0012] Optionally, calculating the battery power at the current moment based on the target absolute power includes: calculating a second output impedance corresponding to the battery under the second current absolute power and battery temperature; obtaining an open circuit voltage corresponding to the second output impedance as a second open circuit voltage based on a correspondence between the output impedance of the battery and the open circuit voltage; updating an initial absolute charge of the battery based on the second open circuit voltage and the battery temperature; and calculating the battery power at the current moment based on the target absolute power and the updated initial absolute charge.

[0013] In a second aspect, the present application proposes a battery power calculation device, which includes: a sampling module, which is used to collect sampling current and sampling voltage corresponding to the battery at different times when the power-consuming device where the battery is located is in a low power consumption mode; a compensation module, which is used to compensate the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculate the integrated power of the battery at the current moment according to the compensated sampling current at the current moment; an open circuit voltage determination module, which is used to calculate the voltage change rate of the battery within a preset sampling time period according to the sampling voltage, and determine the open circuit voltage value corresponding to the current moment according to the sampling voltage change rate; a power calculation module, which is used to calculate the power of the battery at the current moment according to the integrated power of the battery at the current moment and the open circuit voltage value.

[0014] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect.

[0015] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the program is executed by a processor to implement any method described in the first aspect.

[0016] In general, this application has at least the following beneficial effects:

[0017] The sampling current at the current moment is compensated and integrated by using a preset number of historical sampling currents adjacent to the sampling current at the current moment, the leakage electricity is supplemented, and the open circuit voltage value is calculated according to the sampling voltage, and then the battery power at the current moment is calculated according to the integrated electricity and the open circuit voltage value of the battery. Since the present application can supplement the leakage electricity, the leakage current problem of the integrated electricity can be solved, thereby improving the SOC calculation accuracy.

[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application. In addition, the same reference numerals are used to represent the same parts in all the drawings.

[0020] Figure 1 A schematic diagram showing the flow of the battery power calculation method of the present application;

[0021] Figure 2 A comparison diagram of integral amount compensation according to an embodiment of the present application is shown;

[0022] Figure 3 A battery power calculation flow chart of an embodiment of the present application is shown in a specific example;

[0023] Figure 4 A schematic diagram showing the structure of a battery power calculation device according to an embodiment of the present application is shown;

[0024] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;

[0025] Figure 6 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0028] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0030] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0031] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0032] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the embodiments of the present application.

[0033] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0034] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0035] During the operation of lithium batteries, various characteristic parameters need to be monitored and estimated to ensure that the lithium batteries operate in a safe and reliable state. For example, it is necessary to estimate the battery's state of charge (SOC), also known as the available remaining capacity, which is the battery power to be calculated in this application, which is equal to the ratio of the available battery capacity RM to the fully charged battery capacity FCC, that is, SOC=RM / FCC*100.

[0036] When predicting the SOC of the battery, under normal circumstances, the battery current is sampled at regular intervals, and then the power is predicted by sampling the current. That is to say, the sampling frequency of the current remains unchanged, but when the battery is in low power mode, the sampling frequency of the current will be reduced. There is a leakage current problem when performing integral calculations for power prediction, and the battery voltage will be small and the power will be high, resulting in a large error in the power prediction result. And when the battery is in low power mode, the sampling frequency of the voltage will also be reduced, which makes it difficult to determine whether the battery voltage can be used as an open circuit voltage. The difficulty in obtaining the open circuit voltage will also affect the power prediction result, which will also result in a large error. The above problems lead to low SOC calculation accuracy in low power mode.

[0037] In order to improve the calculation accuracy of SOC, the embodiment of the present application compensates and integrates the sampling current at the current moment through a preset number of historical sampling currents adjacent to the sampling current at the current moment, supplements the leakage electricity, and calculates the open circuit voltage value according to the sampling voltage, and then calculates the battery power at the current moment according to the integrated electricity and the open circuit voltage value of the battery. Since the present application can supplement the leakage electricity, it can solve the leakage current problem of the integrated electricity, thereby improving the SOC calculation accuracy.

[0038] The embodiments of the present application are described in detail below.

[0039] Please refer to Figure 1 , Figure 1 A flowchart of a battery power calculation method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes the following steps.

[0040] S101 . When the power-consuming device where the battery is located is in a low power consumption mode, collect sampled current and sampled voltage corresponding to the battery at different times.

[0041] In one example, the power-consuming device may include a mobile terminal such as a mobile phone, a wearable device, a tablet computer, and a laptop computer. The low power consumption mode may be a state where the electronic device is in standby, sleep, low power, or other states where the battery current is less than a low power consumption threshold. Exemplarily, a current value may be set as a low power consumption threshold based on the historical operating state of the power-consuming device. When the battery current is greater than or equal to the low power consumption threshold, it indicates that the power-consuming device is in a normal operating mode. When the battery current is less than the low power consumption threshold, it indicates that the power-consuming device is in a low power consumption mode.

[0042] Among them, different moments refer to different sampling moments. For example, the sampling period is 20s. The current sampling moment may include the initial moment when in low power consumption mode. The initial moment is recorded as 0s. The next sampling moment is 20s, and the next sampling moment is 40s, and so on.

[0043] In this embodiment, when the electric device is in a low power consumption mode, the sampled current and sampled voltage corresponding to the battery at different times are collected, and the battery power can be calculated through the sampled current and sampled voltage.

[0044] S102: Compensate the current sampling current according to a preset number of historical sampling currents adjacent to the current sampling current, and calculate the integrated power of the battery according to the compensated current sampling current.

[0045] In this embodiment, the historical sampling current refers to the current collected at the sampling moment before the sampling current at the current moment. The preset number of historical sampling currents adjacent to the sampling current at the current moment refers to the continuous preset number of currents collected before the sampling current at the current moment. In this way, the preset number of historical sampling currents and the sampling current at the current moment can be used as a sampling current set. The sampling current at the current moment is calculated by using this sampling current set. The sampling current at the current moment can be calculated by at least two adjacent sampling currents. Compared with directly using the sampling current collected at the current moment, the sampling error of the sampling current at the current moment can be reduced. Since the integrated power of the battery at the current moment is calculated based on the sampling current at the current moment, the calculation error of the integrated power of the battery at the current moment can also be reduced, and the calculation accuracy of the integrated power of the battery at the current moment can be improved.

[0046] Among them, the sampling current at the current moment is compensated according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, including: calculating the sum of the sampling current at the current moment and the preset number of historical sampling currents; and taking the average value of the sum as the compensated sampling current at the current moment.

[0047] The preset number can be set manually according to the accuracy requirement. For example, the preset number is 2. When the electrical device enters the low power consumption mode, the initial sampling current is sleep current1, and the sampling currents in every other sampling cycle are sleep current2, sleep current3, sleep current4... If the sampling current at the current moment is sleep current4, the preset number of historical sampling currents are sleep current2 and sleep current3, that is, the sampling current at the current moment after compensation is the average value of sleep current2, sleep current3 and sleepcurrent4 added together.

[0048] In an example, the integrated power of the battery can be obtained by converting the integrated amount of the sampled current. For example, the integrated power of the battery Qpass= sleep current *X / 3600mAh, where sleep current represents the sampled current, X is the sampling period, and 3600 is the conversion unit for converting current to power.

[0049] Next, the calculation process of the integrated power of the battery in this embodiment is described.

[0050] The sampling period is 20s. The moment when the electrical device enters the low power mode from the normal mode is recorded as the first current point. The initial sampling current of the first current point is sleep current1. The sampling period after entering the low power mode is recorded as the second current point. The current of the second current point is recorded as sleep Current 2. Then, the integral current value sleep currentA after entering the low power mode is as follows:

[0051] sleep currentA =(sleep current 1 + sleep current 2) / 2

[0052] Correspondingly, the integral power QpassA = sleep currentA *20 / 3600mAh

[0053] When another sampling cycle passes, it is recorded as the third current point, and the current collected at the third current point is recorded as sleep current3. The calculation formula of the integral current value sleep currentB corresponding to the third current point is as follows:

[0054] sleep currentB = (sleep current 1 + sleep current 2+sleep current 3) / 3

[0055] Correspondingly, the integral power QpassB = sleep currentB *20 / 3600mAh

[0056] Similarly, the fourth current point is recorded as sleep current 4. As described above, the present embodiment compensates the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment. That is, the sampling current at the current moment is compensated by a continuous fixed number of sampling currents. The fixed number of sampling currents can be regarded as a sliding window, that is, the sampling current at the current moment is compensated according to the fixed number of sampling currents in the sliding window. Exemplarily, the sampling current at the current moment is compensated by three continuous sampling currents. Thus, when compensating the fourth current point, the initial sampling current sleep current1 is removed, and the current at the fourth current point is compensated by sleep current2, sleepcurrent3 and sleep current4. The integral current value sleep currentC corresponding to the fourth current point is calculated as follows:

[0057] sleep currentC = (sleep current 2+sleep current 3+sleep current 4) / 3

[0058] Correspondingly, the integral power QpassC = sleep currentC *20 / 3600mAh

[0059] As described above, the embodiment of the present application compensates the sampling current at the current moment through a fixed number of sampling currents in a sliding window, and calculates the integrated power by the compensated current value. Compared with directly using the sampled current at the current moment, the sampling error of the sampled current at the current moment can be reduced, the leakage current can be compensated, the sampling error can be reduced, and the calculation accuracy of the current and power can be improved.

[0060] In a scenario, the power-consuming device can be converted from normal mode to low power mode, or from low power mode to normal mode. If the power-consuming device is converted from low power mode to normal mode before a sampling cycle has passed after a certain sampling in low power mode, then the current from the last sampling of the battery in low power mode to normal mode must also be compensated.

[0061] Therefore, in an embodiment of the present application, the battery power calculation method also includes: obtaining the real-time current of the battery, and determining that the electrical device where the battery is located has switched from a low power consumption mode to a normal mode based on the real-time current being greater than or equal to a preset value; compensating the integrated power of the battery at the current moment based on the difference between the sampled current of the battery at the first moment and the sampled current of the battery at the second moment; wherein the sampled current at the first moment is the sampled current collected for the last time in the low power consumption mode, and the sampled current at the second moment is the sampled current collected for the first time after the electrical device switches from the low power consumption mode to the normal mode.

[0062] Among them, the preset value can be the above-mentioned low power consumption threshold. When the battery current is greater than or equal to the low power consumption threshold, it indicates that the electronic device is in normal operating mode. When the battery current is less than the low power consumption threshold, it indicates that the electronic device is in low power consumption mode.

[0063] The sampling current at the first moment t1 can be represented by sleep current t1, and the sampling current at the second moment t2 can be represented by sleep current t2. Then the integrated charge between t1 and t2 can be expressed as:

[0064] Qpass=sleep current*(t2-t1) / 3600mAh

[0065] The above embodiment can calculate the current between the moment when the electric device is switched from low power mode to normal mode and the moment when the electric device is switched from low power mode to normal mode, which can further improve the accuracy of power calculation and solve the problem of leakage current integration.

[0066] Figure 2 A comparison diagram of integral amount compensation provided in an embodiment of the present application is shown. Figure 2 The horizontal axis is time, and the vertical axis is integrated power. L1 is the integrated power calculated by replacing all current values ​​in the middle of a sampling period with the same current value. L2 is the integrated power obtained by compensating with a preset number of sampled currents in the sliding window in this embodiment. L3 is the integrated power obtained by real data. L4 is the integrated power of the power meter without any compensation measures. Figure 2It can be clearly seen that the method of this embodiment has the smallest error with the actual integrated power quantity, and can greatly improve the calculation accuracy of the integrated power quantity.

[0067] S103, calculating the voltage change rate of the battery within a preset sampling period according to the sampled voltage, and determining the open circuit voltage value corresponding to the current moment according to the sampled voltage change rate.

[0068] In an example, the voltage change rate can be obtained by the ratio of the voltage change within a preset time window to the time. For example, the above-mentioned voltage change is obtained according to the ratio of the sampled voltage change within a preset sampling time period to the preset time, and then the open circuit voltage (static or predicted voltage when no-load) value corresponding to the current moment is determined according to the voltage change rate.

[0069] Determining the open circuit voltage value corresponding to the current moment according to the sampling voltage change rate may be to use the sampling voltage at the current moment as the open circuit voltage value when the sampling voltage change amount meets a preset condition.

[0070] In a scenario, if the sampling period in low power mode is 20s, and a preset time window includes 200 sampled voltages, then the accumulated power is equivalent to leaving the battery at rest for 4000s. If the power within these 4000s is averaged, the calculated voltage change rate dv / dt is highly realistic due to the large time span. If the voltage not collected in each cycle is sampled with the same voltage value as the collected voltage, the voltage change rate dv / dt is very small. In other words, when the preset sampling time period is too long, the sampling interval will become larger. Due to the influence of the sampling interval, if the two-point voltage value of the interval sampling is directly used, the voltage sampling accuracy and anti-interference requirements are too high, and there is a phenomenon that the battery voltage rebounds after discharging or charging.

[0071] Based on this, when calculating the voltage change, this embodiment adopts a method of continuously compensating and filling the unknown rebound battery voltage through multiple sampled voltages. Specifically, the preset sampling time period includes at least one sampling cycle, and the voltage change rate of the battery in the preset sampling time period is calculated according to the sampled voltage, including: using a linear interpolation method to predict the voltage value at the moment when the voltage is not collected in each sampling cycle, and obtain the voltage value at each moment in the preset sampling time; according to the voltage value at each moment in the preset sampling time, calculate the first sum value and the second sum value in the sampling time, the first sum value is the voltage sum at each moment in the first half of the preset sampling time, and the second sum value is the voltage sum at each moment in the second half of the preset sampling time; according to the difference between the second sum value and the first sum value, and the number of sampling cycles of the preset sampling time, obtain the voltage change rate of the battery in the preset sampling time.

[0072] In this embodiment, the preset sampling time period includes at least one sampling cycle, and at least two sampled voltage values ​​can be obtained. Then, the voltage at the time when the voltage is not collected in the sampling cycle can be compensated according to the at least two sampled voltage values.

[0073] The linear interpolation method is used to predict the voltage value at the moment when the voltage is not collected in each sampling period, and the voltage value at each moment in the preset sampling time is obtained. The intermediate value of two known sampling voltages can be obtained through the known sampling voltage, and then three voltage values ​​in a sampling period are obtained, and then the voltage value at each moment in the preset sampling time is obtained based on these three voltage values.

[0074] Exemplarily, X represents the time interval of the sampling cycle, X represents the middle value of two known sampling voltages, then the three voltage values ​​in one sampling cycle are V(tX / 2), V(t) and V(t+X / 2), respectively, wherein V(tX / 2) refers to the voltage value collected at the sampling time before time t, V(t+T / 2) refers to the voltage value collected at the sampling time after time t, and V(t) is the middle value of V(tX / 2) and V(t+X / 2). Then, the value of V(t) can be obtained by adding V(tX / 2) and V(t+X / 2) and averaging them. According to this method, the voltage values ​​of three points V(tX / 2), V(t) and V(t+X / 2) can be obtained. Similarly, the intermediate value of V(tX / 2) and V(t) can be obtained according to the voltage values ​​of two points V(tX / 2) and V(t). The intermediate value of V(t) and V(t+X / 2) can also be obtained according to the voltage values ​​of two points V(t) and V(t+X / 2). By analogy, the voltage value at any time in the sampling period can be obtained. That is, the voltage value at the time when the voltage is not collected in each sampling period is predicted to obtain the voltage value at each time in the preset sampling time.

[0075] Assuming that the preset sampling time period includes ten sampling cycles, i=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, the voltage sum at each moment in the first half of the preset sampling time can be expressed by ∑(i=1, 5)Sum(i), that is, the first sum value is ∑(i=1, 5)Sum(i). Similarly, the voltage sum at each moment in the second half of the preset sampling time can be expressed by ∑(i=6, 10)Sum(i), that is, the second sum value is ∑(i=6, 10)Sum(i).

[0076] According to the difference between the second sum and the first sum, and the number of sampling cycles of the preset sampling time, the voltage change rate of the battery within the preset sampling time is obtained, that is:

[0077] dv / dt=(∑(i=6,10)Sum(i)-∑(i=1,5)Sum(i)) / 10

[0078] As can be seen from the above, the present embodiment predicts the voltage value at the unsampled moment through two known samples. Since the two known sampled voltages are obtained through real sampling, the accuracy of the voltage value predicted based on the two sampled voltages is also relatively high. After obtaining the voltage value at each moment within the preset sampling time, the voltage change rate is calculated by the difference between the sum of the first half and the second half of a sampling cycle. On the one hand, the time span is reduced. On the other hand, since the voltage value at each moment is calculated, the calculation accuracy of the voltage change rate can be greatly improved.

[0079] In addition, in this embodiment, the sum of the voltage values ​​within a sampling period can be represented by the sum of the voltage value at each moment and the rebound voltage. For example, when X=20s,

[0080] The sum value in the first sampling period Sum1=(V(t-10)+V(t+10)) / 2*20+ΔVsum1

[0081] The sum value in the second sampling period Sum2 = (V(t+10)+V(t+30)) / 2*20+ΔVsum2

[0082] In the above formula, ΔVsum1 and ΔVsum2 are the curve parts of the rebound voltage (temperature influence, charge and discharge influence) in the corresponding sampling period. The trends are basically the same in a short time (such as 200s), that is, ΔVsum1=ΔVsum2.

[0083] Then, according to the formula dv / dt=(∑(i=6,10)Sum(i)-∑(i=1,5)Sum(i)) / 10, when ∑(i=6,10)Sum(i) is subtracted from ∑(i=1,5)Sum(i), the rebound voltages ΔVsum6~ΔVsum10 and ΔVsum1~ΔVsum5 are offset against each other when the difference is made. That is to say, the above calculation method in the embodiment of the present application can offset the rebound voltage and avoid the phenomenon of battery voltage rebound after the battery is discharged or charged.

[0084] In an embodiment of the present application, the open circuit voltage value corresponding to the current moment is determined based on the sampled voltage change rate, including: when the sampled voltage change rate is less than or equal to a preset value, the sampled voltage collected at the current moment is used as the open circuit voltage value; when the sampled voltage change rate is greater than the preset value, the historical valid open circuit voltage value is used as the open circuit voltage value corresponding to the current moment.

[0085] In this embodiment, the preset value can be set according to the type of battery. For example, when the battery is a lithium iron phosphate battery, the preset value can be 4uV / s, and when the battery is a lithium cobalt oxide battery, the preset value can be 1uV / s. Again, no specific limitation is made.

[0086] Assuming the preset value is 4uV / s, when the sampling voltage change rate is less than or equal to 4uV / s, the sampling voltage collected at the current moment is used as the open circuit voltage value; when the sampling voltage change rate is greater than 4uV / s, it indicates that the current battery condition cannot meet the conditions for obtaining the open circuit voltage value, and the historical effective open circuit voltage value is used as the open circuit voltage value corresponding to the current moment. The historical effective open circuit voltage value can be the open circuit voltage value calculated at the previous moment that can be used to calculate the battery power.

[0087] In an example, when two consecutive sampled voltage changes are both less than or equal to a preset value, the sampled voltage collected at the current moment may be used as the open circuit voltage value.

[0088] S104, calculating the battery power at the current moment according to the integrated battery power and the open circuit voltage value at the current moment.

[0089] In this embodiment, the open circuit voltage value can be recorded as OCV, and the battery power refers to the battery state of charge (SOC) SOC includes 0% - 100%. From the above, it can be seen that SOC = RM / FCC, and the available battery capacity RM needs to be simulated and calculated based on the initial absolute charge SOC_int and the current absolute charge SOC_new of the battery as a benchmark.

[0090] Specifically, the battery power at the current moment is calculated based on the integrated power and open circuit voltage value of the battery at the current moment, including: obtaining an initial absolute charge based on the open circuit voltage value corresponding to the current moment and a preset battery model; calculating a first current absolute charge of the battery based on the initial absolute charge and the integrated power of the battery; and obtaining the battery power at the current moment based on the first current absolute charge of the battery.

[0091] Among them, the preset battery model includes the correspondence between the open circuit voltage value and the initial absolute charge amount, and the preset battery model may include the mapping relationship between the absolute charge of the battery to be tested and the open circuit voltage at different temperatures. It may include one or more sub-models, each sub-model may represent one or more mapping relationships, and the mapping relationship may be specifically stored and presented in a table, or in the form of a graph and a curve. For example, it may include a mapping relationship between the open circuit voltage and the absolute charge OCV / Vbat-SOCAb, wherein the OCV-SOCAb mapping relationship may be in the form of a chart, and the corresponding absolute charge value SOCAb may be found through the open circuit voltage OCV, and the OCV may be found through the absolute charge value SOCAb.

[0092] Therefore, after obtaining the open circuit voltage value corresponding to the current moment, the battery model can be searched based on the current OCV to obtain the initial absolute charge SOCAb_int.

[0093] In one example, the current absolute charge of the battery is calculated as:

[0094] SOCAb_new=SOCAb_int+Qpass / Qchem*100+Qcompensate / Qchem*100%

[0095] Among them, SOCAb_new is the current absolute charge, that is, the absolute charge in the current discharge state, SOCAb_int is the initial absolute charge, that is, the initial absolute charge obtained by the battery model data when the open circuit voltage obtained under the static conditions was met last time, Qpass is the charge charged and discharged when SOCAb_new is the current absolute charge after charging and discharging starting from SOCAb_int, Qchem is the chemical capacity, and Qcompensate is the compensation capacity, that is, the capacity not recorded in low power mode.

[0096] It can be seen that if the Qcompensate error is large, it will have a great impact on the result of SOCAb_new, which will in turn lead to a large RM error, resulting in low voltage and high power problems, and ultimately lead to a large error in SOC=RM / FCC*100, affecting the calculation accuracy of the battery capacity. In step S102 of this embodiment, the sampled current at the current moment is compensated, and the integrated power of the battery at the current moment is calculated based on the compensated sampled current at the current moment. That is to say, the above step S102 has already calculated the compensation capacity Qcompensate, so the calculation error of SOCAb_new can be reduced.

[0097] It can be known from the calculation formula of the current absolute charge SOCAb_new of the above-mentioned battery that, after obtaining the initial absolute charge SOCAb_int according to the open circuit voltage value, and according to the Qpass calculated in step S102 of this embodiment, the first current absolute charge can be obtained, recorded as SOCAb_new1, and then the available battery capacity RM can be obtained by simulation according to the first current absolute charge SOCAb_new1 and the initial absolute charge SOCAb_int, and then the charge SOC of the battery at the current moment can be calculated according to SOC=RM / FCC.

[0098] In one example, in order to further improve the calculation accuracy of the battery power at the current moment in the above-mentioned embodiment, the battery power calculation method of this embodiment also includes: calculating the first output impedance corresponding to the battery under the first current absolute power and battery temperature; obtaining the open circuit voltage corresponding to the first output impedance as the first open circuit voltage according to the correspondence between the output impedance and the open circuit voltage of the battery; calculating the second current absolute power of the battery according to the first open circuit voltage and the battery temperature; performing weighted calculation on the first current absolute power and the second current absolute power to obtain the target absolute power; and calculating the power of the battery at the current moment according to the target absolute power.

[0099] It can be understood that the absolute charge of the battery has a certain preset relationship with the open circuit voltage and the current temperature, which can be represented by the SOCAb(T)=f(OCV, T) model, wherein T represents temperature, OCV represents open circuit voltage, and SOCAb(T) represents the absolute charge of the battery at temperature T, that is, SOC_new=SOCAb(T). Then, by looking up the table, it can be obtained that when the temperature is T and the absolute charge is the first current absolute charge SOCAb_new1, the first output impedance Rout1(SOCAb_new1, T) corresponding to the battery is obtained.

[0100] There is a corresponding relationship between the open circuit voltage and output impedance of the battery:

[0101] OCV=Vbat + sleep current * Rout(SOCAb(T),T)

[0102] Among them, Vbat is the battery cell voltage, sleep current is the current collected in low power mode, and Rout(SOCAb(T), T) is the battery output impedance corresponding to the current power, which can be obtained by looking up the table.

[0103] It can be seen that the open circuit voltage OCV1 corresponding to the first output impedance can be expressed as:

[0104] OCV1=Vbat + sleep current * Rout1(SOCAb_new1, T)

[0105] After obtaining OCV1, the SOCAb(T)=f(OCV, T) model is used again to obtain the second current absolute power SOCAb_new2 corresponding to f(OCV1, T), SOCAb_new2=f(OCV1, T).

[0106] The first current absolute power SOCAb_new1 and the second current absolute power SOCAb_new2 are weightedly calculated to obtain the target absolute power, SOC_new=a*SOCnew1+b*SOCnew2, where a and b are preset weights respectively, and then the power of the battery at the current moment can be calculated according to the target absolute power.

[0107] As can be seen from the above embodiment, in the process of calculating the battery power SOC, it is necessary to calculate based on SOC_new and SOC_int. Therefore, after obtaining the target absolute power as mentioned above, this embodiment also updates the initial absolute charge SOC_int to obtain a more accurate SOC.

[0108] Specifically, this embodiment calculates the battery power at the current moment according to the target absolute power, including: calculating the second output impedance corresponding to the battery under the second current absolute power and battery temperature; obtaining the open circuit voltage corresponding to the second output impedance as the second open circuit voltage according to the correspondence between the output impedance and the open circuit voltage of the battery; updating the initial absolute charge of the battery according to the second open circuit voltage and the battery temperature; and calculating the battery power at the current moment according to the target absolute power and the updated initial absolute charge.

[0109] By looking up the table, the corresponding second output impedance Rout2 (SOCAb_new2, T) can be obtained when the temperature is T and the current absolute electrical quantity is the second current absolute electrical quantity SOCAb_new2.

[0110] The second open circuit voltage OCV2 is obtained according to Rout2 (SOCAb_new2, T):

[0111] OCV2=Vbat + sleep current * Rout2(SOCAb_new2, T)

[0112] Then, the preset battery model can be searched according to OCV2 to obtain the initial absolute charge SOC_int corresponding to OCV2 as the updated initial absolute charge. Then, the available battery capacity RM can be obtained by simulation according to the target absolute charge SOC_new=a*SOCnew1+b*SOCnew2 and the updated initial absolute charge SOCAb_int, and then the battery charge SOC at the current moment can be calculated according to SOC=RM / FCC. In other words, the above embodiment calculates a more accurate battery charge SOC by obtaining a more accurate target absolute charge SOC_new and the initial absolute charge SOCAb_int.

[0113] The following is an example to illustrate the battery power calculation method of the embodiment of the present application.

[0114] Figure 3 A battery power calculation flow chart of an embodiment of the present application is shown in a specific example, referring to Figure 3 , detect whether the power-consuming device where the battery is located is in low power consumption mode. Exemplarily, when the battery current is greater than or equal to a preset low power consumption threshold, it indicates that the power-consuming device is in normal operation mode, and when the battery current is less than the low power consumption threshold, it indicates that the power-consuming device is in low power consumption mode. When the power-consuming device is in normal operation mode, the SOC is calculated by directly calculating parameters such as the initial absolute charge and the current absolute charge based on the currently acquired sampled voltage and sampled current.

[0115] When the electric device is in the low power consumption mode, the sampled current is compensated. Specifically, the sampled current at the current moment is compensated according to a preset number of historical sampled currents adjacent to the sampled current at the current moment.

[0116] The integrated power of the battery at the current moment is calculated according to the compensated sampled current at the current moment.

[0117] The sampled voltage is compensated, and the voltage value at the moment when the voltage is not collected in each sampling period is predicted by linear interpolation method to obtain the voltage value at each moment in the preset sampling time, so as to compensate the sampled voltage and calculate the voltage change rate of the battery in the preset sampling time period.

[0118] The voltage change rate of the battery in the preset sampling time period is used to determine whether the conditions for obtaining the open circuit voltage are met. If the sampling voltage change rate is less than or equal to the preset value, the sampling voltage collected at the current moment is used as the open circuit voltage value, that is, the initial absolute charge and the current absolute capacity are updated according to the open circuit voltage value. If the sampling voltage change rate is greater than the preset value, the conditions for obtaining the open circuit voltage are not met, and the historical effective open circuit voltage value is used as the open circuit voltage value corresponding to the current moment, that is, the initial absolute charge is not updated, and the current absolute capacity is calculated by the integrated power of the battery and the historical initial absolute charge, and the battery power SOC is calculated according to the current absolute capacity.

[0119] The above-mentioned embodiments can realize compensation for the sampling current, replenish the leakage electricity, solve the leakage current problem of the integrated electricity, improve the calculation accuracy of the integrated electricity, realize compensation for the sampling voltage, reduce the calculation error of the voltage change rate to obtain an accurate open circuit voltage value, and can also compensate for the open circuit voltage value to obtain a more accurate open circuit voltage value to obtain a more accurate battery power.

[0120] Based on the same concept as the above-mentioned battery power calculation method, this embodiment also provides a battery power calculation device. Figure 4 The structure diagram of the battery power calculation device provided in the embodiment of the present application is shown as follows: Figure 4 As shown, the embodiment of the present application provides a battery power calculation device 400 including:

[0121] The sampling module 401 is used to collect the sampling current and sampling voltage corresponding to the battery at different times when the power-consuming device where the battery is located is in a low power consumption mode;

[0122] The compensation module 402 is used to compensate the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculate the integrated power of the battery at the current moment according to the compensated sampling current at the current moment;

[0123] An open circuit voltage determination module 403, configured to calculate a voltage change rate of the battery within a preset sampling period according to the sampled voltage, and determine an open circuit voltage value corresponding to a current moment according to the sampled voltage change rate;

[0124] The power calculation module 404 is used to calculate the power of the battery at the current moment according to the integrated power of the battery at the current moment and the open circuit voltage value.

[0125] In one example, the compensation module 402 is used to calculate the sum of the sampled current at the current moment and the preset number of historical sampled currents; and take the average value of the sum as the compensated sampled current at the current moment.

[0126] In one example, the compensation module 402 is also used to obtain the real-time current of the battery, and determine that the electrical device where the battery is located has switched from the low power mode to the normal mode based on the real-time current being greater than or equal to a preset value; and compensate the integrated power of the battery at the current moment based on the difference between the sampled current of the battery at the first moment and the sampled current of the battery at the second moment; wherein the sampled current at the first moment is the sampled current collected for the last time in the low power mode, and the sampled current at the second moment is the sampled current collected for the first time after the electrical device switches from the low power mode to the normal mode.

[0127] In one example, the preset sampling time period includes at least one sampling cycle, and the open circuit voltage determination module 403 is used to use linear interpolation to predict the voltage value at the time when the voltage is not collected in each sampling cycle, so as to obtain the voltage value at each moment in the preset sampling time; according to the voltage value at each moment in the preset sampling time, a first sum value and a second sum value in the sampling time are calculated, wherein the first sum value is the sum of the voltage at each moment in the first half of the preset sampling time, and the second sum value is the sum of the voltage at each moment in the second half of the preset sampling time; according to the difference between the second sum value and the first sum value, and the number of sampling cycles of the preset sampling time, the voltage change rate of the battery in the preset sampling time is obtained.

[0128] In one example, the open circuit voltage determination module 403 is used to use the sampled voltage collected at the current moment as the open circuit voltage value when the sampled voltage change rate is less than or equal to the preset value; and to use the historical valid open circuit voltage value as the open circuit voltage value corresponding to the current moment when the sampled voltage change rate is greater than the preset value.

[0129] In one example, the power calculation module 404 is used to obtain the initial absolute charge based on the open circuit voltage value corresponding to the current moment and a preset battery model, wherein the preset battery model includes the correspondence between the open circuit voltage value and the initial absolute charge; calculate the first current absolute charge of the battery based on the initial absolute charge and the integrated charge of the battery; and obtain the charge of the battery at the current moment based on the first current absolute charge of the battery.

[0130] In one example, the power calculation module 404 is used to calculate the first output impedance corresponding to the battery under the first current absolute power and battery temperature; obtain the open circuit voltage corresponding to the first output impedance as the first open circuit voltage based on the correspondence between the output impedance and the open circuit voltage of the battery; calculate the second current absolute power of the battery based on the first open circuit voltage and the battery temperature; perform weighted calculation on the first current absolute power and the second current absolute power to obtain the target absolute power; and calculate the power of the battery at the current moment based on the target absolute power.

[0131] In one example, the power calculation module 404 is used to calculate the second output impedance corresponding to the battery under the second current absolute power and battery temperature; obtain the open circuit voltage corresponding to the second output impedance as the second open circuit voltage based on the correspondence between the output impedance and the open circuit voltage of the battery; update the initial absolute charge of the battery based on the second open circuit voltage and the battery temperature; calculate the power of the battery at the current moment based on the target absolute power and the updated initial absolute charge.

[0132] The battery power calculation device provided in this embodiment is based on the same concept as the above-mentioned battery power calculation method, so it can at least achieve the above-mentioned beneficial effects, and any of the above-mentioned implementation methods can be applied to the battery power calculation device provided in this embodiment, which will not be repeated here.

[0133] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0134] The present application also provides an electronic device corresponding to the battery power calculation method provided in the above embodiment to execute the above battery power calculation method. Figure 5 , Figure 5 Schematic diagram of an electronic device provided by some embodiments of the present application is shown. Figure 5 As shown, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, and the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and the processor 200 executes the method provided in any of the aforementioned embodiments of the present application when running the computer program.

[0135] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0136] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs, and the processor 200 executes the program after receiving an execution instruction. The battery power calculation method disclosed in any implementation of the embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.

[0137] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 200. The above processor 200 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the above method in combination with its hardware.

[0138] The electronic device provided in the embodiment of the present application and the battery power calculation method provided in the embodiment of the present application are based on the same application concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0139] The present application also provides a computer-readable storage medium corresponding to the battery power calculation method provided in the above embodiment. Figure 6 , which shows a computer-readable storage medium 30, which may be a CD, on which a program product is stored, which may be an operating system, application software, game, tool software, etc. The program product includes a computer program, which usually exists in source code or compiled binary form. When the computer program is run by the processor, it will execute the battery power calculation method provided by any of the aforementioned embodiments.

[0140] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0141] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the battery power calculation method provided in the embodiments of the present application are based on the same application concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0142] It should be noted that:

[0143] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application is described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A method for calculating battery power, characterized in that: include: When the power-consuming device where the battery is located is in a low power consumption mode, collecting the sampled current and sampled voltage corresponding to the battery at different times; Compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculating the integrated power of the battery at the current moment according to the compensated sampling current at the current moment; Calculating the voltage change rate of the battery within a preset sampling time period according to the sampled voltage, and determining the open circuit voltage value corresponding to the current moment according to the sampled voltage change rate; Calculating the power of the battery at the current moment according to the integrated power of the battery at the current moment and the open circuit voltage value; The method of calculating the power of the battery at the current moment according to the integrated power of the battery at the current moment and the open circuit voltage value comprises: obtaining an initial absolute charge according to the open circuit voltage value corresponding to the current moment and a preset battery model, wherein the preset battery model comprises a corresponding relationship between the open circuit voltage value and the initial absolute charge; calculating a first current absolute charge of the battery according to the initial absolute charge and the integrated power of the battery; and obtaining the power of the battery at the current moment according to the first current absolute charge of the battery; The method also includes calculating a first output impedance corresponding to the battery under the first current absolute power and battery temperature; obtaining an open circuit voltage corresponding to the first output impedance as a first open circuit voltage based on a correspondence between the output impedance and the open circuit voltage of the battery; calculating a second current absolute power of the battery based on the first open circuit voltage and the battery temperature; performing weighted calculation on the first current absolute power and the second current absolute power to obtain a target absolute power; and calculating the power of the battery at a current moment based on the target absolute power.

2. The battery power calculation method according to claim 1, characterized in that: Compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment includes: Calculating the current sampling current and the sum of the preset number of historical sampling currents; The average value of the sum is used as the compensated sampling current at the current moment.

3. The battery power calculation method according to claim 1 or 2, characterized in that: The method further comprises: Acquire the real-time current of the battery, and determine that the power-consuming device where the battery is located is switched from the low-power consumption mode to the normal mode according to the real-time current being greater than or equal to a preset value; Compensating the integrated electric quantity of the battery at the current moment according to the difference between the sampled current of the battery at the first moment and the sampled current of the battery at the second moment; The sampled current at the first moment is the sampled current collected for the last time in the low power mode, and the sampled current at the second moment is the sampled current collected for the first time after the electrical device switches from the low power mode to the normal mode.

4. The battery power calculation method according to claim 1, characterized in that: The preset sampling time period includes at least one sampling cycle, and calculating the voltage change rate of the battery within the preset sampling time period according to the sampled voltage includes: The voltage value at the moment when the voltage is not collected in each sampling period is predicted by using a linear interpolation method to obtain the voltage value at each moment in the preset sampling time; According to the voltage value at each moment within the preset sampling time, a first sum value and a second sum value within the sampling time are calculated, wherein the first sum value is the sum of the voltage at each moment within the first half of the preset sampling time, and the second sum value is the sum of the voltage at each moment within the second half of the preset sampling time; The voltage change rate of the battery within the preset sampling time is obtained according to the difference between the second sum value and the first sum value and the number of sampling cycles of the preset sampling time.

5. The battery power calculation method according to claim 1 or 4, characterized in that: Determining the open circuit voltage value corresponding to the current moment according to the sampled voltage change rate includes: When the sampling voltage change rate is less than or equal to a preset value, the sampling voltage collected at the current moment is used as the open circuit voltage value; When the sampling voltage change rate is greater than the preset value, the historical effective open-circuit voltage value is used as the open-circuit voltage value corresponding to the current moment.

6. The battery power calculation method according to claim 1, characterized in that: The calculating the power of the battery at the current moment according to the target absolute power includes: Calculating a second output impedance corresponding to the battery under the second current absolute power and battery temperature; According to the corresponding relationship between the output impedance and the open circuit voltage of the battery, an open circuit voltage corresponding to the second output impedance is obtained as a second open circuit voltage; updating the initial absolute charge of the battery according to the second open circuit voltage and the battery temperature; The power of the battery at the current moment is calculated according to the target absolute power and the updated initial absolute charge.

7. A battery capacity calculation device, characterized in that: The device comprises: A sampling module, used for collecting sampling current and sampling voltage corresponding to the battery at different times when the power-consuming device where the battery is located is in a low power consumption mode; A compensation module, used to compensate the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculate the integrated power of the battery at the current moment according to the compensated sampling current at the current moment; An open circuit voltage determination module, used to calculate the voltage change rate of the battery within a preset sampling time period according to the sampled voltage, and determine the open circuit voltage value corresponding to the current moment according to the sampled voltage change rate; A power calculation module, used to calculate the power of the battery at the current moment according to the integrated power of the battery at the current moment and the open circuit voltage value; obtain the initial absolute charge according to the open circuit voltage value corresponding to the current moment and a preset battery model, wherein the preset battery model includes the corresponding relationship between the open circuit voltage value and the initial absolute charge; calculate the first current absolute power of the battery according to the initial absolute charge and the integrated power of the battery; and obtain the power of the battery at the current moment according to the first current absolute power of the battery; The power calculation module is also used to calculate the first output impedance corresponding to the battery under the first current absolute power and battery temperature; obtain the open circuit voltage corresponding to the first output impedance as the first open circuit voltage according to the corresponding relationship between the output impedance and the open circuit voltage of the battery; calculate the second current absolute power of the battery according to the first open circuit voltage and the battery temperature; perform weighted calculation on the first current absolute power and the second current absolute power to obtain a target absolute power; and calculate the power of the battery at the current moment according to the target absolute power.

8. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Battery SOC detection method and device

    CN106154176A

  • Online calibration method for SOC of all-vanadium redox flow battery based on capacity correction

    CN108680867A

  • SOC dynamic compensation method and electronic system

    CN112034366A

  • Method and device for estimating SOC of battery, storage medium and vehicle

    CN112415410A

  • Method and device for estimating state of charge of battery, and equipment

    CN112986842A