Charging control method and device, electronic equipment and storage medium

By adjusting the charging frequency of the charge pump in real time to reduce its impedance value, the problem of poor charging performance of the charge pump is solved and more efficient battery charging is achieved.

CN120638532APending Publication Date: 2025-09-12BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410276536.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

Existing charge pump charging technology has power consumption loss, resulting in poor charging performance. How to improve charging performance is an urgent problem that needs to be solved.

Method used

By acquiring the charging current during the battery charging process in real time, the target charging frequency of the charge pump is determined so that its impedance value is less than a preset threshold at the target frequency, thereby controlling the charge pump to charge and reduce power consumption.

Benefits of technology

The battery charging efficiency is improved, the heat generated by the charge pump power consumption is reduced, and the charging performance is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120638532A_ABST
    Figure CN120638532A_ABST
Patent Text Reader

Abstract

The invention relates to a charging control method and apparatus, an electronic device and a storage medium. The method comprises the steps of obtaining a charging current of a battery in a charging process; based on the charging current in the charging process, determining a target charging frequency of charging the battery by a charge pump; wherein the charging impedance value of the charge pump under the target charging frequency is smaller than a first preset impedance threshold value; and controlling the charge pump to charge the battery based on the target charging frequency. Through the method, the power consumption of the charge pump can be reduced, and the charging performance of the battery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of charging technology, and in particular to a charging control method and device, an electronic device, and a storage medium. Background Art

[0002] In current battery charging technology, charging can be performed using charge pump technology. Using a charge pump can simplify the charging circuit and improve charging efficiency. However, the charge pump itself has certain power consumption losses, which also affects charging performance. The current charging performance of charge pump-based charging is not good enough. How to improve the charging performance of charge pump-based charging deserves attention. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a charging control method and device, an electronic device, and a storage medium, which can improve the charging performance based on charge pump charging.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a charging control method, including:

[0005] Get the charging current of the battery during the charging process;

[0006] determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process; wherein an impedance value of the charge pump charging at the target charging frequency is less than a first preset impedance threshold;

[0007] The charge pump is controlled to charge the battery based on the target charging frequency.

[0008] In some embodiments, determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process includes:

[0009] determining a changing trend of the charging current based on the charging current during the charging process;

[0010] Based on the variation trend of the charging current, a target charging frequency for the charge pump to charge the battery in a current charging phase corresponding to the variation trend is determined.

[0011] In some embodiments, determining, based on the changing trend of the charging current, a target charging frequency for charging the battery by the charge pump in a current charging stage corresponding to the changing trend includes:

[0012] determining a reference value of the charging current in the current charging stage based on a change trend of the charging current;

[0013] A target charging frequency for charging the battery by the charge pump in the current charging stage is determined based on a reference value of the charging current in the current charging stage.

[0014] In some embodiments, determining a reference value of the charging current in the current charging stage based on a change trend of the charging current includes:

[0015] In response to the charging current showing an increasing trend, determining a first current reference value of an initial charging current in a current charging stage showing an increasing trend, and / or a second current reference value subsequent to the initial charging current;

[0016] The determining, based on a reference value of the charging current in the current charging stage, a target charging frequency for charging the battery by the charge pump in the current charging stage includes:

[0017] determining, based on the first current reference value, a first target charging frequency for charging the battery by the charge pump at the initial charging current in a current charging phase showing an increasing trend; and / or,

[0018] Based on the second current reference value, a second target charging frequency for charging the battery by the charge pump after the initial charging current in a current charging phase with an increasing trend is determined.

[0019] In some embodiments, in response to the charging current showing an increasing trend, determining a first current reference value of an initial charging current in a current charging stage showing an increasing trend, and / or a second current reference value subsequent to the initial charging current, includes:

[0020] In response to the charging current showing an increasing trend, a preset current value is determined as the first current reference value, and / or a charging current value of the battery demand predicted after the initial charging current is determined as the second current reference value.

[0021] In some embodiments, determining a reference value of the charging current in the current charging stage based on a change trend of the charging current includes:

[0022] In response to the charging current showing a decreasing trend or a stable trend, determining a third current reference value based on a plurality of charging currents in a current charging stage corresponding to the changing trend;

[0023] The determining, based on a reference value of the charging current in the current charging stage, a target charging frequency for charging the battery by the charge pump in the current charging stage includes:

[0024] Based on the third current reference value, a third target charging frequency for the charge pump to charge the battery in a current charging phase corresponding to the change trend is determined.

[0025] In some embodiments, in response to the charging current showing a decreasing trend or a stable trend, determining the third current reference value based on multiple charging currents in the current charging stage corresponding to the changing trend includes:

[0026] In response to the charging current showing a decreasing trend or a stable trend, statistical values ​​of a plurality of charging currents in a current charging stage corresponding to the changing trend are determined as the third current reference value.

[0027] In some embodiments, determining, based on the third current reference value, a third target charging frequency for the charge pump to charge the battery in a current charging stage corresponding to a change trend includes:

[0028] determining a charging frequency reference value based on the third current reference value;

[0029] In response to a difference between the current operating charging frequency of the charge pump and the charging frequency reference value being within a preset frequency difference range, using the current operating charging frequency of the charge pump as the third target charging frequency;

[0030] In response to a difference between the current operating charging frequency of the charge pump and the charging frequency reference value not being within the preset frequency difference range, the charging frequency reference value is used as the third target charging frequency.

[0031] In some embodiments, determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process includes:

[0032] Based on the mapping relationship between the charging current and the charging frequency and the charging current during the charging process, a target charging frequency for the charge pump to charge the battery is determined; wherein, when the charge pump charges the battery based on a set of charging currents and charging frequencies in the mapping relationship, an impedance value of the charge pump is less than a first preset impedance threshold corresponding to the charging current.

[0033] In some embodiments, the method further comprises:

[0034] For each preset charging current, obtaining a charging efficiency of the charge pump for charging the battery at different preset charging frequencies based on the charging current;

[0035] For each charging current, selecting a target charging efficiency that satisfies a preset charging efficiency threshold value among the charging efficiencies corresponding to the preset charging frequencies when the charge pump charges the battery;

[0036] For each charging current, an association relationship between the charging current and the charging frequency corresponding to the target charging efficiency is established to obtain the mapping relationship.

[0037] In some embodiments, the method further comprises:

[0038] For each preset charging current, determining a preset relationship expression between the charging frequency corresponding to the charging current and the impedance value;

[0039] For each charging current, the relational expression is used to determine a set of impedance values ​​and charging frequencies that meet the second preset impedance threshold based on an optimization algorithm, and an association relationship between the charging current and the charging frequency is established to obtain the mapping relationship.

[0040] In some embodiments, determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process includes:

[0041] Determining a preset relationship expression between a charging frequency corresponding to the charging current and an impedance value based on the charging current during the charging process;

[0042] The relational expression is used to determine a target impedance value whose impedance value is less than the first preset impedance threshold based on an optimization algorithm, and the charging frequency corresponding to the target impedance value in the relational expression is determined as the target charging frequency.

[0043] In some embodiments, determining the target impedance value whose impedance value is less than the first preset impedance threshold based on the optimization algorithm using the relational expression includes:

[0044] Based on the relational expression, determining the impedance value corresponding to each preset charging frequency; wherein each preset charging frequency and the impedance value corresponding to the preset charging frequency constitute an optimization data sample;

[0045] Processing the optimization data samples using a genetic operator to obtain updated values ​​of each preset charging frequency;

[0046] Based on the relational expression, determining an impedance update value corresponding to an update value of each preset charging frequency;

[0047] Determining a target impedance value that meets the second preset impedance threshold based on the impedance values ​​corresponding to the respective preset charging frequencies and the impedance update values ​​corresponding to the updated values ​​of the respective preset charging frequencies;

[0048] Based on the impedance values ​​and corresponding charging frequencies determined after multiple iterative processing of the optimization data samples using the genetic operator, a target impedance value that meets the first preset impedance threshold is determined; wherein the target impedance value and the charging frequency corresponding to the target impedance value determined after the previous iteration are used to update the optimization data samples.

[0049] According to a second aspect of an embodiment of the present disclosure, there is provided a charging control device, including:

[0050] An acquisition module is used to obtain the charging current of the battery during the charging process;

[0051] a determination module, configured to determine a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process; wherein an impedance value of the charge pump charging at the target charging frequency is less than a first preset impedance threshold;

[0052] A charging module is configured to control the charge pump to charge the battery based on the target charging frequency.

[0053] In some embodiments, the determination module is further used to determine a changing trend of the charging current based on the charging current during the charging process; and based on the changing trend of the charging current, determine a target charging frequency for the charge pump to charge the battery in the current charging stage corresponding to the changing trend.

[0054] In some embodiments, the determination module is further used to determine a reference value of the charging current in the current charging stage based on a changing trend of the charging current; and to determine a target charging frequency for the charge pump to charge the battery in the current charging stage based on the reference value of the charging current in the current charging stage.

[0055] In some embodiments, the determination module is further used to determine a first current reference value of an initial charging current in a current charging stage with an increasing trend, and / or a second current reference value after the initial charging current, in response to the charging current showing an increasing trend; based on the first current reference value, determine a first target charging frequency for the charge pump to charge the battery at the initial charging current in the current charging stage with an increasing trend; and / or, based on the second current reference value, determine a second target charging frequency for the charge pump to charge the battery after the initial charging current in the current charging stage with an increasing trend.

[0056] In some embodiments, the determination module is further used to determine a preset current value as the first current reference value in response to the charging current showing an increasing trend, and / or to use the charging current value of the battery requirement predicted after the initial charging current as the second current reference value.

[0057] In some embodiments, the determination module is further used to determine a third current reference value based on multiple charging currents in the current charging stage corresponding to the changing trend in response to the charging current showing a decreasing trend or a stable trend; and based on the third current reference value, determine a third target charging frequency for the charge pump to charge the battery in the current charging stage corresponding to the changing trend.

[0058] In some embodiments, the determination module is further configured to determine, in response to the charging current showing a decreasing trend or a stable trend, a statistical value of a plurality of charging currents in the current charging stage corresponding to the changing trend as the third current reference value.

[0059] In some embodiments, the determination module is further used to determine a charging frequency reference value based on the third current reference value; in response to the difference between the current charging frequency of the charge pump and the charging frequency reference value being within a preset frequency difference range, the current charging frequency of the charge pump is used as the third target charging frequency; in response to the difference between the current charging frequency of the charge pump and the charging frequency reference value being not within the preset frequency difference range, the charging frequency reference value is used as the third target charging frequency.

[0060] In some embodiments, the determination module is further used to determine the target charging frequency of the charge pump for charging the battery based on a mapping relationship between the charging current and the charging frequency and the charging current during the charging process; wherein, when the charge pump charges the battery based on a set of charging currents and charging frequencies in the mapping relationship, the impedance value of the charge pump is less than a first preset impedance threshold corresponding to the charging current.

[0061] In some embodiments, the device also includes: a first mapping relationship acquisition module, which is used to obtain, for each preset charging current, the charging efficiency of the charge pump when charging the battery at different preset charging frequencies based on the charging current; for each charging current, select a target charging efficiency that meets a preset charging efficiency threshold among the charging efficiencies corresponding to each preset charging frequency when the charge pump charges the battery; for each charging current, establish an association relationship between the charging current and the charging frequency corresponding to the target charging efficiency to obtain the mapping relationship.

[0062] In some embodiments, the device further includes: a second mapping relationship obtaining module, configured to determine, for each preset charging current, a preset relationship expression between the charging frequency corresponding to the charging current and the impedance value; for each charging current, using the relationship expression to determine, based on an optimization algorithm, a set of impedance values ​​and charging frequencies that satisfy a second preset impedance threshold, and establish an association relationship between the charging current and the charging frequency to obtain the mapping relationship.

[0063] In some embodiments, the determination module is further used to determine a preset relational expression between the charging frequency corresponding to the charging current and the impedance value based on the charging current during the charging process; use the relational expression to determine a target impedance value whose impedance value is less than the first preset impedance threshold based on an optimization algorithm, and determine the charging frequency corresponding to the target impedance value in the relational expression as the target charging frequency.

[0064] In some embodiments, the determination module is further used to determine the impedance value corresponding to each preset charging frequency based on the relational expression; wherein each preset charging frequency and the impedance value corresponding to the preset charging frequency constitute an optimization data sample; the optimization data sample is processed using a genetic operator to obtain an updated value of each preset charging frequency; based on the relational expression, the impedance update value corresponding to the updated value of each preset charging frequency is determined; based on the impedance value corresponding to each preset charging frequency and the impedance update value corresponding to the updated value of each preset charging frequency, the target impedance value that meets the second preset impedance threshold is determined; based on the impedance value and the corresponding charging frequency determined after multiple iterative processing of the optimization data sample using the genetic operator, the target impedance value that meets the first preset impedance threshold is determined; wherein the target impedance value determined after the previous iteration and the charging frequency corresponding to the target impedance value are used to update the optimization data sample.

[0065] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0066] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method as described in the first aspect above.

[0067] According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:

[0068] When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in the first aspect above.

[0069] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0070] The embodiment of the present disclosure determines the target charging frequency of the charge pump based on the charging current of the battery during the charging process, that is, the charging frequency is adjusted in real time based on the charging current. Since the impedance value of the charge pump when charging at the target charging frequency is small, the power consumption of the charge pump can be kept at a relatively low level. Therefore, the real-time adjustment method based on the charging current can improve the battery charging efficiency and reduce the heat generated by the power consumption of the charge pump, thereby improving the charging performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0072] Figure 1 is a charging curve diagram shown in an embodiment of the present disclosure;

[0073] Figure 2 is a functional relationship curve between charge pump impedance and frequency provided by an embodiment of the present disclosure;

[0074] Figure 3 is a schematic diagram of a charging circuit shown in an embodiment of the present disclosure;

[0075] Figure 4 This is an example flow chart of a charging control method shown in an embodiment of the present disclosure;

[0076] Figure 5 This is an example flow chart of a charging control method shown in an embodiment of the present disclosure;

[0077] Figure 6 is a diagram of a charging control device shown in an embodiment of the present disclosure;

[0078] Figure 7 It is a block diagram of an electronic device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0079] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0080] Before further describing the embodiments of the present disclosure in detail, the nouns and terms involved in the embodiments of the present disclosure are explained. The nouns and terms involved in the embodiments of the present disclosure are subject to the following interpretations.

[0081] 1) A charge pump, also known as a switched capacitor voltage converter, is a DC-DC (Direct Current-Direct Current) converter that uses fast or pumping capacitors to store energy.

[0082] Charge pump technology uses electric field energy to transport charge from one location to another. Its principle is based on the process of converting electric field energy into charge energy. Intermittent switching allows the charge to move back and forth between high and low potentials, and the charge is accumulated in capacitors before being transferred to the battery to complete the charging process.

[0083] The charging frequency of the charge pump involved in the embodiment of the present disclosure is the switching frequency of the charge pump.

[0084] 2) Constant Current-Constant Voltage Charging (CC-CV): When charging the battery of an electronic device, constant current charging is usually preferred. When the battery voltage reaches a preset voltage value, the constant voltage charging stage is entered, so that the battery maintains a constant voltage while gradually reducing the charging current until charging is completed.

[0085] See also Figure 1 , Figure 1 1 is a charging curve diagram shown in an embodiment of the present disclosure. Among them, curve 101 is a curve showing the change of charging current during the charging process of the electronic device, and curve 102 is a curve showing the change of surface temperature of the electronic device during the charging process. As can be seen from the figure, the charging current is constantly changing during the entire charging process. As charging progresses, the charging current sequentially goes through the following three stages: a current climbing stage, a current relatively stable stage, and a current decreasing stage. In addition, due to the limitation of temperature control, the temperature trend is to rise first, then stabilize, and finally fall. The main sources of heat that cause the temperature of the electronic device to rise are the following three parts: the power consumption of the wiring, the power consumption of the charge pump, and the power consumption of the battery. These power consumptions will cause damage to the electronic device because they will cause temperature rise, and will also affect the charging efficiency of the battery.

[0086] Among them, for the charge pump, its power consumption is related to the charging frequency and charging current, and under a fixed current, the impedance of the charge pump has a certain mapping relationship with the charging frequency. Figure 2 is a functional relationship curve between the charge pump impedance and the charging frequency provided by the embodiment of the present disclosure, see Figure 2 The charge pump impedance and charging frequency exhibit an upward-opening quadratic function relationship. Therefore, there exists a frequency point where the charge pump impedance is lowest at a fixed current. Low charge pump impedance corresponds to low power consumption. Therefore, the disclosed embodiments can adjust the charge pump charging frequency to improve charging performance.

[0087] The charging control method provided in the embodiment of the present disclosure may be executed by an electronic device including a battery, wherein the battery may be a lithium battery, for example. When the electronic device is connected to a charging power source, a charging circuit is formed, which can charge the battery of the electronic device. For example, see Figure 3 , Figure 3 : is a schematic diagram of a charging circuit shown in an embodiment of the present disclosure. Among them, the electronic device 310 can be electrically connected to the charging power supply 320 through a data line or a power line. A charge pump 311 and a battery 312 are provided in the electronic device 310. The electric energy of the charging power supply 320 is output to the charge pump 311 of the electronic device 310, and the battery 312 is charged by the charge pump 311. Among them, the electronic device 310 can be a terminal device, such as a user equipment (UE), a mobile device, a user terminal, a mobile phone, a tablet computer, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the charging control method can be implemented by a processor in the charging circuit calling a computer-readable instruction stored in a memory.

[0088] Figure 4 This is an example flow chart of a charging control method shown in an embodiment of the present disclosure, Figure 4 It can be seen that the following steps are included:

[0089] Step 401, obtaining the charging current of the battery during the charging process;

[0090] Step 402: determining a target charging frequency for a charge pump to charge the battery based on the charging current during the charging process; wherein an impedance value of the charge pump charging at the target charging frequency is less than a first preset impedance threshold;

[0091] Step 403: Control the charge pump to charge the battery based on the target charging frequency.

[0092] In step 401, the electronic device may obtain the charging current of the battery during the charging process through an internal current sampling circuit. The charging current of the battery is also the output current of the charge pump.

[0093] In step 402, after obtaining the charging current, the electronic device determines a target charging frequency of the charge pump based on the charging current. Here, the impedance value of the charge pump when charging at the target charging frequency is less than a first preset impedance threshold.

[0094] In some embodiments, the first preset impedance threshold may be a threshold associated with the charging current, and the first preset impedance threshold may be determined through multiple charging tests. For example, during the test, the charging current of the battery may be controlled to be at the charging current of step 401, and then the charging frequency of the charge pump may be controlled to be at multiple test frequency values, and the test impedance values ​​of the charge pump corresponding to the multiple test frequency values ​​may be determined, and the first preset impedance threshold may be determined based on the multiple test impedance values. Here, the average value of the multiple test impedance values ​​may be determined as the first preset impedance threshold, or the median value of the multiple test impedance values ​​may be determined as the first preset impedance threshold, or a value slightly larger than the minimum value among the multiple test impedance values ​​may be determined as the first preset impedance threshold. The embodiments of the present disclosure do not specifically limit this.

[0095] In other embodiments, the first preset impedance threshold may also be a threshold not associated with the charging current. For example, the first preset impedance threshold is the mean, median, etc. of the minimum values ​​of the test impedance values ​​corresponding to different charging currents.

[0096] In the embodiment of the present disclosure, the impedance value of the charge pump when charging at the target charging frequency can be the minimum impedance value under the charging current, or it can be a value slightly larger than the minimum impedance value. In short, based on the setting of the first preset impedance threshold, the impedance value corresponding to the target charging frequency is smaller. Therefore, when the electronic device controls the charge pump to charge the battery based on the target charging frequency in step 403, the power consumption of the charge pump can be reduced, thereby improving the charging efficiency of the battery and reducing the temperature rise.

[0097] It should be noted that in the embodiment of the present disclosure, when the electronic device determines the target charging frequency of the charge pump for charging the battery based on the charging current during the charging process, it may determine the target charging frequency without considering the charging stage in which the charging current is located, or it may determine the target charging frequency in combination with the charging stage in which the charging current is located, wherein the method of determining the target charging frequency may be different in different charging stages.

[0098] In addition, in an embodiment of the present disclosure, after determining the target charging frequency, the electronic device needs to frequency modulate the charge pump to adjust the charging frequency of the charge pump to the target charging frequency. Usually, the charging frequency of the charge pump is stored in a register in the form of a code (such as a binary code), so the embodiment of the present disclosure can perform frequency modulation by changing the data stored in the register. Exemplarily, the electronic device encodes the target charging frequency, obtains the target code value, and adjusts it bit by bit according to the code bit.

[0099] In the related art, the charging frequency of the charge pump is configured in advance, for example, through a register before the charge pump works. After configuration, the charge pump is charged at the configured fixed frequency. However, if the configured fixed frequency is inappropriate, the charge pump has a large impedance and high power consumption, thereby affecting the charging efficiency and the safety of the electronic equipment.

[0100] In contrast, the embodiment of the present disclosure determines the target charging frequency of the charge pump based on the charging current of the battery during the charging process, that is, the charging frequency is adjusted in real time based on the charging current. Since the impedance value of the charge pump when charging at the target charging frequency is small, the power consumption of the charge pump can be kept at a lower level. Therefore, the real-time adjustment method based on the charging current can improve the battery charging efficiency and reduce the heat generated by the charge pump power consumption, thereby improving the charging performance.

[0101] As mentioned above, when the electronic device determines the target charging frequency of the charge pump for charging the battery based on the charging current during the charging process, the target charging frequency can be determined in combination with the charging stage of the charging current.

[0102] In some embodiments, determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process includes:

[0103] determining a changing trend of the charging current based on the charging current during the charging process;

[0104] Based on the variation trend of the charging current, a target charging frequency for the charge pump to charge the battery in a current charging phase corresponding to the variation trend is determined.

[0105] In an embodiment of the present disclosure, an electronic device obtains a charging current and stores the charging current each time the charging current is obtained. The storage method may be temporary storage, such as caching. Here, the storage may be performed according to the acquisition time of the charging current. The stored charging current may be adjusted accordingly according to the target conditions. For example, the charging current whose storage time exceeds a time threshold may be deleted. Alternatively, the amount of data of the stored charging current may be controlled to be within a quantity threshold. Specifically, when the amount of data of the charging current exceeds the quantity threshold, the corresponding charging current may be deleted in descending order of storage time.

[0106] In the disclosed embodiments, the electronic device can determine the changing trend of the charging current based on the multiple charging currents acquired, combined with the time over which the charging currents were acquired. For example, if the charging current continues to increase over a preset period of time, it is determined to be in the current climbing phase; if the change in the charging current over a preset period of time is within a preset range of amplitudes, it is determined to be in the current relatively stable phase; and if the charging current continues to decrease over a preset period of time, it is determined to be in the current decreasing phase.

[0107] In an embodiment of the present disclosure, the electronic device determines a target charging frequency for the charge pump to charge the battery during the current charging phase based on the changing trend of the charging current. The target charging frequency can be determined differently for different charging phases. For example, different target current determination methods can be used for the current ramp-up phase, the current relatively stable phase, and the current decreasing phase. The target charging frequency is then determined based on the target current. The target current can be determined based on the charging current obtained during the charging phase.

[0108] Since the charging current changes rapidly, the target charging frequency is determined by real-time acquisition of the charging current flowing into the battery. This may result in the actual charging current of the battery no longer being the acquired charging current when the target charging frequency is determined based on the acquired charging current. As a result, the target charging frequency is no longer the optimal charging frequency of the charge pump. That is, the target charging frequency is no longer a frequency that is suitable for the current charging current and has a certain hysteresis.

[0109] Therefore, the embodiment of the present disclosure determines the changing trend of the charging current and determines the target charging frequency of the charge pump based on the changing trend. On the one hand, it can reduce the hysteresis caused by determining the target charging frequency based on the real-time collected charging current, thereby improving the determination of the target charging frequency; on the other hand, it can make the determined target charging frequency more consistent with the current change law of the corresponding charging stage, and can also improve the accuracy of the target charging frequency, thereby helping to improve the charging performance.

[0110] In some embodiments, determining, based on the changing trend of the charging current, a target charging frequency for charging the battery by the charge pump in a current charging stage corresponding to the changing trend includes:

[0111] determining a reference value of the charging current in the current charging stage based on a change trend of the charging current;

[0112] A target charging frequency for charging the battery by the charge pump in the current charging stage is determined based on a reference value of the charging current in the current charging stage.

[0113] In the embodiment of the present disclosure, after determining the changing trend of the charging current, the reference value of the charging current in the current charging stage is determined based on the changing trend. The reference value is a value determined by a certain processing method. The processing method may be, for example, directly collecting the current value flowing into the battery in the charging circuit, or predicting it through an algorithm, or determining it statistically based on multiple values, or determining it based on experience, etc. In the embodiment of the present disclosure, different corresponding methods can be used to determine the reference value according to the changing trend of the charging current, so that the determined reference value is closer to the actual charging current of the battery. After determining the reference value of the charging current, the electronic device determines the target charging frequency within the charging stage based on the reference value of the charging current.

[0114] It should be noted that in the embodiment of the present disclosure, the electronic device can determine a reference value based on one or more charging currents in the initial stage of the charging stage, and thereby determine the target charging frequency in the charging stage based on the reference value, that is, predict the subsequent target charging frequency in the charging stage based on the charging current value in the initial stage of the charging stage; in addition, the reference value of the charging current can be continuously updated in the charging stage and the target charging frequency in the charging stage can be adjusted, and the embodiment of the present disclosure does not impose any restrictions on this.

[0115] The embodiment of the present disclosure determines a reference value of the charging current based on the changing trend of the charging current. By determining the reference value in combination with the changing trend, the determined reference value can be made more consistent with the actual charging current of the battery under the current changing trend, so that the target charging frequency determined based on the reference value is more accurate, thereby helping to improve the charging performance.

[0116] In some embodiments, determining a reference value of the charging current in the current charging stage based on a changing trend of the charging current includes:

[0117] In response to the charging current showing an increasing trend, determining a first current reference value of an initial charging current in a current charging stage showing an increasing trend, and / or a second current reference value subsequent to the initial charging current;

[0118] The determining, based on a reference value of the charging current in the current charging stage, a target charging frequency for charging the battery by the charge pump in the current charging stage includes:

[0119] determining, based on the first current reference value, a first target charging frequency for charging the battery by the charge pump at the initial charging current in a current charging phase showing an increasing trend; and / or,

[0120] Based on the second current reference value, a second target charging frequency for charging the battery by the charge pump after the initial charging current in the current charging stage showing an increasing trend is determined. In the embodiment of the present disclosure, if the changing trend of the charging current is an increasing trend, the first current reference value of the initial charging current and / or the second current reference value after the initial charging current in the current charging stage are determined. As mentioned above, the charging stage in which the charging current shows an increasing trend is the first stage in which the battery is connected to the charging power supply. In the embodiment of the present disclosure, after the electronic device is connected to the charging power supply, the electronic device starts to obtain the charging current of the battery and determines the reference value of the charging current. As mentioned above, the electronic device can continuously update the reference value of the charging current in the charging stage and adjust the target charging frequency in the charging stage. In the embodiment of the present disclosure, the target charging frequency is determined twice in the charging stage in which the charging current shows an increasing trend.

[0121] For example, when the electronic device is just connected to a charging power source, the electronic device can determine the first current reference value based on the average of multiple initial currents or a certain initial current value; the second current reference value after the initial charging current can also adopt the aforementioned method, and the embodiments of the present disclosure are not limited thereto.

[0122] It should be noted that, in the embodiment of the present disclosure, the initial charging current in the current charging stage may refer to the charging current within the initial preset charging duration. For example, if the duration of the charging stage in which the charging current shows an increasing trend is 10 seconds (s), the initial charging current may be the charging current within the first 3 seconds. In the embodiment of the present disclosure, after determining the first current reference value, the electronic device determines the first target charging frequency of the charge pump at the initial charging current based on the first current reference value, and controls the charge pump to charge the battery at the first target charging frequency. After determining the second current reference value, the electronic device determines the second target charging frequency of the charge pump at the initial charging current based on the second current reference value, and controls the charge pump to charge the battery at the second target charging frequency.

[0123] The embodiment of the present disclosure determines a first current reference value of the initial charging current in the current charging stage with an increasing trend, and / or a second current reference value after the initial charging current, and determines the target charging frequency based on the first current reference value and / or the second current reference value. In this way, in the charging stage with an increasing trend, a relatively accurate first current reference value of the initial charging current and a relatively accurate second current reference value after the initial charging current can be obtained in an unstable current state at the beginning, thereby making the target charging frequency determined based on this more accurate.

[0124] As mentioned above, the charging current changes rapidly, especially in the charging stage when the charging current is increasing. Therefore, the speed of charging current acquisition will affect the accuracy of the collected charging current value.

[0125] Based on this, in some embodiments, in response to the charging current showing an increasing trend, determining a first current reference value of an initial charging current in a current charging stage showing an increasing trend, and / or a second current reference value subsequent to the initial charging current, includes:

[0126] In response to the charging current showing an increasing trend, a preset current value is determined as the first current reference value, and / or a charging current value of the battery demand predicted after the initial charging current is determined as the second current reference value.

[0127] Here, the preset current value may be a starting charging current value for a charging phase in which the charging current is increasing, as determined based on actual experience, or may be a specified current value. For example, it has been determined that in various charging scenarios, the charging ramp-up period is approximately 10 seconds, and the current ramp-up during this period is approximately 5 amperes (A). Therefore, a target charging current of 5 A for the charging phase in which the charging current is increasing may be determined as the first current reference value.

[0128] In the embodiment of the present disclosure, after the initial charging current, the predicted charging current value required by the battery is determined as the second current reference value. For example, the electronic device may predict the charging current value required by the battery based on the voting value of the Fast Charger Current (FCC), wherein the electronic device may determine the required charging current value based on its own power, the usage scenario of the electronic device, and the charging voltage supported by the battery, such as the usage scenario of the electronic device, for example, a gaming scenario or a sleep scenario.

[0129] In the embodiment of the present disclosure, when the charging current shows an increasing trend, the preset current value is determined as the first current reference value of the initial charging current, thereby reducing the problem of unstable charging current when the battery is just connected to the charging power supply and inaccurate initial charging current directly collected. The more accurate preset current value is directly determined as the reference value of the initial charging current, thereby improving the accuracy of the reference value. In addition, after the initial charging current, the reference value is determined by prediction, so that when the charging current is rapidly increasing, the determined reference value can be close to the actual value of the charging current.

[0130] In some embodiments, determining a reference value of the charging current in the current charging stage based on a changing trend of the charging current includes:

[0131] In response to the charging current showing a decreasing trend or a stable trend, determining a third current reference value based on a plurality of charging currents in a current charging stage corresponding to the changing trend;

[0132] The determining, based on a reference value of the charging current in the current charging stage, a target charging frequency for charging the battery by the charge pump in the current charging stage includes:

[0133] Based on the third current reference value, a third target charging frequency for the charge pump to charge the battery in a current charging phase corresponding to the change trend is determined.

[0134] As mentioned above, there are three types of charging current change trends: increasing trend, stable trend and decreasing trend. Figure 1 As shown, when the battery is just connected to the charging power supply, the charging current will experience a period of time with an increasing trend. For example, the period of the increasing trend can be 10s. After the charging stage with an increasing charging current ends, the CC-CV charging stage begins, and the charging current will be in a stage with a stable trend and a decreasing trend, wherein the stable trend and the decreasing trend are alternating and continuous. Moreover, compared with the charging stage with an increasing trend, the rate of change of the charging current with a decreasing trend or a stable trend is slower. Based on the charging current variation law in this charging stage, the embodiment of the present disclosure determines the reference value of the charging current in the same manner for the charging current with a decreasing trend and a stable trend.

[0135] In an embodiment of the present disclosure, when the charging current shows a decreasing or stable trend, the electronic device acquires multiple charging currents during the current charging phase, determines a third current reference value based on the multiple charging currents, and then determines a third target charging frequency for the charge pump based on the third current reference value. The number of data points for the multiple charging currents can be a preset number, such as 10. In this embodiment, the charging current can be acquired based on acquisition cycles during the charging phase, and the third current reference value and the corresponding third target charging frequency can be determined for each acquisition cycle. Alternatively, the previously acquired charging current can be updated based on the currently acquired charging current, thereby updating the third current reference value and the third target charging frequency. For example, when the number of acquired charging current data points is less than the preset number, the third current reference value is determined based on all acquired charging currents. After the number of acquired charging current data points reaches the preset number, each time a charging current is acquired, the charging current with the longest acquisition time from the multiple charging currents is removed to update the preset number of charging currents. The third current reference value for the current charging current is then determined based on the preset number of charging currents.

[0136] The embodiment of the present disclosure takes into account the alternating characteristics of a decreasing trend or a stable trend and the characteristic that the charging current changes at a slow rate under a decreasing trend. By jointly determining the third current reference value based on multiple charging currents when the charging current shows a decreasing trend or a stable trend, the accuracy of determining the third target charging frequency is improved.

[0137] In some embodiments, in response to the charging current showing a decreasing trend or a stable trend, determining the third current reference value based on multiple charging currents in the current charging stage corresponding to the changing trend includes:

[0138] In response to the charging current showing a decreasing trend or a stable trend, statistical values ​​of a plurality of charging currents in a current charging stage corresponding to the changing trend are determined as the third current reference value.

[0139] In an embodiment of the present disclosure, an electronic device may perform statistics on a plurality of charging currents, obtain corresponding statistical values, and determine the statistical values ​​as a third current reference value. Here, the statistical method may be taking an average, taking a median, etc. Specifically, it is also possible to remove the charging currents among the plurality of charging currents whose difference from the reference value is greater than or equal to a difference threshold, perform statistics on at least one charging current remaining after the removal, and determine the statistical value as the third current reference value. Here, the reference value may be the median value of the plurality of charging currents. In one embodiment, it is also possible to remove the maximum value and the minimum value among the plurality of charging currents, and determine the third current reference value based on the remaining charging current after the removal.

[0140] For example, the electronic device collects a preset number of charging currents: n(1), n(2), n(3), ..., n(n); wherein n is a preset number, for example, 10. Then, the maximum value n(max) and the minimum value n(min) are found, and the maximum and minimum values ​​are removed to obtain the remaining charging current data: n′(1), n′(2), n′(3), ..., n′(n-2). Then, the remaining charging current is averaged according to the following formula (1):

[0141]

[0142] in, is the third current reference value.

[0143] In the embodiment of the present disclosure, statistics are collected on a plurality of charging currents and the statistical value is determined as the third current reference value, so that the error of the third current reference value is reduced.

[0144] In some embodiments, determining, based on the third current reference value, a third target charging frequency for the charge pump to charge the battery in a current charging stage corresponding to the change trend includes:

[0145] determining a charging frequency reference value based on the third current reference value;

[0146] In response to a difference between the current operating charging frequency of the charge pump and the charging frequency reference value being within a preset frequency difference range, using the current operating charging frequency of the charge pump as the third target charging frequency;

[0147] In response to a difference between the current operating charging frequency of the charge pump and the charging frequency reference value not being within the preset frequency difference range, the charging frequency reference value is used as the third target charging frequency.

[0148] In an embodiment of the present disclosure, the electronic device may determine a charging frequency reference value based on a third current reference value. For example, the charging frequency reference value may be a charging frequency corresponding to the third current reference value when the impedance of the charge pump is minimum. Since, in an embodiment of the present disclosure, the target charging frequency is continuously adjusted during the battery charging process, for example, during a charging phase in which the charging current is decreasing or stable, the target charging frequency has already been adjusted during a previous charging phase in which the charging current is increasing, and the same charging current as that during a charging phase in which the charging current is increasing may occasionally occur during the current charging phase, the embodiment of the present disclosure may compare the charging frequency reference value with the current charging frequency of the charge pump for a charging phase in which the charging current is decreasing or stable to determine the necessity of adjusting the target charging frequency.

[0149] In the embodiment of the present disclosure, if the difference between the current working charging frequency and the charging frequency reference value is within the preset frequency difference range, the current working charging frequency is used as the third target charging frequency; otherwise, the charging frequency reference value is used as the third target charging frequency. It should be understood that if the current working charging frequency is used as the third target charging frequency, there is no need to adjust the charging frequency of the charge pump. If the charging frequency reference value is used as the third target charging frequency, the charging frequency of the charge pump needs to be adjusted to the third target charging frequency so that the charge pump charges the battery at the third target charging frequency. Here, the preset frequency difference range can be set according to the accuracy requirements of the frequency adjustment. For example, if the difference between the current working charging frequency and the charging frequency reference value is within the preset frequency difference range, it can mean that the current working charging frequency is the same as the charging frequency reference value.

[0150] In the embodiment of the present disclosure, the electronic device determines the third target charging frequency based on the difference between the current working charging frequency of the charge pump and the charging frequency reference value, so that when the difference between the current working charging frequency and the charging frequency reference value is within a preset frequency difference range, the charging frequency of the charge pump is not adjusted, thereby reducing the resource occupation and power consumption caused by frequent adjustment of the charging frequency of the charge pump while ensuring the low power consumption of the charge pump itself.

[0151] In some embodiments, determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process includes:

[0152] Based on the mapping relationship between the charging current and the charging frequency and the charging current during the charging process, the target charging frequency of the charge pump for charging the battery is determined; wherein, when the charge pump charges the battery based on a set of charging currents and charging frequencies in the mapping relationship, the impedance value of the charge pump is less than a first preset impedance threshold corresponding to the charging current.

[0153] In the embodiment of the present disclosure, the mapping relationship between the charging current and the charging frequency is pre-set, and the mapping relationship includes a plurality of corresponding relationships between the charging current and the corresponding charging frequencies. The corresponding relationship indicates that under the charging current, the impedance value of the charge pump is less than the first preset impedance threshold corresponding to the charging current. It should be understood that the charge pump has different minimum impedances that can be achieved under different charging currents. In the embodiment of the present disclosure, the impedance value of the charge pump is less than the first preset impedance threshold at the charging frequency corresponding to the charging current in the mapping relationship. In one embodiment, the charging frequency in the mapping relationship is the optimal charging frequency, that is, the impedance value of the charge pump is the minimum impedance corresponding to the charging current.

[0154] In the disclosed embodiments, after obtaining the charging current of the battery during charging, the electronic device directly uses the aforementioned mapping relationship to determine a target charging frequency that is mapped to the charging current. In some embodiments, the electronic device determines a changing trend of the charging current based on the charging current during charging, determines a reference value of the charging current for the current charging stage based on the changing trend of the charging current, and determines a target charging frequency corresponding to the reference value based on the reference value and the mapping relationship.

[0155] In the mapping relationship involved in the embodiment of the present disclosure, the charging frequency corresponds to the current gear of the charging current. In other words, each current gear corresponds to a charging frequency. For example, the mapping relationship can be shown in Table 1:

[0156] Table 1 Mapping relationship between charging current and charging frequency

[0157] Charging current / A 1A 2A 3A 4A …… N Charging frequency / f <![CDATA[f1]]> <![CDATA[f2]]> <![CDATA[f3]]> <![CDATA[f4]]> <![CDATA[f N ]]>

[0158] Among them, the charging current includes N current gears, each current gear differs by a gear difference (for example, 1A in Table 1), and each current gear corresponds to a charging frequency, which is the target charging frequency of the embodiment of the present disclosure. The impedance value of the charge pump at the target charging frequency is less than the first preset impedance threshold corresponding to the charging current.

[0159] In the disclosed embodiment, the electronic device directly obtains a preset mapping relationship and determines the target charging frequency of the charge pump based on the charging current of the battery during the charging process. The target charging frequency can be determined quickly, thereby quickly adjusting the frequency of the charge pump.

[0160] In the disclosed embodiments, the mapping relationship can be constructed based on experimental testing, such as testing a single unit using a charging chip or performing a frequency sweep test on the entire device at the factory. Alternatively, the mapping relationship can be constructed based on an algorithm. In either case, the optimal charging frequency is determined for each preset charging current, thereby obtaining a mapping such as that shown in Table 1 above.

[0161] In some embodiments, the method further comprises:

[0162] For each preset charging current, obtaining a charging efficiency of the charge pump for charging the battery at different preset charging frequencies based on the charging current;

[0163] For each charging current, selecting a target charging efficiency that satisfies a preset charging efficiency threshold value among the charging efficiencies corresponding to the preset charging frequencies when the charge pump charges the battery;

[0164] For each charging current, an association relationship between the charging current and the charging frequency corresponding to the target charging efficiency is established to obtain the mapping relationship.

[0165] In the embodiment of the present disclosure, for each preset charging current, the electronic device obtains the charging efficiency of the charge pump charging the battery at different preset charging frequencies. Specifically, the electronic device controls the charging current of the battery to be at the preset charging current, and then controls the charge pump to charge the battery at different preset charging frequencies to obtain the input power and output power of the charge pump. The charging efficiency of the charge pump is calculated based on the input power and output power. The charging efficiency can be calculated by the following formula (2):

[0166]

[0167] Where η is the charging efficiency, P out is the output power, P in is the input power, V out is the output voltage, I out is the output current, V in is the input voltage, I in is the input current.

[0168] In the disclosed embodiment, for a preset charging current, the preset charging frequency of the charge pump is adjusted from a first frequency value to a second frequency value according to a fixed frequency step size. The first frequency value is less than the second frequency value. The charging efficiency of the charge pump for charging the battery is calculated at each charging frequency. Based on the above processing, the corresponding relationships between the preset charging currents, preset charging frequencies, and charging efficiencies shown in Table 2 are obtained for multiple preset charging currents.

[0169] Table 2 Correspondence between preset charging current, preset charging frequency and charging efficiency

[0170]

[0171] Wherein, f′(min) is the first frequency value, f′(max) is the second frequency value, and step is the frequency step size.

[0172] In the embodiment of the present disclosure, a target charging efficiency, wherein the charging efficiency satisfies a preset charging efficiency threshold, can be determined based on the charging efficiencies corresponding to multiple preset charging frequencies at the same preset charging current. The mapping relationship (such as the mapping relationship shown in Table 1) is obtained based on the correlation between the charging current corresponding to the target charging efficiency and the preset charging frequency. In one embodiment, the preset charging efficiency threshold can be a pre-set fixed threshold, or can be determined based on the charging efficiencies corresponding to multiple preset charging frequencies at the same preset charging current, for example, it can be the maximum value among the multiple charging efficiencies.

[0173] In the embodiment of the present disclosure, as mentioned above, the functional relationship curve between impedance and frequency is a quadratic function with an opening upward, and since impedance is negatively correlated with charging efficiency (high impedance means low charging efficiency, low impedance means high charging efficiency), frequency and charging efficiency are quadratic functions with an opening downward. Therefore, finding the frequency point corresponding to the target charging efficiency that meets the preset charging efficiency threshold (for example, the maximum charging efficiency) is the target charging frequency in the embodiment of the present disclosure that makes the impedance less than the first preset impedance threshold.

[0174] The embodiment of the present disclosure obtains the charging efficiency of the charge pump for charging the battery at different preset charging frequencies based on the charging current for each preset charging current, and selects a target charging efficiency that meets a preset charging efficiency threshold from multiple different preset charging frequencies based on the charging efficiency, thereby enabling the determination of the target charging efficiency at different charging currents, so that the charge pump has a high charging efficiency at its corresponding charging current based on the determined target charging efficiency.

[0175] In some embodiments, the method further comprises:

[0176] For each preset charging current, determining a preset relationship expression between the charging frequency corresponding to the charging current and the impedance value;

[0177] For each charging current, the relational expression is used to determine a set of impedance values ​​and charging frequencies that meet the second preset impedance threshold based on an optimization algorithm, and an association relationship between the charging current and the charging frequency is established to obtain the mapping relationship.

[0178] In the embodiment of the present disclosure, each preset charging current corresponds to a preset relational expression. The relational expression is pre-set and can be determined based on test data from multiple tests of the charge pump. The test data includes multiple sets of impedance values ​​of the charge pump at different charging currents and corresponding charging frequencies. For example, one of the relational expressions can be shown as the following formula (3):

[0179] Z=af 2 +bf+c (3)

[0180] Where Z is the impedance of the charge pump, f is the charging frequency of the charge pump, and a, b, and c are all constants.

[0181] In the disclosed embodiment, the relationship expressions corresponding to different charging currents are all quadratic functions with an opening upward, but the constants in the formula are different, that is, for example, in formula (3), at least one constant among a, b, and c is different.

[0182] In the embodiment of the present disclosure, the relational expression corresponds to the current gear of the charging current. In other words, each current gear corresponds to a relational expression. The corresponding relationship between each current gear of the charging current and the relational expression can be shown in Table 3:

[0183] Table 3 Correspondence between current gear and relational expression

[0184] Current range / A 1 2 … N-1 N Relational Expressions <![CDATA[Z1]]> <![CDATA[Z2]]> …… <![CDATA[Z N-1 ]]> <![CDATA[Z N ]]>

[0185] In the embodiments of the present disclosure, the relational expressions corresponding to different charging currents can be in the same form as the above formula (3), but the constant coefficients can be different. In addition, the relational expressions corresponding to different charging currents can also be function expressions in different forms, which is not limited in the embodiments of the present disclosure.

[0186] As mentioned above, since the impedance and the charging frequency present an upward-opening quadratic function relationship, there must be a frequency value that makes the impedance value smaller (for example, the minimum). In the embodiment of the present disclosure, for each charging current, the relationship expression is used to determine a set of impedance values ​​and charging frequencies that meet the second preset impedance threshold based on the optimization algorithm. Among them, the second preset impedance threshold is a value greater than the minimum impedance that the charge pump can reach under the corresponding charging current, and its determination method can refer to the determination method of the first preset impedance threshold mentioned above. The second preset impedance threshold can be the same as or different from the first preset impedance threshold. It should be understood that the impedance value that meets the second preset impedance threshold is a smaller value within the impedance range that the charge pump can reach. In the embodiment of the present disclosure, based on the determined impedance value and the corresponding charging frequency, the correlation relationship between the charging current and the charging frequency can be established to obtain the above-mentioned mapping relationship. Among them, the optimization algorithm can be, for example, a GA algorithm, a PSO algorithm, an NSGA-Ⅱ algorithm, etc., and the embodiment of the present disclosure does not specifically limit this.

[0187] The embodiment of the present disclosure constructs a mapping relationship by expressing the relationship between the impedance corresponding to the charging current and the charging frequency, and determining a set of impedance values ​​and charging frequencies that meet the second preset impedance threshold based on an optimization algorithm. This eliminates the need to adjust multiple charging frequencies by controlling a charge pump and calculate the corresponding charging power, and the construction method is simple and fast.

[0188] In some embodiments, determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process includes:

[0189] Determining a preset relationship expression between a charging frequency corresponding to the charging current and an impedance value based on the charging current during the charging process;

[0190] The relational expression is used to determine a target impedance value whose impedance value is less than the first preset impedance threshold based on an optimization algorithm, and the charging frequency corresponding to the target impedance value in the relational expression is determined as the target charging frequency.

[0191] In the disclosed embodiment, the relational expression is pre-set and may be obtained through testing of a charge pump. Different charging currents correspond to different relational expressions. After obtaining the charging current of the battery during the charging process, the electronic device determines the relational expression corresponding to the obtained charging current. This relational expression can be found in the aforementioned formula (3).

[0192] Next, the electronic device uses the determined relational expression based on an optimization algorithm to determine a target impedance value. Here, the target impedance value is less than a first preset impedance threshold. The target impedance value can be the minimum impedance value under the charging current, or a value slightly greater than the minimum impedance value. The electronic device then substitutes the target impedance value into the relational expression to calculate a corresponding target charging frequency. Based on the target charging frequency, the electronic device controls the charge pump to charge the battery.

[0193] The embodiment of the present disclosure can, after obtaining the charging current of the battery during the charging process, directly use the preset relational expression corresponding to the charging current to determine a target impedance value less than a first preset impedance threshold based on an optimization algorithm, and determine the charging frequency corresponding to the target impedance value in the relational expression as the target charging frequency; it can also determine the changing trend of the charging current based on the charging current during the charging process, determine the reference value of the charging current in the current charging stage based on the changing trend of the charging current, determine the target impedance value less than the first preset impedance threshold based on the optimization algorithm based on the reference value of the charging current and the preset relational expression corresponding to the reference value of the charging current, and determine the charging frequency corresponding to the target impedance value in the relational expression as the target charging frequency.

[0194] Since the optimization algorithm can efficiently and accurately find the optimal solution to the relational expression, it improves the accuracy and efficiency of determining the target charging frequency, thereby further reducing the power consumption of the charge pump operating based on the target charging frequency and further improving the charging performance of the battery.

[0195] In some embodiments, determining the target impedance value whose impedance value is less than the first preset impedance threshold based on the optimization algorithm using the relational expression includes:

[0196] Based on the relational expression, determining the impedance value corresponding to each preset charging frequency; wherein each preset charging frequency and the impedance value corresponding to the preset charging frequency constitute an optimization data sample;

[0197] Processing the optimization data samples using a genetic operator to obtain updated values ​​of each preset charging frequency;

[0198] Based on the relational expression, determining an impedance update value corresponding to an update value of each preset charging frequency;

[0199] Determining a target impedance value that meets the second preset impedance threshold based on the impedance values ​​corresponding to the respective preset charging frequencies and the impedance update values ​​corresponding to the updated values ​​of the respective preset charging frequencies;

[0200] Based on the impedance values ​​and corresponding charging frequencies determined after multiple iterative processing of the optimization data samples using the genetic operator, a set of target impedance values ​​that meet the first preset impedance threshold is determined; wherein the target impedance value determined after the previous iteration and the charging frequency corresponding to the target impedance value are used to update the optimization data samples.

[0201] In an embodiment of the present disclosure, for a relational expression, a plurality of preset charging frequencies can be generated by a random algorithm. The preset charging frequencies can be values ​​within the feasible domain of the charging frequencies. In one embodiment, after obtaining the preset charging frequencies, they can be encoded. The encoding method can be binary or string. For example, if the number of preset charging frequencies is m, where m is a positive integer greater than or equal to 2, the encoding values ​​of the preset charging frequencies can be referred to in Table 4:

[0202] Table 4 Coding value table of preset charging frequency

[0203] <![CDATA[f1]]> 1101010110 <![CDATA[f2]]> 0010101011 …… …… <![CDATA[f m ]]> 0101011011

[0204] Next, the preset charging frequency in the optimized data sample is substituted into the relational expression to obtain the corresponding impedance value. For example, the impedance values ​​corresponding to the preset charging frequencies shown in Table 4 can be found in Table 5:

[0205] Table 5 Correspondence between preset charging frequency and impedance value

[0206] <![CDATA[f1]]> <![CDATA[f2]]> <![CDATA[f3]]> …… <![CDATA[f m ]]> <![CDATA[Z1]]> <![CDATA[Z2]]> <![CDATA[Z3]]> …… <![CDATA[Z m ]]>

[0207] Then, the optimized data samples are processed using genetic operators to obtain updated values ​​for each preset charging frequency. Specifically, the optimized data samples are processed through genetic operator selection, crossover, mutation, etc. to obtain updated values ​​for each preset charging frequency. For example, the updated values ​​can be seen in Table 6:

[0208] Table 6 Updated values ​​of preset charging frequency

[0209] <![CDATA[f′1]]> 1101010000 <![CDATA[f′2]]> 0111101001 …… …… <![CDATA[f′ m ]]> 1101011100

[0210] Then, the updated charging frequency is substituted into the relational expression to obtain the impedance update value. For example, the impedance update value corresponding to the updated value can be seen in Table 7:

[0211] Table 7 Correspondence between preset charging frequency and impedance update value

[0212] <![CDATA[f′1]]> <![CDATA[f′2]]> <![CDATA[f′3]]> …… <![CDATA[f′ m ]]> <![CDATA[Z′1]]> <![CDATA[Z′2]]> <![CDATA[Z′3]]> …… <![CDATA[Z′ m ]]>

[0213] During the genetic iteration, based on the two sets of impedance values, the value with the smaller impedance value is selected to retain and update the optimization data sample. The two sets of impedance values ​​include a set of impedance values ​​corresponding to the preset charging frequency (see Table 5), and a set of impedance update values ​​corresponding to the updated value of the preset charging frequency (see Table 7). For example, the updated optimization data sample can be referred to in formula (4):

[0214] Z optimal =Z min ,f optimal =f min (4)

[0215] Among them, Z optimal is the impedance value in the updated optimization data sample, f optimal is the charging frequency in the updated optimization data sample, Z min is the minimum value of the two groups of impedance values, f min Z min The corresponding preset charging frequency.

[0216] Then, based on the impedance values ​​and corresponding charging frequencies determined after multiple iterations of the above process on the optimization data samples using the genetic operator, the target impedance value and target charging frequency that meet the first preset impedance threshold are determined. In some embodiments, the electronic device may determine the impedance value that appears most frequently after multiple iterations and the charging frequency corresponding to the impedance value as the target impedance value and target charging frequency that meet the first preset impedance threshold. In the embodiment of the present disclosure, the iterative processing is stopped when the stop condition is met. Here, the stopping condition may be that the impedance value obtained by the iterative processing meets the first preset impedance threshold, or that the impedance values ​​obtained by the iterative processing for a consecutive preset number of times are the same, or the number of iterations is completed, etc. For example, the impedance value and charging frequency obtained by the last iterative processing can refer to formula (5):

[0217] Z optimal =Z final ,f optimal =f final (5)

[0218] Among them, Z final The impedance value obtained in the last iteration can be the target impedance value if the impedance value obtained in the last iteration is less than the first preset impedance threshold. final The charging frequency obtained in the last iteration may be the target charging frequency.

[0219] In the embodiment of the present disclosure, the impedance value obtained last time may be determined as a target impedance value that meets a first preset impedance threshold, and the charging frequency corresponding to the target impedance value may be determined as a target charging frequency.

[0220] In the disclosed embodiment, a genetic operator is used to process the optimization data samples to obtain updated optimization data samples, and the two groups of optimization data samples are compared to obtain a better solution. The above-mentioned sample processing method is used to iteratively process the better solution until the target impedance value and the corresponding target charging frequency that meet the first impedance threshold are obtained iteratively. The better target charging frequency can be accurately obtained, so that the power consumption of the charge pump reaches a sufficiently low level.

[0221] The following describes an exemplary application of the embodiments of the present disclosure in a practical application scenario.

[0222] See also Figure 5 , Figure 5 This is an example flow chart of a charging control method shown in an embodiment of the present disclosure.

[0223] Step 501: The electronic device obtains the charging current of the battery during the charging process.

[0224] In step 502 , the electronic device determines whether the charging current is stable. If so, step 505 is executed; otherwise, step 503 is executed.

[0225] Here, whether the charging current is stable is determined based on the charging current during the charging process. In the disclosed embodiment, the charging current in the CC-CV charging phase is determined to be stable, which corresponds to the aforementioned decreasing trend and stable trend.

[0226] In step 503 , the electronic device determines whether the charging current is increasing. If so, step 504 is executed; otherwise, step 505 is executed.

[0227] In step 504 , the electronic device obtains an initial operating frequency of the current charging stage; and / or obtains a charging current value predicted to be required by the battery after obtaining the initial charging current, and obtains a target charging frequency based on the predicted charging current value.

[0228] Here, the initial operating frequency corresponds to the first target charging frequency corresponding to the aforementioned initial charging current. The initial charging current may be pre-set. The first target charging frequency corresponding to the initial charging current may be determined based on the aforementioned mapping relationship or based on an optimization algorithm.

[0229] During a charging phase where the charging current is increasing, the electronic device obtains a charging current value through prediction after the initial charging current, and then determines a corresponding second target charging frequency based on the predicted charging current value, for example, based on the aforementioned mapping relationship or optimization algorithm.

[0230] In step 505 , the electronic device reads a plurality of charging currents output by the charge pump to the battery.

[0231] In step 506 , the electronic device collects statistics of the multiple charging currents read to obtain a statistical value.

[0232] Here, the statistical value is the third current reference value in the embodiment of the present disclosure. The statistical method can be found in the previous embodiment of the present disclosure and will not be repeated here.

[0233] Step 507: The electronic device determines a corresponding target charging frequency based on the statistical value.

[0234] Here, the electronic device determines the corresponding target charging frequency, ie, the third target charging frequency, based on the statistical value (the third current reference value) in combination with the aforementioned mapping relationship or optimization algorithm.

[0235] In step 508 , the electronic device determines whether the current operating frequency of the charge pump is the same as the target charging frequency. If so, the process returns to step 501 ; otherwise, the process proceeds to step 509 .

[0236] In step 509 , the electronic device modulates the frequency of the charge pump based on the target charging frequency.

[0237] Here, the frequency modulation method is referred to the aforementioned embodiment of the present disclosure and will not be described again here.

[0238] In step 510 , the electronic device determines whether there is an abnormality in the charging process. If so, the process stops; otherwise, the process returns to step 501 .

[0239] Here, the charging abnormality may be an excessively large charging current or an excessively high temperature, etc. An overcurrent detection circuit or a temperature detection circuit may be provided in the electronic device to determine whether an abnormality exists.

[0240] The disclosed embodiment judges the charging stage of the battery based on the charging current of the battery during the charging process, determines the target charging frequency in different ways according to the charging stage, and modulates the frequency of the charge pump so that the power consumption of the charge pump is always kept at a relatively low level, thereby improving the battery charging efficiency, reducing the heat generated by the power consumption of the charge pump, and improving the charging performance.

[0241] Figure 6 This is a diagram of a charging control device shown in an embodiment of the present disclosure, which is applied to an electronic device including a processor. Figure 6 It is known that:

[0242] An acquisition module 601 is used to acquire the charging current of the battery during the charging process;

[0243] a determination module 602 configured to determine a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process; wherein an impedance value of the charge pump charging at the target charging frequency is less than a first preset impedance threshold;

[0244] The charging module 603 is configured to control the charge pump to charge the battery based on the target charging frequency.

[0245] In some embodiments, the determination module 602 is further used to determine a changing trend of the charging current based on the charging current during the charging process; and based on the changing trend of the charging current, determine a target charging frequency for the charge pump to charge the battery in the current charging stage corresponding to the changing trend.

[0246] In some embodiments, the determination module 602 is further used to determine a reference value of the charging current in the current charging stage based on a changing trend of the charging current; and to determine a target charging frequency for the charge pump to charge the battery in the current charging stage based on the reference value of the charging current in the current charging stage.

[0247] In some embodiments, the determination module 602 is further used to determine, in response to the charging current showing an increasing trend, a first current reference value of the initial charging current in the current charging stage showing an increasing trend, and / or a second current reference value after the initial charging current; based on the first current reference value, determine a first target charging frequency for the charge pump to charge the battery at the initial charging current in the current charging stage showing an increasing trend; and / or, based on the second current reference value, determine a second target charging frequency for the charge pump to charge the battery after the initial charging current in the current charging stage showing an increasing trend.

[0248] In some embodiments, the determination module 602 is further used to determine a preset current value as the first current reference value in response to the charging current showing an increasing trend, and / or to use the charging current value of the battery demand predicted after the initial charging current as the second current reference value.

[0249] In some embodiments, the determination module is further used to determine a third current reference value based on multiple charging currents in the current charging stage corresponding to the changing trend in response to the charging current showing a decreasing trend or a stable trend; and based on the third current reference value, determine a third target charging frequency for the charge pump to charge the battery in the current charging stage corresponding to the changing trend.

[0250] In some embodiments, the determining module 602 is further configured to determine, in response to the charging current showing a decreasing trend or a stable trend, a plurality of statistical values ​​of the charging current in the current charging stage corresponding to the changing trend as the third current reference value.

[0251] In some embodiments, the determination module 602 is further used to determine a charging frequency reference value based on the third current reference value; in response to the difference between the current working charging frequency of the charge pump and the charging frequency reference value being within a preset frequency difference range, the current working charging frequency of the charge pump is used as the third target charging frequency; in response to the difference between the current working charging frequency of the charge pump and the charging frequency reference value not being within the preset frequency difference range, the charging frequency reference value is used as the third target charging frequency.

[0252] In some embodiments, the determination module 602 is further used to determine the target charging frequency of the charge pump for charging the battery based on the mapping relationship between the charging current and the charging frequency and the charging current during the charging process; wherein, when the charge pump charges the battery based on a set of charging currents and charging frequencies in the mapping relationship, the impedance value of the charge pump is less than a first preset impedance threshold corresponding to the charging current.

[0253] In some embodiments, the device also includes: a first mapping relationship acquisition module, which is used to obtain, for each preset charging current, the charging efficiency of the charge pump when charging the battery at different preset charging frequencies based on the charging current; for each charging current, select a target charging efficiency that meets a preset charging efficiency threshold among the charging efficiencies corresponding to each preset charging frequency when the charge pump charges the battery; for each charging current, establish an association relationship between the charging current and the charging frequency corresponding to the target charging efficiency to obtain the mapping relationship.

[0254] In some embodiments, the device further includes: a second mapping relationship obtaining module, configured to determine, for each preset charging current, a preset relationship expression between the charging frequency corresponding to the charging current and the impedance value; for each charging current, using the relationship expression to determine, based on an optimization algorithm, a set of impedance values ​​and charging frequencies that satisfy a second preset impedance threshold, and establish an association relationship between the charging current and the charging frequency to obtain the mapping relationship.

[0255] In some embodiments, the determination module 602 is further used to determine a preset relational expression between the charging frequency corresponding to the charging current and the impedance value based on the charging current during the charging process; use the relational expression to determine a target impedance value whose impedance value is less than the first preset impedance threshold based on an optimization algorithm, and determine the charging frequency corresponding to the target impedance value in the relational expression as the target charging frequency.

[0256] In some embodiments, the determination module 602 is further used to determine the impedance value corresponding to each preset charging frequency based on the relational expression; wherein each preset charging frequency and the impedance value corresponding to the preset charging frequency constitute an optimization data sample; the optimization data sample is processed using a genetic operator to obtain an updated value of each preset charging frequency; based on the relational expression, the impedance update value corresponding to the updated value of each preset charging frequency is determined; based on the impedance value corresponding to each preset charging frequency and the impedance update value corresponding to the updated value of each preset charging frequency, a target impedance value that meets the second preset impedance threshold is determined; based on the impedance value and the corresponding charging frequency determined after multiple iterative processing of the optimization data sample using the genetic operator, a target impedance value that meets the first preset impedance threshold is determined; wherein the target impedance value determined after the previous iteration and the charging frequency corresponding to the target impedance value are used to update the optimization data sample.

[0257] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0258] Figure 7 700 is a block diagram of an electronic device according to an embodiment of the present disclosure. For example, the electronic device (device 700) may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0259] Reference Figure 7 , apparatus 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0260] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with at least one of display, phone calls, data communications, camera operation, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 702 may include one or more modules to facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.

[0261] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include at least one of the following: instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, and videos. The memory 704 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0262] The power supply component 706 provides power to various components of the device 700. The power supply component 706 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 700.

[0263] The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0264] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), which is configured to receive external audio signals when the device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0265] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as a keyboard, click wheel, and buttons. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.

[0266] The sensor assembly 714 includes one or more sensors for providing various aspects of the status assessment of the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700. The sensor assembly 714 can also detect changes in the position of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 700, and changes in the temperature of the device 700. The sensor assembly 714 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 can also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 can also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, and a temperature sensor.

[0267] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as Wi-Fi, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0268] In an exemplary embodiment, the device 700 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0269] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including executable instructions or a computer program. The instructions or computer program can be executed by the processor 720 of the apparatus 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0270] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the aforementioned charging control method.

[0271] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0272] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A charging control method, characterized in that: The method comprises: Get the charging current of the battery during the charging process; determining a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process; wherein an impedance value of the charge pump charging at the target charging frequency is less than a first preset impedance threshold; The charge pump is controlled to charge the battery based on the target charging frequency.

2. The method according to claim 1, characterized in that The determining, based on the charging current during the charging process, a target charging frequency for charging the battery by a charge pump includes: determining a changing trend of the charging current based on the charging current during the charging process; Based on the variation trend of the charging current, a target charging frequency for the charge pump to charge the battery in a current charging phase corresponding to the variation trend is determined.

3. The method according to claim 2, characterized in that The determining, based on the changing trend of the charging current, a target charging frequency for charging the battery by the charge pump in a current charging phase corresponding to the changing trend, includes: determining a reference value of the charging current in the current charging stage based on a change trend of the charging current; A target charging frequency for charging the battery by the charge pump in the current charging stage is determined based on a reference value of the charging current in the current charging stage.

4. The method according to claim 3, characterized in that The determining, based on the changing trend of the charging current, a reference value of the charging current in the current charging stage includes: In response to the charging current showing an increasing trend, determining a first current reference value of an initial charging current in a current charging stage showing an increasing trend, and / or a second current reference value subsequent to the initial charging current; The determining, based on a reference value of the charging current in the current charging stage, a target charging frequency for charging the battery by the charge pump in the current charging stage includes: determining, based on the first current reference value, a first target charging frequency for charging the battery by the charge pump at the initial charging current in a current charging phase showing an increasing trend; and / or, Based on the second current reference value, a second target charging frequency for charging the battery by the charge pump after the initial charging current in a current charging phase with an increasing trend is determined.

5. The method according to claim 4, characterized in that In response to the charging current showing an increasing trend, determining a first current reference value of an initial charging current in a current charging stage showing an increasing trend, and / or a second current reference value subsequent to the initial charging current, includes: In response to the charging current showing an increasing trend, a preset current value is determined as the first current reference value, and / or a charging current value of the battery demand predicted after the initial charging current is determined as the second current reference value.

6. The method according to claim 3, characterized in that The determining, based on the changing trend of the charging current, a reference value of the charging current in the current charging stage includes: In response to the charging current showing a decreasing trend or a stable trend, determining a third current reference value based on a plurality of charging currents in a current charging stage corresponding to the changing trend; The determining, based on a reference value of the charging current in the current charging stage, a target charging frequency for charging the battery by the charge pump in the current charging stage includes: Based on the third current reference value, a third target charging frequency for the charge pump to charge the battery in a current charging phase corresponding to the change trend is determined.

7. The method according to claim 6, characterized in that In response to the charging current showing a decreasing trend or a stable trend, determining a third current reference value based on a plurality of charging currents in a current charging stage corresponding to the changing trend includes: In response to the charging current showing a decreasing trend or a stable trend, statistical values ​​of a plurality of charging currents in a current charging stage corresponding to the changing trend are determined as the third current reference value.

8. The method according to claim 6, characterized in that The determining, based on the third current reference value, a third target charging frequency for charging the battery by the charge pump in a current charging phase corresponding to a change trend includes: determining a charging frequency reference value based on the third current reference value; In response to a difference between the current operating charging frequency of the charge pump and the charging frequency reference value being within a preset frequency difference range, using the current operating charging frequency of the charge pump as the third target charging frequency; In response to a difference between the current operating charging frequency of the charge pump and the charging frequency reference value not being within the preset frequency difference range, the charging frequency reference value is used as the third target charging frequency.

9. The method according to any one of claims 1 to 8, characterized in that The determining, based on the charging current during the charging process, a target charging frequency for charging the battery by a charge pump includes: Based on the mapping relationship between the charging current and the charging frequency and the charging current during the charging process, the target charging frequency of the charge pump for charging the battery is determined; wherein, when the charge pump charges the battery based on a set of charging currents and charging frequencies in the mapping relationship, the impedance value of the charge pump is less than a first preset impedance threshold corresponding to the charging current.

10. The method according to claim 9, characterized in that The method further comprises: For each preset charging current, obtaining a charging efficiency of the charge pump for charging the battery at different preset charging frequencies based on the charging current; For each charging current, selecting a target charging efficiency that satisfies a preset charging efficiency threshold value among the charging efficiencies corresponding to the preset charging frequencies when the charge pump charges the battery; For each charging current, an association relationship between the charging current and the charging frequency corresponding to the target charging efficiency is established to obtain the mapping relationship.

11. The method according to claim 9, characterized in that The method further comprises: For each preset charging current, determining a preset relationship expression between the charging frequency corresponding to the charging current and the impedance value; For each charging current, the relational expression is used to determine a set of impedance values ​​and charging frequencies that meet the second preset impedance threshold based on an optimization algorithm, and an association relationship between the charging current and the charging frequency is established to obtain the mapping relationship.

12. The method according to any one of claims 1 to 8, characterized in that The determining, based on the charging current during the charging process, a target charging frequency for charging the battery by a charge pump includes: Determining a preset relationship expression between a charging frequency corresponding to the charging current and an impedance value based on the charging current during the charging process; The relational expression is used to determine a target impedance value whose impedance value is less than the first preset impedance threshold based on an optimization algorithm, and the charging frequency corresponding to the target impedance value in the relational expression is determined as the target charging frequency.

13. The method according to claim 12, characterized in that The determining, using the relational expression based on an optimization algorithm, a target impedance value whose impedance value is less than the first preset impedance threshold value includes: Based on the relational expression, determining the impedance value corresponding to each preset charging frequency; wherein each preset charging frequency and the impedance value corresponding to the preset charging frequency constitute an optimization data sample; Processing the optimization data samples using a genetic operator to obtain updated values ​​of each preset charging frequency; Based on the relational expression, determining an impedance update value corresponding to an update value of each preset charging frequency; Determining a target impedance value that meets the second preset impedance threshold based on the impedance values ​​corresponding to the respective preset charging frequencies and the impedance update values ​​corresponding to the updated values ​​of the respective preset charging frequencies; Based on the impedance values ​​and corresponding charging frequencies determined after multiple iterative processing of the optimization data samples using the genetic operator, a target impedance value that meets the first preset impedance threshold is determined; wherein the target impedance value and the charging frequency corresponding to the target impedance value determined after the previous iteration are used to update the optimization data samples.

14. A charging control device, characterized in that: include: An acquisition module is used to obtain the charging current of the battery during the charging process; a determination module, configured to determine a target charging frequency for charging the battery by a charge pump based on the charging current during the charging process; wherein an impedance value of the charge pump charging at the target charging frequency is less than a first preset impedance threshold; A charging module is configured to control the charge pump to charge the battery based on the target charging frequency.

15. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 13.

16. A computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method according to any one of claims 1 to 13.