Charging control method and device, equipment and storage medium
By obtaining the battery impedance and the number of charge and discharge cycles, the target compensation voltage is determined and the charging cutoff voltage is compensated, and the problem of battery expansion prevention in the prior art is not safe and effective, and a safer and more effective battery charging control is achieved.
Patent Information
- Application Number
- CN202510288674.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-06-20
AI Technical Summary
The prior art is not safe and effective in preventing battery expansion, and the traditional way of adjusting the charging cutoff voltage has limitations.
By obtaining the first compensation voltage corresponding to the current battery impedance of the battery and the second compensation voltage corresponding to the number of charge and discharge cycles, the target compensation voltage is determined, and the charging cutoff voltage of the battery is compensated according to the target compensation voltage, and the compensated charging cutoff voltage is obtained.
It realizes a safer and more effective prevention of battery expansion. By taking into account the battery impedance and the number of charge and discharge cycles, dynamically adjusting the charging cut-off voltage to adapt to different usage scenarios.
Smart Images

Figure CN120185140A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging technologies, and in particular, to a charging control method, apparatus, device, and storage medium. Background Art
[0002] With the development of battery and charging technologies, more and more devices are equipped with batteries for use. During the use of the battery, the battery may expand. In traditional technologies, the problem of battery expansion is alleviated by adjusting the charging cut-off voltage. However, the current method of adjusting the charging cut-off voltage has certain limitations and is not safe and effective enough in preventing battery expansion. Summary of the Invention
[0003] Based on this, in view of the above technical problems, it is necessary to provide a charging control method, apparatus, device, and storage medium that can safely and effectively prevent battery expansion.
[0004] In a first aspect, this application provides a charging control method. The method is applied to an electronic device, and the electronic device includes a battery. The method includes:
[0005] During the process of charging the battery, obtain a first compensation voltage corresponding to the current battery impedance of the battery and a second compensation voltage corresponding to the number of charge-discharge cycles of the battery;
[0006] Determine a target compensation voltage according to the first compensation voltage and the second compensation voltage;
[0007] Compensate the charging cut-off voltage of the battery according to the target compensation voltage to obtain a compensated charging cut-off voltage.
[0008] In one embodiment, determining a target compensation voltage according to the first compensation voltage and the second compensation voltage includes:
[0009] Determine the smaller value of the first compensation voltage and the second compensation voltage as the target compensation voltage.
[0010] In one embodiment, compensating the charging cut-off voltage of the battery according to the target compensation voltage to obtain a compensated charging cut-off voltage includes:
[0011] Obtain the initial charging cut-off voltage of the battery;
[0012] Determine the compensated charging cut-off voltage according to the initial charging cut-off voltage and the target compensation voltage.
[0013] In one embodiment, determining the compensated charging cut-off voltage according to the initial charging cut-off voltage and the target compensation voltage includes:
[0014] Determine the difference between the initial charge cut-off voltage and the target compensation voltage as the compensated charge cut-off voltage.
[0015] In one embodiment, the method further includes:
[0016] Determine the charging mode; the charging mode is determined according to the user's usage habits and the type of charging scenario;
[0017] Adjust the compensated charge cut-off voltage according to the charging mode to charge the battery.
[0018] In one embodiment, the charging mode is the first charging mode or the second charging mode. The first charging mode is related to the battery's endurance time, and the second charging mode is related to the battery's lifespan;
[0019] Adjusting the compensated charge cut-off voltage according to the charging mode includes:
[0020] If the charging mode is the first charging mode, increase the compensated charge cut-off voltage;
[0021] If the charging mode is the second charging mode, decrease the compensated charge cut-off voltage.
[0022] In one embodiment, the method further includes:
[0023] Obtain the battery impedance through an application program.
[0024] In one embodiment, obtaining the battery impedance through an application program includes:
[0025] Call the electrochemical impedance spectroscopy (EIS) analysis through the application program to obtain the initial impedance of the battery within a preset time window;
[0026] Normalize the initial impedance to obtain the battery impedance.
[0027] In one embodiment, before obtaining the initial impedance of the battery within a preset time window, it includes:
[0028] Determine that the current step sequence and voltage step sequence of the battery fluctuate within a preset threshold range.
[0029] In one embodiment, normalizing the initial impedance to obtain the battery impedance includes:
[0030] Obtain the current temperature and current power of the electronic device;
[0031] Normalize the initial impedance according to the current temperature and current power, as well as the preset target temperature and target power, to obtain the battery impedance.
[0032] In one embodiment, the initial impedance is normalized according to the current temperature, the current power, the preset target temperature, and the target power to obtain the battery impedance, including:
[0033] Determine the temperature normalization value according to the initial impedance, the current temperature, and the target temperature;
[0034] Obtain the battery impedance according to the temperature normalization value, the current power, and the target power.
[0035] In one embodiment, the value of the first compensation voltage is related to the numerical interval to which the battery impedance belongs; the value of the second compensation voltage is related to the numerical interval to which the number of charge and discharge cycles belongs.
[0036] In one embodiment, obtaining the first compensation voltage corresponding to the current battery impedance of the battery and the second compensation voltage corresponding to the number of charge and discharge cycles of the battery includes:
[0037] Obtain a first target array and a second target array; the first target array includes the correspondence between each numerical interval corresponding to the battery impedance and the first compensation voltage, and the second target array includes the correspondence between each numerical interval corresponding to the number of charge and discharge cycles and the second compensation voltage;
[0038] Search for the numerical interval in which the battery impedance is located in the first target array to determine the first compensation voltage;
[0039] Search for the numerical interval in which the number of charge and discharge cycles is located in the second target array to determine the second compensation voltage.
[0040] In a second aspect, the present application also provides a charging control device. The device is applied to an electronic device, and the electronic device includes a battery. The device includes:
[0041] A compensation acquisition module, configured to obtain the first compensation voltage corresponding to the current battery impedance of the battery and the second compensation voltage corresponding to the number of charge and discharge cycles of the battery during the charging process of the battery;
[0042] A voltage compensation module, configured to determine a target compensation voltage according to the first compensation voltage and the second compensation voltage;
[0043] A charging compensation module, configured to compensate the charging cut-off voltage of the battery according to the target compensation voltage to obtain the compensated charging cut-off voltage.
[0044] In a third aspect, the present application also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above method are implemented.
[0045] Fourthly, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.
[0046] Fifthly, the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the above method are implemented.
[0047] In the above charging control method, device, equipment and storage medium, when the electronic device charges the battery, it can obtain the first compensation voltage corresponding to the current battery impedance of the battery and the second compensation voltage corresponding to the number of charge and discharge cycles of the battery; and then determine the target compensation voltage according to the first compensation voltage and the second compensation voltage, and compensate the charging cut-off voltage of the battery according to the target compensation voltage to obtain the compensated charging cut-off voltage. By comprehensively adjusting the charging cut-off voltage of the battery according to the battery impedance and the number of charge and discharge cycles, the present application can more safely and effectively prevent battery swelling. Description of the Drawings
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0049] Figure 1 It is a schematic diagram of the change trend of battery swelling with the usage time;
[0050] Figure 2 It is an application environment diagram of the charging control method in an embodiment;
[0051] Figure 3 It is a flowchart of the charging control method in an embodiment;
[0052] Figure 4 It is a flowchart of determining the compensated charging cut-off voltage in an embodiment;
[0053] Figure 5 It is a flowchart of adjusting the compensated charging cut-off voltage in an embodiment;
[0054] Figure 6 It is a schematic diagram of the current step change in an embodiment;
[0055] Figure 7 It is a specific flowchart of the charging control method in an embodiment;
[0056] Figure 8It is a structural block diagram of a charging control device in an embodiment;
[0057] Figure 9 It is an internal structure diagram of an electronic device in an embodiment. Detailed implementation manners
[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] It can be understood that terms such as "first" and "second" in the present application are only used to distinguish similar objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. It can be understood that "at least one" means one or more, and "a plurality" means two or more.
[0060] When used herein, the singular forms "a", "an" and "the" may also include the plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprises / comprising" or "has / having" etc. specify the presence of the stated features, wholes, steps, operations, components, parts or combinations thereof, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the related listed items.
[0061] Taking a terminal device as an example, currently the terminal device uses a lithium battery as an energy storage device. When the lithium battery is used or stored in a high-temperature environment, if the internal temperature is too high, the electrolyte will decompose to generate gas, which may cause expansion; secondly, charge-discharge cycle aging will also cause bulging. As the number of charge-discharge cycles increases, the internal chemical structure of the battery gradually changes, resulting in the decomposition of the electrolyte and the generation of gas, which in turn causes the battery to expand. To a certain extent, reducing the charging cut-off voltage of the lithium battery can, to a certain extent, slow down the problem of battery expansion. When the charging cut-off voltage of the battery is reduced, the electrochemical reaction pressure at the high voltage end of the battery is smaller, reducing the internal stress and heat accumulation of the battery, which helps to extend the battery life and reduce the expansion risk; high voltage will exacerbate the decomposition of the electrolyte, generating by-products such as gas. Reducing the charging cut-off voltage can reduce such adverse chemical reactions, thereby reducing the generation of internal gas; at high voltage, the electrolyte is more likely to decompose and release gas, resulting in an increase in the internal pressure of the battery. By reducing the charging cut-off voltage, the decomposition rate of the electrolyte can be reduced, thereby reducing the generation of gas and the expansion risk; a high charging cut-off voltage will accelerate battery aging, resulting in a faster decline in battery capacity. Reducing the charging cut-off voltage can extend the overall life of the battery, reduce the by-products generated during the aging process, and thus reduce the bulging phenomenon.
[0062] Currently, on the software side, the charge cut-off voltage (CV voltage) during the FFC (Fast Full Charge) stage and the normal charge stage of the charging process is dynamically adjusted according to the number of battery charge and discharge cycles (charge_cycle). However, the traditional method of adjusting the charge cut-off voltage based on the number of battery charge and discharge cycles is not perfect. The health status of the battery is affected by multiple factors, and relying solely on the number of cycles is not sufficient to comprehensively reflect the actual health status and requirements of the battery. For example Figure 1 The figure shows the typical change trend of battery swelling over time in use.
[0063] The traditional way to prevent battery swelling is to rely on the number of charge and discharge cycles to dynamically adjust the charge cut-off voltage. However, the traditional solution has certain limitations. For example, if a new battery is stored at a high temperature for a sufficient period of time, its aging state will be equivalent to the effect of a certain number of charger_cycles. At this time, if only relying on charger_cycle to dynamically adjust the voltage, then when charger_cycle = 0, there will be no modification to the initial charge cut-off voltage. In fact, the battery has aged at this time and the charge cut-off voltage needs to be dynamically modified.
[0064] The embodiments of the present application propose a safer and more effective solution to prevent battery swelling. Exemplarily, a Battery Management System (BMS) can be introduced to monitor the health status of the battery, such as capacity attenuation, internal resistance increase, etc., and dynamically adjust the charge cut-off voltage according to the actual health status, rather than relying solely on the number of cycles. It should be noted that the beneficial effects or technical problems solved by the embodiments of the present application are not limited to this one, and there may be other implicit or related problems. For details, please refer to the description of the following embodiments.
[0065] The charging control method provided by the embodiments of the present application can be applied to, for example Figure 2In the application environment shown. Among them, the power supply 102 is connected to the charging adapter 104, the charging adapter 104 is electrically connected to the electronic device 106, and a battery is installed in the electronic device 106; the power supply 102 charges the battery through the charging adapter 104. It can be understood that the battery is a device that converts chemical energy, light energy, etc. into electrical energy. The battery is used to supply power to the electronic device. Optionally, the battery supplies power to the electronic device as an independent power source, or the battery supplies power to the electronic device as a power device in the electronic device. Further, a charging adapter (Power adapter) is a power supply conversion device for small portable electronic devices and electronic appliances, generally composed of components such as a housing, a transformer, an inductor, a capacitor, a control IC (Integrated Circuit), and a PCB (Process Control Block, printed circuit board).
[0066] Exemplarily, the electronic device 106 can be a terminal device or a server. The terminal device can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, smart cars, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented by an independent server or a server cluster composed of multiple servers.
[0067] It should be noted that the execution subject of the charging control method in the embodiments of the present application can be a terminal device, such as a mobile terminal. The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0068] In an exemplary embodiment, as Figure 3 shown, a charging control method is provided. Taking the electronic device in Figure 2 as an example, the method includes the following steps 202 to step 206. Among them:
[0069] Step 202, during the process of charging the battery, obtain the first compensation voltage corresponding to the current battery impedance of the battery, and the second compensation voltage corresponding to the number of charge and discharge cycles of the battery.
[0070] Among them, the current battery impedance of the battery can be used to evaluate the battery health state; exemplarily, the battery impedance can characterize the battery aging state. Further, the number of charge and discharge cycles of the battery can be obtained by reading the register of the fuel gauge, and the embodiment of the present application does not limit the manner of obtaining the number of charge and discharge cycles.
[0071] Specifically, the process of charging the battery can refer to the electronic device being in a charging state. Exemplarily, the electronic device can load the kernel driver to determine whether the battery is currently being charged. Taking the power supply charging the battery through the charging adapter as an example, in the kernel driver, the insertion of the charging adapter can be monitored, and the charging cut-off voltage can be set. Exemplarily, taking the electronic device as a mobile terminal, when the mobile terminal is powered on, the kernel driver (kernel) will be loaded and run, and in the kernel, the insertion of the charger will be monitored and the charging cut-off voltage (CV) will be set.
[0072] It can be understood that the above-described method for detecting whether the electronic device charges the battery is only an example, and the specific detection method is not limited in the embodiment of the present application.
[0073] Further, the kernel driver can respectively obtain the current battery impedance of the battery and the number of charge and discharge cycles of the battery, and then respectively obtain the first compensation voltage corresponding to the battery impedance and the second compensation voltage corresponding to the number of charge and discharge cycles. Among them, during the process of charging the battery, the electronic device can load the application service program, and run the corresponding program in the application service program to obtain the current battery impedance of the battery. Optionally, taking the electronic device as a mobile terminal, when the mobile terminal is powered on, the application service program AIDL (Android Interface Definition Language) will be loaded and run, and AIDL can run the corresponding algorithm to calculate the battery impedance in a suitable time period. In addition, regarding the manner of obtaining the number of charge and discharge cycles, optionally, the kernel driver can obtain the number of charge and discharge cycles by reading the register of the fuel gauge.
[0074] In the embodiment of the present application, the first compensation voltage can represent the compensation cut-off voltage corresponding to the battery impedance, that is, the compensation voltage of the charging cut-off voltage corresponding to the battery impedance, which is used to achieve fine adjustment of the charging cut-off voltage (the impedance data is more refined); while the second compensation voltage can represent the compensation cut-off voltage corresponding to the number of charge and discharge cycles, that is, the compensation voltage of the charging cut-off voltage corresponding to the number of charge and discharge cycles, to make up for the adjustment of the charging cut-off voltage (for example, in the case where the impedance is not updated in time).
[0075] It should be noted that the embodiments of the present application do not limit the manner of obtaining the first compensation voltage and the second compensation voltage. For example, better parameters can be selected as the first compensation voltage and the second compensation voltage according to test data. It can be understood that the above-mentioned manner of obtaining the first compensation voltage and the second compensation voltage can also adopt other forms, not limited to the forms already mentioned in the above embodiments, as long as it can achieve the function of dynamically adjusting the charging cut-off voltage to effectively control battery swelling.
[0076] Step 204: Determine a target compensation voltage according to the first compensation voltage and the second compensation voltage.
[0077] Specifically, the electronic device can determine the target compensation voltage according to the first compensation voltage and the second compensation voltage, so that the present application can comprehensively adjust the charging cut-off voltage of the battery based on the battery impedance and the number of charge and discharge cycles, and effectively control the swelling of the battery in various usage scenarios.
[0078] Exemplarily, the value of the target compensation voltage can be determined according to the magnitude relationship between the first compensation voltage and the second compensation voltage. For example, the smaller value of the first compensation voltage and the second compensation voltage is determined as the target compensation voltage. It can be understood that the above-mentioned manner of obtaining the target compensation voltage can also adopt other forms, not limited to the forms already mentioned in the above embodiments, as long as it can achieve the function of comprehensively adjusting the charging cut-off voltage of the battery.
[0079] Step 206: Compensate the charging cut-off voltage of the battery according to the target compensation voltage to obtain the compensated charging cut-off voltage.
[0080] Specifically, in the case of obtaining the target compensation voltage, the electronic device can compensate the charging cut-off voltage of the battery to obtain the compensated charging cut-off voltage, and then charge the battery according to the compensated charging cut-off voltage.
[0081] Optionally, the target compensation voltage can be used as an adjustment value for adjusting the charging cut-off voltage, and the charging cut-off voltage of the battery is compensated by the target compensation voltage to realize the comprehensive adjustment of the charging cut-off voltage of the battery based on the battery impedance and the number of charge and discharge cycles.
[0082] The above charging control method, based on the first compensation voltage corresponding to the battery impedance and the second compensation voltage corresponding to the number of charge and discharge cycles, enables the present application to comprehensively adjust the charging cut-off voltage of the battery based on the battery impedance and the number of charge and discharge cycles. Among them, the battery impedance representing the battery health state can be used to map the charging cut-off voltage of the battery, and the number of charge and discharge cycles can also be used to supplement the adjustment of the charging cut-off voltage of the battery, so that the swelling of the battery can be effectively controlled in various usage scenarios, ensuring the safety of the electronic device during use.
[0083] In one embodiment, determining a target compensation voltage according to a first compensation voltage and a second compensation voltage includes:
[0084] Determining the smaller value of the first compensation voltage and the second compensation voltage as the target compensation voltage.
[0085] Specifically, in the embodiments of the present application, the smaller value of the first compensation voltage and the second compensation voltage is determined as the target compensation voltage, so as to realize the comprehensive adjustment of the charging cut-off voltage of the battery based on the battery impedance and the number of charge and discharge cycles.
[0086] Taking an electronic device using a mobile terminal as an example, during the charging process of the battery, the compensation voltage (i.e., the first compensation voltage) dec_a of the cut-off voltage corresponding to the battery impedance is 10 mv, and the compensation voltage (i.e., the second compensation voltage) dec_b of the cut-off voltage corresponding to the number of charge and discharge cycles (charger_cycle) is 20 mv. Further, since dec_a < dec_b, dec_a can be used as the target compensation voltage, and the compensated charging cut-off voltage obtained by compensating the charging cut-off voltage of the battery according to the target compensation voltage is set in the cut-off voltage register of the PMIC (Power Management Integrated Circuit), and then the charging cut-off voltage is maintained for normal charging.
[0087] In the embodiments of the present application, the smaller value of the first compensation voltage and the second compensation voltage is determined as the target compensation voltage, which can utilize the more refined characteristics of the impedance data and can use the number of charge and discharge cycles to supplement the adjustment of the charging cut-off voltage. Furthermore, the charging cut-off voltage of the battery is comprehensively adjusted based on the battery impedance and the number of charge and discharge cycles, so that the expansion of the battery can be effectively controlled in various usage scenarios, ensuring the safety of device use.
[0088] In an exemplary embodiment, as Figure 4 shown, step 206 includes steps 302 to 304. Among them:
[0089] Step 302, obtaining the initial charging cut-off voltage of the battery.
[0090] Specifically, in the embodiments of the present application, the initial charging cut-off voltage can be set in advance or be the system default. Optionally, the initial charging cut-off voltage can be understood as the voltage at which the battery of the electronic device stops charging when the battery is not aged. Exemplarily, when the fast charging adapter is just inserted, that is, at the initialization of battery charging, the initial charging cut-off voltage of the battery can be obtained.
[0091] Taking an electronic device using a mobile terminal as an example, the initial charging cut-off voltage may refer to the default cut-off voltage default_cv. Among them, default_cv can be determined according to the battery chemistry. Different battery cells have different default cv points, which can be fixed values. For example, for a 4.5V battery cell, the default cut-off voltage of this battery cell is 4.5V. It can be understood that the default cut-off voltage can remain unchanged when leaving the factory. Only as the battery ages, a reduction amount will be superimposed on the basis of default_cv.
[0092] Step 304: Determine the compensated charging cut-off voltage according to the initial charging cut-off voltage and the target compensation voltage.
[0093] Specifically, when the electronic device obtains the initial charging cut-off voltage and the target compensation voltage, it can determine the compensated charging cut-off voltage according to the initial charging cut-off voltage and the target compensation voltage.
[0094] In the embodiment of the present application, the compensated charging cut-off voltage is determined through the initial charging cut-off voltage and the target compensation voltage, and this charging cut-off voltage is maintained for normal charging, ensuring the safety of the use of the electronic device.
[0095] In some embodiments, determining the compensated charging cut-off voltage according to the initial charging cut-off voltage and the target compensation voltage includes:
[0096] Determine the difference between the initial charging cut-off voltage and the target compensation voltage as the compensated charging cut-off voltage.
[0097] Specifically, the electronic device can determine the difference between the initial charging cut-off voltage and the target compensation voltage as the compensated charging cut-off voltage. Taking an electronic device using a mobile terminal as an example, for example, the default cut-off voltage is 4.435V, and the target compensation voltage dec_x = 10mv. Then the compensated charging cut-off voltage is 4435 - 10 = 4425mv. That is, the charging cut-off voltage finally set in the cut-off voltage register of the PMIC is 4425mv, and then this charging cut-off voltage can be maintained for normal charging.
[0098] The present application comprehensively adjusts the charging cut-off voltage of the battery through the battery impedance and the number of charge and discharge cycles, and adopts the compensated charging cut-off voltage, so that the expansion of the battery can be effectively controlled in various usage scenarios, and the battery expansion can be more safely and effectively prevented.
[0099] In one of the embodiments, as Figure 5 shown, the method may further include:
[0100] Step 402: Determine the charging mode; the charging mode is determined according to the user's usage habits and the type of charging scenario.
[0101] Specifically, when the electronic device obtains the compensated charging cut-off voltage, it can also determine the charging mode to further adjust the compensated charging cut-off voltage, so as to balance the user experience and battery safety.
[0102] Among them, the charging mode can be determined according to the user's usage habits and the type of charging scenario. Exemplarily, the charging mode can be understood as different charging strategies selected according to the usage habits and scenarios of different users.
[0103] Further, during the process of charging the battery, the user's usage habits and the type of charging scenario can be determined; among them, the user's usage habits can include but are not limited to: the duration of using the electronic device by the user, the type of applications the user prefers to use, the specific applications the user prefers to use, and the functions of the electronic device the user prefers to use.
[0104] Optionally, the electronic device can determine the charging mode according to the type of charging scenario, or can also determine the charging mode according to the user's selection operation. Optionally, the charging mode can be a battery life priority mode that meets the battery life requirements of the electronic device, or can also be a battery life priority mode that focuses on extending the service life of the electronic device. Exemplarily, the scenario types that meet the battery life requirements of the electronic device can be: before leaving home / hotel for work, on the way to work / travel, outdoor activities, public places during travel, before going home from work, on the way home from work, etc.; the scenario types that focus on extending the service life of the electronic device can be: during office work, on an airplane / high-speed train during holiday travel, long-distance self-driving, charging and using at home / hotel, before going to bed at home / hotel, etc.
[0105] Exemplarily, the electronic device can determine the charging mode by means of image recognition, device positioning, current time, etc. For example, the electronic device determines the charging mode according to the environmental image where the electronic device is located, or can also determine the charging mode according to the geographical location where the electronic device is located, or can also determine the charging mode according to the current time. It can be understood that the above-mentioned ways of determining the charging mode are only examples, and the specific charging scenario types and the ways of determining the user's usage habits are not limited in the embodiments of the present application.
[0106] Step 404, adjust the compensated charging cut-off voltage according to the charging mode to charge the battery.
[0107] Specifically, when the electronic device obtains the compensated charging cut-off voltage and determines the charging mode, it can adjust the compensated charging cut-off voltage according to the charging mode to balance the user experience and battery safety.
[0108] Exemplarily, the electronic device may perform a small dynamic adjustment on the compensated charging cut-off voltage according to the charging mode. For example, taking the charging mode as the endurance priority mode, in the case where the power consumption of the electronic device is large, if the charging cut-off voltage is too high, it will affect the endurance. At this time, a slight dynamic adjustment can be made.
[0109] In one embodiment, the charging mode is the first charging mode or the second charging mode. The first charging mode is related to the battery endurance time, and the second charging mode is related to the battery life.
[0110] Adjusting the compensated charging cut-off voltage according to the charging mode includes:
[0111] If the charging mode is the first charging mode, increase the compensated charging cut-off voltage;
[0112] If the charging mode is the second charging mode, decrease the compensated charging cut-off voltage.
[0113] Specifically, the charging mode in the embodiments of the present application is the first charging mode or the second charging mode, where the first charging mode is related to the battery endurance time, and the second charging mode is related to the battery life.
[0114] Exemplarily, in a scenario where the endurance requirement of the electronic device needs to be met, the electronic device may determine that the charging mode is the first charging mode (i.e., the endurance priority mode). For example, if the user needs to meet the endurance requirement on the way home from work, the electronic device may determine that the charging mode of the electronic device is the first charging mode. Optionally, in a scenario mainly focused on improving the service life of the electronic device, the electronic device may determine that the charging mode is the second charging mode (the battery life priority mode). For example, during the user's office hours, the electronic device may determine that the charging mode of the electronic device is the second charging mode.
[0115] It should be noted that the first charging mode and the second charging mode in the embodiments of the present application may be the FFC mode or the ordinary charging mode.
[0116] Further, if the charging mode is the first charging mode, the electronic device may increase the compensated charging cut-off voltage. If the charging mode is the second charging mode, the electronic device may decrease the compensated charging cut-off voltage. For example, the user can select the battery life priority mode (decrease the charging cut-off voltage) or the endurance priority mode (slightly higher charging cut-off voltage).
[0117] The above charging control method adjusts the compensated charging cut-off voltage according to the charging mode to charge the battery, where different charging strategies can be selected according to different user usage habits and scenarios, and the charging cut-off voltage is dynamically adjusted, thereby taking into account both user experience and battery safety.
[0118] In practical applications, regarding the method for obtaining the current battery impedance of a battery, in one embodiment, the method further includes:
[0119] Obtaining the battery impedance through an application service program.
[0120] Specifically, during the process of charging the battery, the electronic device can load the application service program, and the application service program can read the battery impedance saved in the corresponding partition. In addition, the application service program can also run the corresponding program at an appropriate time period to obtain the battery impedance, where the corresponding program is a program for analyzing the battery impedance. Then, the application service program can send the obtained battery impedance to the kernel driver program.
[0121] Taking the electronic device as a mobile terminal as an example, exemplarily, when the mobile terminal is powered on, the kernel driver program (kernel) and the application service program (AIDL) are loaded and run. The kernel driver program can request the battery impedance from the application service program, and the application service program can read the saved battery impedance Batt_r from the preset partition of the mobile terminal and send the obtained battery impedance Batt_r to the underlying kernel driver program through the file system method. Among them, when the mobile terminal is a new machine (the battery impedance has not been calculated), at this time, the value in the preset partition is illegal. When it is an illegal value, the application service program can default the battery impedance Batt_r = 0 mΩ.
[0122] In addition, the application service program can also update the battery impedance Batt_r in real time and actively send the calculated battery impedance Batt_r to the kernel driver program. For example, the application service program can monitor whether the time window for calculating the battery impedance Batt_r has arrived. When the calculation time arrives, it calls the corresponding algorithm to calculate the battery impedance Batt_r, sends the obtained battery impedance Batt_r to the kernel driver program, and rewrites the battery impedance Batt_r back to the preset partition.
[0123] It can be understood that the preset partition can be a pre-allocated storage partition for charging control; exemplarily, this storage partition can have a corresponding sector number, and the storage partition can be used through the sector number. Optionally, regarding the file system method, taking the linux operating system as an example, it can refer to the interaction method between the user space and the kernel space. In the user space, data is passed to the kernel driver of the kernel by reading and writing files.
[0124] In one embodiment, obtaining the battery impedance through an application service program includes:
[0125] Invoking electrochemical impedance spectroscopy (EIS) analysis through the application service program to obtain the initial impedance of the battery within a preset time window;
[0126] Normalize the initial impedance to obtain the battery impedance.
[0127] Specifically, the electronic device can call the electrochemical impedance spectroscopy (EIS) analysis through the application service program to obtain the initial impedance of the battery within a preset time window, and normalize the initial impedance to obtain the battery impedance. Among them, the impedance calculated by EIS is obtained at different battery levels and different temperatures, that is, the calculated impedance is different, and normalization is conducive to comparing the magnitudes of the impedances.
[0128] Optionally, during the charging process of the battery, the electronic device can load the application service program and call the EIS algorithm through the application service program. In the embodiments of the present application, on the basis of the number of charge-discharge cycles (charger_cycle), the battery impedance spectroscopy (EIS) is added to predict the change of the internal resistance of the battery, which can more accurately evaluate the battery health state, thereby optimizing the charging process. Through EIS, the impedance information inside the battery can be obtained, including the conductivity of the electrolyte, the interface resistance, and the electrochemical characteristics of the electrode material. These parameters can help accurately evaluate the battery health state, including capacity decay and increase in internal resistance.
[0129] As Figure 6 shown, taking the calculation of EIS in a mobile terminal as an example, the mobile terminal needs to generate a step change in current (current) as shown in the Figure 6 box. The step change in current causes a step change in the battery voltage (voltage). Figure 6 What is shown in the box is the voltage and current components required for EIS analysis. The process of EIS is Z = DFT(battery voltage sequence) / DFT(battery current sequence), where Z is the complex impedance at different calculation frequencies, and DFT (Discrete Fourier Transform) is the discrete Fourier transform. The role of DFT is to transform the signal from the time domain to the frequency domain, and both the time domain and the frequency domain are discrete, so that it can be obtained which sine waves a signal is composed of, and the obtained result is the amplitude and phase of the sine wave. The specific calculation formula of DFT is as follows:
[0130]
[0131] Among them, the superimposed sine wave X(k) represents the data of the DFT transform, while x(n) represents the sampled data, and N is the number of sampling points within the calculation period. Taking the example of collecting a pair of battery voltage and current per second, with 40 points each for the battery voltage and current, perform the DFT transform on the battery voltage (voltage), and perform the DFT on the battery current (current). Then, divide the DFT of the battery voltage (voltage) by the DFT of the battery current (current) to obtain the real part impedance r of the calculated frequency. After normalizing this real part impedance, the battery impedance Barr_r can be obtained. Furthermore, the normalized battery impedance Barr_r calculated by the battery EIS and the number of charge and discharge cycles charger_cycle can be used to comprehensively adjust the battery's charging cut-off voltage.
[0132] Furthermore, regarding the preset time window, it can be understood as the time window for calculating the EIS, or it can be understood as the EIS calculation time period. Taking the example of an application service program calling the electrochemical impedance spectroscopy EIS analysis, the application service program can monitor whether the time window for calculating the EIS has arrived (the impedance change is not transient, for example, it can be calculated once every 20 days as a cycle). If the calculation time has arrived, the application service program calls the EIS algorithm. When the initial impedance is successfully obtained through the EIS impedance calculation, the initial impedance can be normalized to obtain the battery impedance Batt_r.
[0133] In one of the embodiments, before obtaining the initial impedance of the battery within the preset time window, it includes:
[0134] Determine that the current step sequence and voltage step sequence of the battery fluctuate within the preset threshold range.
[0135] Specifically, before calculating the initial impedance, it is necessary to check the validity of the data. Among them, the electronic device can determine whether both the current step sequence and voltage step sequence of the battery fluctuate within the preset threshold range. It can be understood that the preset threshold range can be set according to custom.
[0136] Exemplarily, the electronic device can determine that the data is relatively stable when part of the step sequence (current step sequence and voltage step sequence) data falls within the preset threshold range. For example, the current during fast charging is 2A, and among them, 99% of the data is within 2A - 100ma - 2A, then the data can be considered relatively stable.
[0137] In the embodiment of the present application, the validity of the data can be checked before calculating the impedance, that is, whether the step sequences of the battery voltage and battery current fluctuate greatly (for example, large load fluctuations will cause large fluctuations in the battery current). If it fluctuates greatly, the calculation error will be relatively large, and then this calculation can be discarded (low probability) to ensure the accuracy of the battery impedance calculation.
[0138] In some embodiments, the initial impedance is normalized to obtain the battery impedance, including:
[0139] Obtain the current temperature and current power of the electronic device;
[0140] According to the current temperature and current power, as well as the preset target temperature and target power, normalize the initial impedance to obtain the battery impedance.
[0141] Specifically, when the initial impedance is successfully obtained by EIS impedance calculation, the electronic device can normalize the initial impedance by power and temperature to obtain the battery impedance Barr_r. The electronic device can obtain the current temperature and current power, and then normalize the initial impedance according to the current temperature and current power, as well as the preset target temperature and target power, to obtain the battery impedance. Optionally, the target power can be 50% of the power, and the target temperature can be 25 degrees Celsius. The present application has no limitation on the values of the target power and target temperature.
[0142] In the embodiments of the present application, the impedance is related to the SOC (State of Charge) and power; exemplarily, the electronic device can perform a model mapping of the initial impedance by temperature and battery SOC to obtain the normalized battery impedance Barr_r representing the battery aging state. Among them, SOC refers to the charging state of the battery, that is, the ratio between the current stored charge level of the battery and its maximum charging capacity, and SOC reflects how much available electrical energy remains in the battery.
[0143] In one of the embodiments, according to the current temperature and current power, as well as the preset target temperature and target power, normalize the initial impedance to obtain the battery impedance, including:
[0144] Determine the temperature normalization value according to the initial impedance, current temperature, and target temperature;
[0145] Obtain the battery impedance according to the temperature normalization value, current power, and target power.
[0146] Specifically, the electronic device can determine the temperature normalization value according to the initial impedance, current temperature, and target temperature, and then obtain the battery impedance according to the temperature normalization value, current power, and target power.
[0147] Taking the initial impedance as batt_r_init as an example, temperature mapping can be performed first to obtain the temperature normalization value Batt_r_t = batt_r_init + a * (current temperature - calibrated temperature) + b. Then, SOC mapping is performed to obtain the battery impedance Batt_r = Batt_r_t + c * (current SOC - calibrated SOC) + d; where a, b, c, and d are the correlation coefficients for normalization processing. It can be understood that the calibrated temperature can refer to the target temperature, the current SOC can refer to the current battery level, and the calibrated SOC can refer to the target battery level.
[0148] In the embodiments of the present application, through normalization processing, the obtained battery impedance is the impedance attributed to the target battery level and the target temperature, which is beneficial for comparing the magnitudes of the impedances to accurately obtain the compensated voltage.
[0149] Regarding the manner of obtaining the compensated voltage in the embodiments of the present application, in one of the embodiments, the value of the first compensated voltage is related to the numerical interval to which the battery impedance belongs; the value of the second compensated voltage is related to the numerical interval to which the number of charge and discharge cycles belongs.
[0150] Specifically, when the electronic device obtains the current battery impedance of the battery and the number of charge and discharge cycles of the battery, it can obtain the first compensated voltage corresponding to the battery impedance and the second compensated voltage corresponding to the number of charge and discharge cycles. Among them, the value of the first compensated voltage is related to the numerical interval to which the battery impedance belongs, and the value of the second compensated voltage is related to the numerical interval to which the number of charge and discharge cycles belongs.
[0151] Exemplarily, the value of the first compensated voltage can be determined according to the numerical interval to which the battery impedance belongs, and different numerical intervals to which the battery impedance belongs correspond to different first compensated voltages. Optionally, the value of the second compensated voltage can be determined according to the numerical interval to which the number of charge and discharge cycles belongs, and different numerical intervals to which the number of charge and discharge cycles belongs correspond to different second compensated voltages. Among them, each numerical interval and the corresponding relationship between each numerical interval and the compensated voltage can be determined through testing. For example, through data testing, the parameters with the best effect are used as the values of the above-mentioned numerical intervals and the compensated voltage.
[0152] In the embodiments of the present application, through the method of corresponding the numerical interval to the compensated voltage, the data of the compensated voltage is made more refined. Furthermore, in the process of comprehensively adjusting the charging cut-off voltage of the battery based on the battery impedance and the number of charge and discharge cycles, not only can the battery impedance representing the battery health state be used to map the charging cut-off voltage of the battery, but also the number of charge and discharge cycles can be used to supplement the adjustment of the battery charging cut-off voltage, so that the expansion of the battery can be effectively controlled in various usage scenarios, ensuring the safety of device use.
[0153] In one embodiment, obtaining a first compensation voltage corresponding to the current battery impedance of the battery and a second compensation voltage corresponding to the number of charge and discharge cycles of the battery includes:
[0154] Obtaining a first target array and a second target array; the first target array includes the corresponding relationships between various numerical ranges corresponding to the battery impedance and the first compensation voltage, and the second target array includes the corresponding relationships between various numerical ranges corresponding to the number of charge and discharge cycles and the second compensation voltage;
[0155] Searching for the numerical range in the first target array where the battery impedance is located, and determining the first compensation voltage;
[0156] Searching for the numerical range in the second target array where the number of charge and discharge cycles is located, and determining the second compensation voltage.
[0157] Specifically, the electronic device can obtain the first target array and determine the first compensation voltage by searching for the numerical range in the first target array where the battery impedance is located, where the first target array includes the corresponding relationships between various numerical ranges corresponding to the battery impedance and the first compensation voltage. Further, the electronic device can also obtain the second target array and determine the second compensation voltage by searching for the numerical range in the second target array where the number of charge and discharge cycles is located, where the second target array includes the corresponding relationships between various numerical ranges corresponding to the number of charge and discharge cycles and the second compensation voltage.
[0158] Exemplarily, the electronic device can obtain the first target data and the second target array by parsing a file. Taking the electronic device as a mobile terminal as an example, the kernel driver can parse the dtsi (device tree file in.dtsi format) to obtain an array A of reduced cut-off voltages corresponding to different battery impedances Batt_r (i.e., the first target array), and an array B of reduced cut-off voltages corresponding to different numbers of charge and discharge cycles charge_cycle (i.e., the second target array). Among them, the first target array can be the array A = {{0, 50}, {10, 100}, {20, 200} …, {50, 500}, {50, greater than 500}}, and the second target array can be the array B = {{0, 200}, {20, 400}, …, {40, 800}, {50, greater than 800}}, where the values of the numerical ranges in the array A / B can be obtained through testing.
[0159] Further, the kernel driver can wait for the adapter to be inserted. If the adapter is inserted, it looks up which interval in the array A the battery impedance Batt_r is in. For example, if Batt_r < 50 mΩ, then the compensation voltage for the cut-off voltage corresponding to Batt_r (i.e., the first compensation voltage) is dec_a = 0 mV. If Batt_r is in the interval of 50 - 100 mΩ, then the corresponding compensation cut-off voltage dec_a = 10 mV. Then the kernel driver can read the fuel gauge register to obtain the battery charge and discharge cycle count charger_cycle, and look up which interval in the array B the charge and discharge cycle count charger_cycle is in. For example, if charger_cycle < 200, then the compensation voltage for the cut-off voltage corresponding to charger_cycle (i.e., the second compensation voltage) is dec_b = 0 mV. If it is 200 - 400, then the corresponding compensation cut-off voltage dec_b = 20 mV.
[0160] It can be understood that the above method for obtaining the compensation voltage can also adopt other forms, not limited to the forms already mentioned in the above embodiments, as long as it can achieve the function of comprehensively adjusting the battery charging cut-off voltage based on the battery impedance and the charge and discharge cycle count.
[0161] To further illustrate the solution of the present application, a specific example is given below. Taking the electronic device as a mobile terminal, the mobile device can comprehensively adjust the battery charging cut-off voltage by using the battery normalized impedance Barr_r and the charge and discharge cycle count charger_cycle calculated by the battery EIS. As Figure 7 shown, when the mobile terminal is powered on, the kernel driver (kernel) and the application service program (AIDL) can be loaded and run. In the kernel, it will monitor the charger insertion and set the charging cut-off voltage CV. The AIDL is responsible for running the EIS algorithm to calculate the battery normalized impedance Batt_r at an appropriate time period (such as the EIS calculation time period).
[0162] Furthermore, AIDL can read the saved normalized impedance Batt_r from a preset partition of the mobile terminal. When the mobile terminal is a new device and has never been calculated before, the Batt_r in the preset partition is an illegal value at this time (when the mobile terminal is powered on for the first time, the value of Batt_r is unavailable). When it is an illegal value, it is defaulted that Batt_r = 0 mΩ, and then the obtained Batt_r is sent to the kernel through the file system method. Then AIDL monitors whether the EIS calculation time period has arrived. If the calculation time period arrives, AIDL calls the EIS algorithm. Among them, the validity of the data can be checked before the calculation. If the fluctuations of the battery voltage and current are relatively large, it does not meet the EIS calculation conditions (for example, whether the step sequences of the battery voltage and battery current fluctuate relatively large. If so, the calculation error will be relatively large, and this calculation can be discarded), then no calculation is performed. When the EIS impedance calculation is successful, the impedance is normalized by the battery power and temperature to obtain Batt_r, the obtained Batt_r is sent to the kernel, and Batt_r is rewritten back to the preset partition.
[0163] The Kernel can parse the dtsi (device tree file in.dtsi format): obtain the array A of reduced cut-off voltages corresponding to different battery impedances Batt_r, and obtain the array B of reduced cut-off voltages corresponding to different charge and discharge cycle numbers charge_cycle. The form of array A is {{0,50},{10,100},{20,200}…,{50,500},{50, greater than 500}}, and the form of array B is {{0,200},{20,400},…,{40,800},{50, greater than 800}}. Then it waits for the charger to be inserted. If the charger is inserted, it can find out which interval in array A Batt_r is in. For example, if Batt_r < 50, the compensation voltage of the cut-off voltage corresponding to Batt_r is dec_a = 0mv. If it is 50 - 100 milliohms, the corresponding compensation cut-off voltage is dec_a = 10mv. Then the Kernel can read the fuel gauge register to obtain the battery charge and discharge cycle number charger_cycle, and then find out which interval in array B charger_cycle is in. For example, if charger_cycle < 200, the compensation voltage of the cut-off voltage corresponding to charger_cycle is dec_b = 0mv. If it is 200 - 400, the corresponding compensation cut-off voltage is dec_b = 20mv. Finally, compare dec_a and dec_b. The goal is to take the smaller of the two. That is, when dec_a > dec_b, the value obtained by subtracting dec_b from the default cut-off voltage default_cv is set to the cut-off voltage register of the PMIC. When dec_a < dec_b, the value obtained by subtracting dec_a from the default cut-off voltage default_cv is set to the cut-off voltage register of the PMIC. For example, the default cut-off voltage is 4.435V and dec_x = 10mv, then the charging cut-off voltage finally set to the register is equal to 4435 - 10 = 4425mv, and then the charging cut-off voltage (CV) can be maintained for normal charging.
[0164] It can be understood that in practical applications, batteries with different aging degrees (the battery impedance Barr_r and charge and discharge cycle number charger cycle calculated by EIS of the battery are known in advance) can be used. Then, fully charge these batteries to capture the charging curve to obtain the charging cut-off voltage CV. When using the charging control method of the embodiment of the present application, it can be determined that the CV point voltage conforms to the present application scheme with Barr_r and charger_cycle.
[0165] The present application provides a battery anti - swelling solution based on a mobile terminal. This solution comprehensively adjusts the charging cut - off voltage of the battery based on the normalized impedance Batt_r calculated by EIS and the number of charge - discharge cycles charger_cycle, and can use Batt_r representing the battery health state to map the charging cut - off voltage of the battery; it can also use charger_cycle to supplement the adjustment of the battery charging cut - off voltage (in the case where the EIS impedance is not updated in time). This enables effective control of battery swelling in various usage scenarios and ensures the safety of mobile terminal use.
[0166] It should be understood that although the steps in the flowcharts involved in the above - mentioned embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above - mentioned embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0167] Based on the same inventive concept, the embodiments of the present application also provide a charging control device for implementing the above - mentioned charging control method. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the following charging control devices can refer to the limitations on the charging control method in the above text, and will not be repeated here.
[0168] In an exemplary embodiment, as Figure 8 shown, a charging control device is provided. The device is applied to an electronic device, and the electronic device includes a battery. The device includes:
[0169] A compensation acquisition module 901, configured to acquire a first compensation voltage corresponding to the current battery impedance of the battery and a second compensation voltage corresponding to the number of charge - discharge cycles of the battery during the charging process of the battery;
[0170] A voltage compensation module 902, configured to determine a target compensation voltage according to the first compensation voltage and the second compensation voltage;
[0171] A charging compensation module 903, configured to compensate the charging cut - off voltage of the battery according to the target compensation voltage to obtain a compensated charging cut - off voltage.
[0172] In one embodiment, the voltage compensation module 902 is configured to determine the smaller value of the first compensation voltage and the second compensation voltage as the target compensation voltage.
[0173] In one embodiment, the charging compensation module 903 includes:
[0174] An initial voltage acquisition module, configured to acquire the initial charging cut-off voltage of the battery;
[0175] A cut-off voltage determination module, configured to determine the compensated charging cut-off voltage according to the initial charging cut-off voltage and the target compensation voltage.
[0176] In one embodiment, the cut-off voltage determination module is configured to determine the difference between the initial charging cut-off voltage and the target compensation voltage as the compensated charging cut-off voltage.
[0177] In one embodiment, the device further includes:
[0178] A mode determination module, configured to determine the charging mode; the charging mode is determined according to the user's usage habits and the type of charging scenario;
[0179] A voltage adjustment module, configured to adjust the compensated charging cut-off voltage according to the charging mode to charge the battery.
[0180] In one embodiment, the charging mode is a first charging mode or a second charging mode. The first charging mode is related to the battery's endurance time, and the second charging mode is related to the battery's lifespan;
[0181] The voltage adjustment module is configured to increase the compensated charging cut-off voltage if the charging mode is the first charging mode; and decrease the compensated charging cut-off voltage if the charging mode is the second charging mode.
[0182] In one embodiment, the device further includes:
[0183] A battery impedance acquisition module, configured to acquire the battery impedance through an application service program.
[0184] In one embodiment, the battery impedance acquisition module includes:
[0185] An initial impedance acquisition module, configured to acquire the initial impedance of the battery within a preset time window by invoking electrochemical impedance spectroscopy (EIS) analysis through an application service program;
[0186] A normalization module, configured to perform normalization processing on the initial impedance to obtain the battery impedance.
[0187] In one embodiment, the battery impedance acquisition module is configured to determine that both the current step sequence and the voltage step sequence of the battery fluctuate within a preset threshold range.
[0188] In one embodiment, a normalization module is configured to obtain the current temperature and current power of the electronic device; and normalize the initial impedance according to the current temperature and current power, as well as a preset target temperature and target power, to obtain the battery impedance.
[0189] In one embodiment, the normalization module is configured to determine a temperature normalization value according to the initial impedance, the current temperature, and the target temperature; and obtain the battery impedance according to the temperature normalization value, the current power, and the target power.
[0190] In one embodiment, the value of the first compensation voltage is related to the numerical range to which the battery impedance belongs; the value of the second compensation voltage is related to the numerical range to which the number of charge and discharge cycles belongs.
[0191] In one embodiment, a compensation acquisition module is configured to obtain a first target array and a second target array; the first target array includes the correspondence between each numerical range corresponding to the battery impedance and the first compensation voltage, and the second target array includes the correspondence between each numerical range corresponding to the number of charge and discharge cycles and the second compensation voltage; search for the numerical range in the first target array where the battery impedance is located to determine the first compensation voltage; and search for the numerical range in the second target array where the number of charge and discharge cycles is located to determine the second compensation voltage.
[0192] Each module in the above charging control device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor in the electronic device in hardware form or be independent of it, or can be stored in the memory in the electronic device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0193] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as Figure 9As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and external devices. The communication interface of the electronic device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, near field communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a charging control method. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the electronic device, or an external keyboard, touchpad, or mouse, etc.
[0194] Those skilled in the art can understand that Figure 9 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0195] In one embodiment, an electronic device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0196] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0197] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0198] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0199] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0200] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this application.
[0201] The above-described embodiments merely represent several implementation manners of this application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of this application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application shall be subject to the appended claims.
Claims
1. A charging control method, characterized in that: The method is applied to an electronic device, the electronic device includes a battery, and the method includes: In the process of charging the battery, obtaining a first compensation voltage corresponding to the current battery impedance of the battery and a second compensation voltage corresponding to the number of charge and discharge cycles of the battery; determining a target compensation voltage according to the first compensation voltage and the second compensation voltage; The charge cut-off voltage of the battery is compensated according to the target compensation voltage to obtain a compensated charge cut-off voltage.
2. The method according to claim 1, characterized in that: The determining a target compensation voltage according to the first compensation voltage and the second compensation voltage includes: A smaller value of the first compensation voltage and the second compensation voltage is determined as the target compensation voltage.
3. The method according to claim 1, characterized in that The step of compensating the charge cut-off voltage of the battery according to the target compensation voltage to obtain the compensated charge cut-off voltage includes: Obtaining an initial charging cut-off voltage of the battery; The compensated charge cut-off voltage is determined according to the initial charge cut-off voltage and the target compensation voltage.
4. The method according to claim 3, characterized in that The step of determining the compensated charging cut-off voltage according to the initial charging cut-off voltage and the target compensation voltage includes: The difference between the initial charge cut-off voltage and the target compensation voltage is determined as the compensated charge cut-off voltage.
5. The method according to claim 1, characterized in that The method further comprises: Determine a charging mode; the charging mode is determined according to the user's usage habits and charging scenario type; The compensated charging cut-off voltage is adjusted according to the charging mode to charge the battery.
6. The method according to claim 5, characterized in that The charging mode is a first charging mode or a second charging mode, the first charging mode is related to the battery life, and the second charging mode is related to the battery life; The adjusting the compensated charging cut-off voltage according to the charging mode includes: If the charging mode is the first charging mode, increasing the compensated charging cut-off voltage; If the charging mode is the second charging mode, the compensated charging cut-off voltage is reduced.
7. The method according to claim 1, characterized in that The method further comprises: The battery impedance is obtained through an application service program.
8. The method according to claim 7, characterized in that The obtaining the battery impedance through the application service program includes: Calling electrochemical impedance spectroscopy (EIS) analysis through the application service program to obtain the initial impedance of the battery within a preset time window; The initial impedance is normalized to obtain the battery impedance.
9. The method according to claim 8, characterized in that Before obtaining the initial impedance of the battery within a preset time window, the method includes: It is determined that both the current step sequence and the voltage step sequence of the battery fluctuate within a preset threshold range.
10. The method according to claim 8, characterized in that The normalizing the initial impedance to obtain the battery impedance includes: Obtaining the current temperature and current power of the electronic device; The initial impedance is normalized according to the current temperature and the current power, and the preset target temperature and target power, to obtain the battery impedance.
11. The method according to claim 10, characterized in that The initial impedance is normalized according to the current temperature and the current power, and the preset target temperature and target power to obtain the battery impedance, including: Determining a temperature normalization value according to the initial impedance, the current temperature and the target temperature; The battery impedance is obtained according to the temperature normalized value, the current power and the target power.
12. The method according to any one of claims 1 to 11, characterized in that: The value of the first compensation voltage is related to the numerical interval to which the battery impedance belongs; the value of the second compensation voltage is related to the numerical interval to which the number of charge and discharge cycles belongs.
13. The method according to claim 12, characterized in that The obtaining of a first compensation voltage corresponding to the current battery impedance of the battery and a second compensation voltage corresponding to the number of charge and discharge cycles of the battery includes: Acquire a first target array and a second target array; the first target array includes a correspondence between each numerical interval corresponding to the battery impedance and the first compensation voltage, and the second target array includes a correspondence between each numerical interval corresponding to the number of charge and discharge cycles and the second compensation voltage; Finding the value interval of the battery impedance in the first target array to determine the first compensation voltage; The value interval of the number of charge and discharge cycles in the second target array is searched to determine the second compensation voltage.
14. A charging control device, characterized in that: The device is applied to an electronic device, the electronic device includes a battery, and the device includes: A compensation acquisition module, used for acquiring a first compensation voltage corresponding to the current battery impedance of the battery and a second compensation voltage corresponding to the number of charge and discharge cycles of the battery during charging of the battery; A voltage compensation module, used to determine a target compensation voltage according to the first compensation voltage and the second compensation voltage; The charging compensation module is used to compensate the charging cut-off voltage of the battery according to the target compensation voltage to obtain the compensated charging cut-off voltage.
15. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 13 are implemented.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.