Charging method, electronic equipment, storage medium and chip system

By introducing a charging method that automatically adjusts the charging current in electronic devices, the problem that the existing charging mode cannot meet the user's temperature and charging speed requirements is solved, and a more efficient and safer charging process is achieved.

CN119921443AActive Publication Date: 2025-05-02HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510397719.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-05-02
Estimated Expiration
2045-04-01

AI Technical Summary

Technical Problem

The existing charging mode has shortcomings in meeting the user's temperature and charging speed requirements, and it is impossible to effectively adjust the charging current to meet different temperature requirements.

Method used

By introducing a charging method in the electronic device, the user allows the user to automatically adjust the charging current according to the target temperature. The method includes adjusting the charging current accordingly when the target temperature changes to maximize charging efficiency and satisfying the user's temperature and charging speed requirements.

Benefits of technology

It achieves the improvement of charging speed while meeting user temperature requirements, enhances user experience, and improves the safety of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119921443A_ABST
    Figure CN119921443A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a charging method, electronic equipment, a storage medium and a chip system, and relates to the technical field of terminals. The method comprises the steps that under the condition that a target temperature is a first value, in response to user operation used for indicating adjustment of the target temperature, the target temperature of the electronic equipment is adjusted from the first value to a second value; the first current value is adjusted to a second current value according to the second value, the first current value is the value of the charging current corresponding to the first value, and the second current value is the value of the charging current corresponding to the second value; wherein under the condition that the first value is greater than the second value, the first current value is greater than the second current value; or, under the condition that the second value is larger than the first value, the second current value is larger than the first current value. Therefore, the charging current can be automatically adjusted according to the target temperature indicated by the user, so that the electronic equipment can meet the requirements of the user on the whole machine shell temperature and the charging speed of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Electronic devices such as mobile phones and tablets are usually equipped with batteries, which provide power to the electronic devices to maintain the operation of the electronic devices. When the battery power is low, the electronic device can charge the battery through wireless charging or wired charging to ensure the normal operation of the electronic device.

[0003] Currently, electronic devices can be charged in a normal charging mode or an extremely fast charging mode. In the normal charging mode, the charging power of the electronic device is low, and the temperature rise (also called temperature rise) of the electronic device is small; in the extremely fast charging mode, the charging power is high, but the temperature rise of the electronic device is large.

[0004] However, both of the two charging modes may not meet the user's requirements for temperature and charging speed. Summary of the invention

[0005] The embodiments of the present application provide a charging method, an electronic device, a storage medium, and a chip system, which are applied to the field of terminal technology. The electronic device can automatically adjust the charging current according to the charging target temperature, so that the electronic device can have the maximum charging current at the target temperature, thereby meeting the user's requirements for the temperature and charging speed of the electronic device.

[0006] In a first aspect, an embodiment of the present application proposes a charging method. The method includes: when the target temperature is a first value, in response to a user operation for instructing to adjust the target temperature, adjusting the target temperature of the electronic device from the first value to the second value; adjusting the first current value to the second current value according to the second value, the first current value is the value of the charging current corresponding to the first value, and the second current value is the value of the charging current corresponding to the second value; wherein, when the first value is greater than the second value, the first current value is greater than the second current value; or, when the second value is greater than the first value, the second current value is greater than the first current value.

[0007] It is understandable that the first value can be the target temperature value determined when the target temperature was last adjusted, or it can be a default value, for example, the maximum value of the target temperature or the target temperature value determined in the charging setting interface described below, which is not specifically limited here.

[0008] In this way, the charging current can be flexibly adjusted according to the target temperature indicated by the user to meet the user's requirements for temperature and charging speed of the electronic device.

[0009] In one possible implementation, in the constant current charging stage, when the first value is greater than the second value, the first current value is greater than the second current value; or, in the constant current charging stage, when the second value is less than the first value, the second current value is greater than the first current value.

[0010] In this way, the charging current value is adjusted according to the second value during the constant current charging stage.

[0011] In a possible implementation, a first interface is displayed, and the first interface includes: a first control; the first control is used to adjust the target temperature; and the user operation is an operation on the first control.

[0012] The first interface may be any interface that can adjust the target temperature (or target temperature rise), such as the charging interface, charging setting interface, etc., which are not specifically limited here. The first control may be any interface that can adjust the target temperature (or target temperature rise), such as the charging bubble, progress bar, etc., which are not specifically limited here. The user operation may be a click, a slide, or any type of operation, which are not specifically limited here.

[0013] This provides an intuitive user interface where the user can adjust the target temperature via controls.

[0014] In a possible implementation manner, the user operation is a sliding operation; and the second value is determined according to the first value and a displacement of the sliding operation in the first direction.

[0015] The first direction may be a vertically upward direction or a horizontally rightward direction, which is not specifically limited here. In this way, the target temperature can be adjusted in real time following the sliding operation, responding to the user operation in real time, and improving the user experience.

[0016] In one possible implementation, the third value corresponds to the displacement of the sliding operation in the first direction; when the sum of the first value and the third value is greater than or equal to the first preset value, the second value is the first preset value; when the sum of the first value and the third value is less than or equal to the second preset value, the second value is the second preset value; when the sum of the first value and the third value is less than the first preset value and greater than the second preset value, the second value is the sum of the first value and the third value.

[0017] The first preset value may be a target temperature corresponding to the electronic device in the extreme charging mode, for example, 43 degrees, 47 degrees, 48 ​​degrees, etc.; the second preset value may be a target temperature corresponding to the fast charging mode, for example, 27 degrees, 43 degrees, 45 degrees, etc. No specific limitation is made here.

[0018] In this way, setting the target temperature within a certain range can reduce the situation where the target temperature is too high or too low, and reduce the charging safety problems caused by the target temperature being too high or too low.

[0019] In a possible implementation, the appearance of the first control changes according to the target temperature indicated by the user operation.

[0020] The appearance includes but is not limited to: outline, size, background color, fill color, etc. In this way, the target temperature is indicated by the appearance of the first control, providing intuitive visual feedback, which facilitates the user to better understand and adjust the target temperature.

[0021] In one possible implementation, before displaying the first interface, the method also includes: in response to an operation for indicating access to a charging device, displaying a second interface, the second interface being used to indicate charging in a first charging mode; displaying the first interface includes: in response to a first operation on the second interface, displaying the first interface: the first interface being used to indicate charging in a second charging mode.

[0022] The second interface may correspond to the charging interface corresponding to the fast charging described below. The first charging mode may correspond to the fast charging mode described below; the second charging mode may correspond to the fast charging mode described below. The first operation may be any operation for indicating switching the charging mode, such as long pressing the charging bubble, sliding operation, etc., which is not specifically limited here.

[0023] In a possible implementation, the second current value is determined according to the second value and a current overall case temperature of the electronic device.

[0024] In the embodiment of the present application, the second current value may be determined according to the second value and the current overall shell temperature of the electronic device by using an MPC algorithm, a PID algorithm or any other method, which is not specifically limited here.

[0025] In a possible implementation, the method also includes: predicting the whole case temperature of the electronic device after being charged for a period of time at each charging current value based on pre-set charging current values ​​and the current whole case temperature of the electronic device; obtaining a second current value based on the first constraint, the second constraint, and the whole case temperature of the electronic device after being charged for a period of time at each charging current; the first constraint includes: the whole case temperature of the electronic device after a period of time is less than or equal to the second value; the second constraint includes: when the first constraint is met, the charging current value corresponding to the case where the electronic device has the most charged power within a period of time.

[0026] In this way, the temperature of the electronic device over a period of time can be predicted, and the charging current value can be obtained through temperature limit and charging power limit, so that the electronic device can meet the user's requirements for fast charging while meeting the user's temperature requirements.

[0027] In a possible implementation manner, the method further includes: obtaining a second current value according to a temperature error between the second value and a current entire casing temperature of the electronic device.

[0028] The charging current is adjusted according to the error between the target temperature and the current whole case temperature of the electronic device. In this way, the whole case temperature of the electronic device can be controlled within a certain range of the target temperature by temperature error feedback control, and the whole case temperature of the electronic device can be accurately controlled with a faster response speed.

[0029] In a possible implementation manner, the second current value is less than or equal to the first threshold and / or the second current value is greater than or equal to the second threshold, and the second threshold is less than the first threshold.

[0030] The first threshold value may correspond to the current upper limit value mentioned below; the second threshold value may correspond to the current lower limit value mentioned below, which is not specifically limited here. In this way, limiting the maximum value of the charging current can reduce the situation where the charging current is too large, thereby reducing the problems such as high battery temperature, shortened battery life, and battery expansion caused by excessive current, and improving charging safety. In addition, limiting the minimum value of the charging current can reduce the situation where the charging power is less than the power consumption, and reduce the situation where the electronic equipment loses power.

[0031] In a second aspect, an embodiment of the present application provides a charging device, which may be an electronic device or a chip or chip system in an electronic device. The charging device may include a display unit and a processing unit. When the charging device is an electronic device, the display unit may be a display screen. The display unit is used to perform the display step so that the electronic device implements a charging device method described in the first aspect or any possible implementation of the first aspect. When the charging device is an electronic device, the processing unit may be a processor. The charging device may also include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit so that the electronic device implements a charging device method described in the first aspect or any possible implementation of the first aspect. When the charging device is a chip or chip system in an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit so that the electronic device implements a charging device method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit (e.g., a register, a cache, etc.) in the chip, or a storage unit (e.g., a read-only memory, a random access memory, etc.) located outside the chip in the electronic device.

[0032] Exemplarily, the display unit is used to display an interface. The interface may be a first interface or a second interface.

[0033] The processing unit is used to execute steps such as adjusting the target temperature and adjusting the charging current according to the target temperature.

[0034] Exemplarily, the processing unit is used to adjust the target temperature of the electronic device from the first value to the second value in response to a user operation for instructing to adjust the target temperature when the target temperature is the first value. The processing unit is also used to adjust the first current value to the second current value according to the second value, the first current value is the value of the charging current corresponding to the first value, and the second current value is the value of the charging current corresponding to the second value; wherein, when the first value is greater than the second value, the first current value is greater than the second current value; or, when the second value is greater than the first value, the second current value is greater than the first current value.

[0035] In one possible implementation, in the constant current charging stage, when the first value is greater than the second value, the first current value is greater than the second current value; or, in the constant current charging stage, when the second value is less than the first value, the second current value is greater than the first current value.

[0036] In a possible implementation, the display unit is used to display a first interface, and the first interface includes: a first control; the first control is used to adjust the target temperature; and the user operation is an operation on the first control.

[0037] In a possible implementation manner, the user operation is a sliding operation; and the second value is determined according to the first value and a displacement of the sliding operation in the first direction.

[0038] In one possible implementation, the third value corresponds to the displacement of the sliding operation in the first direction; when the sum of the first value and the third value is greater than or equal to the first preset value, the second value is the first preset value; when the sum of the first value and the third value is less than or equal to the second preset value, the second value is the second preset value; when the sum of the first value and the third value is less than the first preset value and greater than the second preset value, the second value is the sum of the first value and the third value.

[0039] In a possible implementation, the appearance of the first control changes according to the target temperature indicated by the user operation.

[0040] In one possible implementation, before displaying the first interface, the processing unit is also used to respond to an operation for indicating access to a charging device; the display unit is also used to display a second interface, where the second interface is used to indicate charging in a first charging mode; the processing unit is specifically used to respond to a first operation on the second interface: the first interface is used to indicate charging in a second charging mode.

[0041] In a possible implementation, the second current value is determined according to the second value and a current overall case temperature of the electronic device.

[0042] In the embodiment of the present application, the second current value may be determined according to the second value and the current overall shell temperature of the electronic device by using an MPC algorithm, a PID algorithm or any other method, which is not specifically limited here.

[0043] In one possible implementation, the processing unit is further used to predict the whole case temperature of the electronic device after being charged for a period of time at each charging current value based on each pre-set charging current value and the current whole case temperature of the electronic device; the processing unit is further used to obtain the second current value based on the first constraint condition, the second constraint condition and the whole case temperature of the electronic device after being charged for a period of time at each charging current; the first constraint condition includes: the whole case temperature of the electronic device after a period of time is less than or equal to the second value; the second constraint condition includes: when the first constraint condition is met, the charging current value corresponding to the case where the electronic device has the most charged electricity within a period of time.

[0044] In this way, the temperature of the electronic device over a period of time can be predicted, and the charging current value can be obtained through temperature limit and charging power limit, so that the electronic device can meet the user's requirements for fast charging while meeting the user's temperature requirements.

[0045] In a possible implementation, the processing unit is further configured to obtain the second current value according to a temperature error between the second value and a current entire casing temperature of the electronic device.

[0046] In a possible implementation manner, the second current value is less than or equal to the first threshold and / or the second current value is greater than or equal to the second threshold, and the second threshold is less than the first threshold.

[0047] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.

[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instructions are stored. When the computer program or instructions are run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0049] In a fifth aspect, an embodiment of the present application provides a computer program product including a computer program. When the computer program runs on a computer, the computer executes the method described in the first aspect or any possible implementation manner of the first aspect.

[0050] In a sixth aspect, the present application provides a chip or a chip system, the chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, a pin or a circuit, etc.

[0051] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (such as a read-only memory, a random access memory, etc.).

[0052] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a charging mode switching interface in a possible design;

[0054] Figure 2 A schematic diagram of an interface involved in temperature rise regulation provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of an interface involved in temperature rise regulation provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of the software structure of an electronic device according to an embodiment of the present application;

[0057] Figure 5 A schematic diagram of a charging method provided in an embodiment of the present application;

[0058] Figure 6 A schematic diagram of a charging method provided in an embodiment of the present application;

[0059] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] 1. Normal charging mode

[0061] Normal charging mode is a charging method that provides power to electronic devices. In normal charging mode, electronic devices can use standard voltage and current parameters to charge the battery at a relatively low power.

[0062] In the embodiment of the present application, the normal charging mode may include: slow charging and fast charging. The power of slow charging is usually less than the power of fast charging. The voltage and current of slow charging are different from the voltage and current of fast charging.

[0063] Slow charging can be understood as charging according to the 1.2 version of the battery charging protocol (BC1.2). Exemplarily, the voltage of slow charging can be 5V, and the current of slow charging can be a charging current of 500 milliamperes (mA), 1 ampere (A), 1.5A or 2A.

[0064] Fast charging can be understood as charging according to super charge protocol (SCP), quick charge technology (quick charge), USB power delivery (USB PD) and other fast charging protocols. Taking SCP protocol as an example, the voltage and current of fast charging can be: 4.5V5A, 5V4.5A, 10V2.25A, 10V4A, 11V6A or 20V5A, etc., which are not specifically limited here.

[0065] 2. Extreme charging mode

[0066] The ultra-fast charging mode is a method of transmitting electric energy. In the ultra-fast charging mode, electronic devices can shorten the charging time by increasing the charging current and / or voltage. This mode usually relies on specific fast charging protocols (for example, SCP, PD, etc.) and technologies to input higher power into the battery in a short time to meet the user's demand for fast electric energy replenishment. The power of the ultra-fast charging mode is usually greater than the power of fast charging. It can also be understood that the voltage and current of the ultra-fast charging are greater than the voltage and current of the fast charging. In some embodiments, the ultra-fast charging mode may also be referred to as the turbo charging mode. No specific limitation is made here.

[0067] 3. Charging curve

[0068] A charge profile is a predetermined path or pattern of battery voltage, current or temperature changes over time during battery charging.

[0069] It is understandable that the charging process of an electronic device generally includes: constant current (CC) and constant voltage (CV) stages.

[0070] At the beginning of charging, electronic devices usually enter the constant current (can be referred to as constant current) charging stage (that is, the charging current remains constant). The charging curve in the constant current charging stage shows that the battery voltage gradually rises.

[0071] Exemplarily, when the battery voltage reaches a set maximum value (usually close to the rated voltage of the battery, but may also exceed the rated voltage), the electronic device switches from the constant current charging stage to constant voltage (can be referred to as constant voltage) charging. In this stage, the battery voltage usually remains unchanged, while the charging current gradually decreases. The charging curve in the constant voltage stage shows that the current gradually decreases over time until the battery is fully charged.

[0072] 4. The whole case temperature of the electronic equipment (can be referred to as the whole case temperature)

[0073] The whole casing temperature of the electronic device may be a temperature obtained by fitting the respective temperatures of multiple measurement points on the electronic device according to a preset fitting method. For example, the whole casing temperature of the electronic device may be an average value of the temperatures of multiple measurement points on the electronic device. The whole casing temperature of the electronic device may also be the maximum value of the temperatures of multiple measurement points on the electronic device. This is not specifically limited here.

[0074] Exemplarily, the multiple measurement points on the electronic device may include at least one measurement point located around a heat source on the electronic device and at least one measurement point away from the heat source. The charging circuit, charging chip, and system on chip (SoC) on the electronic device are all heat sources. The temperature of the measurement point can be determined based on the resistance value of a thermistor deployed at the measurement point. The thermistor can be a negative temperature coefficient (NTC) thermistor.

[0075] For example, the temperature of the measuring point can be obtained by calculating the resistance value of the thermistor at the measuring point. The temperature T of the measuring point satisfies the formula: T=1 / [ln(R T / R0) / M+1 / T0]. Among them, R T is the resistance value of the thermistor at the measuring point. R0 is the resistance value of the thermistor at the measuring point when the temperature at the measuring point is T0. M is a constant, and M is positively correlated with the temperature coefficient of the thermistor. T0=273.15+25.

[0076] Optionally, the temperature of the measuring point may also be determined based on the correspondence between resistance and temperature pre-stored in the electronic device, and the temperature corresponding to the resistance value of the thermistor at the temperature measuring point is determined as the temperature of the measuring point.

[0077] The whole casing temperature of the electronic device may also be calculated by using the thermal model in the following embodiments, etc., which is not specifically limited here.

[0078] 5. Other terms

[0079] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially identical functions and effects. For example, the first chip and the second chip are only used to distinguish between different chips, and their order of precedence is not limited. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different. In the embodiments of the present application, an example of a judgment situation of being equal is used for explanation, and the situation of being equal can also correspond to another judgment situation. No specific limitation is made here.

[0080] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0081] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0082] 6. Electronic equipment

[0083] The electronic device of the embodiment of the present application may include a handheld device with a charging function, a vehicle-mounted device, etc. For example, some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices (e.g., smart watches, smart glasses, smart bracelets or smart jewelry, etc.), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, internet of things (IoT), and the like. The present invention relates to terminal devices in an Internet of Things (IoT) system, terminal devices in a 5G network, or terminal devices in a future evolved public land mobile network (PLMN), etc., and the embodiments of the present application are not limited to this.

[0084] The electronic device in the embodiments of the present application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0085] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0086] At present, electronic devices can support fast charging mode and ultra-fast charging mode. When charging an electronic device, the user can control the electronic device to switch the charging mode according to the charging needs. For example, if the user wants to charge quickly, the electronic device can be controlled to charge in the ultra-fast charging mode; if the user feels that the temperature of the electronic device is high, the electronic device can be controlled to charge in the fast charging mode.

[0087] For example, Figure 1 Figure 1 is a schematic diagram of a charging mode switching interface in a possible design. Figure 1 As shown, the charging mode switching is triggered by the charging bubble as an example.

[0088] When an electronic device is connected to a charging device, the electronic device can enter Figure 1 The charging interface 1a shown in a of FIG. The charging interface 1a may include: a charging bubble 101 and a switching prompt 102 .

[0089] It should be understood that the access to the charging device in the embodiments of the present application can be accessed by wire, for example, connecting the electronic device and the charging device through a charging cable, or can be accessed by wireless, for example, placing the electronic device on a wireless charging device (for example, a charging stand, a mobile phone with a wireless charging function, etc.). No specific limitation is made here.

[0090] The charging bubble 101 is used to indicate that charging is in progress. A power indicator may also be displayed in the charging bubble 101. The power indicator is used to indicate the power level of the electronic device. The power indicator may be in the form of a percentage (e.g., 86.02%) or any other form, which is not specifically limited here.

[0091] The switching prompt 102 is used to prompt the user to switch the charging mode. For example, the switching prompt 102 may be "Press and hold the center of the screen to turn on the ultra-fast charging device, the temperature will rise."

[0092] The electronic device can respond to the user's long press operation on the charging bubble 101, switch the charging mode to the fast charging mode, and display Figure 1 The charging interface 1b shown in b in FIG. The charging interface 1b includes: a charging bubble 103 and a start prompt 104 .

[0093] The charging bubble 103 is used to indicate that charging is in progress. A power indicator may also be displayed in the charging bubble 103. The power indicator is used to indicate the power level of the electronic device. The power indicator may be in the form of a percentage (e.g., 88.30%) or any other form, which is not specifically limited here.

[0094] In some embodiments, the appearance of the charging bubble 103 is different from that of the charging bubble 101, for example, the size, outline, color, etc. of the charging bubble are different. In this way, the user can distinguish the charging mode by the charging bubble. Figure 1 As shown, the size of the charging bubble 103 may be larger than the size of the charging bubble 101 .

[0095] The start prompt 104 is used to prompt the user that the ultra-fast charging mode has been turned on. For example, the start prompt 104 may be "the temperature of the device will rise if the ultra-fast charging mode has been turned on".

[0096] In some embodiments, the electronic device may switch the charging mode to the fast charging mode in response to a user's long press operation on the charging bubble 103 .

[0097] However, users may feel that the temperature of the electronic device is high in the fast charging mode, while the charging speed is slow in the fast charging mode, which results in a poor user experience for the electronic device.

[0098] It should be noted that the temperature of the electronic device will rise during charging due to the conversion efficiency of the charging chip, the resistance of the path from the charging interface to the battery, and other reasons. The temperature rise of the electronic device will affect the battery life and charging efficiency of the electronic device. Therefore, the electronic device is charged according to the charging curve under the preset temperature rise, so that the temperature rise of the electronic device during charging is less than or equal to the preset temperature rise, reducing the situation where the charging temperature of the electronic device is too high.

[0099] It is understandable that the temperature rise of the charging curve is affected by the charging current. Since the user requirements for the fast charging mode and the ultra-fast charging mode are different, the charging current of the fast charging mode is usually smaller than the charging current of the ultra-fast charging mode, and thus the temperature rise of the charging curve used in the fast charging mode is smaller than the temperature rise of the charging curve used in the ultra-fast charging mode. The temperature rise of the charging curve refers to the change characteristics of the entire housing temperature of the electronic device over time during the charging process.

[0100] For example, the temperature rise of the charging curve adopted in the fast charging mode can be 12 degrees Celsius; the temperature rise of the charging curve adopted in the extreme charging mode can be 18 degrees Celsius, 16 degrees Celsius, etc.

[0101] It should be understood that in addition to the charging current during charging, the temperature of the entire housing of the electronic device will also be affected by the ambient temperature, the use of various functional modules, etc. Therefore, the electronic device will be provided with charging curves corresponding to different ambient temperatures, for example, a charging curve at an ambient temperature of 25 degrees, a charging curve at an ambient temperature of 35 degrees, and a charging curve at an ambient temperature of 40 degrees.

[0102] In the embodiment of the present application, each charging curve can be obtained by debugging the electronic device under a standard temperature box environment. Exemplarily, the charging curve corresponding to the fast charging mode may include: a charging curve with a temperature rise of 12 degrees Celsius for the whole casing temperature of the electronic device under an ambient temperature of 25 degrees, a charging curve with a temperature rise of 8 degrees Celsius for the whole casing temperature of the electronic device under an ambient temperature of 35 degrees, and a charging curve with a temperature rise of 5 degrees Celsius for the whole casing temperature of the electronic device under an ambient temperature of 40 degrees; the charging curve corresponding to the extreme charging mode may include: a charging curve with a temperature rise of 18 degrees Celsius for the whole casing temperature of the electronic device under an ambient temperature of 25 degrees, a charging curve with a temperature rise of 12 degrees Celsius for the whole casing temperature of the electronic device under an ambient temperature of 35 degrees, and a charging curve with a temperature rise of 8 degrees Celsius for the whole casing temperature of the electronic device under an ambient temperature of 40 degrees.

[0103] In view of this, the embodiments of the present application provide a charging method, an electronic device, a storage medium, and a chip system. The electronic device can obtain a suitable charging current for charging according to the target temperature indicated by the user and the temperature of the entire housing of the electronic device. In this way, the electronic device can automatically adjust the charging current according to the charging target temperature, and improve the charging speed as much as possible while meeting the temperature requirements of the user for the temperature of the entire housing of the electronic device.

[0104] For ease of understanding, the following Figures 2 to 4 The target temperature indicated by the user is described. In the embodiment of the present application, the target temperature can be obtained by summing the target temperature rise and the ambient temperature of the electronic device. The electronic device can adjust the target temperature by adjusting the target temperature rise.

[0105] In an embodiment of the present application, the target temperature rise can be adjusted by sliding on the charging interface, or by adjusting the position of the progress bar on the charging setting interface, or by any other method, which is not specifically limited here.

[0106] For example, Figure 2A schematic diagram of an interface involved in temperature rise regulation provided in an embodiment of the present application. Taking the charging bubble regulation in the charging interface as an example, the electronic device can display Figure 2 The charging interface 2a shown in a in FIG. The charging interface 2a includes: a charging bubble 201 and an opening prompt 202. The functions and forms of the charging bubble 201 and the opening prompt 202 can refer to the corresponding descriptions of the charging bubble 103 and the opening prompt 104, and will not be described in detail here.

[0107] The electronic device responds to the sliding operation of the user's finger on the charging interface 2a and determines the target temperature rise according to the displacement of the sliding operation.

[0108] Exemplarily, taking the case where an upward sliding operation corresponds to an increase in temperature rise and a downward sliding operation corresponds to a decrease in temperature rise, the target temperature rise may increase as the displacement of the sliding operation in the vertical upward direction increases, and the target temperature rise may decrease as the displacement of the sliding operation in the vertical downward direction increases.

[0109] In the embodiment of the present application, the maximum value of the target temperature rise is the temperature rise value of the charging curve corresponding to the extreme charging mode; the minimum value of the target temperature rise is the temperature rise value of the charging curve corresponding to the fast charging mode. For example, the temperature rise values ​​of the charging curve corresponding to the extreme charging mode at ambient temperatures of 25 degrees, 35 degrees and 40 degrees are 18, 12 and 8 respectively; the temperature rise values ​​of the charging curve corresponding to the fast charging mode at ambient temperatures of 25 degrees, 35 degrees and 40 degrees are 12, 8 and 5 respectively, then the target temperature rise ranges from 12 to 18 at an ambient temperature of 25 degrees; the target temperature rise ranges from 8 to 12 at an ambient temperature of 35 degrees; and the target temperature rise ranges from 5 to 8 at an ambient temperature of 40 degrees.

[0110] In some embodiments, a correspondence between the displacement of the sliding operation and the temperature rise change ratio is set in the electronic device. The temperature rise change ratio can be confirmed through this correspondence, and then the target temperature rise can be confirmed. Exemplarily, taking the temperature rise change ratio of each pixel (pixcel) as 1%, the current temperature rise (also referred to as the target temperature rise before adjustment) as 18, and the target temperature rise range as 12 to 18, if the vertical displacement of the sliding operation is -50 pixels, the temperature rise change ratio is -50%, the temperature rise change is -3, and the target temperature rise after the user operation (also referred to as the adjusted target temperature rise) is 15.

[0111] It should be understood that since the target temperature rise corresponds to a certain range, when the target temperature rise obtained according to the temperature rise change exceeds the target temperature rise range, the target temperature rise is the target temperature rise obtained according to the temperature rise change and the closest value in the target temperature rise range.

[0112] For example, if the temperature rise change ratio per pixel is 1%, the current temperature rise is 18, and the target temperature rise range is 12 to 18, if the vertical displacement of the sliding operation is 50 pixels, the temperature rise change ratio is 50%, the temperature rise change is 3, and the temperature rise obtained according to the sliding operation is 21. Since the temperature rise exceeds the target temperature rise range, the target temperature rise corresponding to this sliding operation is 18.

[0113] In some embodiments, the electronic device can also adjust the appearance of the charging bubble 201 according to the target temperature rise. In this way, the appearance of the charging bubble 201 can indicate the target temperature rise, and the user can roughly confirm the temperature and charging speed of the electronic device when charging according to the appearance of the charging bubble 201.

[0114] It should be understood that since the target temperature rise can be adjusted by the displacement of the sliding operation, the appearance of the charging bubble 201 can change with the displacement of the sliding operation.

[0115] In the embodiment of the present application, taking the sliding in the vertical upward direction corresponding to the temperature rise as an example, if the temperature rise is indicated by the more gradual filling of the charging bubble, the gradual filling in the charging bubble 201 can increase as the displacement of the sliding operation in the vertical upward direction increases (such as Figure 2 If the target temperature rise is indicated by the darkening of the overall color of the charging bubble 201, the filling color in the charging bubble 201 may gradually deepen as the displacement of the sliding operation in the vertical upward direction increases (as shown in FIG. Figure 2 (as shown in c in the figure).

[0116] In some other embodiments, the electronic device can also adjust the appearance of the charging bubble 201 according to the displacement of the sliding operation. The electronic device can determine the target temperature rise according to the appearance of the charging bubble. The specific adjustment method is similar to the above-mentioned target temperature rise adjustment method, and is not specifically limited here.

[0117] by Figure 2 Taking the gradient fill change shown in b in the figure, the temperature is 25 degrees as an example. If the electronic device is preset at the factory with no color gradient, the temperature rise is a℃, and the temperature rise is b℃ when the color gradient is fully covered with bubbles, then the temperature rise space that the user can adjust from no color, that is, 0% to 100% color is ba℃. Through the method of linear interpolation, it can be obtained that the temperature rise m of the user adjusting the color gradient to any point in the middle n% is: m=n×(ba)÷100+a. For example, if a is 12 and b is 18, there is room for 6 degrees of temperature rise adjustment. If the gradient animation is 30%, the target temperature rise that can be calculated using the linear interpolation method is 13.8℃, and the target temperature for charging the electronic device is 25+13.8, that is, 38.8℃.

[0118] It should be understood that in addition to the above-mentioned gradient fill changes and solid color fill changes as examples, the target temperature rise can also be indicated by any other way of appearance change, such as the size of the charging bubble, the thickness of the outline of the charging bubble, etc., which is not specifically limited here.

[0119] In addition to adjusting the target temperature rise through the sliding operation in the above charging interface, the electronic device can also adjust the target temperature rise through the battery setting interface, or adjust the target temperature rise in any other way.

[0120] Above Figure 2 In the illustrated embodiment, the electronic device can enter the extreme charging mode from the fast charging mode, and after entering the extreme charging mode, the target temperature rise can be adjusted and thus the target temperature can be adjusted; when charging in the fast charging mode, the electronic device cannot adjust the target temperature rise and thus the target temperature.

[0121] In other embodiments, the minimum temperature rise of the electronic device in the extreme charging mode is the temperature rise corresponding to the fast charging mode. After the electronic device is connected to the charging device, it can directly enter the extreme charging mode without going through the fast charging mode. In this way, there is no need to receive an operation for indicating the switching of the charging mode (for example, a long press of the charging bubble) on the charging interface. After the electronic device detects that the charging device is connected, the user can directly adjust the target temperature rise and then adjust the target temperature, reducing user operations.

[0122] For example, Figure 3 A schematic diagram of an interface involved in temperature rise regulation provided in an embodiment of the present application. The electronic device can display Figure 3 The desktop 3a shown in a in FIG. The desktop 3a includes: one or more application icons. For example, an icon 301 of a setting application. The one or more applications can be any application, which is not specifically limited here.

[0123] The electronic device can start the setting application and display the Figure 3 The setting interface 3b shown in b in FIG. The setting interface 3b includes: one or more setting items. The setting items may include: system and update, notification, biometrics and password, application, battery 302, storage, security, privacy, healthy use of mobile phone, etc.

[0124] The electronic device can respond to the user's click operation on the battery 302 by displaying Figure 3 The battery setting interface 3c shown in c in FIG. The battery setting interface 3c may include: one or more battery setting items. For example, low power mode, power display mode, charging settings 303, battery usage, etc.

[0125] The electronic device may display the charging setting 303 in response to the user's click operation. Figure 3The charging setting interface 3d shown in d in FIG. The charging setting interface 3d may include: a fast charging switch 304 and a progress bar 305. The fast charging switch 304 is used to control the electronic device to turn on or off the fast charging function. The progress bar 305 is used to adjust the target temperature rise.

[0126] The progress bar 305 may be a progress bar including a slider (as shown in the progress bar in the interface 3d), or may be a long strip progress bar (as shown in the progress bar in the interface 3d). Figure 3 ), or any other form of progress bar, which is not specifically limited here.

[0127] The progress bar 305 can be placed horizontally or vertically, or can be placed obliquely, etc. The embodiment of the present application does not specifically limit the placement position, placement method, color, etc. of the progress bar 305.

[0128] If the electronic device receives an operation of the user dragging the adjustment bar 305 to the left on the charging setting interface 3d, the electronic device lowers the target temperature rise; if the electronic device receives an operation of the user dragging the adjustment bar 305 to the right on the charging setting interface 3d, the electronic device raises the target temperature rise. The range of the target temperature rise can refer to the corresponding description above and is not specifically limited here.

[0129] In some embodiments, the parameter corresponding to the progress bar 305 can be a target temperature rise at any ambient temperature, a ratio corresponding to the target temperature rise, or a target temperature at any ambient temperature. Taking the target temperature rise as m as an example, the ratio corresponding to the target temperature rise can be expressed as (ma) ÷ (ba); where b is the maximum value corresponding to the target temperature rise; and a is the minimum value corresponding to the target temperature rise.

[0130] For example, taking the ambient temperature of 25 degrees as an example, if the parameter corresponding to the progress bar is the target temperature rise, the range corresponding to the progress bar is 12 to 18; if the parameter corresponding to the progress bar is the temperature rise ratio, the range corresponding to the progress bar is 0 to 100%; if the parameter corresponding to the progress bar is the target temperature, the range corresponding to the progress bar is 37 to 43. If the progress bar indicates half as an example, the target temperature rise of the electronic device during high-speed charging can be 15, the temperature rise ratio is 0.5, and the target temperature is 40.

[0131] It should be understood that the target temperature is obtained by the target temperature rise, so the progress bar 305 can also be understood as being used to adjust the target temperature. In addition, the charging speed of the electronic device corresponds to the target temperature rise, so the progress bar 305 can also be understood as being used to adjust the charging speed. This is not specifically limited here.

[0132] It should be understood that the progress bar 305 is a control for adjusting the target temperature rise, and the same function can be achieved through any other control, such as an input box, etc. Exemplarily, if the electronic device receives an operation in which the user enters a value in the input box, the electronic device can adjust the target temperature rise according to the value.

[0133] It is understandable that if the electronic device supports the above two methods to adjust the target temperature rise, the target temperature rise indicated by the progress bar is the same as the target temperature rise indicated by the bubble appearance, and the embodiment of the present application does not limit the specific form of the above interface. Through the above two methods, the electronic device can support continuous adjustment of the target temperature rise, which can also be understood as continuous adjustment of the target temperature, and can also be understood as continuous adjustment of the charging speed.

[0134] It is understandable that after the electronic device adjusts the target temperature rise through the charging setting, the electronic device can default to charging according to the target temperature rise when charging in the extreme charging mode subsequently. In some embodiments, the electronic device can default to charging according to the target temperature rise used during the last charging, and the electronic device can also default to charging according to the maximum temperature rise. The embodiment of the present application does not limit the temperature rise used by default when entering the extreme charging mode each time charging.

[0135] It should be understood that the above Figure 2 and Figure 3 The interface shown is only an example, and the interface may include more or less content, which is not specifically limited here. Figure 2 and Figure 3 The interface for adjusting the target temperature rise (e.g., charging interface, charging setting interface), the user operation that triggers the target temperature rise adjustment, etc. shown are only examples, and the user operation that triggers the target temperature rise adjustment can also be achieved through any other type of user operation (e.g., clicking on a control for indicating a temperature increase, entering a temperature in an input box, etc.), and is not specifically limited here. Figure 2 and Figure 3 The interface changes for adjusting the target temperature rise shown are only examples, and the target temperature may also be indicated by changing the background color of the interface, displaying the target temperature, or in any other manner. No specific limitation is made here.

[0136] Above Figure 2 and Figure 3 The adjustment method of the target temperature rise and the confirmation of the target temperature rise are explained, and the adjustment of the charging current is explained below.

[0137] In the embodiment of the present application, the electronic device can adjust the charging current according to the target temperature (which can also be the target temperature rise) and the current temperature of the entire housing of the electronic device.

[0138] In possible implementation method 1, the electronic device can predict the whole case temperature of the electronic device after a period of time under different charging currents through the target temperature and the current whole case temperature of the electronic device; and obtain the target current value through the target temperature, the predicted whole case temperature and the constraint condition. The target current value is the value of the adjusted charging current. In this way, the predicted whole case temperature of the electronic device in the future can be limited to not exceed the target temperature, which can reduce the situation where the whole case temperature of the electronic device exceeds the target temperature during charging, and improve the user experience.

[0139] Exemplarily, the electronic device may adjust the charging current by using a model predictive control (MPC) algorithm.

[0140] The following takes the MPC algorithm as an example to illustrate the adjustment process of the charging current.

[0141] In the embodiment of the present application, the MPC algorithm can realize the prediction of the whole housing temperature of the electronic device in the future under different charging currents by combining the thermal model of different charging scenarios of the electronic device under the premise of determining the target temperature. The target current value is obtained from different charging currents through constraints.

[0142] In the embodiment of the present application, the thermal model of the electronic device established in the MPC algorithm may be: .

[0143] Among them, T is the temperature of the electronic device after time t, t is the time, T0 is the current temperature of the entire housing of the electronic device, and I represents the charging current. U1 to Un represent the heat generated by each possible working module in the electronic device. U1 to Un can correspond to modules such as processors, memory, and cameras respectively; B0 is the coefficient corresponding to the charging current, and B1 to Bn are the coefficients corresponding to each module. In specific scenarios, the coefficients of B1 to Bn may be zero. For example, in the standby charging scenario, the coefficients of parameters such as storage and camera can be 0, which can be divided according to different scenarios. It can be collectively referred to as heat generated inside electronic equipment.

[0144] It should be understood that A, and B0 to B1 in the above thermal model can be obtained by fitting and solving the coefficients of the above parameters in actual tests of different scenarios, or by any other means. For example, fitting and solving can be performed by the least squares method, which is not specifically limited here.

[0145] In addition, the control variable in the above thermal model is the charging current I, and the heat caused by the remaining power consumption is usually a constant.

[0146] It is understandable that the above thermal model can be used to predict the temperature of the entire housing of the electronic device after the time t at different charging currents I. The time t can be 30 seconds, 1 minute, 90 seconds or any value, which is not specifically limited here.

[0147] In the embodiment of the present application, the constraint conditions include: a maximum temperature limit, that is, the temperature of the electronic device after a time period t is less than or equal to a target temperature; based on the constraint conditions and the above thermal model, one or more charging current values ​​that meet the constraint conditions can be obtained.

[0148] It should be understood that since the user's demand in the extreme charging mode is mainly based on the charging speed, the charging current value corresponding to the maximum charging amount in the future period of time can be selected. For example, taking the temperature of the predicted time t as an example, the maximum value of the one or more charging current values ​​can be used as the output of the MPC algorithm, that is, the target current value. The subsequent electronic device can control the charging current to be the target current value.

[0149] In this way, under the same target temperature (which can also be understood as the same temperature rise), the integral of current over time can be maximized, so that the electronic device can be charged with the most electricity and the charging speed is fast. In addition, since the constraint condition stipulates that the temperature of the entire housing within a period of time in the future is less than or equal to the target temperature, the temperature overshoot can be reduced.

[0150] It should be understood that the above embodiment is described by predicting the whole case temperature corresponding to the time length t in the future. The MPC algorithm can predict the whole case temperature corresponding to multiple time lengths in the future. Then the MPC algorithm can select the charging current value corresponding to the first time length in the case where the charging power is the largest among the multiple time lengths as the target current value.

[0151] For example, taking the prediction of the whole casing temperature corresponding to three time periods in the future as an example, if the current moment is the zeroth moment, the moments after the three time periods are the first moment, the second moment and the third moment respectively, the time interval between the first moment and the zeroth moment is the time length t1; the time interval between the second moment and the first moment is the time length t2; the time interval between the third moment and the second moment is the time length t3.

[0152] The MPC algorithm can input the duration t1 and the whole case temperature of the electronic device at the zeroth moment into the above-mentioned thermal model to predict the whole case temperature at the first moment corresponding to each charging current; input the duration t2 and the predicted whole case temperature at the first moment corresponding to each charging current into the above-mentioned thermal model to predict the whole case temperature at the second moment corresponding to each charging current; input the duration t3 and the whole case temperature at the second moment corresponding to each charging current into the above-mentioned thermal model to predict the whole case temperature at the third moment corresponding to each charging current.

[0153] The MPC algorithm obtains the target current value according to the above constraints and the predicted whole housing temperature. Specifically, the electronic device can select the charging current value corresponding to the first moment in the charging situation with the largest charging amount from the current moment to the third moment as the target current value.

[0154] Exemplarily, taking three charging current values ​​as an example, the MPC algorithm can predict three whole machine case temperatures at the first moment; then based on the three charging currents and the three whole machine case temperatures at the first moment, nine whole machine case temperatures at the second moment are predicted; and based on the three charging currents and the nine whole machine case temperatures at the second moment, 27 whole machine case temperatures at the third moment are predicted.

[0155] The electronic device has 27 charging conditions (charging curves) corresponding to the first moment to the third moment, and the charging current value corresponding to the zeroth moment to the first moment in the situation with the largest charging amount among the 27 charging conditions is selected as the target current value.

[0156] Exemplarily, taking the charging current values ​​as A1, A2 and A3 respectively, if the maximum charging amount is: charging to the first moment according to A2, then charging to the second moment according to A1, and then charging to the third moment according to A3, then the target current value is A2.

[0157] It should be understood that the electronic device can predict the temperature of at least one moment in the future according to the performance limit of the electronic device. For example, the electronic device can predict the temperature of the entire housing corresponding to 3 moments, 7 moments, or any other number of moments. No specific limitation is made here.

[0158] Based on the above embodiment, the constraint condition may further include: a current limiting condition. The current limiting condition may include one or more of the following: a maximum charging current limiting condition or a minimum charging current limiting condition.

[0159] Specifically, the maximum charging current limit condition is that the charging current is less than or equal to the current upper limit value. The minimum charging current limit condition is that the charging current is greater than or equal to the current lower limit value. The current upper limit value is greater than the current lower limit value.

[0160] The upper current limit may be 10A, 20A or any value, and the lower current limit may be 1A, 2A or any value, which are not specifically limited here.

[0161] In this way, limiting the maximum value of the charging current can reduce the situation where the charging current is too large, thereby reducing the problems of high battery temperature, shortened battery life, battery expansion, etc. caused by excessive current, and improving charging safety. In addition, limiting the minimum value of the charging current can reduce the situation where the charging power is less than the power consumption, and reduce the situation where the electronic equipment loses power.

[0162] In addition to the above constraints of maximum temperature and charging current, the constraints may also include other constraints, such as battery life, etc. No specific limitation is given here. In this way, the electronic device can be safely charged under the constraints.

[0163] In the embodiment of the present application, the electronic device can be constrained according to the current limiting condition at any time before outputting the target current value. The embodiment of the present application does not specifically limit the timing of using the current limiting condition.

[0164] For example, the electronic device can limit the charging current used to predict the entire housing temperature of the electronic device in the future according to the current limiting condition. In this way, before predicting the entire housing temperature of the electronic device in the future, limiting the charging current can reduce the amount of charging current, reduce the number of predictions, improve the speed of the MPC algorithm, and shorten the time to obtain the target current value.

[0165] Electronic devices can also exclude some charging conditions (charging curves) according to current limiting conditions. In this way, before calculating the charging power corresponding to each charging condition, the charging current is limited, which can exclude some charging conditions, reduce the calculation of charging power, improve the speed of the MPC algorithm, and shorten the time to obtain the target current value.

[0166] The electronic device may also adjust the charging current value after selecting the charging current value corresponding to the case where the charging amount is the largest.

[0167] In an embodiment of the present application, the electronic device can use the above-mentioned MPC algorithm to re-determine the target current value at a certain time interval to adjust the charging current. The time interval can be 30 seconds, 1 minute or any time interval, which is not specifically limited here. For example, taking the prediction of the temperature for the next three time periods as an example, at the zeroth moment, the temperature at the first moment, the second moment and the third moment can be predicted; and the charging current value I1 from the zeroth moment to the first moment is obtained according to the above-mentioned constraints;

[0168] At the first moment, the temperature at the second moment, the third moment, and the fourth moment can be predicted; and the charging current value I2 from the first moment to the second moment can be obtained according to the above constraints. At the second moment, the temperature at the third moment, the fourth moment, and the fifth moment can be predicted; and the charging current value I3 from the second moment to the third moment can be obtained according to the above constraints. Repeat this process until the charging process is completed.

[0169] In summary, the MPC algorithm can realize multivariable processing and constraint processing. Multivariable processing can be understood as the MPC algorithm can consider multiple input and output variables (for example, temperature, voltage, charging current, etc.) at the same time; constraint processing can be understood as the MPC can handle the constraints when charging electronic devices, such as maximum current limit, temperature limit, etc., so that the charging process is carried out within a safe range and the entire housing temperature of the electronic device is reduced to exceed the target temperature during charging. In addition, the MPC algorithm has good dynamic adaptability and can dynamically adjust the control strategy according to real-time data to adapt to changes in battery status and environmental conditions.

[0170] In possible implementation method 2, the electronic device can also monitor the temperature error between the target temperature and the current whole casing temperature of the electronic device, and obtain the adjustment amount of the charging current according to the temperature error, and then determine the target current value. The embodiment of the present application does not specifically limit the adjustment process of the charging current. In this way, the charging current value can be adjusted in real time according to the current whole casing temperature of the electronic device, which can reduce the situation where the whole casing temperature of the electronic device exceeds the target temperature during charging, thereby improving the user experience.

[0171] Exemplarily, the electronic device can monitor the temperature error between the target temperature and the current whole case temperature of the electronic device through a proportional-integral-derivative (PID) algorithm, and obtain an adjustment amount of the charging current according to the temperature error, thereby determining the target current value.

[0172] Exemplarily, the PID algorithm performs weighted calculation on the temperature error, the accumulated value of the temperature error over time, the rate of change of the temperature error, etc., to obtain the target current value. Among them, the temperature error, the accumulated value of the temperature error over time, and the rate of change of the temperature error can correspond to the proportional gain coefficient Kp, the integral gain coefficient Ki, and the differential gain coefficient Kd, respectively.

[0173] Specifically, the PID algorithm can weight the temperature error by the proportional gain coefficient Kp to obtain the first adjustment amount. The first adjustment amount can provide an immediate charging current adjustment so that the target current value can respond quickly to the temperature deviation. The PID algorithm can weight the accumulated value of the temperature error over time by the integral gain coefficient Ki to obtain the second adjustment amount. The second adjustment amount can eliminate the steady-state error of the electronic device so that the temperature of the entire housing of the electronic device is relatively stable. The PID algorithm can weight the rate of change of the temperature error by the differential gain coefficient Kd to obtain the third adjustment amount. The third adjustment amount can provide predictive adjustment to reduce the oscillation of the temperature of the entire housing of the electronic device to improve the temperature stability. The PID algorithm can add the first adjustment amount, the second adjustment amount and the third adjustment amount to obtain the current adjustment amount. Then the target current value is obtained according to the current charging current value and the current adjustment amount.

[0174] It is understandable that the PID algorithm can adjust the temperature error according to the three parameters of proportion, integration and differentiation, and can achieve accurate control of the temperature of the entire housing of the electronic device. The PID algorithm can also quickly respond to the temperature deviation of the electronic device when charging, and the adjustment speed is fast. In addition, the PID algorithm has a small amount of calculation and can be applied to electronic devices with various computing capabilities, with a wide range of applications.

[0175] It should be understood that the above-mentioned PMC algorithm and PID algorithm can also be replaced by any other algorithm that can achieve the same function, which is not specifically limited here.

[0176] In other embodiments, the electronic device may also be provided with charging curves corresponding to different temperature rises. During the extremely fast charging process, the electronic device may also be charged according to the charging curve of the target temperature rise corresponding to the target temperature.

[0177] It should be noted that battery charging usually corresponds to two processes: constant voltage charging and constant current charging. Specifically, during the battery charging process, the electronic device first charges the battery with a fixed current until the battery voltage reaches the charging cut-off voltage. When the battery voltage reaches the charging cut-off voltage, the electronic device controls the battery to maintain the charging cut-off voltage and gradually reduces the charging current until the charging current is less than or equal to the charging cut-off current.

[0178] It should be understood that since the charging current of the electronic device is small during the constant voltage charging stage, the rate of heat generation is relatively low, and the temperature of the electronic device is less affected, the charging current may not be adjusted according to the target temperature. For example, the control of the charging current in the embodiment of the present application may not be used during the constant voltage charging stage, but may be used during the constant current charging stage where the current is controllable.

[0179] In order to better understand the embodiments of the present application, Figure 4 The software structure of the electronic device according to the embodiment of the present application is introduced.

[0180] The operating system of the electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, namely the application layer (applications), the application framework layer (application framework), the system native library (called the Native layer), the hardware abstraction layer (HAL) and the kernel layer (kernel). For ease of explanation, Figure 4 The hardware layer that interacts with the above software structure is also reflected.

[0181] It should be noted that the Android system is an operating system based on Linux, mainly used for portable devices. The development of upper-layer applications (such as the application layer and application framework layer) in the Android system is generally completed based on Java. Since some low-level tasks are not easy to implement in Java, when it comes to tasks such as local services, link libraries or hardware drivers, it is usually necessary to allow C programs to implement them, and C programs run in the system Native library. The system Native library includes an interface for Java to call C++ code.

[0182] The application layer may include a series of application packages. For example, the application layer may include a setting application and other applications, which is not limited in any way in the embodiments of the present application.

[0183] The application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes some predefined functions, which are not limited in any way in the embodiments of the present application.

[0184] Exemplarily, the application framework layer may include a power management service (PMS) module, which can be used to manage power and functions in electronic devices such as triggering screen on or off, brightness adjustment, low power mode, etc., and can also be used to issue control policies to the application layer.

[0185] The Native layer may include multiple functional modules. In the embodiment of the present application, the Native layer includes a surface drawing (SurfaceFlinger) service module. Among them, the function of the SurfaceFlinger service module is to accept graphic display data from multiple sources, synthesize them, and then send them to the display device. The image display can be specifically completed by multiple classes such as SurfaceFlinger, HWC, display screen, etc.

[0186] In the embodiment of the present application, the Native layer also includes an input subsystem. The input subsystem is one of the important system services in the Android operating system, which is dedicated to processing various external input signals of input devices. Input devices include: display screen, keyboard, mouse, etc.

[0187] Taking the user input of the touch screen as an example, after the screen is touched, the corresponding hardware driver (such as the touch screen driver at the kernel layer) will be triggered. After the touch screen driver receives the touch screen event, it will write the touch screen event to the corresponding input device node. Then the input subsystem will read the touch screen event from the input device node, and then pass the touch screen event up layer by layer until the touch screen event is passed to the corresponding activity.

[0188] The HAL layer may include a hardware composition module (hwcomposer, HWC), which has the function or ability to use hardware to combine and display image data, providing hardware support for the SurfaceFlinger service.

[0189] The kernel layer is a layer between hardware and software. Its role is to pass application requests to the hardware. The kernel layer provides the most basic functions of the operating system. Usually, the kernel layer provides system services such as process management, interrupt response, memory management, network and inter-process communication.

[0190] In the embodiment of the present application, the core layer includes a display driver, a touch panel (TP) driver and a power driver.

[0191] The display driver is used to drive the display screen to display any of the above interfaces. The TP driver is used to receive touch screen events sent by the touch screen sensor of the display screen, report the touch screen events to the input subsystem, and pass the touch screen events to the display driver to trigger the display driver to execute the display screen power-on process. The power driver can obtain the target temperature rise (or target temperature) according to the position indicated by the touch event, and then adjust the charging current according to the target temperature rise (which can also be the target temperature) and the current target current value of the entire housing temperature of the electronic device, thereby realizing the control of the charging process in the ultra-fast charging scenario.

[0192] The hardware layer may include a display screen (such as OLED or LCD), a touch screen sensor, and a charging chip. When a user clicks or touches the display screen, the touch screen sensor of the display screen can sense the user's touch screen operation and determine that there is a touch screen event. The touch screen sensor of the display screen can send the touch screen event to the TP driver. The charging chip can also be called a charging management module.

[0193] It should be noted that although the embodiment of the present application is described by taking the Android system as an example, its basic principle is also applicable to electronic devices based on operating systems such as iOS or Windows. The execution subject of the control method provided in the embodiment of the present application can be the above-mentioned electronic device, or it can be a functional module and / or functional entity in the electronic device that can implement the control method, and the embodiment of the present application can be implemented by hardware and / or software, which can be determined according to actual use requirements, and the embodiment of the present application is not limited.

[0194] The following is an example of the workflow of electronic device software and hardware, using the scenario of temperature rise regulation (also called target temperature regulation).

[0195] Electronic devices can receive user operations such as single clicks or touches on the display screen through the TP driver, that is, the TP driver can sense touch screen events. The TP driver passes the touch screen events to the input subsystem, and then the input subsystem passes the touch screen events to various services in the framework layer (for example, the power management service).

[0196] The power management service can send a touch screen event to the power driver. The power driver can determine the target temperature rise (or target temperature) based on the position indicated by the touch screen event, and obtain the charging current value based on the automatic charging control algorithm. The power driver can control the charging chip to adjust the charging current based on the charging current value.

[0197] For example, Figure 5 A schematic diagram of a charging method provided in an embodiment of the present application. Taking the charging current value obtained by the MPC algorithm as an example, Figure 5 As shown, the method includes: connecting the electronic device to a charging device;

[0198] S501: Receive a user operation for instructing to adjust a target temperature.

[0199] The user operation for indicating the adjustment of the target temperature can also be understood as the user operation for indicating the adjustment of the target temperature rise. The user operation can be a sliding operation on the charging bubble, a sliding operation on the progress bar, a voice operation for indicating the adjustment of the target temperature, or any other type of operation, which is not specifically limited here.

[0200] Exemplarily, the TP driver may receive user operations and transmit touch screen events to the power driver through the input subsystem and the power management service.

[0201] S502: In response to a user operation, an adjusted target temperature is obtained according to a position indicated by the user operation.

[0202] The user operation may be the above-mentioned sliding operation on the charging bubble, the above-mentioned sliding operation on the adjustment progress bar, or a voice operation for indicating the adjustment of the temperature rise ratio, etc., which is not specifically limited here.

[0203] The calculation method of the target temperature can refer to the above Figure 2 or Figure 3 The corresponding description of the target temperature is not described in detail here.

[0204] Exemplarily, the power driver may obtain an adjusted target temperature according to the position indicated by the touch screen event.

[0205] S503: Adjust the charging current according to the adjusted target temperature.

[0206] Exemplarily, the power driver can obtain a target current value according to the adjusted target temperature, and then adjust the charging current to the target current value. In some embodiments, an automatic charging control algorithm is provided in the power driver. The automatic charging control algorithm can adjust the charging current of the electronic device according to the target temperature.

[0207] S503 may include: S31 to S33.

[0208] S31: Is it in the constant current charging stage?

[0209] Exemplarily, the power driver confirms whether the electronic device is in a constant current charging stage.

[0210] The electronic device can determine whether it is in the constant current charging stage by the battery power, the battery voltage or any other method. Exemplarily, when the battery power is less than threshold A, the electronic device is in the constant current charging stage; when the battery power is greater than or equal to threshold A, the electronic device is not in the constant current charging stage. Threshold A can be 80% of the battery power when fully charged, 90% of the battery power when fully charged, or any value, which is not specifically limited here. When the battery voltage is less than threshold B, the electronic device is in the constant current charging stage; when the battery voltage is greater than or equal to threshold B, the electronic device is not in the constant current charging stage. Threshold B can be 80% of the battery voltage when fully charged, 90% of the battery voltage when fully charged, or any value, which is not specifically limited here.

[0211] If the electronic device is in the constant current charging stage, S32 is executed; if the electronic device is not in the constant current charging stage, the charging current may not be adjusted according to the target temperature. For example, charging is performed according to a preset charging strategy.

[0212] S32. Obtain a target current value according to the target temperature and the automatic charging control algorithm.

[0213] Taking the above MPC algorithm as an example, S32 may include: S32-1 and S32-2.

[0214] S32-1. According to constraint condition 1 and the thermal model in the MPC algorithm, predict the entire casing temperature of the electronic device at three moments in the future.

[0215] Constraint condition 1 includes: the charging current is less than or equal to the current upper limit value, and / or the charging current is greater than or equal to the current lower limit value.

[0216] The upper current limit can be 10A, 20A or any value, which is not specifically limited here.

[0217] In this way, limiting the maximum value of the charging current can reduce the situation where the charging current is too large, thereby reducing problems such as high battery temperature, shortened battery life, battery expansion, etc. caused by excessive current, thereby improving charging safety.

[0218] The current lower limit value can be 1A, 2A or any value, which is not specifically limited here.

[0219] In this way, limiting the minimum value of the charging current can reduce the situation where the charging power is less than the power consumption, and reduce the power loss of the electronic device when charging.

[0220] S32-2, obtaining a target current value according to constraint condition 2 and the predicted whole casing temperature.

[0221] Constraint 2 includes: the predicted temperatures are all less than or equal to the target temperature; and the charging current corresponds to the maximum charging capacity.

[0222] S32-1 and S32-2 may specifically refer to the description of the adjustment of the charging current by the above-mentioned PMC algorithm, which will not be described in detail here.

[0223] Taking the above PID algorithm as an example, S32 may include: S32-3 and S32-4.

[0224] S32-3. Obtain an adjustment amount of the charging current according to a temperature error between the target temperature and the current entire housing temperature of the electronic device.

[0225] S32-4. Obtain a target current value according to the adjustment amount of the charging current and the current charging current value.

[0226] S32-3 and S32-4 may specifically refer to the description of the adjustment of the charging current by the above-mentioned PID algorithm, which will not be described in detail here.

[0227] S33, the electronic device adjusts the charging current value to the target current value. The electronic device adaptively charges the battery according to the target current value.

[0228] After executing S33, the electronic device may repeatedly execute S31 to S33 at a certain time interval until the electronic device is not in the constant current charging stage or the charging is completed. The certain time interval may be 30 seconds, 60 seconds, or any time interval, which is not specifically limited here. In this way, the charging current can be adjusted at a certain time interval.

[0229] In this way, the charging current can be adjusted according to the target temperature adjusted by the user, reducing the situation where the entire housing temperature of the electronic device exceeds the target temperature during charging, thereby meeting the user's temperature requirements for the electronic device.

[0230] For example, Figure 6 A schematic diagram of a charging method provided in an embodiment of the present application. Figure 6 As shown, the charging method includes:

[0231] S601: When the target temperature is a first value, in response to a user operation for instructing to adjust the target temperature, adjust the target temperature of the electronic device from the first value to a second value.

[0232] It is understandable that the first value can be the target temperature value determined when the target temperature was last adjusted, or it can be a default value, for example, the maximum value of the target temperature or the target temperature value determined in the charging setting interface described below, which is not specifically limited here.

[0233] S602: Adjust the first current value to a second current value according to the second value.

[0234] The first current value is the value of the charging current corresponding to the first value, and the second current value is the value of the charging current corresponding to the second value; wherein, when the first value is greater than the second value, the first current value is greater than the second current value; or, when the second value is greater than the first value, the second current value is greater than the first current value.

[0235] In this way, the charging current can be flexibly adjusted according to the target temperature indicated by the user to meet the user's requirements for temperature and charging speed of the electronic device.

[0236] In one possible implementation, in the constant current charging stage, when the first value is greater than the second value, the first current value is greater than the second current value; or, in the constant current charging stage, when the second value is less than the first value, the second current value is greater than the first current value.

[0237] In this way, the charging current value is adjusted according to the second value during the constant current charging stage.

[0238] In a possible implementation, a first interface is displayed, and the first interface includes: a first control; the first control is used to adjust the target temperature; and the user operation is an operation on the first control.

[0239] The first interface may be any interface that can adjust the target temperature (or target temperature rise), such as the charging interface, charging setting interface, etc., which are not specifically limited here. The first control may be any interface that can adjust the target temperature (or target temperature rise), such as the charging bubble, progress bar, etc., which are not specifically limited here. The user operation may be a click, a slide, or any type of operation, which are not specifically limited here.

[0240] This provides an intuitive user interface where the user can adjust the target temperature via controls.

[0241] In a possible implementation manner, the user operation is a sliding operation; and the second value is determined according to the first value and a displacement of the sliding operation in the first direction.

[0242] The first direction may be a vertically upward direction or a horizontally rightward direction, which is not specifically limited here. In this way, the target temperature can be adjusted in real time following the sliding operation, responding to the user operation in real time, and improving the user experience.

[0243] In one possible implementation, the third value corresponds to the displacement of the sliding operation in the first direction; when the sum of the first value and the third value is greater than or equal to the first preset value, the second value is the first preset value; when the sum of the first value and the third value is less than or equal to the second preset value, the second value is the second preset value; when the sum of the first value and the third value is less than the first preset value and greater than the second preset value, the second value is the sum of the first value and the third value.

[0244] The first preset value may be a target temperature corresponding to the electronic device in the extreme charging mode, for example, 43 degrees, 47 degrees, 48 ​​degrees, etc.; the second preset value may be a target temperature corresponding to the fast charging mode, for example, 27 degrees, 43 degrees, 45 degrees, etc. No specific limitation is made here.

[0245] In this way, setting the target temperature within a certain range can reduce the situation where the target temperature is too high or too low, and reduce the charging safety problems caused by the target temperature being too high or too low.

[0246] In a possible implementation, the appearance of the first control changes according to the target temperature indicated by the user operation.

[0247] The appearance includes but is not limited to: outline, size, background color, fill color, etc. In this way, the target temperature is indicated by the appearance of the first control, providing intuitive visual feedback, which facilitates the user to better understand and adjust the target temperature.

[0248] In one possible implementation, before displaying the first interface, the method also includes: in response to an operation for indicating access to a charging device, displaying a second interface, the second interface being used to indicate charging in a first charging mode; displaying the first interface includes: in response to a first operation on the second interface, displaying the first interface: the first interface being used to indicate charging in a second charging mode.

[0249] The second interface may correspond to the charging interface corresponding to the fast charging described below. The first charging mode may correspond to the fast charging mode described below; the second charging mode may correspond to the fast charging mode described below. The first operation may be any operation for indicating switching the charging mode, such as long pressing the charging bubble, sliding operation, etc., which is not specifically limited here.

[0250] In a possible implementation, the second current value is determined according to the second value and a current overall case temperature of the electronic device.

[0251] In the embodiment of the present application, the second current value may be determined according to the second value and the current overall shell temperature of the electronic device by using an MPC algorithm, a PID algorithm or any other method, which is not specifically limited here.

[0252] In a possible implementation, the method also includes: predicting the whole case temperature of the electronic device after being charged for a period of time at each charging current value based on pre-set charging current values ​​and the current whole case temperature of the electronic device; obtaining a second current value based on the first constraint, the second constraint, and the whole case temperature of the electronic device after being charged for a period of time at each charging current; the first constraint includes: the whole case temperature of the electronic device after a period of time is less than or equal to the second value; the second constraint includes: when the first constraint is met, the charging current value corresponding to the case where the electronic device has the most charged power within a period of time.

[0253] In this way, the temperature of the electronic device over a period of time can be predicted, and the charging current value can be obtained through temperature limit and charging power limit, so that the electronic device can meet the user's requirements for fast charging while meeting the user's temperature requirements.

[0254] In a possible implementation manner, the method further includes: obtaining a second current value according to a temperature error between the second value and a current entire casing temperature of the electronic device.

[0255] The charging current is adjusted according to the error between the target temperature and the current whole case temperature of the electronic device. In this way, the whole case temperature of the electronic device can be controlled within a certain range of the target temperature by temperature error feedback control, and the whole case temperature of the electronic device can be accurately controlled with a faster response speed.

[0256] In a possible implementation manner, the second current value is less than or equal to the first threshold and / or the second current value is greater than or equal to the second threshold, and the second threshold is less than the first threshold.

[0257] The first threshold value may correspond to the current upper limit value mentioned below; the second threshold value may correspond to the current lower limit value mentioned below, which is not specifically limited here. In this way, limiting the maximum value of the charging current can reduce the situation where the charging current is too large, thereby reducing the problems such as high battery temperature, shortened battery life, and battery expansion caused by excessive current, and improving charging safety. In addition, limiting the minimum value of the charging current can reduce the situation where the charging power is less than the power consumption, and reduce the situation where the electronic equipment loses power.

[0258] It should be noted that the module names involved in the embodiments of the present application can be defined as other names as long as the functions of each module can be achieved, and there is no specific restriction on the names of the modules.

[0259] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0260] The charging method of the embodiment of the present application has been described above, and the device for executing the above method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the above method.

[0261] The charging method provided in the embodiment of the present application can be applied to electronic devices with charging functions. The electronic devices include terminal devices, and the specific device form of the terminal device can refer to the above related descriptions, which will not be repeated here.

[0262] An embodiment of the present application provides an electronic device, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the above method.

[0263] For example, Figure 7 The hardware structure diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0264] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0265] The processor 110 may include one or more processing units. Among them, different processing units may be independent devices or integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data. For example, the processor 110 is used to store instructions and data related to the charging method provided in the embodiment of the present application. The processor 110 is used to implement the charging method provided in the embodiment of the present application.

[0266] The processor 110 may include multiple processor cores, each of which may independently execute instructions and process data. The multiple processor cores may share some resources, such as cache, memory controller, and I / O interface.

[0267] In some embodiments, the electronic device implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0268] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device.

[0269] The charging management module 140 can charge the battery 142 and also supply power to the electronic device through the power management module 141 .

[0270] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0271] In the embodiment of the present application, the charging management module 140 can adjust the charging current input to the battery according to the charging current value from the processor 110 .

[0272] The embodiment of the present application provides a chip or chip system. The chip or chip system includes one or more processors, and the one or more processors are used to call computer instructions to enable the electronic device to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above-mentioned related embodiments, and will not be repeated here.

[0273] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the above method. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0274] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0275] An embodiment of the present application provides a computer program product, which includes a computer program code. When the computer program code is executed, the computer executes the above method.

[0276] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0277] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A charging method, characterized in that: include: When the target temperature is a first value, in response to a user operation for instructing to adjust the target temperature, adjusting the target temperature of the electronic device from the first value to a second value; adjusting the first current value to a second current value according to the second value, the first current value being the value of the charging current corresponding to the first value, and the second current value being the value of the charging current corresponding to the second value; Wherein, when the first value is greater than the second value, the first current value is greater than the second current value; or, when the second value is greater than the first value, the second current value is greater than the first current value.

2. The method according to claim 1, characterized in that In the constant current charging stage, when the first value is greater than the second value, the first current value is greater than the second current value; or, In the constant current charging stage, when the second value is smaller than the first value, the second current value is greater than the first current value.

3. The method according to claim 1, characterized in that Displaying a first interface, the first interface comprising: a first control; the first control is used to adjust the target temperature; The user operation is an operation on the first control.

4. The method according to claim 3, characterized in that The user operation is a sliding operation; The second value is determined according to the first value and a displacement of the sliding operation in a first direction.

5. The method according to claim 4, characterized in that The third value corresponds to the displacement of the sliding operation in the first direction; When the sum of the first value and the third value is greater than or equal to a first preset value, the second value is the first preset value; When the sum of the first value and the third value is less than or equal to a second preset value, the second value is the second preset value; When the sum of the first value and the third value is smaller than the first preset value and larger than the second preset value, the second value is the sum of the first value and the third value.

6. The method according to claim 3, characterized in that: The appearance of the first control changes according to the target temperature indicated by the user operation.

7. The method according to claim 3, characterized in that Before displaying the first interface, the method further includes: In response to an operation for instructing access to a charging device, displaying a second interface for instructing charging in accordance with a first charging mode; The displaying of the first interface includes: in response to a first operation on the second interface, displaying the first interface: the first interface is used to indicate charging according to the second charging mode.

8. The method according to any one of claims 1 to 7, characterized in that: The second current value is determined according to the second value and a current overall case temperature of the electronic device.

9. The method according to claim 8, characterized in that The method further comprises: According to each preset charging current value and the current whole case temperature of the electronic device, predicting the whole case temperature of the electronic device after charging for a period of time at each charging current value; The second current value is obtained according to the first constraint condition, the second constraint condition and the temperature of the entire housing of the electronic device after the electronic device is charged for a period of time according to each charging current; The first constraint condition includes: the whole casing temperature of the electronic device after a period of time is less than or equal to the second value; the second constraint condition includes: when the first constraint condition is met, the charging current value corresponding to the maximum charging amount of the electronic device within a period of time.

10. The method according to claim 8, characterized in that The method further comprises: The second current value is obtained according to a temperature error between the second value and a current whole casing temperature of the electronic device.

11. The method according to claim 9, characterized in that The second current value is smaller than or equal to a first threshold value and / or the second current value is greater than or equal to a second threshold value, and the second threshold value is smaller than the first threshold value.

12. An electronic device, characterized in that: The electronic device includes: one or more processors and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method as claimed in any one of claims 1 to 11.

13. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Visualized charging parameter adjusting method and device and mobile phone

    CN109728626A

  • Control method and related device

    CN118473036A

  • Charging abnormity reason identification method, electronic equipment, chip system, storage medium and program product

    CN118801543A

  • Optional Terminal Charging Method, Graphical User Interface, and Electronic Device

    US20210399568A1