Charging method and device, terminal and storage medium

By adjusting the input current and voltage of the charge pump, the problem of frequent jump in the charge pump input current during the charging process of the terminal equipment is solved, and the reliability and user experience of the charging process are improved.

CN118920854APending Publication Date: 2024-11-08BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310512937.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-08
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

During the charging process of terminal equipment, due to changes in the system load, the charge pump input current frequently jumps, which may trigger undercurrent protection, resulting in intermittent charging, affecting user experience and charging reliability.

Method used

By adjusting the input current and input voltage of the charge pump based on the terminal parameters to compensate for changes in the system load, avoiding the problem of the charge pump input current becoming smaller or discharging. Specific methods include obtaining the compensation input current and compensation input voltage, adjusting the input parameters of the charge pump to match the system load changes and ensuring the stability of the charging process.

Benefits of technology

It effectively avoids the charge pump input current decreases or discharging caused by changes in the system load, and improves the reliability and user experience of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118920854A_ABST
    Figure CN118920854A_ABST
Patent Text Reader

Abstract

The invention relates to a charging method and device, a terminal and a storage medium. The charging method is applied to a charging process of a terminal with a screen in a lighted state, and comprises the steps of obtaining a compensation input current of a charge pump of the terminal based on a first parameter and a second parameter of the terminal; and / or, based on the preset input current of the charge pump and the input current of the battery of the terminal, obtaining a first compensation input voltage of the charge pump; and based on the compensation input current and / or the first compensation input voltage, obtaining the adjusted input parameter of the charge pump of the terminal to compensate the influence of the change of the system load capacity of the terminal on the input voltage of the charge pump. The adjusted input parameters of the charge pump can compensate the influence of the system load change of the terminal on the input voltage of the charge pump, the problem that the input current of the charge pump becomes small and even charging is cut off due to the system load change of the terminal is avoided, and the reliability of the charging process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the related art, the fast charging technology of terminal equipment usually uses a charge pump structure. The charge pump has multiple working modes. The ratio of the input voltage of the charge pump to the output voltage of the charge pump to the battery is different in different working modes, so the charging efficiency is also different. In order to reduce the heat generation of the terminal equipment during charging, the various working modes of the charge pump are usually fully utilized according to different charging conditions.

[0003] When a user uses a terminal device while it is charging, the applications running in the foreground of the terminal device may change constantly. For example, the user constantly switches between video software, social software, game software and other applications, or adjusts the screen brightness, etc. These operations will cause the load of the terminal device to change. When the system load changes, in order to reduce heat, the battery charging current frequently switches and frequently jumps. In severe cases, the charge pump input undercurrent may trigger the undercurrent protection (UCP) and cause the charging to be disconnected, which seriously affects the user's charging experience and the reliability of the charging process is poor. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a charging method, device, terminal and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a charging method is provided, which is applied to a charging process of a terminal with a screen in a lit state, the terminal device charge pump, and the charging method includes:

[0006] Based on a first parameter and a second parameter of the terminal, a compensation input current of the charge pump is obtained, wherein the first parameter is determined based on a working state of a device related to a user's sensory experience, and the second parameter is determined based on a load of an application running in the terminal; and / or, based on a preset input current of the charge pump and an input current of a battery of the terminal, a first compensation input voltage of the charge pump is obtained;

[0007] Based on the compensation input current and / or the first compensation input voltage, an adjusted input parameter of the charge pump of the terminal is obtained to compensate for the impact of changes in the system load of the terminal on the input voltage of the charge pump, wherein the system load is determined based on the working state of the device related to the user sensory experience and the load of the application running in the terminal.

[0008] In an exemplary embodiment, obtaining the adjusted input parameter of the charge pump of the terminal based on the compensated input current and / or the first compensated input voltage includes:

[0009] obtaining a target input current of the charge pump based on the compensation input current and the initial input current of the charge pump; and / or,

[0010] Obtaining a first target input voltage of the charge pump based on the first compensation input voltage and an initial input voltage of the charge pump;

[0011] Based on the target input current and / or the first target input voltage, an input parameter of a charge pump of the terminal is adjusted.

[0012] In an exemplary embodiment, the method further comprises:

[0013] When adjusting the input parameter of the charge pump based on the compensation input current and the first compensation input voltage, the preset input current is the target input current;

[0014] or,

[0015] When the input voltage of the charge pump is adjusted based on the first compensation input voltage, the preset input current is an initial input current of the charge pump.

[0016] In an exemplary embodiment, obtaining the compensated input current of the charge pump based on the first parameter and the second parameter of the terminal includes:

[0017] Acquire the first parameter, the second parameter, and a pre-stored initial compensation input current, wherein the initial compensation input current is determined based on a circuit structure characteristic of the charge pump;

[0018] The first parameter, the second parameter and the initial compensation input current are summed, and the obtained result is used as the compensation input current.

[0019] In an exemplary embodiment, obtaining a first compensation input voltage of the charge pump based on a preset input current of the charge pump and an input current of a battery of the terminal includes:

[0020] Acquire a first current difference between a first limit input current of the charge pump and a preset input current of the charge pump, and acquire a second compensation input voltage of the charge pump corresponding to the first current difference according to a first preset current interval to which the first current difference belongs;

[0021] Acquire a second current difference between a second limit input current of the battery and an initial input current of the battery, and acquire a third compensation input voltage of the charge pump corresponding to the second current difference according to a second preset current interval to which the second current difference belongs;

[0022] A first compensation input voltage of the charge pump is determined according to the second compensation input voltage and the third compensation input voltage.

[0023] In an exemplary embodiment, determining the first compensation input voltage of the charge pump according to the second compensation input voltage and the third compensation input voltage includes:

[0024] The smaller one of the second compensation input voltage and the third compensation input voltage is used as the first compensation input voltage.

[0025] In an exemplary embodiment, the charging method further includes:

[0026] Obtaining a fourth compensation input voltage of the charge pump based on circuit impedance information of a battery of the terminal and an operating mode of the charge pump, wherein the operating mode of the charge pump is a ratio between an input voltage of the charge pump and an output voltage of the charge pump;

[0027] taking the sum of the initial input voltage of the charge pump and the fourth compensation input voltage as the second target input voltage of the charge pump;

[0028] The second target input voltage is used as the adjusted input voltage of the charge pump of the terminal.

[0029] In an exemplary embodiment, the charging method further includes:

[0030] If the system load change value exceeds a preset threshold, obtaining charging currents at multiple times, wherein the charging currents at multiple times include the charging current at the current time and the charging currents at historical times;

[0031] Determine a target charging current according to the charging currents at the multiple moments and a pre-stored charging current mapping relationship, wherein the charging current mapping relationship represents a mapping relationship between the charging currents at the multiple moments and the target charging current;

[0032] The target charging current is used as the adjusted input current of the charge pump of the terminal.

[0033] According to a second aspect of an embodiment of the present disclosure, a charging device is provided, which is applied to a charging process of a terminal whose screen is in a lit state, wherein the terminal is provided with a charge pump, and the charging device comprises:

[0034] an adjustment module configured to obtain a compensation input current of the charge pump based on a first parameter and a second parameter of the terminal, wherein the first parameter is determined based on a working state of a device related to a user's sensory experience, and the second parameter is determined based on a load of an application program running in the terminal; and / or, obtain a first compensation input voltage of the charge pump based on a preset input current of the charge pump and an input current of a battery of the terminal;

[0035] Based on the compensation input current and / or the first compensation input voltage, an adjusted input parameter of the charge pump of the terminal is obtained to compensate for the impact of changes in the system load of the terminal on the input voltage of the charge pump, wherein the system load is determined based on the working state of the device related to the user sensory experience and the load of the application running in the terminal.

[0036] In an exemplary embodiment, the adjustment module is further configured to:

[0037] obtaining a target input current of the charge pump based on the compensation input current and the initial input current of the charge pump; and / or

[0038] Obtaining a first target input voltage of the charge pump based on the first compensation input voltage and an initial input voltage of the charge pump;

[0039] The target input current and / or the first target input voltage are used as input parameters of the charge pump of the terminal after adjustment.

[0040] In an exemplary embodiment, the adjustment module is further configured to:

[0041] When the input parameter of the charge pump is adjusted based on the compensation input current and the first compensation input voltage, the preset input current is the target input current;

[0042] or,

[0043] When the input voltage of the charge pump is adjusted based on the first compensation input voltage, the preset input current is an initial input current of the charge pump.

[0044] In an exemplary embodiment, the adjustment module is further configured to:

[0045] Acquire the first parameter, the second parameter, and a pre-stored initial compensation input current, wherein the initial compensation input current is determined based on a circuit structure characteristic of the charge pump;

[0046] The first parameter, the second parameter and the initial compensation input current are summed, and the obtained result is used as the compensation input current.

[0047] In an exemplary embodiment, the adjustment module is further configured to:

[0048] Acquire a first current difference between a first limit input current of the charge pump and a preset input current of the charge pump, and acquire a second compensation input voltage of the charge pump corresponding to the first current difference according to a first preset current interval to which the first current difference belongs;

[0049] Acquire a second current difference between a second limit input current of the battery and an initial input current of the battery, and acquire a third compensation input voltage of the charge pump corresponding to the second current difference according to a second preset current interval to which the second current difference belongs;

[0050] A first compensation input voltage of the charge pump is determined according to the second compensation input voltage and the third compensation input voltage.

[0051] In an exemplary embodiment, the adjustment module is further configured to:

[0052] The smaller one of the second compensation input voltage and the third compensation input voltage is used as the first compensation input voltage.

[0053] In an exemplary embodiment, the adjustment module is further configured to:

[0054] Obtaining a fourth compensation input voltage of the charge pump based on circuit impedance information of a battery of the terminal and an operating mode of the charge pump, wherein the operating mode of the charge pump is a ratio between an input voltage of the charge pump and an output voltage of the charge pump;

[0055] taking the sum of the initial input voltage of the charge pump and the fourth compensation input voltage as the second target input voltage of the charge pump;

[0056] The second target input voltage is used as the adjusted input voltage of the charge pump of the terminal.

[0057] In an exemplary embodiment, the adjustment module is further configured to:

[0058] If the system load change value exceeds a preset threshold, obtaining charging currents at multiple times, wherein the charging currents at multiple times include the charging current at the current time and the charging currents at historical times;

[0059] Determine a target charging current according to the charging currents at the multiple moments and a pre-stored charging current mapping relationship, wherein the charging current mapping relationship represents a mapping relationship between the charging currents at the multiple moments and the target charging current;

[0060] The target charging current is used as the adjusted input current of the charge pump of the terminal.

[0061] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, including:

[0062] processor;

[0063] a memory for storing processor-executable instructions;

[0064] Wherein, the processor is configured to execute the charging method as described in the first aspect of the embodiment of the present disclosure.

[0065] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the charging method as described in the first aspect of the embodiment of the present disclosure.

[0066] The above method disclosed in the present invention has the following beneficial effects: the method disclosed in the present invention obtains the input parameters of the adjusted charge pump according to the compensation input current and the first compensation input voltage to compensate for the influence of the change in the system load of the terminal on the input voltage of the charge pump, thereby avoiding the problem of the input current of the charge pump becoming smaller or even charging being interrupted due to the change in the system load of the terminal, and improving the reliability of the charging process.

[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0069] Figure 1 is a flow chart of a charging method according to an exemplary embodiment;

[0070] Figure 2 is a flow chart of a method for adjusting the input current of a charge pump in a first manner according to an exemplary embodiment;

[0071] Figure 3 is a flow chart of a method for adjusting the input voltage of a charge pump in a second manner according to an exemplary embodiment;

[0072] Figure 4 is a flow chart of a method for obtaining a compensation input current of a charge pump according to an exemplary embodiment;

[0073] Figure 5 is a flow chart of a method for obtaining a first compensation input voltage of a charge pump according to an exemplary embodiment;

[0074] Figure 6 is a flow chart of a method for obtaining a second target input voltage of a charge pump according to an exemplary embodiment;

[0075] Figure 7 is a flow chart of a method for obtaining a target charging current according to an exemplary embodiment;

[0076] Figure 8 is an equivalent circuit diagram of a charge pump and a battery in a terminal according to an exemplary embodiment;

[0077] Fig. 9 is a block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION

[0078] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0079] In an exemplary embodiment of the present disclosure, in order to overcome the problems existing in the related art, a charging method is provided, which is applied to the charging process of a terminal with a screen in a lit state, wherein a charge pump is provided in the terminal, and a compensation input current of the charge pump is obtained based on a first parameter and a second parameter of the terminal, wherein the first parameter is determined based on the working state of a device related to the user's sensory experience, and the second parameter is determined based on the load of an application running in the terminal; and / or, based on a preset input current of the charge pump and an input current of a battery of the terminal, a first compensation input voltage of the charge pump is obtained; based on the compensation input current and / or the first compensation input voltage, an adjusted input parameter of the charge pump of the terminal is obtained to compensate for the influence of the change in the system load of the terminal on the input voltage of the charge pump. The method in the present disclosure adjusts the input parameter of the charge pump according to the first parameter and the second parameter related to the change in the system load of the terminal to compensate for the influence of the change in the system load of the terminal on the input voltage of the charge pump, thereby avoiding the problem that the input current of the charge pump becomes smaller or even disconnected due to the change in the system load of the terminal, and improving the reliability of the charging process.

[0080] In an exemplary embodiment of the present disclosure, a charging method is provided, which is applied to the charging process of a terminal with a screen in a lit state, wherein the terminal includes a smart phone, a smart tablet or other electronic device using a charge pump, and the terminal is provided with a charge pump. The charging process of the terminal with a screen in a lit state refers to the user charging the terminal while using the terminal for operations such as reading or playing games.

[0081] Before explaining the charging method in the present invention, in order to better understand the scheme and corresponding effects of the charging method in the present invention, the circuit used in the charging method in the present invention and the problems that may arise during the screen-on charging process using the circuit are first explained.

[0082] Figure 8 is an equivalent circuit diagram of a charge pump and a battery in a terminal according to an exemplary embodiment. Figure 8 As shown, if the user charges the terminal while using the terminal to play games, in this scenario, the charger charges the battery through the charge pump and supplies power for the terminal's system operation process. Wherein, Vbus represents the input voltage of the charge pump, Vout represents the output voltage of the charge pump, Ibus represents the input current of the charge pump, and the working mode of the charge pump is n:1, which means that the ratio between the input voltage of the charge pump and the output voltage of the charge pump is n:1. The output end of the charge pump is electrically connected to the charging circuit of the battery, where Ibatt represents the input current of the battery, OCV represents the open circuit voltage of the battery, ESR represents the internal resistance of the battery, R1 represents the equivalent impedance of the chemical material inside the battery, C1 represents the equivalent capacitance of the chemical material inside the battery, and Rcr represents the charging path impedance in the charging circuit of the battery.

[0083] The output voltage of the charge pump satisfies the relationship: Vout = OCV + Ibatt × (ESR + R1 + Rcr). During the charging process of the terminal with the screen on, the charger inputs the charging current to the charge pump, which then converts the current and voltage values ​​and outputs them to the battery. However, the charge pump also needs to output current to supply the system consumption of the terminal. Therefore, the output current of the charge pump includes the input current of the battery and the system consumption current. Iout represents the output current of the charge pump, and Isys represents the system consumption current. Then Iout = Ibatt + Isys.

[0084] The system load of the terminal is determined based on the working state of the device related to the user's sensory experience and the load of the application running in the terminal, wherein the device related to the user's sensory experience may be a display screen, a speaker, or a vibration sensor, etc., which may affect the user's experience. For example, when the user adjusts the brightness of the display screen to a higher level, or when the user adjusts the volume of the speaker to a higher level, or when the user adjusts the vibration intensity of the vibration to a higher level, the system energy consumption of the terminal increases, that is, the system load will increase. The load of the system is also affected by the load of the application running in the foreground of the terminal. For example, if a game application is running in the foreground, the CPU and GPU of the system will consume a large amount of computing resources to process the scenes in the game application, etc., which will increase the load of the system. In addition, it should be noted that there are also some applications running in the background. Usually, the applications running in the background consume less resources of the system and will not increase the load of the system too much. However, if the applications running in the background consume more resources, the consumption of the resources of the terminal by the background applications can also be combined and included in the system load of the terminal.

[0085] When the user uses the terminal, when the system load of the terminal changes, for example, switching from a heavy-load application to a light-load application, or the screen brightness changes from bright to dark, or the volume of the speaker changes from low to high, the terminal system switches from a heavy-load to a light-load system at that moment. The system consumption current Isys will decrease, but the output current Iout of the charge pump remains unchanged. Therefore, the input current Ibatt of the battery will increase, and the output voltage Vout of the charge pump will increase. If the input voltage of the charge pump does not increase accordingly at this time, the voltage difference between the input voltage Vbus and the output voltage Vout of the charge pump will decrease, and the input current Ibus will decrease, triggering the charge pump UCP to have a charging interruption problem (that is, the charge pump boost charging interruption problem).

[0086] In order to solve the above problems, the present disclosure provides a charging method. Figure 1 is a flow chart of a charging method according to an exemplary embodiment. Figure 1 As shown, the following steps are included:

[0087] Step S101, obtaining a compensation input current of a charge pump based on a first parameter and a second parameter of the terminal, wherein the first parameter is determined based on a working state of a device related to a user's sensory experience, and the second parameter is determined based on a load of an application program running in the terminal; and / or obtaining a first compensation input voltage of the charge pump based on a preset input current of the charge pump and an input current of a battery of the terminal;

[0088] Step S102, based on the compensated input current and / or the first compensated input voltage, obtain the input parameters of the charge pump of the adjusted terminal to compensate for the impact of the change in the system load of the terminal on the input voltage of the charge pump, wherein the system load is determined based on the working state of the device related to the user's sensory experience and the load of the application running in the terminal.

[0089] In step S101, the working state of the device related to the user's sensory experience in the terminal includes the brightness of the display screen, the volume of the speaker sound, the use state of the microphone, or the intensity of the terminal vibration, etc. The first parameter is determined based on the working state of the device related to the user's sensory experience. The first parameter can be a preset empirical value. For example, the first parameter is set to 200 mA, and the first parameter is pre-stored in the memory of the terminal. When the change value of the system load exceeds the preset threshold, the first parameter is obtained; the mapping relationship table or functional relationship between the screen brightness value, speaker volume value and the first parameter of the terminal can also be pre-stored in the terminal memory. When the change value of the system load exceeds the preset threshold, the screen brightness value and speaker volume value of the current terminal are obtained, and the corresponding first parameter is searched in the mapping relationship table, or the screen brightness value and speaker volume value are substituted into the functional relationship to obtain the first parameter.

[0090] The second parameter is determined based on the load of the application running in the foreground in the terminal. A mapping relationship table or a functional relationship expression between the load of the application running in the foreground and the second parameter can be pre-stored in the terminal memory. After obtaining the load of the application currently running in the foreground, the corresponding second parameter is searched in the mapping relationship table, or substituted into the functional relationship expression to obtain the second parameter; the second parameter can also be determined using an empirical value and pre-stored in the terminal memory, for example, the second parameter is set to 200 mA.

[0091] The first parameter and the second parameter are both electrical signals related to the change of the system load. The change of the terminal system load can be determined by the first parameter and the second parameter. Therefore, the compensation input current of the charge pump is obtained based on the first parameter and the second parameter. The first parameter and the second parameter can be summed and the summed result can be used as the compensation input current of the charge pump, or the first parameter and the second parameter can be summed or weighted and the summed result can be used as the compensation input current of the charge pump.

[0092] The preset input current of the charge pump may be the input current of the charge pump before the system load of the terminal changes, that is, the initial input current of the charge pump, or may be the input current after the initial input current of the charge pump is adjusted. In one example, when the input current of the charge pump and the input voltage of the charge pump are adjusted based on the compensation input current and the first compensation input voltage, the preset input current is the input current after the initial input current of the charge pump is adjusted; when the input voltage of the charge pump is adjusted based on the first compensation input voltage, the preset current is the initial input current of the charge pump.

[0093] When obtaining the first compensated input voltage of the charge pump based on the preset input current of the charge pump and the input current of the battery, a mapping relationship table or a functional relationship between the preset input current of the charge pump, the input current of the battery and the first compensated input voltage can be pre-stored in the terminal memory. After obtaining the preset input current of the charge pump and the input current of the battery, the corresponding first compensated input voltage can be found in the mapping relationship table, or the preset input current of the charge pump and the input current of the battery are substituted into the functional relationship to obtain the first compensated input voltage; or the comparison result can be obtained by comparing the preset input current of the charge pump with the maximum input current of the charge pump, and the input current of the battery with the maximum input current of the battery, and the first compensated input voltage can be determined according to the comparison result.

[0094] In step S102, the input parameters of the charge pump include input current and input voltage. The compensation input current can be used alone to compensate the input current of the charge pump to obtain the input current of the charge pump of the adjusted terminal. The compensation input voltage can be used alone to compensate the input voltage of the charge pump to obtain the input voltage of the charge pump of the adjusted terminal. The compensation input current and the compensation input voltage can also be used together to compensate the input current and input voltage of the charge pump respectively to obtain the input current and input voltage of the charge pump of the adjusted terminal, so as to compensate for the influence of the change of the terminal system load on the input voltage of the charge pump and restore the voltage difference between the input voltage and the output voltage of the charge pump.

[0095] In an exemplary embodiment of the present disclosure, during the charging process of the terminal with the screen in a lit state, the adjusted input current and / or input voltage of the charge pump of the terminal is obtained by compensating the input current and the first compensation input voltage to compensate for the impact of the change in the system load of the terminal on the input voltage of the charge pump, thereby avoiding the problem of the input current of the charge pump becoming smaller or even charging being interrupted due to the change in the system load of the terminal, thereby improving the reliability of the charging process.

[0096] In an exemplary embodiment, if the change value of the system load exceeds the preset threshold, the input current and / or input voltage of the charge pump is adjusted by at least one of the following methods 1 and 2, that is, the input current of the charge pump is adjusted by the following method 1 alone, or the input voltage of the charge pump is adjusted by the following method 2 alone, or the input current and input voltage of the charge pump are adjusted by both the following methods 1 and 2. The preset threshold is an empirical value and can be determined according to actual needs. In general, the selection of the preset threshold should indicate a large change in the system load.

[0097] Figure 2 is a flow chart of a method for adjusting the input current of a charge pump in a first manner according to an exemplary embodiment. Figure 2 As shown, the following steps are included:

[0098] Step S201, obtaining a target input current of the charge pump based on the compensation input current and the initial input current of the charge pump;

[0099] Step S202: Using the target input current as the input current of the charge pump of the adjusted terminal.

[0100] The initial input current of the charge pump represents the input current before the terminal load changes. The initial input current is compensated by the compensation input current to obtain the target input current, and the target input current is used as the input current of the adjusted charge pump to compensate for the influence of the terminal system load change on the input voltage of the charge pump. When the initial input current is compensated by the compensation input current, the initial input current of the charge pump and the compensation input current can be summed as the target input current, or the initial input current of the charge pump and the compensation input current can be weighted summed as the target input current.

[0101] Figure 3 is a flow chart of a method for adjusting the input voltage of a charge pump in a second manner according to an exemplary embodiment. Figure 3 As shown, the following steps are included:

[0102] Step S301, obtaining a first target input voltage of the charge pump based on a first compensation input voltage and an initial input voltage of the charge pump;

[0103] Step S302: Using the first target input voltage as the adjusted input voltage of the charge pump of the terminal.

[0104] The initial input voltage of the charge pump represents the input voltage before the terminal load changes. The initial input voltage is compensated by a first compensation input voltage, that is, the sum or weighted sum of the initial input voltage and the compensation input voltage of the charge pump is used as the first target input voltage, and the first target input voltage is used as the input voltage of the adjusted charge pump to compensate for the impact of the terminal system load change on the input voltage of the charge pump.

[0105] In an exemplary embodiment, Figure 4 is a flow chart of a method for obtaining a compensation input current of a charge pump according to an exemplary embodiment. Figure 4 As shown, the following steps are included:

[0106] Step S401, obtaining a first parameter, a second parameter and a pre-stored initial compensation input current, where the initial compensation input current is determined based on a circuit structure characteristic of a charge pump;

[0107] Step S402: sum the first parameter, the second parameter and the initial compensation input current, and use the obtained result as the compensation input current.

[0108] The first parameter, the second parameter and the pre-stored initial compensation input current are respectively obtained, the initial compensation input current represents the compensation input current of the input current before the system load changes after the system load of the terminal changes, and is determined based on the circuit structure characteristics of the charge pump. The initial compensation input current is an empirical value, and the initial compensation input current can be determined by experimentally obtaining the difference in the input current of the charge pump before and after the terminal system load changes. For example, the initial compensation input current is set to 100 mA, and the initial compensation input current is pre-stored in the memory of the terminal.

[0109] The first parameter, the second parameter and the initial compensation input current are weighted and summed by the following formula, and the result is used as the compensation input current to obtain the compensation input current:

[0110]

[0111] in, Represents the compensation input current, I bright Represents the first parameter, I app Represents the second parameter, I basic represents the initial compensation input current, α and β represent weight coefficients. Since the first parameter is determined based on the screen brightness value of the terminal, and the second parameter is determined based on the load of the application program in the foreground running state in the terminal, the greater the screen brightness value of the terminal, the greater the weight coefficient α of the first parameter, and the greater the load of the application program in the foreground running state in the terminal, the greater the weight coefficient β of the second parameter.

[0112] In an exemplary embodiment, Figure 5 is a flow chart of a method for obtaining a first compensation input voltage of a charge pump according to an exemplary embodiment. Figure 5 As shown, the following steps are included:

[0113] Step S501, obtaining a first current difference between a first limit input current of a charge pump and a preset input current of the charge pump, and obtaining a second compensation input voltage of the charge pump corresponding to the first current difference according to a first preset current interval to which the first current difference belongs;

[0114] Step S502, obtaining a second current difference between a second limit input current of the battery and an initial input current of the battery, and obtaining a third compensation input voltage of the charge pump corresponding to the second current difference according to a second preset current interval to which the second current difference belongs;

[0115] Step S503: determining a first compensation input voltage of the charge pump according to the second compensation input voltage and the third compensation input voltage.

[0116] The first limit input current of the charge pump represents the maximum input current of the charge pump, a first current difference between the maximum input current of the charge pump and the preset input current of the charge pump is obtained, a first mapping relationship table between the current interval and the compensation input voltage is pre-stored in the memory of the terminal, the first preset current interval to which the first current difference belongs is determined, and the compensation input voltage corresponding to the first preset current interval is used as the second compensation input voltage of the charge pump. The second compensation input voltage can be compensated in sections, for example, when the second compensation input voltage is 100 millivolts, it is compensated in 5 times, that is, 20 millivolts are compensated each time.

[0117] The second limiting input current of the battery indicates the maximum input current of the battery, the initial input current of the battery is the input current before the system load of the terminal changes, the second current difference between the maximum input current of the battery and the initial input current of the battery is obtained, a second mapping relationship table between the current interval and the compensation input voltage is pre-stored in the memory of the terminal, the second preset current interval to which the second current difference belongs is determined, and the compensation input voltage corresponding to the second preset current interval is used as the third compensation input voltage of the charge pump. The second compensation input voltage can also be compensated in segments, for example, when the third compensation input voltage is 100 millivolts, it is compensated in 5 times, that is, 20 millivolts are compensated each time.

[0118] Table 1 First mapping relationship table

[0119] Current range (mA) Second compensation input voltage (mV) -200~0 -1×20 0~200 1×20 200~500 2×20 500~800 5×20

[0120] For example, Table 1 is a first mapping relationship table between the current interval and the second compensation input voltage. As shown in Table 1, the compensation input voltage corresponding to the current interval of -200 to 0 mA is -1×20 mV, the compensation input voltage corresponding to the current interval of 0 to 200 mA is 1×20 mV, the compensation input voltage corresponding to the current interval of 200 to 500 mA is 2×20 mV, and the compensation input voltage corresponding to the current interval of 500 to 800 mA is 5×20 mV.

[0121] Table 2 is a second mapping relationship table between current intervals and the third compensation input voltage. As shown in Table 2, the compensation input voltage corresponding to the current interval of -100 to 0 mA is -1×20 mV, the compensation input voltage corresponding to the current interval of 0 to 100 mA is 1×20 mV, the compensation input voltage corresponding to the current interval of 100 to 200 mA is 2×20 mV, and the compensation input voltage corresponding to the current interval of 200 to 500 mA is 5×20 mV.

[0122] Table 2 Second mapping relationship table

[0123] Current range (mA) Third compensation input voltage (mV) -100~0 -1×20 0~100 1×20 100~200 2×20 200~500 5×20

[0124] Among them, n×20 millivolts means that the initial input voltage of the charge pump is compensated n times, and each time the compensation is 20 millivolts. When the first current difference between the first limit input current of the charge pump and the preset input current of the charge pump is 250 milliamperes, according to the first mapping relationship table, it is known that the second compensation input voltage is 2×20 millivolts; when the second current difference between the maximum input current of the battery and the initial input current of the battery is 50 milliamperes, according to the second mapping relationship table, it is known that the third compensation input voltage is 1×20 millivolts.

[0125] After obtaining the second compensation input voltage and the third compensation input voltage, the first compensation input voltage of the charge pump is determined according to the second compensation input voltage and the third compensation input voltage. In order to ensure that the input current of the charge pump and the input current of the battery do not exceed the limit value, the smaller one of the second compensation input voltage and the third compensation input voltage is used as the first compensation input voltage. For example, when the second compensation input voltage is 2×20 millivolts and the third compensation input voltage is 1×20 millivolts, the third compensation input voltage is used as the first compensation input voltage.

[0126] In an exemplary embodiment, Figure 6 is a flow chart of a method for obtaining a second target input voltage of a charge pump according to an exemplary embodiment. Figure 6 As shown, the following steps are included:

[0127] Step S601, obtaining a fourth compensation input voltage of the charge pump based on the circuit impedance information of the battery of the terminal and the working mode of the charge pump, where the working mode of the charge pump is the ratio between the input voltage of the charge pump and the output voltage of the charge pump;

[0128] Step S602: taking the sum of the initial input voltage of the charge pump and the fourth compensation input voltage as the second target input voltage of the charge pump, and taking the second target input voltage as the adjusted input voltage of the charge pump of the terminal.

[0129] See also Figure 8 , since the output voltage of the charge pump satisfies the relationship: Vout = OCV + Ibatt × (ESR + R1 + Rcr), where Vout represents the output voltage of the charge pump, OCV represents the open circuit voltage of the battery, Ibatt represents the input current of the battery, ESR represents the internal resistance of the battery, R1 represents the impedance of the chemical material inside the battery, and Rcr represents the path impedance of the battery charging circuit, that is, including the open circuit voltage of the battery and the battery charging impedance voltage. The open circuit voltage of the battery is the input voltage of the battery. In order to ensure that the output voltage of the charge pump is the same as the open circuit voltage of the battery, it is necessary to compensate for the influence of the battery charging impedance on the open circuit voltage of the battery, that is, to compensate for the voltage generated by the battery charging impedance, that is, Ibatt × (ESR + R1 + Rcr). In order to compensate for the voltage generated by the battery charging impedance, the output voltage of the charge pump needs to be increased by Ibatt × (ESR + R1 + Rcr). The working mode of the charge pump is the ratio between the input voltage of the charge pump and the output voltage of the charge pump. The working mode of the charge pump is recorded as n:1, and the ratio between the input voltage and the output voltage of the charge pump is n:1. In order to increase the output voltage of the charge pump by Ibatt×(ESR+R1+Rcr), the input voltage of the charge pump needs to be compensated by n×Ibatt×(ESR+R1+Rcr), so the fourth compensation input voltage of the charge pump is n×Ibatt×(ESR+R1+Rcr). The sum of the initial input voltage of the charge pump and the fourth compensation input voltage is determined as the second target input voltage of the charge pump, and the second target input voltage is used as the input voltage of the adjusted charge pump.

[0130] It should be noted that the fourth compensation input voltage and the first compensation input voltage can compensate the input voltage of the charge pump separately or together.

[0131] In an exemplary embodiment, Figure 7 is a flow chart of a method for obtaining a target charging current according to an exemplary embodiment. Figure 7 As shown, the following steps are included:

[0132] Step S701, if the system load change value exceeds a preset threshold, obtain charging currents at multiple times, where the charging currents at multiple times include the charging current at the current time and the charging currents at historical times;

[0133] Step S702, determining a target charging current according to the charging currents at multiple moments and a pre-stored charging current mapping relationship, and using the target charging current as an input current of the charge pump of the adjusted terminal, wherein the charging current mapping relationship represents a mapping relationship between the charging currents at multiple moments and the target charging current.

[0134] The preset threshold is an empirical value and can be determined according to actual needs. The charging current represents the current output by the charge pump to the battery, that is, the input current of the battery. When the change value of the system load of the terminal exceeds the preset threshold, the current consumption of the terminal system will change, but the output current of the charge pump remains unchanged, so the input current of the battery will also change, resulting in a jump in the charging current. The charging current at the current moment is recorded as the charging current at time t, and the charging current at the historical moment can be determined according to actual needs, such as the charging current at time t-1 and the charging current at time t-2, or the charging current at time t-2 and the charging current at time t-4. The charging current mapping relationship represents the mapping relationship between the charging current at multiple moments and the target charging current, which can be a mapping relationship table or a functional relationship. In order to avoid the charging current from jumping, the charging current mapping relationship is a mapping relationship that can perform a smoothing effect when the charging current suddenly changes. The charging current mapping relationship is pre-stored in the memory of the terminal. After obtaining the charging current at multiple moments, the target charging current is obtained according to the charging current mapping relationship, and the target charging current is used as the input current of the adjusted charge pump.

[0135] In one example, the charging current mapping relationship is a third-order Bezier curve, and the target charging current is obtained by the following formula:

[0136] current=[current p0 *(10-bezier t ) 3 +3*current p1 * Bezier t (10-bezier t ) 2 +3*current p2 Bezier t 2 *(1-bezier t )+current p3 * Bezier t 3 ] / 1000

[0137] Among them, current represents the target charging current, current p0 、current p1 、current p2 、current p3 They represent the charging current at the current moment t, the charging current at t-1 (i.e., the moment before t), the charging current at t-2 (i.e., the moment before t-1), and the charging current at t-3 (i.e., the moment before t-2), respectively. Bezier t Represents the Bessel coefficient and satisfies Bezier t ∈[0,10]. The Bessel coefficients are empirical values.

[0138] In an exemplary embodiment of the present disclosure, a charging device is provided, which is applied to a charging process of a terminal whose screen is in a lit state, wherein the terminal is provided with a charge pump, and the charging device includes:

[0139] an adjustment module configured to obtain a compensation input current of the charge pump based on a first parameter and a second parameter of the terminal, wherein the first parameter is determined based on a working state of a device related to a user's sensory experience, and the second parameter is determined based on a load of an application program running in the terminal; and / or, obtain a first compensation input voltage of the charge pump based on a preset input current of the charge pump and an input current of a battery of the terminal;

[0140] Based on the compensation input current and / or the first compensation input voltage, an adjusted input parameter of the charge pump of the terminal is obtained to compensate for the impact of changes in the system load of the terminal on the input voltage of the charge pump, wherein the system load is determined based on the working state of the device related to the user sensory experience and the load of the application running in the terminal.

[0141] In an exemplary embodiment, the adjustment module is further configured to:

[0142] obtaining an adjusted target input current of the charge pump based on the compensated input current and the initial input current of the charge pump; and / or,

[0143] Obtaining a first target input voltage of the charge pump based on the first compensation input voltage and an initial input voltage of the charge pump;

[0144] The target input current and / or the first target input voltage are used as input parameters of the charge pump of the terminal after adjustment.

[0145] In an exemplary embodiment, the adjustment module is further configured to:

[0146] When adjusting the input parameter of the charge pump based on the compensation input current and the first compensation input voltage, the preset input current is the target input current;

[0147] or,

[0148] When the input voltage of the charge pump is adjusted based on the first compensation input voltage, the preset input current is an initial input current of the charge pump.

[0149] In an exemplary embodiment, the adjustment module is further configured to:

[0150] Acquire the first parameter, the second parameter, and a pre-stored initial compensation input current, wherein the initial compensation input current is determined based on a circuit structure characteristic of the charge pump;

[0151] The first parameter, the second parameter and the initial compensation input current are summed, and the obtained result is used as the compensation input current.

[0152] In an exemplary embodiment, the adjustment module is further configured to:

[0153] Acquire a first current difference between a first limit input current of the charge pump and a preset input current of the charge pump, and obtain a second compensation input voltage of the charge pump corresponding to the first current difference according to a first preset current interval to which the first current difference belongs;

[0154] Acquire a second current difference between a second limit input current of the battery and an initial input current of the battery, and acquire a third compensation input voltage of the charge pump corresponding to the second current difference according to a second preset current interval to which the second current difference belongs;

[0155] A first compensation input voltage of the charge pump is determined according to the second compensation input voltage and the third compensation input voltage.

[0156] In an exemplary embodiment, the adjustment module is further configured to:

[0157] The smaller one of the second compensation input voltage and the third compensation input voltage is used as the first compensation input voltage.

[0158] In an exemplary embodiment, the adjustment module is further configured to:

[0159] Obtaining a fourth compensation input voltage of the charge pump based on circuit impedance information of a battery of the terminal and an operating mode of the charge pump, wherein the operating mode of the charge pump is a ratio between an input voltage of the charge pump and an output voltage of the charge pump;

[0160] taking the sum of the initial input voltage of the charge pump and the fourth compensation input voltage as the second target input voltage of the charge pump;

[0161] The second target input voltage is used as the adjusted input voltage of the charge pump of the terminal.

[0162] In an exemplary embodiment, the adjustment module is further configured to:

[0163] If the system load change value exceeds a preset threshold, obtaining charging currents at multiple times, wherein the charging currents at multiple times include the charging current at the current time and the charging currents at historical times;

[0164] Determine a target charging current according to the charging currents at the multiple moments and a pre-stored charging current mapping relationship, wherein the charging current mapping relationship represents a mapping relationship between the charging currents at the multiple moments and the target charging current;

[0165] The target charging current is used as the adjusted input current of the charge pump of the terminal.

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

[0167] When the charging device is a terminal, Fig. 9 is a block diagram of a terminal 900 according to an exemplary embodiment.

[0168] Reference Fig. 9 The terminal 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0169] The processing component 902 generally controls the overall operation of the terminal 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

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

[0171] The power component 906 provides power to various components of the terminal 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal 900.

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

[0173] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the terminal 900 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0174] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0175] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the terminal 900. For example, the sensor assembly 914 can detect the open / closed state of the terminal 900, the relative positioning of the components, such as the display and keypad of the terminal 900, and the sensor assembly 914 can also detect the position change of the terminal 900 or a component of the terminal 900, the presence or absence of contact between the user and the terminal 900, the orientation or acceleration / deceleration of the terminal 900, and the temperature change of the terminal 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

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

[0177] In an exemplary embodiment, terminal 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0178] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of the terminal 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0179] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute a charging method, the method including any of the above-mentioned charging methods.

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

[0181] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A charging method, characterized in that: Applied to the charging process of a terminal with a screen in a lit state, the terminal is provided with a charge pump, and the charging method includes: Based on a first parameter and a second parameter of the terminal, a compensation input current of the charge pump is obtained, wherein the first parameter is determined based on a working state of a device related to a user's sensory experience, and the second parameter is determined based on a load of an application running in the terminal; and / or, based on a preset input current of the charge pump and an input current of a battery of the terminal, a first compensation input voltage of the charge pump is obtained; Based on the compensation input current and / or the first compensation input voltage, an adjusted input parameter of the charge pump of the terminal is obtained to compensate for the impact of changes in the system load of the terminal on the input voltage of the charge pump, wherein the system load is determined based on the working state of the device related to the user sensory experience and the load of the application running in the terminal.

2. The charging method according to claim 1, characterized in that: The step of obtaining an adjusted input parameter of a charge pump of the terminal based on the compensated input current and / or the first compensated input voltage includes: Obtaining a target input current of the charge pump based on the compensated input current and the initial input current of the charge pump; and / or obtaining a first target input voltage of the charge pump based on the first compensated input voltage and the initial input voltage of the charge pump; The target input current and / or the first target input voltage are used as input parameters of the charge pump of the terminal after adjustment.

3. The charging method according to claim 2, characterized in that: The method further comprises: When adjusting the input parameter of the charge pump based on the compensation input current and the first compensation input voltage, the preset input current is the target input current; or, When the input voltage of the charge pump is adjusted based on the first compensation input voltage, the preset input current is an initial input current of the charge pump.

4. The charging method according to claim 1, characterized in that: The obtaining of the compensation input current of the charge pump based on the first parameter and the second parameter of the terminal comprises: Acquire the first parameter, the second parameter, and a pre-stored initial compensation input current, wherein the initial compensation input current is determined based on a circuit structure characteristic of the charge pump; The first parameter, the second parameter and the initial compensation input current are summed, and the obtained result is used as the compensation input current.

5. The charging method according to claim 1, characterized in that: The obtaining a first compensation input voltage of the charge pump based on a preset input current of the charge pump and an input current of a battery of the terminal comprises: Acquire a first current difference between a first limit input current of the charge pump and a preset input current of the charge pump, and acquire a second compensation input voltage of the charge pump corresponding to the first current difference according to a first preset current interval to which the first current difference belongs; Acquire a second current difference between a second limit input current of the battery and an initial input current of the battery, and obtain a third compensation input voltage of the charge pump corresponding to the second current difference according to a second preset current interval to which the second current difference belongs; A first compensation input voltage of the charge pump is determined according to the second compensation input voltage and the third compensation input voltage.

6. The charging method according to claim 5, characterized in that: The step of determining the first compensation input voltage of the charge pump according to the second compensation input voltage and the third compensation input voltage comprises: The smaller one of the second compensation input voltage and the third compensation input voltage is used as the first compensation input voltage.

7. The charging method according to claim 1, characterized in that: The charging method further comprises: Obtaining a fourth compensation input voltage of the charge pump based on circuit impedance information of a battery of the terminal and an operating mode of the charge pump, wherein the operating mode of the charge pump is a ratio between an input voltage of the charge pump and an output voltage of the charge pump; taking the sum of the initial input voltage of the charge pump and the fourth compensation input voltage as the second target input voltage of the charge pump; The second target input voltage is used as the adjusted input voltage of the charge pump of the terminal.

8. The charging method according to claim 1, characterized in that: The charging method further comprises: If the system load change value exceeds a preset threshold, obtaining charging currents at multiple times, wherein the charging currents at multiple times include the charging current at the current time and the charging currents at historical times; Determining a target charging current according to the charging currents at the multiple moments and a pre-stored charging current mapping relationship, wherein the charging current mapping relationship represents a mapping relationship between the charging currents at the multiple moments and the target charging current; The target charging current is used as the adjusted input current of the charge pump of the terminal.

9. A charging device, characterized in that: Applicable to the charging process of a terminal with a screen in a lit state, the terminal is provided with a charge pump, and the charging device comprises: an adjustment module configured to obtain a compensation input current of the charge pump based on a first parameter and a second parameter of the terminal, wherein the first parameter is determined based on a working state of a device related to a user's sensory experience, and the second parameter is determined based on a load of an application program running in the terminal; and / or, obtain a first compensation input voltage of the charge pump based on a preset input current of the charge pump and an input current of a battery of the terminal; Based on the compensation input current and / or the first compensation input voltage, an adjusted input parameter of the charge pump of the terminal is obtained to compensate for the impact of changes in the system load of the terminal on the input voltage of the charge pump, wherein the system load is determined based on the working state of the device related to the user sensory experience and the load of the application running in the terminal.

10. A terminal, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the charging method as described in any one of claims 1-8.

11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the charging method according to any one of claims 1 to 8.