Charging method and device, electronic equipment and medium

By acquiring charging temperature and battery voltage, a current compensation strategy is determined, and the compensation current of the charging circuit is controlled. This solves the problem of over-compensation caused by load current changes during the charging process of electronic devices, thereby improving the reliability and lifespan of battery charging.

CN121923326APending Publication Date: 2026-04-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-10-23
Publication Date
2026-04-24

Smart Images

  • Figure CN121923326A_ABST
    Figure CN121923326A_ABST
Patent Text Reader

Abstract

The invention relates to a charging method and device, electronic equipment and a medium. The charging method comprises the following steps: acquiring a charging temperature and a voltage of a battery under the condition that the battery is charged by a charging circuit; determining a current compensation strategy according to the charging temperature and the voltage of the battery; and controlling a first compensation current input to the charging circuit according to the current compensation strategy. The current compensation strategy is determined according to the charging temperature and the voltage of the battery, the situation that the current flowing into the battery exceeds the allowable maximum current due to current overcompensation when the load current changes is avoided, and therefore the reliability of battery charging is improved. Meanwhile, the load current is compensated by controlling the input current of the charging circuit, so that the situation that the current flowing into the battery exceeds the allowable maximum current due to the fact that the output current of the charging circuit is frequently adjusted is avoided, and the reliability of battery charging is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of charging technology, and in particular to a charging method, apparatus, electronic device and medium. Background Technology

[0002] With the development of charging technology, the charging current of batteries in electronic devices has gradually increased to reduce the charging time. However, during the charging process, changes in the load current consumed by the system load in the electronic device can cause the current flowing into the battery to exceed the maximum allowable current, leading to unreliable charging issues. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides a charging method, apparatus, electronic device, and medium.

[0004] According to a first aspect of the present disclosure, a charging method is provided, the charging method comprising:

[0005] While the battery is being charged by the charging circuit, the charging temperature and the voltage of the battery are obtained;

[0006] A current compensation strategy is determined based on the charging temperature and the battery voltage.

[0007] According to the current compensation strategy, the first compensation current input to the charging circuit is controlled.

[0008] In some embodiments of this disclosure, determining the current compensation strategy based on the charging temperature and the battery voltage includes:

[0009] Based on the charging temperature and the battery voltage, the charging parameters used to set the battery charging current are determined, wherein the charging parameters are the charging temperature or the battery voltage.

[0010] Based on the charging parameters, the corresponding current compensation strategy is determined.

[0011] In some embodiments of this disclosure, determining the corresponding current compensation strategy based on the charging parameters includes:

[0012] When the charging parameter is the charging temperature, the current compensation strategy is determined to be that the charging circuit outputs a second compensation current with a first current value.

[0013] When the charging parameter is the voltage of the battery, the current compensation strategy is determined to be that the charging circuit outputs a second compensation current of a second current value or stops outputting the second compensation current.

[0014] Wherein, the first current value is greater than the second current value; the first compensation current is positively correlated with the second compensation current.

[0015] In some embodiments of this disclosure, the first current value is related to the load current consumed by the system load of the electronic device when the screen of the electronic device is off; and / or, the second current value is related to the load current consumed by the system load of the electronic device when the screen of the electronic device is on.

[0016] In some embodiments of this disclosure, before determining the corresponding current compensation strategy based on the charging parameters, the determination of the current compensation strategy based on the charging temperature and the battery voltage further includes:

[0017] The first current value is determined based on the charging temperature and the battery voltage.

[0018] In some embodiments of this disclosure, the charging parameters used to determine the charging current setting of the battery based on the charging temperature and the battery voltage include:

[0019] The first charging current of the battery is determined based on the charging temperature;

[0020] Determine the second charging current of the battery based on the battery voltage;

[0021] The charging parameters are determined based on the first charging current and the second charging current.

[0022] In some embodiments of this disclosure, determining the charging parameters based on the first charging current and the second charging current includes:

[0023] When the first charging current is less than the second charging current, the charging parameter is determined to be the charging temperature;

[0024] If the first charging current is greater than or equal to the second charging current, the charging parameter is determined to be the voltage of the battery.

[0025] In some embodiments of this disclosure, controlling the first compensation current input to the charging circuit according to the current compensation strategy includes:

[0026] When the current compensation strategy outputs a second compensation current to the charging circuit, the first compensation current is determined based on the second compensation current and the operating mode of the charging circuit.

[0027] The first compensation current is input to the charging circuit;

[0028] When the current compensation strategy is to stop the charging circuit from outputting the second compensation current, the input of the first compensation current to the charging circuit is stopped.

[0029] In some embodiments of this disclosure, after obtaining the charging temperature and the battery voltage, the charging method further includes:

[0030] The charging current of the battery is determined based on the charging temperature and the battery voltage.

[0031] Based on the charging current and the operating mode, determine the target current input to the charging circuit;

[0032] The target current is input to the charging circuit;

[0033] Wherein, when the current compensation strategy is to output the second compensation current to the charging circuit, the input current of the charging circuit is the sum of the target current and the first compensation current.

[0034] According to a second aspect of the present disclosure, a charging device is provided, the charging device comprising:

[0035] An acquisition module is configured to acquire the charging temperature and the voltage of the battery while the battery is being charged by the charging circuit.

[0036] A determination module is configured to determine a current compensation strategy based on the charging temperature and the battery voltage.

[0037] A control module configured to control a first compensation current input to the charging circuit according to the current compensation strategy.

[0038] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0039] processor;

[0040] Memory used to store the processor's executable instructions;

[0041] The processor is configured to perform the charging method described above.

[0042] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the charging method as described above.

[0043] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0044] When a charging circuit charges a battery, the system load in the electronic device consumes a certain amount of load current, which needs to be compensated. Since charging temperature and battery voltage affect the charging current and thus the battery's lifespan, the charging temperature and battery voltage are obtained. Based on these parameters, a current compensation strategy is determined to match the charging current. According to the current compensation strategy, the first compensation current input to the charging circuit is controlled to compensate for the load current. By determining the current compensation strategy based on the charging temperature and battery voltage, over-compensation is avoided when the load current changes, preventing the current flowing into the battery from exceeding the maximum allowable current, thereby improving the reliability of battery charging. Simultaneously, by controlling the input current of the charging circuit to compensate for the load current, frequent adjustments to the output current of the charging circuit are avoided, preventing the current flowing into the battery from exceeding the maximum allowable current, further improving the reliability of battery charging.

[0045] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

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

[0047] Figure 1 This is a schematic flowchart illustrating a charging method according to an exemplary embodiment;

[0048] Figure 2 This is a schematic flowchart illustrating a charging method according to another exemplary embodiment;

[0049] Figure 3 This is a schematic flowchart illustrating a charging method according to another exemplary embodiment;

[0050] Figure 4 This is a schematic diagram of a charging curve according to an exemplary embodiment;

[0051] Figure 5 This is a schematic flowchart illustrating a charging method according to another exemplary embodiment;

[0052] Figure 6 This is a schematic flowchart illustrating a charging method according to another exemplary embodiment;

[0053] Figure 7 This is a block diagram illustrating a charging device according to an exemplary embodiment;

[0054] Figure 8This is a block diagram of an electronic device according to an exemplary embodiment.

[0055] In the picture:

[0056] 100 - Acquisition module; 200 - Determination module; 300 - Control module; 400 - Electronic device; 402 - Processing component; 404 - Memory; 406 - Power supply component; 408 - Multimedia component; 410 - Audio component; 412 - Input / output interface; 414 - Sensor component; 416 - Communication component; 420 - Processor. Detailed Implementation

[0057] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims. It should also be understood that the term “and / or” as used in this disclosure refers to and includes any or all possible combinations of one or more of the associated listed items.

[0058] With the development of charging technology, batteries in electronic devices can be charged quickly, improving charging speed. However, because the system load in electronic devices consumes a certain load current, when charging the battery with a defined charging current, the current flowing into the battery may be less than the charging current, affecting the charging speed. To eliminate the influence of the system load on battery charging, the output current of the charging circuit needs to exceed the charging current to compensate for the load current.

[0059] In related technologies, a charging method is provided, comprising: determining the charging current of the battery while the charging circuit is charging the battery; determining the load current consumed by the system load; and controlling the charging circuit to output a target current. The target current is the sum of the charging current and the load current. This method compensates for the load current by having the charging circuit output an additional load current, ensuring that the current flowing into the battery reaches the charging current. However, since the load current is the current consumed by the system load at the current moment, while the target current output by the charging circuit only changes at the next moment, the target current suffers from a lag problem. If the load current suddenly decreases at the next moment, the current flowing into the battery suddenly increases and exceeds the maximum allowable current (the current that causes lithium plating in the battery), leading to unreliable battery charging.

[0060] To address the aforementioned technical problems, this disclosure provides a charging method that controls the first compensation current input to the charging circuit by using a current compensation strategy determined based on the charging temperature and battery voltage. This prevents the current flowing into the battery from exceeding the maximum allowable current when the load current suddenly decreases, thereby improving the reliability of battery charging.

[0061] This disclosure provides a charging method, such as... Figure 1 As shown, the method includes:

[0062] S100: While the charging circuit is charging the battery, the charging temperature and the battery voltage are obtained.

[0063] S200: Determine the current compensation strategy based on the charging temperature and battery voltage.

[0064] S300: According to the current compensation strategy, control the first compensation current input to the charging circuit.

[0065] In this embodiment, when the charging circuit charges the battery, the system load in the electronic device consumes a certain load current, which needs to be compensated. Since charging temperature and battery voltage affect the battery charging current and thus the battery's lifespan, the charging temperature and battery voltage are obtained. Based on the charging temperature and battery voltage, a current compensation strategy is determined to match the charging current. According to the current compensation strategy, the first compensation current input to the charging circuit is controlled to compensate the load current. By determining the current compensation strategy based on the charging temperature and battery voltage, over-compensation is avoided when the load current changes, preventing the current flowing into the battery from exceeding the maximum allowable current, thereby improving the reliability of battery charging. Simultaneously, by controlling the input current of the charging circuit to compensate the load current, frequent adjustments to the output current of the charging circuit are avoided, preventing the current flowing into the battery from exceeding the maximum allowable current, further improving the reliability of battery charging.

[0066] For example, the charging circuit can be a DC-DC converter circuit or a charge pump circuit. The charging temperature can be the overall temperature of the electronic device or the temperature of the battery.

[0067] In one embodiment, such as Figure 2 As shown, the current compensation strategy determined in step S200 based on the charging temperature and battery voltage is determined in the following way:

[0068] S210. Determine the charging parameters used to set the battery charging current based on the charging temperature and battery voltage. The charging parameters are the charging temperature or the battery voltage.

[0069] S220. Determine the corresponding current compensation strategy based on the charging parameters.

[0070] In this embodiment, since charging temperature and battery voltage affect the battery charging current from different perspectives, and the charging current is determined by only one of them at any given time, the charging parameters used to set the charging current are determined based on the charging temperature and battery voltage. Because the charging current determined based on charging temperature or battery voltage has different effects on battery lifespan, a corresponding current compensation strategy is determined based on the charging parameters. By determining the corresponding current compensation strategy based on the charging parameters used to set the charging current, the current flowing into the battery after compensation with the first compensation current does not exceed the maximum allowable current, thereby improving the reliability of battery charging.

[0071] In one embodiment, such as Figure 3 As shown, the charging parameters used in step S210 to determine the battery charging current setting based on the charging temperature and battery voltage are determined in the following way:

[0072] S211. Determine the first charging current of the battery based on the charging temperature.

[0073] S212. Determine the second charging current of the battery based on the battery voltage.

[0074] S213. Determine the charging parameters based on the first charging current and the second charging current.

[0075] In this embodiment, since charging temperature affects battery lifespan and the user experience of electronic devices, a first charging current is determined based on the charging temperature. Since battery voltage reflects the degree of charging and affects lithium plating, a second charging current is determined based on the battery voltage. Charging parameters are determined based on the first and second charging currents to select a charging current that allows for safe and rapid charging of the battery. By determining the charging parameters based on the first and second charging currents determined by the charging temperature and battery voltage, respectively, the first compensation current can prevent the current flowing into the battery from exceeding the maximum allowable current while compensating for the load current, thereby improving the reliability of battery charging.

[0076] For example, such as Figure 4 As shown, the curve representing the change in the first charging current can be represented by curve S1, and the curve representing the change in the second charging current can be represented by curve S2. Here, the horizontal axis t represents time in minutes, and the vertical axis I represents current in amperes (A).

[0077] In one embodiment, the charging parameters in step S213, determined based on the first charging current and the second charging current, are determined in the following manner:

[0078] If the first charging current is less than the second charging current, the charging parameter is determined to be the charging temperature.

[0079] If the first charging current is greater than or equal to the second charging current, the charging parameter is determined to be the battery voltage.

[0080] In this embodiment, when the first charging current is less than the second charging current, the charging current is limited by the charging temperature and should not be increased; therefore, the charging temperature is determined as the charging parameter. When the first charging current is greater than or equal to the second charging current, the charging current is limited by the battery voltage and should not be increased; therefore, the battery voltage is determined as the charging parameter. By determining the charging parameters based on the magnitudes of the first and second charging currents, excessive charging current that could affect battery lifespan is avoided, thereby improving the reliability of battery charging.

[0081] In one embodiment, the determination of the corresponding current compensation strategy based on the charging parameters in step S220 is made in the following manner:

[0082] When the charging parameter is the charging temperature, the current compensation strategy is determined to be a second compensation current with the magnitude of the first current value output by the charging circuit.

[0083] Given the battery voltage as the charging parameter, the current compensation strategy is determined to be either to output a second compensation current with a second current value or to stop outputting the second compensation current.

[0084] The first current value is greater than the second current value. The first compensation current and the second compensation current are positively correlated.

[0085] In this embodiment, when the charging parameter is the charging temperature, a temporary increase in charging current will not cause lithium plating and has little impact on battery life. Therefore, the current compensation strategy is determined to be a larger second compensation current output by the charging circuit. When the charging parameter is the battery voltage, a temporary increase in charging current will cause lithium plating and significantly impact battery life. Therefore, the current compensation strategy is determined to be a smaller second compensation current output by the charging circuit or to stop outputting the second compensation current. Since the output current of the charging circuit needs time to adjust as the load current decreases, there is a risk of over-compensation. By making the first current value greater than the second current value, the battery life can be avoided while effectively compensating for the load current, thereby improving the reliability of battery charging.

[0086] For example, the first current value and the second current value can be preset current values. When the first current value is a preset current value, its range can be 50mA to 100mA. The first current value can be 60mA, 70mA, 80mA, etc. When the second current value is a preset current value, its range can be 800mA to 1000mA. The second current value can be 850mA, 900mA, 950mA, etc.

[0087] For example, when the current compensation strategy is that the charging circuit stops outputting the second compensation current, the second compensation current is zero and the first compensation current is zero.

[0088] For example, when the electronic device is powered on, if the charging parameter is the battery voltage, the current compensation strategy is determined to be a second compensation current with a second current value output by the charging circuit. When the electronic device is powered off, if the charging parameter is the battery voltage, the current compensation strategy is determined to stop outputting the second compensation current. This is because when the electronic device is powered on, the system load consumes a certain amount of load current, and load current compensation is performed using the second current value. When the electronic device is powered off, the system load consumes almost no load current, and no load current compensation is performed.

[0089] In one embodiment, the first current value is related to the load current consumed by the system load of the electronic device when the screen of the electronic device is off.

[0090] In this embodiment, since the system load consumes a high load current when the screen of the electronic device is on and a low load current when the screen is off, and the screen may switch between on and off states, by relating the first current value to the load current consumed by the system load when the screen is off, it is possible to prevent the current flowing into the battery from increasing rapidly when the screen changes from on to off, thus preventing lithium plating in the battery and improving the reliability of battery charging.

[0091] In one embodiment, the second current value is related to the load current consumed by the system load of the electronic device when the screen of the electronic device is lit.

[0092] In this embodiment, since the system load consumes a low load current when the screen of the electronic device is off and a high load current when the screen is on, and the screen may switch between off and on states, by relating the second current value to the load current consumed by the system load when the screen is on, the load current can be compensated as much as possible for fast charging when the screen is on, and lithium plating of the battery can be avoided when the screen is off, thereby improving the reliability of battery charging.

[0093] In one embodiment, before determining the corresponding current compensation strategy based on the charging parameters in step S220, determining the current compensation strategy based on the charging temperature and the battery voltage in step S200 further includes:

[0094] The first current value is determined based on the charging temperature and the battery voltage.

[0095] In this embodiment, since the second compensation current has a wide range of values ​​when the charging parameter is the charging temperature, and it does not cause lithium plating in the battery, a first current value is determined based on the charging temperature and the battery voltage to balance the charging speed and lifespan of the battery. By determining the first current value based on the charging temperature and the battery voltage, it is possible to avoid affecting the battery's lifespan while meeting the requirements for fast charging, thereby improving the reliability of battery charging.

[0096] For example, in the above steps, determining the first current value based on the charging temperature and the battery voltage can be achieved by averaging the first charging current determined based on the charging temperature and the second charging current determined based on the battery voltage. The difference between the average current and the charging current can be used as the first current value, or the product of the average current and a preset coefficient can be used as the first current value. The preset coefficient can range from 0 to 1.

[0097] In one embodiment, the first compensation current input to the charging circuit in step S300, according to the current compensation strategy, is determined in the following manner:

[0098] When the current compensation strategy is to output a second compensation current to the charging circuit, the first compensation current is determined based on the second compensation current and the operating mode of the charging circuit.

[0099] The first compensation current is input to the charging circuit.

[0100] When the current compensation strategy is that the charging circuit stops outputting the second compensation current, the input of the first compensation current to the charging circuit is stopped.

[0101] In this embodiment, the relationship between the current input to the charging circuit and the current output by the charging circuit differs depending on the operating mode of the charging circuit. When the current compensation strategy is to output a second compensation current, the second compensation current is converted according to the operating mode of the charging circuit to determine the first compensation current, which is then input to the charging circuit. When the current compensation strategy is to stop the charging circuit from outputting the second compensation current, there is no need to convert the second compensation current, and the first compensation current is stopped from being input to the charging circuit. By determining the second compensation current first and then the first compensation current for load current compensation, the load current can be accurately compensated while avoiding impact on battery life, thereby improving the reliability of battery charging.

[0102] For example, taking a charge pump circuit as the charging circuit, the determination of the first compensation current based on the second compensation current and the operating mode of the charging circuit in the above steps will be explained. When the charge pump circuit operates in a 2:1 operating mode, the first compensation current is determined to be half of the second compensation current. When the charge pump circuit operates in a 1:2 operating mode, the first compensation current is determined to be twice the second compensation current. When the charge pump circuit operates in a 4:1 operating mode, the first compensation current is determined to be one-quarter of the second compensation current. When the charge pump circuit operates in a 1:4 operating mode, the first compensation current is determined to be four times the second compensation current.

[0103] In one embodiment, such as Figure 5 As shown, after obtaining the charging temperature and battery voltage in step S100, the charging method further includes:

[0104] S400: Determine the battery charging current based on the charging temperature and battery voltage.

[0105] S410. Determine the target current input to the charging circuit based on the charging current and operating mode.

[0106] S420: Input the target current to the charging circuit.

[0107] In the case where the current compensation strategy is to output a second compensation current through the charging circuit, the input current of the charging circuit is the sum of the target current and the first compensation current.

[0108] In this embodiment, since charging temperature and battery voltage affect the battery charging current from different perspectives, the charging current is determined based on these factors. Because there is a relationship between the current input to the charging circuit and the current output by the charging circuit, a target current is determined based on the charging current and the operating mode, and this target current is input to the charging circuit. By inputting the sum of the target current and the first compensation current into the charging circuit, the charging circuit can output a charging current and a second compensation current to charge the battery and compensate for the load current, thereby improving the reliability of battery charging.

[0109] For example, determining the battery charging current based on the charging temperature and battery voltage in step S400 may include steps S211 to S213, and determining the battery charging current based on charging parameters.

[0110] For example, the charging current of the battery in the above steps is determined according to the charging parameters in the following way:

[0111] If the first charging current is less than the second charging current, the charging current is determined to be the first charging current.

[0112] If the first charging current is greater than or equal to the second charging current, the charging current is determined to be the second charging current.

[0113] This disclosure provides a charging method, such as... Figure 6 As shown, the method includes:

[0114] S500: When the charging circuit is charging the battery, the charging temperature and the battery voltage are obtained.

[0115] S510. Determine the first charging current of the battery based on the charging temperature.

[0116] S520. Determine the second charging current of the battery based on the battery voltage.

[0117] S530: When the first charging current is less than the second charging current, the charging parameter is determined to be the charging temperature.

[0118] S540, Determine the current compensation strategy as a second compensation current with the output value of the first current value of the charging circuit.

[0119] S550, Determine the charging current as the first charging current.

[0120] S560. If the first charging current is greater than or equal to the second charging current, the charging parameter is determined to be the battery voltage.

[0121] S570, The current compensation strategy is determined to be a second compensation current with the output value of the second current of the charging circuit.

[0122] S580, Determine the charging current as the second charging current.

[0123] S590. Determine the first compensation current based on the second compensation current and the operating mode of the charging circuit.

[0124] S600, Input the first compensation current to the charging circuit.

[0125] S610. Determine the target current input to the charging circuit based on the charging current and operating mode.

[0126] S620: Input the target current to the charging circuit.

[0127] In this embodiment, when the charging circuit charges the battery, the charging temperature and battery voltage are acquired to determine charging parameters that limit the charging current. Since the charging temperature affects the charging current, a first charging current is determined based on the charging temperature. Since the battery voltage affects the charging current, a second charging current is determined based on the battery voltage. When the first charging current is less than the second charging current, using the first charging current results in a higher charging temperature, affecting battery lifespan; therefore, the charging parameter is determined to be the charging temperature. The current compensation strategy is determined to be a second compensation current output by the charging circuit equal to the first current value. Using a larger first current value for current compensation prevents lithium plating caused by load current changes when the battery can be charged quickly. Alternatively, the charging current is determined to be the first charging current, and the battery is charged with a smaller first charging current to reduce the impact of charging temperature on battery lifespan. When the first charging current is greater than or equal to the second charging current, using the second charging current may cause lithium plating; therefore, the charging parameter is determined to be the battery voltage. The current compensation strategy is determined to be a second compensation current output by the charging circuit equal to the second current value. Using a smaller second current value for current compensation avoids lithium plating caused by load current changes. Since the operating mode of the charging circuit determines the relationship between the current input to the charging circuit and the current output by the charging circuit, a first compensation current is determined based on the second compensation current and the operating mode, and this first compensation current is input to the charging circuit. A target current is determined based on the charging current and the operating mode, and this target current is input to the charging circuit. By determining the current compensation strategy based on the charging temperature and the battery voltage, over-compensation is avoided when the load current changes, preventing the current flowing into the battery from exceeding the maximum allowable current, thereby improving the reliability of battery charging. Simultaneously, by controlling the input current of the charging circuit to compensate for the load current, frequent adjustments to the output current of the charging circuit are avoided, preventing the current flowing into the battery from exceeding the maximum allowable current, further improving the reliability of battery charging.

[0128] In one exemplary embodiment, a charging device is provided for implementing the method described above. (Reference) Figure 7 As shown, the charging device may include an acquisition module 100, a determination module 200, and a control module 300. During the implementation of the above method,

[0129] The acquisition module 100 is configured to acquire the charging temperature and the battery voltage while the battery is being charged by the charging circuit.

[0130] The determination module 200 is configured to determine a current compensation strategy based on the charging temperature and the battery voltage.

[0131] The control module 300 is configured to control the first compensation current input to the charging circuit according to the current compensation strategy.

[0132] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0133] The charging parameters used to determine the battery charging current setting are the charging temperature and the battery voltage.

[0134] Determine the corresponding current compensation strategy based on the charging parameters.

[0135] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0136] The first charging current of the battery is determined based on the charging temperature.

[0137] Determine the second charging current of the battery based on the battery voltage.

[0138] The charging parameters are determined based on the first charging current and the second charging current.

[0139] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0140] If the first charging current is less than the second charging current, the charging parameter is determined to be the charging temperature.

[0141] If the first charging current is greater than or equal to the second charging current, the charging parameter is determined to be the battery voltage.

[0142] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0143] When the charging parameter is the charging temperature, the current compensation strategy is determined to be a second compensation current with the output of the charging circuit being equal to the first current value.

[0144] Given the battery voltage as the charging parameter, the current compensation strategy is determined to be either to output a second compensation current with a second current value or to stop outputting the second compensation current.

[0145] The first current value is greater than the second current value. The first compensation current and the second compensation current are positively correlated.

[0146] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0147] The first current value is determined based on the charging temperature and the battery voltage.

[0148] In one exemplary embodiment, a charging device is provided, wherein a control module 300 is configured to:

[0149] When the current compensation strategy is to output a second compensation current to the charging circuit, the first compensation current is determined based on the second compensation current and the operating mode of the charging circuit.

[0150] The first compensation current is input to the charging circuit.

[0151] When the current compensation strategy is that the charging circuit stops outputting the second compensation current, the input of the first compensation current to the charging circuit is stopped.

[0152] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0153] The charging current of the battery is determined based on the charging temperature and the battery voltage.

[0154] Determine the target current input to the charging circuit based on the charging current and operating mode.

[0155] In one exemplary embodiment, a charging device is provided, wherein a control module 300 is configured to:

[0156] The target current is input into the charging circuit.

[0157] In the case where the current compensation strategy is to output a second compensation current through the charging circuit, the input current of the charging circuit is the sum of the target current and the first compensation current.

[0158] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0159] Determine the battery charging current based on the charging parameters.

[0160] In one exemplary embodiment, a charging device is provided, wherein a determining module 200 is configured to:

[0161] If the first charging current is less than the second charging current, the charging current is determined to be the first charging current.

[0162] If the first charging current is greater than or equal to the second charging current, the charging current is determined to be the second charging current.

[0163] In one exemplary embodiment, an electronic device is provided, such as a mobile phone, a laptop computer, a tablet computer, and a wearable device.

[0164] refer to Figure 8 As shown, the electronic device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input / output (I / O) interface 412, sensor component 414, and communication component 416.

[0165] Processing component 402 typically controls the overall operation of electronic device 400, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

[0166] Memory 404 is configured to store various types of data to support the operation of electronic device 400. Examples of this data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, pictures, videos, etc. Memory 404 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0167] Power supply component 406 provides power to various components of electronic device 400. Power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 400.

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

[0169] Audio component 410 is configured to output and / or input audio signals. For example, audio component 410 includes a microphone (MIC) configured to receive external audio signals when electronic device 400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 404 or transmitted via communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

[0170] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0171] Sensor assembly 414 includes one or more sensors for providing state assessments of various aspects of electronic device 400. For example, sensor assembly 414 may detect the on / off state of electronic device 400, the relative positioning of components such as the display and keypad of electronic device 400, changes in position of electronic device 400 or a component of electronic device 400, the presence or absence of user contact with electronic device 400, orientation or acceleration / deceleration of electronic device 400, and temperature changes of electronic device 400. Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 414 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0172] Communication component 416 is configured to facilitate wired or wireless communication between electronic device 400 and other terminals. Electronic device 400 can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 416 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0173] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods shown in the above embodiments or combinations thereof.

[0174] In one exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, which can be executed by a processor 420 of an electronic device 400 to perform the methods shown in the embodiments or combinations thereof. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the methods shown in the embodiments or combinations thereof.

[0175] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0176] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0177] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0178] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0179] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A charging method, characterized in that, The charging method includes: While the battery is being charged by the charging circuit, the charging temperature and the voltage of the battery are obtained; A current compensation strategy is determined based on the charging temperature and the battery voltage. According to the current compensation strategy, the first compensation current input to the charging circuit is controlled.

2. The charging method according to claim 1, characterized in that, The step of determining a current compensation strategy based on the charging temperature and the battery voltage includes: Based on the charging temperature and the battery voltage, the charging parameters used to set the battery charging current are determined, wherein the charging parameters are the charging temperature or the battery voltage. Based on the charging parameters, the corresponding current compensation strategy is determined.

3. The charging method according to claim 2, characterized in that, The step of determining the corresponding current compensation strategy based on the charging parameters includes: When the charging parameter is the charging temperature, the current compensation strategy is determined to be that the charging circuit outputs a second compensation current with a first current value. When the charging parameter is the voltage of the battery, the current compensation strategy is determined to be that the charging circuit outputs a second compensation current of a second current value or stops outputting the second compensation current. Wherein, the first current value is greater than the second current value; the first compensation current is positively correlated with the second compensation current.

4. The charging method according to claim 3, characterized in that, The first current value is related to the load current consumed by the system load of the electronic device when the screen of the electronic device is off; and / or, the second current value is related to the load current consumed by the system load of the electronic device when the screen of the electronic device is on.

5. The charging method according to claim 3, characterized in that, Before determining the corresponding current compensation strategy based on the charging parameters, determining the current compensation strategy based on the charging temperature and the battery voltage further includes: The first current value is determined based on the charging temperature and the battery voltage.

6. The charging method according to claim 2, characterized in that, The charging parameters used to determine the charging current setting of the battery based on the charging temperature and the battery voltage include: The first charging current of the battery is determined based on the charging temperature; Determine the second charging current of the battery based on the battery voltage; The charging parameters are determined based on the first charging current and the second charging current.

7. The charging method according to claim 6, characterized in that, Determining the charging parameters based on the first charging current and the second charging current includes: When the first charging current is less than the second charging current, the charging parameter is determined to be the charging temperature; If the first charging current is greater than or equal to the second charging current, the charging parameter is determined to be the voltage of the battery.

8. The charging method according to any one of claims 1 to 7, characterized in that, The step of controlling the first compensation current input to the charging circuit according to the current compensation strategy includes: When the current compensation strategy outputs a second compensation current to the charging circuit, the first compensation current is determined based on the second compensation current and the operating mode of the charging circuit. The first compensation current is input to the charging circuit; When the current compensation strategy is to stop the charging circuit from outputting the second compensation current, the input of the first compensation current to the charging circuit is stopped.

9. The charging method according to claim 8, characterized in that, After obtaining the charging temperature and the battery voltage, the charging method further includes: The charging current of the battery is determined based on the charging temperature and the battery voltage. Based on the charging current and the operating mode, determine the target current input to the charging circuit; The target current is input to the charging circuit; Wherein, when the current compensation strategy is to output the second compensation current to the charging circuit, the input current of the charging circuit is the sum of the target current and the first compensation current.

10. A charging device, characterized in that, The charging device includes: An acquisition module is configured to acquire the charging temperature and the voltage of the battery while the battery is being charged by the charging circuit. A determination module is configured to determine a current compensation strategy based on the charging temperature and the battery voltage. A control module configured to control a first compensation current input to the charging circuit according to the current compensation strategy.

11. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to perform the charging method as described in any one of claims 1 to 9.

12. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the charging method as described in any one of claims 1 to 9.