Charging method, medium and electronic equipment

By detecting the battery voltage and target charging current in electronic devices and calculating and adjusting the charging voltage, the problem of charging current drop and fluctuation in fast charging mode is solved, and a more efficient charging process is achieved.

CN120049539APending Publication Date: 2025-05-27HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311536730.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In fast charging mode, the charging current of the electronic device decreases due to the increase in the electromotive force of the battery, resulting in slowing down the charging speed, and the operating state of the electronic device causes the charging current to fluctuate, affecting the charging efficiency.

Method used

By detecting the battery voltage and the target charging current, calculate the appropriate charging voltage, and control the charging device to adjust the charging voltage to keep the charging current stable within the target range.

Benefits of technology

Reduces constant current ripple, improves the average charging current, shortens charging time, improves charging efficiency, and reduces charging current climb and drop time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120049539A_ABST
    Figure CN120049539A_ABST
Patent Text Reader

Abstract

The invention is applied to the technical field of charging, and provides a charging method, a medium and an electronic device, and the method comprises the steps: obtaining a battery voltage of the electronic device in real time, and obtaining a target charging current based on the obtained battery voltage, the target charging current, and a first voltage between a battery and the charging device when the target charging current is used for charging the battery; and determining the output voltage of the power adapter. Then, the electronic device can send a notification of adjusting the output voltage to the target charging voltage to the power adapter, so that the power adapter can adjust the output voltage to the target charging voltage, and then the charging current of the battery is adjusted to the target charging current. Thus, in the constant current stage in the fast charging mode, constant current ripples can be reduced, then the average charging current is increased, the charging electric quantity in unit time is increased, and the charging time is saved. And moreover, the time of charging current climbing and falling can be shortened, so that the charging efficiency can also be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, in order to improve the charging efficiency of the battery of an electronic device, the electronic device usually supports a normal charging mode (hereinafter referred to as the normal charging mode) and a fast charging mode (hereinafter referred to as the fast charging mode). The normal charging mode adopts constant voltage charging, and the fast charging mode adopts constant current charging.

[0003] In the normal charging mode, the charging voltage output by the power adapter is constant. During the charging process, as the battery power increases, the electromotive force of the battery becomes higher and higher, and the charging voltage also needs to overcome the electromotive force inside the battery, resulting in a decrease in the actual charging current input to the battery (current hysteresis). And the charging quantity Q = ∫I(t)dt, where I is the charging current input to the battery and t is the charging time. Due to the decrease in the charging current, the quantity of electricity obtained by the battery per unit time is reduced, resulting in a gradual slowdown in the charging speed.

[0004] In the fast charging mode, the charging current input to the battery is constant within a preset range of the target charging current. During the process of charging the battery of the electronic device through the fast charging mode, when the battery power increases, the electromotive force inside the battery also increases. If the charging voltage input to the electronic device remains unchanged, it will cause the charging current to decrease. Therefore, the electronic device can detect the magnitude of the charging current in real time. When the difference between the charging current and the target charging current drops by more than a preset difference, the electronic device can increase the charging voltage output by the power adapter to the electronic device to overcome the electromotive force inside the battery, thereby increasing the charging current and enabling the overall charging current to be stable within the preset range of the target charging current.

[0005] However, when the electronic device is in an operating state, in addition to being input to the battery, the input current of the power adapter to the electronic device also needs to be provided for loads such as the processor or the screen of the electronic device, so that the charging current input to the battery will also fluctuate frequently due to the operating state of the electronic device. Thus, the electronic device adjusts the charging voltage of the power adapter based on the change of the charging current, which will result in a large ripple of the charging current, reduce the average value of the charging current, and affect the charging speed of the battery in the fast charging mode. Summary of the Invention

[0006] In view of this, the present embodiment provides a charging method, a medium, and an electronic device. During the constant current stage in the fast charging mode, the constant current ripple can be reduced, thereby increasing the average charging current, increasing the charging quantity per unit time, saving the charging time. And it can also reduce the time for the charging current to climb and fall, so that the charging efficiency can also be improved.

[0007] In a first aspect, a charging method is provided, which is applied to an electronic device. The electronic device includes a battery. The electronic device first determines a first battery voltage of the battery and a target charging current for charging the battery. Then, based on the first battery voltage and a first voltage between the battery and the charging device when charging the battery with the target charging current, the electronic device determines a first charging voltage provided by the charging device to the battery. The electronic device then controls the charging device to provide the first charging voltage to the battery.

[0008] In the above embodiment, the charging device may be a power adapter, and the electronic device can charge the battery in the electronic device through the charging device. The electronic device first detects the battery voltage at the battery input end and determines the target charging current to be input to the battery, and then determines the first voltage, where the first voltage is the voltage of the circuit (such as a switched-capacitor module and / or a charging cable) between the charging device and the battery at the target charging current. Then, the first charging voltage that the charging device needs to provide can be determined based on the battery voltage and the first voltage. The electronic device can control the charging device to adjust the charging voltage to the first charging voltage, so that the charging current of the battery is adjusted to the target charging current.

[0009] Among them, the battery voltage is less affected by the system current of the system load module in the electronic device, so that the battery voltage does not have large fluctuations. Furthermore, the charging voltage calculated from the battery voltage is more accurate. There is no need to set a large preset change value to trigger the adjustment of the charging voltage in consideration of system load fluctuations. Furthermore, the constant current ripple can be reduced, the average charging current during the charging process can be increased, and the charging efficiency can be improved.

[0010] Moreover, in the current ramping-up and ramping-down stages, if the charging voltage can only be gradually increased in a small amplitude to make the charging current reach the target charging current, the time of the current ramping-up and ramping-down stages is relatively long. In this embodiment, however, the first charging voltage corresponding to the target charging current can be calculated, so that the charging device can directly provide the first charging voltage corresponding to the target charging current. Furthermore, the time consumed in the charging current ramping-up stage and the ramping-down stage can be shortened. In addition, the decreasing speed of the charging current is increased, and the charging current will not be at an excessively high level for a long time. Furthermore, problems such as excessive battery temperature caused by too high charging current in the charging current decreasing stage can be avoided, and the damage to the battery can be reduced.

[0011] In combination with the first aspect, in some implementation manners, the electronic device includes a switched-capacitor module. The output end of the switched-capacitor module is connected to the battery, and the charging device is connected to the input end of the switched-capacitor module through a charging cable. Furthermore, the first voltage is the sum of the cable voltage of the charging cable at the target charging current and the switched-capacitor voltage of the switched-capacitor module at the target charging current.

[0012] In the above embodiments, the current output by the charging device is input into the electronic device through the charging cable. After the switching capacitor module in the electronic device receives the charging current, it is then input into the battery. Furthermore, the sum of the voltages of the charging cable and the switching capacitor module at the target charging current is the first voltage.

[0013] In combination with the first aspect, in some implementation manners, the cable voltage of the charging cable at the target charging current is determined in the following manner: When the output current of the switching capacitor module in the electronic device is the first current, the electronic device determines the output voltage of the charging cable and the output voltage of the charging device. Then, based on the first current, the output voltage of the charging cable, and the output voltage of the charging device, the electronic device determines the cable impedance of the charging cable. The electronic device then determines the cable voltage of the charging cable at the target charging current based on the cable impedance.

[0014] In the above embodiments, the first current is the output current of the switching capacitor module, and the output current of the charging cable can be determined according to the first current. The output voltage of the charging cable and the output voltage of the charging device are the voltages across the charging cable. Furthermore, the impedance of the charging cable can be calculated based on the above parameters. The electronic device can perform voltage regulation according to the actually calculated impedance of the charging cable, avoiding the problem that the impedance of different charging cables may be different during the production process, resulting in the calculated charging voltage being unable to make the charging current reach the target charging current.

[0015] In combination with the first aspect, in some implementation manners, the switching capacitor voltage of the switching capacitor module at the target charging current is determined in the following manner: When the output current of the switching capacitor module is the second current, the electronic device determines the input voltage of the switching capacitor module and the second battery voltage of the battery. Then, based on the second current, the input voltage of the switching capacitor module, and the battery voltage, the electronic device determines the switching capacitor impedance of the switching capacitor module. Furthermore, the electronic device can determine the switching capacitor voltage of the switching capacitor module at the target charging current based on the switching capacitor impedance.

[0016] In the above embodiments, since the second current is the output current of the switching capacitor module, the input voltage of the switching capacitor module and the second battery voltage of the battery are the voltages across the switching capacitor module. Furthermore, the electronic device can calculate the impedance of the switching capacitor module. Then, the electronic device can perform voltage regulation according to the actually calculated impedance of the switching capacitor module, avoiding the problem that the impedance of different switching capacitor modules may be different during the production process, resulting in the calculated charging voltage being unable to make the charging current reach the target charging current.

[0017] In combination with the first aspect, in some implementations, the electronic device includes a switched-capacitor module and a system load module. The output terminal of the switched-capacitor module is connected to the battery and the system load module, and the charging device is connected to the input terminal of the switched-capacitor module through a charging cable. Furthermore, the first voltage is the sum of the cable voltage of the charging cable and the switched-capacitor voltage of the switched-capacitor module at the third current, and the third current is the sum of the current output by the switched-capacitor module to the system load module and the target charging current.

[0018] In the above embodiment, the system load module can be a power-consuming module of the electronic device. For example, a display screen, a processor, etc. The third current is the output current of the switched-capacitor module, and the output current of the switched-capacitor module includes the charging current for charging the battery and the system current required by the system load module. When the load of the electronic device changes greatly, the system current is large at this time, resulting in a decrease in the charging current obtained by the battery. Furthermore, the electronic device also needs to consider the system current, and calculate the value of the charging voltage when there is a system load according to the current output by the switched-capacitor module to the system load module and the target charging current, so that the charging voltage output by the charging device can be adjusted based on the operating conditions of the system load, ensuring that the charging current input to the battery can reach the target charging current, thereby improving the charging speed.

[0019] In combination with the first aspect, in some implementations, before the electronic device controls the charging device to provide the first charging voltage to the battery, if the difference between the current charging voltage and the first charging voltage is greater than the first difference, then control the charging device to provide the second charging voltage to the battery, where the second charging voltage is less than the first charging voltage.

[0020] In the above embodiment, if the difference between the current charging voltage and the first charging voltage is large, directly adjusting the charging voltage from the current charging voltage to the first charging voltage will also cause a large jump in the current, which may damage the charging device and / or the electronic device. Furthermore, the electronic device will first adjust the charging voltage to the intermediate level of the first charging voltage, that is, the second charging voltage, and then adjust it from the second charging voltage to the first charging voltage. In this way, compared with the method of only adjusting the charging voltage step by step in a small amplitude, it can also shorten the time required for the charging current to climb and fall stages, so that the charging efficiency can also be improved, and it can also prevent circuit damage caused by current mutation.

[0021] In combination with the first aspect, in some implementations, before controlling the charging device to provide the first charging voltage to the battery, based on the difference between the current charging current and the target charging current being greater than the second difference, control the charging device to provide the third charging voltage to the battery, where the third charging voltage is less than the first charging voltage.

[0022] In the above embodiments, it is also possible to compare the difference between the current charging current and the target charging current. If the difference between the current charging current and the target charging current is large, the charging voltage is directly adjusted to the first charging voltage, and its current will also have a large jump, which may damage the charging device and / or the electronic device. Furthermore, the electronic device will first adjust the charging voltage to the intermediate gear of the first charging voltage, that is, the second charging voltage, and then adjust the charging voltage to the first charging voltage. In this way, compared with the method of only adjusting the charging voltage step by step in a small amplitude, it can also shorten the time required for the charging current to climb and fall, improve the charging efficiency, and prevent the circuit from being damaged due to current mutation.

[0023] Combined with the first aspect, in some implementation manners, after controlling the charging device to provide the second charging voltage to the battery, the charging device is further controlled to increase the second charging voltage in an arithmetic progression.

[0024] In the above embodiments, after the electronic device adjusts the charging voltage to the second charging voltage and before adjusting the charging voltage to the first charging voltage, the charging device is further controlled to provide at least one charging voltage, where the second charging voltage, the at least one charging voltage, and the first charging voltage form an arithmetic progression. In this way, the electronic device does not only adjust the charging voltage in a small amplitude, but only makes gradual adjustments after reaching the charging voltage at the intermediate gear. In this way, compared with the method of only adjusting the charging voltage step by step in a small amplitude, it can also shorten the time required for the charging current to climb and fall, improve the charging efficiency, and prevent the circuit from being damaged due to current mutation.

[0025] Combined with the first aspect, in some implementation manners, after controlling the charging device to provide the third charging voltage to the battery, the charging device is further controlled to increase the third charging voltage in an arithmetic progression.

[0026] In the above embodiments, after the electronic device adjusts the charging voltage to the third charging voltage and before adjusting the charging voltage to the first charging voltage, the charging device is further controlled to provide at least one charging voltage, where the third charging voltage, the at least one charging voltage, and the first charging voltage form an arithmetic progression. In this way, the electronic device does not only adjust the charging voltage in a small amplitude, but only makes gradual adjustments after reaching the charging voltage at the intermediate gear. In this way, compared with the method of only adjusting the charging voltage step by step in a small amplitude, it can also shorten the time required for the charging current to climb and fall, improve the charging efficiency, and prevent the circuit from being damaged due to current mutation.

[0027] In combination with the first aspect, in some implementation manners, when the first condition is satisfied, the electronic device determines the first battery voltage of the battery and the target charging current for charging the battery, where the first condition includes at least one of the following: the power of the electronic device is less than or equal to the first power threshold; the charging duration of the electronic device is less than or equal to the preset duration; the electronic device obtains that the ambient temperature is less than or equal to the preset temperature.

[0028] In the above embodiments, when the battery power is low, the charged duration is short, or the ambient temperature is low, charging can be performed using the target charging current. The charging method using the target charging current can also be referred to as the fast charging mode. For example, the first power threshold can be 80% of the total battery power. When this solution is adopted in the fast charging mode, the charging voltage can be directly adjusted to the charging voltage corresponding to the target charging current, so that the charging current can directly reach the target charging current, improving the charging efficiency in the fast charging mode.

[0029] In combination with the first aspect, in some implementation manners, the method for the electronic device to determine the first battery voltage of the battery and the target charging current for charging the battery includes: when the electronic device determines that the power of the battery is less than or equal to the second power threshold, determining the first target charging current as the target charging current; or, when the electronic device determines that the power of the battery is greater than the second power threshold and less than the third power threshold, determining the second target charging current as the target charging current; where the second target charging current is less than the first target charging current.

[0030] In the above embodiments, in the fast charging mode, different powers can correspond to different target charging current magnitudes. Furthermore, when the power is small, the battery power can be quickly increased. When the power reaches the second power threshold, reducing the charging current magnitude can reduce the damage to the battery. For example, the second power threshold can be 20% of the total battery power. After the battery power reaches the third power threshold, the electronic device will use a normal charging mode, such as constant voltage charging, to charge the battery. For example, the third power threshold can be 80% of the total battery power.

[0031] In the second aspect, this embodiment provides an electronic device, including a processor and a memory. The memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method described in the first aspect is executed.

[0032] In combination with the second aspect, in some implementation manners, the electronic device further includes a switched-capacitor module. The output end of the switched-capacitor module is connected to the battery, and the charging device is connected to the input end of the switched-capacitor module through a charging cable.

[0033] In combination with the second aspect, in some implementation manners, the electronic device further includes a system load module, and the system load module is connected to the output end of the switched-capacitor module.

[0034] In a third aspect, this embodiment provides a computer-readable storage medium storing instructions that, when executed on an electronic device, perform the method described in the first aspect.

[0035] In a fourth aspect, this embodiment provides a computer program product including computer instructions that, when executed by a computing device, cause the computing device to perform the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the accompanying drawings required for the description of the embodiments.

[0037] Figure 1 is a schematic structural diagram of a charging architecture provided by an embodiment of the present application;

[0038] Figure 2 is a schematic diagram of the change curves of current and voltage during the charging process in a general charging mode combined with a fast charging mode provided by an embodiment of the present application;

[0039] Figure 3 is a schematic diagram of the change curves of current and voltage when a step voltage regulation method is adopted in a fast charging mode provided by an embodiment of the present application;

[0040] Figure 4A is a schematic diagram of the process of an equivalent charging circuit provided by an embodiment of the present application;

[0041] Figure 4B is a schematic diagram of the parameters of each node in a charging architecture provided in an embodiment of the present application;

[0042] Figure 5 is a schematic diagram of the change curves of current and voltage in a heavy load scenario provided by an embodiment of the present application;

[0043] Figure 6A is a schematic structural diagram of an equivalent charging circuit in a heavy load scenario provided by an embodiment of the present application;

[0044] Figure 6B is a schematic diagram of the parameters of each node in a charging architecture in a heavy load scenario provided in an embodiment of the present application;

[0045] Figure 7 is a schematic diagram of the current flow direction in a heavy load scenario provided by an embodiment of the present application;

[0046] Figure 8 is a schematic diagram of the change curves of current and voltage during the current rise and fall in a fast charging mode provided by an embodiment of the present application;

[0047] Figure 9 It is a schematic flow chart of a charging method provided by an embodiment of the present application;

[0048] Figure 10 It is a schematic flow chart of a charging method provided by an embodiment of the present application in the constant current charging stage;

[0049] Figure 11A It is a schematic flow chart of a method for real-time calculating the cable resistance provided by an embodiment of the present application;

[0050] Figure 11B It is a schematic diagram of the parameters of each node in the charging architecture in the case of real-time calculating the cable resistance provided by an embodiment of the present application;

[0051] Figure 12A It is a schematic flow chart of a method for real-time calculating the equivalent resistance of a switched-capacitor charging module provided by an embodiment of the present application;

[0052] Figure 12B It is a schematic diagram of the parameters of each node in the charging architecture when real-time calculating the equivalent resistance of a switched-capacitor charging module provided by an embodiment of the present application;

[0053] Figure 13 It is a schematic flow chart of a charging method provided by an embodiment of the present application in the current rising stage or the falling stage;

[0054] Figure 14 It is a schematic flow chart of a charging method provided by an embodiment of the present application combined with a step voltage regulation method in the current rising stage or the falling stage;

[0055] Figure 15 It is a schematic diagram of comparing the charging current of a charging method provided by an embodiment of the present application with the charging current of a step voltage regulation method;

[0056] Figure 16A It is a schematic diagram of comparing the charging voltage of a charging method provided by an embodiment of the present application with the charging voltage of a step voltage regulation method;

[0057] Figure 16B It is a schematic diagram of the charging voltage of a voltage regulation method for setting an intermediate gear provided by an embodiment of the present application;

[0058] Figure 17 It is a schematic structural diagram of a charging device provided by an embodiment of the present application;

[0059] Figure 18 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0060] Exemplary embodiments of the present application include, but are not limited to, a charging method, a medium, and an electronic device.

[0061] The following takes Figure 1 as an example to introduce the charging architecture that supports fast charging involved in the present application.

[0062] Figure 1 A charging architecture is shown, including an electronic device 100 and a power adapter 200. The charging circuit of the electronic device 100 specifically further includes a buck charging module 11, a switched capacitor (SC) charging module 12, a system load module 13, and a battery module 14. The buck charging module 11 further includes N-channel metal oxide semiconductor field effect transistors (MOSFETs) Q1, Q2, and Q3. And the buck charging module 11 is connected to the system load module 13 through an inductor L1. Among them, the system load module 13 is other power-consuming modules in the electronic device 100 except the battery module 14, including but not limited to modules such as a communication module, a processor, a sensor, a display screen, and an audio module.

[0063] Communication can also be carried out between the electronic device 100 and the power adapter 200. For example, based on the quick charge (QC) protocol, such as QC3.0 or QC3+. Or, the electronic device 100 and the power adapter 200 can also communicate based on the PD protocol. Or when the power adapter 200 is a wireless charger, the electronic device 100 and the power adapter 200 can also communicate based on a wireless charging protocol, such as the QI protocol.

[0064] The electronic device 100 can determine the charging mode according to the device power or temperature, etc., and notify the power adapter 200 to adjust the magnitude of the output charging voltage (Vadp) based on the above communication protocol, and then adjust the magnitude of the output current Iadp output by the power adapter 200 to the electronic device 100. The output current Iadp of the power adapter 200 is input into the charging circuit of the electronic device 100 through a cable, such as a universal serial bus (USB) cable, and finally the charging current Ibat input to the battery module 14 and the system current Isys input to the system load module 13 are obtained. The system current Isys is the magnitude of the current required for the operation of the electronic device 100 system.

[0065] For example, in the fast charging mode, the output current Iadp is input into the SC charging module 12 through the USB cable, and then the SC charging module 12 outputs the charging current Ibat to the battery module 14 and outputs the system current Isys to the system load module 13. In the normal charging mode, the output current Iadp is input into the buck charging module 11 through the USB cable, and then the buck charging module 11 outputs the charging current Ibat to the battery module 14 and outputs the system current Isys to the system load module 13.

[0066] Exemplarily, Figure 2 Fig. shows a schematic diagram of the changing trends of Vadp and Ibat during charging, and an example is given where the electronic device 100 starts charging from a battery level of 0.

[0067] When the battery level of the electronic device 100 is lower than 80%, that is, within about the first 40 minutes of charging, the electronic device 100 operates in the fast charging mode, that is, the charging current input to the battery module 14 is stabilized within a preset range of the target charging current.

[0068] Moreover, in different stages of the fast charging mode, different magnitudes of target charging currents can be set. Exemplarily, in some fast charging modes, when the battery level is relatively low (e.g., lower than 20%), the electronic device 100 will control Ibat to be in a relatively high range of 10 amperes (A) to 18 A. When charging from 7 minutes to 35 minutes, when the battery level reaches 20% to 80%, the electronic device 100 will control Ibat to be around 8 A.

[0069] Moreover, as the battery level increases, the battery electromotive force increases, which in turn causes Ibat to decrease. The electronic device 100 will detect Ibat in real time. When the difference between Ibat and the target charging current reaches a first preset difference, the electronic device 100 will adjust the charging voltage Vadp of the power adapter 200, and then adjust the magnitude of the Ibat current to be within the preset range of the target charging current. For example, when the increase in the battery level causes Ibat to decrease to a difference from the target charging current that exceeds the first preset difference, at this time the electronic device 100 will notify the power adapter 200 to increase Vadp to increase Ibat. When the system load decreases, causing Isys to decrease and Ibat to increase, if the increase in Ibat causes the difference from the target charging current to exceed the first preset difference, Vadp will be adjusted downward to decrease Ibat.

[0070] Exemplarily, Figure 3 For Figure 2 partial schematic diagrams in the fast charging mode in Figure 3It shows in detail the schematic diagram of the change trends of Vadp and Ibat during the charging process from 7 minutes to 35 minutes. Among them, when the difference between Ibat and the target charging current reaches 300 milliamperes (mA), the voltage of Vadp will be increased by 40 millivolts per step (40 mV / step), thereby raising the current value of Ibat, so that Ibat is restored to around 8A, and this process repeats. Furthermore, the Vadp of the power adapter 200 gradually rises from around 16V to around 18V, while Ibat is generally stable around 8A.

[0071] When the battery level of the electronic device 100 reaches 80%, as Figure 2 shown, when the charging time is more than 40 minutes, the electronic device 100 will enter the normal charging mode, that is, the charging voltage of the power adapter 200 is constant. For example, the power adapter 200 charges the electronic device 100 with a constant voltage of 5V. At this time, Ibat will gradually decrease as the battery level increases, and thus the charging efficiency gradually decreases during this process.

[0072] In some embodiments, Vadp in the fast charging mode can also be other values, such as 40V to 60V, or even 120V. Vadp in the normal charging mode can also be other values, such as 10V, etc. The adjustment value of Vadp can also be other values, such as 120 mV / step. This application does not make specific limitations on this.

[0073] However, as Figure 1 shown, the output current of the SC charging module 12, in addition to the Ibat current output to the battery module 14, also has a current output to the system load module 13 through Q3, that is, the system current Isys. And when the electronic device 100 is running, its load is usually dynamically changing. For example, the loads brought by screen image rendering and data transmission processes are unstable. As a result, Isys fluctuates, causing Ibat to also have large fluctuations. That is to say, the fluctuation of Ibat is affected not only by the voltage difference between the charging voltage and the battery voltage, but also by the system load.

[0074] If the first preset difference between the charging current and the target charging current is set to be small, this will cause the system load to trigger the adjustment of Vadp even when it fluctuates slightly, resulting in Vadp being frequently raised and lowered following the change of the system load, showing a ping-pong effect. To avoid this situation, the first preset difference is usually set to be large, such as the above-mentioned 300 mA. However, this will cause a large constant current ripple of Ibat, and the average current value of charging will be low, and thus the charging speed will also be low.

[0075] To solve the problem that adjusting the charging voltage of the power adapter output according to Ibat results in a low charging speed, the present application provides a charging method. In this method, the electronic device 100 does not detect Ibat with large fluctuations, but detects the relatively stable battery voltage Vbat, and adjusts the charging voltage Vadp of the power adapter 200 through the battery voltage Vbat. Since Vbat is mainly related to the charging voltage Vadp of the power adapter 200 and the impedance of the charging circuit, and is less affected by Isys, Vbat does not have large fluctuations. Furthermore, the adjustment value of Vadp calculated through Vbat is more accurate, and there is no need to set a large Vbat change value to trigger the adjustment of Vadp.

[0076] Specifically, in some embodiments, the corresponding relationship among the battery voltage, charging current of the electronic device 100, and the charging voltage of the power adapter can be established in advance. In the fast charging mode, when it is necessary to charge the battery module 14 of the electronic device 100 with a certain target charging current Ichg, the electronic device can obtain the charging voltage Vbat of the battery module 14 of the electronic device 100 in real time, and determine the charging voltage Vadp of the power adapter based on the obtained battery voltage Vbat, the target charging current Ichg, and the above corresponding relationship. Then, the electronic device 100 can send an instruction to the power adapter 200 to adjust the charging voltage to Vadp, so that the power adapter 200 can adjust the charging voltage to Vadp, and further adjust the charging current of the battery module 14 to the target charging current Ichg.

[0077] In some embodiments, the corresponding relationship among the battery voltage, charging current of the electronic device 100, and the charging voltage of the power adapter can be determined based on the equivalent impedance Rpath from the power adapter 200 to the battery module 14 of the electronic device 100 and the turns ratio of the SC charging module 12.

[0078] For example, the calculation process of Vadp in the charging method provided by the present application is illustrated by taking the structure of the SC charging module 12 shown in (A) of Figure 4A as an example.

[0079] In some embodiments, the SC charging module 12 can refer to Figure 4A in (A). The SC charging module 12 includes N-channel MOSFETs: Q4 to Q11, and capacitors C1 to C3. As shown in Figure 4AAs shown in (B) thereof, the SC charging module 12 can be equivalent to an ideal transformer in series with an output resistance Rout. The ratio of the input of the ideal transformer to the charging voltage is N:1. The output resistance Rout can be calculated by applying different voltage values, measuring the input voltage Vin, output voltage Vout and output current Iout of the SC charging module 12, and specifically, reference can be made to the following formula (1).

[0080] Rout = (Vin / N - Vout) / Iout (1)

[0081] As Figure 4A shown in (C) thereof, since there is also an impedance Rcable in the cable connecting the power adapter 200 to the electronic device 100, and the cable and the SC charging module 12 are in a series relationship. Furthermore, the equivalent impedance Rpath of the fast charging circuit is obtained by combining Rcable and Rout. The calculation method of Rpath can be referred to the following formula (2).

[0082] Rpath = Rcable / N^2 + Rout (2)

[0083] In some embodiments, Rcable can also be obtained by applying a given voltage value across the two ends of the cable, measuring the current in the cable, and based on Ohm's law, Rcable = given voltage value / current in the cable.

[0084] As Figure 4A shown in (D) thereof, the equivalent circuit of the fast charging circuit can be equivalent to an ideal transformer with a ratio of N:1 and Rpath, where N is a positive number. Furthermore, the input voltage Vin of the fast charging circuit is the charging voltage Vadp of the power adapter, the output voltage Vout is the battery voltage Vbat, and the voltage difference between Vadp and Vbat is generated by the cable and the SC charging module 12 under Ichg. Furthermore, Vadp can be obtained from Vbat, Rpath, and the preset Ichg and the turns ratio N of the transformer, and specifically, reference can be made to the following formula (3).

[0085] Vadp = (Vbat + Ichg * Rpath) * N (3)

[0086] Exemplarily, Figure 4B shows the corresponding relationship between circuit parameters such as Vadp, Vbat, Ichg, Rpath and the charging circuit in a charging structure. Among them, the detailed content of each module in the charging structure can be referred to the foregoing Figure 1The related descriptions are as follows. Specifically, Vadp is the charging voltage at the output end of the power adapter 200, Vbat is the battery voltage at the input end of the battery module 14, Ibat is the charging current input to the battery module 14, and the ideal value of Ibat is the magnitude of the target charging current Ichg. Rcable is the equivalent impedance of the USB cable, and Rout is the equivalent impedance of the SC charging module 12. Rpath is the equivalent impedance of the fast charging circuit between the power adapter 200 and the battery module 14 obtained by combining Rcable and Rout.

[0087] As can be seen from formula (3), since Vbat is a relatively stable battery voltage value, Rpath is a relatively stable equivalent impedance, Ichg is the target charging current, and N is a fixed value, the calculated Vadp is also a relatively stable value. Adjusting Vadp according to the change of Vbat will be more accurate, which can reduce the constant current ripple, increase the average current value of the charging current, and thus improve the charging efficiency in the fast charging mode.

[0088] In some embodiments, when the load of the electronic device 100 changes greatly, at this time Isys fluctuates greatly, resulting in a large fluctuation of Ibat. For example, in heavy load scenarios such as games, the charging curve can be referred to as Figure 5 , in Figure 5 there is a large jump in Ibat within the dashed box, indicating that Isys fluctuates greatly. At this time, the change of Isys needs to be considered. Therefore, Figure 4A as shown in (D) of Figure 6A , in the case of considering the load, the equivalent circuit of the charging circuit can be referred to as

[0089] In the case of considering the load, the electronic device 100 also needs to read the magnitude of the current of Isys, which can be specifically determined by reading the current of Q3 in Figure 1 through an analog to digital converter (ADC). Furthermore, Vadp can be obtained from Isys, Vbat, Rpath, and the preset Ichg and the turns ratio N of the transformer. Specifically, it can be referred to the following formula (4).

[0090] Vadp = (Vbat + (Ichg + Isys) * Rpath) * N (4)

[0091] Exemplarily, Figure 6B shows the corresponding relationship between circuit parameters such as Isys and the charging circuit in a charging structure. Isys is the system current input to the system load module 13, and Rload represents the equivalent resistance of the system load module 13. Other circuit parameters can be referred to the related descriptions in the foregoing Figure 4B .

[0092] In this way, the real-time value of Vadp can be obtained according to Isys corresponding to the system load, so that the Vadp output by the power adapter 200 can be adjusted based on the operating conditions of the system load, ensuring that the charging current Ibat input to the battery module 14 can be stabilized within the preset range of the target charging current Ichg, thereby reducing the fluctuation of the charging current Ibat, increasing the average charging current value, and improving the charging speed.

[0093] In some other embodiments, if the electronic device 100 does not have an ADC for sampling Isys, as Figure 7 shown, Isys can also be calculated from the input current Ibus and the charging current Ibat of the SC charging module 12. Specifically, reference can be made to the following formula (5).

[0094] Isys = Ibus * N - Ibat (5)

[0095] It should be understood that Figure 4A the structure of the SC charging module 12 shown is only an example, and for the structures of other SC charging modules, the above model can also be established with reference to the above process. The present application does not specifically limit the structure of the SC charging module 12.

[0096] Furthermore, according to Figure 4A the (D) in or Figure 6A the impedance model shown, the electronic device 100 can first measure the equivalent impedance Rpath of the charging circuit in advance during the R & D stage, or the electronic device 100 can calculate Rpath by detecting the current and voltage of the charging circuit in real time during the charging stage. During the process of charging the electronic device 100 in the fast charging mode with the target charging current Ichg, the electronic device 100 can measure the Vbat obtained by the ADC in real time, or can also measure Isys. Then, the electronic device 100 calculates the required charging voltage Vadp of the power adapter 200 according to formula (3) or formula (4). Secondly, the electronic device 100 can send an instruction to adjust the charging voltage to Vadp to the power adapter 200, so that the power adapter 200 can adjust the charging voltage to Vadp, and then adjust the charging current input to the battery module 14 to the target charging current Ichg.

[0097] In this way, when Vbat changes due to reasons such as the increase in battery power or the increase in battery temperature, the electronic device 100 can timely calculate the required Vadp corresponding to the target charging current Ichg through the detected Vbat in real time. Then, by adjusting Vadp through the power adapter 200, the charging current can reach the target charging current Ichg.

[0098] In some embodiments, the above-mentioned target charging current Ichg can be determined according to factors such as the current battery level of the electronic device 100 and the temperature of the battery module 14. Moreover, when the electronic device 100 determines that the target charging current Ichg changes, it will also recalculate the charging voltage Vadp corresponding to the new target charging current Ichg and notify the power adapter 200 to adjust the charging voltage to the newly calculated Vadp.

[0099] Since the change of Vbat is not affected by the system load and has large fluctuations, and Ichg and Rpath are also stable values, it will be more accurate to adjust Vadp according to the change of Vbat. There is no need to set a large preset change value to trigger the adjustment of Vadp in consideration of the system load fluctuation. Thus, the problem of current hysteresis can be effectively solved, the constant current ripple can be reduced, the average current value in the fast charging mode can be increased, and the charging efficiency can be improved.

[0100] Moreover, in the current fast charging mode, Vadp is adjusted by the Ibat current, and the corresponding relationship between the target charging current Ichg and the voltage Vadp output by the power adapter 200 is not determined. Thus, in the fast charging mode, during the process of switching from one target charging current to another target charging current, the electronic device usually adjusts the input voltage of the power adapter in a step-by-step manner to make the target charging current adjust from the one target charging current to the other target charging current.

[0101] That is to say, the fast charging mode includes a constant current stage, a climbing stage, and a descending stage. Among them, the constant current stage is the stage of charging the battery with a certain target charging current Ichg. The Ibat current climbing stage refers to the process in which the Ibat current switches from a smaller target charging current to a larger target charging current, and the Ibat current descending stage refers to the process in which the Ibat current switches from a larger target charging current to a smaller target charging current.

[0102] For example, Figure 2 the target charging currents include multiple levels such as 18A, 12A, 10A, and 8A. When the Ibat current rises to 18A, and when it drops from 18A to 12A, from 12A to 10A, and from 10A to 8A, the power adapter 200 usually first inputs a Vadp with a preset voltage value to the electronic device 100. Then the electronic device 100 detects whether the Ibat reaches the target 18A, 12A, 10A, or 8A. If the Ibat does not reach the corresponding target charging current, Vadp is continuously adjusted by 40mV / step or 120mV / step, so that the Ibat gradually rises or drops to the corresponding target charging current.

[0103] However, due to the time consumed for ADC conversion data and the influence of other software scheduling times, the sampling interval of Ibat is relatively large, for example, usually 500 milliseconds. As a result, the maximum step adjustment time interval of Vadp is also relatively large (for example, adjusted once every 500 milliseconds), resulting in a relatively long time required for the rising and falling stages of the Ibat current, and thus a too long adjustment time for the Ibat current. Exemplarily, Figure 8 is shown in detail Figure 2 the detailed processes of the rising and falling stages of the current in the fast charging mode in, where the rising stage consumes 26 seconds, and the falling stages consume 11 seconds, 5 seconds, and 5 seconds respectively. Thus, when the electronic device 100 needs to increase the charging current to a relatively high target charging current, due to the slow rising of the charging current, the total charging power during the rising stage is relatively low, reducing the charging efficiency. In the falling stage, the charging current cannot be reduced to a relatively low target charging current for a long time, causing the charging current to be at a too high level for a long time, which may lead to an increase in the temperature of the electronic device 100 and damage to the battery module 14.

[0104] However, for the charging method provided in the present application, since the corresponding relationship among the battery voltage, the charging current, and the charging voltage of the power adapter is established, the electronic device 100 can directly calculate the required Vadp through the target charging current Ichg and the detected Vbat, and send the value of Vadp to the power adapter 200. Then, the power adapter 200 can directly adjust the charging voltage to Vadp. In this way, there is no need to step-adjust Vadp, which can shorten the time required for the rising and falling stages of the Ibat current, is beneficial to improving the charging efficiency of the Ibat current during the rising stage, and reducing the damage to the battery module 14 by the Ibat current during the falling stage.

[0105] In summary, through the charging method provided in the present application, not only can the constant current ripple be reduced during the constant current stage in the fast charging mode, thereby increasing the average charging current, increasing the charging power within a unit time, and saving the charging time. Moreover, the time for the charging current to rise and fall can be reduced, so that the charging efficiency can also be improved. And this method does not involve modifying the hardware structure of the charging circuit. Based on the original hardware structure, by changing the voltage regulation method of charging, the charging efficiency can be improved, and the cost of modifying the hardware structure can also be saved.

[0106] Moreover, the above-mentioned electronic device 100 can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, etc. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device 100.

[0107] The power adapter 200 can also be referred to as power delivery (PD), and specifically can be a programmable power supply (PPS) in PD. The power adapter 200 can be a direct current (DC) adapter or an alternating current (AC) adapter. Moreover, the power adapter 200 can be a wired charger or a wireless charger. The embodiments of the present application do not impose any restrictions on the specific type of the power adapter 200.

[0108] In some embodiments, the electronic device 100 can also charge the battery through other charging devices besides the power adapter 200. For example, the charging device can also be a power bank or an electronic device with reverse charging function. For the sake of convenience of description, the embodiments of the present application are all exemplified by the charging device being the power adapter 200.

[0109] The following is based on the above Figure 4A or Figure 6A As shown in the impedance model of the charging circuit, the process of a charging method provided by the embodiments of the present application is introduced. This method is applied to the above-mentioned electronic device 100, as Figure 9 shown, this method specifically includes:

[0110] S910: Obtain a charging event.

[0111] A charging event refers to the electronic device 100 detecting the connection of the power adapter 200. For example, the user connects the electronic device 100 to a charging power source through a power adapter 200 such as a wired charger or a wireless charging base.

[0112] It should be understood that the implementation manner for the electronic device 100 to determine the occurrence of a charging event can also be set according to the actual application scenario, and the embodiments of the present application do not make any limitations.

[0113] S920: Determine whether it is currently in the fast charging mode.

[0114] The electronic device 100 can also determine whether to enter the fast charging mode according to preset rules such as the current battery power, the environment where the electronic device 100 is located, and the operating state of the electronic device 100 (such as the temperature of the battery module 14).

[0115] For example, if the current battery power is low, such as less than 80%, the fast charging mode can be used for charging. On the contrary, if the current battery power is high, such as higher than 80%, the normal charging mode can be used for charging. Or, the electronic device 100 can also detect environmental parameters such as the current ambient temperature and humidity. For example, when the electronic device 100 detects that the ambient temperature exceeds the preset temperature range, or the temperature of the electronic device 100 itself is too high, only the normal charging mode can be used for charging. Or, the electronic device 100 can also judge whether to enter the fast charging mode according to the charging duration that has been charged and the preset duration. For example, the preset duration is 40 minutes. When the electronic device 100 detects that the charging duration that has been charged is less than or equal to 40 minutes, the fast charging mode can be used for charging. When the electronic device 100 detects that the charging duration that has been charged is greater than 40 minutes, the normal charging mode can be used for charging.

[0116] The preset rules can also be a combination of the above multiple rules based on battery power, temperature, charging time, etc. The preset rules can be determined based on a user-preset file, can be pre-loaded in advance during operation, or can be input via other additional ports.

[0117] In some embodiments, the electronic device 100 will also determine whether the power adapter 200 is a charger that supports the fast charging mode. When the power adapter 200 is a charger that supports the fast charging mode, it is further determined whether to enter the fast charging mode. If the power adapter 200 is not a charger that supports the fast charging mode, step S960 is directly executed, and the electronic device 100 is charged in the constant voltage normal charging mode.

[0118] S930: Obtain the battery voltage Vbat, the target charging current Ichg, and the equivalent impedance Rpath of the charging circuit.

[0119] The electronic device 100 will detect the battery voltage Vbat. For example, by reading the voltage at the input end of the battery module 14 through the ADC, the magnitude of the voltage of Vbat can be obtained. The electronic device 100 can obtain the voltage by reading the voltage at any point between the output end of the SC charging module 12 and the input end of the battery module 14 through the ADC, and this voltage is Vbat.

[0120] The target charging current Ichg can be a fixed fast charging current value, or a current value determined by the electronic device 100 according to the battery power and / or the environment where the electronic device 100 is located. Specifically, when the battery power increases, or the ambient temperature is relatively high but does not exceed the preset temperature range, the magnitude of the target charging current Ichg can be appropriately reduced.

[0121] For example, when the battery power is below 10%, the target charging current Ichg can be 18A. When the battery power is between 10% and 20%, the target charging current Ichg can be 12A. When the battery power is between 20% and 80%, the target charging current Ichg can be 5A. It should be understood that the present application does not specifically limit the magnitude of the target charging current Ichg.

[0122] The equivalent impedance Rpath of the charging circuit can be measured in advance during the R & D stage of the electronic device 100 and the power adapter 200. The equivalent impedance Rpath can be calculated based on the resistance Rout of the SC charging module 12 and the cable impedance Rcable of the power adapter 200. Specifically, reference can be made to the foregoing formulas (1) and (2) and their related descriptions.

[0123] In some embodiments, due to impedance errors caused during the generation stage, there are errors in the impedance of the actual charging circuit. Or, the charging cable and / or the power adapter 200 used by the user are not the original configurations, etc. The electronic device 100 can also calculate the equivalent impedance Rpath in real time by detecting the input and output of the charging circuit. Specifically, reference can also be made to the following Figure 11A and Figure 12A related descriptions.

[0124] In some embodiments, if the electronic device 100 detects that the current load is relatively large, the influence of Isys can also be considered, and further, the magnitude of the current of Isys needs to be obtained. For example, it can be determined by reading the current of Q3 as in Figure 1 through the ADC.

[0125] In some embodiments, if the electronic device 100 does not have an ADC for sampling Isys, Isys can also be calculated from the input currents Ibus and Ibat of the SC charging module 12. Specifically, reference can be made to the foregoing formula (5).

[0126] S940: Calculate the charging voltage Vadp of the power adapter based on the battery voltage Vbat, the target charging current Ichg, and the equivalent impedance Rpath.

[0127] Based on the battery voltage Vbat, the target charging current Ichg, and the equivalent impedance Rpath, the electronic device 100 can calculate the charging voltage Vadp required to reach the target charging current Ichg under the current battery charge condition. The voltage of the equivalent impedance Rpath is the voltage generated by the equivalent impedance Rpath at the target charging current Ichg. Then, the voltage of the equivalent impedance Rpath is added to the battery voltage Vbat, and multiplied by the varistor ratio N to obtain the charging voltage Vadp. For details, please refer to the foregoing formula (3) and its related description.

[0128] If the electronic device 100 also considers the influence of Isys, the voltage of the equivalent impedance Rpath is the voltage generated by the equivalent impedance Rpath at the target charging current Ichg and the system current Isys. Then, the voltage of the equivalent impedance Rpath is added to the battery voltage Vbat, and multiplied by the varistor ratio N to obtain the charging voltage Vadp. For details, please refer to the foregoing formula (4) and its related description.

[0129] It should be understood that in the fast charging mode, the electronic device 100 can repeatedly execute the above steps S930 to S940. For example, since Vbat also changes as the battery charge increases or the battery temperature changes during the charging process. At this time, the electronic device 100 can detect Vbat in real time at a preset frequency (or period), calculate the Vadp required to reach the target charging current Ichg under the current condition. Then, the power adapter 200 is adjusted to make Ibat reach the target charging current Ichg.

[0130] The preset frequency for the electronic device 100 to detect Vbat in real time can be determined according to the highest frequency of ADC sampling of Vbat. Thus, Vbat can be detected at a relatively high frequency, and Vadp can also be adjusted at a relatively high frequency, reducing the charging current hysteresis. Alternatively, the electronic device 100 can also appropriately reduce the preset frequency of detecting Vbat, thereby reducing the ADC power consumption and the power consumption caused by the communication between the electronic device 100 and the power adapter 200. It should be understood that the present application does not specifically limit the magnitude of the preset frequency.

[0131] S950: Control the power adapter 200 to adjust the charging voltage to Vadp.

[0132] The electronic device 100 controls the power adapter 200 to adjust the charging voltage to Vadp. Specifically, it can send instructions to the power adapter 200 through communication protocols such as the QC protocol, PD protocol, or QI protocol. This instruction is used to indicate that the power adapter 200 adjusts the output charging voltage to the calculated charging voltage Vadp. Furthermore, the power adapter adjusts the charging voltage to the magnitude of Vadp, so that the charging current Ibat obtained by the battery module 14 of the electronic device 100 can reach the target charging current Ichg.

[0133] In some embodiments, if the electronic device 100 detects that the charging current Ibat is in the rising or falling stage. At this time, the difference between the actual charging current Ibat and the target charging current Ichg is relatively large. For example, the difference is greater than the threshold δ 1 . Or, the difference between the actual charging voltage and the charging voltage calculated according to the target charging current Ichg is relatively large. For example, the difference is greater than the threshold δ 2 If the charging current Ibat is directly adjusted according to the calculated Vadp, it will cause a large change in the charging current Ibat.

[0134] In order to prevent current mutation from damaging the battery module 14 or the charging circuit, an intermediate gear of Vadp can also be set. For example, first adjust the charging voltage to a value between the current charging voltage and Vadp. For example, the current charging voltage plus 50% or 30% of the difference between the current charging voltage and Vadp. Or, first set the Ichg of the intermediate gear. For example, the Ichg of the intermediate gear can be the current charging current plus 50% or 30% of the difference between the current charging current and Ichg. Then, calculate the intermediate gear Vadp according to the Ichg of the intermediate gear. The electronic device 100 will first notify the power adapter 200 to adjust to the intermediate gear of Vadp first. After a preset time, it will then notify the power adapter 200 to adjust to Vadp.

[0135] In some other embodiments, the electronic device 100 can also first notify the power adapter 200 to adjust to the intermediate gear Vadp first, and then increase the charging voltage to Vadp in a preset step. For example, first adjust to 80% Vadp of the current charging voltage plus the difference between the current charging voltage and Vadp, and then increase the charging voltage by 40mV / step or 120mV / step until the calculated Vadp is reached. Among them, the voltage after each step adjustment forms an arithmetic sequence. For details, please refer to the following Figure 14 and its related description.

[0136] It should be understood that the electronic device 100 will also repeatedly execute steps S920 to S950 until the fast charging mode ends. After the fast charging mode ends, the electronic device 100 can also execute step S960 to charge the battery module 14 in the normal charging mode.

[0137] S960: Charge in the normal charging mode.

[0138] When the electronic device 100 detects that the power adapter 200 is not a charger supporting the fast charging mode, or the temperature of the electronic device 100 is relatively high, or the current battery power is relatively high, for example, when it is greater than 80%, the electronic device 100 will adopt the constant voltage normal charging mode. For example, charge with a constant 5V. Specifically, reference can also be made to the relevant description of the normal charging mode stage in the foregoing Figure 2 above.

[0139] In summary, through the charging method provided by this application, not only can the constant current ripple be reduced during the constant current stage of the fast charging mode, thereby increasing the average charging current, increasing the charging power within a unit time, and thus saving charging time. Moreover, it can also reduce the time for the charging current to climb and fall, so that the charging efficiency can also be improved. And this method does not involve modifying the hardware structure of the charging circuit, and also saves the cost of modifying the hardware structure.

[0140] Next, the flow of the charging method provided by the embodiments of this application in different scenarios will be described.

[0141] First, the charging method of the electronic device 100 during the constant current stage of the fast charging mode will be introduced using the impedance model shown in (D) in Figure 4A above. As shown in Figure 10 below, this method includes:

[0142] S1001: Determine whether it is in the constant current stage. If so, execute step S1002, otherwise execute step S1007.

[0143] The electronic device 100 can determine whether it belongs to the fast charging mode by detecting the battery power and the preset rules corresponding to the current battery power. Specifically, reference can also be made to step S920 and its relevant description in the foregoing.

[0144] Moreover, in the fast charging mode, the target charging current Ichg may also be different under different battery powers. Therefore, the target charging current of the charging current Ibat is different in different constant current stages. During the process of the charging current Ibat switching from one target charging current to another target charging current, the difference between the charging current Ibat and the target charging current is greater than the second preset difference, which belongs to the Ibat current climbing stage or the falling stage. For example, the stage outlined by the dotted line in the foregoing Figure 8 above.

[0145] Therefore, the electronic device 100 can determine whether Ibat is in the constant current stage by detecting the magnitude of the current of Ibat and comparing Ibat with Ichg. If Ibat has reached near Ichg, it indicates that Ibat has completed the climb or descent and belongs to the constant current stage.

[0146] S1002: Obtain the battery voltage Vbat1.

[0147] The electronic device 100 will detect the current battery voltage Vbat1. For example, the voltage at any point between the battery module 14 and the SC charging module 12 is read through the ADC of the battery module 14, which is the magnitude of the voltage of Vbat1.

[0148] S1003: Determine the target charging current Ichg1.

[0149] The target charging current Ichg1 can be a fixed fast charging current value, or a current value determined by the electronic device 100 according to the battery power and / or the environment where the electronic device 100 is located. Specifically, when the battery power increases, or the ambient temperature is relatively high but does not exceed the preset temperature range, the magnitude of the target charging current Ichg1 is appropriately reduced.

[0150] For example, when the battery power is less than 10%, the target charging current Ichg1 can be 18A. When the battery power is between 10% and 20%, the target charging current Ichg1 can be 12A. When the battery power is between 20% and 80%, the target charging current Ichg1 can be 5A. It should be understood that the present application does not specifically limit the magnitude of the target charging current Ichg1.

[0151] S1004: Obtain the equivalent impedance Rpath1.

[0152] The equivalent impedance Rpath1 of the charging circuit can be calculated based on the resistance Rout1 of the SC charging module 12 and the cable impedance Rcable1 of the power adapter 200. Rout1 and Rcable1 are measured in advance during the R & D stage.

[0153] It can be understood that in some embodiments, the execution order of steps S1002 to S1004 can be exchanged, or can be combined into one step, or executed in other preset orders, which are not limited herein.

[0154] S1005: Calculate the charging voltage Vadp1 of the power adapter 200.

[0155] The charging voltage Vadp1 that the electronic device 100 can obtain based on the equivalent impedance Rpath1, Vbat1, the variable resistor ratio N, and Ichg1. For example, based on the aforementioned formula (3), Vadp1 = (Vbat1 + Ichg1 * Rpath1) * N can be obtained. For specific details, reference can also be made to the relevant description in the aforementioned step S940.

[0156] S1006: Control the power adapter 200 to adjust the charging voltage to Vadp1.

[0157] The electronic device 100 can send a command to the power adapter 200 to adjust the charging voltage to the calculated charging voltage Vadp1 through the QC protocol or the PD protocol. Furthermore, the power adapter 200 adjusts the charging voltage to the magnitude of Vadp1, so that the charging current Ibat1 of the electronic device 100 reaches the target charging current Ichg1.

[0158] It should be understood that the electronic device 100 will also repeatedly execute the above steps S1002 to S1006 at a preset frequency, so that the electronic device 100 can adjust Vadp1 according to the real-time detected Vbat1, and make the charging current Ibat1 of the electronic device 100 stable at the target charging current Ichg1.

[0159] It should be understood that after receiving the newly calculated charging voltage, the power adapter 200 can adjust the output of the power adapter 200 to the newly calculated charging voltage again, so that the charging current of the electronic device 100 is stable at the target charging current Ichg1.

[0160] S1007: Charge according to other strategies.

[0161] When the electronic device 100 determines that the current battery level does not belong to the fast charging mode, it will adopt a constant voltage charging strategy for charging. Or when the electronic device 100 detects that the charging current is in the rising or falling stage, corresponding charging strategies will also be adopted. For specific details, reference can be made to the relevant descriptions in the following Figure 13 and Figure 14 related descriptions.

[0162] In this way, through the charging method provided by the present application, the constant current ripple can be reduced in the constant current stage of the fast charging mode, thereby increasing the average charging current, increasing the charging power in unit time, and thus saving the charging time.

[0163] In some embodiments, in order to prevent the power adapter 200 or the charging cable used by the user from not being original, the actual cable impedance Rcable2 can also be dynamically calculated. As Figure 11A shown, the method includes:

[0164] S1101: Obtain the equivalent impedance Rpath1.

[0165] The electronic device 100 can first calculate the charging voltage according to a preset equivalent impedance Rpath1, and then calculate the actual cable impedance Rcable2 based on the obtained voltage value.

[0166] S1102: Determine the target charging current Ichg2.

[0167] The target charging current Ichg2 can be a fixed fast charging current value or can change in real time according to the battery power. For details, refer to the foregoing step S1003 and its related description. Ichg2 can also be a preset test current.

[0168] S1103: Obtain the charging voltages Vadp2 and Vusb2.

[0169] The electronic device 100 can first calculate the corresponding charging voltage Vadp2 according to the preset equivalent impedance Rpath1 and the target charging current Ichg2. However, since the actual cable impedance Rcable2 and Rcable1 are different at this time, the actual Rpath2 and Rpath1 are different, resulting in a difference in the voltage across the USB cable, that is, a difference between the charging voltage Vadp2 of the power adapter 200 and the input voltage Vusb2 input to the SC charging module 12.

[0170] Among them, the electronic device 100 can detect the input voltage of the SC charging module 12 through an ADC to obtain Vusb2. For example, when the electronic device 100 is a mobile phone, Vusb2 is the voltage of the USB interface on the mobile phone side. As Figure 11B shown, it shows the corresponding relationship between circuit parameters such as Vadp2 and Vusb2 and the charging circuit in a charging architecture.

[0171] S1104: Calculate Rcable2.

[0172] After the electronic device 100 reads Vusb2 and Vadp2, it can calculate the actual cable resistance through the difference between the two. For details, refer to the following formula (6).

[0173] Rcable2 = (Vadp2 - Vusb2) / (Ichg2 / N) (6)

[0174] In some embodiments, the influence of the system current Isys can also be considered. That is, the current output by the switched-capacitor module 12 currently, in addition to Ichg2 supplied to the battery module 14, also includes Isys. The electronic device 100 can also read the output current of the SC charging module 12, and the magnitude of this output current is the sum of Ichg2 and Isys. Therefore, Rcable2 can specifically be the difference between Vadp2 and Vusb2 divided by the sum of Ichg2 and Isys, and then divided by the turns ratio coefficient N.

[0175] S1105: Calculate the actual Rpath2 based on Rcable2 and Rout1.

[0176] The electronic device 100 calculates the actual equivalent resistance Rpath2 based on Rcable2 and Rout1. For example, based on the foregoing formula (2), Rpath2 = Rcable2 / N^2 + Rout1 can be obtained.

[0177] In this way, regulating the voltage according to the actually measured cable resistance will be more accurate. Through the charging method provided by this application, the constant-current ripple can be reduced during the constant-current stage in the fast-charging mode, thereby increasing the average charging current, increasing the charging power within a unit time, and thus saving charging time.

[0178] In some other embodiments, in order to avoid the problem of inconsistent Rout caused by manufacturing tolerances, material differences, and welding differences of the SC charging module 12 during the production and manufacturing process, the actual impedance Rout2 of the SC charging module 12 can also be dynamically calculated. As Figure 12A shown, this method includes:

[0179] S1201: Obtain the equivalent impedance Rpath1.

[0180] The electronic device 100 still calculates the charging voltage according to the preset equivalent impedance Rpath1 first, and then calculates the actual cable impedance Rout2 according to the obtained voltage value.

[0181] S1202: Determine the target charging current Ichg3.

[0182] The target charging current Ichg3 can be a fixed fast-charging current value, or can change in real time according to the battery power. Specifically, reference can be made to the foregoing step S1003 and its related description.

[0183] S1203: Obtain the charging voltages Vbat2 and Vusb3.

[0184] The electronic device 100 can first calculate the corresponding charging voltage Vadp3 according to the preset equivalent impedance Rpath1 and the target charging current Ichg3. After inputting the charging voltage Vadp3 into the electronic device 100, the Vbat2 and the input voltage Vusb3 to the SC charging module 12 can be measured.

[0185] Among them, the electronic device 100 can obtain Vbat2 by reading the voltage at any point between the output end of the SC charging module 12 and the input end of the battery module 14 through the ADC. The electronic device 100 can obtain Vbat2 by reading the voltage at the input end of the SC charging module 12 or the output voltage of the USB cable. For example, when the electronic device 100 is a mobile phone, Vusb2 is the voltage of the USB interface on the mobile phone side. As Figure 12B shown, it shows the corresponding relationship between circuit parameters such as Vbat2, Vusb3 and the charging circuit in a charging architecture.

[0186] S1204: Calculate Rout2.

[0187] After the electronic device 100 reads Vbat2 and Vusb3, it can calculate the actual cable resistance through the difference between the two. Specifically, refer to the following formula (7).

[0188] Rout2 = (Vusb3 / N - Vbat2) / Ichg3 (7)

[0189] In some embodiments, the influence of the system current Isys can also be considered, that is, the current output by the switched-capacitor module 12 currently includes Isys in addition to Ichg2 provided to the battery module 14. The electronic device 100 can also read the output current of the SC charging module 12, and the magnitude of this output current is the sum of Ichg3 and Isys. Therefore, Rout2 can specifically be the difference between Vusb3 / N and Vbat2 divided by the sum of Ichg2 and Isys.

[0190] S1205: Calculate the actual Rpath3 according to Rcable1 and Rout2.

[0191] The electronic device 100 calculates the actual equivalent resistance Rpath3 according to Rcable1 and Rout2. For example, based on the foregoing formula (2), Rpath3 = Rcable1 / N^2 + Rout2 can be obtained.

[0192] In some other embodiments, the cable impedance Rcable2 and the impedance Rout2 can also be dynamically calculated simultaneously, and then Rpath4 can be calculated based on Rcable2 and Rout2. For example, according to the foregoing formula (2), Rpath4 = Rcable2 / N^2 + Rout2 can be obtained.

[0193] It should be understood that after the electronic device 100 obtains the cable impedance Rcable2 and / or the impedance Rout2 obtained by real-time measurement, it will also calculate the charging voltage according to the cable impedance Rcable2 and / or the impedance Rout2 obtained by real-time calculation. For specific reference, please refer to Figure 10 and other related descriptions. And according to the charging voltage calculated at this time, it notifies the power adapter 200 to adjust to the calculated charging voltage.

[0194] In this way, adjusting the voltage according to the actually measured cable resistance and / or the equivalent resistance of the SC charging module 12 will be more accurate. Through the charging method provided by the present application, during the constant current stage of the fast charging mode, the constant current ripple can be reduced, thereby increasing the average charging current, increasing the charging power in unit time, and thus saving the charging time.

[0195] Next, taking the impedance model shown in (D) in Figure 4A as an example, the charging method of the electronic device 100 during the charging current rising or falling stage in the fast charging mode will be introduced. As shown in Figure 13 the method includes:

[0196] S1301: Determine whether it is in the rising or falling stage. If so, execute step S1302; if not, execute step S1307.

[0197] In the fast charging mode, the target charging current of the charging current Ibat is different in different constant current stages. During the process of switching to another constant current stage, the charging current Ibat does not belong to the constant current stage, but belongs to the rising stage or the falling stage. Therefore, the electronic device 100 can also detect the magnitude of the current Ibat and compare the difference between Ibat and Ichg to determine whether Ibat has reached near Ichg. If the difference between Ibat and Ichg is greater than the second preset difference, it means that Ibat has not completed rising or falling. The process of the Ibat current switching from a smaller target charging current to a larger target charging current, or from a larger target charging current to a smaller target charging current, belongs to the rising stage or the falling stage.

[0198] S1302: Obtain the battery voltage Vbat3.

[0199] The electronic device 100 will detect the current battery voltage Vbat3, for example, by reading the voltage value of Vbat3 through the ADC of the battery module 14.

[0200] S1303: Determine the target charging current Ichg4.

[0201] The target charging current Ichg4 can be a fixed fast charging current value or can vary in real time according to the battery charge. For details, refer to the foregoing step S1003 and its related description.

[0202] S1304: Obtain the equivalent impedance Rpath1.

[0203] The equivalent impedance Rpath1 of the charging circuit can be calculated based on the resistance Rout1 of the SC charging module 12 and the cable impedance Rcable1 of the power adapter 200. Rout1 and Rcable1 are measured in advance during the product development stage.

[0204] In some embodiments, the electronic device 100 can also detect the cable impedance Rcable2 and / or the impedance Rout2 of the SC charging module 12 in real time, and calculate the equivalent impedance based on Rcable2 and / or Rout2. For details, refer to the above Figure 11A and Figure 12A and its related description.

[0205] It can be understood that in some embodiments, the execution order of steps S1302 to S1304 can be swapped, combined into one step, or executed in other preset orders, which are not limited herein.

[0206] S1305: Calculate the charging voltage Vadp4 of the power adapter 200.

[0207] The electronic device 100 can obtain the charging voltage Vadp4 based on the equivalent impedance Rpath1, Vbat3, the varistor ratio N, and Ichg4. For example, based on the foregoing formula (3), Vadp4 = (Vbat3 + Ichg4 * Rpath1) * N can be obtained. For details, refer to the relevant description in step S940.

[0208] S1306: Control the power adapter 200 to adjust the charging voltage to Vadp4.

[0209] The electronic device 100 can send a command to the power adapter 200 through the QC protocol or the PD protocol to adjust the charging voltage to the calculated charging voltage Vadp4. Subsequently, the power adapter 200 adjusts the charging voltage to the magnitude of Vadp4, so that the charging current Ibat2 of the electronic device 100 reaches the target charging current Ichg4.

[0210] It should be understood that the electronic device 100 will also cyclically execute the above steps S1302 to S1306 at a preset frequency, so that the electronic device 100 can adjust Vadp4 according to the real-time detected Vbat3, making the charging current of the electronic device 100 stable at the target charging current Ichg4.

[0211] It should be understood that after receiving the newly calculated charging voltage, the power adapter 200 can adjust the output of the power adapter 200 to the newly calculated charging voltage again, making the charging current of the electronic device 100 stable at the target charging current Ichg1.

[0212] S1307: Charge according to other strategies.

[0213] When the electronic device 100 determines that the current battery level does not belong to the fast charging mode, it will adopt the constant voltage charging strategy for charging. Or when the electronic device 100 detects that the charging current is in the constant current charging stage, it will also adopt the corresponding charging strategy, which can be specifically referred to the relevant description above. Figure 10 of.

[0214] In this way, by measuring Vbat to adjust Vadp, there is no need to gradually adjust Vadp only throughout the process, shortening the time required for the Ibat current climbing stage and the descending stage, and improving the charging efficiency.

[0215] In some embodiments, during the charging current climbing stage, in order to avoid a sudden increase in the charging voltage, resulting in a sudden change in the charging current and damaging the battery module 14 or the charging circuit, a voltage regulation intermediate gear can also be set. The following takes the climbing stage as an example, first adjusting the charging current to Ichg5, and then gradually increasing Vadp in a step-by-step manner. As Figure 14 shown, the method includes:

[0216] S1401: Determine whether it is in the climbing stage.

[0217] The process of the Ibat current switching from a smaller target charging current to a larger target charging current belongs to the climbing stage. The electronic device 100 can also determine whether Ibat has reached near Ichg by detecting the magnitude of the Ibat current and comparing the difference between Ibat and Ichg. If the difference between Ibat and Ichg is greater than the second preset difference and Ibat is less than or equal to Ichg, it means that Ibat belongs to the climbing stage.

[0218] S1402: Obtain the battery voltage Vbat4.

[0219] The electronic device 100 will detect the current battery voltage Vbat4, for example, reading the voltage magnitude of Vbat4 through the ADC of the battery module 14.

[0220] S1403: Determine the target charging current Ichg5.

[0221] The target charging current Ichg5 is the intermediate gear of the target charging current Ichg4. For example, Ichg5 can be the current charging current plus 50% of the difference between the current charging current and Ichg4. For example, when Ichg4 is 18 A and the current charging current is 0 A, then Ichg5 is 9 A. In some embodiments, the electronic device 100 can also set other intermediate gears. For example, Ichg5 can be the current charging plus 30% of the difference between the current charging current and Ichg4, etc. Furthermore, the charging voltage calculated based on the target charging current Ichg5 of the intermediate gear is also less than the charging voltage calculated based on the target charging current Ichg4, and the ratio between the two is less than a preset threshold.

[0222] S1404: Obtain the equivalent impedance Rpath1.

[0223] The equivalent impedance Rpath1 of the charging circuit can be calculated based on the resistance Rout1 of the SC charging module 12 and the cable impedance Rcable1 of the power adapter 200, and Rout1 and Rcable1 are measured in advance during the R & D stage.

[0224] In some embodiments, the electronic device 100 can also detect the cable impedance Rcable2 and / or the impedance Rout2 of the SC charging module 12 in real time, and calculate the equivalent impedance based on Rcable2 and / or Rout2. For details, please refer to the above Figure 11A and Figure 12A and its related descriptions.

[0225] It can be understood that in some embodiments, the execution order of steps S1402 to S1404 can be exchanged, or can be combined into one step, or executed in other preset orders, which are not limited herein.

[0226] S1405: Calculate the charging voltage Vadp5 of the power adapter 200.

[0227] The electronic device 100 can obtain the charging voltage Vadp5 based on the equivalent impedance Rpath1, Vbat4, the varistor ratio N, and Ichg5. For example, based on the foregoing formula (3), Vadp5 = (Vbat4 + Ichg5 * Rpath1) * N can be obtained. For details, please also refer to the related descriptions in step S940.

[0228] Moreover, since the charging voltage Vadp5 is calculated based on Ichg5 of the intermediate gear, the charging voltage Vadp5 is also less than the charging voltage calculated based on the target charging current Ichg4.

[0229] S1406: Control the power adapter 200 to adjust the charging voltage to Vadp5.

[0230] The electronic device 100 can send an instruction to the power adapter 200 to adjust the charging voltage to the calculated charging voltage Vadp5 through the QC protocol or the PD protocol. Furthermore, the power adapter adjusts the charging voltage to the magnitude of Vadp5, so that the charging current Ibat3 of the electronic device 100 reaches the target charging current Ichg5 first.

[0231] In some embodiments, the electronic device 100 can also set multiple intermediate gears to adjust the charging voltage step by step. For example, the electronic device 100 first sets the target charging current to the intermediate gear Ichg4, and the power adapter 200 adjusts the output charging voltage to the charging voltage corresponding to Ichg4 of the intermediate gear. Then, the electronic device 100 sets the target charging current Ichg6 to Ichg4 plus 50% of the difference between Ichg4 and Ichg5, and the power adapter 200 adjusts the output charging voltage to the charging voltage corresponding to Ichg6.

[0232] S1407: Detect whether the charging current Ibat3 reaches the preset Ichg4. If so, execute step S1409; if not, execute step S1408.

[0233] After the electronic device 100 reaches the target charging current Ichg5, it will adjust the charging voltage Vadp in a step-by-step increasing pressure manner.

[0234] S1408: Control the power adapter 200 to increase the charging voltage by a preset step.

[0235] The power adapter 200 can adjust Vadp5 by 40mV / step or 120mV / step to make Ibat3 reach the target charging current Ichg4. And then loop to execute the above steps S1407 and S1408 until the target charging current Ichg4 is reached. That is to say, the charging voltage obtained by step adjustment each time forms an arithmetic progression.

[0236] S1409: Charge according to other strategies.

[0237] When the electronic device 100 detects that the current battery level does not belong to the fast charging mode or belongs to the constant current charging stage, it will also adopt corresponding charging strategies, which can be specifically referred to the relevant descriptions above. Figure 10 of the relevant description.

[0238] In this way, by measuring Vbat to first adjust Ibat to the intermediate gear and then gradually adjust Vadp, it not only shortens the time required for the Ibat current rising stage and falling stage, improves the charging efficiency, but also prevents circuit damage caused by current mutation.

[0239] In summary, the charging method provided by the present application can reduce the constant current ripple during the constant current stage of the fast charging mode, thereby increasing the average charging current, increasing the charging power in unit time, and thus saving charging time. Moreover, it can also reduce the time for the charging current to climb and fall, improving the charging efficiency as well.

[0240] Exemplarily, Figure 15 、 Figure 16A and Figure 16B show the charging curve after adopting the charging method provided by the present application in a scenario. As Figure 15 shown, Ibat is the charging current when the previous step-by-step increase in Vadp scheme is adopted, and Ibat' is the charging current when the charging method of the present application is adopted. The fluctuation of Ibat' is smaller than that of Ibat, making the average current of Ibat' higher, about 6.1 A. While the fluctuation of Ibat is larger, and its average current is lower, about 5.95 A. Therefore, compared with the step-by-step increase in Vadp scheme, the overall charging time of this scheme can be shortened by 33 seconds, reducing the time of the constant current charging stage by about 2%.

[0241] As Figure 16A shown, Vadp is the charging voltage when the previous step-by-step increase in Vadp scheme is adopted, and Vadp' is the charging voltage when the charging method of the present application is adopted. After calculation, Vadp' can be directly adjusted to the corresponding charging voltage, and further, it can also reduce the time for the charging current to climb and fall, improving the charging efficiency as well. The overall time for the charging current to climb and fall can be reduced by about 50 seconds. Combining the time saved in the constant current stage, a total of 76 s of charging duration can be saved, accounting for about 3.5% of the fast charging duration.

[0242] After the electronic device 100 calculates the value of the charging voltage Vadp' corresponding to the target charging current, the electronic device 100 will first adjust Vadp' to the value of the intermediate gear, and then adjust Vadp' to the value of the charging voltage corresponding to the target charging current.

[0243] As Figure 16B shown in (A) of 11 , after the electronic device 100 calculates that the value of Vadp' corresponding to the target charging current is V 1, , since the current charging power is V 1 and V 11 , the electronic device 100 will first control the power adapter 200 to adjust Vadp' to the intermediate gear V 12 between V 12 , for example, V 1 and V 11 , which can be (V 1 + V 11 ) / 2.

[0244] Similarly, as shown in (B) of Figure 16B , after the electronic device 100 calculates that the value of Vadp' corresponding to the target charging current is V 21 , since the current charging power is V 2, , the electronic device 100 will first control the power adapter 200 to adjust Vadp' to the intermediate level V 2 between V 21 and V 22 , for example, V 22 can be (V 2 + V 21 ) / 2. As shown in (C) of Figure 16B , after the electronic device 100 calculates that the value of Vadp' corresponding to the target charging current is V 21 , since the current charging power is V 2, , the electronic device 100 will first control the power adapter 200 to adjust Vadp' to the intermediate level V 2 between V 21 and V 22 , for example, V 22 can be (V 2 + V 21 ) / 2. As shown in (D) of Figure 16B , after the electronic device 100 calculates that the value of Vadp' corresponding to the target charging current is V 31 , since the current charging power is V 3, , the electronic device 100 will first control the power adapter 200 to adjust Vadp' to the intermediate level V 3 between V 31 and V 32 , for example, V 32 can be (V 3 + V 31 ) / 2.

[0245] In this way, the electronic device 100 can avoid a large jump in the charging voltage output by the power adapter 200, thereby avoiding damage to the battery module 14 or the charging circuit caused by a sudden change in the charging current.

[0246] To solve the problem that adjusting the charging voltage output by the power adapter according to Ibat will result in a low charging speed, the present application provides a charging device. As shown in Figure 17 , a schematic structural diagram of a charging device 1700 provided by an embodiment of the present application is shown. The charging device 1700 is applied to the aforementioned electronic device 100, and the charging device 1700 includes a determination unit 1710 and a control unit 1720.

[0247] The battery device 100 includes a battery. A determination unit 1710 is configured to determine a first battery voltage of the battery and a target charging current for charging the battery. The determination unit 1710 is further configured to determine a first charging voltage provided by the charging device to the battery based on the first battery voltage and a first voltage between the battery and the charging device when charging the battery at the target charging current. A control unit 1720 is configured to control the charging device to provide the first charging voltage to the battery.

[0248] In some embodiments, the electronic device 100 includes a switched-capacitor module. An output terminal of the switched-capacitor module is connected to the battery, and the charging device is connected to an input terminal of the switched-capacitor module through a charging cable. The first voltage is the sum of the cable voltage of the charging cable at the target charging current and the switched-capacitor voltage of the switched-capacitor module at the target charging current.

[0249] In some other embodiments, when the determination unit 1710 is further configured to determine that the output current of the switched-capacitor module is a first current, the determination unit 1710 is further configured to determine the output voltage of the charging cable and the output voltage of the charging device. The determination unit 1710 is further configured to determine the cable impedance of the charging cable based on the first current, the output voltage of the charging cable, and the output voltage of the charging device. The determination unit 1710 is further configured to determine the cable voltage of the charging cable at the target charging current based on the cable impedance.

[0250] In some other embodiments, when the determination unit 1710 is further configured to determine that the output current of the switched-capacitor module is a second current, the determination unit 1710 is further configured to determine the input voltage of the switched-capacitor module and a second battery voltage of the battery. The determination unit 1710 is further configured to determine the switched-capacitor impedance of the switched-capacitor module based on the second current, the input voltage of the switched-capacitor module, and the battery voltage. The determination unit 1710 is further configured to determine the switched-capacitor voltage of the switched-capacitor module at the target charging current based on the switched-capacitor impedance.

[0251] In some other embodiments, the electronic device 100 includes a switched-capacitor module and a system load module. An output terminal of the switched-capacitor module is connected to the battery and the system load module, and the charging device is connected to an input terminal of the switched-capacitor module through a charging cable; the first voltage is the sum of the cable voltage of the charging cable at a third current and the switched-capacitor voltage of the switched-capacitor module, where the third current is the sum of the current output by the switched-capacitor module to the system load module and the target charging current.

[0252] In some other embodiments, before controlling the charging device to provide the first charging voltage to the battery, the control unit 1720 is further configured to control the charging device to provide a second charging voltage to the battery based on that the difference between the current charging voltage and the first charging voltage is greater than a first difference, where the second charging voltage is less than the first charging voltage.

[0253] In some other embodiments, before controlling the charging device to provide the first charging voltage to the battery, the control unit 1720 is further configured to control the charging device to provide a third charging voltage to the battery based on that the difference between the current charging current and the target charging current is greater than a second difference, where the third charging voltage is less than the first charging voltage.

[0254] In some other embodiments, after controlling the charging device to provide the second charging voltage to the battery, the control unit 1720 is further configured to control the charging device to increase the second charging voltage in an arithmetic progression.

[0255] In some other embodiments, after controlling the charging device to provide the third charging voltage to the battery, the control unit 1720 is further configured to control the charging device to increase the third charging voltage in an arithmetic progression.

[0256] In some other embodiments, when a first condition is satisfied, the determination unit 1710 is further configured to determine a first battery voltage of the battery and a target charging current for charging the battery, where the first condition includes at least one of the following: the power of the electronic device is less than or equal to a first power threshold; the charging duration of the electronic device is less than or equal to a preset duration; the electronic device obtains an ambient temperature less than or equal to a preset temperature.

[0257] In some other embodiments, the determination unit 1710 is further configured to determine that the power of the battery is less than or equal to a second power threshold, and determine the first target charging current as the target charging current. The determination unit 1710 is further configured to determine that the power of the battery is greater than the second power threshold and less than a third power threshold, and determine the second target charging current as the target charging current; where the second target charging current is less than the first target charging current.

[0258] In summary, through the charging device provided by the present application, not only can the constant current ripple be reduced during the constant current stage in the fast charging mode, thereby increasing the average charging current, increasing the charging power within a unit time, and saving the charging time. Moreover, the time for the charging current to climb and drop can also be reduced, so that the charging efficiency can be improved. And this method does not involve modifying the hardware structure of the charging circuit. Based on the original hardware structure, by changing the voltage regulation method of charging, the charging efficiency can be improved, and the cost of modifying the hardware structure is also saved.

[0259] First, the electronic device 100 involved in the embodiments of the present application will be introduced below. Refer to Figure 18 , Figure 18 FIG. shows a schematic structural diagram of an exemplary electronic device 100 provided by an embodiment of the present application.

[0260] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a general USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0261] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0262] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions. In the embodiments of the present application, the charging method executed by the electronic device 100 may specifically be executed by the processor 110.

[0263] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, etc. It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only for illustrative purposes and does not constitute a structural limitation on the electronic device 100.

[0264] The charging management module 140 is used to receive a charging input from a charger. The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, etc.

[0265] In some embodiments, the structure of the charging management module 140 may also refer to the foregoingFigure 1 and its related descriptions.

[0266] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, and baseband processor, etc.

[0267] The antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 150 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The wireless communication module 160 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), etc. applied to the electronic device 100.

[0268] The electronic device 100 realizes the display function through the GPU, display screen 194, and application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.

[0269] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0270] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to achieve the data storage function.

[0271] The internal memory 121 can be used to store computer-executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.

[0272] The electronic device 100 can realize the audio function through the audio module 170. For example, music playback, recording, etc.

[0273] The keys 190 include a power-on key, volume keys, etc. The keys 190 can be mechanical keys or touch keys. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light. The SIM card interface 195 can be used to connect a SIM card.

[0274] It can be understood that the structure illustrated in this application does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0275] It should be understood that Figure 18 The illustrated electronic device may also be a computer cluster composed of at least one server, and this application does not make specific limitations.

[0276] An embodiment of this application also provides a computer-readable storage medium. Instructions are stored in the computer-readable storage medium, and when they run on a processor, Figures 9 to 14 the illustrated method flow is realized.

[0277] An embodiment of this application also provides a computer program product. When the computer program product runs on a processor, Figures 9 to 14 the illustrated method flow is realized.

[0278] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that the computer can access, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc.

[0279] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by hardware instructed by a computer program. This program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The foregoing storage medium includes various media that can store program codes, such as read only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

Claims

1. A charging method, It is characterized in that Applied to an electronic device, the electronic device includes a battery, and the method includes: determining a first battery voltage of the battery and a target charging current for charging the battery; determining a first charging voltage provided by the charging device to the battery based on the first battery voltage and a first voltage between the battery and the charging device when the battery is charged with the target charging current; The charging device is controlled to provide the first charging voltage to the battery.

2. The method according to claim 1, It is characterized in that The electronic device comprises a switched capacitor module, an output end of the switched capacitor module is connected to the battery, and the charging device is connected to an input end of the switched capacitor module via a charging cable. The first voltage is the sum of a cable voltage of the charging cable at the target charging current and a switched capacitor voltage of the switched capacitor module at the target charging current.

3. The method according to claim 2, It is characterized in that The cable voltage of the charging cable at the target charging current is determined by: When determining that the output current of the switch capacitor module is a first current, the output voltage of the charging cable and the output voltage of the charging device; determining a cable impedance of the charging cable based on the first current, an output voltage of the charging cable, and an output voltage of the charging device; A cable voltage of the charging cable at the target charging current is determined based on the cable impedance.

4. The method according to claim 2 or 3, It is characterized in that The switched capacitor voltage of the switched capacitor module at the target charging current is determined in the following manner: When determining that the output current of the switch capacitor module is a second current, the input voltage of the switch capacitor module and the second battery voltage of the battery; determining a switched capacitor impedance of the switched capacitor module based on the second current, an input voltage of the switched capacitor module and the battery voltage; Based on the switch capacitor impedance, a switch capacitor voltage of the switch capacitor module under the target charging current is determined.

5. The method according to claim 1, It is characterized in that The electronic device comprises a switched capacitor module and a system load module, the output end of the switched capacitor module is connected to the battery and the system load module, and the charging device is connected to the input end of the switched capacitor module via a charging cable; The first voltage is the sum of the cable voltage of the charging cable and the switched capacitor voltage of the switched capacitor module under a third current, and the third current is the sum of the current output by the switched capacitor module to the system load module and the target charging current.

6. The method according to claim 1, It is characterized in that The method further comprises: Before controlling the charging device to provide the first charging voltage to the battery, based on the difference between the current charging voltage and the first charging voltage being greater than the first difference, controlling the charging device to provide the second charging voltage to the battery, wherein the second charging voltage is lower than the first charging voltage.

7. The method according to claim 1, It is characterized in that The method further comprises: Before controlling the charging device to provide the first charging voltage to the battery, based on the difference between the current charging current and the target charging current being greater than a second difference, controlling the charging device to provide a third charging voltage to the battery, wherein the third charging voltage is lower than the first charging voltage.

8. The method according to claim 6, It is characterized in that The method further comprises: After controlling the charging device to provide the second charging voltage to the battery, controlling the charging device to increase the second charging voltage in an arithmetic progression.

9. The method according to claim 7, It is characterized in that The method further comprises: After controlling the charging device to provide the third charging voltage to the battery, controlling the charging device to increase the third charging voltage in an arithmetic progression.

10. The method according to claim 1, It is characterized in that The determining a first battery voltage of the battery and a target charging current for charging the battery comprises: When a first condition is met, the electronic device determines a first battery voltage of the battery and a target charging current for charging the battery, wherein the first condition includes at least one of the following: The power level of the electronic device is less than or equal to a first power level threshold; The charging time of the electronic device is less than or equal to a preset time; The electronic device obtains that the ambient temperature is less than or equal to a preset temperature.

11. The method according to claim 10, It is characterized in that Determining a first battery voltage of the battery and a target charging current for charging the battery comprises: Determining that the power level of the battery is less than or equal to a second power level threshold, and determining that the first target charging current is the target charging current; Determine that the power level of the battery is greater than a second power level threshold and less than a third power level threshold, and determine that the second target charging current is the target charging current; The second target charging current is smaller than the first target charging current.

12. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method according to any one of claims 1 to 11 is executed.

13. The electronic device according to claim 12, It is characterized in that The electronic device further comprises a switched capacitor module, an output end of the switched capacitor module is connected to the battery, and the charging device is connected to an input end of the switched capacitor module via a charging cable.

14. The electronic device according to claim 13, It is characterized in that The electronic device further comprises a system load module, and the system load module is connected to the output end of the switch capacitor module.

15. A computer-readable storage medium, It is characterized in that The method comprises instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 11.

Citation Information

Cited By

  • Charging control method

    CN121238767A

  • A charging control method

    CN121238767B