Electric quantity calculation method, electric quantity calculation device, electronic device, and storage medium
By acquiring the battery's current discharge current, temperature, and operating voltage in the electronic device, determining the open-circuit voltage, and performing calibration, the problem of inaccurate power level caused by fuel gauge detection errors is solved, achieving accuracy and stability in power level display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2022-10-26
- Publication Date
- 2026-06-30
Smart Images

Figure CN115616405B_ABST
Abstract
Description
Technical Field
[0001] This application relates to consumer electronic products, and more specifically, to a power calculation method, a power calculation device, an electronic device, and a computer-readable storage medium. Background Technology
[0002] In related technologies, due to the influence of manufacturing processes, the battery operating parameters (e.g., current value) detected by the fuel gauge in electronic devices may contain errors. This leads to a deviation between the current value detected by the fuel gauge and the actual current value of the battery, resulting in errors when calculating the battery's charge level. Over time, these charge level errors accumulate during the use of electronic devices, causing inaccurate charge level readings, which may lead to sudden changes in charge level or abnormal shutdowns. Summary of the Invention
[0003] This application provides a power calculation method, a power calculation device, an electronic device, and a computer-readable storage medium.
[0004] The power calculation method of this application can be used to calculate the power of a battery. The power calculation method includes: obtaining the current discharge current, current temperature and current operating voltage of the battery; when the current discharge current is less than a preset current, determining the current open circuit voltage based on the current discharge current, the current temperature and the current operating voltage; and determining the current power based on the current temperature and the current open circuit voltage.
[0005] The power calculation device according to this application embodiment can be used to calculate the power of a battery. The power calculation device includes a first acquisition module, a first determination module, and a second determination module. The first acquisition module is used to acquire the current discharge current, current temperature, and current operating voltage of the battery. The first determination module is used to determine the current open-circuit voltage based on the current discharge current, current temperature, and current operating voltage when the current discharge current is less than a preset current. The second determination module is used to determine the current power level based on the current temperature and current open-circuit voltage.
[0006] The electronic device according to the embodiments of this application includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the steps of the power calculation method of any of the above embodiments.
[0007] The computer-readable storage medium of the present application embodiment stores a computer program thereon, which, when executed by a processor, implements the steps of the power calculation method of any of the above embodiments.
[0008] The power calculation method, power calculation device, electronic device, and computer-readable storage medium of the present application embodiments can determine the current open-circuit voltage based on the current discharge current, current temperature, and current operating voltage, thereby accurately determining the current power based on the current temperature and current open-circuit voltage.
[0009] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description
[0010] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein:
[0011] Figure 1 This is a flowchart illustrating the power calculation method according to certain embodiments of this application;
[0012] Figure 2 This is a schematic diagram of an energy calculation device according to certain embodiments of this application;
[0013] Figure 3 This is a schematic diagram of an electronic device according to certain embodiments of this application;
[0014] Figure 4 This is a flowchart illustrating the power calculation method according to certain embodiments of this application;
[0015] Figure 5 This is a schematic diagram of the second and third calibration correspondences in certain embodiments of this application;
[0016] Figures 6 to 9 This is a flowchart illustrating the power calculation method according to certain embodiments of this application;
[0017] Figure 10 This is a schematic diagram of an energy calculation device according to certain embodiments of this application;
[0018] Figure 11 This is a flowchart illustrating the power calculation method according to certain embodiments of this application. Detailed Implementation
[0019] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings. The same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0020] The following disclosure provides many different implementations or examples of different structures for implementing the embodiments of this application. To simplify the disclosure of the embodiments of this application, the components and arrangements of specific examples are described below. Of course, these are merely examples and are not intended to limit the scope of this application.
[0021] In related technologies, algorithms such as the charge accumulation method and the open-circuit voltage method can be used for energy estimation. The charge accumulation method involves measuring the main circuit current of the battery pack in real time and integrating it over time, with positive values for charging and negative values for discharging. During the discharging process, the initial energy is subtracted from the integrated result to obtain the current energy; during the charging process, the initial energy is added to the integrated result to obtain the current energy.
[0022] The open-circuit voltage method utilizes the clear and monotonic correspondence between the open-circuit voltage and the battery's charge capacity. By obtaining the accurate open-circuit voltage, the battery's charge capacity can be calculated. Therefore, the open-circuit voltage values at different temperatures and states of charge (SOC) are first measured offline and compiled into a table. Here, SOC represents the battery's charge capacity (i.e., remaining charge). After the battery system is installed in the vehicle, whenever a power supply interruption occurs, the table data can be retrieved, and the battery's state of charge can be determined based on the measured open-circuit voltage.
[0023] Due to manufacturing processes, the battery operating parameters (e.g., current value) detected by the fuel gauge in electronic devices may contain errors. This leads to a discrepancy between the current value detected by the fuel gauge and the actual current value of the battery, resulting in errors when calculating the battery's charge level. Over time, these charge level errors accumulate during the use of electronic devices, causing inaccurate charge level readings, which may result in fluctuating charge levels or abnormal shutdowns.
[0024] In related technologies, the remaining capacity of a battery in an electronic device can be estimated based on the battery's characteristic curve, namely the state-of-charge-open-circuit voltage (OCV) curve under extremely low current. Because the battery is almost in a steady state under extremely low current, the SOC-OCV curve under extremely low current can also be called the no-load SOC-OCV curve.
[0025] However, the triggering conditions for this method are quite stringent. During the operation of electronic devices, it is difficult to achieve the condition of extremely low current, making it impossible for the electronic devices to perform OCV calibration for a long time. As a result, the estimated remaining battery power has a large error, and the displayed battery power of the electronic devices has a large error.
[0026] To reduce the current requirement for OCV calibration, the battery's open-circuit voltage can be calculated based on the battery's operating voltage and corresponding current value under low current conditions. This calculated voltage can then be substituted into the SOC-OCV curve for OCV calibration, yielding the calibrated capacity. In this method, the battery's open-circuit voltage satisfies the formula: OCV = U + IR. Where U is the battery's operating voltage, I is the battery's average current over a period of time, and R is the battery's internal resistance under extremely low current conditions.
[0027] However, the battery's internal resistance varies under different currents, making the value of R inaccurate, leading to inaccurate calculations of the open-circuit voltage and consequently, inaccurate battery capacity readings. Furthermore, the value of I detected by the fuel gauge at low currents may have errors, resulting in inaccurate calculations of the open-circuit voltage and, consequently, inaccurate battery capacity readings with significant errors.
[0028] Please see Figure 1 The power calculation method of this application can be used to calculate the power of a battery. The power calculation method includes:
[0029] 01: Obtain the battery's current discharge current, current temperature, and current operating voltage;
[0030] 02: When the current discharge current is less than the preset current, determine the current open-circuit voltage based on the current discharge current, current temperature, and current operating voltage;
[0031] 03: Determine the current charge based on the current temperature and current open-circuit voltage.
[0032] Please see Figure 2 The power calculation device 100 of this application includes a first acquisition module 11, a first determination module 12, and a second determination module 13.
[0033] The power calculation method of this application can be implemented by the power calculation device 100 of this application. Step 01 can be implemented by the first acquisition module 11, step 02 by the first determination module 12, and step 03 by the second determination module 13. That is, the first acquisition module 11 can be used to acquire the current discharge current, current temperature, and current operating voltage of the battery. The first determination module 12 can be used to determine the current open-circuit voltage based on the current discharge current, current temperature, and current operating voltage when the current discharge current is less than a preset current. The second determination module 13 can be used to determine the current power level based on the current temperature and current open-circuit voltage.
[0034] In the power calculation method and power calculation device 100 of this application embodiment, the current open circuit voltage can be determined based on the current discharge current, the current temperature and the current operating voltage, so as to accurately determine the current power based on the current temperature and the current open circuit voltage.
[0035] Please see Figure 3 The power calculation device 100 can be applied to an electronic device 1000, which may include a battery. The power calculation device 100 is used to calculate the remaining power of the battery in the electronic device 1000. The electronic device 1000 may include smartphones, tablets, smartwatches, smart bracelets, etc., and is not specifically limited here. The electronic device 100 in this application is illustrated using a smartphone as an example, and should not be construed as a limitation of this application.
[0036] In this embodiment, when the discharge current is less than a preset current, the current battery level can be determined based on the current open-circuit voltage, thus increasing the frequency of current battery level acquisition. In one embodiment, a charge accumulation method can be used to obtain the estimated battery level, and the current battery level can be used to calibrate the estimated battery level. Therefore, increasing the frequency of current battery level acquisition allows for dynamic calibration of the estimated battery level during battery use, eliminating errors accumulated during the current integration process and improving the accuracy of the battery level display.
[0037] Specifically, the current discharge current can be detected by a current sensing element. If the current discharge current is less than the preset current, it is determined that the battery discharge has reached a stable condition. The current temperature can be detected by a temperature sensing element, and the current operating voltage can be detected by a voltage sensing element. The current open-circuit voltage is determined based on the current discharge current, current temperature, and current operating voltage. The preset current can be 1C (taking a 4000mA battery as an example, the preset current can be 4000mA).
[0038] In some implementations, step 02 (determining the current open-circuit voltage based on the current discharge current, current temperature, and current operating voltage when the current discharge current is less than a preset current) includes:
[0039] If the current discharge current is less than the preset current and the duration is greater than the preset duration, the current open-circuit voltage is determined based on the current discharge current, the current temperature, and the current operating voltage.
[0040] Please see Figure 2 In some embodiments, the first determining module 12 can be used to determine the current open-circuit voltage based on the current discharge current, the current temperature, and the current operating voltage when the current discharge current is less than the preset current and the duration is greater than the preset duration.
[0041] In this way, the accurate current open-circuit voltage can be obtained when the battery discharge reaches a stable condition.
[0042] Specifically, when the current discharge current is less than the preset current and the duration is greater than the preset duration, it is determined that the battery discharge has reached a stable condition. When the battery discharge reaches a stable condition, the voltage is also relatively stable. Therefore, the current discharge current and the current operating voltage can be accurately determined, and thus the current open-circuit voltage can be accurately determined. The preset duration can be six minutes, ten minutes, thirty minutes, etc., and is not specifically limited here.
[0043] Please see Figure 4 In some embodiments, step 02, determining the current open-circuit voltage based on the current discharge current, current temperature, and current operating voltage, includes:
[0044] 022: Determine the current open-circuit voltage based on the current discharge current, current temperature, current operating voltage, and the first calibration correspondence. The first calibration correspondence is the correspondence between the operating voltage and the open-circuit voltage under multiple different calibration temperatures and different calibration discharge currents.
[0045] Please see Figure 2 In some implementations, step 022 can be implemented by the first determining module 12. That is, the first determining module 12 can be used to determine the current open circuit voltage based on the current discharge current, current temperature, current operating voltage and the first calibration correspondence. The first calibration correspondence is the correspondence between the operating voltage and the open circuit voltage under multiple different calibration temperatures and different calibration discharge currents.
[0046] Thus, the current open-circuit voltage corresponding to the current operating voltage can be determined through the first calibration relationship.
[0047] Specifically, the first calibration correspondence can be a characteristic curve, lookup table, mapping table, etc., and is not specifically limited here. The first calibration relationship is the correspondence between the operating voltage and the open-circuit voltage under multiple different calibration temperatures and different calibration discharge currents. In one embodiment, under the same calibration temperature and the same calibration discharge current, the open-circuit voltage and the operating voltage can have a constant difference. For example, at a calibration temperature of 25°C and a calibration discharge current of 0.5C (taking a 4000mA battery as an example, the calibration discharge current can be 2000mA), the voltage difference between the open-circuit voltage and the operating voltage is 0.048V; as another example, at a calibration temperature of 30°C and a calibration discharge current of 0.5C, the voltage difference between the open-circuit voltage and the operating voltage is 0.117V. The voltage difference can be determined based on the current temperature, current discharge current, and the first calibration relationship. The current open-circuit voltage can be determined based on the current operating voltage and the voltage difference. For example, when the current temperature is 25℃ and the current discharge current is 0.5C, the voltage difference is determined to be 0.048V. Assuming the current operating voltage is 3.9V, the current open-circuit voltage is 3.948V.
[0048] In some implementations, the first calibration correspondence is determined based on the second calibration correspondence and the third calibration correspondence. The second calibration correspondence is the correspondence between the working voltage and the charge of different calibration discharge currents under multiple different calibration temperatures. The third calibration correspondence is the correspondence between the open circuit voltage and the charge of the set discharge current under multiple different calibration temperatures.
[0049] In this way, the second and third calibration correspondences can be obtained, and the first calibration correspondence can be obtained based on the second and third calibration correspondences.
[0050] Specifically, a second calibration correspondence can be established in advance, relating the operating voltage to the charge at different calibration temperatures and different calibration discharge currents. This second calibration correspondence can be a characteristic curve, lookup table, mapping table, etc. A third calibration correspondence can also be established in advance, relating the open-circuit voltage to the charge at different calibration temperatures and the set discharge current. This third calibration correspondence can also be a characteristic curve, lookup table, mapping table, etc. The set discharge current can be a sufficiently small current, for example, 0.05C (taking a 4000mA battery as an example, the set discharge current could be 200mA). Figure 5As shown in the figure, the horizontal axis represents the degree of discharge (DOD), where DOD = 1 - SOC, and the vertical axis represents the voltage. Taking a calibration temperature of 25℃ as an example, the second and third calibration correspondences are explained using characteristic curves. The 0.5C and 1C characteristic curves represent the second calibration correspondence, that is, the 0.5C and 1C characteristic curves represent the correspondence between the working voltage and charge at different calibration discharge currents at 25℃. The OCV curve represents the third calibration correspondence, that is, the OCV curve represents the correspondence between the open-circuit voltage and charge at a set discharge current at 25℃. As shown in the figure, within certain ranges, at the same calibration temperature, the characteristic curves of different calibration discharge currents and the characteristic curves of open-circuit voltages are parallel and correspond. Therefore, a correspondence between the working voltage and open-circuit voltage at different calibration temperatures and different calibration discharge currents can be established as the first calibration correspondence. Among them, at the same calibration temperature and the same calibration discharge current, the correspondence between the open-circuit voltage and the working voltage can be a constant difference. For example, at a calibration temperature of 25℃, the operating voltage corresponding to a calibration discharge current of 0.5C is 3.9V. If the open-circuit voltage corresponding to the discharge current is set to 3.948V, then the voltage difference corresponding to a calibration temperature of 25℃ and a calibration discharge current of 0.5C can be determined to be 0.048V and saved as the first calibration correspondence. As another example, at a calibration temperature of 30℃, the operating voltage corresponding to a calibration discharge current of 0.5C is 3.583V. If the open-circuit voltage corresponding to the discharge current is set to 3.7V, then the voltage difference corresponding to a calibration temperature of 30℃ and a calibration discharge current of 0.5C can be determined to be 0.117V and saved as the first calibration correspondence.
[0051] In some implementations, the second calibration correspondence is the correspondence between the operating voltage and the charge obtained during the process of discharging from full charge to cutoff voltage at different calibration temperatures and with different calibration discharge currents.
[0052] In this way, the second calibration correspondence can be obtained.
[0053] Specifically, a calibration temperature can be selected first, and the correspondence between the working voltage and the charge at different calibrated discharge currents under that temperature can be established as a second calibration correspondence. For example, at a calibration temperature of 25°C, the calibration battery is first fully charged according to a preset charging procedure, and then discharged to the cutoff voltage using calibrated discharge currents of 1C, 0.8C, 0.5C, 0.25C, 0.2C, 0.1C, and 0.05C, respectively, thus obtaining the correspondence between the working voltage and the charge at each calibrated discharge current. To avoid voltage fluctuations in the calibration battery, after fully charging, the battery can be left to stand for a preset time, for example, more than 20 minutes. After the preset time, the battery is discharged again using different calibrated discharge currents to obtain the correspondence between the working voltage and the charge at each calibrated discharge current.
[0054] In some implementations, the third calibration correspondence is the correspondence between open-circuit voltage and charge obtained at multiple different calibration temperatures during the process of discharging from full charge to cutoff voltage with a set discharge current.
[0055] In this way, the third calibration correspondence can be obtained.
[0056] Specifically, a calibration temperature can be selected first. At this calibration temperature, a relationship between the open-circuit voltage and the amount of charge corresponding to the discharge current can be established as a third calibration relationship. For example, at a calibration temperature of 25°C, the calibration battery is first fully charged according to a preset charging procedure, and then discharged at a set discharge current until the cutoff voltage is reached, thus obtaining the relationship between the open-circuit voltage and the amount of charge. To avoid voltage fluctuations in the calibration battery, after fully charging, it can be left to stand for a preset time, for example, more than 20 minutes. After standing for the preset time, it is then discharged again with a set discharge current to obtain the relationship between the open-circuit voltage and the amount of charge.
[0057] Please see Figure 6 In some embodiments, step 022 (determining the current open-circuit voltage based on the current discharge current, current temperature, current operating voltage, and the first calibration correspondence) includes:
[0058] 0222: If there is no corresponding relationship for the current discharge current in the first calibration correspondence, the open-circuit voltage of the first discharge current is determined according to the first discharge current, the current temperature, the current operating voltage and the first calibration correspondence, and the open-circuit voltage of the second discharge current is determined according to the second discharge current, the current temperature, the current operating voltage and the first calibration correspondence. There is a corresponding relationship for the first discharge current and the second discharge current in the first calibration correspondence, and the current discharge current is located between the first discharge current and the second discharge current.
[0059] 0224: Determine the current open-circuit voltage based on the first discharge current open-circuit voltage and the second discharge current open-circuit voltage.
[0060] Please see Figure 2 In some embodiments, steps 0222 and 0224 can be implemented by the first determining module 12. That is, the first determining module 12 can be used to: determine the first discharge current open circuit voltage based on the first discharge current, the current temperature, the current operating voltage and the first calibration correspondence when there is no correspondence for the current discharge current in the first calibration correspondence; determine the second discharge current open circuit voltage based on the second discharge current, the current temperature, the current operating voltage and the first calibration correspondence; there is a correspondence for the first discharge current and a correspondence for the second discharge current in the first calibration correspondence; the current discharge current is between the first discharge current and the second discharge current; and determine the current open circuit voltage based on the first discharge current open circuit voltage and the second discharge current open circuit voltage.
[0061] Thus, even if there is no corresponding relationship for the current discharge current in the first calibration correspondence, the current open-circuit voltage can still be determined through the first calibration correspondence.
[0062] Specifically, if a current discharge current correspondence exists in the first calibration correspondence, the current open-circuit voltage is determined directly based on the current discharge current, current temperature, current operating voltage, and the first calibration correspondence. Since the first calibration correspondence cannot exhaustively cover all current cases, if a current discharge current correspondence does not exist in the first calibration correspondence, the first discharge current open-circuit voltage can be determined based on the first discharge current, current temperature, current operating voltage, and the first calibration correspondence. Similarly, the second discharge current open-circuit voltage can be determined based on the second discharge current, current temperature, current operating voltage, and the first calibration correspondence. Here, the correspondence between the first and second discharge currents is a correspondence of the calibration discharge currents that already exists in the first calibration correspondence. The current discharge current lies between the first and second discharge currents, and both the first and second discharge currents are adjacent to the current discharge current. The current open-circuit voltage is determined based on the first discharge current open-circuit voltage and the second discharge current open-circuit voltage. Specifically, the current open-circuit voltage can be determined based on the first discharge current open-circuit voltage, the first current weight W1, the second discharge current open-circuit voltage, and the second current weight W2. The first current weight W1 and the second current weight W2 of the first discharge current open-circuit voltage can be determined based on the first current difference C1 between the first discharge current and the current discharge current and the second current difference C2 between the second discharge current and the current discharge current. For example, the first current weight W1 = C2 / (C1+C2) and the second current weight W2 = C1 / (C1+C2).
[0063] In one embodiment, the current temperature is 25°C, the current operating voltage is 3.96V, and the current discharge current is 350mA. The first calibration correspondence does not include a 350mA discharge current, but it does include 300mA (first discharge current) and 400mA (second discharge current). For example, the voltage difference for 300mA is 0.01V, and the voltage difference for 400mA is 0.03V. Based on the voltage difference between the current operating voltage and the first discharge current, the open-circuit voltage of the first discharge current can be determined as 3.96V + 0.01V = 3.97V. Based on the voltage difference between the current operating voltage and the second discharge current, the open-circuit voltage of the second discharge current can be determined as 3.96V + 0.03V = 3.99V. Based on the open-circuit voltages of the first and second discharge currents, the current open-circuit voltage can be determined as 3.97V*1 / 2 + 3.99V*1 / 2 = 3.98V.
[0064] Please see Figure 7 In some embodiments, step 022 (determining the current open-circuit voltage based on the current discharge current, current temperature, current operating voltage, and the first calibration correspondence) includes:
[0065] 0226: If there is no corresponding relationship for the current temperature in the first calibration correspondence, the first temperature open-circuit voltage is determined according to the current discharge current, the first temperature, the current operating voltage and the first calibration correspondence, and the second temperature open-circuit voltage is determined according to the current discharge current, the second temperature, the current operating voltage and the first calibration correspondence. There is a corresponding relationship for the first temperature and the second temperature in the first calibration correspondence, and the current temperature is between the first temperature and the second temperature.
[0066] 0228: Determine the current open-circuit voltage based on the first temperature open-circuit voltage and the second temperature open-circuit voltage.
[0067] Please see Figure 2 In some embodiments, steps 0226 and 0228 can be implemented by the first determining module 12. That is, the first determining module 12 can be used to: determine the first temperature open-circuit voltage based on the current discharge current, the first temperature, the current operating voltage and the first calibration correspondence when there is no correspondence for the current temperature in the first calibration correspondence; determine the second temperature open-circuit voltage based on the current discharge current, the second temperature, the current operating voltage and the first calibration correspondence; there is a correspondence for the first temperature and a correspondence for the second temperature in the first calibration correspondence; and the current temperature is between the first temperature and the second temperature. The current open-circuit voltage is determined based on the first temperature open-circuit voltage and the second temperature open-circuit voltage.
[0068] Thus, even if there is no corresponding relationship for the current temperature in the first calibration correspondence, the current open-circuit voltage can still be determined through the first calibration correspondence.
[0069] Specifically, if a correspondence for the current temperature exists in the first calibration correspondence, the current open-circuit voltage is determined directly based on the current discharge current, current temperature, current operating voltage, and the first calibration correspondence. Since the first calibration correspondence cannot exhaustively cover all temperature cases, if a correspondence for the current temperature does not exist in the first calibration correspondence, the first temperature open-circuit voltage can be determined based on the current discharge current, first temperature, current operating voltage, and the first calibration correspondence; the second temperature open-circuit voltage can be determined based on the current discharge current, second temperature, current operating voltage, and the first calibration correspondence. Here, the correspondence between the first and second temperatures is a correspondence for calibration temperatures that already exists in the first calibration correspondence; the current temperature is between the first and second temperatures, and both the first and second temperatures are adjacent to the current temperature. The current open-circuit voltage is determined based on the first open-circuit voltage and the second open-circuit voltage. Specifically, the current open-circuit voltage can be determined based on the first open-circuit voltage, the first temperature weight K1, the second open-circuit voltage, and the second temperature weight K2. The first temperature weight K1 of the first open-circuit voltage and the second temperature weight K2 of the second open-circuit voltage can be determined based on the first temperature difference D1 between the first temperature and the current temperature and the second temperature difference D2 between the second temperature and the current temperature. For example, the first temperature weight K1 = D2 / (D1+D2) and the second temperature weight K2 = D1 / (D1+D2).
[0070] In one embodiment, the current discharge current is 300mA, the current operating voltage is 3.49V, and the current temperature is 25°C.
[0071] The first calibration correspondence does not include a temperature of 25℃. It does include correspondences for 20℃ (first temperature) and 30℃ (second temperature). For example, the voltage difference at 20℃ is 0.01V, and at 30℃ it is 0.02V. Based on the voltage difference between the current operating voltage and the first temperature, the open-circuit voltage at the first temperature can be determined as 3.49V + 0.01V = 3.50V. Based on the voltage difference between the current operating voltage and the second temperature, the open-circuit voltage at the second temperature can be determined as 3.49V + 0.02V = 3.51V. Based on the open-circuit voltages of the first and second discharge currents, the current open-circuit voltage can be determined as 3.50V*1 / 2 + 3.51V*1 / 2 = 3.505V.
[0072] If there is no corresponding relationship for the current discharge current or the current temperature in the first calibration correspondence, the current open circuit voltage is determined by combining the above steps 0222, 0224, 0226 and 0228, which will not be repeated here. For example, in the first calibration correspondence, there are correspondences of 300mA and 400mA at 20℃, and 300mA and 400mA at 30℃. When the current temperature is 25℃ and the current discharge current is 350mA, the open-circuit voltage of 350mA at 20℃ and 350mA at 30℃ can be determined first, and then the current open-circuit voltage of 350mA at 25℃ can be determined based on the open-circuit voltages of 350mA at 20℃ and 350mA at 30℃; or the open-circuit voltages of 300mA and 400mA at 25℃ can be determined first, and then the current open-circuit voltage of 350mA at 25℃ can be determined based on the open-circuit voltages of 300mA and 400mA at 25℃.
[0073] Please see Figure 8 In some implementations, step 03 (determining the current charge based on the current temperature and the current open-circuit voltage) includes:
[0074] 032: Determine the current electrical quantity based on the current temperature, current open-circuit voltage, and the third calibration correspondence. The third calibration correspondence is the correspondence between open-circuit voltage and electrical quantity under multiple different calibration temperatures.
[0075] Please see Figure 2 In some implementations, step 032 can be implemented by the second determining module 13. That is, the second determining module 13 can be used to determine the current charge based on the current temperature, the current open-circuit voltage and the third calibration correspondence, wherein the third calibration correspondence is the correspondence between open-circuit voltage and charge at multiple different calibration temperatures.
[0076] In this way, the current electrical quantity can be accurately determined based on the current open-circuit voltage.
[0077] Specifically, the correspondence between open-circuit voltage and electrical quantity at different calibration temperatures can be stored in advance as a third calibration correspondence, so that the current electrical quantity can be determined by searching in the third calibration correspondence based on the current temperature and current open-circuit voltage.
[0078] Please see Figure 9 In some implementations, the power calculation method further includes:
[0079] 04: Real-time acquisition of the battery's loop current, and integration of the loop current over time to obtain the charge / discharge capacity;
[0080] 05: Determine the estimated power capacity based on the initial power level and the charging / discharging capacity;
[0081] 06: Displays estimated battery level;
[0082] 07: When the current battery level is inconsistent with the estimated battery level, the current battery level will be used instead of the estimated battery level for display.
[0083] Please see Figure 10 In some embodiments, the power calculation device 100 further includes a second acquisition module 14, a third determination module 15, a display module 16, and a processing module 17. Step 04 can be implemented by the second acquisition module 14, step 05 by the third determination module 15, step 06 by the display module 16, and step 07 by the processing module 17. That is, the second acquisition module 14 can be used to acquire the battery's loop current in real time and integrate the loop current over time to obtain the charge / discharge capacity. The third determination module 15 can be used to determine the estimated capacity based on the initial capacity and the charge / discharge capacity. The display module 16 can be used to display the estimated capacity. The processing module 17 can be used to replace the estimated capacity with the current capacity when the current capacity is inconsistent with the estimated capacity, for display purposes.
[0084] In this way, the estimated power consumption can be obtained and displayed in real time, and the estimated power consumption can be corrected using the current power consumption.
[0085] Specifically, during battery use, the main circuit current can be measured in real time, and the main circuit current is integrated over time to obtain the charge / discharge capacity. The estimated capacity is determined based on the initial capacity and the charge / discharge capacity, with charging being positive and discharging being negative. That is, during charging, the estimated capacity is determined by adding the initial capacity to the charge / discharge capacity; during discharging, the estimated capacity is determined by subtracting the charge / discharge capacity from the initial capacity. The display module 16 controls the display screen to show the estimated capacity. Since the estimated capacity is obtained through current accumulation, inaccurate current measurement will lead to accumulated capacity errors over time, resulting in inaccurate capacity readings and phenomena such as sudden capacity fluctuations or abnormal shutdowns of electronic devices. Therefore, if the current discharge current is less than the preset current and the duration is greater than the preset duration, the current open-circuit voltage can be determined, and the current capacity can be determined based on the current open-circuit voltage. It is then determined whether the current capacity matches the estimated capacity. If the current capacity matches the estimated capacity, the estimated capacity continues to be displayed; if the current capacity does not match the estimated capacity, the current capacity replaces the estimated capacity for display. The system acquires the current battery level when the current discharge current is less than the preset current and the duration is greater than the preset duration. This increases the frequency of current battery level acquisition and enables dynamic calibration of the estimated battery level during battery use. It also eliminates the accumulated error during the current integration process and improves the accuracy of the battery level display.
[0086] Please see Figure 11 In some implementations, step 07 (when the current battery level differs from the estimated battery level, replacing the estimated battery level with the current battery level for display) includes:
[0087] 072: When the current battery level is inconsistent with the estimated battery level, adjust the displayed battery level at a preset rate of change.
[0088] Please see Figure 10 In some implementations, step 072 can be implemented by the processing module 17. That is, the processing module 17 can be used to adjust the displayed power at a preset rate of change when the current power level is inconsistent with the estimated power level.
[0089] In this way, the displayed battery level can be adjusted smoothly, avoiding sudden changes in the displayed battery level.
[0090] Specifically, the preset rate of change can be 1% per minute to correct the battery level, or it could be 1% every two minutes, etc., without specific limitations. For example, if the estimated battery level is 88% and the current battery level is 85%, and the preset rate of change is 1% per minute, the battery level displayed on the screen can be corrected from 88% to 87% after one minute; from 87% to 86% after two minutes; and from 86% to 85% after three minutes, thus achieving the goal of changing the displayed battery level from the estimated battery level to the current battery level at the preset rate of change. As another example, if the estimated battery level is 88% and the current battery level is 85%, and the preset rate of change is 1% per minute, during the adjustment process, since the battery may still be discharging, assuming the current battery level drops from 85% to 84%, the battery level displayed on the screen can be corrected from 88% to 87% after one minute; from 87% to 86% after two minutes; from 86% to 85% after three minutes; and from 85% to 84% after four minutes, thus achieving the goal of adjusting the displayed battery level at the preset rate of change.
[0091] In other implementations, other methods can be used to smoothly adjust the displayed battery level, or the current battery level can be used to directly replace the estimated battery level for display; no specific limitations are made here.
[0092] Please see Figure 3 The power calculation method of this application embodiment can be implemented by the electronic device 1000 of this application embodiment. Specifically, the electronic device 1000 includes one or more processors 200 and a memory 300. The memory 300 stores a computer program. When the computer program is executed by the processor 200, the steps of the power calculation method of any of the above embodiments are implemented.
[0093] For example, when a computer program is executed by processor 200, the following steps are implemented to calculate the power consumption:
[0094] 01: Obtain the battery's current discharge current, current temperature, and current operating voltage;
[0095] 02: When the current discharge current is less than the preset current and the duration is greater than the preset duration, determine the current open-circuit voltage based on the current discharge current, current temperature and current operating voltage;
[0096] 03: Determine the current charge based on the current temperature and current open-circuit voltage.
[0097] The computer-readable storage medium of the present application embodiment stores a computer program thereon, which, when executed by a processor, implements the steps of the power calculation method of any of the above embodiments.
[0098] For example, when the program is executed by the processor, the following steps are implemented to calculate the power consumption:
[0099] 01: Obtain the battery's current discharge current, current temperature, and current operating voltage;
[0100] 02: When the current discharge current is less than the preset current and the duration is greater than the preset duration, determine the current open-circuit voltage based on the current discharge current, current temperature and current operating voltage;
[0101] 03: Determine the current charge based on the current temperature and current open-circuit voltage.
[0102] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this application pertain.
[0103] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (control method), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic device, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0104] It should be understood that various parts of the embodiments of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0105] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0107] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0108] In the description of this specification, references to terms such as "certain embodiments" indicate that a specific feature, structure, or characteristic described in connection with the described embodiment or example is included in at least one embodiment of this application. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment. Furthermore, the specific features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments.
[0109] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A method for calculating battery capacity, characterized in that, The power calculation method includes: Obtain the current discharge current, current temperature, and current operating voltage of the battery; If the current discharge current is less than the preset current, the current open-circuit voltage is determined based on the current discharge current, the current temperature, and the current operating voltage. The current charge level is determined based on the current temperature and the current open-circuit voltage.
2. The power calculation method according to claim 1, characterized in that, The step of determining the current open-circuit voltage based on the current discharge current, the current temperature, and the current operating voltage when the current discharge current is less than the preset current includes: If the current discharge current is less than the preset current and the duration is greater than the preset duration, the current open-circuit voltage is determined based on the current discharge current, the current temperature, and the current operating voltage.
3. The power calculation method according to claim 1, characterized in that, Determining the current open-circuit voltage based on the current discharge current, the current temperature, and the current operating voltage includes: The current open-circuit voltage is determined based on the current discharge current, the current temperature, the current operating voltage, and the first calibration correspondence, wherein the first calibration correspondence is the correspondence between operating voltage and open-circuit voltage under multiple different calibration temperatures and different calibration discharge currents.
4. The power calculation method according to claim 3, characterized in that, The first calibration correspondence is determined based on the second calibration correspondence and the third calibration correspondence. The second calibration correspondence is the correspondence between the working voltage and the charge of different calibration discharge currents under multiple different calibration temperatures. The third calibration correspondence is the correspondence between the open circuit voltage and the charge of the set discharge current under multiple different calibration temperatures.
5. The power calculation method according to claim 4, characterized in that, The second calibration correspondence is the correspondence between the working voltage and the charge obtained during the process of discharging from full charge to cutoff voltage at different calibration temperatures and different calibration discharge currents.
6. The power calculation method according to claim 4, characterized in that, The third calibration correspondence is the correspondence between open-circuit voltage and charge obtained under multiple different calibration temperatures during the process of discharging from full charge to cutoff voltage with a set discharge current.
7. The power calculation method according to claim 3, characterized in that, The step of determining the current open-circuit voltage based on the current discharge current, the current temperature, the current operating voltage, and the first calibration correspondence includes: If there is no corresponding relationship for the current discharge current in the first calibration correspondence, the open-circuit voltage of the first discharge current is determined based on the first discharge current, the current temperature, the current operating voltage, and the first calibration correspondence. The open-circuit voltage of the second discharge current is determined based on the second discharge current, the current temperature, the current operating voltage, and the first calibration correspondence. The first calibration correspondence includes a correspondence between the first discharge current and the second discharge current. The current discharge current is located between the first discharge current and the second discharge current. The current open-circuit voltage is determined based on the first discharge current open-circuit voltage and the second discharge current open-circuit voltage.
8. The power calculation method according to claim 3, characterized in that, The step of determining the current open-circuit voltage based on the current discharge current, the current temperature, the current operating voltage, and the first calibration correspondence includes: If there is no corresponding relationship for the current temperature in the first calibration correspondence, the first temperature open-circuit voltage is determined based on the current discharge current, the first temperature, the current operating voltage, and the first calibration correspondence. The open-circuit voltage at the second temperature is determined based on the current discharge current, the second temperature, the current operating voltage, and the first calibration correspondence. The first calibration correspondence includes a correspondence between the first temperature and the second temperature, and the current temperature is located between the first temperature and the second temperature. The current open-circuit voltage is determined based on the first temperature open-circuit voltage and the second temperature open-circuit voltage.
9. The power calculation method according to claim 1, characterized in that, The step of determining the current charge based on the current temperature and the current open-circuit voltage includes: The current electrical quantity is determined based on the current temperature, the current open-circuit voltage, and the third calibration correspondence, wherein the third calibration correspondence is the correspondence between open-circuit voltage and electrical quantity at multiple different calibration temperatures.
10. The power calculation method according to claim 1, characterized in that, The power calculation method also includes: The loop current of the battery is acquired in real time, and the loop current is integrated over time to obtain the charge and discharge capacity; The estimated power is determined based on the initial power level and the charge / discharge capacity. When the current battery level differs from the estimated battery level, the current battery level is used to replace the estimated battery level for display.
11. The power calculation method according to claim 10, characterized in that, The step of replacing the estimated power level with the current power level for display when the current power level differs from the estimated power level includes: When the current battery level is inconsistent with the estimated battery level, the displayed battery level is adjusted at a preset rate of change.
12. A power calculation device for calculating the power of a battery, characterized in that, The power calculation device includes: The first acquisition module is used to acquire the current discharge current, current temperature and current operating voltage of the battery; The first determining module is used to determine the current open-circuit voltage based on the current discharge current, the current temperature, and the current operating voltage when the current discharge current is less than the preset current. The second determining module is used to determine the current charge based on the current temperature and the current open-circuit voltage.
13. An electronic device, characterized in that, The electronic device includes one or more processors and a memory, the memory storing a computer program that, when executed by the processor, implements the steps of the power calculation method according to any one of claims 1-11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the steps of the power calculation method according to any one of claims 1-11.