Battery charging method and device, electronic equipment and computer readable storage medium
By adjusting the charging voltage based on actual battery data, the problem of shortened battery life caused by aging was solved, resulting in extended battery life and improved charging efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-10
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, using a fixed voltage during the constant voltage charging phase of a battery leads to accelerated battery aging, shortened lifespan, and increased expansion rate.
By acquiring the battery's actual cycle count, usage time, and temperature data, the compensation voltage is determined, and the target charging voltage is adjusted based on the reference charging voltage to perform constant voltage charging of the battery.
Extend battery life, improve charging efficiency, shorten charging time, improve charger energy efficiency, and extend battery cycle life.
Smart Images

Figure CN121663001A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of batteries, and more particularly to a battery charging method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] In related technologies, a fixed voltage is usually used as the charging voltage for the battery during the constant voltage charging phase. However, as the battery ages, it will age. If the fixed voltage is always used as the charging voltage for the battery during the constant voltage charging phase, the battery's lifespan will decline rapidly, the battery's expansion rate will increase, and thus the battery's lifespan will be reduced. Summary of the Invention
[0003] This application discloses a battery charging method, apparatus, electronic device, and computer-readable storage medium that can increase battery lifespan.
[0004] To solve the above problems, this application adopts the following technical solution: In a first aspect, embodiments of this application disclose a battery charging method, comprising: acquiring target data of the battery at a first preset frequency, wherein the target data includes actual cycle count, actual usage time, and actual temperature data; determining a compensation voltage based on the target data and the battery's safe upper limit voltage; determining a target charging voltage based on a reference charging voltage and the compensation voltage; and charging the battery based on the target charging voltage during the constant voltage charging phase of the battery.
[0005] Secondly, embodiments of this application disclose a battery charging device, comprising: an acquisition module, configured to acquire target data of a battery at a first preset frequency, wherein the target data includes actual cycle count, actual usage time, and actual temperature data; a determination module, configured to determine a compensation voltage based on the target data and the battery's safe upper limit voltage; the determination module is further configured to determine a target charging voltage based on a reference charging voltage and the compensation voltage; and a charging module, configured to charge the battery based on the target charging voltage during the constant voltage charging phase of the battery.
[0006] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer-executable program or instructions, which, when executed by a computer, implement the steps of the method described in the first aspect.
[0008] Fifthly, embodiments of this application provide a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the steps of the method described in the first aspect.
[0009] The technical solution adopted in this application can achieve the following beneficial effects: This application provides a battery charging method. Target data of the battery is acquired at a first preset frequency. This target data includes the actual number of battery cycles, actual usage time, and actual temperature data. Based on the target data and the battery's safe upper limit voltage, a compensation voltage is determined. Based on a reference charging voltage and the compensation voltage, a target charging voltage is determined. During the constant-voltage charging phase of the battery, the battery is charged based on the target charging voltage. Because the target charging voltage in this application is obtained based on the compensation voltage and the reference charging voltage, the target charging voltage used to charge the battery matches the battery state, which can increase the battery's lifespan while ensuring charging efficiency. Attached Figure Description
[0010] Figure 1 This is a schematic flowchart of a battery charging method disclosed in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a battery charging device disclosed in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation
[0011] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0012] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the electrically connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0013] The battery charging method, apparatus, electronic device, and computer-readable storage medium disclosed in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0014] This application discloses a battery charging method. Figure 1 This is a schematic flowchart of a battery charging method disclosed in an embodiment of this application. Figure 1 As shown, the method includes the following steps: S120. Obtain target data of the battery according to a first preset frequency, wherein the target data includes the actual number of cycles N, the actual usage time T_use, and the actual temperature data T.
[0015] For example, the first preset frequency can be 250ms. The number of cycles refers to the number of complete charge and discharge cycles of the battery, the usage time refers to the cumulative usage hours of the battery, and the temperature data refers to the measurement value of a single temperature probe.
[0016] It should be noted that the specific values of the target data of the battery obtained each time according to the first preset frequency are different.
[0017] S140. Determine the compensation voltage based on the target data and the safe upper limit voltage of the battery.
[0018] The upper limit voltage of a battery is a set voltage that ensures the battery will not be overcharged. Charging at this voltage will prevent the battery from catching fire or exploding in the event of an accident. For example, the upper limit voltage of a battery can be 50mV.
[0019] Using the solution of this application, the compensation voltage can be determined based on the actual number of battery cycles, actual usage time, actual temperature data, and safe upper limit voltage.
[0020] In one implementation, the compensation voltage can be determined based on the battery's actual cycle count, cycle life coefficient k1, actual usage time, calendar life coefficient k2, actual temperature data, and safe upper limit voltage, thereby improving the accuracy of the determined compensation voltage. Here, the battery's cycle life coefficient k1 reflects the aging of the battery during use, and the battery's calendar life coefficient k2 reflects the aging of the battery during rest. The cycle life coefficient k1 and the calendar life coefficient k2 are different for different batteries.
[0021] S160. Determine the target charging voltage based on the reference charging voltage and the compensation voltage.
[0022] In this application, the reference charging voltage is a set value. For example, the reference charging voltage can be 4.2V to 4.3V.
[0023] In this application, the target charging voltage can be obtained by adding the compensation voltage determined above to the reference charging voltage.
[0024] S180. During the constant voltage charging phase of the battery, the battery is charged based on the target charging voltage.
[0025] In this application, a compensation voltage is determined based on data reflecting the battery's state, such as the actual number of battery cycles, actual usage time, actual temperature data, and safe upper limit voltage. This compensation voltage is then used to boost the reference charging voltage to obtain the target charging voltage. During the constant-voltage charging phase, the battery is charged based on this target charging voltage. The target charging voltage used in this application matches the battery's state, ensuring charging efficiency while increasing battery lifespan. Furthermore, because this application uses a compensation voltage to boost the reference charging voltage to obtain the target charging voltage, the charging current is increased, thereby improving the charger's conversion efficiency (PWM (Pulse Width Modulation) characteristics). Using this solution, the overall charging time can be shortened by 12%-18%, charger efficiency improved by 8%-15%, and battery cycle life extended.
[0026] In this application, the charging cut-off current corresponding to each charging voltage needs to be determined based on actual test results to ensure that the battery is not overcharged. Furthermore, the charging cut-off current is the current at which the battery is charged to a capacity equal to its normal charging capacity using the adjusted charging voltage.
[0027] This application provides a battery charging method. Target data of the battery is acquired at a first preset frequency. This target data includes the actual number of battery cycles, actual usage time, and actual temperature data. Based on the target data and the battery's safe upper limit voltage, a compensation voltage is determined. Based on a reference charging voltage and the compensation voltage, a target charging voltage is determined. During the constant-voltage charging phase of the battery, the battery is charged based on the target charging voltage. Because the target charging voltage in this application is obtained based on the compensation voltage and the reference charging voltage, the target charging voltage used to charge the battery matches the battery state, which can increase the battery's lifespan while ensuring charging efficiency.
[0028] In this embodiment of the application, determining the compensation voltage based on the target data and the battery's safe upper limit voltage may include: determining the actual maximum compensation value corresponding to the actual number of cycles based on the actual number of cycles and the correspondence between the number of cycles and the maximum compensation value; determining the actual temperature compensation coefficient corresponding to the actual temperature data based on the actual temperature data and the correspondence between the temperature data and the temperature compensation coefficient; and determining the compensation voltage based on the actual maximum compensation value, the actual number of cycles, the actual usage time, the actual temperature compensation coefficient, and the battery's safe upper limit voltage.
[0029] For example, the correspondence between the number of cycles and the maximum compensation value can be as follows: when the number of cycles is less than or equal to 800 (new battery), the corresponding maximum compensation value is 80mV; when the number of cycles is greater than 800, the corresponding maximum compensation value drops to 60mV; when the number of cycles is greater than 1200, the corresponding maximum compensation value drops to 40mV.
[0030] For example, the correspondence between temperature data and temperature compensation coefficient can be as follows: when the temperature data is less than 10℃, the corresponding temperature compensation coefficient is 0.3; when the temperature data is greater than or equal to 10℃ and less than or equal to 40℃, the corresponding temperature compensation coefficient is 1.0; when the temperature data is greater than 40℃ and less than or equal to 45℃, the corresponding temperature compensation coefficient is 0.5; and when the temperature data is greater than 45℃, the corresponding temperature compensation coefficient is 0.
[0031] For example, the compensation voltage = min(actual maximum compensation value × (1 - (k1 × (actual number of cycles / 1000) + k2 × (actual usage time / 1000))), actual temperature compensation coefficient × safe upper limit voltage), for example, k1 = 0.4, k2 = 0.1.
[0032] In one implementation, determining the compensation voltage based on the actual maximum compensation value, the actual number of cycles, the actual usage time, the actual temperature compensation coefficient, and the battery's safe upper limit voltage may include: determining a first compensation value based on the actual maximum compensation value, the actual number of cycles, and the actual usage time; determining a second compensation value based on the actual temperature compensation coefficient and the battery's safe upper limit voltage; and determining the compensation voltage based on the first compensation value and the second compensation value.
[0033] For example, the first compensation value = actual maximum compensation value × (1 - (k1 × (actual number of cycles / 1000) + k2 × (actual usage time / 1000)). The second compensation value = actual temperature compensation coefficient × safe upper limit voltage.
[0034] In one implementation, determining the compensation voltage based on the first compensation value and the second compensation value may include: determining a target compensation value as the compensation voltage, wherein the target compensation value is the minimum value among the first compensation value and the second compensation value.
[0035] For example, the compensation voltage = min(first compensation value, second compensation value).
[0036] In one implementation, determining the first compensation value based on the actual maximum compensation value, the actual number of cycles, and the actual usage time may include: determining an aging factor corresponding to the battery based on the actual number of cycles and the actual usage time; and determining the first compensation value based on the actual maximum compensation value and the aging factor.
[0037] For example, the aging factor = k1 × (actual number of cycles / 1000) + k2 × (actual usage time / 1000), and the first compensation value = actual maximum compensation value × (1 - aging factor).
[0038] In one implementation, the step of charging the battery based on the target charging voltage during the constant voltage charging phase of the battery may include: during the constant voltage charging phase of the battery, while charging the battery based on the target charging voltage, obtaining the maximum voltage difference between the battery cells at a second preset frequency; and if the maximum voltage difference between the battery cells is greater than a preset threshold, charging the battery based on the reference charging voltage to achieve anomaly detection and ensure charging safety.
[0039] For example, the specific value of the second preset frequency can be set according to actual needs.
[0040] This application provides a battery charging method. The correspondence between the number of cycles and the maximum compensation value is as follows: when the number of cycles is less than or equal to 800, the corresponding maximum compensation value is 80mV; when the number of cycles is greater than 800, the corresponding maximum compensation value decreases to 60mV; when the number of cycles is greater than 1200, the corresponding maximum compensation value decreases to 40mV. The correspondence between temperature data and temperature compensation coefficient is as follows: when the temperature data is less than 10℃, the corresponding temperature compensation coefficient is 0.3; when the temperature data is greater than or equal to 10℃ and less than or equal to 40℃, the corresponding temperature compensation coefficient is 1.0; when the temperature data is greater than 40℃ and less than or equal to 45℃, the corresponding temperature compensation coefficient is 0.5; when the temperature data is greater than 45℃, the corresponding temperature compensation coefficient is 0. This application acquires target data of the battery according to a first preset frequency. The target data includes the actual number of cycles, the actual usage time, and the actual temperature data. The compensation voltage is calculated as min(actual maximum compensation value × (1 - (k1 × (actual number of cycles / 1000) + k2 × (actual usage time / 1000))), actual temperature compensation coefficient × safe upper limit voltage).
[0041] The following example, using a reference charging voltage of 4.40V, illustrates how this application determines the compensation voltage and the target charging voltage:
[0042] When using the solution described in this application, voltage compensation is disabled when the actual battery temperature exceeds 45°C, and the battery is charged based on a reference charging voltage. By adopting the solution described in this application, the current during the constant voltage stage is increased by 20%-30%.
[0043] The battery charging method provided in this application can be executed by a battery charging device. This application uses a battery charging device executing the battery charging method as an example to illustrate the battery charging device provided in this application.
[0044] Figure 2 This is a schematic diagram of the structure of a battery charging device disclosed in an embodiment of this application. Figure 2 As shown, the battery charging device 200 includes: an acquisition module 210, a determination module 220, and a charging module 230.
[0045] In this application, the acquisition module 210 is used to acquire target data of the battery at a first preset frequency, wherein the target data includes actual cycle count, actual usage time, and actual temperature data; the determination module 220 is used to determine a compensation voltage based on the target data and the battery's safe upper limit voltage; the determination module 220 is also used to determine a target charging voltage based on a reference charging voltage and the compensation voltage; and the charging module 230 is used to charge the battery based on the target charging voltage during the constant voltage charging phase of the battery.
[0046] In one implementation, the determining module 220 determines the compensation voltage based on the target data and the battery's safe upper limit voltage, including: determining the actual maximum compensation value corresponding to the actual number of cycles based on the actual number of cycles and the correspondence between the number of cycles and the maximum compensation value; determining the actual temperature compensation coefficient corresponding to the actual temperature data based on the actual temperature data and the correspondence between the temperature data and the temperature compensation coefficient; and determining the compensation voltage based on the actual maximum compensation value, the actual number of cycles, the actual usage time, the actual temperature compensation coefficient, and the battery's safe upper limit voltage.
[0047] In one implementation, the determining module 220 determines a compensation voltage based on the actual maximum compensation value, the actual number of cycles, the actual usage time, the actual temperature compensation coefficient, and the battery's safe upper limit voltage, including: determining a first compensation value based on the actual maximum compensation value, the actual number of cycles, and the actual usage time; determining a second compensation value based on the actual temperature compensation coefficient and the battery's safe upper limit voltage; and determining a compensation voltage based on the first compensation value and the second compensation value.
[0048] In one implementation, the determining module 220 determines the compensation voltage based on the first compensation value and the second compensation value, including: determining a target compensation value as the compensation voltage, wherein the target compensation value is the minimum value among the first compensation value and the second compensation value.
[0049] In one implementation, the determining module 220 determines a first compensation value based on the actual maximum compensation value, the actual number of cycles, and the actual usage time, including: determining an aging factor corresponding to the battery based on the actual number of cycles and the actual usage time; and determining the first compensation value based on the actual maximum compensation value and the aging factor.
[0050] In one implementation, the charging module 230 charges the battery based on the target charging voltage during the constant voltage charging phase of the battery, including: during the constant voltage charging phase of the battery, while charging the battery based on the target charging voltage, obtaining the maximum voltage difference between the battery cells at a second preset frequency; and when the maximum voltage difference between the battery cells is greater than a preset threshold, charging the battery based on the reference charging voltage.
[0051] Optionally, such as Figure 3 As shown, this application embodiment also provides an electronic device 300, including a processor 301 and a memory 302. The memory 302 stores a program or instructions that can run on the processor 301. When the program or instructions are executed by the processor 301, they implement the various steps of the above-described battery charging method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0052] It should be noted that the electronic devices in the embodiments of this application include mobile electronic devices and non-mobile electronic devices.
[0053] This application also provides a computer-readable storage medium storing a computer-executable program or instructions. When the computer-executable program or instructions are executed by a computer, they implement the various processes of the above-described battery charging method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0054] The computer-readable storage medium may be a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0055] This application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the steps of the battery charging method described above.
[0056] The above embodiments of this application focus on describing the differences between the various embodiments. As long as the different optimization features between the various embodiments are not contradictory, they can be combined to form a better embodiment. For the sake of brevity, they will not be described in detail here.
[0057] The above description is merely an embodiment of this application and is 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 battery charging method, characterized in that, include: The target data of the battery is acquired according to a first preset frequency, wherein the target data includes the actual number of cycles, the actual usage time, and the actual temperature data; Based on the target data and the battery's safe upper limit voltage, determine the compensation voltage; The target charging voltage is determined based on the reference charging voltage and the compensation voltage. During the constant voltage charging phase of the battery, the battery is charged based on the target charging voltage.
2. The method according to claim 1, characterized in that, The determination of the compensation voltage based on the target data and the battery's safe upper limit voltage includes: Based on the actual number of loops and the correspondence between the number of loops and the maximum compensation value, the actual maximum compensation value corresponding to the actual number of loops is determined; Based on the actual temperature data and the correspondence between the temperature data and the temperature compensation coefficient, the actual temperature compensation coefficient corresponding to the actual temperature data is determined. The compensation voltage is determined based on the actual maximum compensation value, the actual number of cycles, the actual usage time, the actual temperature compensation coefficient, and the battery's safe upper limit voltage.
3. The method according to claim 2, characterized in that, The determination of the compensation voltage based on the actual maximum compensation value, the actual number of cycles, the actual usage time, the actual temperature compensation coefficient, and the battery's safe upper limit voltage includes: The first compensation value is determined based on the actual maximum compensation value, the actual number of cycles, and the actual usage time. The second compensation value is determined based on the actual temperature compensation coefficient and the safe upper limit voltage of the battery. The compensation voltage is determined based on the first compensation value and the second compensation value.
4. The method according to claim 3, characterized in that, The step of determining the compensation voltage based on the first compensation value and the second compensation value includes: The target compensation value is determined as the compensation voltage, wherein the target compensation value is the minimum value between the first compensation value and the second compensation value.
5. The method according to claim 3, characterized in that, The determination of the first compensation value based on the actual maximum compensation value, the actual number of cycles, and the actual usage time includes: Based on the actual number of cycles and the actual usage time, determine the aging factor corresponding to the battery; Based on the actual maximum compensation value and the aging factor, a first compensation value is determined.
6. The method according to claim 1, characterized in that, The constant-voltage charging phase of the battery, based on the target charging voltage, involves charging the battery, including: During the constant voltage charging phase of the battery, while charging the battery based on the target charging voltage, the maximum voltage difference between the battery cells is obtained at a second preset frequency. When the maximum voltage difference between the cells is greater than a preset threshold, the battery is charged based on the reference charging voltage.
7. A battery charging device, characterized in that, include: The acquisition module is used to acquire target data of the battery at a first preset frequency, wherein the target data includes the actual number of cycles, the actual usage time, and the actual temperature data; The determination module is used to determine the compensation voltage based on the target data and the safe upper limit voltage of the battery; The determining module is further configured to determine the target charging voltage based on the reference charging voltage and the compensation voltage; A charging module is used to charge the battery based on the target charging voltage during the constant voltage charging phase of the battery.
8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the battery charging method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer-executable program or instructions, which, when executed by a computer, implement the steps of the battery charging method as described in any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions that, when executed by a computer, cause the computer to perform the steps of the battery charging method as described in any one of claims 1-6.