Charging control method and device, electronic equipment and storage medium
By calculating the target power limit and reference current, and dynamically adjusting the charging current, the safety and efficiency issues of the charging process under adapters with different power specifications are solved. It also achieves compatibility and adaptation for voltage level increases under the USB PD 3.1 protocol, ensuring safe and efficient charging and extended battery life.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-03-31
AI Technical Summary
How to achieve compatibility with adapters of any power rating and ensure the safety and efficiency of the charging process, especially with the increased voltage levels under the USB PD 3.1 protocol.
By calculating the target power limit based on the upper limit of the supply power and the rated power of the battery, and combining the current real-time voltage and reference current of the battery, the charging current is dynamically adjusted to meet the safety and efficiency requirements of the battery. This includes a dual insurance mechanism of first reference current and second reference current to ensure that the charging process is carried out safely and efficiently under different adapters.
It enables safe and efficient adaptive charging with adapters of different power specifications, ensuring charging safety and efficiency, extending battery life, and simplifying hardware design and after-sales service.
Smart Images

Figure CN121770091A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of intelligent management technology, and in particular to a charging control method, device, electronic device, and storage medium. Background Technology
[0002] With the introduction of the USB PD3.1 protocol, the upper limit of charging power has been increased from 100W in PD3.0 to 240W. At the same time, higher voltage levels such as 28V, 36V, and 48V have been added to meet the fast charging needs of high-performance laptops and other devices.
[0003] There are many types of AC power supplies available for systems, ranging from Type-C 100W, 135W, and 140W to square-type 140W, 170W, 230W, 245W, 300W, and 330W. Different types of power supplies are compatible with different types of adapters. Therefore, achieving compatibility with adapters of any power rating has become a pressing technical problem that needs to be solved. Summary of the Invention
[0004] This application provides a charging control method, apparatus, electronic device, and storage medium to at least solve the above-mentioned technical problems existing in the prior art.
[0005] A first aspect of this application provides a charging control method, the method comprising: Based on the upper limit of the supply power and the rated power of the battery, the target limit power of the battery is obtained; The target limiting current of the battery is obtained based on the battery's target limiting power and the battery's current real-time voltage. Obtain a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery, and the second reference current is the real-time adaptive charging current of the battery; Based on the target limiting current and the reference current, a target input current for the battery is determined; so that the first current of the battery at the current real-time voltage is switched to the target input current.
[0006] In one embodiment, the reference current includes a first reference current and a second reference current; Accordingly, determining the target input current of the battery based on the target limiting current and the reference current includes: Based on the target limiting current of the battery and the first reference current, determine the reference input current of the battery; The target input current of the battery is determined based on the battery's reference input current and the second reference current.
[0007] In one embodiment, the reference current includes a second reference current; Accordingly, obtaining the reference current includes: Obtain real-time performance parameters of the battery; The second reference current is obtained based on the battery's property parameters and real-time performance parameters.
[0008] In one embodiment, the method further includes: Obtain the adapter power of the adapter that powers the battery and the maximum hardware-supported power of the electronic device in which the battery is located; The upper limit of the supply power is determined based on the adapter power and the maximum supported power of the hardware.
[0009] In one embodiment, determining the reference input current of the battery based on the target limiting current of the battery and the first reference current includes: If the target limiting current of the battery is greater than the first reference current, the first reference current is determined as the reference input current of the battery. If the target limiting current of the battery is less than or equal to the first reference current, the target limiting current is determined as the reference input current of the battery.
[0010] In one embodiment, determining the target input current of the battery based on the battery's reference input current and the second reference current includes: If the battery's reference input current is greater than the second reference current, the second reference current is determined to be the battery's target input current. If the battery's reference input current is less than or equal to the second reference current, the reference input current is determined as the battery's target input current.
[0011] A second aspect of this application provides a charging control device, the device including a processor, the processor being configured to: Based on the upper limit of the supply power and the rated power of the battery, the target limit power of the battery is obtained; The target limiting current of the battery is obtained based on the battery's target limiting power and the battery's current real-time voltage. Obtain a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery, and the second reference current is the real-time adaptive charging current of the battery; Based on the target limiting current and the reference current, a target input current for the battery is determined; so that the first current of the battery at the current real-time voltage is switched to the target input current.
[0012] In one embodiment, the charging control device further includes a controller connected to the processor, the controller being configured to: Obtain the adapter power of the adapter that powers the battery and the maximum hardware-supported power of the electronic device in which the battery is located; The upper limit of the supply power is determined based on the adapter power and the maximum supported power of the hardware.
[0013] A third aspect of this application provides an electronic device, including a charging control device, a power management unit, and a battery, wherein... The charging control device is configured to: obtain the target limiting power of the battery based on the upper limit power supply and the rated power of the battery; obtain the target limiting current of the battery based on the target limiting power of the battery and the current real-time voltage; acquire a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery and the second reference current is the real-time adaptive charging current; and determine the target input current of the battery based on the target limiting current and the reference current. The power management unit is used to switch the first current of the battery at the current real-time voltage to the target input current.
[0014] A fourth aspect of this application provides a non-transitory computer-readable storage medium storing computer instructions, characterized in that the computer instructions are used to cause a computer to execute the charging control method described in the above embodiments.
[0015] The charging control method of this application, by dynamically adjusting the charging power and current, can achieve safe and efficient adaptive charging in scenarios where multiple power adapters are compatible. When a user uses an adapter with different power ratings, it can automatically match the power supply capacity, providing maximum charging efficiency while ensuring charging safety.
[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0017] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
[0018] Figure 1A schematic diagram illustrating the implementation flow of a charging control method according to an embodiment of the present disclosure is shown; Figure 2 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present disclosure is shown; Figure 3 A schematic diagram of the composition structure of a charging control device according to an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of the composition structure of another charging control device according to an embodiment of the present disclosure is shown; Figure 5 A schematic diagram illustrating the implementation flow of another charging control method according to an embodiment of this disclosure is shown; Figure 6 A schematic diagram of the composition structure of another charging control device according to an embodiment of the present disclosure is shown; Figure 7 A schematic diagram illustrating the implementation flow of another charging control method according to an embodiment of the present disclosure is shown; Figure 8 A schematic diagram of the composition structure of another electronic device according to an embodiment of the present disclosure is shown; Figure 9 A schematic diagram of the composition structure of another electronic device according to an embodiment of the present disclosure is shown; Figure 10 A schematic diagram of the composition structure of another electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0019] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.
[0020] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0021] A first aspect of this application provides a charging control method, such as... Figure 1 As shown, the method includes the following steps: Step S1: Based on the upper limit power supply and the rated power of the battery, the target limit power of the battery is obtained.
[0022] The upper limit of power supply refers to the amount of power that can be allocated to the battery from the adapter's output power. This upper limit of power supply can be obtained by using a fixed value pre-calibrated based on historical experience data, or it can be determined based on the maximum hardware supported power of the electronic device containing the battery and the maximum output power of the adapter currently connected to the electronic device. The value should not exceed either of these two power values.
[0023] The rated power of a battery is a value set at the factory and represents the physical limit of the input power that the battery can receive during charging. To ensure absolute safety during battery charging (without exceeding the battery's hardware limits), the minimum value between the upper limit of the supplied power and the battery's rated power is used as the target power limit of the battery. This is the charging power threshold that the battery can currently receive, which neither exceeds the power capacity that the system can provide nor exceeds the battery's own rated capacity.
[0024] Step S2: Based on the target power limit of the battery and the current real-time voltage of the battery, obtain the target current limit of the battery.
[0025] The current real-time voltage of the battery is directly measured or read and denoted as voltage. Based on the target power limit of the battery and the current real-time voltage of the battery, the target current limit of the battery is calculated according to formula (1):
[0026] Where voltage is the current real-time voltage of the battery. CC(Sys) is the target power limit, and CC(Sys) is the target current limit, which is the real-time charging current required for the battery to meet the target power limit.
[0027] Step S3: Obtain a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery, and the second reference current is the real-time adaptive charging current of the battery.
[0028] At least one of the first reference current and the second reference current is obtained as the reference current. Specifically, the first reference current of the battery is obtained from the factory specifications of the electronic device. The first reference current can be the battery's maximum charging design current, i.e., the maximum rated charging current. The battery's maximum rated charging current is the maximum current value that the battery can continuously withstand, defined by the cell manufacturer based on the physical limits of materials, structural design, and heat dissipation capabilities. It is essentially a "mandatory threshold for hardware safety," the "upper limit ceiling" of all current parameters, and a value set at the factory when the battery leaves the factory.
[0029] A second reference current is obtained by establishing a standard charging curve and using the battery's real-time performance parameters during the design phase by battery manufacturers and equipment manufacturers. This second reference current is not a fixed value, but rather a dynamically adjusted real-time adaptive charging current based on the battery's real-time performance parameters. It characterizes the maximum charging current allowed to charge the battery at the current moment.
[0030] For example, when the battery temperature is low, around 10°C, the charging algorithm will require derating to prevent lithium deposition from damaging the battery. At this time, even if the battery is in the early stages of the constant current (CC) phase, its second reference current may be dynamically adjusted to 3A (far below its maximum rated current of 7.5A at room temperature). When the battery temperature is too high, reaching 45°C, the charging algorithm will initiate protective derating to protect battery 102 from the risk of thermal runaway. At this time, the second reference current may be dynamically reduced to 2A to ensure charging safety.
[0031] Step S4: Determine the target input current of the battery based on the target limiting current and the reference current, so as to switch the first current of the battery at the current real-time voltage to the target input current.
[0032] During actual charging, the target input current of the battery needs to meet the following current limits. First, the most fundamental and crucial limit is that the target input current cannot exceed the physical limit current determined by the battery's chemical system and physical structure, i.e., the maximum rated charging current. If the target input current exceeds this limit, it may lead to irreversible damage such as battery overheating, electrolyte decomposition, separator breakdown, or thermal runaway. Second, the target input current cannot exceed the maximum safe and continuous charging current of the battery at the current moment, i.e., the real-time adaptive charging current. The battery charging process is dynamic; the upper limit of the charging current that the battery can safely and efficiently accept adjusts dynamically with the charging process. For example, as the voltage and temperature increase, the charging current that the battery can safely and efficiently accept gradually decreases. Charging with excessively high current during high temperature or high pressure stages can lead to battery degradation or safety risks, reducing battery life.
[0033] Therefore, the target input current of the battery needs to meet at least one of the above-mentioned limitations, that is, the target limiting current needs to be compared with a reference current of at least one of the first reference current and the second reference current to obtain the target input current.
[0034] Furthermore, after obtaining the target input current of the battery, the system switches from supplying power to the battery using the first current to charging the battery using the target input current. Here, the first current is the actual charging current currently being used when charging the battery at its current real-time voltage, i.e., before the method intervenes and determines the target input current.
[0035] This method, by dynamically detecting adapter capabilities and device hardware limitations, automatically adjusts charging power and current to achieve safe, efficient, and adaptive charging with adapters of different power and interfaces. When users use different adapters, electronic devices can intelligently adapt, providing the fastest and safest possible charging speed, while simplifying hardware design and after-sales service.
[0036] In an optional embodiment, the reference current includes a first reference current and a second reference current; correspondingly, determining the target input current of the battery based on the target limiting current and the reference current includes: determining the reference input current of the battery based on the target limiting current of the battery and the first reference current; and determining the target input current of the battery based on the reference input current and the second reference current.
[0037] During actual charging, the target input current of the battery preferably does not exceed the current limit formed by the first reference current and the second reference current. Therefore, given the first reference current and the second reference current of the battery, the target input current of the battery needs to be obtained through two comparisons.
[0038] First and foremost, the first layer of current limitation is the most fundamental and crucial: the target input current cannot exceed the physical limit determined by the cell manufacturer based on the cell's chemical system and physical structure, i.e., the maximum charging design current (first reference current). If the battery's target input current exceeds this limit, it may lead to irreversible damage such as battery overheating, electrolyte decomposition, separator breakdown, or thermal runaway.
[0039] Therefore, the target limiting current is compared with the first reference current for the first time. Based on the target limiting current of the battery and the first reference current of the battery, the reference input current of the battery is determined to ensure that the target input current is always within the hardware safety threshold of the battery.
[0040] Secondly, battery charging is typically not a simple constant current process, but a complex curve that varies depending on parameters such as voltage and temperature. Therefore, it is also necessary to ensure that the target input current remains within the efficient and safe range acceptable to the battery materials during charging. This is the second layer of current limiting: the target input current cannot exceed the maximum charging current safely allowed by the current battery state, i.e., the second reference current. If the target input current exceeds this safe range, it will cause the battery to be overcharged in a non-ideal state, damaging battery life.
[0041] Therefore, the reference input current is compared with the second reference current for the second time. Based on the battery's reference input current and the battery's second reference current, the target input current of the battery is determined to ensure that the target input current does not exceed the safety limit of the battery under real-time conditions.
[0042] In this embodiment, the first reference current sets the upper limit of charging speed, and the first comparison reflects charging efficiency. The second reference current sets the upper limit of safe and healthy charging, and the second comparison reflects battery life and health. This dual current comparison provides double protection, ensuring that the final target input current does not exceed the battery's hardware limits or its real-time safety limits, achieving an optimal balance between charging efficiency and battery health.
[0043] In an optional embodiment, the reference current includes a second reference current; correspondingly, obtaining the reference current includes: obtaining real-time performance parameters of the battery; and obtaining the second reference current based on the battery's attribute parameters and the battery's real-time performance parameters.
[0044] Real-time battery performance parameters refer to the dynamically changing state parameters exhibited by the battery during real-time operation, reflecting the battery's physiological condition "at this moment." Examples include: Real-time temperature: the temperature of the battery itself; excessively high or low temperatures can severely affect the battery's chemical reaction rate and safety; Current charge: the percentage of the battery's remaining capacity; State of health: the battery's maximum capacity retention relative to its pristine state; Internal resistance: the battery's internal resistance, which changes with aging, temperature, and charge level; Cycle count: the number of complete charge-discharge cycles the battery has undergone.
[0045] Battery attribute parameters refer to the inherent, factory-set parameters of the battery that do not change with use. They are usually stored in the processor's non-volatile memory or in the battery's specifications, such as the initial constant current value preset by battery manufacturers and equipment manufacturers during the design phase for the charging process.
[0046] Performance parameters are acquired in real time via built-in sensors or a battery management chip, and a preset initial constant current value is obtained from the attribute parameters. Then, based on the acquired performance parameters, the preset initial constant current value is dynamically adjusted using a built-in algorithm. Finally, a maximum allowable charging current for the battery that ensures both safety and optimizes battery life at the current moment is calculated, which is the second reference current.
[0047] This embodiment links the second reference current to battery performance and, through a dynamic and adaptive second reference current adjustment mechanism, effectively slows down the rate of battery capacity decay and extends the overall lifespan of the battery.
[0048] In an optional embodiment, the method further includes: obtaining the adapter power of the adapter that powers the battery and the maximum hardware-supported power of the electronic device in which the battery is located; and determining the upper limit power supply based on the adapter power and the maximum hardware-supported power.
[0049] Specifically, the system reads the power output of the external adapter connected to the electronic device and the maximum supported power of the electronic device's hardware. It then compares the current adapter power with the maximum supported power of the electronic device's hardware, taking the minimum of the two as the upper limit of power supply. This upper limit of power supply refers to the power that can be output to the battery from the power output of the adapter.
[0050] In this context, adapter power refers to the maximum output power it can provide; it's the upper limit of power the adapter can supply to the device. The maximum hardware-supported power of an electronic device is the physical limit of the input power it can receive; it's the upper limit of power the device can utilize. Therefore, taking the minimum of these two values as the system's required charging power is to achieve the most efficient possible charging power distribution while ensuring the absolute safety of the electronic device (not exceeding the device's hardware limits) and the stable operation of the power supply (adapter) (not exceeding the adapter's capacity). When the adapter power is high, the minimum value is the maximum hardware-supported power. This ensures that the electronic device will never be damaged by connecting to a powerful power source (adapter). When the adapter power is low, the minimum value is the adapter power. This ensures that the electronic device's demands will not exceed the external power supply's capacity, guaranteeing the stability of both the adapter and the electronic device.
[0051] In an optional embodiment, determining the reference input current of the battery based on the target limiting current of the battery and the first reference current includes: if the target limiting current of the battery is greater than the first reference current, determining the first reference current as the reference input current of the battery; if the target limiting current of the battery is less than or equal to the first reference current, determining the target limiting current as the reference input current of the battery.
[0052] The target limiting current is compared with the first reference current, and the minimum current is selected as the battery's reference input current. If the target limiting current is greater than the first reference current, then the first reference current is used as the battery's reference input current, i.e., CC(Sys) > Max CC current, CC(Sys). 参照 =Max CC current; If the target limiting current is less than or equal to the first reference current, then the target limiting current is used as the reference input current of the battery, that is, CC(Sys)≤Max CCcurrent, then CC(Sys) 参照 =CC(Sys). Where CC(Sys) 参照 is the reference input current of the battery, CC(Sys) is the target limit current, and Max CC current is the first reference current.
[0053] In an optional embodiment, determining the target input current of the battery based on the battery's reference input current and second reference current includes: if the battery's reference input current is greater than the second reference current, determining the second reference current as the battery's target input current; if the battery's reference input current is less than or equal to the second reference current, determining the reference input current as the battery's target input current.
[0054] The reference input current is compared with the second reference current, and the minimum current is selected as the target input current for the battery. If the reference input current is greater than the second reference current, then the second reference current is used as the target input current for the battery, i.e., if CC(Sys) > 0. 参照 If the reference input current is greater than or equal to the second reference current, then the reference input current is used as the target input current of the battery, i.e., if CC(Sys) > Original CC, then CC(Batt) = Original CC; if the reference input current is less than or equal to the second reference current, then the reference input current is used as the target input current of the battery, i.e., if CC(Sys) > Original CC, then CC(Batt) = Original CC; 参照 ≤ OriginalCC, then CC(Batt)=CC(Sys) 参照 Where CC (Batt) is the target input current, and Original CC is the second reference current.
[0055] This embodiment further clarifies that in the first comparison, the minimum value of the target limiting current and the first reference current of the battery is taken as the reference input current, and in the second comparison, the minimum value of the reference input current and the second reference current is taken as the target input current. The operation is simple and easy to implement.
[0056] A second aspect of this disclosure provides an electronic device, such as... Figure 2 As shown, the electronic device 100 includes a charging control device 101, a battery 102, and a power management unit 103. The charging control device 101 is used to obtain the target limiting power of the battery based on the upper limit power supply and the rated power of the battery; to obtain the target limiting current of the battery based on the target limiting power of the battery and the current real-time voltage; to acquire a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery, and the second reference current is the real-time adaptive charging current; and to determine the target input current of the battery based on the target limiting current and the reference current. The power management unit 103 is used to switch the first current of the battery 102 at the current real-time voltage to the target input current.
[0057] For a detailed explanation of the charging control device 101, please refer to the explanation of the charging control method above; it will not be repeated here.
[0058] Specifically, the charging control device 101 is used to write the target input current into the power management unit 103, which is capable of supplying power to the battery 102. The power management unit 103 is used to switch from supplying power to the battery 102 with a first current to charging the battery 102 with the target input current in response to the target input current written by the charging control device 101. The first current is the current used by the power management unit 103 to supply power to the battery 102 when the battery 102 is at the current real-time voltage.
[0059] A third aspect of this disclosure provides a specific structure for a charging control device 101, such as... Figure 3 As shown, the device includes a processor 1011, which is configured to: obtain a target limiting power of the battery based on the upper limit power supply and the rated power of the battery; obtain a target limiting current of the battery based on the target limiting power of the battery and the current real-time voltage of the battery; acquire a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery and the second reference current is the real-time adaptive charging current of the battery; determine a target input current of the battery based on the target limiting current and the reference current; and switch the first current of the battery at the current real-time voltage to the target input current.
[0060] In an alternative embodiment, such as Figure 4 As shown, the charging control device 101 also includes a controller 1012. The controller 1012 interacts with the processor 1011 through a system management interface. The controller 1012 is used to obtain the upper limit power supply. Specifically, it can use a fixed value pre-calibrated based on historical experience data, or it can be determined based on the maximum hardware supported power of the electronic device containing the battery and the maximum output power of the adapter currently connected to the electronic device.
[0061] The specific working process of the charging control device 101 is as follows: When the electronic device 100 is charged via an external adapter, it is connected to the adapter through a charging control device 101, specifically a controller 1012. The charging control device 101 needs to perform the following... Figure 5 The operation shown: Controller 1012 is used to determine the upper limit of power supplied to battery 102. Figure 5 Operation 1.
[0062] Specifically, the controller 1012 can directly acquire a fixed value pre-calibrated based on historical experience data. Alternatively, if the controller 1012 detects that the electronic device 100 is being charged by an external adapter, the controller 1012 reads the adapter power of the external adapter and the maximum supported power of the electronic device 100, compares the current adapter power with the maximum supported power of the electronic device 100, and takes the minimum value between the two as the upper limit power to be allocated to the battery 102. This upper limit power to be allocated to the battery 102 refers to the power that can be output to the battery 102 from the power output of the adapter.
[0063] In this context, the adapter power is the maximum output power that the adapter can provide, representing the upper limit of power the adapter can offer to the electronic device 100. The maximum hardware-supported power of the electronic device 100 is the maximum input power it can receive, representing the upper limit of power that the electronic device 100 can utilize. Therefore, the controller 1012 selects the minimum of these two values as the system's required charging power to achieve the most efficient charging power allocation while ensuring the absolute safety of the electronic device 100 (not exceeding the device's hardware limits) and ensuring the stable operation of the power supply (adapter) (not exceeding the adapter's capacity). When the adapter power is high, the minimum value is the maximum hardware-supported power. This ensures that the electronic device 100 will not be damaged by connecting to a powerful power supply (adapter). When the adapter power is low, the minimum value is the adapter power. This ensures that the electronic device 100's demands will not exceed the external power supply's capacity, guaranteeing the stability of both the adapter and the electronic device 100's operation.
[0064] Processor 1011 is used to obtain the target limited power of battery 102 based on the rated power and the upper limit power of supply of battery 102. Figure 5 Operation 2.
[0065] Specifically, the processor 1011 reads the system's required charging power (supply limit power) from the controller 1012 through the system management interface and writes it into the processor 1011. It then compares the system's required charging power (supply limit power) with the rated power of the battery 102. The rated power of the battery 102 is a value set at the factory and represents the maximum input power that the battery 102 can receive during charging. Therefore, to ensure the absolute safety of charging the battery 102 (not exceeding the hardware limits of the battery 102), the minimum value between the system's required charging power (supply limit power) and the battery 102's rated power is used as the target limiting power for the battery 102. This minimum value is a reasonable value for the charging power that the battery 102 can currently receive, neither exceeding the power capacity provided by the system nor exceeding the rated capacity of the battery 102 itself, thus ensuring charging safety.
[0066] Processor 1011 is used to obtain the target limit current of the battery based on the target limit power of the battery and the current real-time voltage of the battery, corresponding to Figure 5 Operation 3.
[0067] Specifically, the processor 1011 obtains the current real-time voltage of the battery 102, and based on the target power limit of the battery 102 and the current real-time voltage of the battery 102, according to formula (1):
[0068] The target limiting current of battery 102 is calculated. Here, voltage is the current real-time voltage of battery 102. CC(Sys) is the target power limit, and CC(Sys) is the target current limit, which is the real-time charging current required for battery 102 to meet the target power limit.
[0069] The processor 1011 is used to obtain a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery, and the second reference current is the real-time adaptive charging current of the battery.
[0070] Specifically, the processor 1011 obtains the first reference current of the battery 102 through the factory specifications of the electronic device 100. The first reference current can be the maximum charging design current of the battery 102, that is, the maximum rated charging current. The maximum rated charging current of the battery 102 is the maximum current value that the battery 102 can continuously withstand, defined by the cell manufacturer based on the physical limits of materials, structural design, and heat dissipation capabilities. It is essentially a "mandatory threshold for hardware safety," the "upper limit ceiling" of all current parameters, and a value set at the factory when the battery 102 is manufactured.
[0071] The processor 1011 obtains a second reference current by combining the standard charging curve set for the battery 102 by the battery manufacturer and device manufacturer during the design phase with the real-time performance parameters of the battery 102. The second reference current is not a fixed value, but is dynamically adjusted according to the real-time performance parameters of the battery 102, and is used to characterize the maximum charging current allowed to charge the battery 102 at the current moment.
[0072] For example, when battery 102 is at a low temperature, around 10°C, the charging algorithm will require derating to prevent lithium deposition from damaging battery 102. At this time, even if battery 102 is in the early stages of constant current (CC) charging, its second reference current may be dynamically adjusted to 3A (far lower than its maximum rated current of 7.5A at room temperature). When battery 102 becomes too hot, reaching 45°C, the charging algorithm will initiate protective derating to protect battery 102 from the risk of thermal runaway. At this time, the second reference current may be dynamically reduced to 2A to ensure charging safety.
[0073] The processor 1011 is used to determine the target input current of the battery 102 based on the target limit current and the reference current; the target input current is used to switch the power management unit 103, which is capable of supplying power to the battery 102, from supplying power to the battery 102 using a first current to charging the battery 102 using the target input current; wherein, the first current is the current used by the power management unit 103 to supply power to the battery 102 when the battery 102 is at the current real-time voltage.
[0074] During actual charging, the target input current of battery 102 needs to meet the following current limits. First, the core limitation is that the target input current cannot exceed the physical limit current determined by the chemical system and physical structure of the battery cell itself, i.e., the maximum rated charging current. If the target input current of battery 102 exceeds this limit, it may lead to irreversible damage such as overheating, electrolyte decomposition, separator breakdown, or thermal runaway. Second, the target input current cannot exceed the maximum safe and continuous charging current of battery 102 at the current moment, i.e., the second reference current. The charging process of battery 102 is a dynamic process. The upper limit of the charging current that battery 102 can safely and efficiently accept is dynamically adjusted during the charging process. For example, as the voltage and temperature increase, the charging current that battery 102 can safely and efficiently accept will gradually decrease. Charging with excessively high current during high temperature or high pressure stages can lead to battery 102 degradation or safety risks, reducing the battery 102's lifespan.
[0075] Therefore, the target input current of battery 102 needs to meet at least one of the above-mentioned limitations. Processor 1011 needs to compare the target limited current with a reference current of at least one of the first reference current and the second reference current to obtain the target input current.
[0076] After the processor 1011 obtains the target input current of the battery 102, the processor 1011 of the charging control device 101 writes the target input current into the power management unit 103 of the electronic device 100. The power management unit 103 responds to this and switches from using the first current to power the battery 102 to charge the battery 102 using the target input current. The first current is the actual charging current used by the power management unit 103 when charging the battery 102 at its current real-time voltage.
[0077] For example, before the charging control device 101 intervenes and issues a new instruction, the power management unit 103 is charging the battery 102 with a current of 3A. This 3A is the initial current. At this time, the processor 1011 calculates the optimal target input current to be 5A based on the newly calculated target power limit. The processor 1011 issues an instruction to the power management unit 103: switch from the currently used 3A charging mode to the 5A charging mode.
[0078] In this embodiment, after the controller 1012 of the charging control device 101 calculates the upper limit power supply, the processor 1011 integrates the upper limit power supply provided by the controller 1012 and the charging specifications of the battery 102 to determine the charging current requirement (target input current) for the battery 102. Then, the power management unit 103 of the electronic device 100 uses the target input current to charge the battery 102 of the electronic device 100. By taking into account both the system's required charging power and charging specifications, safe and reliable charging of the battery 102 can be achieved.
[0079] The charging control device 101 automatically adjusts the charging power and current by dynamically detecting adapter capabilities and device hardware limitations. Therefore, whether the user uses the original 240W adapter for their laptop, a borrowed 100W charger for their mobile phone, or a third-party compliant adapter, the electronic device can intelligently adapt, providing the fastest and safest possible charging speed, achieving the best "plug and play" performance experience. Furthermore, to accommodate adapters with different power ratings and interfaces, different hardware circuits or firmware typically need to be designed for the electronic device. The charging control device 101 automatically ensures safe and compliant operation with any adapter. Therefore, this application requires only one hardware design, greatly simplifying production and after-sales service (e.g., repair and replacement do not require strict matching of a specific combination of host and adapter).
[0080] In an optional embodiment, the reference current includes a first reference current and a second reference current, and the processor 1011 is configured to: determine a reference input current of the battery based on the target limit current of the battery and the first reference current; and determine a target input current of the battery based on the reference input current and the second reference current of the battery.
[0081] During actual charging, the target input current of battery 102 must not exceed the current limit formed by the first reference current and the second reference current. Therefore, after obtaining the first reference current and the second reference current of battery 102, processor 1011 needs to obtain the target input current of battery 102 through two comparisons.
[0082] The first current limit is that the target input current cannot exceed the physical limit determined by the cell manufacturer based on the cell's chemical system and physical structure, i.e., the maximum charging design current (first reference current). If the target input current of battery 102 exceeds this limit, it may lead to irreversible damage such as battery overheating, electrolyte decomposition, separator breakdown, or thermal runaway.
[0083] Therefore, the processor 1011 compares the target limit current with the first reference current once. This is the first comparison. Based on the target limit current of the battery 102 and the first reference current of the battery 102, the reference input current of the battery 102 is determined to ensure that the target input current is always within the hardware safety threshold of the battery 102.
[0084] In an optional embodiment, the processor 1011 is configured to: if the target limiting current of the battery is greater than a first reference current, determine the first reference current as the reference input current of the battery; if the target limiting current of the battery is less than or equal to the first reference current, determine the target limiting current as the reference input current corresponding to the battery. Figure 5 Operation 4.
[0085] In this embodiment, the processor 1011 compares the target limiting current with the first reference current and selects the minimum current as the reference input current of the battery 102. If the target limiting current is greater than the first reference current, the first reference current is used as the reference input current of the battery 102, i.e., CC(Sys) > Max CC current, CC(Sys) 参照 =Max CCcurrent; If the target limiting current is less than or equal to the first reference current, then the target limiting current is used as the reference input current of battery 102, that is, CC(Sys)≤Max CC current, then CC(Sys) 参照 =CC(Sys). Where CC(Sys) 参照 The reference input current for battery 102 is CC(Sys), the target limit current is CC current, and the first reference current is Max CC current.
[0086] For example, processor 1011 calculates that the target limiting current CC(Sys) is 8A, but the maximum charging current of battery 102 is designed not to exceed 7.5A, i.e., CC(Sys) > Max CC current, then the input current CC(Sys) is referenced. 参照 =MaxCC current=7.5A.
[0087] This embodiment further clarifies that in the first comparison, the minimum value between the target limiting current and the battery's first reference current is taken as the reference input current, which is simple to operate and easy to implement.
[0088] Furthermore, considering that the charging process of battery 102 is typically not a simple constant current process, but rather a complex curve that varies according to parameters such as voltage and temperature, it is also necessary to ensure that the target input current remains within the efficient and safe range acceptable to the battery materials during charging. This is the second layer of current limiting: the target input current cannot exceed the maximum charging current safely allowed by the current battery state, i.e., the second reference current. If the target input current of battery 102 exceeds this safe range, it will cause battery 102 to be overcharged in a non-ideal state, damaging the battery's lifespan.
[0089] Therefore, the processor 1011 also needs to compare the reference input current with the second reference current. This is the second comparison, which determines the target input current of the battery 102 based on the reference input current of the battery 102 and the second reference current of the battery 102, to ensure that the target input current does not exceed the safety limit of the battery 102 in the real-time state.
[0090] In an optional embodiment, the processor 1011 is configured to: if the reference input current of the battery is greater than the second reference current, determine the second reference current as the target input current of the battery; if the reference input current of the battery is less than or equal to the second reference current, determine the reference input current as the target input current of the battery. Figure 5 Operation 5.
[0091] The processor 1011 compares the reference input current with the second reference current and selects the minimum current as the target input current for the battery 102. If the reference input current is greater than the second reference current, then the second reference current is used as the target input current for the battery 102, i.e., if CC(Sys) > 0. 参照 If the reference input current is greater than or equal to the second reference current, then the reference input current is used as the target input current of battery 102, i.e., if CC(Sys) > Original CC; 参照 ≤ Original CC, then CC(Batt)=CC(Sys) 参照 Where CC (Batt) is the target input current, and Original CC is the second reference current.
[0092] For example, the second reference current Original CC is 6A. As can be seen from the previous step, the reference input current CC(Sys) is... 参照 It is 7.5A, i.e., CC(Sys). 参照 If the original CC is greater than the target input current CC(Batt), then the target input current CC(Batt) = Original CC = 6A.
[0093] This embodiment further clarifies that the minimum value of the reference input current and the second reference current is taken as the target input current in the second comparison, which is simple to operate and easy to implement.
[0094] In this embodiment, the first reference current sets the upper limit of charging speed, and the first comparison reflects charging efficiency. The second reference current sets the upper limit of safe and healthy charging, and the second comparison reflects battery life and health. This dual current comparison provides double protection, ensuring that the final target input current does not exceed the battery's hardware limits or its real-time safety limits, achieving an optimal balance between charging efficiency and battery health.
[0095] In an optional embodiment, the processor 1011 is configured to: obtain real-time performance parameters of the battery 102; and obtain a second reference current based on the attribute parameters of the battery 102 and the real-time performance parameters of the battery 102.
[0096] Performance parameters refer to the dynamically changing state parameters exhibited by battery 102 during real-time operation, reflecting the physiological condition of battery 102 "at this moment". For example: Real-time temperature: the temperature of battery 102 itself; excessively high or low temperatures will seriously affect the chemical reaction rate and safety of battery 102; Current charge: the remaining capacity percentage of battery 102; State of health: the maximum capacity retention rate of battery 102 relative to its new state; Internal resistance: the internal resistance of battery 102, which changes with aging, temperature, and charge; Cycle count: the number of complete charge-discharge cycles that battery 102 has undergone.
[0097] Attribute parameters refer to parameters that are inherent to battery 102, factory-set, and do not change with use. They are usually stored in the non-volatile memory of processor 1011 or in the specifications of battery 102, such as the initial constant current value preset by battery manufacturers and device manufacturers for the charging process during the design phase.
[0098] The processor 1011 acquires performance parameters in real time through built-in sensors or a battery management chip, and obtains a preset initial constant current value from the attribute parameters. Then, based on the acquired performance parameters, the processor 1011 dynamically adjusts the preset initial constant current value using a built-in algorithm. Finally, it calculates a maximum charging current for the battery 102 that ensures both safety and optimizes its lifespan at the current moment, which is the second reference current.
[0099] For example: Suppose that the attribute parameters of battery 102 specify that, during the charging process preset by the battery manufacturer and device manufacturer, the maximum allowable charging current is 3.5A at 25°C and 50% charge. Real-time performance parameter detection results: Current temperature: 40°C (high); Current charge: 20% (low); Health status: 85% (slight aging). Processor 1011 dynamically adjusts the preset maximum allowable charging current based on the performance parameters: Due to the high temperature, to prevent overheating, the system reduces the allowable charging current according to the built-in algorithm (such as table lookup or model calculation); combined with the low charge (acceptable larger current) and poor health status (current needs to be limited to protect lifespan), the maximum allowable charging current of battery 102 is calculated comprehensively, that is, the second reference current is adjusted to 2.8A.
[0100] This embodiment links the second reference current to battery performance and, through a dynamic and adaptive second reference current adjustment mechanism, effectively slows down the rate of battery capacity decay and extends the overall lifespan of the battery.
[0101] In an optional embodiment, the controller 1012 is configured to: send the upper limit power supply allocated to the battery 102 to the processor 1011 via a system management interface; and receive the target input current fed back by the processor 1011 via the system management interface.
[0102] like Figure 6 As shown, the processor 1011 and controller 1012 of the charging control device 101 can communicate bidirectionally. The charging control device 101 also needs to perform the following... Figure 7 The operation is as follows: After the processor 1011 determines the charging current requirement (target input current) of the battery 102, it feeds back the charging current requirement (target input current) of the battery 102 to the controller 1012. Then, the controller 1012 sends the charging current requirement (target input current) of the battery 102 to the power management unit 103 of the electronic device 100, thereby instructing the power management unit 103 to charge the battery 102 of the electronic device 100 using the target input current.
[0103] This embodiment achieves a decision-making closed loop of "transmit power - feedback current" through bidirectional communication between the controller 1012 and the processor 1011. This ensures that the final target input current is the result of negotiation between the system power supply capacity, the actual charging capacity of the battery 102, and the safety boundary, avoiding inefficiency or safety hazards caused by the controller 1012 blindly commanding.
[0104] In one possible embodiment, such as Figure 8As shown, the electronic device 300 includes a charging control device 301 and a battery 302. The charging control device 301 includes at least a controller 401, a processor 402, and a power management unit 403. The controller 401 and the processor 402 interact through a system management interface. The controller 401 sends a target input current to the power management unit 403. The power management unit 403 of the charging control device 301 switches from using a first current to power the battery 302 to using the target input current to charge the battery 302.
[0105] This embodiment provides a charging control device 301 containing a power management unit 403, ensuring that an electronic device 300 including the charging control device 301 can be charged by an adapter of any power. The charging control device 301 automatically ensures safe and compliant operation under any adapter, providing the fastest and safest possible charging speed, achieving the best "plug and play" performance experience.
[0106] This solution is not limited to the above-mentioned scenario of managing charging power, but can be applied to any scenario in which the system dynamically allocates power by managing battery charging power, as illustrated in the following examples.
[0107] One embodiment is applicable to devices such as high-performance laptops, in which battery charging and high system power consumption (such as gaming and rendering) occur simultaneously. By dynamically managing battery charging power, the power can be dynamically allocated and scheduled with a focus, ensuring stable system performance while optimizing charging efficiency.
[0108] The charging control method of this embodiment includes the following steps: Step S201, load detection.
[0109] The controller monitors the system load parameters of electronic devices in real time to determine the system load status. System load parameters include CPU temperature, graphics card power consumption, etc.
[0110] When the CPU temperature exceeds a first preset temperature range and the graphics card power consumption exceeds a first preset power range, the controller determines that the electronic device's system is under high load. For example, if the electronic device is in game mode, the controller determines that the electronic device's system is under high load.
[0111] When the CPU temperature is detected to be lower than the second preset temperature range, or the graphics card power consumption is lower than the second preset power range, the controller determines that the electronic device's system is in a low-load state. For example, when the electronic device is in desktop mode, the controller determines that the electronic device's system is in a low-load state.
[0112] Step S202: Dynamic adjustment of charging power.
[0113] The controller dynamically adjusts the power allocated to the battery based on the load status detected by the controller.
[0114] After determining that the electronic device's system is under high load, the controller obtains the system's required charging power and dynamically reduces it to determine the maximum power supply allocated to the battery. The required charging power is the minimum of the current adapter power and the electronic device's maximum hardware-supported power.
[0115] For example, the system requires 100W of charging power. When the controller determines that the electronic device's system is under high load, it releases 40W of the system's required charging power for the system's use, and allocates the remaining 60W of the system's required charging power to the battery.
[0116] When the controller determines that the electronic device's system is in a low-load state, the controller will obtain the system's required charging power and use it as the upper limit of the power supplied to the battery.
[0117] The processor obtains the upper limit power of the supply allocated to the battery from the controller, and takes the minimum value between the upper limit power and the rated power of the battery as the target limit power of the battery. Then, the new target limit current CC(Sys) is calculated.
[0118] Step S203: Compare the reference current with the target input current and determine it.
[0119] Step S204: Feedback and charging status switching.
[0120] The processor feeds back the target input current to the controller. The controller writes the target input current to the power management unit, which, in response to the target input current written by the controller, switches from using the first current to power the battery to using the target input current to charge the battery.
[0121] Step S205: Real-time load response and power recovery.
[0122] The controller continuously monitors the system load parameters of the electronic device. If any system load parameter changes beyond the first threshold, steps S201 to S205 are repeated to obtain a new target input current. The controller then updates the power management unit to achieve dynamic compensation of charging power.
[0123] This embodiment solves the power competition problem between the system and the charger under high load by intelligent power allocation, thereby improving system stability and charging efficiency.
[0124] One embodiment is applicable to electronic devices equipped with dual or multiple batteries (such as high-end laptops and mobile workstations), such as... Figure 9As shown, one battery corresponds to one processor. For example, battery 1021 corresponds to processor 10111, and battery 1022 corresponds to processor 10112. Different batteries correspond to different subsystems or usage scenarios. By dynamically managing the charging power of each battery, dynamic power allocation and scheduling between subsystems can be achieved.
[0125] The charging control method of this embodiment includes the following steps: Step S501: Battery status identification and priority setting.
[0126] The controller reads the status parameters of each battery, including battery level and power supply status, and sets priorities based on battery level and usage status. Charging power is then allocated to each battery according to these priorities. The allocated charging power is then sent to the processor of each battery.
[0127] In one optional embodiment, the priority can be set by prioritizing low-battery batteries, and this setting method is not unique.
[0128] Step S502, Individual charging current calculation.
[0129] The real-time voltage of each battery is obtained by the processor of each battery, and the target limiting current of each battery is calculated according to the above formula (1).
[0130] Step S503: Compare the reference current with the target input current and determine it.
[0131] The processor of each battery compares the target limit current of each battery with the first reference current and the second reference current to obtain the target input current of each battery.
[0132] Step S504: Feedback and charging status switching.
[0133] Each processor feeds back the target input current of each battery to the controller, which then writes the target input current into the power management unit. The power management unit then switches to the target state and charges each battery with the allocated target input current.
[0134] Step S505: Use the state transition response.
[0135] The controller continuously detects whether the state parameters of each battery have changed. If the battery state changes, for example, if the charge of any battery changes beyond a first threshold, steps S501 to S503 are repeated to obtain a new target input current. The controller then updates the power management unit to achieve fast charging.
[0136] This embodiment optimizes system energy utilization, extends battery life, and improves user experience in multiple scenarios through intelligent power distribution among multiple batteries.
[0137] According to embodiments of this disclosure, this disclosure also provides an electronic device and a readable storage medium.
[0138] Figure 10 A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0139] like Figure 10 As shown, device 700 includes a computing unit 701, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 702 or a computer program loaded from storage unit 708 into random access memory (RAM) 703. RAM 703 may also store various programs and data required for the operation of device 400. The computing unit 701, ROM 702, and RAM 703 are interconnected via bus 704. Input / output (I / O) interface 705 is also connected to bus 704.
[0140] Multiple components in device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 707, such as various types of monitors, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0141] The computing unit 701 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as the charging control method. For example, in some embodiments, the charging control method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the charging control method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the charging control method by any other suitable means (e.g., by means of firmware).
[0142] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0144] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0146] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0147] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0148] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0149] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.
[0150] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A charging control method, characterized in that, The method includes: Based on the upper limit of the supply power and the rated power of the battery, the target limit power of the battery is obtained; The target limiting current of the battery is obtained based on the battery's target limiting power and the battery's current real-time voltage. Obtain a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery, and the second reference current is the real-time adaptive charging current of the battery; Based on the target limiting current and the reference current, a target input current for the battery is determined; so that the first current of the battery at the current real-time voltage is switched to the target input current.
2. The charging control method according to claim 1, characterized in that, The reference current includes a first reference current and a second reference current; Accordingly, determining the target input current of the battery based on the target limiting current and the reference current includes: Based on the target limiting current of the battery and the first reference current, determine the reference input current of the battery; The target input current of the battery is determined based on the battery's reference input current and the second reference current.
3. The charging control method according to claim 1, characterized in that, The reference current includes a second reference current; Accordingly, obtaining the reference current includes: Obtain real-time performance parameters of the battery; The second reference current is obtained based on the battery's property parameters and real-time performance parameters.
4. The charging control method according to claim 1, characterized in that, The method further includes: Obtain the adapter power of the adapter that powers the battery and the maximum hardware-supported power of the electronic device in which the battery is located; The upper limit of the supply power is determined based on the adapter power and the maximum supported power of the hardware.
5. The charging control method according to claim 2, characterized in that, Determining the reference input current of the battery based on the target limiting current of the battery and the first reference current includes: If the target limiting current of the battery is greater than the first reference current, the first reference current is determined as the reference input current of the battery. If the target limiting current of the battery is less than or equal to the first reference current, the target limiting current is determined as the reference input current of the battery.
6. The charging control method according to claim 2, characterized in that, The determination of the target input current of the battery based on the reference input current of the battery and the second reference current includes: If the battery's reference input current is greater than the second reference current, the second reference current is determined to be the battery's target input current. If the battery's reference input current is less than or equal to the second reference current, the reference input current is determined as the battery's target input current.
7. A charging control device, characterized in that, The device includes a processor, the processor being configured to: Based on the upper limit of the supply power and the rated power of the battery, the target limit power of the battery is obtained; The target limiting current of the battery is obtained based on the battery's target limiting power and the battery's current real-time voltage. Obtain the reference current; The reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery, and the second reference current is the real-time adaptive charging current of the battery. Based on the target limiting current and the reference current, a target input current for the battery is determined; so that the first current of the battery at the current real-time voltage is switched to the target input current.
8. The charging control device according to claim 7, characterized in that, The charging control device further includes a controller connected to the processor, the controller being configured to: Obtain the adapter power of the adapter that powers the battery and the maximum hardware-supported power of the electronic device in which the battery is located; The upper limit of the supply power is determined based on the adapter power and the maximum supported power of the hardware.
9. An electronic device, characterized in that, It includes a charging control device, a power management unit, and a battery, among which, The charging control device is configured to: obtain the target limiting power of the battery based on the upper limit power supply and the rated power of the battery; obtain the target limiting current of the battery based on the target limiting power of the battery and the current real-time voltage; acquire a reference current; the reference current includes at least one of a first reference current and a second reference current, wherein the first reference current is the maximum rated charging current of the battery and the second reference current is the real-time adaptive charging current; and determine the target input current of the battery based on the target limiting current and the reference current. The power management unit is used to switch the first current of the battery at the current real-time voltage to the target input current.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to claims 1-6.