Charging method and device, electronic equipment and storage medium

By dynamically adjusting the charging parameters, the low-voltage fast charging needs are preferred according to the temperature and residual power of the electronic device, which solves the problems of the electronic device's heating and charging efficiency when charging, and achieves an efficient and safe charging process.

CN119448469APending Publication Date: 2025-02-14BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310981936.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-04
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Electronic devices heat up when charging, especially when running high-power applications, resulting in increased temperature rise, which in turn shortens battery life and increases charging time. Although the existing current limiting strategy can reduce heat generation, it will sacrifice charging efficiency and cannot meet users' fast charging needs.

Method used

By dynamically adjusting the charging parameters, the low-voltage fast charging needs are preferred according to the temperature and residual power of the electronic device, and the charging parameters are dynamically adjusted according to the temperature and power during the charging process to balance the fast charging and temperature rise control.

Benefits of technology

It improves charging efficiency, reduces the shutdown of equipment due to the charging volume being less than the consumption, extends battery life, and does not require an external charging device, which is low-cost and convenient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119448469A_ABST
    Figure CN119448469A_ABST
Patent Text Reader

Abstract

The invention relates to a charging method and device, electronic equipment and a storage medium. The method comprises the steps that the temperature of the electronic equipment and the remaining electric quantity of the electronic equipment are acquired; determining whether the current running application of the electronic equipment causes the power consumption of the electronic equipment to be greater than a preset power consumption threshold value or not; under the condition that the power consumption of the electronic equipment is greater than the preset power consumption threshold value due to the currently running application, dynamically adjusting a charging parameter of the electronic equipment in response to the condition that the temperature of the electronic equipment is greater than a first preset temperature threshold value and the residual electric quantity is smaller than a first preset electric quantity threshold value; wherein the charging parameter adjusted for the first time is larger than the charging parameter adjusted after the first time. Through the method, low-electric-quantity fast charging and temperature rise of the electronic equipment can be balanced.
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 and device, an electronic device, and a storage medium. Background Art

[0002] At present, electronic devices including mobile phones, tablets, wearable devices, etc. usually support charging functions. When charging electronic devices, the battery will cause heating. While charging, if the electronic devices run high-power applications, the temperature rise of the electronic devices will be aggravated. In order to make electronic devices thinner and lighter, their heat dissipation systems are limited by the design volume, resulting in unsatisfactory heat dissipation effects, sometimes even to the point of being hot when charging. If the battery is operated under high temperature and high pressure for a long time, the battery life will be greatly shortened, and the battery will swell and expand.

[0003] In response to the problem of heating up electronic devices when charging, a thermal level current limiting strategy is usually used to reduce the charging current when the electronic device is seriously heated. However, the current limiting strategy will reduce the charging efficiency of the electronic device and it is difficult to meet the user's fast charging needs. Summary of the invention

[0004] The present invention provides a charging method and device, an electronic device, and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a charging method, which is applied to an electronic device, and includes:

[0006] Acquiring the temperature of the electronic device and the remaining power of the electronic device;

[0007] Determining whether an application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold;

[0008] In a case where a currently running application causes the power consumption of the electronic device to be greater than the preset power consumption threshold, in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, the charging parameters of the electronic device are dynamically adjusted; wherein the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time.

[0009] In some embodiments, in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, dynamically adjusting the charging parameters of the electronic device includes:

[0010] In response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, the charging parameters of the electronic device are dynamically adjusted according to the temperature of the electronic device and / or the remaining power.

[0011] In some embodiments, dynamically adjusting the charging parameters of the electronic device according to the temperature of the electronic device and / or the remaining power includes:

[0012] In response to the remaining power being less than the first preset power threshold, determining a charging parameter to be adjusted for the first time according to the temperature of the electronic device;

[0013] During charging with the charging parameters adjusted for the first time, in response to the remaining power of the electronic device being greater than a second preset power threshold, the charging parameters adjusted after the first time are determined according to the temperature of the electronic device; wherein the second preset power threshold is greater than the first preset power threshold.

[0014] In some embodiments, in response to the remaining power being less than the first preset power threshold, determining the charging parameter to be adjusted for the first time according to the temperature of the electronic device includes:

[0015] Determining a cooling requirement level of the electronic device according to the temperature of the electronic device; wherein the cooling requirement level is positively correlated with the temperature;

[0016] In response to the remaining power being less than the first preset power threshold, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted for the first time according to a preset first charging parameter relationship; wherein the first charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter.

[0017] In some embodiments, in response to the remaining power of the electronic device being greater than a second preset power threshold, determining the charging parameter to be adjusted after the first time according to the temperature of the electronic device includes:

[0018] In response to the remaining power of the electronic device being greater than the second preset power threshold, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted after the first time according to a preset second charging parameter relationship; wherein the second charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter; and the charging parameter corresponding to any cooling requirement level in the first charging parameter relationship is greater than the charging parameter corresponding to any cooling requirement level in the second charging parameter relationship.

[0019] In some embodiments, in the first charging parameter relationship and / or the second charging parameter relationship, the cooling requirement level is negatively correlated with the charging parameter.

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

[0021] Acquire a first frequency within a first historical time range in which the electronic device runs an application and causes the power consumption of the electronic device to be greater than the preset power consumption threshold;

[0022] and / or,

[0023] Acquire a second frequency at which the temperature of the electronic device exceeds the preset temperature threshold within a second historical time range;

[0024] In response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, dynamically adjusting the charging parameters of the electronic device includes:

[0025] When the first frequency is greater than a first preset frequency threshold, and / or the second frequency is greater than a second preset frequency threshold, in response to the temperature of the electronic device being greater than the first preset temperature threshold, and the remaining power being less than the first preset power threshold, the charging parameters of the electronic device are dynamically adjusted.

[0026] In some embodiments, determining whether the application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold includes:

[0027] Determine whether the application currently running on the electronic device is a preset application; wherein the power consumption of running the preset application is greater than the preset power consumption threshold.

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

[0029] In response to the remaining power of the electronic device being greater than or equal to the first preset power threshold, the electronic device is charged with preset charging parameters; wherein the preset charging parameters are less than the charging parameters adjusted for the first time.

[0030] According to a second aspect of an embodiment of the present disclosure, there is provided a charging device, which is applied to an electronic device, and includes:

[0031] A first acquisition module, used to acquire the temperature of the electronic device and the remaining power of the electronic device;

[0032] A determination module, used to determine whether an application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold;

[0033] An adjustment module is used to dynamically adjust the charging parameters of the electronic device in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold when a currently running application causes the power consumption of the electronic device to be greater than the preset power consumption threshold; wherein the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time.

[0034] In some embodiments, the adjustment module is used to dynamically adjust the charging parameters of the electronic device according to the temperature of the electronic device and / or the remaining power in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold.

[0035] In some embodiments, the adjustment module is used to determine the charging parameters adjusted for the first time according to the temperature of the electronic device in response to the remaining power being less than the first preset power threshold; during charging with the charging parameters adjusted for the first time, in response to the remaining power of the electronic device being greater than a second preset power threshold, determine the charging parameters adjusted after the first time according to the temperature of the electronic device; wherein the second preset power threshold is greater than the first preset power threshold.

[0036] In some embodiments, the adjustment module is used to determine the cooling requirement level of the electronic device according to the temperature of the electronic device; wherein the cooling requirement level is positively correlated with the temperature; in response to the remaining power being less than the first preset power threshold, according to a preset first charging parameter relationship, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted for the first time; wherein the first charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter.

[0037] In some embodiments, the adjustment module is used to determine the charging parameter corresponding to the cooling requirement level as the charging parameter adjusted after the first time according to a preset second charging parameter relationship in response to the remaining power of the electronic device being greater than the second preset power threshold; wherein the second charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter; and the charging parameter corresponding to any cooling requirement level in the first charging parameter relationship is greater than the charging parameter corresponding to any cooling requirement level in the second charging parameter relationship.

[0038] In some embodiments, in the first charging parameter relationship and / or the second charging parameter relationship, the cooling requirement level is negatively correlated with the charging parameter.

[0039] In some embodiments, the apparatus further comprises:

[0040] A second acquisition module is used to acquire a first frequency within a first historical time range in which the power consumption of the electronic device is greater than the preset power consumption threshold due to the running of the application by the electronic device;

[0041] and / or,

[0042] A third acquisition module, used to acquire a second frequency at which the temperature of the electronic device exceeds the preset temperature threshold within a second historical time range;

[0043] The adjustment module is used to dynamically adjust the charging parameters of the electronic device in response to the temperature of the electronic device being greater than the first preset temperature threshold and the remaining power being less than the first preset power threshold when the first frequency is greater than a first preset frequency threshold and / or the second frequency is greater than a second preset frequency threshold.

[0044] In some embodiments, the determination module is used to determine whether the application currently running on the electronic device is a preset application; wherein the power consumption of running the preset application is greater than the preset power consumption threshold.

[0045] In some embodiments, the apparatus further comprises:

[0046] A charging module is used to charge the electronic device with preset charging parameters in response to the remaining power of the electronic device being greater than or equal to the first preset power threshold; wherein the preset charging parameters are less than the charging parameters adjusted for the first time.

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

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

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

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

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

[0052] On the one hand, when the application currently running on the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold, the battery power consumption and the temperature rise of the electronic device will be aggravated; in the process of running the application causing the electronic device to consume a large amount of power, if the temperature of the electronic device is greater than the first preset temperature threshold, and the remaining power is less than the first preset power threshold, it indicates that the electronic device urgently needs to be quickly charged, so that it is charged with a higher charging parameter adjusted for the first time; compared with the thermal current limiting strategy, charging with a lower charging current when the temperature of the electronic device is high leads to low charging efficiency. The embodiment of the present disclosure can give priority to meeting the demand for fast charging with low power, improve charging efficiency, and reduce the situation where the electronic device is shut down due to the charging amount being less than the consumption. On the other hand, as the charging proceeds, the remaining power of the electronic device is increased, so that the electronic device is adjusted to charge with a lower charging parameter adjusted after the first time, which can effectively slow down the temperature rise of the electronic device. Through the charging scheme provided by the embodiment of the present disclosure, the low power fast charging demand of the electronic device and the slowing down of the temperature rise of the electronic device can be balanced when running a high power consumption application. In addition, the scheme does not require the use of an additional external charging device, and has the advantages of low charging cost and convenient charging.

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

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

[0055] Figure 1 This is an example diagram of a mobile phone charging scenario in the related art.

[0056] Figure 2 This is an example of a charging method process provided by the embodiment of the present disclosure Figure 1 .

[0057] Figure 3 This is an example of a charging method process provided by the embodiment of the present disclosure Figure 2 .

[0058] Figure 4 is a diagram of a charging device shown in an embodiment of the present disclosure.

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

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

[0061] Figure 1 This is an example diagram of a mobile phone charging scene in the related art. Figure 1 It is known that, including:

[0062] S101, continuous high power consumption operation;

[0063] In the disclosed embodiment, the mobile phone continuously runs high power consumption applications, including Figure 1 Applications 1 to 9 are shown, such as video applications, game applications, navigation applications, etc.

[0064] S102, mobile phone heating;

[0065] S103, high power consumption;

[0066] S104, power consumption is decreasing rapidly;

[0067] S105, mobile phone battery is less than 5%;

[0068] In the disclosed embodiment, when the mobile phone continuously runs a high-power application, the mobile phone heats up more severely, and due to the large power consumption generated by the running of the application, the mobile phone battery consumes a large amount of power and the power drops quickly until the battery of the mobile phone is less than 5%.

[0069] S106, start charging;

[0070] In the disclosed embodiment, in response to the battery level of the mobile phone being lower than 5%, the user will usually start charging the mobile phone, including wired charging and wireless charging.

[0071] S107, mobile phone heating;

[0072] In the disclosed embodiment, since the mobile phone is charged while continuously running high-power consumption applications, the heating of the mobile phone is further aggravated, and at this time the cooling demand level of the mobile phone is relatively high.

[0073] S108, limiting charging current;

[0074] In the disclosed embodiment, in order to slow down the temperature rise of the mobile phone, the charging current is limited based on a thermal level current limiting strategy, so that the mobile phone is charged with a lower charging current. The thermal level current limiting strategy includes a corresponding relationship between the cooling requirement level and the charging current. The higher the cooling requirement level, the lower the corresponding charging current. The cooling requirement level is positively correlated with the temperature of the electronic device.

[0075] S109, power consumption is decreasing rapidly;

[0076] In the disclosed embodiment, since the mobile phone consumes a lot of power when running high-power applications, the amount of power charged to the mobile phone with a lower charging current is small, causing the battery power of the mobile phone to continue to decrease while charging.

[0077] S110, the phone shuts down due to low battery.

[0078] In the disclosed embodiment, as the battery power continues to decrease, the mobile phone will eventually shut down automatically due to low power.

[0079] The above thermal level current limiting strategy has the following problems:

[0080] (1) When the mobile phone is running a high-power application and the battery level is very low (e.g., less than 5%), it is urgent to recharge the phone. Since the temperature of the phone is high at this time, the cooling requirement is high, resulting in a very small charging current, which basically makes it impossible to charge. There is even a risk of low battery shutdown, resulting in a poor user experience.

[0081] (2) According to the thermal level current limiting strategy, the battery temperature rise is slowed down at the expense of charging speed, which greatly affects the charging efficiency.

[0082] (3) The thermal level current limiting strategy cannot meet the needs of low-power rapid charging when the mobile phone is running high-power applications.

[0083] In a related technology, an external charger with heat dissipation function, such as a power bank, a mobile phone charging case, etc., is used to achieve fast charging and slow down temperature rise based on heat conduction, heat convection, etc. However, the above solution requires users to purchase an external charger, which is costly and inconvenient to carry.

[0084] In this regard, an embodiment of the present disclosure provides a charging method, the execution subject of which may be an electronic device that can run applications, such as a user equipment (UE), a mobile device, a user terminal, a mobile phone, a tablet computer, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the charging method may be implemented by a processor in an electronic device calling a computer-readable instruction stored in a memory.

[0085] Figure 2 This is an example of a charging method process provided by the embodiment of the present disclosure Figure 1 , used in electronic equipment, by Figure 2 It can be seen that the following steps are included:

[0086] S201, obtaining the temperature of the electronic device and the remaining power of the electronic device;

[0087] S202, determining whether the application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold;

[0088] S203. When a currently running application causes the power consumption of the electronic device to be greater than the preset power consumption threshold, in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, dynamically adjusting a charging parameter of the electronic device; wherein the charging parameter adjusted for the first time is greater than the charging parameter adjusted after the first time.

[0089] In step S201, the electronic device can obtain the temperature of the electronic device based on a temperature sensor, wherein the temperature of the electronic device can be the temperature of a battery in the electronic device, the temperature of a processor, the housing temperature of the electronic device, etc.; in addition, the temperature of the electronic device can also be the temperature of the environment in which the electronic device is located, which is not limited in the present disclosure.

[0090] The disclosed embodiment can also obtain the remaining power of the electronic device by calling methods such as getBatteryStatusInfo and onBatteryInfoReceiver in the Android system architecture.

[0091] In step S202, it is determined whether the application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold, wherein the running application may be an application running in the foreground or an application running in the background. In some embodiments, the electronic device determines the number of applications currently running, and when the number of applications currently running on the electronic device is greater than a preset number threshold, it is determined that the application currently running on the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold.

[0092] In some embodiments, it is determined whether the application currently running on the electronic device is a preset application, wherein the power consumption of running the preset application is greater than a preset power consumption threshold; and in the case where the application currently running on the electronic device is the preset application, it is determined that the application currently running on the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold.

[0093] In the embodiment of the present disclosure, the power consumption generated when running a preset application is greater than a preset power consumption threshold, that is, the preset application is a high power consumption application, such as a game application, a video playback application, a navigation application, etc. The preset application may be one or more. Through this solution, the convenience of determining whether the application currently running on the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold can be improved.

[0094] In step S203, when the application currently running on the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold, in response to the temperature of the electronic device being greater than the first preset temperature threshold and the remaining power being less than the first preset power threshold, it is characterized that the electronic device urgently needs to be quickly charged, and the charging parameters of the electronic device are dynamically adjusted, wherein the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time; thus, at the beginning of charging, charging is performed with the higher charging parameters adjusted for the first time to achieve fast charging; and when charging is performed for a preset time with the higher charging parameters, or when the remaining power of the electronic device is greater than or equal to the first preset power threshold as charging proceeds, charging is performed with the lower charging parameters adjusted after the first time to slow down the temperature rise of the electronic device. Among them, the charging parameters include charging current, charging voltage, charging power, etc.

[0095] In the embodiment of the present disclosure, the higher charging parameter for the first adjustment and the lower charging parameter for the first and subsequent adjustments may be preset fixed values; or they may be based on a preset application charging parameter relationship, determining the charging parameter corresponding to the application currently running on the electronic device, and using the higher charging parameter corresponding to the application as the charging parameter for the first adjustment, and the lower charging parameter as the charging parameter for the first and subsequent adjustments; wherein the application charging parameter relationship includes a mapping between the application and at least two different charging parameters.

[0096] It should be noted that the charging parameter adjusted after the first time can be one or more, that is, after charging with the charging parameter adjusted for the first time, the charging parameter can be adjusted multiple times. If there are multiple charging parameters adjusted after the first time, after charging with the charging parameter adjusted for the first time, charging can be performed in sequence with the charging parameters adjusted after the first time based on a preset time interval; wherein, the charging order of the multiple charging parameters adjusted after the first time can be a random order, or can be based on the order from large to small of the charging parameters adjusted after the first time, etc., and the present disclosure does not limit this.

[0097] It can be understood that, on the one hand, when the application currently running on the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold, the battery power consumption and the temperature rise of the electronic device will be aggravated; in the process of running the application causing the electronic device to consume a large amount of power, if the temperature of the electronic device is greater than the first preset temperature threshold, and the remaining power is less than the first preset power threshold, it indicates that the electronic device urgently needs to be quickly charged, so that it is charged with a higher charging parameter adjusted for the first time; compared with the thermal current limiting strategy, charging with a lower charging current when the temperature of the electronic device is high leads to low charging efficiency. The embodiment of the present disclosure can give priority to meeting the demand for fast charging of low power, improve charging efficiency, and reduce the situation where the electronic device is shut down due to the charging amount being less than the consumption. On the other hand, as the charging proceeds, the remaining power of the electronic device is increased, so that the electronic device is adjusted to charge with a lower charging parameter adjusted after the first time, which can effectively slow down the temperature rise of the electronic device. Through the charging scheme provided by the embodiment of the present disclosure, the low power fast charging demand of the electronic device and the slowing down of the temperature rise of the electronic device can be balanced when running a high power consumption application. In addition, the scheme does not require the use of an additional external charging device, and has the advantages of low charging cost and convenient charging.

[0098] In some embodiments, in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, dynamically adjusting the charging parameters of the electronic device includes:

[0099] In response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, the charging parameters of the electronic device are dynamically adjusted according to the temperature of the electronic device and / or the remaining power.

[0100] In an embodiment of the present disclosure, when an application currently running on an electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold, if the temperature of the electronic device is greater than a first preset temperature threshold and the remaining power is less than a first preset power threshold, in some embodiments, the electronic device determines the charging parameters to be adjusted for the first time based on a correspondence between a preset temperature and a charging parameter, a correspondence between a preset remaining power and a charging parameter, or a correspondence between a preset temperature, a remaining power, and a charging parameter; and as charging is performed with the charging parameters adjusted for the first time, the temperature and / or remaining power of the electronic device is detected, and the charging parameters are determined based on the aforementioned correspondence to determine the charging parameters to be adjusted after the first time.

[0101] In some embodiments, the electronic device may also process the temperature and / or remaining power of the electronic device based on a preset function to obtain the charging parameters adjusted for the first time; and as charging is performed with the charging parameters adjusted for the first time, the temperature and / or remaining power of the electronic device is detected, and the charging parameters are determined based on the aforementioned preset function to determine the charging parameters to be adjusted after the first time.

[0102] In some embodiments, the electronic device may also process the inputted remaining power and / or the temperature of the electronic device based on a preset charging parameter model, and output the charging parameters adjusted for the first time; and as the charging is performed with the charging parameters adjusted for the first time, the temperature and / or remaining power of the electronic device is detected, and the charging parameters are determined based on the aforementioned charging parameter model to determine the charging parameters to be adjusted after the first time. The charging parameter model may be trained based on a deep learning network, for example, the charging parameter model is obtained after training and adjusting the parameters of networks such as convolutional neural networks (CNN) and deep learning networks (DNN) based on training sample data and label values, wherein the label value is the preset charging parameter.

[0103] It is understandable that the temperature and remaining power of the electronic device are highly correlated with the charging demand. For example, when the remaining power is very low, there is a greater demand for fast charging; when the temperature of the electronic device is very high, there is a greater demand for slowing down the temperature rise. In this regard, in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, the embodiment of the present disclosure dynamically adjusts the charging parameters of the electronic device according to the temperature and / or remaining power of the electronic device, which can improve the accuracy of the adjusted charging parameters (including the charging parameters adjusted for the first time and the charging parameters adjusted after the first time) and better meet the charging needs of the electronic device.

[0104] In some embodiments, dynamically adjusting the charging parameters of the electronic device according to the temperature of the electronic device and / or the remaining power includes:

[0105] In response to the remaining power being less than the first preset power threshold, determining a charging parameter to be adjusted for the first time according to the temperature of the electronic device;

[0106] During charging with the charging parameters adjusted for the first time, in response to the remaining power of the electronic device being greater than a second preset power threshold, the charging parameters adjusted after the first time are determined according to the temperature of the electronic device; wherein the second preset power threshold is greater than the first preset power threshold.

[0107] In an embodiment of the present disclosure, when an application currently running on an electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold, in response to the remaining power of the electronic device being less than a first preset power threshold, based on the preset correspondence between temperature and charging parameters, preset functions, charging parameter models, etc., the charging parameters to be adjusted for the first time are determined according to the temperature of the electronic device, and charging is performed with the charging parameters to be adjusted for the first time.

[0108] During the charging process with a larger first-adjusted charging parameter, the remaining power of the electronic device is increased, so that when the remaining power of the electronic device is greater than the second preset power threshold, the charging parameters adjusted after the first time are determined according to the current temperature of the electronic device based on the corresponding relationship between the temperature and the charging parameter, the preset function, the charging parameter model, etc. as described above; wherein the second preset power threshold is greater than the first preset power threshold, exemplarily, the first preset power threshold is 5%, and the second preset power threshold is 40%.

[0109] It is understandable that when the remaining power of the electronic device is very low (lower than the first preset power threshold), in order to reduce the situation where the electronic device automatically shuts down due to low charging efficiency with smaller charging parameters, the disclosed embodiment combines the temperature of the electronic device and performs fast charging with a larger first-adjusted charging parameter; and in the process of fast charging with a larger charging parameter, the temperature of the electronic device continues to rise. In response to the large remaining power of the electronic device (greater than the second preset power threshold), the demand for slowing down the temperature rise is higher at this time, so the electronic device combines the temperature and charges with a lower charging parameter adjusted after the first time. Through this solution, the accuracy of balancing low-power fast charging and slowing down temperature rise can be further improved, thereby improving user experience.

[0110] In some embodiments, in response to the remaining power being less than the first preset power threshold, determining the charging parameter to be adjusted for the first time according to the temperature of the electronic device includes:

[0111] Determining a cooling requirement level of the electronic device according to the temperature of the electronic device; wherein the cooling requirement level is positively correlated with the temperature;

[0112] In response to the remaining power being less than the first preset power threshold, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted for the first time according to a preset first charging parameter relationship; wherein the first charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter.

[0113] In the disclosed embodiment, the cooling requirement level of the electronic device is determined according to the temperature of the electronic device; for example, according to the correspondence between the preset temperature range and the level, the level corresponding to the temperature range within which the temperature of the electronic device falls is determined as the cooling requirement level; or based on the preset level function, the temperature of the electronic device is processed to obtain the cooling requirement level. The cooling requirement level is positively correlated with the temperature of the electronic device.

[0114] After determining the cooling requirement level of the electronic device, in response to the remaining power of the electronic device being less than a first preset power threshold, the charging parameter corresponding to the cooling requirement level in the preset first charging parameter relationship is determined as the charging parameter to be adjusted for the first time; wherein the first charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter.

[0115] It should be noted that the charging parameter value in the first charging parameter relationship cannot be too large and must be verified by experiments so that when charging with the charging parameter value, the heating temperature of the electronic device does not exceed the preset heating threshold; illustratively, the preset heating threshold is a temperature value that is 4 degrees higher than the normal body temperature of the human body (such as 41 degrees).

[0116] It can be understood that since the higher the temperature of the electronic device, the higher the corresponding cooling requirement level, the embodiment of the present disclosure quantifies the degree of cooling requirement of the electronic device through the cooling requirement level, and then based on the first charging parameter relationship, determines the first adjusted charging parameters that match the cooling requirement level, which helps to improve the rationality of charging with the first adjusted charging parameters.

[0117] In some embodiments, in response to the remaining power of the electronic device being greater than a second preset power threshold, determining the charging parameter to be adjusted after the first time according to the temperature of the electronic device includes:

[0118] In response to the remaining power of the electronic device being greater than the second preset power threshold, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted after the first time according to a preset second charging parameter relationship; wherein the second charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter; and the charging parameter corresponding to any cooling requirement level in the first charging parameter relationship is greater than the charging parameter corresponding to any cooling requirement level in the second charging parameter relationship.

[0119] In an embodiment of the present disclosure, after determining the cooling requirement level of the electronic device, during charging with the charging parameters adjusted for the first time, in response to the remaining power of the electronic device being greater than a second preset power threshold, the charging parameters corresponding to the cooling requirement level in the preset second charging parameter relationship are determined as the charging parameters adjusted after the first time, and charging is performed with the charging parameters adjusted after the first time.

[0120] Among them, compared with the aforementioned first charging parameter relationship, the charging parameter corresponding to any cooling requirement level in the second charging parameter relationship is smaller than the charging parameter corresponding to the same cooling requirement level in the first charging parameter relationship. That is to say, for the same cooling requirement level, the charging parameter determined based on the first charging parameter relationship is greater than the charging parameter determined based on the second charging parameter relationship.

[0121] It can be understood that in the embodiment of the present disclosure, when the remaining power of the electronic device is greater than the second preset power threshold, the charging parameters adjusted after the first time corresponding to the cooling requirement level are determined based on the preset second charging parameter relationship, and for the same cooling requirement level, the charging parameters adjusted for the first time determined based on the first charging parameter relationship are greater than the charging parameters adjusted for the first time determined based on the second charging parameter relationship. Therefore, the charging parameters can be determined by switching between the first charging parameter relationship and the second charging parameter relationship based on the judgment result of whether the remaining power of the electronic device is greater than the second preset power threshold, thereby improving the convenience of determining the charging parameters on the basis of achieving that the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time.

[0122] In some embodiments, in the first charging parameter relationship and / or the second charging parameter relationship, the cooling requirement level is negatively correlated with the charging parameter.

[0123] In the embodiment of the present disclosure, the cooling requirement level in the first charging parameter relationship is negatively correlated with the charging parameter, which can be represented by the following array (1):

[0124] [22000, 16000, 12000, 9000, 8000, 7000, 6000, 5000, 4000, 3500, 3000, 2400, 2000, 1500, 1000, 500]; (1)

[0126] Among them, the serial numbers of each digital sequence correspond to the cooling requirement level, and the size of the number represents the charging current size, the unit is milliampere (mA).

[0127] In the second charging parameter relationship of the embodiment of the present disclosure, the cooling requirement level is negatively correlated with the charging parameter, and the charging parameter corresponding to any cooling requirement level in the first charging parameter relationship is greater than the charging parameter corresponding to the same cooling requirement level in the second charging parameter relationship; wherein the second charging parameter relationship can be represented by the following array (2):

[0128] [22000, 22000, 20000, 16000, 12000, 9000, 8000, 7000, 6000, 5000, 4000, 3500, 3000, 2400, 2000, 500]; (2)

[0130] The numbers in the digital sequence correspond to the cooling requirement level, and the number indicates the charging current in mA. The charging current corresponding to the minimum cooling requirement level (such as 22000mA) is limited by the rated charging voltage, and the charging current corresponding to the maximum cooling requirement level (such as 500mA) is limited by the minimum charging current requirement of the battery.

[0131] It is understandable that in order to protect the battery life, when the temperature of the electronic device is high, it is usually necessary to charge the battery with lower charging parameters. Since the temperature of the electronic device is positively correlated with the cooling requirement level, in the first charging parameter relationship and / or the second charging parameter relationship of the embodiment of the present disclosure, the cooling requirement level is negatively correlated with the charging parameter, which helps to slow down the charging temperature rise of the electronic device and extend the battery life.

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

[0133] Acquire a first frequency within a first historical time range in which the electronic device runs an application and causes the power consumption of the electronic device to be greater than the preset power consumption threshold;

[0134] and / or,

[0135] Acquire a second frequency at which the temperature of the electronic device exceeds the preset temperature threshold within a second historical time range;

[0136] In response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, dynamically adjusting the charging parameters of the electronic device includes:

[0137] When the first frequency is greater than a first preset frequency threshold, and / or the second frequency is greater than a second preset frequency threshold, in response to the temperature of the electronic device being greater than the first preset temperature threshold, and the remaining power being less than the first preset power threshold, the charging parameters of the electronic device are dynamically adjusted.

[0138] In an embodiment of the present disclosure, an electronic device obtains a first frequency in which the electronic device runs an application within a first historical time range, causing the power consumption of the electronic device to be greater than a preset power consumption threshold, including obtaining the first frequency in which the electronic device runs a preset application within the first historical time range, such as obtaining the number of times the electronic device runs a game application, a video application, a navigation application, etc. within a week; it may also include the first frequency in which the number of applications simultaneously run by the electronic device within the first historical time range exceeds a preset number threshold, etc.

[0139] And / or, the electronic device obtains a second frequency at which the temperature of the electronic device exceeds a preset temperature threshold within a second historical time range, for example, obtaining the number of days in a week when the temperature of the electronic device exceeds 43 degrees; wherein the second historical time range may be the same as or different from the first historical time range.

[0140] After acquiring the first frequency and the second frequency, the disclosed embodiment, when the first frequency is greater than the first preset frequency threshold, and / or the second frequency is greater than the second preset frequency threshold, indicates that the user often uses the electronic device when it is in a high temperature state and / or often uses the electronic device to run high power consumption applications. Based on the user's usage habits, when the temperature of the electronic device is greater than the first preset temperature threshold, and the remaining power is less than the first preset power threshold, the charging parameters of the electronic device are dynamically adjusted, and charging is performed according to the dynamically adjusted charging parameters.

[0141] It can be understood that the first frequency at which the power consumption of the electronic device is greater than the preset power consumption threshold due to the running of the application by the electronic device within the first historical time range is greater than the first preset frequency threshold, and / or the second frequency at which the temperature of the electronic device exceeds the preset temperature threshold within the second historical time range is greater than the second preset frequency threshold, indicating that the user often uses the electronic device when it is in a high temperature state, and / or there is a high probability that the user often uses the electronic device to run high power consumption applications / runs more applications at the same time, for example, the user often continues to use game applications while the mobile phone is heating up. In this regard, based on the usage habits of such users using the electronic device, in response to the temperature of the electronic device being greater than the first preset temperature threshold, and the remaining power being less than the first preset power threshold, the charging parameters of the electronic device are dynamically adjusted to improve the necessity of balancing the temperature rise of the electronic device and fast charging of low power.

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

[0143] In response to the remaining power of the electronic device being greater than or equal to the first preset power threshold, the electronic device is charged with preset charging parameters; wherein the preset charging parameters are less than the charging parameters adjusted for the first time.

[0144] In an embodiment of the present disclosure, at the initial stage of charging, if the remaining power of the electronic device is greater than or equal to a first preset power threshold, charging is performed with a preset charging parameter that is less than the charging parameter adjusted for the first time; wherein the preset charging parameter may be a preset fixed value, or may be a charging parameter determined based on the second charging parameter relationship as described above, which is not described in detail here.

[0145] It can be understood that in the embodiment of the present disclosure, when the remaining power of the electronic device is greater than or equal to the first preset power threshold, it indicates that the demand for fast charging of the electronic device is relatively small at this time. Taking into account the temperature rise of the electronic device, charging is performed with preset charging parameters that are less than the charging parameters adjusted for the first time, thereby reducing the temperature rise of the electronic device and improving the user experience of using the electronic device while charging.

[0146] Figure 3 This is an example of a charging method process provided by the embodiment of the present disclosure Figure 2 , used in mobile phones, by Figure 3 It can be seen that the following steps are included:

[0147] S301, start the system_server process;

[0148] In the disclosed embodiment, after the mobile phone is turned on, the system_server process in the service layer of the system (such as the Android system) is started, and then a ServerThread thread is created to obtain the application running on the mobile phone.

[0149] S302, start management service;

[0150] In the embodiment of the present disclosure, after the ServerThread thread is created, a preset management service, such as the ActivityManagerService (AMS) service, is started; wherein the AMS service is used to monitor the switching of applications.

[0151] S303, monitoring the process switching of the application layer;

[0152] In the disclosed embodiment, based on the started management service, the process switching of the application running in the application layer is monitored, and the user's usage habits of using the mobile phone are learned.

[0153] S304: Is a high-power gaming application running? If yes, execute step S305; if no, execute step S303;

[0154] In the disclosed embodiment, the high-power gaming application corresponds to the aforementioned preset application, wherein the power consumption of running the preset application is greater than the preset power consumption threshold; the disclosed embodiment determines whether the running application is a high-power gaming application based on the application currently running at the application layer monitored by the management service, corresponding to the aforementioned determination of whether the application currently running at the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold. If the running application is a high-power gaming application, execute step S305; otherwise, continue to monitor the process switching at the application layer.

[0155] S305, set top_game_settings to 1;

[0156] In the embodiment of the present disclosure, when the application currently running on the mobile phone is a high-power consumption game application, top_game_settings in the service layer is set to 1.

[0157] S306, Framework layer reads top_game_settings and stores it;

[0158] In the embodiment of the present disclosure, top_game_settings is read and stored through the system Framework layer; wherein top_game_settings is 1.

[0159] S307, determine whether the number of times top_game_settings changes to 1 in a week is greater than or equal to 4; if so, execute step S308; if not, execute step S309;

[0160] In the disclosed embodiment, it is determined whether the number of times that top_game_settings changes to 1 in a week is greater than or equal to 4, corresponding to whether the first frequency of the electronic device running the application within the first historical time range causing the power consumption of the electronic device to be greater than the preset power consumption threshold is greater than the first preset frequency threshold. If so, step S308 is executed; if not, step S309 is executed.

[0161] S308, set is_top_game_full to 1;

[0162] In an embodiment of the present disclosure, if the number of times top_game_settings changes to 1 within a week is greater than or equal to 4, is_top_game_full is set to 1; wherein is_top_game_full represents the frequency with which the user uses the mobile phone to run high-power gaming applications, corresponding to the aforementioned usage habits.

[0163] S309, set is_top_game_full to 0;

[0164] In the disclosed embodiment, if the number of times that top_game_settings becomes 1 is less than 4 within a week, is_top_game_full is set to 0.

[0165] S310, Framework layer reads the battery temperature and stores it;

[0166] In the embodiment of the present disclosure, the battery temperature corresponds to the temperature of the aforementioned electronic device; the embodiment of the present disclosure reads and stores the battery temperature through the Framework layer.

[0167] S311, determine whether the number of days in a week when the battery temperature of the mobile phone exceeds 43 degrees is greater than or equal to 5; if so, execute step S312; if not, execute step S313;

[0168] In the disclosed embodiment, it is determined whether the number of days in a week when the battery temperature of the mobile phone exceeds 43 degrees is greater than or equal to 5, and whether the second frequency of the temperature of the electronic device exceeding the preset temperature threshold within the aforementioned second historical time range is greater than or equal to the second preset frequency threshold. If so, step S312 is executed; if not, step S313 is executed.

[0169] S312, set is_tbat_full to 1;

[0170] In the disclosed embodiment, when the number of days in a week when the battery temperature of the mobile phone exceeds 43 degrees is greater than or equal to 5, is_tbat_full is set to 1; wherein is_tbat_full represents the frequency with which the user's use of the mobile phone causes high heat, corresponding to the aforementioned usage habits.

[0171] S313, set is_tbat_full to 0;

[0172] In the disclosed embodiment, when the number of days in a week when the battery temperature of the mobile phone exceeds 43 degrees is less than 5, is_tbat_full is set to 0.

[0173] S314, determine whether is_tbat_full is 1; if so, execute step S315; if not, execute step S316;

[0174] In the disclosed embodiment, it is determined whether is_tbat_full is 1, where is_tbat_full is 1, indicating that the number of days in a week when the battery temperature of the mobile phone exceeds 43 degrees is greater than or equal to 5; if is_tbat_full is 1, step S315 is executed; if is_tbat_full is 0, step S316 is executed.

[0175] S315, set top_game to 1;

[0176] In the embodiment of the present disclosure, when is_tbat_full and is_top_game_full are both 1, corresponding to the aforementioned first frequency being greater than the first preset frequency threshold, and the second frequency being greater than the second preset frequency threshold, top_game is set to 1 at this time, indicating that the user's usage habits include a high frequency of using high-power gaming applications when the phone is hot.

[0177] S316, set top_game to 0;

[0178] In the embodiment of the present disclosure, when is_tbat_full is not 1, top_game is set to 0.

[0179] S317, Kernel layer reads top_game;

[0180] In the disclosed embodiment, top_game is read through the Kernel layer.

[0181] S318, determine whether top_game is 1; if so, execute step S319; if not, execute step S322;

[0182] In the disclosed embodiment, it is determined whether top_game is 1; if so, step S319 is executed; if not, step S322 is executed to charge based on the charging parameters determined by the second charging parameter relationship.

[0183] S319, determine if the battery power is less than 5%; if so, execute step S320; if not, execute step S322;

[0184] In the disclosed embodiment, the user plugs the mobile phone into a charger, and when top_game is 1, obtains the remaining power of the mobile phone, and determines whether the remaining power of the mobile phone is less than or equal to 5%, corresponding to whether the remaining power of the aforementioned electronic device is less than the first preset power threshold; if so, execute step S320; if not, execute step S322.

[0185] S320, determine if the battery temperature is >= 37 degrees; if so, execute step S321; if not, execute step S322;

[0186] In the embodiment of the present disclosure, when top_game is 1, the temperature of the mobile phone is obtained, and it is determined whether the temperature of the mobile phone is greater than or equal to 37 degrees, corresponding to whether the temperature of the aforementioned electronic device is greater than the first preset temperature threshold; if so, step S321 is executed; if not, step S322 is executed;

[0187] S321, select a low-power fast-charge current meter;

[0188] In the disclosed embodiment, the low-power fast-charge current table corresponds to the aforementioned first charging parameter relationship. In the disclosed embodiment, when top_game is 1, the battery power is <= 5%, and the battery temperature is >= 37 degrees, the low-power fast-charge current table is selected, corresponding to the aforementioned situation where the application currently running on the electronic device causes the power consumption of the electronic device to be greater than the preset power consumption threshold, in response to the temperature of the electronic device being greater than the first preset temperature threshold, and the remaining power being less than the first preset power threshold, according to the preset first charging parameter relationship, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted for the first time, and cyclic charging is performed; wherein the cooling requirement level is determined according to the temperature of the electronic device.

[0189] S322, select the original ammeter;

[0190] In the disclosed embodiment, the original ammeter corresponds to the aforementioned second charging parameter relationship. The disclosed embodiment is charged based on the charging parameters determined by the original ammeter when any of the following conditions are met: top_game is not 1, the battery power is greater than 5%, the battery temperature is less than 37 degrees, and the battery power after cyclic charging is less than 40%; corresponding to the aforementioned response to the remaining power of the electronic device being greater than or equal to the first preset power threshold, the electronic device is charged with the preset charging parameters, wherein the charging parameter corresponding to any cooling requirement level in the first charging parameter relationship is greater than the charging parameter corresponding to any cooling requirement level in the second charging parameter relationship.

[0191] S323, determine if the battery power is greater than or equal to 40%; if so, execute step S322; if not, execute step 321.

[0192] In the disclosed embodiment, as charging proceeds, it is determined whether the battery power is greater than or equal to 40%, corresponding to the aforementioned process of charging with the charging parameters adjusted for the first time, determining whether the remaining power of the electronic device is greater than the second preset power threshold. If the battery power is greater than or equal to 40%, step S322 is executed to select charging with the charging parameters determined based on the original ammeter, corresponding to the aforementioned process of charging with the charging parameters adjusted for the first time, in response to the remaining power of the electronic device being greater than the second preset power threshold, according to the preset second charging parameter relationship, the charging parameters corresponding to the cooling demand level are determined as the charging parameters adjusted after the first time, so as to slow down the temperature rise of the battery; wherein the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time.

[0193] If the battery power is less than 40%, execute step S321, select the low-power fast charging current table, and continue charging based on the charging parameters determined by the first charging parameter relationship to achieve fast charging.

[0194] Figure 4 is a diagram of a charging device shown in an embodiment of the present disclosure, which is applied to an electronic device. Figure 4It is known that, including:

[0195] A first acquisition module 401 is used to acquire the temperature of the electronic device and the remaining power of the electronic device;

[0196] The determination module 402 is used to determine whether the application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold;

[0197] The adjustment module 403 is used to dynamically adjust the charging parameters of the electronic device in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold when a currently running application causes the power consumption of the electronic device to be greater than the preset power consumption threshold; wherein the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time.

[0198] In some embodiments, the adjustment module 403 is used to dynamically adjust the charging parameters of the electronic device according to the temperature of the electronic device and / or the remaining power in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold.

[0199] In some embodiments, the adjustment module 403 is used to determine the charging parameters adjusted for the first time according to the temperature of the electronic device in response to the remaining power being less than the first preset power threshold; during charging with the charging parameters adjusted for the first time, in response to the remaining power of the electronic device being greater than a second preset power threshold, determine the charging parameters adjusted after the first time according to the temperature of the electronic device; wherein the second preset power threshold is greater than the first preset power threshold.

[0200] In some embodiments, the adjustment module 403 is used to determine the cooling requirement level of the electronic device according to the temperature of the electronic device; wherein the cooling requirement level is positively correlated with the temperature; in response to the remaining power being less than the first preset power threshold, according to a preset first charging parameter relationship, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted for the first time; wherein the first charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter.

[0201] In some embodiments, the adjustment module 403 is used to determine the charging parameter corresponding to the cooling requirement level as the charging parameter adjusted after the first time according to a preset second charging parameter relationship in response to the remaining power of the electronic device being greater than the second preset power threshold; wherein the second charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter; and the charging parameter corresponding to any cooling requirement level in the first charging parameter relationship is greater than the charging parameter corresponding to any cooling requirement level in the second charging parameter relationship.

[0202] In some embodiments, in the first charging parameter relationship and / or the second charging parameter relationship, the cooling requirement level is negatively correlated with the charging parameter.

[0203] In some embodiments, the apparatus further comprises:

[0204] The second acquisition module 404 is used to acquire a first frequency within a first historical time range in which the power consumption of the electronic device is greater than the preset power consumption threshold due to the running of the application by the electronic device;

[0205] and / or,

[0206] The third acquisition module 405 is used to acquire a second frequency at which the temperature of the electronic device exceeds the preset temperature threshold within a second historical time range;

[0207] The adjustment module 403 is used to dynamically adjust the charging parameters of the electronic device in response to the temperature of the electronic device being greater than the first preset temperature threshold and the remaining power being less than the first preset power threshold when the first frequency is greater than the first preset frequency threshold and / or the second frequency is greater than the second preset frequency threshold.

[0208] In some embodiments, the determination module 402 is used to determine whether the application currently running on the electronic device is a preset application; wherein the power consumption of running the preset application is greater than the preset power consumption threshold.

[0209] In some embodiments, the apparatus further comprises:

[0210] The charging module 406 is used to charge the electronic device with preset charging parameters in response to the remaining power of the electronic device being greater than or equal to the first preset power threshold; wherein the preset charging parameters are less than the charging parameters adjusted for the first time.

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

[0212] Figure 5800 is a block diagram of an electronic device shown in an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a mobile computer, etc.

[0213] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

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

[0215] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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.

[0216] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0217] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 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 808 includes a front camera and / or a rear camera. When the electronic device 800 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.

[0218] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 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 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

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

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

[0221] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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.

[0222] In an exemplary embodiment, the electronic device 800 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 methods.

[0223] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 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.

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

[0225] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. 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 exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims above.

[0226] 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 method, characterized in that: Applied in an electronic device, the method comprises: Acquiring the temperature of the electronic device and the remaining power of the electronic device; Determining whether an application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold; In a case where a currently running application causes the power consumption of the electronic device to be greater than the preset power consumption threshold, in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, the charging parameters of the electronic device are dynamically adjusted; wherein the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time.

2. The method according to claim 1, characterized in that In response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, dynamically adjusting the charging parameters of the electronic device includes: In response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, the charging parameters of the electronic device are dynamically adjusted according to the temperature of the electronic device and / or the remaining power.

3. The method according to claim 2, characterized in that The dynamically adjusting the charging parameters of the electronic device according to the temperature of the electronic device and / or the remaining power includes: In response to the remaining power being less than the first preset power threshold, determining a charging parameter to be adjusted for the first time according to the temperature of the electronic device; During charging with the charging parameters adjusted for the first time, in response to the remaining power of the electronic device being greater than a second preset power threshold, the charging parameters adjusted after the first time are determined according to the temperature of the electronic device; wherein the second preset power threshold is greater than the first preset power threshold.

4. The method according to claim 3, characterized in that In response to the remaining power being less than the first preset power threshold, determining the charging parameter to be adjusted for the first time according to the temperature of the electronic device includes: Determining a cooling requirement level of the electronic device according to the temperature of the electronic device; wherein the cooling requirement level is positively correlated with the temperature; In response to the remaining power being less than the first preset power threshold, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted for the first time according to a preset first charging parameter relationship; wherein the first charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter.

5. The method according to claim 4, characterized in that In response to the remaining power of the electronic device being greater than a second preset power threshold, determining the charging parameter to be adjusted after the first time according to the temperature of the electronic device, includes: In response to the remaining power of the electronic device being greater than the second preset power threshold, the charging parameter corresponding to the cooling requirement level is determined as the charging parameter adjusted after the first time according to a preset second charging parameter relationship; wherein the second charging parameter relationship includes a mapping between the cooling requirement level and the charging parameter; and the charging parameter corresponding to any cooling requirement level in the first charging parameter relationship is greater than the charging parameter corresponding to any cooling requirement level in the second charging parameter relationship.

6. The method according to claim 5, characterized in that In the first charging parameter relationship and / or the second charging parameter relationship, the cooling requirement level is negatively correlated with the charging parameter.

7. The method according to claim 1, characterized in that The method further comprises: Acquire a first frequency within a first historical time range in which the electronic device runs an application and causes the power consumption of the electronic device to be greater than the preset power consumption threshold; and / or, Acquire a second frequency at which the temperature of the electronic device exceeds the preset temperature threshold within a second historical time range; In response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold, dynamically adjusting the charging parameters of the electronic device includes: When the first frequency is greater than a first preset frequency threshold, and / or the second frequency is greater than a second preset frequency threshold, in response to the temperature of the electronic device being greater than the first preset temperature threshold, and the remaining power being less than the first preset power threshold, the charging parameters of the electronic device are dynamically adjusted.

8. The method according to claim 1, characterized in that The determining whether the application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold includes: Determine whether the application currently running on the electronic device is a preset application; wherein the power consumption of running the preset application is greater than the preset power consumption threshold.

9. The method according to claim 1, characterized in that: The method further comprises: In response to the remaining power of the electronic device being greater than or equal to the first preset power threshold, the electronic device is charged with preset charging parameters; wherein the preset charging parameters are less than the charging parameters adjusted for the first time.

10. A charging device, characterized in that: Applied in electronic equipment, the device comprises: A first acquisition module, used to acquire the temperature of the electronic device and the remaining power of the electronic device; A determination module, used to determine whether an application currently running on the electronic device causes the power consumption of the electronic device to be greater than a preset power consumption threshold; An adjustment module is used to dynamically adjust the charging parameters of the electronic device in response to the temperature of the electronic device being greater than a first preset temperature threshold and the remaining power being less than a first preset power threshold when a currently running application causes the power consumption of the electronic device to be greater than the preset power consumption threshold; wherein the charging parameters adjusted for the first time are greater than the charging parameters adjusted after the first time.

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

12. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 9.