Charging control method and device, electronic equipment and storage medium

By adjusting the output current of the phone according to the output voltage, the problem that the current exceeds the threshold during reverse charging is solved, and the stability of the charging process and the improvement of user experience is achieved.

CN119171557APending Publication Date: 2024-12-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310730313.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-19
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

When the phone is charged in reverse, the current can easily exceed the maximum current threshold, resulting in discharging protection or restarting, affecting the user experience.

Method used

By obtaining the output voltage when the terminal charges the target device, determining the target current threshold, and adjusting the output current when the output current exceeds the threshold, ensuring the stability of the charging process.

Benefits of technology

It effectively avoids the problem of discharging protection and restart, improves the user experience, and ensures that the terminal performs reverse charging in the best state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119171557A_ABST
    Figure CN119171557A_ABST
Patent Text Reader

Abstract

The invention relates to a charging control method and device, electronic equipment and a storage medium, and relates to the technical field of charging, and the method comprises the steps: obtaining an output voltage and an output current when a terminal charges target equipment; determining a target current threshold value corresponding to the terminal according to the output voltage; when the output current is greater than or equal to the target current threshold, adjusting the output current of the terminal; and charging the target equipment according to the adjusted output current. In this way, the target current threshold value corresponding to the current terminal can be determined according to the output voltage when the terminal charges the target device. And the output current of the terminal is adjusted according to the target current threshold value, so that the terminal can charge the target equipment in the optimal working state, the problems of charging interruption and even restart or shutdown are avoided, and the use experience of a user is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of electronic information technology, mobile phones have become an indispensable device in people's daily lives. In order to meet the diverse needs of users, reverse charging technology has gradually developed, that is, when the mobile phone has sufficient power, users can charge other electronic devices through their mobile phones.

[0003] In order to protect the normal operation of the mobile phone, a maximum current threshold is set in the mobile phone system. When the reverse charging current exceeds the maximum current threshold, it will trigger the charging protection or even restart or shut down. In actual applications, the reverse charging current of the mobile phone is often set according to the maximum current threshold. As the charging environment changes (such as voltage changes), it is easy for the reverse charging current to exceed the maximum current threshold. At this time, the mobile phone is prone to charging protection or even restart or shut down, which seriously affects the user experience. Summary of the invention

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

[0005] According to a first aspect of an embodiment of the present disclosure, a charging control method is provided, the method comprising: obtaining an output voltage and an output current of a terminal when charging a target device; determining a target current threshold corresponding to the terminal based on the output voltage; adjusting the output current of the terminal when the output current is greater than or equal to the target current threshold; and charging the target device according to the adjusted output current.

[0006] Optionally, determining a target current threshold corresponding to the terminal according to the output voltage includes:

[0007] Determining a target voltage range corresponding to the output voltage from a plurality of voltage ranges;

[0008] Determine the target current threshold value corresponding to the target voltage range by presetting the voltage-current correspondence relationship;

[0009] The preset voltage-current correspondence relationship includes a correspondence relationship between a voltage range and a current value.

[0010] Optionally, the preset voltage-current correspondence relationship is predetermined in the following manner:

[0011] For each voltage range, determining a target voltage value from the voltage range;

[0012] Determining a current value corresponding to the voltage range according to the target voltage value;

[0013] The preset voltage-current correspondence relationship is obtained based on the multiple voltage ranges and the current value corresponding to each voltage range.

[0014] Optionally, determining the current value corresponding to the voltage range according to the target voltage value includes:

[0015] Determining the conduction time of the MOS transistor in the boost circuit of the terminal according to the target voltage value;

[0016] A current value corresponding to the voltage range is determined according to the target voltage value and the on-time.

[0017] Optionally, determining the on-time of a MOS transistor in a boost circuit of the terminal according to the target voltage value includes:

[0018] Determining a target duty cycle corresponding to the boost circuit according to the target voltage value;

[0019] The on-time is determined according to the target duty cycle.

[0020] Optionally, determining the on-time according to the target duty cycle includes:

[0021] determining a switching frequency of the boost circuit;

[0022] The on-time is determined according to the target duty cycle and the switching frequency.

[0023] Optionally, determining the current value corresponding to the voltage range according to the target voltage value and the on-time includes:

[0024] Determining a current amplitude corresponding to the boost circuit according to the target voltage value and the on-time;

[0025] The current value corresponding to the voltage range is determined according to the target voltage value and the current amplitude.

[0026] Optionally, determining the current value corresponding to the voltage range according to the target voltage value and the current amplitude includes:

[0027] Determining a preset maximum current limit corresponding to the terminal when charging the target device;

[0028] The current value corresponding to the voltage range is determined according to the target voltage value, the current amplitude and the preset maximum current limit.

[0029] Optionally, when the output current is greater than or equal to the target current threshold, adjusting the output current of the terminal includes: when the output current is greater than or equal to the target current threshold, reducing or maintaining the output current within a preset time period.

[0030] According to a second aspect of an embodiment of the present disclosure, a device for charging control is provided, the device comprising:

[0031] An acquisition module is configured to acquire an output voltage and an output current when the terminal charges a target device;

[0032] a determination module, configured to determine a target current threshold corresponding to the terminal according to the output voltage;

[0033] an adjustment module, configured to adjust the output current of the terminal when the output current is greater than or equal to the target current threshold;

[0034] The charging module is configured to charge the target device according to the adjusted output current.

[0035] Optionally, the determination module is configured to determine a target voltage range corresponding to the output voltage from a plurality of voltage ranges; and determine the target current threshold corresponding to the target voltage range by means of a preset voltage-current correspondence relationship; wherein the preset voltage-current correspondence relationship includes a correspondence relationship between a voltage range and a current value.

[0036] Optionally, the preset voltage-current correspondence relationship is predetermined in the following manner:

[0037] For each voltage range, determining a target voltage value from the voltage range;

[0038] Determining a current value corresponding to the voltage range according to the target voltage value;

[0039] The preset voltage-current correspondence relationship is obtained based on the multiple voltage ranges and the current value corresponding to each voltage range.

[0040] Optionally, determining the current value corresponding to the voltage range according to the target voltage value includes:

[0041] Determining the conduction time of the MOS transistor in the boost circuit of the terminal according to the target voltage value;

[0042] A current value corresponding to the voltage range is determined according to the target voltage value and the on-time.

[0043] Optionally, determining the on-time of a MOS transistor in a boost circuit of the terminal according to the target voltage value includes:

[0044] Determining a target duty cycle corresponding to the boost circuit according to the target voltage value;

[0045] The on-time is determined according to the target duty cycle.

[0046] Optionally, determining the on-time according to the target duty cycle includes:

[0047] determining a switching frequency of the boost circuit;

[0048] The on-time is determined according to the target duty cycle and the switching frequency.

[0049] Optionally, determining the current value corresponding to the voltage range according to the target voltage value and the on-time includes:

[0050] Determining a current amplitude corresponding to the boost circuit according to the target voltage value and the on-time;

[0051] The current value corresponding to the voltage range is determined according to the target voltage value and the current amplitude.

[0052] Optionally, determining the current value corresponding to the voltage range according to the target voltage value and the current amplitude includes:

[0053] Determining a preset maximum current limit corresponding to the terminal when charging the target device;

[0054] The current value corresponding to the voltage range is determined according to the target voltage value, the current amplitude and the preset maximum current limit.

[0055] Optionally, the adjustment module is configured to reduce or maintain the output current within a preset time period when the output current is greater than or equal to the target current threshold.

[0056] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement the steps of the charging control method provided in the first aspect of the present disclosure when calling the executable instructions stored on the memory.

[0057] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the charging control method provided in the first aspect of the present disclosure are implemented.

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

[0059] Obtain the output voltage and output current of the terminal when charging the target device, determine the target current threshold corresponding to the terminal according to the output voltage, and when the output current is greater than or equal to the target current threshold, adjust the output current of the terminal, and charge the target device according to the adjusted output current. Through the above method, the maximum current limit corresponding to the current terminal, that is, the target current threshold, can be determined according to the output voltage of the terminal when charging the target device. And according to the target current threshold, adjust the output current of the terminal so that the output voltage of the terminal is adapted to the output current, ensuring that the terminal can charge the target device in the best working state. In addition, since the output current of the terminal is adjusted in time, the problem of disconnection of charging or even restart or shutdown is avoided, which greatly improves the user experience.

[0060] 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

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

[0062] Figure 1 The figure is a flow chart showing a charging control method according to an exemplary embodiment.

[0063] Figure 2 is a flow chart showing another charging control method according to an exemplary embodiment.

[0064] Figure 3 It is a block diagram of a charging control device according to an exemplary embodiment.

[0065] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0066] 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 disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0067] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0068] The terms "first", "second", etc. in the specification and claims of this application and the above drawings are used to distinguish similar objects and do not have to be understood as a specific order or sequence. In addition, in the description with reference to the drawings, the same symbols in different drawings represent the same elements.

[0069] In the description of the present disclosure, unless otherwise specified, "multiple" means two or more than two, and other quantifiers are similar thereto; "at least one item", "one item or multiple items" or similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one item a can represent any number of a; for another example, one item or multiple items among a, b and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple; "and / or" is a kind of description of the association relationship of associated objects, indicating that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " indicates that the associated objects before and after are in an "or" relationship.

[0070] The specific implementation modes of the present invention are described in detail below with reference to the accompanying drawings.

[0071] Figure 1 is a flow chart of a charging control method according to an exemplary embodiment, which can be applied to a terminal, such as but not limited to a mobile terminal such as a smart phone, a tablet computer, a smart TV, a smart watch, etc., or a smart home device such as a sweeping robot, an air purifier, a speaker, a robot, etc. Specifically, Figure 1 As shown, the method may include the following steps.

[0072] In step S101, the output voltage and output current of the terminal when charging the target device are obtained.

[0073] For example, the terminal may charge the target device by, for example but not limited to, wireless charging, that is, the target device and the terminal are charged by induction.

[0074] In some scenarios, in order to protect the normal operation of the terminal as much as possible, most terminals are equipped with abnormal protection, that is, if over-temperature, over-voltage, over-current, etc. occur during reverse charging, the charging protection will be triggered, and sometimes even restart or shutdown will occur. For users, if the above phenomena occur during use, it will greatly affect the user experience.

[0075] In some methods, the voltage of the terminal during the reverse charging process is often limited to a certain range (for example, 5V to 10V. In the initial stage of reverse charging, the terminal generally operates according to an output voltage of 5V. As time changes, the system will boost the output voltage according to actual needs, and the maximum does not exceed the limited 10V), and the reverse charging current is often set according to the maximum current threshold (for example, 1A). Based on this setting method, in actual applications, as the voltage changes, the reverse charging current may exceed the maximum current threshold. At this time, the charging protection will be triggered and even restart or shutdown actions will occur, which will bring a bad user experience. Therefore, in this embodiment, the output current can be adjusted in real time according to the output voltage to avoid the above-mentioned abnormal phenomenon in the terminal, ensure the stable operation of the terminal, and thus improve the user experience.

[0076] In step S102, a target current threshold corresponding to the terminal is determined according to the output voltage.

[0077] During the reverse charging process, since the output voltage is constantly changing, the maximum current that matches the output voltage, that is, the target current threshold, can be determined based on the current output voltage, thereby ensuring that the terminal will not trigger charging disconnection protection or even restart or shutdown, and can continue to work relatively stably.

[0078] In step S103, when the output current is greater than or equal to the target current threshold, the output current of the terminal is adjusted.

[0079] In this step, when the output current is greater than or equal to the target current threshold, the output current is reduced or maintained within a preset time period, wherein the preset time period may be, for example, 100 ms, or other time periods, and may be set according to actual needs, and the present disclosure does not specifically limit this.

[0080] When reducing the output current, it can be reduced according to a pre-set current value. For example, the current can be reduced by 0.1A each time so that the output current does not exceed the target current threshold, thereby avoiding the terminal triggering charging disconnection protection or even restarting or shutting down, thereby ensuring the normal operation of the terminal.

[0081] In addition, when the output current is less than the target current threshold, it indicates that the probability of abnormality occurring in the current terminal is low. In this case, no adjustment is required and the terminal can continue to work according to the current output current.

[0082] In step S104, the target device is charged according to the adjusted output current.

[0083] In this way, by timely adjusting the output current and charging the target device according to the adjusted output current, the terminal can be guaranteed to work stably. At the same time, different current thresholds can be limited under different voltage conditions, thereby achieving flexible and accurate grading control of the output current, so that the terminal can perform reverse charging in the best state.

[0084] Through the above method, the maximum current limit corresponding to the current terminal, that is, the target current threshold, can be determined according to the output voltage of the terminal when charging the target device. And according to the target current threshold, the output current of the terminal is adjusted so that the output voltage of the terminal is adapted to the output current, ensuring that the terminal can charge the target device in the best working state. In addition, since the output current of the terminal is adjusted in time, the problem of disconnection of charging or even restart or shutdown is avoided, which greatly improves the user experience.

[0085] The following specifically describes how to determine the target current threshold corresponding to the terminal according to the output voltage in the above step S102.

[0086] Figure 2 is a flow chart showing another charging control method according to an exemplary embodiment. Figure 2 As shown, the above step S102 may include the following steps:

[0087] In step S1021, a target voltage range corresponding to the output voltage is determined from a plurality of voltage ranges.

[0088] The multiple voltage ranges may be predetermined and set corresponding to the voltage variation range of the terminal reverse charging. For example, if the terminal sets the voltage variation range to 5V to 10V during reverse charging, the range of 5V to 10V may be divided to obtain multiple voltage ranges.

[0089] If the output voltage is within a certain voltage range among the multiple voltage ranges, then the voltage range is the target voltage range corresponding to the output voltage.

[0090] In step S1022, the target current threshold corresponding to the target voltage range is determined by a preset voltage-current correspondence relationship.

[0091] The preset voltage-current correspondence relationship includes a correspondence relationship between a voltage range and a current value.

[0092] In some embodiments, the preset voltage-current correspondence relationship can be predetermined by the following steps:

[0093] S1 , for each voltage range, determining a target voltage value from the voltage range.

[0094] For example, the maximum value in each voltage range may be used as the target voltage value, or the middle value in each voltage range may be used as the target voltage value, or other implementation methods may be used, which are not specifically limited in the present disclosure.

[0095] S2, determining a current value corresponding to the voltage range according to the target voltage value.

[0096] Specifically, the following steps may be included:

[0097] S21, determining the conduction time of the MOS transistor in the boost circuit of the terminal according to the target voltage value.

[0098] Through the above analysis, it can be known that in the process of charging the target device, the terminal often outputs according to the set voltage value in the initial stage, but as the actual demand changes, the system will automatically perform a boost operation. In this embodiment, the voltage can be boosted by a boost circuit (BOOST) to increase the output voltage of the terminal to meet the needs of different scenarios. In this step, the target voltage value can be regarded as the output voltage of the boost circuit in this scenario. At this time, the on-time of the MOS transistor in the boost circuit can be determined first, so as to further determine the target current corresponding to the target voltage value based on the on-time and the target voltage value, and the target current can be used as the current value corresponding to the voltage range.

[0099] In one embodiment, the on-time can be determined by first determining a target duty cycle D corresponding to the boost circuit in the terminal according to the target voltage value.

[0100] For example, the target duty cycle D can be determined by the following formula (1):

[0101] D=1-V in / V out (1)

[0102] Where D is the target duty cycle, V in Indicates the input voltage (rated value) of the boost circuit, V out Indicates the output voltage of the boost circuit (i.e., the target voltage value).

[0103] Then, the on-time can be determined according to the target duty cycle. Specifically, the switching frequency f of the boost circuit can be determined first. sw , and determine the on-time according to the target duty cycle and the switching frequency. For example, the target duty cycle D and the switching frequency f sw ratio, as the conduction time T on .

[0104] For example, the on-time T can be determined by the following formula (2):on :

[0105] T on =D / f sw (2)

[0106] Among them, T on represents the on-time, D represents the target duty cycle, f sw Indicates the switching frequency (rated value).

[0107] S22, determining a current value corresponding to a voltage range according to the target voltage value and the on-time.

[0108] In some embodiments, first, the current amplitude ΔI corresponding to the boost circuit may be determined according to the target voltage value and the on-time.

[0109] For example, the current amplitude ΔI can be determined by the following formula (3):

[0110] ΔI=T on (V out -V in ) / L ind (3)

[0111] Where ΔI represents the current amplitude, T on Indicates the on-time, V in Indicates the input voltage (rated value) of the boost circuit, V out Indicates the output voltage of the boost circuit (i.e., the target voltage value), L ind Indicates the inductance value (rated value) of the boost circuit.

[0112] Then, the current value corresponding to the voltage range may be determined according to the target voltage value and the current amplitude.

[0113] Specifically, the preset maximum current limit corresponding to the terminal when charging the target device can be determined first. Among them, the preset maximum current limit can be determined according to the maximum current threshold preset by the terminal for triggering the charging disconnection protection or even restarting or shutting down. For example, the maximum current threshold can be directly used as the preset maximum current limit, and it can also be multiplied by a certain coefficient on the basis of the maximum current threshold as the preset maximum current limit. For example, if the maximum current threshold is a, in order to avoid the current floating that may exceed the maximum current threshold, a 10% margin can be reserved, and the preset maximum current limit can be set to 90% a. Afterwards, the current value corresponding to the voltage range can be determined based on the target voltage value, the current amplitude and the preset maximum current limit.

[0114] It is understandable that in actual scenarios, as the output voltage changes, the output current will also fluctuate to a certain extent. Therefore, in this step, the current peak value I in the boost circuit can be determined first. peak For example, the current peak value I can be determined by the following formula (4): peak :

[0115] I peak =ΔI / 2+I out *V out / V in / E ff (4)

[0116] Among them, I peak represents the current peak value, ΔI represents the current amplitude, I out Indicates the output current (i.e. the voltage range corresponding to the current value), V in Indicates the input voltage (rated value) of the boost circuit, V out represents the output voltage of the boost circuit (i.e., the target voltage value), E ff Indicates the operating efficiency (rated value) of the PMIC (full name: Power Management IC; Chinese: Power Management IC) in the terminal.

[0117] It can be understood that as long as the current peak value in the boost circuit is less than the preset maximum current limit, it can be ensured that the terminal will not trigger the charging protection or even restart or shut down. Therefore, according to formula (1), formula (2), formula (3) and formula (4), it can be deduced that I peak As long as the following formula (5) is satisfied, the stable operation of the terminal can be ensured:

[0118]

[0119] Among them, V in Indicates the input voltage (rated value) of the boost circuit, V out represents the output voltage of the boost circuit (i.e., the target voltage value), I out Indicates the output current (i.e. the voltage range corresponding to the current value), E ff represents the working efficiency of PMIC in the terminal, f sw Indicates the switching frequency (rated value), L ind Indicates the inductance value (rated value) of the boost circuit, I inoc Indicates the preset maximum current limit.

[0120] According to the above formula (5), the voltage range corresponding to the current value I can be obtained out For example, I inoc 0.9a, V in b, Eff is c, L ind is d, f sw Taking 3.2MHz as an example, substituting the above parameters into the above formula (5), making the expressions on both sides of the formula (5) equal, the following expression (6) can be obtained:

[0121]

[0122] Among them, I out Indicates the output current (i.e. the voltage range corresponding to the current value), V out represents the target voltage value of the boost circuit, where k1, k2 and k3 are all constants.

[0123] S3, obtaining the preset voltage-current correspondence relationship based on the multiple voltage ranges and the current value corresponding to each voltage range.

[0124] Through formula (6), the target current corresponding to different target voltage values ​​(that is, the current value corresponding to the voltage range) can be obtained, and then the preset voltage-current correspondence relationship can be obtained according to multiple voltage ranges and the current value corresponding to each voltage range. Therefore, in practical applications, the output current in different scenarios can be used to determine the target current threshold of the current terminal through the voltage-current correspondence relationship, and the output current of the current terminal during the reverse charging process can be limited accordingly, thereby ensuring the safe and stable operation of the terminal during the reverse charging process.

[0125] For ease of understanding, the following table shows a possible corresponding relationship between the target voltage value and the current as an example.

[0126] Vout Iout 8.8V XO 7.5V X1 A 7.0V X2 A 6.6V X3 A 6.0V X4A 5.0V X5A

[0127] As can be seen from the above table, the table shows the current corresponding to the target voltage value in the range of 5.0V to 8.8V. In one possible implementation, the first column in the table can be used as the maximum or minimum value corresponding to each voltage range in the preset voltage-current correspondence. For example, when the output voltage is less than or equal to 5.0V, it can be determined that the target current threshold corresponding to the output voltage is X5A, that is, at this time, the output current needs to be controlled not to exceed X5 A. When the output voltage is greater than 5.0V and less than or equal to 6.0V, it can be determined that the target current threshold corresponding to the output voltage is X4A. When the output voltage is greater than 6.0V and less than or equal to 6.6V, it can be determined that the target current threshold corresponding to the output voltage is X3A. When the output voltage is greater than 6.6V and less than or equal to 7.0V, it can be determined that the target current threshold corresponding to the output voltage is X2 A. When the output voltage is greater than 7.0V and less than or equal to 7.5V, it can be determined that the target current threshold corresponding to the output voltage is X1A. When the output voltage is greater than 7.5V and less than or equal to 8.8V, it can be determined that the target current threshold corresponding to the output voltage is X0A.

[0128] In summary, in different scenarios, the output voltage of the terminal may be different, and the corresponding target current threshold is also different. In this embodiment, the output current can be adjusted flexibly and accurately according to the output voltage in the actual scenario to avoid the terminal triggering the charging protection or even restarting or shutting down, thereby improving the user experience.

[0129] Through the above method, the maximum current limit corresponding to the current terminal, that is, the target current threshold, can be determined according to the output voltage of the terminal when charging the target device. And according to the target current threshold, the output current of the terminal is adjusted so that the output voltage of the terminal is adapted to the output current, ensuring that the terminal can charge the target device in the best working state. In addition, since the output current of the terminal is adjusted in time, the problem of disconnection of charging or even restart or shutdown is avoided, which greatly improves the user experience.

[0130] Figure 3 is a block diagram of a charging control device according to an exemplary embodiment, which is applied to a terminal, such as Figure 3 As shown, the device 200 includes:

[0131] An acquisition module 201 is configured to acquire an output voltage and an output current when the terminal charges a target device;

[0132] A determination module 202 is configured to determine a target current threshold corresponding to the terminal according to the output voltage;

[0133] An adjustment module 203 is configured to adjust the output current of the terminal when the output current is greater than or equal to the target current threshold;

[0134] The charging module 204 is configured to charge the target device according to the adjusted output current.

[0135] Optionally, the determination module 202 is configured to determine a target voltage range corresponding to the output voltage from a plurality of voltage ranges; and determine a target current threshold corresponding to the target voltage range through a preset voltage-current correspondence relationship; wherein the preset voltage-current correspondence relationship includes a correspondence between a voltage range and a current value.

[0136] Optionally, the preset voltage-current correspondence relationship is predetermined in the following manner:

[0137] For each voltage range, determining a target voltage value from the voltage range;

[0138] According to the target voltage value, determining the current value corresponding to the voltage range;

[0139] The preset voltage-current correspondence relationship is obtained based on the multiple voltage ranges and the current value corresponding to each voltage range.

[0140] Optionally, determining the current value corresponding to the voltage range according to the target voltage value includes:

[0141] Determining the conduction time of the MOS transistor in the boost circuit of the terminal according to the target voltage value;

[0142] According to the target voltage value and the on-time, a current value corresponding to the voltage range is determined.

[0143] Optionally, determining the on-time of a MOS transistor in a boost circuit of the terminal according to the target voltage value includes:

[0144] Determining a target duty cycle corresponding to the boost circuit according to the target voltage value;

[0145] The on-time is determined according to the target duty cycle.

[0146] Optionally, determining the on-time according to the target duty cycle includes:

[0147] Determining a switching frequency of the boost circuit;

[0148] The on-time is determined according to the target duty cycle and the switching frequency.

[0149] Optionally, determining the current value corresponding to the voltage range according to the target voltage value and the on-time includes:

[0150] Determining a current amplitude corresponding to the boost circuit according to the target voltage value and the on-time;

[0151] The current value corresponding to the voltage range is determined according to the target voltage value and the current amplitude.

[0152] Optionally, determining the current value corresponding to the voltage range according to the target voltage value and the current amplitude includes:

[0153] Determining a preset maximum current limit corresponding to the terminal when charging the target device;

[0154] The current value corresponding to the voltage range is determined according to the target voltage value, the current amplitude and the preset maximum current limit value.

[0155] Optionally, the adjustment module 203 is configured to reduce or maintain the output current within a preset time period when the output current is greater than or equal to the target current threshold.

[0156] Through the above device, the maximum current limit corresponding to the current terminal, that is, the target current threshold, can be determined according to the output voltage of the terminal when charging the target device. And according to the target current threshold, the output current of the terminal is adjusted so that the output voltage of the terminal is adapted to the output current, ensuring that the terminal can charge the target device in the best working state. In addition, since the output current of the terminal is adjusted in time, the problem of disconnection of charging or even restart or shutdown is avoided, which greatly improves the user experience.

[0157] 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.

[0158] Although operations or steps are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood that it is required to perform these operations or steps in the specific order shown or in a serial order, or to perform all the operations or steps shown to obtain the desired results. In the embodiments of the present disclosure, these operations or steps can be performed in series; these operations or steps can also be performed in parallel; or some of these operations or steps can be performed.

[0159] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the charging control method provided by the present disclosure are implemented.

[0160] Figure 43 is a block diagram of an electronic device 300 according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0161] Reference Figure 4 , the electronic device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output interface 312 , a sensor component 314 , and a communication component 316 .

[0162] The processing component 302 generally controls the overall operation of the electronic device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned charging control method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.

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

[0164] The power supply component 306 provides power to the various components of the electronic device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 300.

[0165] The multimedia component 308 includes a screen that provides an output interface between the electronic device 300 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 308 includes a front camera and / or a rear camera. When the electronic device 300 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 rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0166] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the electronic device 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.

[0167] The input / output interface 312 provides an interface between the processing component 302 and the peripheral interface modules, which may be 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.

[0168] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the electronic device 300. For example, the sensor assembly 314 can detect the open / closed state of the electronic device 300, the relative positioning of components, such as the display and keypad of the electronic device 300, and the sensor assembly 314 can also detect the position change of the electronic device 300 or a component of the electronic device 300, the presence or absence of user contact with the electronic device 300, the orientation or acceleration / deceleration of the electronic device 300, and the temperature change of the electronic device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 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 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0169] The communication component 316 is configured to facilitate wired or wireless communication between the electronic device 300 and other devices. The electronic device 300 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 316 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 316 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.

[0170] In an exemplary embodiment, the electronic device 300 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-mentioned charging control method.

[0171] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by a processor 320 of an electronic device 300 to complete the above-mentioned charging control 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.

[0172] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned charging control method when executed by the programmable device.

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

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

Claims

1. A charging control method, characterized in that: The method comprises: Obtain the output voltage and output current of the terminal when charging the target device; Determining a target current threshold corresponding to the terminal according to the output voltage; When the output current is greater than or equal to the target current threshold, adjusting the output current of the terminal; The target device is charged according to the adjusted output current.

2. The method according to claim 1, characterized in that: The determining, according to the output voltage, a target current threshold corresponding to the terminal comprises: Determining a target voltage range corresponding to the output voltage from a plurality of voltage ranges; Determine the target current threshold value corresponding to the target voltage range by presetting the voltage-current correspondence relationship; The preset voltage-current correspondence relationship includes a correspondence relationship between a voltage range and a current value.

3. The method according to claim 2, characterized in that The preset voltage-current correspondence relationship is predetermined by: For each voltage range, determining a target voltage value from the voltage range; Determining a current value corresponding to the voltage range according to the target voltage value; The preset voltage-current correspondence relationship is obtained based on the multiple voltage ranges and the current value corresponding to each voltage range.

4. The method according to claim 3, characterized in that The determining, according to the target voltage value, a current value corresponding to the voltage range comprises: Determining the conduction time of the MOS transistor in the boost circuit of the terminal according to the target voltage value; A current value corresponding to the voltage range is determined according to the target voltage value and the on-time.

5. The method according to claim 4, characterized in that Determining the conduction time of the MOS transistor in the boost circuit of the terminal according to the target voltage value includes: Determining a target duty cycle corresponding to the boost circuit according to the target voltage value; The on-time is determined according to the target duty cycle.

6. The method according to claim 5, characterized in that Determining the on-time according to the target duty cycle includes: determining a switching frequency of the boost circuit; The on-time is determined according to the target duty cycle and the switching frequency.

7. The method according to claim 4, characterized in that The determining, according to the target voltage value and the on-time, a current value corresponding to the voltage range comprises: Determining a current amplitude corresponding to the boost circuit according to the target voltage value and the on-time; The current value corresponding to the voltage range is determined according to the target voltage value and the current amplitude.

8. The method according to claim 7, characterized in that The determining, according to the target voltage value and the current amplitude, the current value corresponding to the voltage range comprises: Determining a preset maximum current limit corresponding to the terminal when charging the target device; The current value corresponding to the voltage range is determined according to the target voltage value, the current amplitude and the preset maximum current limit.

9. The method according to any one of claims 1 to 8, characterized in that When the output current is greater than or equal to the target current threshold, adjusting the output current of the terminal includes: When the output current is greater than or equal to the target current threshold, the output current is reduced or maintained within a preset time period.

10. A charging control device, characterized in that: The device comprises: An acquisition module is configured to acquire an output voltage and an output current when the terminal charges a target device; a determination module, configured to determine a target current threshold corresponding to the terminal according to the output voltage; an adjustment module, configured to adjust the output current of the terminal when the output current is greater than or equal to the target current threshold; The charging module is configured to charge the target device according to the adjusted output current.

11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method described in any one of claims 1 to 9 when calling the executable instructions stored in the memory.

12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.