Battery power determination method and apparatus, storage medium, and electronic device

By obtaining the battery's current charge/discharge capacity, cumulative total charge capacity, and degradation rate, the battery's current actual total capacity is calculated, solving the power display error problem caused by shallow charging and discharging in existing technologies, and realizing real-time calibration and accuracy of power monitoring.

CN122131173APending Publication Date: 2026-06-02DREAM INNOVATION TECH (SUZHOU) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
DREAM INNOVATION TECH (SUZHOU) CO LTD
Filing Date
2026-03-19
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing battery power monitoring technologies rely on standard charge-discharge cycles to obtain the total battery capacity, which leads to the accumulation of integral errors caused by shallow charging and discharging in daily use, affecting the accuracy of power display.

Method used

By obtaining the battery's current charge/discharge capacity, cumulative total charge capacity, design capacity, and degradation rate, the battery's current actual total capacity can be calculated using these parameters, avoiding dependence on a complete charge/discharge cycle and enabling real-time calibration of the total capacity.

Benefits of technology

It significantly improves the accuracy of power display, avoids the accumulation of integral errors caused by long-term shallow charging and discharging, and improves the accuracy of battery power monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122131173A_ABST
    Figure CN122131173A_ABST
Patent Text Reader

Abstract

The application provides a battery power determination method and device, a storage medium and an electronic device, and belongs to the technical field of batteries. The battery power determination method comprises the following steps: acquiring the current charge-discharge capacity, the accumulated total charge capacity, the design capacity and the attenuation rate of a battery; determining the current actual total capacity of the battery based on the accumulated total charge capacity, the design capacity and the attenuation rate of the battery; and obtaining the power based on the current charge-discharge capacity of the battery and the current actual total capacity of the battery. The method can realize real-time calibration of the total capacity without relying on complete standard charge-discharge cycles, effectively avoids the accumulation of integral error caused by long-term shallow charging and shallow discharging, and significantly improves the accuracy of power display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of battery technology, and more specifically to a method for determining battery charge, a device for determining battery charge, a machine-readable storage medium, and an electronic device. Background Technology

[0002] Currently, in smart devices equipped with battery management systems, accurately displaying the remaining battery level via mobile applications is crucial for improving the user experience. Existing battery monitoring technologies typically employ current integration to monitor battery charging and discharging.

[0003] However, the accuracy of such algorithms depends on the battery management system periodically obtaining the battery's total capacity as an integration benchmark. This benchmark typically requires a complete standard charge-discharge cycle during use—that is, the battery must be continuously discharged from a fully charged state until shutdown, and then fully charged again, with specific requirements for parameters such as the stability of the discharge current and the charging cut-off current.

[0004] This technological limitation is particularly pronounced in the actual use of robotic vacuum cleaners. Take daily cleaning as an example: when a user starts the robotic vacuum cleaner and the battery level drops to a preset threshold (e.g., 30%), the device automatically triggers its recharge logic, returning to the charging dock to recharge and not continuing to operate until the battery is completely depleted. Therefore, a complete charge-discharge scenario meeting the above requirements is extremely rare in daily use. If the battery management system cannot accurately obtain the total battery capacity over a long period, the integral algorithm based on a fixed benchmark will accumulate errors, ultimately causing a discrepancy between the battery level displayed in the application and the actual remaining battery capacity. Summary of the Invention

[0005] The purpose of this invention is to provide a battery power determination method, a battery power determination device, a machine-readable storage medium, and an electronic device. This method can achieve real-time calibration of total capacity without relying on a complete standard charge-discharge cycle, effectively avoiding the accumulation of integral errors caused by long-term shallow charging and discharging, and significantly improving the accuracy of power display.

[0006] To achieve the above objectives, the first aspect of this application provides a method for determining battery charge, comprising:

[0007] Obtain the battery's current charge / discharge capacity, total cumulative charge capacity, design capacity, and degradation rate; Based on the battery's cumulative total charge capacity, design capacity, and degradation rate, the current actual total capacity of the battery is determined. The amount of electricity is obtained based on the current charge / discharge capacity of the battery and the current actual total capacity of the battery.

[0008] In this embodiment of the application, determining the current actual total capacity of the battery based on its cumulative total charge capacity, design capacity, and degradation rate includes: The current battery cycle number is obtained based on the ratio of the battery's cumulative total charge capacity to the designed capacity. Based on the attenuation rate and the current number of battery cycles, the capacity reduction ratio is determined; Based on the capacity reduction ratio and the design capacity, the current actual total capacity of the battery is determined.

[0009] In this embodiment of the application, obtaining the design capacity of the battery includes: Obtain a first capacity, which is the capacity that the battery gains during the charging process, from the preset voltage value to the end of charging. Based on the first capacity, the calculated total capacity of the battery is obtained; Based on the calculated total capacity of the battery, the theoretical design capacity of the battery is verified to obtain the design capacity of the battery.

[0010] In this embodiment of the application, the step of verifying the theoretical design capacity of the battery based on the calculated total capacity of the battery to obtain the design capacity of the battery includes: The difference between the calculated total capacity of the battery and the theoretical design capacity of the battery is calculated to obtain the difference value; Based on the difference value, the theoretical design capacity of the battery is verified to obtain the design capacity of the battery.

[0011] In this embodiment of the application, the step of verifying the theoretical design capacity of the battery based on the difference value to obtain the design capacity of the battery includes: If the difference value is within a preset error range, the calculated capacity of the battery is taken as the design capacity of the battery.

[0012] In this embodiment of the application, the preset error range includes a first preset error threshold and a second preset error threshold, wherein the first preset error threshold is less than the second preset error threshold; the method further includes: If the difference value is not greater than the first preset error threshold, the theoretical design capacity of the battery is updated based on the first preset error threshold to obtain the design capacity of the battery. If the difference value is greater than the second preset error threshold, the theoretical design capacity of the battery shall be used as the design capacity of the battery.

[0013] In this embodiment of the application, after verifying the theoretical design capacity of the battery based on its calculated total capacity to obtain the design capacity of the battery, the method further includes: A1: Determine whether the calculated total capacity of the battery has been updated, and if it is determined that the calculated total capacity of the battery has been updated, execute A2; A2: Calculate the difference between the updated calculated total capacity of the battery and the theoretical design capacity of the battery to obtain the updated difference value; A3: If the updated difference value is within the preset error range, the calculated capacity of the updated battery shall be used as the design capacity of the battery.

[0014] In this embodiment of the application, the method further includes: If the updated difference value is not within the preset error range, the calculated capacity of the battery is re-acquired, and the process jumps to step A2.

[0015] In this embodiment of the application, obtaining the battery degradation rate includes: Record the capacity and number of battery cycles during the two most recent charging cycles of the battery, from the preset voltage value to the end of charging, to obtain the first set of sampling data and the second set of sampling data. Based on the first set of sampling data and the second set of sampling data, the battery degradation rate is calculated.

[0016] In this embodiment of the application, calculating the battery degradation rate based on the first set of sampling data and the second set of sampling data includes: Based on the capacity in the first set of sampled data and the capacity in the second set of sampled data, the capacity difference is obtained; Based on the number of battery cycles in the first set of sampled data and the number of battery cycles in the second set of sampled data, the difference in the number of cycles is obtained; The battery degradation rate is obtained based on the ratio of the capacity difference to the cycle count difference.

[0017] A second aspect of this application provides a battery power determination device, comprising: The acquisition module is used to acquire the battery's current charge / discharge capacity, total cumulative charge capacity, design capacity, and degradation rate. The calculation module is used to determine the current actual total capacity of the battery based on the battery's cumulative total charge capacity, design capacity, and degradation rate. The determination module is used to obtain the power based on the current charge / discharge capacity of the battery and the current actual total capacity of the battery.

[0018] A third aspect of this application provides an electronic device, the electronic device comprising: At least one processor; A memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the battery power determination method described above by executing the instructions stored in the memory.

[0019] A fourth aspect of this application provides a machine-readable storage medium storing instructions that, when executed by a processor, configure the processor to perform the aforementioned battery power determination method.

[0020] The above technical solution obtains the battery's current charge / discharge capacity, cumulative total charge capacity, design capacity, and degradation rate. Based on the battery's cumulative total charge capacity, design capacity, and degradation rate, the current actual total capacity of the battery is determined. The battery's charge level is then calculated based on the current charge / discharge capacity and the current actual total capacity. This method achieves real-time calibration of the total capacity without relying on a complete standard charge / discharge cycle, effectively avoiding the accumulation of integral errors caused by long-term shallow charging and discharging, and significantly improving the accuracy of the charge level display.

[0021] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0022] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 The illustration shows a flowchart of a battery power determination method according to an embodiment of this application; Figure 2 This schematic diagram illustrates a structural block diagram of a battery power determination device according to an embodiment of the present application; Figure 3 The diagram illustrates the internal structure of a computer device according to an embodiment of this application.

[0023] Explanation of reference numerals in the attached figures 410 - Acquisition module; 420 - Calculation module; 430 - Determination module; A01 - Processor; A02 - Network interface; A03 - Internal memory; A04 - Display screen; A05 - Input device; A06 - Non-volatile storage medium; B01 - Operating system; B02 - Computer program. Detailed Implementation

[0024] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.

[0025] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with relevant laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.

[0026] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.

[0027] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.

[0028] Please refer to Figure 1 , Figure 1 The illustration schematically shows a flowchart of a battery power determination method according to an embodiment of this application. This embodiment provides a battery power determination method, including the following steps: Step 210: Obtain the battery's current charge / discharge capacity, total cumulative charge capacity, design capacity, and degradation rate; In this embodiment, the current charge / discharge capacity of the battery can be obtained by integrating the time current, for example, it can be expressed as Q. n=∫Idt (charge / discharge capacity = time-current integral), Q n Let I be the current charge / discharge capacity, t be the time, and n be the number of battery cycles. The cumulative total charge capacity mentioned above can refer to the sum of the amount of electricity charged in each cycle since the battery was first used, which can be obtained by mathematically summing (integrating) the amount of electricity charged in each cycle. The design capacity mentioned above can refer to the total capacity recorded during a standard charge / discharge cycle in the first battery cycle, which can be expressed as Q. 总1 In practical implementation, the battery pack design capacity (theoretical design capacity) can be used as the design capacity, or the theoretical design capacity can be calibrated and used as the design capacity. In this way, Q can be obtained without performing a complete standard charge and discharge. 总1 The aforementioned degradation rate can refer to the rate at which battery capacity decreases, and can be determined based on empirical data or dynamically calculated based on current battery data.

[0029] To improve the accuracy of the design capacity, in some embodiments, the theoretical design capacity can be calibrated and used as the design capacity. That is, obtaining the design capacity of the battery as described above may include the following steps: First, obtain the first capacity, which is the capacity that the battery gains during the charging process, from the preset voltage value to the end of charging. In this embodiment, the preset voltage value can be a fixed voltage value that the battery will reach during charging, set according to actual conditions, such as 13V. During charging, starting when the battery voltage reaches the preset voltage value (e.g., 13V), information such as current, voltage, time, and capacity Q are recorded from the preset voltage value to the end of charging. The recorded capacity Q is the first capacity.

[0030] Then, based on the first capacity, the calculated total capacity of the battery is obtained; In this embodiment, the preset voltage value is used to calculate the capacity Q charged to full charge (charging complete) and the total battery capacity Q. 总 If the percentage is fixed (e.g., 80%), the calculated capacity of the battery can be obtained by calculating the first capacity. For example, in the example above, Q can be obtained. 总 =Q / 80%, which gives the first capacity. The calculated capacity of the battery can be quickly obtained by utilizing the capacity gained during a certain period of charging.

[0031] Finally, based on the calculated total capacity of the battery, the theoretical design capacity of the battery is verified to obtain the design capacity of the battery.

[0032] In this embodiment, after calculating the total capacity of the battery, the total calculated capacity of the battery can be compared with the theoretical design capacity of the battery to verify the correctness of the design capacity.

[0033] By calculating the battery's total capacity during charging—from a preset voltage value to the end of the charging process—the theoretical design capacity can be quickly obtained. This allows for verification and updating of the theoretical design capacity, leading to a more accurate design capacity and improving the accuracy of capacity determination. This process can be implemented even under incomplete charge and discharge conditions and can be applied to various scenarios.

[0034] In some embodiments, verifying the theoretical design capacity of the battery based on its calculated total capacity to obtain the battery's design capacity includes the following steps: First, the difference between the calculated total capacity of the battery and the theoretical design capacity of the battery is calculated to obtain the difference value; In this embodiment, the aforementioned difference value can be the difference between the calculated capacity and the designed capacity of the battery, or it can be the ratio of the calculated capacity to the designed capacity of the battery. For ease of explanation, this embodiment mainly uses the ratio of the calculated capacity to the designed capacity of the battery as the difference value.

[0035] Then, based on the difference value, the theoretical design capacity of the battery is updated to obtain the design capacity of the battery.

[0036] In this embodiment, different verification conditions and corresponding update strategies can be preset, and then the difference value is matched with the verification conditions to match the corresponding update strategy. Finally, the theoretical design capacity is verified according to the update strategy to obtain a more accurate design capacity of the battery.

[0037] By calculating the difference between the battery's calculated total capacity and its theoretical design capacity, the battery's theoretical design capacity can be updated quickly and accurately.

[0038] In some embodiments, verifying the theoretical design capacity of the battery based on the difference value to obtain the design capacity of the battery includes: If the difference value is within a preset error range, the calculated capacity of the battery is taken as the design capacity of the battery.

[0039] In this embodiment, the preset error range can be pre-set according to actual conditions. If the difference value is a ratio, then the error range corresponding to the ratio is set; if the difference value is a difference, then the error range corresponding to the difference is set. For example, this embodiment mainly uses the ratio of the battery's calculated capacity to its designed capacity as the difference value. Correspondingly, the preset error range is the error range corresponding to the ratio, for example, it can be 1 ± 10%. The difference value can be compared with the preset error range to determine whether the difference value is within the preset error range. If the difference value is within the preset error range, then the battery's calculated capacity is used as the battery's designed capacity. For example, in the above example, if Q... 总 In Q 总1 If it is within 1 ± 10%, then Q 总1 The value is updated to Q 总 The value, i.e., the design capacity of the battery, is Q. 总 .

[0040] By comparing the difference between the calculated capacity and the designed capacity of the battery, and if the difference is within a preset error range, the calculated capacity of the battery is taken as the designed capacity of the battery. This ensures that the designed capacity of the battery conforms to the actual situation of the current battery, thereby improving the accuracy and reliability of the battery's designed capacity.

[0041] In some embodiments, the preset error range includes a first preset error threshold and a second preset error threshold, wherein the first preset error threshold is smaller than the second preset error threshold; the method further includes: In the first case, if the difference value is not greater than the first preset error threshold, the theoretical design capacity of the battery is updated based on the first preset error threshold to obtain the design capacity of the battery. In this embodiment, if the difference value is less than or equal to the first preset error threshold, it means that the difference is not significant. In this case, the theoretical design capacity of the battery can be multiplied by the first preset error threshold to obtain the design capacity.

[0042] In the second scenario, if the difference value is greater than the second preset error threshold, the theoretical design capacity of the battery is taken as the design capacity of the battery.

[0043] In this embodiment, if the difference value is greater than the second preset error threshold, the theoretical design capacity can be used directly as the battery's design capacity without modifying it.

[0044] By adding the above two verification methods, the verification of the theoretical design capacity of the battery is made more comprehensive, which helps to obtain a more accurate and reliable design capacity.

[0045] In some embodiments, after verifying the theoretical design capacity of the battery based on its calculated total capacity to obtain the design capacity of the battery, the method further includes the following steps: Step A1: Determine whether the calculated total capacity of the battery has been updated, and if it is determined that the calculated total capacity of the battery has been updated, proceed to A2; In this embodiment, determining that the calculated capacity of the battery has been updated can be achieved by detecting an update command, or by calculating the current calculated capacity during subsequent charging and comparing it with historical calculated capacities to determine if the calculated capacity of the battery has been updated. For example, after obtaining the battery's design capacity, during subsequent charging, the current, voltage, time, and capacity Q between the preset voltage value and the end of charging are recorded. The capacity Q can be compared with the previous capacity Q. If there is a change, it indicates that the total calculated capacity of the battery has been updated. If the total calculated capacity has been updated, step A2 is then executed.

[0046] Step A2: Calculate the difference between the updated calculated total capacity of the battery and the theoretical design capacity of the battery to obtain the updated difference value; In this embodiment, the process of calculating the updated difference value is the same as the process of calculating the difference value, and will not be described again here.

[0047] Step A3: If the updated difference value is within the preset error range, the updated calculated capacity of the battery is used as the design capacity of the battery.

[0048] In this embodiment, if the updated difference value is within a preset error range, the updated calculated capacity of the battery is used as the design capacity of the battery, thereby updating the design capacity of the battery to ensure the reliability of subsequent calculations.

[0049] Accordingly, in some embodiments, the method further includes: If the updated difference value is not within the preset error range, the calculated capacity of the battery is re-acquired, and the process jumps to step A2.

[0050] In this embodiment, if the updated difference value is not within a preset error range, the updated calculated capacity of the battery is obtained again. Specifically, this can be done by re-obtaining the capacity Q between the preset voltage value and the end of charging, and then calculating the calculated capacity of the battery. Then, step A2 is executed again, and this process is repeated iteratively until the updated difference value is within the preset error range. This ensures the reliability of the battery's design capacity update.

[0051] The following are specific examples to illustrate this: First collect Q 总1: Use the battery pack design capacity as Q 总1 The values ​​are written into the code as fixed values. Then, during charging, starting with a fixed voltage value (e.g., 13V), the current, voltage, time, and capacity Q are recorded from the fixed voltage point to the end of charging. The ratio of the fixed voltage value to the fully charged capacity Q / Q is then calculated. 总 If the proportion is considered fixed (e.g., 80%), then by obtaining Q, we can obtain Q'. 总 Q 总 =Q / 80%; compare the obtained Q 总 With Q 总1 Differences: 1. If Q 总 In Q 总1 If it is within 1 ± 10%, then Q 总1 The value is updated to Q 总 The value of Q is updated once and then stops. 总1 The value is the battery's design capacity; 2. When Q 总 ≤Q 总1 When (1-10%), Q 总1 The value is updated to Q 总1 (1-10%) 3. When Q 总 >Q 总1 When (1+10%), Q 总1 The value is not updated; 4. To be continued in the next Q&A session 总 Update, perform another numerical comparison. If condition 1 is met, then trigger the update for condition 1; otherwise, continue iterating until condition 1 is met.

[0052] In some embodiments, obtaining the battery degradation rate includes the following steps: First, record the capacity and number of battery cycles during the two most recent charging cycles of the battery, from the preset voltage value to the end of charging, to obtain the first set of sampling data and the second set of sampling data. In this embodiment, during battery charging, charging data can be recorded whenever the battery voltage increases from a preset voltage value to the end of charging. This charging data includes the capacity Q that is charged during the process of the battery voltage increasing from the preset voltage value to the end of charging. nThe data includes battery cycle count n, current, voltage, etc. Specifically, during charging, the current, voltage, time, and capacity Qn are recorded from a fixed voltage point to the end of charging, along with n. Data recording is not triggered when the charging / discharging voltage does not meet the requirements. Data from the two most recent records can be extracted to obtain the first and second sets of sampled data. Alternatively, only the two most recent records can be retained during recording to obtain the first and second sets of sampled data. The battery cycle count n = total accumulated charging capacity / Qn. 总1 Each time a battery is charged, the current cumulative total capacity can be obtained, and then the number of battery cycles n can be calculated.

[0053] Then, based on the first set of sampling data and the second set of sampling data, the battery degradation rate is calculated.

[0054] In this embodiment, the battery degradation rate can be calculated based on the two most recent data points, allowing the degradation rate to change dynamically, which helps to obtain a more accurate current actual total capacity of the battery.

[0055] In some embodiments, calculating the battery degradation rate based on the first set of sampling data and the second set of sampling data includes: First, based on the capacity in the first set of sampled data and the capacity in the second set of sampled data, the capacity difference is obtained; In this embodiment, the aforementioned capacity difference refers to the difference in capacity gained during the two most recent charging processes of the battery, from the preset voltage value to the end of charging.

[0056] Then, based on the number of battery cycles in the first set of sampled data and the number of battery cycles in the second set of sampled data, the difference in the number of cycles is obtained; In this embodiment, the difference in the number of battery cycles can be calculated by adding 1 to the difference between the two most recent battery cycle counts.

[0057] Finally, the battery degradation rate is obtained based on the ratio of the capacity difference to the cycle count difference.

[0058] In this embodiment, the battery degradation rate can be the ratio of the capacity difference to the cycle count difference. For example, suppose that at the first trigger, the cycle count is 13 and the capacity is Q. 13 The second trigger has a cycle count of 22 and a capacity of Q. 22 Then the attenuation rate = Q 22 -Q 13 / (22-13+1)。

[0059] By calculating the capacity difference and the number of battery cycles, the degradation rate can be calculated quickly and accurately.

[0060] Step 220: Based on the battery's cumulative total charge capacity, design capacity, and degradation rate, determine the battery's current actual total capacity; In this embodiment, Q 总1 This can be viewed as the battery's design capacity, Q. 总n The capacity decreases with each battery cycle, with a fixed percentage decrease per cycle. Therefore, a fixed percentage can be calculated by combining the current charge / discharge capacity, the total accumulated charge capacity, and the degradation rate, and then combined with the design capacity to obtain the battery's current actual total capacity.

[0061] In some embodiments, determining the current actual total capacity of the battery based on its cumulative total charge capacity, design capacity, and degradation rate includes: First, based on the ratio of the battery's cumulative total charge capacity to the designed capacity, the current battery cycle number n is obtained; In this embodiment, the current battery cycle count = the total cumulative charge capacity of the battery / the design capacity.

[0062] Then, based on the degradation rate and the current number of battery cycles, the capacity reduction ratio is determined; In this embodiment, the aforementioned capacity reduction ratio can be expressed as: 1 - attenuation rate n.

[0063] Finally, based on the capacity reduction ratio and the design capacity, the current actual total capacity of the battery is determined.

[0064] In this embodiment, the current actual total capacity of the battery can be obtained by multiplying the designed capacity by the capacity reduction ratio. That is, the current actual total capacity Q of the battery. 总n =Q 总1 (1-attenuation rate) n).

[0065] The current battery cycle count is obtained by comparing the cumulative total charge capacity of the battery with the designed capacity. Based on the degradation rate and the current battery cycle count, the capacity reduction ratio is determined. Based on the capacity reduction ratio and the designed capacity, the current actual total capacity of the battery can be quickly determined without performing a full standard charge and discharge cycle to obtain Q. 总n。

[0066] Step 230: Obtain the charge based on the current charge / discharge capacity of the battery and the current actual total capacity of the battery.

[0067] In this embodiment, the aforementioned energy level is the ratio of the current charge / discharge capacity to the current actual total capacity, i.e., energy SOC = Q. n / Q 总n。

[0068] In the above implementation process, the current charge / discharge capacity, cumulative total charge capacity, design capacity, and degradation rate of the battery are obtained. Based on the current charge / discharge capacity, cumulative total charge capacity, design capacity, and degradation rate, the current actual total capacity of the battery is determined. Based on the current charge / discharge capacity and the current actual total capacity, the battery charge level is obtained. By determining the current actual total capacity of the battery based on its current charge / discharge capacity, cumulative total charge capacity, design capacity, and degradation rate, the battery charge level is calculated. This method can achieve real-time calibration of the total capacity without relying on a complete standard charge / discharge cycle, effectively avoiding the accumulation of integral errors caused by long-term shallow charging and discharging, and significantly improving the accuracy of the battery charge level display.

[0069] Please refer to Figure 2 , Figure 2 This schematically illustrates a structural block diagram of a battery power determination device according to an embodiment of the present application. This embodiment also provides a battery power determination device, including an acquisition module 410, a calculation module 420, and a determination module 430, wherein: The acquisition module 410 is used to acquire the current charge / discharge capacity, cumulative total charge capacity, design capacity, and degradation rate of the battery. The calculation module 420 is used to determine the current actual total capacity of the battery based on the battery's cumulative total charge capacity, design capacity, and degradation rate. The determination module 430 is used to obtain the power based on the current charge / discharge capacity of the battery and the current actual total capacity of the battery.

[0070] The battery power determination device includes a processor and a memory. The acquisition module 410, calculation module 420 and determination module 430 are all stored in the memory as program units. The processor executes the program units stored in the memory to realize the corresponding functions.

[0071] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and battery power is determined by adjusting kernel parameters.

[0072] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0073] This invention provides a machine-readable storage medium storing a program that, when executed by a processor, implements the battery power determination method.

[0074] This invention provides a processor for running a program, wherein the program executes the battery power determination method during runtime.

[0075] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 3 As shown, the computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05, and a memory (not shown) connected via a system bus. The processor A01 provides computing and control capabilities. The memory includes internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 stored in the non-volatile storage medium A06. The network interface A02 is used for communication with external terminals via a network connection. When the computer program is executed by the processor A01, it implements a battery power determination method. The display screen A04 can be a liquid crystal display (LCD) or an e-ink display. The input device A05 can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0076] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0077] In one embodiment, the battery power determination device provided in this application can be implemented as a computer program, and the computer program can be implemented as follows: Figure 3 The device runs on the computer shown. The computer's memory can store the various program modules that make up the battery power determination device, for example, Figure 2 The acquisition module 410, calculation module 420, and determination module 430 are shown. The computer program comprised of these modules causes the processor to execute the steps in the battery power determination methods of the various embodiments of this application described in this specification.

[0078] Figure 3 The computer equipment shown can be used as follows Figure 2 The battery power determination device shown in the diagram executes step 210 (acquisition module 410), step 220 (calculation module 420), and step 230 (determination module 430).

[0079] This application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: Obtain the battery's current charge / discharge capacity, total cumulative charge capacity, design capacity, and degradation rate; Based on the battery's cumulative total charge capacity, design capacity, and degradation rate, the current actual total capacity of the battery is determined. The amount of electricity is obtained based on the current charge / discharge capacity of the battery and the current actual total capacity of the battery.

[0080] In one embodiment, determining the current actual total capacity of the battery based on its cumulative total charge capacity, design capacity, and degradation rate includes: The current battery cycle number is obtained based on the ratio of the battery's cumulative total charge capacity to the designed capacity. Based on the attenuation rate and the current number of battery cycles, the capacity reduction ratio is determined; Based on the capacity reduction ratio and the design capacity, the current actual total capacity of the battery is determined.

[0081] In one embodiment, obtaining the design capacity of the battery includes: Obtain a first capacity, which is the capacity that the battery gains during the charging process, from the preset voltage value to the end of charging. Based on the first capacity, the calculated total capacity of the battery is obtained; Based on the calculated total capacity of the battery, the theoretical design capacity of the battery is verified to obtain the design capacity of the battery.

[0082] In one embodiment, verifying the theoretical design capacity of the battery based on its calculated total capacity to obtain the battery's design capacity includes: The difference between the calculated total capacity of the battery and the theoretical design capacity of the battery is calculated to obtain the difference value; Based on the difference value, the theoretical design capacity of the battery is verified to obtain the design capacity of the battery.

[0083] In one embodiment, verifying the theoretical design capacity of the battery based on the difference value to obtain the design capacity of the battery includes: If the difference value is within a preset error range, the calculated capacity of the battery is taken as the design capacity of the battery.

[0084] In one embodiment, the preset error range includes a first preset error threshold and a second preset error threshold, wherein the first preset error threshold is smaller than the second preset error threshold; the method further includes: If the difference value is not greater than the first preset error threshold, the theoretical design capacity of the battery is updated based on the first preset error threshold to obtain the design capacity of the battery. If the difference value is greater than the second preset error threshold, the theoretical design capacity of the battery shall be used as the design capacity of the battery.

[0085] In one embodiment, after verifying the theoretical design capacity of the battery based on its calculated total capacity to obtain the battery's design capacity, the method further includes: A1: Determine whether the calculated total capacity of the battery has been updated, and if it is determined that the calculated total capacity of the battery has been updated, execute A2; A2: Calculate the difference between the updated calculated total capacity of the battery and the theoretical design capacity of the battery to obtain the updated difference value; A3: If the updated difference value is within the preset error range, the calculated capacity of the updated battery shall be used as the design capacity of the battery.

[0086] In one embodiment, the method further includes: If the updated difference value is not within the preset error range, the calculated capacity of the battery is re-acquired, and the process jumps to step A2.

[0087] In one embodiment, obtaining the battery degradation rate includes: Record the capacity and number of battery cycles during the two most recent charging cycles of the battery, from the preset voltage value to the end of charging, to obtain the first set of sampling data and the second set of sampling data. Based on the first set of sampling data and the second set of sampling data, the battery degradation rate is calculated.

[0088] In one embodiment, calculating the battery degradation rate based on the first set of sampling data and the second set of sampling data includes: Based on the capacity in the first set of sampled data and the capacity in the second set of sampled data, the capacity difference is obtained; Based on the number of battery cycles in the first set of sampled data and the number of battery cycles in the second set of sampled data, the difference in the number of cycles is obtained; The battery degradation rate is obtained based on the ratio of the capacity difference to the cycle count difference.

[0089] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0090] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0091] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0092] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0093] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0094] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0095] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0096] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0097] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for determining battery charge, characterized in that, include: Obtain the battery's current charge / discharge capacity, total cumulative charge capacity, design capacity, and degradation rate; Based on the battery's cumulative total charge capacity, design capacity, and degradation rate, the current actual total capacity of the battery is determined. The amount of electricity is obtained based on the current charge / discharge capacity of the battery and the current actual total capacity of the battery.

2. The battery charge determination method according to claim 1, characterized in that, The process of determining the current actual total capacity of the battery based on its cumulative total charge capacity, design capacity, and degradation rate includes: The current battery cycle number is obtained based on the ratio of the battery's cumulative total charge capacity to the designed capacity. Based on the attenuation rate and the current number of battery cycles, the capacity reduction ratio is determined; Based on the capacity reduction ratio and the design capacity, the current actual total capacity of the battery is determined.

3. The battery charge determination method according to claim 1, characterized in that, To obtain the battery's design capacity, including: Obtain a first capacity, which is the capacity that the battery gains during the charging process, from the preset voltage value to the end of charging. Based on the first capacity, the calculated total capacity of the battery is obtained; Based on the calculated total capacity of the battery, the theoretical design capacity of the battery is verified to obtain the design capacity of the battery.

4. The battery charge determination method according to claim 3, characterized in that, The step of verifying the theoretical design capacity of the battery based on its calculated total capacity to obtain the battery's design capacity includes: The difference between the calculated total capacity of the battery and the theoretical design capacity of the battery is calculated to obtain the difference value; Based on the difference value, the theoretical design capacity of the battery is verified to obtain the design capacity of the battery.

5. The battery charge determination method according to claim 4, characterized in that, The step of verifying the theoretical design capacity of the battery based on the difference value to obtain the design capacity of the battery includes: If the difference value is within a preset error range, the calculated capacity of the battery is taken as the design capacity of the battery.

6. The battery charge determination method according to claim 5, characterized in that, The preset error range includes a first preset error threshold and a second preset error threshold, wherein the first preset error threshold is less than the second preset error threshold. The method further includes: If the difference value is not greater than the first preset error threshold, the theoretical design capacity of the battery is updated based on the first preset error threshold to obtain the design capacity of the battery. If the difference value is greater than the second preset error threshold, the theoretical design capacity of the battery shall be used as the design capacity of the battery.

7. The battery charge determination method according to claim 3, characterized in that, After verifying the theoretical design capacity of the battery based on its calculated total capacity to obtain the battery's design capacity, the method further includes: A1: Determine whether the calculated total capacity of the battery has been updated, and if it is determined that the calculated total capacity of the battery has been updated, execute A2; A2: Calculate the difference between the updated calculated total capacity of the battery and the theoretical design capacity of the battery to obtain the updated difference value; A3: If the updated difference value is within the preset error range, the calculated capacity of the updated battery shall be used as the design capacity of the battery.

8. The battery charge determination method according to claim 7, characterized in that, The method further includes: If the updated difference value is not within the preset error range, the calculated capacity of the battery is re-acquired, and the process jumps to step A2.

9. The battery charge determination method according to claim 1, characterized in that, To obtain the battery degradation rate, including: Record the capacity and number of battery cycles during the two most recent charging cycles of the battery, from the preset voltage value to the end of charging, to obtain the first set of sampling data and the second set of sampling data. Based on the first set of sampling data and the second set of sampling data, the battery degradation rate is calculated.

10. The battery charge determination method according to claim 9, characterized in that, The calculation of the battery degradation rate based on the first set of sampling data and the second set of sampling data includes: Based on the capacity in the first set of sampled data and the capacity in the second set of sampled data, the capacity difference is obtained; Based on the number of battery cycles in the first set of sampled data and the number of battery cycles in the second set of sampled data, the difference in the number of cycles is obtained; The battery degradation rate is obtained based on the ratio of the capacity difference to the cycle count difference.

11. A battery charge determination device, characterized in that, include: The acquisition module is used to acquire the battery's current charge / discharge capacity, total cumulative charge capacity, design capacity, and degradation rate. The calculation module is used to determine the current actual total capacity of the battery based on the battery's cumulative total charge capacity, design capacity, and degradation rate. The determination module is used to obtain the power based on the current charge / discharge capacity of the battery and the current actual total capacity of the battery.

12. An electronic device, characterized in that, The electronic device includes: At least one processor; A memory connected to the at least one processor; The memory stores instructions executable by the at least one processor, which implements the battery power determination method according to any one of claims 1 to 10 by executing the instructions stored in the memory.

13. A machine-readable storage medium storing instructions thereon, characterized in that, When executed by a processor, this instruction causes the processor to be configured to perform the battery power determination method according to any one of claims 1 to 10.