A method, apparatus, device, and medium for controlling the charging of a battery.

By dynamically adjusting the boundary voltage and current of the battery charging system, the problem of current jumps during charging phase switching is solved, thereby improving the safety and efficiency of the battery charging process.

CN123074074APending Publication Date: 2026-11-10VOYAH AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610982805.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-02
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

Existing battery charging systems suffer from sudden changes in charging rate due to a single-dimensional threshold during charging phase switching, which affects cell lifespan and the stability of the charging process.

Method used

By acquiring the battery's temperature parameters and state of charge, the boundary voltage is dynamically adjusted, and the charging current is determined in conjunction with the real-time voltage, thus achieving multi-dimensional linkage control during the charging phase.

Benefits of technology

It suppresses sudden changes in charging current, improves the safety and stability of the charging process, and significantly improves charging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123074074A_ABST
    Figure CN123074074A_ABST
Patent Text Reader

Abstract

This application discloses a battery charging control method, apparatus, device, and medium. The battery includes at least two cells and at least two temperature sensors. The method includes: controlling battery charging in stages according to a preset cycle: in the first stage, a boundary voltage is determined based on temperature, and the charging current is determined by combining temperature and state of charge when the voltage does not exceed the boundary; in the second stage, the boundary voltage is re-determined based on temperature, and the charging current is determined by combining temperature and real-time voltage when the voltage exceeds the boundary. This application overcomes the problem of relying on a single dimension of voltage threshold for charging stage switching in existing solutions by dynamically determining the boundary voltage based on temperature parameters and combining maximum state of charge and real-time voltage monitoring to determine and dynamically adjust the charging current, thus achieving synergistic optimization of charging safety and charging efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery management technology, and in particular to a battery charging control method, apparatus, device and medium. Background Technology

[0002] Battery charging management is a core technology for the safe operation of power battery systems. A smooth current transition during charging is crucial for ensuring cell lifespan and thermal stability. The coordination between its control strategy and factors such as temperature, state of charge, and terminal voltage directly determines charging quality. This technology is widely used in power management for new energy vehicles and energy storage systems.

[0003] Currently, most battery charging systems employ a fixed charging strategy based on a single-dimensional threshold when performing charging control. The charging stages are switched in a step-like manner according to fixed boundaries, which causes the charging rate to jump during stage switching, affecting the cycle life of the battery cell and the stability of the charging process. Summary of the Invention

[0004] This application provides a battery charging control method, apparatus, device, and medium to solve the problem of sudden changes in charging rate during stage switching in the prior art.

[0005] The technical solution adopted in this application is as follows: In a first aspect, this application provides a charging control method for a battery, the battery comprising at least two cells and at least two temperature sensors, the method comprising: The battery's first temperature parameter, maximum state of charge, and first maximum voltage are acquired at each first preset time interval, and a first boundary voltage is determined based on the first temperature parameter; wherein, the maximum state of charge is determined based on the state of charge of each cell, and the maximum voltage is determined based on the voltage of each cell. If the first maximum voltage is less than or equal to the first boundary voltage, then the first charging current is determined based on the first temperature parameter and the maximum state of charge, and the battery is charged based on the first charging current. During the charging process of the battery based on the first charging current, the second temperature parameter and the second maximum voltage of the battery are acquired at second preset time intervals, and the second boundary voltage is determined based on the second temperature parameter. If the second maximum voltage is greater than the second boundary voltage, then the second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

[0006] In one alternative embodiment of the first aspect, if the second maximum voltage is greater than the second boundary voltage, the method further includes: If the second maximum voltage is detected to be less than or equal to the second boundary voltage, the second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

[0007] In one alternative of the first aspect, the first temperature parameter includes a first maximum temperature and a first minimum temperature detected by at least two temperature sensors; Determining the first boundary voltage based on the first temperature parameter includes: Based on the first mapping relationship, the first highest temperature, and the preset state of charge, a first voltage threshold is determined; wherein, the first mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. The second voltage threshold is determined based on the first mapping relationship, the first minimum temperature, and the preset state of charge. The smaller of the first voltage threshold and the second voltage threshold is used as the first boundary voltage.

[0008] In one alternative to the first aspect, determining the first charging current based on a first temperature parameter and a maximum state of charge includes: If the maximum state of charge is less than the preset state of charge, the maximum state of charge is taken as the target state of charge; otherwise, the preset state of charge is taken as the target state of charge. Based on the second mapping relationship, the first maximum temperature, and the target state of charge, the first charging rate is determined; wherein, the second mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a charging rate. The second charging rate is determined based on the second mapping relationship, the first minimum temperature, and the target state of charge; The smaller of the first charging rate and the second charging rate is taken as the target charging rate; The first charging current is determined based on the target charging rate.

[0009] In one alternative of the first aspect, the second temperature parameter includes a second maximum temperature and a second minimum temperature detected by at least two temperature sensors; Determining the second boundary voltage based on the second temperature parameter includes: Based on the third mapping relationship, the second highest temperature, and the preset state of charge, a third voltage threshold is determined; wherein, the third mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. Based on the third mapping relationship, the second minimum temperature, and the preset state of charge, the fourth voltage threshold is determined; The smaller of the third and fourth voltage thresholds is used as the second boundary voltage.

[0010] In one alternative to the first aspect, determining the second charging current based on a second temperature parameter and a second maximum voltage includes: The third charging rate is determined based on the fourth mapping relationship, the second highest temperature, and the second maximum voltage. The fourth mapping relationship includes multiple temperatures, each temperature corresponds to multiple combinations of voltage and charging rate, and each voltage and charging rate corresponds one-to-one at the corresponding temperature. The fourth charging rate is determined based on the fourth mapping relationship, the second minimum temperature, and the second maximum voltage. The smaller of the third and fourth charging rates is used as the target charging rate; The second charging current is determined based on the target charging rate.

[0011] In one alternative to the first aspect, determining the second charging current based on the target charging rate includes: Candidate charging currents are determined based on the target charging rate; The smaller of the candidate charging current and the first charging current is used as the second charging current.

[0012] Secondly, this application provides a battery charging control device, the battery including at least two cells and at least two temperature sensors, the device comprising: The first detection module is used to acquire the first temperature parameter, maximum state of charge and first maximum voltage of the battery at a first preset time interval, and determine the first boundary voltage based on the first temperature parameter; wherein, the maximum state of charge is determined based on the state of charge of each cell, and the maximum voltage is determined based on the voltage of each cell. The first charging module is used to determine the first charging current based on the first temperature parameter and the maximum state of charge if the first maximum voltage is less than or equal to the first boundary voltage, and to charge the battery based on the first charging current. The second detection module is used to acquire the second temperature parameter and the second maximum voltage of the battery at second preset time intervals during the charging process based on the first charging current, and to determine the second boundary voltage based on the second temperature parameter. The second charging module is used to determine a second charging current based on a second temperature parameter and a second maximum voltage if the second maximum voltage is greater than the second boundary voltage, and to charge the battery based on the second charging current.

[0013] In one alternative embodiment of the second aspect, the second charging module is specifically used for: If the second maximum voltage is greater than the second boundary voltage, then it also includes: If the second maximum voltage is detected to be less than or equal to the second boundary voltage, the second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

[0014] In one alternative of the second aspect, the first temperature parameter includes a first maximum temperature and a first minimum temperature detected by at least two temperature sensors; The first detection module is specifically used for: Determining the first boundary voltage based on the first temperature parameter includes: Based on the first mapping relationship, the first highest temperature, and the preset state of charge, a first voltage threshold is determined; wherein, the first mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. The second voltage threshold is determined based on the first mapping relationship, the first minimum temperature, and the preset state of charge. The smaller of the first voltage threshold and the second voltage threshold is used as the first boundary voltage.

[0015] In one alternative embodiment of the second aspect, the first charging module is specifically used for: Based on the first temperature parameter and the maximum state of charge, the first charging current is determined, including: If the maximum state of charge is less than the preset state of charge, the maximum state of charge is taken as the target state of charge; otherwise, the preset state of charge is taken as the target state of charge. Based on the second mapping relationship, the first maximum temperature, and the target state of charge, the first charging rate is determined; wherein, the second mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a charging rate. The second charging rate is determined based on the second mapping relationship, the first minimum temperature, and the target state of charge; The smaller of the first charging rate and the second charging rate is taken as the target charging rate; The first charging current is determined based on the target charging rate.

[0016] In one alternative of the second aspect, the second temperature parameter includes a second maximum temperature and a second minimum temperature detected by at least two temperature sensors; The second detection module is specifically used for: Determining the second boundary voltage based on the second temperature parameter includes: Based on the third mapping relationship, the second highest temperature, and the preset state of charge, a third voltage threshold is determined; wherein, the third mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. Based on the third mapping relationship, the second minimum temperature, and the preset state of charge, the fourth voltage threshold is determined; The smaller of the third and fourth voltage thresholds is used as the second boundary voltage.

[0017] In one alternative embodiment of the second aspect, the second charging module is specifically used for: The second charging current is determined based on the second temperature parameter and the second maximum voltage, including: The third charging rate is determined based on the fourth mapping relationship, the second highest temperature, and the second maximum voltage. The fourth mapping relationship includes multiple temperatures, each temperature corresponds to multiple combinations of voltage and charging rate, and each voltage and charging rate corresponds one-to-one at the corresponding temperature. The fourth charging rate is determined based on the fourth mapping relationship, the second minimum temperature, and the second maximum voltage. The smaller of the third and fourth charging rates is used as the target charging rate; The second charging current is determined based on the target charging rate.

[0018] In one alternative embodiment of the second aspect, the second charging module is specifically used for: Determining the second charging current based on the target charging rate includes: Candidate charging currents are determined based on the target charging rate; The smaller of the candidate charging current and the first charging current is used as the second charging current.

[0019] Thirdly, this application provides an electronic device including a memory and a processor. The memory is used to store computer programs or instructions that, when executed by the processor, implement the method described in the first aspect or any of the alternative solutions of the first aspect.

[0020] Fourthly, this application provides a computer-readable storage medium. The storage medium stores a computer program or instructions that, when executed by a processor, implement the method described in the first aspect or any of the alternative solutions to the first aspect.

[0021] The beneficial effects of the technical solutions provided in some embodiments of this specification include at least the following: This application obtains the battery's temperature parameters, maximum state of charge (SOC), and maximum voltage. Based on the temperature parameters, it dynamically determines the boundary voltage and, according to different charging stages, determines the charging current by combining the SOC and real-time voltage. Unlike existing fixed charging strategies based on a single-dimensional threshold, this scheme dynamically adjusts the voltage boundary according to temperature conditions and determines the charging current based on the SOC and real-time voltage at different stages. This achieves automatic linkage between charging stage switching and battery temperature, SOC, and terminal voltage. It allows the charging current to be smoothly adjusted based on multi-dimensional parameters during stage transitions, suppressing current surges caused by single-threshold step switching, enhancing the safety and stability of the charging process, and significantly improving the synergistic optimization level of charging safety and charging efficiency. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 A flowchart of a battery charging control method provided in an embodiment of this application; Figure 2 The temperature-state-voltage threshold mapping diagram provided for embodiments of this application; Figure 3 Temperature-state-charge-rate mapping diagram provided for embodiments of this application; Figure 4 This is a temperature-voltage-charge rate mapping diagram provided for an embodiment of this application; Figure 5 A schematic diagram of the structure of the battery charging control device provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0024] Embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0025] The accompanying drawings illustrate various structural schematics according to embodiments of the present disclosure. These drawings are not to scale, and some details have been enlarged for clarity, and some details may have been omitted. The shapes of the various regions and layers shown in the drawings, as well as their relative sizes and positional relationships, are merely exemplary and may deviate from reality due to manufacturing tolerances or technical limitations. Furthermore, those skilled in the art can design regions / layers with different shapes, sizes, and relative positions as needed.

[0026] The following is a brief explanation of the terms used in this application: BMS (Battery Management System): A core power management unit based on battery state perception and charge / discharge coordinated control technology. By collecting cell voltage, temperature and current parameters in real time and executing equalization and protection strategies, it realizes dynamic monitoring and energy optimization of the power battery pack's operating state. Integrated into the vehicle's power battery system, it improves battery safety and energy utilization efficiency.

[0027] VCU (Vehicle Control Unit): A central management unit based on multi-source information fusion and power coordination control technology of the whole vehicle. By receiving and parsing the status signals of each subsystem, it coordinates the issuance of control commands such as drive, braking and energy recovery. It is integrated into the vehicle's electronic and electrical architecture to achieve coordinated optimization of vehicle power output and energy consumption management.

[0028] With the rapid development of new energy vehicles and energy storage systems, and the continuous increase in demand for fast-charging battery technology, achieving precise matching between charging control strategies and battery temperature, state of charge (SOC), and terminal voltage has become an important technical direction for enhancing charging safety and improving battery energy replenishment efficiency. Currently, battery charging management systems generally adopt traditional technical architectures based on fixed voltage thresholds or constant charging currents. The inventors have discovered that in actual charging processes, the safe voltage boundary and the appropriate charging current of the battery differ significantly due to variations in ambient temperature and differences in cell SOC (such as low-temperature conditions, high SOC stages, and different aging levels). However, when dealing with these complex charging scenarios involving multi-temperature node monitoring, SOC assessment, and dynamic boundary adjustments, existing solutions still use a unified control mode of fixed voltage boundaries and a single charging current. This results in the risk of sudden current changes during charging phase transitions, insufficient safety margins under critical temperature conditions, and an inability to achieve real-time linkage response between battery status and charging control parameters.

[0029] To address the aforementioned technical problems, the inventive concept of this application is as follows: by acquiring the battery's temperature parameters, maximum state of charge, and maximum voltage according to a preset cycle, dynamically determining the boundary voltage based on the temperature parameters, and determining the charging current according to different charging stages in combination with the state of charge and real-time voltage, thereby achieving dynamic coordination and precise current control of charging stage transitions and multi-dimensional battery states. This overcomes the shortcomings of traditional fixed charging strategies that rely on a single dimension of voltage threshold for charging stage switching, resulting in a difficult transition of charging rate and a difficulty in balancing safety and efficiency. It ensures real-time synchronization of boundary determination and charging current adjustment under complex temperature conditions, improving the safety and energy replenishment efficiency of the charging process.

[0030] The technical solutions of this application and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0031] It should be noted that the executor of this application can be a control unit of the battery management system, such as a battery management system (BMS) controller, a vehicle control unit (VCU), a power domain controller, an on-board charger controller, etc.

[0032] refer to Figure 1 , Figure 1 A flowchart illustrating a battery charging control method provided in an embodiment of this application. Figure 1 As shown, the battery includes at least two cells and at least two temperature sensors, and the charging control method for the battery includes at least the following steps: S101: At each first preset time interval, the first temperature parameter, the maximum state of charge, and the first maximum voltage of the battery are acquired, and the first boundary voltage is determined based on the first temperature parameter.

[0033] Among them, the maximum state of charge is determined based on the state of charge of each cell, and the maximum voltage is determined based on the voltage of each cell.

[0034] Specifically, the safe charging limit of a battery varies at different temperatures. Therefore, it is necessary to first read the overall temperature of the battery using a temperature sensor, and then check the maximum remaining charge (i.e., maximum state of charge) and the maximum voltage (i.e., maximum voltage) of each cell. Then, based on the current temperature, a "safe voltage line" (i.e., the first boundary voltage) suitable for the current operating conditions is calculated as the basis for subsequent judgment on whether high-current charging can continue.

[0035] S103: If the first maximum voltage is less than or equal to the first boundary voltage, then the first charging current is determined based on the first temperature parameter and the maximum state of charge, and the battery is charged based on the first charging current.

[0036] Specifically, if the highest voltage of the battery cell has not yet reached the "safe voltage line," it means there is still ample room for charging. In this case, a suitable initial charging current can be determined by considering the battery temperature and the overall remaining charge. For example, when the temperature is low or the charge is relatively full, the current should be set more conservatively, and then the first stage of charging can begin with this current.

[0037] S105: During the charging process of the battery based on the first charging current, the second temperature parameter and the second maximum voltage of the battery are acquired at second preset time intervals, and the second boundary voltage is determined based on the second temperature parameter.

[0038] Specifically, battery temperature changes during charging, and the previously established "safe voltage line" may no longer be applicable. Therefore, it is necessary to periodically remeasure the temperature and maximum voltage, and recalculate a new "safe voltage line" based on the latest temperature to ensure that subsequent judgments are always based on the current actual temperature conditions.

[0039] S107: If the second maximum voltage is greater than the second boundary voltage, then the second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

[0040] Specifically, when the highest voltage of a battery cell is detected to have exceeded the new "safe voltage line," it indicates that continuing to charge at the first-stage charging current at this temperature is approaching the safety limit and poses an overvoltage risk, meaning the first-stage charging current needs to be adjusted. At this point, instead of relying on the remaining charge, a more precise and gentle second-stage charging current is determined based on the current temperature and actual voltage level to continue charging, thereby avoiding sudden changes in current.

[0041] Thus, this application dynamically calibrates the safety voltage boundary by temperature and determines the charging current by combining the state of charge and real-time voltage at different stages of charging. This achieves the linkage response between the switching of charging stages and the multi-dimensional state of the battery, overcoming the defect of step jump in charging current under a single fixed threshold. This makes the charging process more stable and controllable, taking into account both charging safety and charging efficiency.

[0042] In some embodiments, if the second maximum voltage is greater than the second boundary voltage, the method further includes: If the second maximum voltage is detected to be less than or equal to the second boundary voltage, the second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

[0043] Specifically, after entering the second stage of charging, if the highest voltage of the battery cell drops back below the safety line due to temperature changes or charging current adjustments, the system does not switch back to the first stage's current control method based on the state of charge. Instead, it continues to use the fine-tuning logic of the second stage, recalculating and maintaining the second charging current based on the current temperature and real-time voltage. This avoids the charging strategy from repeatedly switching due to small voltage fluctuations near the stage boundary.

[0044] In view of this, this embodiment avoids frequent back-and-forth switching near the boundary of the charging stage by maintaining the charging current determination logic based on temperature and real-time voltage after entering the second stage, suppresses the charging current oscillation caused by voltage fluctuations, and improves the stability and reliability of charging control.

[0045] In some embodiments, the first temperature parameter includes a first maximum temperature and a first minimum temperature detected by at least two temperature sensors; Determining the first boundary voltage based on the first temperature parameter includes: Based on the first mapping relationship, the first highest temperature, and the preset state of charge, a first voltage threshold is determined; wherein, the first mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. The second voltage threshold is determined based on the first mapping relationship, the first minimum temperature, and the preset state of charge. The smaller of the first voltage threshold and the second voltage threshold is used as the first boundary voltage.

[0046] Specifically, temperatures typically vary across different regions inside a battery, and both high and low temperatures can reduce the cell's safe voltage withstand capability. This embodiment uses multiple temperature sensors to obtain the current highest and lowest temperatures, and then combines these with a preset state-of-charge lookup mapping table to obtain the upper limit of the safe voltage for the high-temperature and low-temperature regions, respectively. Since the smaller of these two upper limits represents the most stringent voltage withstand constraint inside the battery, it is used as the first boundary voltage, essentially adopting the lower limit rather than the higher one. This uses the most unfavorable temperature condition to uniformly constrain the charging process, preventing any cell from exceeding its safe voltage due to localized extreme temperatures.

[0047] Therefore, this embodiment evaluates the extreme temperature values ​​separately and takes the most conservative upper voltage limit as the charging boundary, so that the boundary setting can adapt to the actual situation of uneven temperature distribution inside the battery. This overcomes the limitation that a single temperature sample cannot reflect local extreme temperatures, avoids the risk of local overcharging caused by uneven temperature, and improves the safety and reliability of charging control in a non-uniform temperature field.

[0048] It should be noted that the above first mapping relationship can be referenced. Figure 2, Figure 2 This is a temperature-state-voltage threshold mapping diagram provided for embodiments of this application. (See diagram below.) Figure 2 As shown, this mapping relationship uses temperature as the row and state of charge (SOC) as the column, with each cell corresponding to the intersection of temperature and SOC corresponding to a voltage threshold. When determining the boundary voltage, the highest and lowest temperatures are used in conjunction with the preset SOC to look up two voltage thresholds in this table. Since temperature affects the upper limit of the cell's safe withstand voltage, the smaller of these two thresholds is taken as the boundary voltage, effectively constraining the charging process under the most unfavorable temperature conditions. For example, with a preset SOC of 50%, the voltage threshold found at the lowest temperature of 20°C is 3843mV, and the voltage threshold found at the highest temperature of 25°C is 3878mV. The smaller of 3843mV is taken as the boundary voltage to ensure that even the cells in the lowest temperature region will not experience overvoltage.

[0049] In some embodiments, determining the first charging current based on a first temperature parameter and the maximum state of charge includes: If the maximum state of charge is less than the preset state of charge, the maximum state of charge is taken as the target state of charge; otherwise, the preset state of charge is taken as the target state of charge. Based on the second mapping relationship, the first maximum temperature, and the target state of charge, the first charging rate is determined; wherein, the second mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a charging rate. The second charging rate is determined based on the second mapping relationship, the first minimum temperature, and the target state of charge; The smaller of the first charging rate and the second charging rate is taken as the target charging rate; The first charging current is determined based on the target charging rate.

[0050] Specifically, when determining the initial charging current, the system first checks whether the battery's current total remaining capacity has exceeded a preset safe capacity threshold. If it hasn't, the actual remaining capacity is used for evaluation; if it has, the safe threshold is used, essentially making the assessment more conservative as the battery becomes more fully charged. Then, the highest and lowest internal battery temperatures are used, combined with the evaluated target capacity, to look up the corresponding charging rate. Since both high and low temperatures limit the maximum charging speed the battery can accept, the smaller of the rates obtained from these two temperatures represents the safe charging capability at the most demanding location within the battery. Finally, this most conservative rate is converted into current and used as the first-stage charging current, ensuring that no matter where the battery is at an extreme temperature, it won't be subjected to excessive current.

[0051] As can be seen, this embodiment determines the charging current through a dual "lower" mechanism—taking a conservative value for the state of charge and taking the most stringent rate for extreme temperatures—ensuring that the charging rate is always constrained by the most unfavorable operating point inside the battery. This overcomes the limitations of single temperature or single charge assessment, which cannot take into account local extreme conditions, and avoids the risk of local overcharging caused by uneven temperature or differences in state of charge between cells. It significantly improves the safety and reliability of determining the charging current under non-uniform operating conditions.

[0052] It should be noted that the above second mapping relationship can be referenced. Figure 3 , Figure 3 This is a temperature-state-charge-charge rate mapping diagram provided in an embodiment of this application. For example... Figure 3 As shown, this mapping relationship uses temperature as the row and state of charge (SCC) as the column, with each cell at the intersection of temperature and SCC corresponding to a charging rate. In practical applications, the highest and lowest internal temperatures of the battery are used, along with the target SCC, to look up two charging rates in this table. Since the temperature varies across different areas inside the battery, the safe charging capabilities at high and low temperatures also differ. The smaller of these two rates is chosen, determining the overall charging speed based on the most demanding location's tolerance, ensuring safe charging regardless of which cell is at an extreme temperature. For example, when the target SCC is 20% and the lowest temperature is 20°C, the calculated rate is 2.58C, while the rate at the highest temperature is 35°C, it is 2.95C. The smaller rate, 2.58C, is taken as the target charging rate and then converted into the first charging current.

[0053] In some embodiments, the second temperature parameter includes a second highest temperature and a second lowest temperature detected by at least two temperature sensors; Determining the second boundary voltage based on the second temperature parameter includes: Based on the third mapping relationship, the second highest temperature, and the preset state of charge, a third voltage threshold is determined; wherein, the third mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. Based on the third mapping relationship, the second minimum temperature, and the preset state of charge, the fourth voltage threshold is determined; The smaller of the third and fourth voltage thresholds is used as the second boundary voltage.

[0054] Specifically, after entering the second stage of charging, the battery's internal temperature distribution may change due to continuous energy input, and the safe voltage withstand capability of local high or low temperature regions will also change accordingly. This embodiment uses multiple temperature sensors to obtain the current highest and lowest temperatures, and combines them with a preset state-of-charge lookup mapping table to obtain the upper limit of the safe voltage corresponding to the high-temperature region and the low-temperature region, respectively. Since the smaller of these two upper limits represents the most stringent voltage withstand constraint inside the battery, it is used as the second boundary voltage. This is equivalent to continuing to constrain the charging process according to the principle of "choosing the lower limit over the higher one" based on the most unfavorable operating condition in the real-time temperature distribution, preventing any cell from exceeding the safe voltage due to extreme local temperature.

[0055] Therefore, this embodiment continuously evaluates the temperature extreme values ​​in the second stage of charging and takes the most conservative upper voltage limit as the dynamic charging boundary, so that the boundary setting of the second stage can track the changes in the internal temperature distribution of the battery in real time. This overcomes the limitation that a single temperature sampling cannot reflect the migration of local extreme temperatures during charging, avoids the risk of local overvoltage caused by uneven temperature during continuous charging, and improves the safety and stability of long-term charging control under dynamic non-uniform temperature field.

[0056] Similarly, the third mapping relationship mentioned above can also be referred to the previous one. Figure 2 .

[0057] In some embodiments, determining the second charging current based on a second temperature parameter and a second maximum voltage includes: The third charging rate is determined based on the fourth mapping relationship, the second highest temperature, and the second maximum voltage. The fourth mapping relationship includes multiple temperatures, each temperature corresponds to multiple combinations of voltage and charging rate, and each voltage and charging rate corresponds one-to-one at the corresponding temperature. The fourth charging rate is determined based on the fourth mapping relationship, the second minimum temperature, and the second maximum voltage. The smaller of the third and fourth charging rates is used as the target charging rate; The second charging current is determined based on the target charging rate.

[0058] Specifically, in the second stage, the battery voltage is already relatively high, making it easier to reach the safety limit if the charging current is not properly controlled. This embodiment uses multiple temperature sensors to obtain the current highest and lowest temperatures, and then uses each sensor to look up the corresponding mapping relationship with the currently measured highest voltage: in high-temperature and low-temperature regions, the same voltage level corresponds to different safe charging speeds, resulting in two charging rates after looking up the table. Since the tolerance of different regions inside the battery varies, the smaller of these two rates is taken as the target charging rate, which is then converted into the second charging current. This is similar to "identifying the weakest link"—determining the overall charging speed based on the tolerance of the most demanding location, ensuring safe charging at the current voltage level regardless of where inside the battery is at an extreme temperature.

[0059] Therefore, this embodiment, by using the extreme temperature value in conjunction with the real-time voltage to look up a table and take the most conservative multiplier in the second stage when the voltage is already in a high-sensitivity range, allows the determination of the charging current to simultaneously constrain the most unfavorable operating conditions of the battery's internal temperature distribution and the current actual voltage level. This overcomes the limitation that a single temperature assessment or a single voltage assessment cannot reflect the local extreme temperature differences in the high-voltage stage, avoids the risk of overcharging due to local temperature unevenness when the voltage is close to the boundary, and significantly improves the precision and safety of the second-stage charging control.

[0060] It should be noted that the above fourth mapping relationship can be referenced. Figure 4 , Figure 4 This is a temperature-voltage-charge rate mapping diagram provided for embodiments of this application. (See diagram below.) Figure 4 As shown, this mapping relationship uses temperature as the row and real-time voltage as the column, with each intersection cell of temperature and voltage corresponding to a charging rate. In the second stage, the highest and lowest temperatures are used, combined with the currently measured highest voltage, to look up the table and obtain two charging rates, then the smaller one is selected. Since the voltage in the table is usually a discrete value, when the actual measured highest voltage does not fall exactly on a voltage point in the table, linear interpolation is needed between two adjacent voltage points to obtain the corresponding charging rate. For example, when the highest voltage is 4300mV and the lowest temperature is 20°C, 4300mV is between 4253mV (corresponding to 0.40C) and 4304mV (corresponding to 0.31C), and the charging rate at this temperature is calculated through linear interpolation; while at the highest temperature of 25°C, 4300mV exactly corresponds to 0.40C, and the smaller of the two is taken as the target charging rate, which is then converted into the second charging current.

[0061] It is worth noting that the first, second, and third mapping relationships all use temperature and state of charge as index dimensions, with corresponding values ​​of voltage threshold and charging rate, respectively. Therefore, they are isomorphic at the data structure level and can be integrated into different data columns or different data pages of the same mapping relationship table to reduce redundant storage and unify the query interface. The fourth mapping relationship uses temperature and real-time voltage as index dimensions and can also be configured as an extended sub-table or independent data page of this mapping relationship table. This allows multiple mapping relationships to be unified into a single mapping relationship system at the engineering implementation level, facilitating data maintenance and version management.

[0062] In some embodiments, determining the second charging current based on the target charging rate includes: Candidate charging currents are determined based on the target charging rate; The smaller of the candidate charging current and the first charging current is used as the second charging current.

[0063] Specifically, after calculating a candidate charging current based on the target charging rate, it is not directly used as the charging current for the second stage. Instead, it is compared with the first charging current already determined in the first stage, and the smaller of the two is taken. This is equivalent to setting an "upper limit lock" for the second stage current—the second stage current will never exceed the first stage current, and even if temperature or voltage changes cause the table to suggest a larger current, the actual output will not rebound, fundamentally eliminating the possibility of a sudden increase in current during stage switching.

[0064] Based on this, this embodiment establishes a unidirectional constraint mechanism for the charging current during stage switching by comparing the candidate current of the second stage with the actual current of the first stage and taking the smaller one. This ensures that the charging current is only allowed to remain flat or decrease, avoiding the phenomenon of the charging current jumping and rebounding at the stage boundary due to changes in operating conditions. This achieves a smooth connection of the charging current during stage transition, suppresses the impact of sudden current changes on the battery cell, and improves the stability and safety of the charging process.

[0065] Based on the same technical concept, embodiments of this application also provide a battery charging control device, see reference. Figure 5 , Figure 5 This is a schematic diagram of the structure of a battery charging control device provided in an embodiment of this application. Figure 5 As shown, the battery includes at least two cells and at least two temperature sensors. The charging control device for the battery includes at least a first detection module 501, a first charging module 502, a second detection module 503, and a second charging module 504, wherein: The first detection module 501 is used to acquire the first temperature parameter, the maximum state of charge and the first maximum voltage of the battery at a first preset time interval, and to determine the first boundary voltage based on the first temperature parameter; wherein, the maximum state of charge is determined based on the state of charge of each cell and the maximum voltage is determined based on the voltage of each cell. The first charging module 502 is used to determine a first charging current based on a first temperature parameter and a maximum state of charge if the first maximum voltage is less than or equal to a first boundary voltage, and to charge the battery based on the first charging current. The second detection module 503 is used to acquire the second temperature parameter and the second maximum voltage of the battery at second preset time intervals during the charging process based on the first charging current, and to determine the second boundary voltage based on the second temperature parameter. The second charging module 504 is used to determine a second charging current based on a second temperature parameter and a second maximum voltage if the second maximum voltage is greater than the second boundary voltage, and to charge the battery based on the second charging current.

[0066] In some embodiments, the second charging module is specifically used for: If the second maximum voltage is greater than the second boundary voltage, then it also includes: If the second maximum voltage is detected to be less than or equal to the second boundary voltage, the second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

[0067] In some embodiments, the first temperature parameter includes a first maximum temperature and a first minimum temperature detected by at least two temperature sensors; The first detection module is specifically used for: Determining the first boundary voltage based on the first temperature parameter includes: Based on the first mapping relationship, the first highest temperature, and the preset state of charge, a first voltage threshold is determined; wherein, the first mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. The second voltage threshold is determined based on the first mapping relationship, the first minimum temperature, and the preset state of charge. The smaller of the first voltage threshold and the second voltage threshold is used as the first boundary voltage.

[0068] In some embodiments, the first charging module is specifically used for: Based on the first temperature parameter and the maximum state of charge, the first charging current is determined, including: If the maximum state of charge is less than the preset state of charge, the maximum state of charge is taken as the target state of charge; otherwise, the preset state of charge is taken as the target state of charge. Based on the second mapping relationship, the first maximum temperature, and the target state of charge, the first charging rate is determined; wherein, the second mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a charging rate. The second charging rate is determined based on the second mapping relationship, the first minimum temperature, and the target state of charge; The smaller of the first charging rate and the second charging rate is taken as the target charging rate; The first charging current is determined based on the target charging rate.

[0069] In some embodiments, the second temperature parameter includes a second highest temperature and a second lowest temperature detected by at least two temperature sensors; The second detection module is specifically used for: Determining the second boundary voltage based on the second temperature parameter includes: Based on the third mapping relationship, the second highest temperature, and the preset state of charge, a third voltage threshold is determined; wherein, the third mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. Based on the third mapping relationship, the second minimum temperature, and the preset state of charge, the fourth voltage threshold is determined; The smaller of the third and fourth voltage thresholds is used as the second boundary voltage.

[0070] In some embodiments, the second charging module is specifically used for: The second charging current is determined based on the second temperature parameter and the second maximum voltage, including: The third charging rate is determined based on the fourth mapping relationship, the second highest temperature, and the second maximum voltage. The fourth mapping relationship includes multiple temperatures, each temperature corresponds to multiple combinations of voltage and charging rate, and each voltage and charging rate corresponds one-to-one at the corresponding temperature. The fourth charging rate is determined based on the fourth mapping relationship, the second minimum temperature, and the second maximum voltage. The smaller of the third and fourth charging rates is used as the target charging rate; The second charging current is determined based on the target charging rate.

[0071] In some embodiments, the second charging module is specifically used for: Determining the second charging current based on the target charging rate includes: Candidate charging currents are determined based on the target charging rate; The smaller of the candidate charging current and the first charging current is used as the second charging current.

[0072] It should be noted that the charging control device of this battery can be used to implement any of the above method embodiments.

[0073] Based on the same technical concept, this application also provides an electronic device, see reference. Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device includes a memory 601 and a processor 602. The memory 601 is used to store computer instructions; when the processor 602 executes the computer instructions, it implements any of the above-described method embodiments.

[0074] The memory 601 includes at least one type of computer-readable storage medium, including flash memory, hard disk, multimedia card, random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), magnetic disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of an electronic device, such as the hard disk or memory of the electronic device. In other embodiments, the computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, secure digital card (SD card), flash memory card, etc., equipped on the electronic device. Of course, the computer-readable storage medium may include both internal storage units and external storage devices of the electronic device. In this embodiment, the computer-readable storage medium is typically used to store the operating system and various application software installed on the electronic device, such as the program code of the battery charging control method in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or will be output.

[0075] In some embodiments, processor 602 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chip. Processor 602 is typically used to control the overall operation of the electronic device, such as performing control and processing related to data interaction or communication with other entities. In this embodiment, processor 602 is used to run program code stored in memory 601 or process data.

[0076] Based on the same technical concept, this application also provides a computer-readable storage medium, which includes a computer program or instructions stored in the storage medium. When the computer program or instructions are executed by a processing device, they implement any of the above-described method embodiments. Further details can be found in the method embodiments, which will not be repeated here. In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), magnetic disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of an electronic device, such as the hard disk or memory of the electronic device. In other embodiments, the computer-readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard disk, a secure digital card (SD card), a flash memory card, etc., equipped on the electronic device. Of course, the computer-readable storage medium can also include both internal storage units and external storage devices of the electronic device. In this embodiment, the computer-readable storage medium is typically used to store the operating system and various application software installed on the electronic device, such as the program code of the battery charging control method in the embodiment. Furthermore, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or will be output.

[0077] The above description does not provide detailed technical specifications regarding the structure of each layer. However, those skilled in the art should understand that layers and regions of desired shapes can be formed using various technical means. Furthermore, to form the same structure, those skilled in the art can also design methods that are not entirely identical to those described above. Additionally, although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be advantageously combined.

[0078] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0079] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for controlling the charging of a battery, characterized in that, The battery includes at least two cells and at least two temperature sensors, and the method includes: The first temperature parameter, maximum state of charge, and first maximum voltage of the battery are acquired at each first preset time interval, and a first boundary voltage is determined based on the first temperature parameter; wherein, the maximum state of charge is determined based on the state of charge of each cell, and the maximum voltage is determined based on the voltage of each cell; If the first maximum voltage is less than or equal to the first boundary voltage, then based on the first temperature parameter and the maximum state of charge, a first charging current is determined, and the battery is charged based on the first charging current. During the charging process of the battery based on the first charging current, the second temperature parameter and the second maximum voltage of the battery are acquired at second preset time intervals, and the second boundary voltage is determined based on the second temperature parameter. If the second maximum voltage is greater than the second boundary voltage, then a second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

2. The method according to claim 1, characterized in that, If the second maximum voltage is greater than the second boundary voltage, the following steps are also included: If the second maximum voltage is detected to be less than or equal to the second boundary voltage, then the second charging current is determined based on the second temperature parameter and the second maximum voltage, and the battery is charged based on the second charging current.

3. The method according to claim 1, characterized in that, The first temperature parameter includes a first maximum temperature and a first minimum temperature detected by at least two temperature sensors; Determining the first boundary voltage based on the first temperature parameter includes: Based on the first mapping relationship, the first highest temperature, and the preset state of charge, a first voltage threshold is determined; wherein, the first mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. Based on the first mapping relationship, the first minimum temperature, and the preset state of charge, a second voltage threshold is determined; The smaller of the first voltage threshold and the second voltage threshold is used as the first boundary voltage.

4. The method according to claim 3, characterized in that, Determining the first charging current based on the first temperature parameter and the maximum state of charge includes: If the maximum state of charge is less than the preset state of charge, then the maximum state of charge is taken as the target state of charge; otherwise, the preset state of charge is taken as the target state of charge. Based on the second mapping relationship, the first highest temperature, and the target state of charge, a first charging rate is determined; wherein, the second mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a charging rate; Based on the second mapping relationship, the first minimum temperature, and the target state of charge, the second charging rate is determined; The smaller of the first charging rate and the second charging rate is taken as the target charging rate; The first charging current is determined based on the target charging rate.

5. The method according to claim 1, characterized in that, The second temperature parameter includes a second highest temperature and a second lowest temperature detected by at least two temperature sensors; The determination of the second boundary voltage based on the second temperature parameter includes: A third voltage threshold is determined based on the third mapping relationship, the second highest temperature, and the preset state of charge; wherein, the third mapping relationship includes multiple temperatures, each temperature corresponds to multiple states of charge, and each combination of temperature and state of charge corresponds to a voltage threshold. Based on the third mapping relationship, the second minimum temperature, and the preset state of charge, a fourth voltage threshold is determined; The smaller of the third voltage threshold and the fourth voltage threshold is used as the second boundary voltage.

6. The method according to claim 5, characterized in that, The step of determining the second charging current based on the second temperature parameter and the second maximum voltage includes: Based on the fourth mapping relationship, the second highest temperature, and the second maximum voltage, the third charging rate is determined; wherein, the fourth mapping relationship includes multiple temperatures, each temperature corresponds to multiple combinations of voltage and charging rate, and each voltage and charging rate corresponds one-to-one at the corresponding temperature; Based on the fourth mapping relationship, the second minimum temperature, and the second maximum voltage, the fourth charging rate is determined; The smaller of the third charging rate and the fourth charging rate is taken as the target charging rate; The second charging current is determined based on the target charging rate.

7. The method according to claim 6, characterized in that, Determining the second charging current based on the target charging rate includes: Candidate charging currents are determined based on the target charging rate; The smaller of the candidate charging current and the first charging current is taken as the second charging current.

8. A battery charging control device, characterized in that, The battery includes at least two cells and at least two temperature sensors, and the device includes: The first detection module is used to acquire the first temperature parameter, maximum state of charge and first maximum voltage of the battery at first preset time intervals, and determine the first boundary voltage based on the first temperature parameter; wherein, the maximum state of charge is determined based on the state of charge of each cell, and the maximum voltage is determined based on the voltage of each cell. A first charging module is configured to determine a first charging current based on the first temperature parameter and the maximum state of charge if the first maximum voltage is less than or equal to the first boundary voltage, and to charge the battery based on the first charging current. The second detection module is used to acquire the second temperature parameter and the second maximum voltage of the battery at second preset time intervals during the charging process of the battery based on the first charging current, and to determine the second boundary voltage based on the second temperature parameter. The second charging module is used to determine a second charging current based on the second temperature parameter and the second maximum voltage if the second maximum voltage is greater than the second boundary voltage, and to charge the battery based on the second charging current.

9. An electronic device, characterized in that, It includes a memory and a processor, the memory being used to store computer programs or instructions; when the computer programs or instructions are executed by the processor, the method of any one of claims 1-7 is implemented.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program or instructions, which, when executed by a processor, implement the method of any one of claims 1-7.