Charging method and device, electronic equipment and computer readable storage medium

By dynamically determining the target voltage value of the battery based on its internal resistance, maximum charging voltage, and charging current during the lithium battery charging process, the problem of inaccurate voltage measurement caused by battery aging is solved, thereby extending battery life and improving charging safety.

CN121770131APending Publication Date: 2026-03-31ZHEJIANG SUNWODA ELECTRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-29
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing lithium battery charging solutions, the switching point from constant current charging to constant voltage charging is fixed. This cannot adapt to battery aging, which leads to inaccurate voltage measurement, rapid electrolyte decomposition, faster battery aging, and a shortened lifespan.

Method used

During the constant current charging stage, the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage is dynamically determined by acquiring the battery's internal resistance, maximum charging voltage, and charging current. When the actual battery voltage reaches the target voltage value, the battery switches to the constant voltage charging stage to avoid float charging and lithium plating, thus extending battery life.

Benefits of technology

By dynamically adjusting the switching points of the charging stages, overcharging and lithium plating of the battery are avoided, significantly extending the battery's lifespan while balancing charging speed and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121770131A_ABST
    Figure CN121770131A_ABST
Patent Text Reader

Abstract

The invention discloses a charging method and device, electronic equipment and a computer readable storage medium, and belongs to the field of batteries. The charging method comprises the steps that in the constant-current charging stage of a battery, target data of the battery are obtained, and the target data comprise the internal resistance value, the maximum charging voltage value in the charging process and the charging current value in the constant-current charging stage; based on the internal resistance value, the maximum charging voltage value and the charging current value, determining a target voltage value of the battery converted from a constant-current charging stage to a constant-voltage charging stage; and under the condition that the actual voltage of the battery is greater than or equal to the target voltage value, switching the battery from a constant-current charging stage to a constant-voltage charging stage. By adopting the scheme of the invention, the service life of the battery can be prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of batteries, and more particularly to a charging method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] In current lithium battery charging solutions, the switching point from constant current (CC) charging to constant voltage (CV) charging is usually a fixed state of charge (SOC) point (e.g., 80%) or a fixed voltage threshold (e.g., 8.8V). However, as batteries age, this fixed switching point from CC to CV charging may not match the aging battery, leading to inaccurate voltage measurements during charging. If the measured voltage is artificially high, exceeding safety limits, the electrolyte decomposition rate will accelerate, the battery aging rate will increase, and the battery lifespan will be shortened. Summary of the Invention

[0003] This application discloses a charging method, apparatus, electronic device, and computer-readable storage medium that can ensure the lifespan of a battery.

[0004] To solve the above problems, this application adopts the following technical solution: In a first aspect, embodiments of this application disclose a charging method, comprising: during a constant current charging phase of a battery, acquiring target data of the battery, wherein the target data includes an internal resistance value, a maximum charging voltage value during the charging process, and a charging current value during the constant current charging phase; determining a target voltage value for the battery to switch from the constant current charging phase to the constant voltage charging phase based on the internal resistance value, the maximum charging voltage value, and the charging current value; and switching the battery from the constant current charging phase to the constant voltage charging phase when the actual voltage of the battery is greater than or equal to the target voltage value.

[0005] Optionally, obtaining the internal resistance value of the battery includes: charging the battery with a preset pulse current at a first time interval; obtaining the voltage change value and current change value before and after charging with the preset pulse current; and determining the internal resistance value of the battery based on the voltage change value and the current change value.

[0006] Optionally, obtaining the maximum charging voltage value of the battery during the charging process includes: obtaining a preset maximum charging voltage value of the battery, a reference temperature value corresponding to the preset maximum charging voltage value, and an ambient temperature value where the battery is located; and determining the maximum charging voltage value of the battery during the charging process based on the preset maximum charging voltage value, the reference temperature value, and the ambient temperature value.

[0007] Optionally, the target data also includes the voltage change rate. After obtaining the target data of the battery, the method further includes: if the voltage change rate is greater than a first threshold, directly switching the battery from the constant current charging stage to the constant voltage charging stage.

[0008] Optionally, after switching the battery from the constant current charging stage to the constant voltage charging stage, the method further includes: when the battery is in the constant voltage charging stage and the charging current value has not dropped to the preset cutoff current value within a preset time, based on the preset adjustment value and the preset cutoff current value, increasing the cutoff current value according to a second time interval until the charging current value of the constant voltage charging stage is less than or equal to the cutoff current value.

[0009] Optionally, determining the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage based on the internal resistance value, the maximum charging voltage value, and the charging current value includes: determining the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage using the following formula; ,in, The target voltage value, This refers to the maximum charging voltage value of the battery during the charging process. This refers to the charging current value of the battery during the constant current charging phase. The value is the internal resistance of the battery.

[0010] Optionally, after acquiring the target data of the battery, the method further includes: generating and displaying a prompt message when the internal resistance value of the battery is greater than a second threshold, wherein the prompt message is used to indicate that the battery has failed.

[0011] Secondly, embodiments of this application disclose a charging device, comprising: an acquisition module, configured to acquire target data of the battery during a constant current charging phase, wherein the target data includes an internal resistance value, a maximum charging voltage value during the charging process, and a charging current value during the constant current charging phase; a determination module, configured to determine a target voltage value for the battery to switch from the constant current charging phase to the constant voltage charging phase based on the internal resistance value, the maximum charging voltage value, and the charging current value; and a switching module, configured to switch the battery from the constant current charging phase to the constant voltage charging phase when the actual voltage of the battery is greater than or equal to the target voltage value.

[0012] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0013] 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.

[0014] 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.

[0015] The technical solution adopted in this application can achieve the following beneficial effects: This application provides a charging method. During the constant current charging stage of a battery, target data of the battery is acquired. This target data includes the internal resistance value, the maximum charging voltage value during the charging process, and the charging current value during the constant current charging stage. Based on the internal resistance value, the maximum charging voltage value, and the charging current value, a target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage is determined. Then, if the actual voltage of the battery is greater than or equal to the target voltage value, the battery is switched from the constant current charging stage to the constant voltage charging stage. Based on the charging current value of the battery during the constant current charging stage and the internal resistance value of the battery, which reflects the aging state of the battery, this application can determine the voltage drop generated across the internal resistance of the battery during charging that matches the current aging state of the battery. Then, based on the voltage drop that matches the current aging state of the battery, the maximum charging voltage value of the battery during the charging process is corrected. This can obtain the target voltage value for the battery to switch from the CC charging stage to the CV charging stage that matches the current aging state of the battery. Switching from CC to CV based on the target voltage value that matches the current aging state of the battery can avoid float charging and prevent battery aging, thereby improving the battery's service life. Attached Figure Description

[0016] Figure 1 This is a schematic flowchart of a charging method disclosed in an embodiment of this application; Figure 2 This is a flowchart of a charging method disclosed in an embodiment of this application; Figure 3 This is an architectural diagram of a charging system disclosed in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a charging device disclosed in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0017] 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.

[0018] 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.

[0019] The 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.

[0020] This application discloses a charging method. Figure 1 This is a schematic flowchart of a charging method disclosed in an embodiment of this application. Figure 1 As shown, the method includes the following steps: S120. During the constant current charging phase of the battery, acquire the target data of the battery.

[0021] The target data includes the internal resistance value, the maximum charging voltage value during the charging process, and the charging current value during the constant current charging stage.

[0022] It should be noted that as the battery ages, its internal resistance will decrease. Increase. The maximum charging voltage of the battery during the charging process can be used as... This indicates that the charging current value of the battery during the constant current charging phase can be used... This indicates the maximum charging voltage value of the battery during the charging process. The switching voltage value for the battery from CC to CV can be set.

[0023] S140. Based on the internal resistance value, the maximum charging voltage value, and the charging current value, determine the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage.

[0024] As the battery ages, its internal resistance decreases. The increase is based on the charging current value of the battery during the constant current charging phase. And the battery's internal resistance value, which can reflect the battery's aging state. It can determine the voltage drop across the internal resistance of a battery that matches its current aging state during charging. Then, based on this voltage drop that matches the current aging state, it corrects the maximum charging voltage value of the battery during charging, thus obtaining the target voltage value for the battery to transition from the CC charging stage to the CV charging stage. Switching from CC to CV based on the target voltage value that matches the current aging state of the battery can reduce high-voltage stress time, avoid float charging and prevent battery aging, thereby improving battery life.

[0025] In addition, the solution proposed in this application dynamically determines the target voltage value for CC to CV conversion based on the aging state of the battery, which can solve the problems of overcharging, lithium plating and efficiency loss caused by fixing the CC to CV switching point, significantly extend the battery cycle life, and at the same time take into account charging speed and safety.

[0026] S160. If the actual voltage of the battery is greater than or equal to the target voltage value, the battery is switched from the constant current charging stage to the constant voltage charging stage.

[0027] The actual voltage of the battery Greater than or equal to the target voltage value In this case, switching the battery from the CC charging stage to the CV charging stage, and performing CC-CV switching based on the target voltage value determined in this scheme, can effectively suppress lithium plating and overcharging, thereby improving the battery's lifespan.

[0028] This application provides a charging method. During the constant current charging stage of a battery, target data of the battery is acquired. This target data includes the internal resistance value, the maximum charging voltage value during the charging process, and the charging current value during the constant current charging stage. Based on the internal resistance value, the maximum charging voltage value, and the charging current value, a target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage is determined. Then, if the actual voltage of the battery is greater than or equal to the target voltage value, the battery is switched from the constant current charging stage to the constant voltage charging stage. Based on the charging current value of the battery during the constant current charging stage and the internal resistance value of the battery, which reflects the aging state of the battery, this application can determine the voltage drop generated across the internal resistance of the battery during charging that matches the current aging state of the battery. Then, based on the voltage drop that matches the current aging state of the battery, the maximum charging voltage value of the battery during the charging process is corrected. This can obtain the target voltage value for the battery to switch from the CC charging stage to the CV charging stage that matches the current aging state of the battery. Switching from CC to CV based on the target voltage value that matches the current aging state of the battery can avoid float charging and prevent battery aging, thereby improving the battery's service life.

[0029] In one implementation, obtaining the internal resistance value of the battery may include: charging the battery with a preset pulse current at a first time interval; obtaining voltage change values ​​and current change values ​​before and after charging with the preset pulse current; and determining the internal resistance value of the battery based on the voltage change values ​​and the current change values.

[0030] For example, the first time interval can be 5 minutes, and the preset pulse current can be a short-time pulse current (e.g., the current I switches from 0.5C to 0.7C for 1 second). That is, a short-time pulse current can be injected into the battery every 5 minutes, and the voltage change ΔV and current change ΔI before and after the injection of the short-time pulse current can be measured to determine the internal resistance of the battery. =ΔV / ΔI. It should be noted that the specific value of the first time interval and the specific details of the preset pulse current can be set according to actual needs; the above example does not impose any specific limitations on this application.

[0031] It should be noted that when charging the battery using a preset pulse current, the constant current charging of the battery is interrupted.

[0032] In this application, the internal resistance value of the battery determined herein is used as the basis. Determining the target voltage value for the battery to transition from the CC charging stage to the CV charging stage can eliminate the influence of ohmic voltage drop.

[0033] In one implementation, after acquiring the target data of the battery, the method may further include: generating and displaying a prompt message when the internal resistance value of the battery is greater than a second threshold, wherein the prompt message is used to indicate that the battery has failed.

[0034] For example, the second threshold can be 200% of the initial value, which can be the internal resistance value when the battery is a fresh battery (i.e., has not yet aged).

[0035] In one implementation, obtaining the maximum charging voltage value of the battery during the charging process includes: obtaining a preset maximum charging voltage value of the battery, a reference temperature value corresponding to the preset maximum charging voltage value, and an ambient temperature value where the battery is located; and determining the maximum charging voltage value of the battery during the charging process based on the preset maximum charging voltage value, the reference temperature value, and the ambient temperature value.

[0036] For example, the reference temperature can be 25°C, and the maximum charging voltage corresponding to 25°C is used as the preset maximum charging voltage V. Ucl The greater the difference between other ambient temperature values ​​T and 25℃, the smaller the maximum charging voltage. It should be noted that the preset maximum charging voltage V... Ucl It can be set to the switching voltage between the CC charging stage and the CV charging stage at 25℃.

[0037] For example, the maximum charging voltage values ​​of the battery during the charging process under different ambient temperatures can be shown in Table 1.

[0038] Table 1

[0039] Wherein, k is a temperature coefficient. For example, k can be 3V / ℃ or 2V / ℃, and can be adjusted according to actual needs. This application does not make any specific limitation in this regard.

[0040] The solution proposed in this application determines different maximum charging voltage values ​​based on different ambient temperature values, and then determines the target voltage value for the battery to switch from the CC charging stage to the CV charging stage. Temperature compensation reduces the risk of battery degradation at high / low temperatures, supports safe charging in a wide temperature range of high and low temperatures, and improves the accuracy of full charge capacity.

[0041] In one implementation, the target data may further include the voltage change rate. After acquiring the target data of the battery, the method may further include: if the voltage change rate is greater than a first threshold, directly switching the battery from the constant current charging stage to the constant voltage charging stage.

[0042] When the rate of change of voltage dV / dt is greater than the first threshold, it indicates that the battery polarization is accelerated. At this time, the battery is forced to switch to the CV charging stage to reduce battery polarization and thus effectively suppress lithium plating and overcharging.

[0043] For example, the first threshold can be 15mV / min. It should be noted that the specific value of the first threshold can be set according to the battery model and actual needs.

[0044] In one implementation, after switching the battery from the constant current charging stage to the constant voltage charging stage, the method may further include: when the battery is in the constant voltage charging stage and the charging current value has not dropped to a preset cutoff current value within a preset time, based on a preset adjustment value and the preset cutoff current value, increasing the cutoff current value according to a second time interval until the charging current value in the constant voltage charging stage is less than or equal to the cutoff current value, thereby achieving adaptive adjustment of the cutoff current to avoid overcharging and ineffective float charging, and shortening the total charging time.

[0045] For example, the preset time can be 30 minutes, the preset cutoff current value can be 0.05C, the preset adjustment value can be 0.01C, and the second time interval can be 1 minute. That is, during the CV charging stage, if the current drops slowly and does not drop to 0.05C within 30 minutes, the cutoff current value is increased at a rate of 0.01C per minute on the basis of 0.05C until the charging current value during the CV charging stage is less than or equal to the cutoff current value.

[0046] In one implementation, determining the target voltage value for the battery to transition from the constant current charging stage to the constant voltage charging stage based on the internal resistance value, the maximum charging voltage value, and the charging current value may include: determining the target voltage value for the battery to transition from the constant current charging stage to the constant voltage charging stage using the following formula; ,in, The target voltage value, This refers to the maximum charging voltage value of the battery during the charging process. This refers to the charging current value of the battery during the constant current charging phase. The value is the internal resistance of the battery.

[0047] This application is based on the charging current value of the battery during the constant current charging phase. And the battery's internal resistance value, which can reflect the battery's aging state. It can determine the voltage drop across the internal resistance of a battery that matches its current aging state during charging, and then use the battery's maximum charging voltage value during charging. Subtracting the voltage drop that matches the current aging state of the battery, we can obtain the target voltage value for the battery to transition from the CC charging stage to the CV charging stage, which matches the current aging state of the battery. By switching from CC to CV based on the target voltage value that matches the current aging state of the battery, float charging can be avoided and battery aging can be prevented, thereby improving the battery's lifespan.

[0048] The charging method described in this application can be integrated into a low-cost microcontroller and is compatible with mainstream DC-DC charging chips.

[0049] like Figure 2 As shown, this application discloses a charging method that, during the constant current charging phase of the battery, acquires target data of the battery, including its internal resistance value. The maximum charging voltage during the charging process and the charging current during the constant current charging phase are based on the internal resistance value. The system determines the target voltage value for the battery to switch from the CC charging stage to the CV charging stage based on the maximum charging voltage value during the charging process and the charging current value during the constant current charging stage. If the actual battery voltage is greater than or equal to the target voltage value, the battery is switched from the CC charging stage to the CV charging stage. Additionally, this target data includes the voltage change rate; if the voltage change rate exceeds a first threshold, the battery is switched from the CC charging stage to the CV charging stage. If the battery is in the CV charging stage and the charging current value has not dropped to a preset cutoff current value within a preset time (i.e., the current drop rate exceeds the threshold), based on a preset adjustment value and a preset cutoff current value, the cutoff current value is increased at a second time interval until the charging current value in the CV charging stage is less than or equal to the cutoff current value, at which point charging ends.

[0050] The architecture diagram of the charging system involved in this application is as follows: Figure 3 As shown, the charging system includes a data acquisition layer, a core algorithm layer, a control execution layer, and a user interaction layer. The data acquisition layer may include a fuel meter, a voltage monitoring module, a current monitoring module, and a temperature monitoring module. The core algorithm layer may include an online internal resistance estimation module, a dynamic voltage threshold module, a voltage change rate monitoring module, an adaptive cutoff current module, and a temperature compensation module. The control execution layer may include a mode switching controller and a charging current regulator. The user interaction layer can be used for status display and parameter configuration.

[0051] The charging method provided in this application can be executed by a charging device. This application uses the example of a charging device executing the charging method to illustrate the charging device provided in this application.

[0052] Figure 4 This is a schematic diagram of the structure of a charging device disclosed in an embodiment of this application. Figure 4As shown, the charging device 400 includes: an acquisition module 410, a determination module 420, and a switching module 430.

[0053] In this application, the acquisition module 410 is used to acquire target data of the battery during the constant current charging stage, wherein the target data includes internal resistance value, maximum charging voltage value during the charging process, and charging current value during the constant current charging stage; the determination module 420 is used to determine the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage based on the internal resistance value, the maximum charging voltage value, and the charging current value; and the switching module 430 is used to switch the battery from the constant current charging stage to the constant voltage charging stage when the actual voltage of the battery is greater than or equal to the target voltage value.

[0054] In one implementation, the acquisition module 410 acquires the internal resistance value of the battery by: charging the battery with a preset pulse current at a first time interval; acquiring the voltage change value and current change value before and after charging with the preset pulse current; and determining the internal resistance value of the battery based on the voltage change value and the current change value.

[0055] In one implementation, the above-mentioned device further includes: a generation module, configured to generate and display a prompt message when the internal resistance value of the battery is greater than a second threshold after the target data of the battery is acquired, wherein the prompt message is used to indicate that the battery has failed.

[0056] In one implementation, the acquisition module 410 acquires the maximum charging voltage value of the battery during the charging process, including: acquiring a preset maximum charging voltage value of the battery, a reference temperature value corresponding to the preset maximum charging voltage value, and an ambient temperature value where the battery is located; and determining the maximum charging voltage value of the battery during the charging process based on the preset maximum charging voltage value, the reference temperature value, and the ambient temperature value.

[0057] In one implementation, the target data further includes the voltage change rate, and the switching module 430 is further configured to, after acquiring the target data of the battery, directly switch the battery from the constant current charging stage to the constant voltage charging stage if the voltage change rate is greater than a first threshold.

[0058] In one implementation, the above-mentioned device further includes: an adjustment module, configured to, after the battery is switched from a constant current charging stage to a constant voltage charging stage, when the battery is in the constant voltage charging stage and the charging current value has not dropped to a preset cutoff current value within a preset time, increase the cutoff current value according to a second time interval based on a preset adjustment value and the preset cutoff current value, until the charging current value of the constant voltage charging stage is less than or equal to the cutoff current value.

[0059] In one implementation, the determining module 420 determines the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage based on the internal resistance value, the maximum charging voltage value, and the charging current value, including: determining the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage using the following formula; ,in, The target voltage value, This refers to the maximum charging voltage value of the battery during the charging process. This refers to the charging current value of the battery during the constant current charging phase. The value is the internal resistance of the battery.

[0060] Optionally, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described charging method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0061] It should be noted that the electronic devices in the embodiments of this application include mobile electronic devices and non-mobile electronic devices.

[0062] 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 charging method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0063] 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.

[0064] 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 charging method described above.

[0065] 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.

[0066] 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 charging method, characterized in that, include: During the constant current charging phase of the battery, target data of the battery is acquired, including internal resistance, maximum charging voltage during the charging process, and charging current during the constant current charging phase. Based on the internal resistance value, the maximum charging voltage value, and the charging current value, the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage is determined. If the actual voltage of the battery is greater than or equal to the target voltage value, the battery is switched from the constant current charging stage to the constant voltage charging stage.

2. The method according to claim 1, characterized in that, Obtaining the internal resistance value of the battery includes: The battery is charged using a preset pulse current at a first time interval; Obtain the voltage and current changes before and after charging with the preset pulse current; The internal resistance of the battery is determined based on the voltage change value and the current change value.

3. The method according to claim 1, characterized in that, Obtaining the maximum charging voltage value of the battery during the charging process includes: Obtain the preset maximum charging voltage value of the battery, the reference temperature value corresponding to the preset maximum charging voltage value, and the ambient temperature value of the battery. Based on the preset maximum charging voltage value, the reference temperature value, and the ambient temperature value, the maximum charging voltage value of the battery during the charging process is determined.

4. The method according to claim 1, characterized in that, The target data also includes the voltage change rate, and after acquiring the target data of the battery, it further includes: If the voltage change rate is greater than the first threshold, the battery is directly switched from the constant current charging stage to the constant voltage charging stage.

5. The method according to claim 1, characterized in that, After switching the battery from the constant current charging stage to the constant voltage charging stage, the method further includes: When the battery is in the constant voltage charging stage and the charging current value does not drop to the preset cutoff current value within a preset time, the cutoff current value is increased according to the second time interval based on the preset adjustment value and the preset cutoff current value, until the charging current value in the constant voltage charging stage is less than or equal to the cutoff current value.

6. The method according to claim 1, characterized in that, Determining the target voltage value for the battery to transition from the constant current charging stage to the constant voltage charging stage based on the internal resistance value, the maximum charging voltage value, and the charging current value includes: The target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage is determined by the following formula. ,in, The target voltage value, This refers to the maximum charging voltage value of the battery during the charging process. This refers to the charging current value of the battery during the constant current charging phase. The value is the internal resistance of the battery.

7. The method according to claim 1, characterized in that, After acquiring the target data of the battery, the method further includes: If the internal resistance of the battery is greater than a second threshold, a prompt message is generated and displayed, wherein the prompt message is used to indicate that the battery has failed.

8. A charging device, characterized in that, include: The acquisition module is used to acquire target data of the battery during the constant current charging phase of the battery, wherein the target data includes internal resistance value, maximum charging voltage value during the charging process, and charging current value during the constant current charging phase. The determining module is used to determine the target voltage value for the battery to switch from the constant current charging stage to the constant voltage charging stage based on the internal resistance value, the maximum charging voltage value, and the charging current value. The switching module is used to switch the battery from the constant current charging stage to the constant voltage charging stage when the actual voltage of the battery is greater than or equal to the target voltage value.

9. 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 charging method as described in any one of claims 1-7.

10. 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 charging method as described in any one of claims 1-7.