Electronic device, charging control method of electronic device, and storage medium

By using the controller in electronic devices, dynamically adjusting the charging current based on the user's historical charging information and current battery capacity, the battery life and safety issues during fast charging are solved, and longer battery life and higher Charging safety.

CN119496244APending Publication Date: 2025-02-21HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410837456.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

During the rapid charging of lithium polymer batteries, how to extend the service life of the battery and improve its charging safety, avoiding the damage to the battery by large currents and high charging temperatures.

Method used

By introducing a controller into the electronic device, the user's historical charging information is obtained, and the charging current is dynamically adjusted according to the current power and charging configuration current, so that it is lower than the current charging configuration current, so as to reduce damage to the battery.

Benefits of technology

Dynamically adjusting the charging current can reduce the damage to the battery by high current and charging high temperature, extend the battery's service life and improve the battery's charging safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496244A_ABST
    Figure CN119496244A_ABST
Patent Text Reader

Abstract

The embodiment of the invention belongs to the technology of electronic equipment, and provides electronic equipment, a charging control method of the electronic equipment and a storage medium. When the electronic equipment enters the quick charging state, historical charging information of a user is obtained; the current electric quantity of the electronic equipment and the current charging configuration current of the charging chip are obtained, and then the target current is determined according to the historical charging information, the current electric quantity and the current charging configuration current. And controlling the charging chip to charge the battery according to the target current. By dynamically adjusting the charging current, the damage of large current and charging high temperature to the battery can be reduced, the service life of the battery is prolonged, and the charging safety of the battery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and more specifically, to an electronic device, a charging control method of the electronic device, and a storage medium. Background Art

[0002] Lithium polymer batteries (LiPo batteries) are widely used in consumer electronics, aerospace, electric vehicles and other fields due to their high energy density, light weight and flexible shape design. With the increasing demand for portable devices and electric vehicles in modern society, fast charging technology can alleviate people's anxiety about battery life. However, during the fast charging process, lithium polymer batteries face a series of safety issues.

[0003] During the fast charging process of lithium polymer batteries, how to extend the battery life and improve its charging safety is an urgent problem to be solved. Summary of the invention

[0004] Embodiments of the present application provide an electronic device, a charging control method for the electronic device, and a storage medium, which can be used to extend the service life of a battery and improve its charging safety during a fast charging process.

[0005] In a first aspect, an embodiment of the present application provides an electronic device, including:

[0006] a battery configured to power the electronic device;

[0007] A charging chip, configured to charge the battery when the electronic device enters a charging state;

[0008] A controller electrically connected to the charging chip is configured as follows:

[0009] When the electronic device enters a fast charging state, obtaining historical charging information of the user, the historical charging information including one or more of usage indication information corresponding to multiple preset time periods within a preset number of days, stop charging power, starting power, starting power average, and stop charging power average of multiple fast charging within the preset number of days, wherein the usage indication information is used to indicate whether the user uses the electronic device within the corresponding preset time period;

[0010] Acquire the current power of the electronic device and the current charging configuration current of the charging chip;

[0011] Determine a target current according to the historical charging information, the current power and the current charging configuration current, wherein the target current is lower than the current charging configuration current;

[0012] The charging chip is controlled to charge the battery according to the target current.

[0013] In this embodiment, when the electronic device enters the fast charging state, the user's historical charging information is obtained. The current power of the electronic device and the current charging configuration current of the charging chip are obtained, and then the target current is determined based on the historical charging information, the current power and the current charging configuration current. The charging chip is controlled to charge the battery according to the target current. This application can reduce the damage to the battery caused by high current and high charging temperature by dynamically adjusting the charging current, thereby extending the battery life and improving the battery charging safety.

[0014] In some embodiments of the present application, the controller is configured as follows:

[0015] Determining a current adjustment ratio according to the current power, the average value of the stop charging power, and the usage indication information corresponding to the plurality of preset time periods;

[0016] The target current is determined according to the current adjustment ratio and the current charging configuration current. The target current is less than or equal to the current charging configuration current. The size of the target current can be used to extend the charging time of the electronic device and meet the charging needs of the user.

[0017] In this embodiment, the controller can determine the current adjustment ratio according to the current power, the average value of the stop charging power, and the use indication information corresponding to multiple preset time periods, and then determine the target current according to the current adjustment ratio and the current charging configuration current. It can be realized to configure the size of the charging current based on the probability of using the electronic device in the charging time period, and the short-term high-current charging process can be changed to a relatively long-term and low-current charging process, so that the damage to the battery caused by high current and high charging temperature can be reduced, the battery life can be extended, and the charging safety of the battery can be improved.

[0018] In some embodiments of the present application, the controller is configured as follows:

[0019] According to the current power and the average power value of the stop charging, predict the i-th time required to charge the current power to the average power value of the stop charging according to the i-th proportion of the current charging configuration current; and determine the i-th charging time period according to the current time and the i-th time period; according to the use indication information corresponding to the multiple preset time periods, determine at least one i-th probability that the user uses the electronic device in at least one target time period within the i-th charging time period; wherein, the first proportion is a preset initial value;

[0020] If the at least one i-th probability is less than or equal to a first threshold, determining the i-th ratio as the current adjustment ratio;

[0021] If there is a probability greater than the first threshold value among the at least one i-th probability, then the i-th ratio is added with a preset step length to obtain an i+1-th ratio;

[0022] The i is sequentially 1, 2, ... until the current adjustment ratio is determined, or when the i+1th ratio is greater than a second threshold, the current adjustment ratio is determined to be 1.

[0023] In this embodiment, by cyclically finding a time period when the probability of the user using the electronic device is low, and charging the battery based on the current size in this time period, the damage to the battery caused by high current and high charging temperature can be reduced, the battery life can be extended, and the charging safety of the battery can be improved. If there is no time period when the probability of the user using the electronic device is low, the battery can be charged according to the current charging configuration current, that is, normal fast charging, so that the user will not feel slow charging during use, thereby improving the user's experience.

[0024] In some embodiments of the present application, the controller is configured as follows:

[0025] Determining at least one target time period included in the i-th charging time period among the plurality of preset time periods;

[0026] determining, according to the usage indication information corresponding to at least one target time period, the number of times the user uses the device in each target time period;

[0027] For any target time period, the probability corresponding to the target time period is determined according to the number of times the device is used in the target time period within the preset number of days.

[0028] In this embodiment, the usage probability is predicted based on the usage indication information of whether the user has used the device in multiple preset time periods in the historical charging information, so that the current charging current can be adjusted based on the user's historical usage habits, thereby improving the accuracy of the adjustment.

[0029] In some embodiments of the present application, it is also configured as:

[0030] When the full charge capacity does not exist in the stop charging capacity of the multiple fast charging, the target current is determined to be the current charging configuration current.

[0031] In this embodiment, since there is no full charge in the stop charging power of multiple fast charging, it means that the user is more concerned about the charging speed of the battery. Controlling the charging chip to charge the battery according to the current charging configuration current can meet the user's demand for fast charging.

[0032] In some embodiments of the present application, the controller is further configured to:

[0033] After the charging chip charges the battery according to the target current, it is determined that the electronic device detects that the user has used the electronic device within a current preset time period, where the current preset time period is one of the multiple preset time periods;

[0034] If so, the charging chip is controlled to charge the battery according to the current charging configuration current.

[0035] In this embodiment, when the exit condition is met while the electronic device is being charged according to the target current, normal fast charging can be resumed, that is, the electronic device can be charged according to the charging configuration current, so that the electronic device can be charged quickly to meet the user's charging needs for the electronic device.

[0036] In some embodiments of the present application, the controller is configured as follows:

[0037] Obtaining the screen-on duration in multiple preset time periods for each day within the preset number of days;

[0038] For any preset time period in any day, judging whether the user uses the electronic device in the preset time period according to the screen-on time in the preset time period and the time corresponding to the preset time period;

[0039] If the user uses the electronic device within the preset time period, determining that the usage indication information corresponding to the preset time period is a first value;

[0040] If the user does not use the electronic device within the preset time period, it is determined that the usage indication information corresponding to the preset time period is a second value.

[0041] In this embodiment, whether the user uses the electronic device within the preset time period can be determined based on the ratio of the screen-on time to the time corresponding to the preset time period, which can improve the accuracy of determining whether the user uses the electronic device.

[0042] In some embodiments of the present application, the controller is further configured to:

[0043] Calculating a first standard deviation of the stop charging power of the multiple fast chargings according to the stop charging power of the multiple fast chargings; and determining the stop charging power mean based on the first standard deviation;

[0044] According to the initial capacities of the multiple quick charges, a second standard deviation of the initial capacities of the multiple quick charges is calculated, and based on the second standard deviation, the initial capacities mean is determined.

[0045] In this embodiment, the stop charging power average value and the start charging power average value are determined according to the standard deviation, which can improve accuracy.

[0046] In a second aspect, the present application provides a charging control method for an electronic device, the electronic device comprising:

[0047] a battery configured to power the electronic device;

[0048] A charging chip, configured to charge the battery when the electronic device enters a charging state;

[0049] The method comprises:

[0050] When the electronic device enters a fast charging state, obtaining historical charging information of the user, the historical charging information including one or more of usage indication information corresponding to multiple preset time periods within a preset number of days, stop charging power, average starting power, and average stop charging power of multiple fast charging within the preset number of days, wherein the usage indication information is used to indicate whether the user uses the electronic device within the corresponding preset time period;

[0051] Acquire the current power of the electronic device and the current charging configuration current of the charging chip;

[0052] Determining a target current according to the historical charging information, the current power and the current charging configuration current;

[0053] The charging chip is controlled to charge the battery according to the target current.

[0054] In this embodiment, when the electronic device enters the fast charging state, the user's historical charging information is obtained. The current power of the electronic device and the current charging configuration current of the charging chip are obtained, and then the target current is determined based on the historical charging information, the current power and the current charging configuration current. The charging chip is controlled to charge the battery according to the target current. This application can reduce the damage to the battery caused by high current and high charging temperature by dynamically adjusting the charging current, thereby extending the battery life and improving the battery charging safety.

[0055] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a computer, they are used to implement the method described in the second aspect.

[0056] The computer-readable storage medium provided in the embodiment of the present application can execute the technical solution in the above method embodiment, and its beneficial effects are similar, which will not be repeated here.

[0057] In a fourth aspect, the present application provides a computer program product, including a computer program, wherein the computer program is used to implement the method described in the second aspect when executed by a computer.

[0058] The computer program product provided in the embodiment of the present application can execute the technical solution in the above method embodiment, and its beneficial effects are similar and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0060] Figure 1 A schematic diagram of charging a conventional electronic device as an example of this application;

[0061] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0062] Figure 3 A schematic diagram of a flow chart of a charging control method for an electronic device provided in an embodiment of the present application;

[0063] Figure 4 A schematic diagram of a flow chart of another charging control method for an electronic device provided in an embodiment of the present application;

[0064] Figure 5 A schematic diagram of a flow chart of another charging control method for an electronic device provided in an embodiment of the present application;

[0065] Figure 6 A time diagram of a target time period within the i-th charging time period of the example of the present application;

[0066] Figure 7 A schematic diagram of a flow chart of another charging control method for an electronic device provided in an embodiment of the present application;

[0067] Figure 8 A schematic diagram of a flow chart of another charging control method for an electronic device provided in an embodiment of the present application;

[0068] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0070] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0071] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0072] Generally, when the capacity of a lithium polymer battery decays to 80%, it is considered that its service life has expired and the battery needs to be replaced. During the use of lithium polymer batteries, the capacity generally decays. The main reason for this is the characteristics of the battery materials. The characteristics of different materials have different effects on the life of lithium polymer batteries.

[0073] However, in addition to material reasons, battery life is also affected by factors such as battery charging methods. Charging methods include, for example, charge and discharge rates, overcharge and overdischarge, and charging strategies. At present, the charging process of lithium polymer batteries usually detects charging current, charging voltage, battery temperature, battery voltage, etc., and then controls these parameters within a reasonable range through hardware or software. The main methods include controlling charging current according to different charging modes (conventional charging or fast charging), charging overcurrent and overvoltage protection, and battery overvoltage stop charging protection. These methods can extend the battery life to a certain extent and ensure the safe use of the battery.

[0074] Among them, the standard charge and discharge rate of lithium polymer batteries (i.e., the ratio of the current size to the battery capacity during the charging or discharging process) is 0.2C (where C represents the rated capacity of the battery. Assuming that the battery capacity is 1000mAh, the 0.2C charging current is 200mA. According to the 0.2C charging rate, the battery needs 5 hours (1000 / 200=5) to be fully charged), which can ensure the safety and life of the battery. However, in the fast charging mode, the charge and discharge rate needs to be adjusted to charge with a large current, which will cause the life of the lithium polymer battery to decay faster. At the same time, overcharging, overdischarging, and improper charging strategy will also accelerate the decay of the battery life.

[0075] Figure 1A schematic diagram of charging a conventional electronic device as exemplified in this application, such as Figure 1 As shown, after the charger is connected to the electronic device through the Universal Serial Bus (USB) cable, the charging chip in the electronic device must first identify the charging type, and then configure different input currents and battery input current and other parameters according to different charging types. In the absence of abnormalities, the current parameters will not change until the charging is completed. The input voltage of the charging chip is determined by the charging type and will change with the change of the charging process. The input voltage of the battery is directly related to the voltage of the battery itself. Excessive input voltage will seriously damage the battery itself. This is the characteristic of the battery itself. Therefore, the charging chip will strictly control the input voltage of the battery and will not change it at will. The input voltage and input current of the charging chip determine the input power of the power supply to the electronic device, and the input voltage and input current of the battery determine the input power of the battery charging.

[0076] Therefore, in some electronic devices, the input current of the battery increases in the fast charging mode. When the input voltage of the battery is basically fixed, only when the input current of the battery increases, the input power of the battery charging will increase, thereby speeding up the charging speed. However, the greater the input current of the battery, the greater the damage to the battery, and the greater the heat generated by the battery, the higher the temperature of the battery. High temperature and high charge and discharge rate are important factors affecting the service life of the battery, and also important factors affecting the safety of the battery.

[0077] Fast charging is an important means to solve users' anxiety about battery life. Therefore, how to extend the battery life in fast charging mode while meeting users' fast charging needs is an urgent problem to be solved.

[0078] During the research process, it was found that in addition to the above-mentioned factors that affect the battery life, the battery life is also affected by the way the battery is used. The current methods for extending the battery life and ensuring the safety of the battery do not take into account the user's usage habits. For example, users are accustomed to using electronic devices during the fast charging process, which will cause the electronic devices to generate additional heat. High temperature will accelerate the chemical reaction inside the battery, causing the battery to age faster, thereby shortening the battery life.

[0079] Therefore, the present application provides an electronic device which, in a fast charging mode, can adjust the charging current according to the historical probability of the user using the electronic device during the charging time period, thereby reducing the damage to the battery caused by large current and high charging temperature, extending the battery life, and improving the battery charging safety.

[0080] It can be understood that the electronic device of the present application is a device that supports the fast charging mode. If the electronic device is in the normal charging mode, there is no need to adjust the charging current of the battery of the electronic device. It can be charged according to the configured current of the charging chip in the normal charging mode.

[0081] The technical solution of the present application is described in detail below in conjunction with specific embodiments. The following specific embodiments can be combined with each other or exist independently. The same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0082] First, the electronic device provided in the embodiments of the present application is described. Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 10 includes a battery 101, a charging chip 102, and a controller 103, wherein the controller 103 can be electrically connected to the charging chip 102 and the battery 101, and the charger can be connected to the charging chip 102 via a USB, thereby realizing charging the battery 101 through an external power supply. And in non-charging mode, the battery 101 can power the controller 103.

[0083] The battery 101 and the charging chip 102 may be connected via a battery protection board (Battery Management System, BMS), which protects the battery 101 during the charging and discharging process.

[0084] Exemplarily, the charging chip 102 and the controller 103 may be connected via a serial peripheral interface (SPI), a serial bus interface (I2C), or the like.

[0085] In one possible implementation, the charging chip 102 supports the fast charging protocol and can detect whether the connected charger also supports the protocol. If the charger supports the protocol, it can be determined that the electronic device enters the fast charging mode. If the charger does not support the protocol, it can be determined that the electronic device enters the regular charging mode.

[0086] In one possible implementation, the charging chip 102 can detect the voltage or current output by the charger. If the voltage or current is higher than the standard USB voltage (such as 5V) or the standard charging current (500mA or 1A), it can be determined that the charger is a fast charger and that the electronic device can enter the fast charging mode.

[0087] Figure 3A flow chart of a charging control method for an electronic device provided in an embodiment of the present application, the method can be executed by a controller in the electronic device, such as Figure 3 As shown, the method may include the following steps.

[0088] S301. When the electronic device enters a fast charging state, obtain historical charging information of the user.

[0089] The historical charging information includes one or more of usage identifiers corresponding to multiple preset time periods within a preset number of days, the stop charging power of multiple fast charging within the preset number of days, and the average starting power, wherein the usage identifier is used to indicate whether the user uses the electronic device within the corresponding preset time period.

[0090] Exemplarily, the preset number of days may be 30 days, that is, the historical charging information is the charging information within 30 days before the current date. For example, the historical charging information may be as shown in Table 1.

[0091] Table 1

[0092]

[0093] Exemplarily, if the usage flag is 1, it means that the user uses the electronic device within the preset time period, and if the usage flag is 0, it means that the user does not use the mobile phone within the preset time period.

[0094] For example, if the current date is January 31, the historical charging information for the previous 30 days includes the usage identifiers of each preset time period from January 1 to January 30 in Table 1.

[0095] Exemplarily, for any preset time period of a day, whether the user uses the electronic device can be determined based on the screen-on duration of the electronic device in the preset time period, thereby determining the usage identifier corresponding to the preset time period.

[0096] In a possible implementation, the stop charging power average value is an average value of the stop charging power values ​​of multiple fast charging operations within a preset number of days.

[0097] In a possible implementation, a first standard deviation of the stop charging power during multiple fast charging periods is calculated according to the stop charging power during multiple fast charging periods, and a stop charging power mean is determined based on the first standard deviation.

[0098] Exemplarily, the discreteness of the stop charging power of the electronic device during multiple fast charging can be determined based on the first standard deviation. When the first standard value is greater than the preset value, it can be determined that the discreteness of the stop charging power of the electronic device during multiple fast charging is large, indicating that the mean of the stop charging power of multiple fast chargings used to calculate the first standard value is not referenceable, and the mean of the stop charging power can be determined to be the preset charging power mean, such as 90%. Alternatively, if the mean of the stop charging power of multiple fast chargings used to calculate the first standard value is less than the preset charging power mean, it can be determined that the mean of the stop charging power is the preset charging power mean.

[0099] In a possible implementation, the average initial power value is an average value of initial power values ​​of multiple fast charges within a preset number of days.

[0100] In a possible implementation, a second standard deviation of the initial capacities of the multiple fast charges is calculated according to the initial capacities of the multiple fast charges, and a mean initial capacities is determined based on the second standard deviation.

[0101] Exemplarily, the discreteness of the starting power of multiple quick charges of the electronic device can be determined based on the second standard deviation. When the second standard value is greater than the preset value, it can be determined that the discreteness of the starting power of multiple quick charges of the electronic device is large, indicating that the mean of the starting power of multiple quick charges used to calculate the second standard value is not referenceable, and the starting power mean can be determined to be the preset starting power mean, such as 20%. Alternatively, if the mean of the starting power of multiple quick charges used to calculate the second standard value is less than the preset starting power mean, it can be determined that the starting power mean is the preset starting power mean.

[0102] In a possible implementation, the controller may use the trimmed average method to delete abnormal data, that is, to delete a certain proportion of the highest and lowest starting power among multiple fast charging start power, and to delete a certain proportion of the highest and lowest stopping charging power among multiple fast charging stop power, and then calculate the second standard deviation based on the remaining starting power, and calculate the first standard deviation based on the remaining stopping charging power. The influence of abnormal data on the calculation results can be reduced.

[0103] S302: Acquire the current power of the electronic device and the current charging configuration current of the charging chip.

[0104] In a possible implementation, the charging chip may include a preset register for storing the current charging configuration current, and the controller may read the register through an interface such as SPI or I2C to obtain the current charging configuration current.

[0105] Exemplarily, the current charging configuration current of the charging chip may be a value set according to actual needs of the charging chip, the battery, and the electronic device.

[0106] In a possible implementation, the controller may measure the voltage of the battery to estimate the current charge level of the battery according to the voltage.

[0107] S303: Determine a target current according to historical charging information, current power and current charging configuration current.

[0108] After obtaining the current power and the charging configuration current, the controller can determine the target current based on the historical charging information, the current power and the current charging configuration current.

[0109] In one possible implementation, when there is no full charge in the stop charging current of multiple fast charging, the controller can determine that the target current is the current that can be configured for current charging. In this case, it means that the user is more concerned about the charging speed of the battery. Controlling the charging chip to charge the battery according to the current charging configuration current can meet the user's needs for fast charging.

[0110] Exemplarily, when the current power of the electronic device is less than the starting power average, the target current is determined to be the current charging configuration current, so that the charger can charge quickly, ensuring that the user's power is within the safe range considered by the user, and avoiding the user's power anxiety.

[0111] In a possible implementation, the controller may determine the target current according to the current power, the average value of the stop charging power, the current power, and the current charging configuration current.

[0112] Exemplarily, the controller can predict the charging time required under different proportions of charging configuration current based on the current power and the average of the stop charging power, and then determine the device usage probability within each charging time based on the usage identifiers corresponding to multiple preset time periods, so that the target current for charging the battery can be determined based on the usage probability.

[0113] Among them, the target current is less than or equal to the current charging configuration current, and the target current is greater than or equal to the charging current of the electronic device in the normal charging mode, which can avoid using a smaller current to charge the battery and affect the user's charging efficiency.

[0114] By charging the battery at a target current below the current charging configuration current, the damage to the battery caused by high current and high charging temperature can be reduced, the battery life can be extended, and the battery charging safety can be improved.

[0115] S304, controlling the charging chip to charge the battery according to the target current.

[0116] After determining the target current, the controller can control the charging chip to charge the battery according to the target current. Exemplarily, the controller can send a corresponding configuration instruction to the charging chip through an I2C or SPI communication interface, so that the charging chip charges the battery according to the target current after receiving the configuration instruction.

[0117] In this embodiment, when the electronic device enters the fast charging state, the user's historical charging information is obtained. The current power of the electronic device and the current charging configuration current of the charging chip are obtained, and then the target current is determined based on the historical charging information, the current power and the current charging configuration current. The charging chip is controlled to charge the battery according to the target current. This application can reduce the damage to the battery caused by high current and high charging temperature by dynamically adjusting the charging current, thereby extending the battery life and improving the battery charging safety.

[0118] Next, how the electronic device determines the target current is described in detail.

[0119] Figure 4 A flow chart of another charging control method for an electronic device provided in an embodiment of the present application, which method can be executed by a controller in the electronic device, such as Figure 4 As shown, the method may include the following steps.

[0120] S401, determining a current adjustment ratio according to the current power, the average value of the stop charging power, and the usage indication information corresponding to a plurality of preset time periods.

[0121] For example, the controller may predict the time required to charge the current power to the average power value for stopping charging according to the current adjustment ratio of the current charging configuration, and then determine the current adjustment ratio according to the probability of the user using the electronic device during the charging time period corresponding to the time. The probability is determined according to the usage indication information corresponding to the plurality of preset time periods.

[0122] The adjustment ratio may be a preset initial value, or may be determined according to a preset initial value and a preset step length. Alternatively, the adjustment ratio may include multiple preset ratios, such as 50% and 80%.

[0123] S402: Determine a target current according to the current adjustment ratio and the current charging configuration current.

[0124] For example, if the current adjustment ratio is 50%, the target current may be determined to be 50% of the current charging configuration current.

[0125] In this embodiment, the controller can determine the current adjustment ratio according to the current power, the average value of the stop charging power, and the use indication information corresponding to multiple preset time periods, and then determine the target current according to the current adjustment ratio and the current charging configuration current. It can be realized to configure the size of the charging current based on the probability of using the electronic device in the charging time period, and the short-term high-current charging process can be changed to a relatively long-term and low-current charging process, so that the damage to the battery caused by high current and high charging temperature can be reduced, the battery life can be extended, and the charging safety of the battery can be improved.

[0126] Next, S401 in the above embodiment, ie, the controller determines the current adjustment ratio, is described.

[0127] In one possible implementation, the controller can determine the current adjustment ratio by looking up a table. For example, the controller determines the charging time period and the usage indication information corresponding to multiple preset time periods based on the current power level and the average power level at which charging is stopped, and determines the current adjustment ratio in the corresponding table.

[0128] In one possible implementation, Figure 5 A flow chart of another charging control method of an electronic device provided in an embodiment of the present application, the method can be executed by a controller in the electronic device, such as Figure 5 As shown, the method may include the following steps.

[0129] S501 , predicting, based on the current power and the average power value at which charging is to be stopped, the i-th time required to charge the current power to the average power value at which charging is to be stopped according to the i-th proportion of the current charging configuration.

[0130] Specifically, the controller can calculate the i-th duration by the following formula:

[0131]

[0132] Wherein, C1 is the product of the average value of the stop charging power (percentage) and the battery capacity (unit: mAh), C2 is the product of the current power (percentage) and the battery capacity. I is the current charging configuration current, and xi is the i-th ratio.

[0133] S502: Determine the i-th charging time period according to the current time and the i-th duration.

[0134] The controller may determine, based on the current time and the i-th duration, to charge the current power to the i-th charging time period corresponding to the mean value of the stop charging power according to the i-th proportion of the current charging configuration current.

[0135] For example, the current time is 13:10, the i-th time length is 1.5 hours, and the i-th charging time period is 13:10-14:40.

[0136] S503: Determine at least one i-th probability that the user uses the electronic device in at least one target time period within the i-th charging time period according to the usage indication information corresponding to the plurality of preset time periods.

[0137] After determining the i-th charging time period, the controller may determine at least one i-th probability that the user uses the electronic device in at least one target time period within the i-th charging time period according to the usage indication information corresponding to the plurality of preset time periods.

[0138] In a possible implementation, the controller may determine at least one target time period included in the i-th charging time period within multiple preset time periods. And determine the number of times the user uses the device within each target time period based on the usage indication information corresponding to the at least one target time period. For any target time period, the probability corresponding to the target time period is determined based on the number of times the device is used within the target time period; wherein the multiple i-th probabilities include the probabilities corresponding to multiple target time periods.

[0139] Exemplarily, in order to clearly illustrate the target time period included in the i-th charging time period, taking the preset time period in Table 1 and the i-th charging time period of 13:10-14:40 as an example, Figure 6 This is a time diagram of the target time period in the i-th charging time period of the present application example. The target time periods included in the charging time period 13:10-14:40 may be 13:00-13:30, 13:30-14:00, 14:00-14:30 and 14:30-15:00. It can be understood that only part of the time periods of 13:00-13:30 and 14:30-15:00 are included in the charging time period 13:10-14:40. In order to avoid users using electronic devices in these time periods, these two time periods can be used as the target time periods in the i-th charging time period.

[0140] After determining at least one target time period, the controller can determine the probability corresponding to any target time period according to the number of times the device is used in the target time period within the preset number of days. For example, taking the target time period 13:30-14:00 as an example, if the number of times the user uses the device in the 13:30-14:00 time period in the preset number of days (for example, the first 30 days) is 20 times, then the probability corresponding to the target time period 13:30-14:00 is 20 / 30, that is, the user used the electronic device in the 13:30-14:00 time period for 20 days in the first 30 days, and did not use the electronic device in the 13:30-14:00 time period for 10 days, and the probability of the user using the electronic device in the target time period 13:30-14:00 is two-thirds.

[0141] S504: Determine whether there is a probability greater than a first threshold among at least one i-th probability.

[0142] If not, execute S505, and if so, execute S506.

[0143] After determining the ith probability corresponding to the ith charging time period, the controller may determine whether there is a probability greater than a first threshold value among the ith probabilities corresponding to the ith charging time period.

[0144] Exemplarily, if the first threshold is set to 20%, the controller can determine whether there is a probability greater than 20% in the i-th charging time period. If so, it means that the probability of the user using the electronic device in the i-th charging time period is high. If not, it means that the probability of the user using the electronic device in the i-th charging time period is low.

[0145] S505: Determine the i-th ratio as the current adjustment ratio.

[0146] If at least one i-th probability is less than or equal to the first threshold, the i-th ratio may be determined as the current adjustment ratio to reduce the charging current of the electronic device in the fast charging mode.

[0147] S506, add the preset step size to the i-th ratio to obtain the i+1-th ratio, wherein i is 1, 2, ... in sequence, until the current adjustment ratio is determined, or when the i+1-th ratio is greater than the second threshold, the i+1-th ratio is determined as the current adjustment ratio.

[0148] If there is a probability greater than the first threshold value in at least one of the i-th probabilities, it means that the probability of the user using the electronic device in the i-th charging time period is high. The controller can add the preset step length to the i-th ratio to obtain the second ratio, and continue to charge the current power to the second duration required to stop charging the power average according to the second ratio of the current charging configuration current. And determine the second charging time period based on the current time and the second duration. Then, based on the usage indication information corresponding to multiple preset time periods, determine at least one second probability that the user uses the electronic device in at least one target time period within the second charging time period. Then, determine whether there is a probability greater than the first threshold value among at least one of the second probabilities. If not, the second ratio can be determined as the current adjustment ratio. If so, continue to add the preset step length to the second ratio to obtain the third ratio, and so on.

[0149] It can be understood that the above cycle stops after determining the current adjustment ratio, or when the i+1th ratio is greater than the second threshold, the current adjustment ratio can be determined to be 1. For example, the second threshold is 90%. Then when the i+1th ratio is greater than 90%, it means that during the time period when the battery is charged with a current close to the current charging configuration current, if the probability of the user using the electronic device is low, but because the current is slightly different from the current charging configuration current, the current charging configuration current does not need to be adjusted, that is, the current adjustment ratio is 1, that is, the battery can be charged directly according to the current charging configuration current.

[0150] The first ratio is a preset initial value, such as 50%, and the preset step size may be, for example, 30%, 20% or 10%, etc., which is not limited in the present application.

[0151] The preset initial value can be determined according to the charging current of the electronic device in the normal charging mode, that is, in the fast charging mode, the minimum value after the charging current is reduced can be the charging current of the electronic device in the normal charging mode. For example, the charging current of the electronic device in the normal charging mode is 1000mA, and the charging current range of the electronic device in the fast charging mode is 2000mA-4000mA, then the preset initial value can be set to 50%, and 50% of the lower limit of 2000mA is 1000mA, so that the charging current of the electronic device will not be lower than 1000mA. The charging speed of the electronic device can be guaranteed to meet the power demand of the user.

[0152] In this embodiment, by cyclically finding the time period when the user is less likely to use the electronic device, and charging the battery based on the current size in the time period, the damage to the battery caused by high current and high charging temperature can be reduced, the battery life can be extended, and the charging safety of the battery can be improved. If there is no time period when the user is less likely to use the electronic device, the battery can be charged according to the current charging configuration current, that is, normal fast charging, so that the user will not feel slow charging during use, thereby improving the user experience.

[0153] In one possible implementation, while the charging chip is charging the battery according to the target current, if the electronic device meets the conditions for charging with the target current, the charging chip can be controlled to charge the battery according to the current charging configuration current, that is, fast charging is performed.

[0154] Specifically, Figure 7 A flow chart of another charging control method of an electronic device provided in an embodiment of the present application, the method can be executed by a controller in the electronic device, such as Figure 7 As shown, the method may include the following steps.

[0155] S701. After the charging chip charges the battery according to the target current, determine whether the electronic device meets a preset condition for exiting target current charging.

[0156] If yes, then S702 is executed. If no, then the charging chip continues to charge the battery according to the target current.

[0157] The preset condition includes that it is detected that the user has used the electronic device within a current preset time period, and the current preset time period is one of multiple preset time periods.

[0158] Exemplarily, after the charging chip charges the battery according to the target current, taking the preset time period in Table 1 as an example, the charging chip charges the battery according to the target current during the time periods of 16:00-16:30, and 16:30-17:00, etc., then the controller can monitor whether the user uses the electronic device during these time periods during the charging process. If so, the target current charging is exited, that is, the charging chip can be controlled to charge the battery according to the current charging configuration current, so that the user will not feel the slow charging during use, and the user experience will not be reduced.

[0159] For example, for a time period during which the target current is charged by the battery, the controller determines whether the user uses the electronic device in the time period based on the screen-on duration in the time period and the duration corresponding to the time period. If the ratio of the screen-on duration to the duration corresponding to the preset time period is above a preset ratio, such as 10%, it can be determined that the user uses the electronic device in the time period. If not, it can be determined that the user does not use the electronic device in the time period.

[0160] S702: Control the charging chip to charge the battery according to the current charging configuration current.

[0161] In this embodiment, when the exit condition is met while the electronic device is being charged according to the target current, normal fast charging can be resumed, that is, the electronic device can be charged according to the charging configuration current, so that the electronic device can be charged quickly to meet the user's charging needs for the electronic device.

[0162] In a possible implementation, if the electronic device meets the preset condition for exiting the target current charging, that is, the user is detected to have used the electronic device within the current preset time period, and the power of the electronic device has not reached the starting power average value when the battery is charged according to the current charging configuration current, then, during the process of the charging chip charging the battery according to the current charging configuration current, if the power of the electronic device reaches the starting power average value, the first current can be determined based on the historical charging information, the power of the electronic device and the current charging configuration current, thereby controlling the charging chip to charge the battery according to the first current. Specifically, please refer to the above embodiment, which will not be repeated here.

[0163] Next, how the controller determines the usage indication information corresponding to the preset time period is described.

[0164] Figure 8 A flow chart of another charging control method of an electronic device provided in an embodiment of the present application, the method can be executed by a controller in the electronic device, such as Figure 8 As shown, the method may include the following steps.

[0165] S801. Obtain screen-on durations in multiple preset time periods for each day within a preset number of days.

[0166] S802: For any preset time period in any day, determine whether the user uses the electronic device within the preset time period according to the screen-on time within the preset time period and the time corresponding to the preset time period.

[0167] If yes, execute S803, if no, execute S804.

[0168] For example, if the ratio of the screen-on duration to the duration corresponding to the preset time period is above a preset ratio, such as 10%, it can be determined that the user used the electronic device within the preset time period. If not, it can be determined that the user did not use the electronic device within the preset time period.

[0169] S803: Determine that the usage indication information corresponding to the preset time period is a first value

[0170] S804: Determine that the usage indication information corresponding to the preset time period is a second value.

[0171] Exemplarily, as shown in Table 1, the first value may be 0, the second value may be 1, or may be represented by other numbers, letters, or a combination of numbers and letters, and the present application does not impose any limitation on this.

[0172] In this embodiment, whether the user uses the electronic device within the preset time period can be determined based on the ratio of the screen-on time to the time corresponding to the preset time period, which can improve the accuracy of determining whether the user uses the electronic device.

[0173] It can be understood that when the charging chip is charging the battery according to the target current, if the battery is fully charged, or the battery power reaches a large value, such as 99%, charging can be stopped.

[0174] Fig. 9 A structural diagram of an electronic device provided in an embodiment of the present application, as shown in the figure, the electronic device 90 may include: at least one processor 901 and a memory 902.

[0175] The memory 902 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.

[0176] The memory 902 may include a random access memory (RAM), and may also include a non-volatile memory (Non-volatile Memory), such as at least one disk memory.

[0177] The processor 901 is used to execute the computer-executable instructions stored in the memory 902 to implement the method described in the above method embodiment. The processor 901 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0178] Optionally, the electronic device 90 may further include: a communication interface 903. In a specific implementation, if the communication interface 903, the memory 902 and the processor 901 are implemented independently, the communication interface 903, the memory 902 and the processor 901 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0179] Optionally, in a specific implementation, if the communication interface 903, the memory 902 and the processor 901 are integrated on a chip, the communication interface 903, the memory 902 and the processor 901 can communicate through an internal interface.

[0180] The processor 901 may be the controller in the above embodiment, and the electronic device 100 may be a mobile terminal device, etc.

[0181] The electronic device of this embodiment can be used to execute the technical solution shown in the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0182] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores computer execution instructions, which are used to implement the technical solution shown in the above method embodiment when executed by a computer.

[0183] The present application also provides a program product, which includes execution instructions stored in a readable storage medium. When the computer program is executed by a computer, the technical solution shown in the above method embodiment is executed. The specific implementation method and technical effect are similar and will not be repeated here.

[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0185] For ease of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are intended to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

[0186] In this application, "and / or" is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.

[0187] "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where each of a, b, c can be an element itself or a set containing one or more elements.

[0188] In this application, "at least one" means one or more. "Multiple" means two or more. The first, second, etc. descriptions that appear in the embodiments of this application are only used for illustration and distinction of the described objects. There is no order, nor does it represent a special limitation on the number of devices in the embodiments of this application, and cannot constitute any limitation on the embodiments of this application. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and do not represent the difference in size, priority or importance of the two thresholds.

[0189] In this application, "exemplary", "in some embodiments", "in other embodiments", etc. are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0190] In this application, "of", "corresponding, relevant", "corresponding", and "associated" can sometimes be used interchangeably. It should be noted that when the distinction is not emphasized, the meanings they express are consistent. In the embodiments of this application, communication and transmission can sometimes be used interchangeably. It should be noted that when the distinction is not emphasized, the meanings they express are consistent. For example, transmission can include sending and / or receiving, which can be a noun or a verb.

[0191] In this application, "equal to" can be used in conjunction with "less than" or "greater than", but not with both "less than" and "greater than". When "equal to" is used in conjunction with "less than", it is applicable to the technical solution adopted by "less than". When "equal to" is used in conjunction with "greater than", it is applicable to the technical solution adopted by "greater than".

Claims

1. An electronic device, characterized in that: include: a battery configured to power the electronic device; A charging chip, configured to charge the battery when the electronic device enters a charging state; A controller electrically connected to the charging chip is configured as follows: When the electronic device enters a fast charging state, obtaining historical charging information of the user, the historical charging information including one or more of usage indication information corresponding to multiple preset time periods within a preset number of days, stop charging power, starting power, starting power average, and stop charging power average of multiple fast charging within the preset number of days, wherein the usage indication information is used to indicate whether the user uses the electronic device within the corresponding preset time period; Acquire the current power of the electronic device and the current charging configuration current of the charging chip; Determine a target current according to the historical charging information, the current power and the current charging configuration current, wherein the target current is lower than the current charging configuration current; The charging chip is controlled to charge the battery according to the target current.

2. The electronic device according to claim 1, characterized in that: The controller is configured to: Determining a current adjustment ratio according to the current power, the average value of the stop charging power, and the usage indication information corresponding to the plurality of preset time periods; The target current is determined according to the current adjustment ratio and the current charging configuration current. The target current is less than or equal to the current charging configuration current. The size of the target current can be used to extend the charging time of the electronic device and meet the charging needs of the user.

3. The electronic device according to claim 2, characterized in that: The controller is configured to: According to the current power and the stop charging power average, predicting the i-th time required to charge the current power to the stop charging power average according to the i-th proportion of the current charging configuration current; and determining an i-th charging time period according to the current time and the i-th time period; and determining at least one i-th probability that the user uses the electronic device in at least one target time period within the i-th charging time period according to the usage indication information corresponding to the plurality of preset time periods; Among them, the first ratio is a preset initial value; If the at least one i-th probability is less than or equal to a first threshold, determining the i-th ratio as the current adjustment ratio; If there is a probability greater than the first threshold value among the at least one i-th probability, then the i-th ratio is added with a preset step length to obtain an i+1-th ratio; The i is sequentially 1, 2, ... until the current adjustment ratio is determined, or when the i+1th ratio is greater than a second threshold, the current adjustment ratio is determined to be 1.

4. The electronic device according to claim 3, characterized in that: The controller is configured to: Determining at least one target time period included in the i-th charging time period among the plurality of preset time periods; determining, according to the usage indication information corresponding to at least one target time period, the number of times the user uses the device in each target time period; For any target time period, the probability corresponding to the target time period is determined according to the number of times the device is used in the target time period within the preset number of days.

5. The electronic device according to claim 1, characterized in that: The controller is further configured to: When the stop charging power of the multiple fast charging does not include the full charge power, or when the current power of the electronic device is less than the starting power average, the target current is determined to be the current charging configuration current.

6. The electronic device according to any one of claims 1 to 5, characterized in that: The controller is further configured to: After the charging chip charges the battery according to the target current, it is determined that the electronic device detects that the user has used the electronic device within a current preset time period, where the current preset time period is one of the multiple preset time periods; If so, the charging chip is controlled to charge the battery according to the current charging configuration current.

7. The electronic device according to claim 1, characterized in that: The controller is configured to: Obtaining the screen-on duration in multiple preset time periods for each day within the preset number of days; For any preset time period in any day, judging whether the user uses the electronic device in the preset time period according to the screen-on time in the preset time period and the time corresponding to the preset time period; If the user uses the electronic device within the preset time period, determining that the usage indication information corresponding to the preset time period is a first value; If the user does not use the electronic device within the preset time period, it is determined that the usage indication information corresponding to the preset time period is a second value.

8. The electronic device according to claim 1, characterized in that: The controller is further configured to: Calculating a first standard deviation of the stop charging power of the multiple fast chargings according to the stop charging power of the multiple fast chargings; and determining the stop charging power mean based on the first standard deviation; According to the initial capacities of the multiple quick charges, a second standard deviation of the initial capacities of the multiple quick charges is calculated, and based on the second standard deviation, the initial capacities mean is determined.

9. A charging control method for an electronic device, characterized in that: The electronic device comprises: a battery configured to power the electronic device; A charging chip, configured to charge the battery when the electronic device enters a charging state; The method comprises: When the electronic device enters a fast charging state, obtaining historical charging information of the user, the historical charging information including one or more of usage indication information corresponding to multiple preset time periods within a preset number of days, stop charging power, average starting power, and average stop charging power of multiple fast charging within the preset number of days, wherein the usage indication information is used to indicate whether the user uses the electronic device within the corresponding preset time period; Acquire the current power of the electronic device and the current charging configuration current of the charging chip; Determining a target current according to the historical charging information, the current power and the current charging configuration current; The charging chip is controlled to charge the battery according to the target current.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method of claim 9 is implemented.