Battery capacity calculation method and battery capacity calculation device

By detecting battery temperature and setting the temperature variable as a linear or exponential function, the problem of inaccurate battery capacity estimation is solved, enabling fast and accurate battery capacity calculation and supporting the design of a temperature compensation mechanism.

CN116068415BActive Publication Date: 2026-07-03CELXPERT ENERGY CORP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CELXPERT ENERGY CORP
Filing Date
2021-11-02
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In existing technologies, battery capacity compensation mechanisms fail to effectively consider temperature factors, leading to inaccurate estimations of the actual battery capacity.

Method used

By detecting battery temperature and determining temperature inflection points, setting the temperature variable as a linear or exponential function, and combining ideal capacity, reserved capacity, and retained capacity, the actual capacity of the battery is calculated, and a temperature compensation mechanism is designed.

Benefits of technology

It enables rapid and accurate estimation of the actual battery capacity in any environment, ensuring that the remaining capacity displayed on the terminal device is consistent with the actual capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116068415B_ABST
    Figure CN116068415B_ABST
Patent Text Reader

Abstract

This application provides a battery capacity calculation device and a battery capacity calculation method. The battery capacity calculation method includes the following steps: Determining the relationship between the battery temperature, a first temperature inflection point, and a second temperature inflection point. When the battery temperature is less than the first temperature inflection point and greater than or equal to the second temperature inflection point, setting a first temperature variable and the battery temperature as the strain coefficient and independent variable of a first linear function, respectively. When the battery temperature is less than the second temperature inflection point, setting the first temperature variable and the battery temperature as the strain coefficient and independent variable of an exponential function, respectively. Finally, calculating the actual capacity based at least on the ideal capacity and the first temperature variable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to a battery capacity calculation method and a battery capacity calculation device, and particularly to a battery capacity calculation method and a battery capacity calculation device that takes temperature factors into account. Background Technology

[0002] As the demand for battery applications continues to increase, greater emphasis is being placed on battery capacity. Since battery capacity is significantly affected by temperature, a battery capacity compensation mechanism must be designed based on this factor. However, currently, battery capacity compensation mechanisms specifically designed for temperature factors are not widely available on the market. Taking a current market-based battery capacity compensation mechanism for temperature factors as an example, it first calculates the battery's internal resistance based on the battery temperature, and then uses this internal resistance to calculate the capacity difference in order to perform battery capacity compensation. Summary of the Invention

[0003] The technical problem to be solved by this application is to provide a battery capacity calculation method to address the shortcomings of the prior art, including: detecting the battery temperature; determining the relationship between the battery temperature, a first temperature inflection point of the battery, and a second temperature inflection point of the battery; when the battery temperature is less than the first temperature inflection point and greater than or equal to the second temperature inflection point, setting a first temperature variable and the battery temperature as strain coefficient and independent variable of a first linear function, respectively; when the battery temperature is less than the second temperature inflection point, setting the first temperature variable and the battery temperature as strain coefficient and independent variable of an exponential function, respectively; and calculating the actual capacity of the battery based at least on the ideal capacity of the battery and the first temperature variable.

[0004] Optionally, after setting the first temperature variable, it is determined whether the battery temperature is greater than or equal to the first temperature inflection point. When it is confirmed that the battery temperature is greater than or equal to the first temperature inflection point, a second temperature variable and a time difference are set as a strain coefficient and an independent variable, which are respectively a second linear function; and the actual capacity is calculated based on the ideal capacity, the first temperature variable and the second temperature variable.

[0005] Optionally, the actual capacity is calculated based on the following formula: FCC = (Qmax - Precap - Rsvdcap) - (Qmax - Precap - Rsvdcap) * (100% - LTempf1) - (Qmax - Precap - Rsvscap) * (100% - LTempf2), where FCC is the actual capacity, Qmax is the ideal capacity, Precap is a reserved capacity of the battery, Rsvdcap is a reserved capacity of the battery, LTempf1 is the first temperature variable, and LTempf2 is the second temperature variable.

[0006] Optionally, the first linear function is f(t) = a*t + b, where f(t) is the first temperature variable, t is the battery temperature, and a and b are constants.

[0007] Optionally, the exponential function is f(t) = a*exp(b*t+c)+d, where f(t) is the first temperature variable, t is the battery temperature, and a, b, c, and d are constants.

[0008] Optionally, the second linear function is f(t) = a*t + b, where f(t) is the second temperature variable, t is the time difference, and a and b are constants.

[0009] Optionally, the time difference is the difference between a first time point corresponding to the battery temperature and a second time point corresponding to the battery temperature reaching the first temperature inflection point.

[0010] This application also discloses a battery capacity calculation device, comprising: a temperature detector for detecting the battery temperature of a battery; and a processor electrically connected to the temperature detector to obtain the battery temperature; wherein the processor is used to execute a battery capacity calculation method, the battery capacity calculation method comprising: determining the magnitude relationship between the battery temperature, a first temperature inflection point of the battery, and a second temperature inflection point of the battery; when the battery temperature is less than the first temperature inflection point and greater than or equal to the second temperature inflection point, setting a first temperature variable and the battery temperature as a strain coefficient and an independent variable, respectively, which are a first linear function; when the battery temperature is less than the second temperature inflection point, setting the first temperature variable and the battery temperature as a strain coefficient and an independent variable, respectively, which are an exponential function; and calculating an actual capacity of the battery based at least on an ideal capacity of the battery and the first temperature variable.

[0011] This application also discloses a method for calculating battery capacity, including: detecting the temperature of a battery; setting a temperature variable and the battery temperature as an exponential function of a strain coefficient and an independent variable, respectively; and calculating an actual capacity of the battery based on an ideal capacity of the battery and the temperature variable.

[0012] Optionally, the actual capacity is calculated according to the formula: FCC = Qmax * Tempf - Precap - RsvdCap, where FCC is the actual capacity, Qmax is the ideal capacity, LTempf is the temperature variable, Precap is a reserved capacity of the battery, and Rsvdcap is a reserved capacity of the battery.

[0013] Optionally, the exponential function is f(t) = a*exp(b*t+c)+d, where f(t) is the temperature variable, t is the battery temperature, and a, b, c, and d are constants.

[0014] This application also discloses a battery capacity calculation device, comprising: a temperature detector for detecting the battery temperature of a battery; and a processor electrically connected to the temperature detector to obtain the battery temperature; wherein the processor is used to execute a battery capacity calculation method, the battery capacity calculation method comprising: setting a temperature variable and the battery temperature as an exponential function of a strain coefficient and an independent variable, respectively; and calculating an actual capacity of the battery based on an ideal capacity of the battery and the temperature variable.

[0015] One of the advantages of this application is that, through the battery capacity calculation device and method of this application, the actual capacity of the battery can be quickly and accurately estimated regardless of the environment in which the battery is located. In this way, a temperature compensation mechanism can be designed based on the calculated actual capacity so that the remaining capacity displayed by the terminal device containing the battery matches the actual usable capacity of the battery.

[0016] To gain a better understanding of the features and technical content of this application, please refer to the following detailed description and drawings. However, the drawings provided are for reference and illustration only and are not intended to limit this application. Attached Figure Description

[0017] Figure 1 This is a functional block diagram of the battery capacity calculation device according to the first embodiment of this application.

[0018] Figures 2A-2C This is a flowchart of the battery capacity calculation method according to the first embodiment of this application.

[0019] Figure 3 This is a graph showing the relationship between the battery temperature and battery capacity of the first battery.

[0020] Figure 4 This is a graph showing the relationship between the battery temperature and battery capacity of the second battery.

[0021] Figure 5 for Figure 3 The graph shows the relationship between battery capacity and battery discharge time after the battery temperature of the first battery reaches the first temperature inflection point.

[0022] Figure 6 This is a flowchart of the battery capacity calculation method according to the second embodiment of this application. Detailed Implementation

[0023] The following specific embodiments illustrate the implementation of the "battery capacity calculation method and battery capacity calculation device" provided in this application. Those skilled in the art can understand the advantages and effects of this application from the content provided in this specification. This application can be implemented or applied through other different specific embodiments, and the details in this specification can also be modified and changed based on different viewpoints and applications without departing from the concept of this application. Furthermore, the accompanying drawings are for simple illustration only and are not depictions of actual dimensions, as stated in advance. The following embodiments will further describe the relevant technical content of this application in detail, but the content provided is not intended to limit the scope of protection of this application.

[0024] It should be understood that while terms such as "first," "second," and "third" may be used in this document to describe various components or signals, these components or signals should not be limited by these terms. These terms are primarily used to distinguish one component from another, or one signal from another. Furthermore, the term "or" as used herein should be interpreted to include, as appropriate, any combination of one or more of the related listed items.

[0025] To quickly and accurately estimate the impact of temperature effects on the actual capacity of a battery, this application provides a battery capacity calculation method and a battery capacity calculation device for performing the calculation. First, it is determined whether the battery temperature has reached the battery's temperature inflection point. When the battery temperature reaches the temperature inflection point, the battery can fully release its stored capacity (also known as electrical charge). Conversely, when the battery temperature is below the temperature inflection point, the battery cannot fully release its stored capacity. Through the battery capacity calculation method of this application, the percentage of capacity that the battery cannot release due to temperature effects can be accurately and quickly calculated. This allows for the design of a temperature compensation mechanism for the battery. The embodiments regarding the ideal battery capacity and actual battery capacity mentioned later use the battery discharge process as an example. Therefore, the ideal battery capacity mentioned is the battery's ideally releaseable capacity, while the actual battery capacity is the capacity that the battery can actually release due to the influence of temperature effects.

[0026] [First Embodiment]

[0027] Figure 1 This is a functional block diagram of a battery capacity calculation device according to an embodiment of this application. Figure 1As shown, the battery capacity calculation device A includes a temperature sensor 1, a processor 2, and a memory 3. The temperature sensor 1 is electrically connected to the battery B and the processor 2, while the memory 3 is electrically connected to the processor 2. The temperature sensor 1 continuously monitors the battery temperature of the battery B, even when the battery B is discharging. The memory 3 stores the battery capacity calculation method. Each battery temperature detected by the temperature sensor 1 is stored in the memory 3 and updated regularly. The processor 2 executes the battery capacity calculation method based on the battery temperature detected by the temperature sensor 1 to calculate the actual capacity of the battery B. The details of how the battery capacity calculation method is executed will be illustrated in Figure 2.

[0028] Figures 2A-2C This is a flowchart of the battery capacity calculation method according to the first embodiment of this application. Figures 2A-2C The battery capacity calculation method can be derived from... Figure 1 The battery capacity calculation is performed by a battery capacity calculation device A, but is not limited to this. In this embodiment, an example is given where the battery has two temperature inflection points. Figure 2A As shown, regarding step S201, the temperature detector 1 obtains the initial value of the battery temperature. Regarding step S203, the processor 2 determines the relationship between the initial value of the battery temperature, the first temperature inflection point of the battery, and the second temperature inflection point of the battery, wherein the first temperature inflection point is greater than the second temperature inflection point.

[0029] When processor 2 confirms that the initial value of the battery temperature is greater than or equal to the first temperature inflection point of the battery, it executes step S205. When processor 2 confirms that the initial value of the battery temperature is less than the first temperature inflection point but greater than or equal to the second temperature inflection point of the battery, it executes step S207. When processor 2 confirms that the initial value of the battery temperature is less than the second temperature inflection point, it executes step S209.

[0030] Regarding step S205, processor 2 calculates the actual capacity of the battery based on the battery's ideal capacity, the battery's reserved capacity, and the battery's retained capacity. Specifically, the battery's reserved capacity depends on the battery's charging voltage, while the battery's retained capacity depends on the undervoltage protection (UVP) voltage point, the product application type, or usage requirements. The actual capacity of the battery = ideal capacity - reserved capacity - retained capacity.

[0031] Regarding step S207, processor 2 sets the initial value of the battery temperature and the first temperature variable as the independent variable and strain number of the first linear function, respectively, and calculates the first temperature variable. For example, f1(t1) = a1*t1 + b1 is a linear function, t1 is the initial value of the battery temperature, f(t1) is the first temperature variable, and a1 and b1 are constants related to the battery cell material.

[0032] Regarding step S209, processor 2 sets the initial value of the battery temperature and the first temperature variable as the independent variable and strain number of an exponential function, respectively, and calculates the first temperature variable. For example, f2(t)=a2*(exp(b2*t2+c2))+d2 is an exponential function, t2 is the initial value of the battery temperature, f2(t2) is the first temperature variable, and a2, b2, c2, and d2 are constants and are related to the battery cell material.

[0033] After steps S207 and S209, step S211 is executed. In step S211, processor 2 calculates the actual capacity of the battery based on the ideal capacity, the reserved capacity, the stored capacity, and the first temperature variable, wherein memory 3 stores the formula for calculating the actual capacity of the battery:

[0034] FCC1=(Qmax-Precap-Rsvdcap)-(Qmax-Precap-Rsvdcap)*(100%-LTempf1),

[0035] Where FCC1 is the actual capacity of the battery, Qmax is the ideal capacity of the battery, Precap is the reserved capacity of the battery, Rsvdcap is the reserved capacity of the battery, and LTempf1 is the first temperature variable.

[0036] like Figure 2B As shown, after step S211, step S213 is executed. In step S213, temperature detector 1 detects the battery temperature. After step S213, step S215 is executed. In step S215, processor 2 determines the relationship between the battery temperature, the first temperature inflection point, and the second temperature inflection point. When processor 2 confirms that the battery temperature is greater than or equal to the first temperature inflection point, step S217 is executed. When processor 2 confirms that the battery temperature is less than the first temperature inflection point but greater than or equal to the second temperature inflection point, step S219 is executed. When processor 2 confirms that the battery temperature is less than the second temperature inflection point, step S221 is executed.

[0037] Regarding step S217, processor 2 obtains the first time point corresponding to the battery temperature reaching the first temperature inflection point and the second time point corresponding to the current battery temperature, and calculates the time difference between the second time point and the first time point.

[0038] Regarding step S219, processor 2 sets the battery temperature and the first temperature variable as the independent variable and strain coefficient of the first linear function, respectively, and calculates the first temperature variable. For example, f1(t1) = a1*t1 + b1 is a linear function, t1 is the battery temperature, and f(t1) is the first temperature variable.

[0039] Regarding step S221, processor 2 sets the battery temperature and the first temperature variable to be the independent variable and strain number of an exponential function, respectively, and calculates the first temperature variable. For example, f2(t)=a2*(exp(b2*t2+c2))+d2 is an exponential function, t2 is the battery temperature 2, and f2(t2) is the first temperature variable.

[0040] After step S217, step S223 is executed. Regarding step S223, processor 2 sets the time difference and the second temperature variable to be the independent variable and strain number of the second linear function, respectively. For example, f3(t3) = a3*t3 + b3 is the second linear function, t3 is the time difference, f3(t3) is the second temperature variable, and a3 and b3 are constants related to the battery cell material.

[0041] After step S223, step S225 is executed. In step S225, processor 2 calculates the actual capacity of the battery based on the ideal capacity, the reserved capacity, the stored capacity, the first temperature variable, and the second temperature variable. Memory 3 stores the formula for calculating the actual capacity of the battery:

[0042] FCC2 = (Qmax - Precap - Rsvdcap) - (Qmax - Precap - Rsvdcap) * (100% - LTempf1) - (Qmax - Precap - Rsvdcap) * (100% - LTempf2), where FCC2 is the actual capacity of the battery, Qmax is the ideal capacity of the battery, Precap is the reserved capacity of the battery, Rsvdcap is the reserved capacity of the battery, LTempf1 is the first temperature variable, and LTempf2 is the second temperature variable. After step S225, return to step S213.

[0043] After steps S219 and S221, step S227 is executed. Regarding step S227, processor 2 calculates the actual capacity of the battery based on the ideal capacity, the reserved capacity, the retained capacity, and the first temperature variable. The actual capacity is calculated using the aforementioned formula:

[0044] FCC1=(Qmax-Precap-Rsvdcap)-(Qmax-Precap-Rsvdcap)*(100%-LTempf1).

[0045] After step S227, return to step S213.

[0046] like Figure 2CAs shown, after step S205, step S229 follows. In step S229, temperature detector 1 detects the battery temperature, followed by step S231. In step S231, processor 2 determines the relationship between the battery temperature, the first temperature inflection point, and the second temperature inflection point. When processor 2 confirms that the battery temperature is greater than or equal to the first temperature inflection point, it returns to step S205. When processor 2 confirms that the battery temperature is less than the first temperature inflection point but greater than or equal to the second temperature inflection point, it executes step S233. When processor 2 confirms that the battery temperature is less than the second temperature inflection point, it executes step S235.

[0047] In step S233, processor 2 sets the battery temperature and the first temperature variable to be the independent variable and strain number of a first linear function, respectively, and calculates the first temperature variable. In step S235, processor 2 sets the battery temperature and the first temperature variable to be the independent variable and strain number of an exponential function, respectively, and calculates the first temperature variable. After steps S233 and S235, step S237 follows. In step S237, processor 2 calculates the actual battery capacity based on the ideal battery capacity, the reserved battery capacity, the retained battery capacity, and the first temperature variable. After step S237, the process returns to step S229.

[0048] against Figures 2A-2C The proposed battery capacity calculation method, for example, addresses situations where a battery-equipped terminal device is affected by ambient temperature, preventing it from fully releasing its stored capacity. Through... Figures 2A-2C The proposed battery capacity calculation method can quickly estimate the capacity that a battery cannot release normally due to environmental factors. When calculating the capacity that a battery cannot release normally, both the first discharge stage, where the battery temperature is still below the temperature inflection point, and the second discharge stage, where the battery temperature has reached the temperature inflection point, must be considered.

[0049] During the first discharge phase, if the battery temperature is between the first and second temperature inflection points, the actual battery capacity follows a linear function. If the battery temperature is below the second inflection point temperature, the actual battery capacity follows an exponential function. The actual capacity of the battery during the first discharge phase is... Figures 2A-2C The first temperature variable mentioned.

[0050] After the first discharge stage and entering the second discharge stage, the battery temperature has reached the first temperature inflection point. However, the battery cell materials have not yet fully recovered, preventing the battery from properly releasing its stored capacity. In the second discharge stage, the actual battery capacity follows a linear function, and the actual capacity of the battery in the second discharge stage is... Figures 2A-2C The second temperature variable mentioned.

[0051] Figure 3This is a graph showing the relationship between the battery temperature and battery capacity of the first battery. (Example:) Figure 3 As shown, the first battery has only one temperature inflection point, which is approximately 17 degrees Celsius. When the battery temperature of the first battery is greater than or equal to 17 degrees Celsius, the actual capacity of the first battery is approximately 100%, meaning that the first battery can fully release its stored capacity. When the battery temperature of the first battery is less than 17 degrees Celsius, the actual battery capacity follows an exponential function.

[0052] Figure 4 This is a graph showing the relationship between the battery temperature and battery capacity of the second battery. (Example:) Figure 4 As shown, Figure 4 The cell material of the second battery is different Figure 3 The first battery uses the same cell material, so the second battery has two temperature inflection points, approximately 17 degrees Celsius and -8 degrees Celsius. When the battery temperature of the second battery is greater than or equal to 17 degrees Celsius, the actual capacity of the second battery is approximately 100%, meaning that the second battery can fully release its stored capacity. When the battery temperature of the second battery is less than 17 degrees Celsius but greater than or equal to -8 degrees Celsius, the actual capacity of the second battery follows a linear function. When the battery temperature of the second battery is less than -8 degrees Celsius, the actual capacity of the second battery follows an exponential function.

[0053] The following is Figure 3 Taking the first battery as an example, for Figures 2A-2C The accuracy of the battery capacity calculation method was verified.

[0054] like Figure 3 As shown, the temperature inflection point of the first battery is approximately 17 degrees Celsius, while Table 1 below shows... Figure 3 The experimental data table for the first battery. For example, when C-Rate = 0.5 and the initial discharge temperature is 12 degrees Celsius, approximately 6.5% of the capacity cannot be released.

[0055]

[0056]

[0057] (Table 1)

[0058] Since the initial discharge temperature of the first battery is lower than the temperature inflection point of the first battery, the first temperature variable conforms to an exponential function: f2(t2) = -exp(-0.1*t2-2) + 1. When t2 = 12, f2(12) is approximately 0.96, meaning that the first temperature variable (LTempf1) is approximately 96%.

[0059] Figure 5 for Figure 3The graph shows the relationship between battery capacity and time after the first battery temperature reaches the temperature inflection point. When the battery temperature of the first battery is greater than or equal to the temperature inflection point, the actual capacity of the first battery conforms to a linear function. At time T0, although the battery temperature of the first battery has reached the temperature inflection point, the first battery can release approximately 69.3% of its capacity because the cell material of the first battery has not fully recovered. At time T1, the first battery can release approximately 86.7% of its capacity. Based on the actual battery capacity corresponding to time T0 and time T1, the actual capacity of the first battery at this stage can be deduced to conform to a second linear function: f3(t3) = 0.0000412*t3 + 0.693, where t3 is the time difference between the current battery temperature and time T0, and f3(t3) is the actual capacity at this stage, which is also the second temperature variable. At time T2, the battery stops discharging. Substituting the time difference between time T2 and time T0 into t3, the second temperature variable is calculated to be approximately 97.2%.

[0060] Finally, substituting the first and second temperature variables into the calculation formula: FCC2 = (Qmax - Precap - Rsvdcap) - (Qmax - Precap - Rsvdcap) * (100% - LTempf1) - (Qmax - Precap - Rsvdcap) * (100% - LTempf2), the percentage of battery capacity that cannot be normally released due to temperature effects is calculated as (100% - 96%) + (100% - 97.2%) = 6.8%. Compared to the 6.5% shown in Table 1 above, the error is approximately 0.3%. Therefore, it indicates... Figures 2A-2C The accuracy of the battery capacity calculation method meets the needs of actual use.

[0061] Table 2 below shows the experimental data for the third battery.

[0062]

[0063]

[0064] (Table 2)

[0065] Based on the data in Table 2, it can be deduced that the battery temperature and actual capacity of the third battery conform to an exponential function. Therefore, this application proposes a battery capacity calculation method according to a second embodiment.

[0066] [Second Embodiment]

[0067] Figure 6 This is a flowchart of the battery capacity calculation method according to the second embodiment of this application. Figure 6 The battery capacity calculation method can be derived from... Figure 1The battery capacity calculation device A can be used to perform this calculation, but it is not limited to it. For example... Figure 6 As shown, in step S601, the battery temperature is detected by temperature sensor 1. In step S603, processor 2 sets the temperature variable and battery temperature as the strain coefficient and independent variable of an exponential function, respectively, and calculates the temperature variable. For example, the exponential function is: f(t) = a*exp(b*t) + c, where t is the battery temperature, f(t) is the temperature variable, and a, b, and c are constants related to the battery cell material.

[0068] Regarding step S605, processor 2 calculates the actual battery capacity based on the ideal capacity, the battery's reserved capacity, the battery's retained capacity, and the temperature variable. Memory 3 stores the formula for calculating the actual battery capacity FCC2: FCC2 = Qmax * Tempf - Precap - RsvdCap. FCC2 is the actual battery capacity, Qmax is the ideal battery capacity, LTempf is the temperature variable, Precap is the battery's reserved capacity, and Rsvdcap is the battery's retained capacity. Since the ideal capacity, the battery's reserved capacity, and the battery's retained capacity are all preset values, the calculated temperature variable can be substituted into the above calculation formula to calculate the actual battery capacity.

[0069] [Beneficial Effects of the Examples]

[0070] One of the advantages of this application is that, through the battery capacity calculation device and method provided in this application, the actual capacity of the battery can be quickly and accurately estimated regardless of the battery's environment. In this way, a temperature compensation mechanism can be designed for the battery based on the calculated actual capacity, ensuring that the remaining capacity displayed by the terminal device containing the battery matches the actual usable capacity.

[0071] The above-described content is merely a preferred embodiment of this application and is not intended to limit the scope of the patent application. Therefore, any equivalent technical changes made using the description and drawings of this application are included within the scope of the patent application.

Claims

1. A battery capacity calculation method characterized by, include: Detect the temperature of a battery; Determine the relationship between the battery temperature, a first temperature inflection point of the battery, and a second temperature inflection point of the battery; When the battery temperature is less than the first temperature inflection point and greater than or equal to the second temperature inflection point, a first temperature variable and the battery temperature are respectively set as a strain coefficient and an independent variable, which are both first linear functions. When the battery temperature is below the second temperature inflection point, the first temperature variable and the battery temperature are set as an exponential function of a strain coefficient and an independent variable, respectively; and The actual capacity of the battery is calculated based at least on an ideal capacity of the battery and the first temperature variable.

2. The battery capacity calculation method of claim 1, wherein, It further includes: after setting the first temperature variable, determining whether the battery temperature is greater than or equal to the first temperature inflection point; when it is confirmed that the battery temperature is greater than or equal to the first temperature inflection point, setting a second temperature variable and a time difference as a strain coefficient and an independent variable, which are respectively a second linear function; and calculating the actual capacity based on the ideal capacity, the first temperature variable and the second temperature variable.

3. The battery capacity calculation method according to claim 2, wherein The actual capacity is calculated using the formula: FCC=(Qmax-Precap-Rsvdcap)-(Qmax-Precap-Rsvdcap)*(100%-LTempf1)-(Qmax-Precap-Rsvscap)*(100%-LTempf2), where FCC is the actual capacity, Qmax is the ideal capacity, Precap is a reserved capacity of the battery, Rsvdcap is a reserved capacity of the battery, LTempf1 is the first temperature variable, and LTempf2 is the second temperature variable.

4. The battery capacity calculation method according to claim 1, characterized by, The first linear function is f(t) = a*t + b, where f(t) is the first temperature variable, t is the battery temperature, and a and b are constants.

5. The battery capacity calculation method of claim 1, wherein, The exponential function is f(t) = a*exp(b*t+c)+d, where f(t) is the first temperature variable, t is the battery temperature, and a, b, c and d are constants.

6. The battery capacity calculation method according to claim 2, characterized by, The second linear function is f(t) = a*t + b, where f(t) is the second temperature variable, t is the time difference, and a and b are constants.

7. The battery capacity calculation method of claim 2, wherein, The time difference is the difference between a first time point corresponding to the battery temperature and a second time point corresponding to the battery temperature reaching the first temperature inflection point.

8. A battery capacity calculating apparatus characterized by comprising: include: A temperature sensor for detecting the temperature of a battery. as well as A processor is electrically connected to the temperature sensor to obtain the battery temperature; The processor is used to execute a battery capacity calculation method, which includes: Determine the relationship between the battery temperature, a first temperature inflection point of the battery, and a second temperature inflection point of the battery; When the battery temperature is less than the first temperature inflection point and greater than or equal to the second temperature inflection point, a first temperature variable and the battery temperature are respectively set as a strain coefficient and an independent variable, which are both first linear functions. when the battery temperature is less than the second temperature turning point, setting the first temperature variable and the battery temperature as an argument and an independent variable of an exponential function, respectively; and calculating an actual capacity of the battery according to at least an ideal capacity of the battery and the first temperature variable.