Charging method, electronic device, computer program product, and readable storage medium
By enabling two battery management chips to charge simultaneously when the display is off, and shutting down one of the chips when the display is on, the overheating problem caused by simultaneous charging of the BUCK and SC chips is solved, achieving an efficient and safe charging process.
Patent Information
- Application Number
- PCT/CN2025/093897
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-12
- Filing Date
- 2025-05-09
- Publication Date
- 2026-01-15
AI Technical Summary
When the BUCK and SC chips in electronic devices charge the battery simultaneously, it causes overheating, affecting battery safety and user experience.
By controlling the start/stop and charging power of the first and second battery management chips, the charging method is adjusted according to the on/off state of the display screen to ensure efficient charging and reduce heat generation.
While ensuring charging efficiency, we aim to reduce battery heat generation, improve battery safety, and enhance user experience.
Smart Images

Figure CN2025093897_15012026_PF_FP_ABST
Abstract
Description
Charging methods, electronic devices, computer program products, and readable storage media
[0001] This application claims priority to Chinese Patent Application No. 202410941848.8, filed on July 12, 2024, entitled "Charging Method, Electronic Device, Computer Program Product and Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a charging method, electronic device, computer program product, and readable storage medium. Background Technology
[0003] Electronic devices can include BUCK chips and SC chips, with BUCK chips having relatively lower charging efficiency and SC chips having relatively higher charging efficiency. When connected to a charger, electronic devices can charge the battery using either a BUCK chip or an SC chip. The choice between BUCK chips and SC chips for battery charging can be made based on factors such as application requirements, supported power range, required battery charging rate, and compatibility with fast charging protocols.
[0004] When electronic devices are equipped with both BUCK and SC chips, charging efficiency is relatively low if the battery is charged using only the BUCK chip or only the SC chip. If the electronic device charges the battery using both BUCK and SC chips simultaneously, it can lead to overheating, affecting battery safety and user experience. Summary of the Invention
[0005] This application provides a charging method, an electronic device, a computer program product, and a readable storage medium to solve the technical problem that the electronic device will generate heat when charging the battery simultaneously based on BUCK and SC chips.
[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0007] Firstly, a charging method is provided for use in electronic devices. The electronic device includes a first battery management chip, a second battery management chip, and a battery, with the first and second battery management chips respectively connected to the battery. The first and second battery management chips can be wired to a charger via a charging interface, or wirelessly connected to a charger. The charging power of the first battery management chip is greater than that of the second battery management chip. The first battery management chip can be a fast-charging chip, such as an SC chip. The second battery management chip can be a slow-charging chip, such as a BUCK chip.
[0008] When the electronic device is connected to the charger and the screen is off, the first battery management chip and the second battery management chip are controlled to charge the battery.
[0009] After the electronic device's display screen is turned off, it controls the second battery management chip to turn on, and both the first and second battery management chips charge the battery simultaneously. This achieves higher charging efficiency.
[0010] When the screen of an electronic device is on, the first battery management chip is controlled to charge the battery.
[0011] After the display lights up, the charging electronic device shuts down the second battery management chip, which also stops charging the battery. In this situation, the first and second battery management chips no longer charge the battery simultaneously, reducing battery heat generation.
[0012] In another possible implementation of the first aspect, the charging method further includes: controlling a first battery management chip to charge the battery in response to the electronic device being connected to a charger.
[0013] When an electronic device is connected to a charger, the first battery management chip with the relatively higher charging power is used to charge the battery first. This achieves higher charging efficiency while avoiding the overheating problem that might occur if two battery management chips are activated simultaneously.
[0014] In another possible implementation of the first aspect, the electronic device can determine a first current limit value corresponding to the first battery management chip, and adjust the output voltage of the first battery management chip according to the first current limit value. The electronic device can also determine a second current limit value corresponding to the second battery management chip, and adjust the output voltage of the second battery management chip according to the second current limit value. In another possible implementation of the first aspect, the first current limit value is greater than the second current limit value. The electronic device limits the current values of the first battery management chip and the second battery management chip respectively to avoid excessive total current while maintaining a high charging power.
[0015] In another possible implementation of the first aspect, when the electronic device is in the state of screen-off, during the process of controlling the first battery management chip to charge the battery based on a first current limit value and controlling the second battery management chip to charge the battery based on a second current limit value, the electronic device may first obtain a target current limit value; wherein the target current limit value is used to indicate the maximum allowable charging current of the battery. The electronic device then determines the first current limit value and the second current limit value based on the target current limit value; wherein the sum of the first current limit value and the second current limit value is less than or equal to the target current limit value.
[0016] For example, the target current limit value can be determined based on the real-time temperature of the electronic device; where the target is positively correlated with the real-time temperature.
[0017] In another possible implementation of the first aspect, the electronic device may obtain the target current limit value by first obtaining a third current limit value and a fourth current limit value, and then using the minimum of the third and fourth current limit values as the target current limit value. The third current limit value is determined based on the real-time temperature of the electronic device and is positively correlated with the real-time temperature. The fourth current limit value is the maximum allowable charging current for a corresponding first device, which includes at least one of a battery, a charger, and a bus of the electronic device. By selecting the minimum of multiple current limit values as the maximum allowable current value for the battery, the electronic device can ensure that the current does not exceed the current limits of other hardware or modules, thus mitigating heat generation and reducing the degree of damage to the electronic device.
[0018] In another possible implementation of the first aspect, the first current limiting value and the second current limiting value are determined based on the target current limiting value, including any one of the following:
[0019] The real-time temperature is 37 degrees Celsius, the target current limit is 12000 mA, the first current limit is 8000 mA, and the second current limit is 4000 mA.
[0020] The real-time temperature is 38 degrees Celsius, the target current limit is 10900 mA, the first current limit is 8000 mA, and the second current limit is 4000 mA.
[0021] The real-time temperature is 39 degrees Celsius, the target current limit is 10,000 mA, the first current limit is 8,000 mA, and the second current limit is 2,000 mA.
[0022] The real-time temperature is 43 degrees Celsius, the target current limit is 9000 mA, the first current limit is 7500 mA, and the second current limit is 1500 mA.
[0023] The real-time temperature is 45 degrees Celsius. The target current limit can be 8500 mA, the first current limit is 7000 mA, and the second current limit is 2000 mA.
[0024] In another possible implementation of the first aspect, the electronic device records the battery current when the battery is nearly fully charged as a first current threshold. During the process of controlling the first and second battery management chips to charge the battery, if the target current limit value is less than the first current threshold, the electronic device controls the first battery management chip to charge the battery and controls the second battery management chip to stop charging the battery.
[0025] In this way, turning off the second battery management chip reduces battery heat generation while ensuring relatively high charging efficiency, making the battery safer and faster to charge.
[0026] In another possible implementation of the first aspect, the electronic device records the current closer to when the battery is fully charged as the second current threshold. After controlling the first battery management chip to charge the battery and controlling the second battery management chip to stop charging the battery, the electronic device can further adjust the charging method.
[0027] When the electronic device determines that the battery current is less than a second current threshold, it controls the second battery management chip to charge the battery and controls the first battery management chip to stop charging the battery; wherein, the second current threshold is less than the first current threshold. By charging the battery through the second battery management chip as it gets closer to a fully charged state, the electronic device can reduce heat generation and achieve a relatively stable approach to a fully charged state.
[0028] In another possible implementation of the first aspect, the electronic device records the current value corresponding to a fully charged battery as a third current threshold, which may be zero. After the electronic device controls the second battery management chip to charge the battery and controls the first battery management chip to stop charging the battery, when the battery current is less than the third current threshold, it controls the second battery management chip to stop charging the battery; wherein, the third current threshold is less than the second current threshold.
[0029] Secondly, a charging method is also provided, applied to an electronic device, the electronic device including a first battery management chip, a second battery management chip, and a battery, the first battery management chip and the second battery management chip being respectively connected to the battery; the charging power of the first battery management chip is greater than the charging power of the second battery management chip; the charging method includes:
[0030] When the electronic device is connected to the charger and the screen is off, the output voltage of the first battery management chip is set to a first value, and the output voltage of the second battery management chip is set to a second value; both the first and second values are greater than zero.
[0031] When the electronic device screen is on, the output voltage of the second battery management chip is set to zero.
[0032] After the electronic device's display screen is turned off, it controls the second battery management chip to turn on, and both the first and second battery management chips charge the battery simultaneously. This achieves higher charging efficiency.
[0033] In another possible implementation of the first aspect, setting the output voltage of the second battery management chip to a second value includes:
[0034] Based on the first step length, the output voltage of the second battery management chip is adjusted from zero to the second value in increments;
[0035] And / or,
[0036] When the screen is on, the output voltage of the second battery management chip is set to zero, including:
[0037] According to the second step size, the output voltage of the second battery management chip is adjusted to zero from the second numerical step.
[0038] Since the second battery management chip is a power adjustable battery management chip, the charging driver can adjust the output current or output voltage of the second battery management chip in steps to avoid instantaneous shunting of the second battery management chip, which would affect the normal charging of the first battery management chip.
[0039] In another possible implementation of the first aspect, setting the output voltage of the first battery management chip to a first value and setting the output voltage of the second battery management chip to a second value further includes:
[0040] According to the third step, the output voltage of the charger is adjusted from the third value to the fourth value, while the output voltage of the first battery management chip remains unchanged.
[0041] Since the second battery management chip is a power adjustable battery management chip, the charging driver can adjust the output current or output voltage of the second battery management chip in steps to avoid instantaneous shunting of the second battery management chip, which would affect the normal charging of the first battery management chip.
[0042] Thirdly, an electronic device is provided, comprising a first battery management chip, a second battery management chip, a battery, a memory, and a processor, wherein the first battery management chip, the second battery management chip, the battery, and the memory are all coupled to the processor;
[0043] The memory stores instructions that the computer executes;
[0044] The processor executes computer execution instructions stored in memory, causing the electronic device to perform a charging method such as that described in either the first or second aspect.
[0045] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, which, when executed on a computer, causes the computer to perform the charging method as described in any one of the first or second aspects.
[0046] Fifthly, an electronic device is provided, which has the function of implementing the charging method of the first aspect described above. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.
[0047] In a sixth aspect, a computer-readable storage medium is provided that stores instructions which, when executed on a computer, enable the computer to perform the charging method of any of the first aspects described above.
[0048] In a seventh aspect, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform any of the charging methods described in the first aspect above.
[0049] The technical effects of any of the design methods in aspects two through seven can be found in the technical effects of different design methods in aspect one, and will not be repeated here. Attached Figure Description
[0050] Figure 1 is a schematic diagram of an electronic device provided in an embodiment of this application;
[0051] Figure 2 is a schematic diagram of software and hardware interaction of an electronic device provided in an embodiment of this application;
[0052] Figure 3 is a partial circuit diagram of the electronic device provided in this embodiment;
[0053] Figure 4 is a timing diagram of the charging method provided in the embodiments of this application;
[0054] Figure 5 is a schematic diagram of the current limiting value variation curve involved in the charging method provided in the embodiments of this application;
[0055] Figure 6 is a flowchart of a charging method provided in an embodiment of this application. Detailed Implementation
[0056] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of this application, including various details to aid understanding. These embodiments should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this application. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0057] To facilitate understanding, some technical common sense involved in the embodiments of this application will be introduced first.
[0058] Charging electronic devices refers to charging the battery within an electronic device through a charger and the battery management integrated circuit (BMIC) inside the device. The charger referred to here can be a dedicated charger for connecting to a power source and outputting electrical signals, or it can refer to a device charging port capable of outputting electrical signals, such as a computer's Universal Serial Bus (USB) port.
[0059] From the perspective of whether or not a charging cable is connected during the charging process, electronic device charging can be mainly divided into wired charging and wireless charging.
[0060] Wired charging refers to connecting an electronic device to a charger via a data cable. Wireless charging, on the other hand, refers to charging the electronic device without the need for a data cable, based on the principle of electromagnetic fields and utilizing wireless electromagnetic induction between the electronic device and the charger.
[0061] From the perspective of charging power, electronic device charging is mainly divided into slow charging (Standard Charging) and fast charging (Fast Charging).
[0062] Electronic devices supporting slow charging mean that the electronic device includes a first battery management chip corresponding to slow charging. This first battery management chip connects to the charger and the electronic device's battery, and controls the charger to charge the battery at a relatively low power. Slow charging power can be between 5W and 10W, and it takes a relatively long time to fully charge the same amount of battery. Slow charging can be wired or wireless.
[0063] The first battery management chip corresponding to slow charging can include a BUCK chip. A BUCK chip is a step-down DC-DC converter chip that converts a high-voltage input to a lower-voltage output. The BUCK chip circuit mainly includes a power switch, inductors, capacitors, diodes, and a controller. The power switch can include diodes, MOSFETs, etc. The BUCK chip uses Pulse Width Modulation (PWM) technology to control the operating mode of the chip circuit by controlling the on / off state of the power switch, achieving a stable step-down output. The BUCK chip uses inductors and capacitors for transduction.
[0064] A Buck chip adjusts its output voltage to match the battery's input voltage while keeping the input voltage constant.
[0065] Electronic devices that support fast charging include a second battery management chip that connects to the charger and the device's battery. This chip controls the charger to charge the battery at a relatively high power. Fast charging power can reach 15W or higher, up to 40W, 50W, or even higher. To fully charge the same amount of battery, fast charging takes significantly less time. Fast charging can be wired or wireless.
[0066] The secondary battery management chip for fast charging can integrate multiple fast charging protocols, such as USB PD, Quick Charge (QC), Adaptive Fast Charging (AFC), and Fast Charge Protocol (FCP), to meet the fast charging needs of different electronic devices. The secondary battery management chip also features high-precision battery level monitoring and various protection functions, such as overvoltage, overcurrent, and overheat protection, to ensure the safety of the charging process and the health of the battery.
[0067] The second battery management chip may include an SC chip. The SC chip utilizes technologies such as buck-boost charging, charge pumps, and GaN direct drive to provide an end-to-end wired or wireless fast charging solution from AC to the battery. The SC chip implements charge pump transduction through capacitor elements.
[0068] An SC chip can adjust its output voltage by a fixed ratio to match the battery's input voltage. For example, an SC chip can reduce the input voltage from the charger by half before outputting it to the battery. An SC chip cannot adjust its output voltage when the input voltage remains constant.
[0069] Electronic devices select either a BUCK chip or an SC chip based on the charger's output voltage and the battery's input voltage.
[0070] In one example, when the charger does not support step-adjustable output voltage, a Buck chip can be used to adjust the voltage output to the battery. For instance, if the charger supports a fixed setting of "5V 2A," meaning the charger's output voltage is 5V and the output current is 2A, the Buck chip can receive the charger's output voltage and convert it to an input voltage acceptable to the battery, such as 3V.
[0071] In another example, if the charger supports stepped voltage adjustment, an SC chip can be used. The output voltage of the SC chip can be controlled by adjusting the output voltage of the charger. The SC chip outputs an input voltage that the battery can accept.
[0072] In practical implementation, electronic devices may include BUCK chips and SC chips. When connected to a charger, the electronic device can charge the battery via either the BUCK chip or the SC chip. The electronic device can choose to charge the battery using either the BUCK chip or the SC chip, taking into account factors such as application requirements, supported power range, required battery charging rate, and compatibility with fast charging protocols. Charging the battery using either the BUCK chip or the SC chip alone results in relatively low charging efficiency. If the electronic device charges the battery using both BUCK and SC chips simultaneously, especially while the device is in use, it can easily lead to battery overheating, reducing battery safety and user experience.
[0073] Based on this, embodiments of this application provide a charging method applied to an electronic device. The electronic device includes a display screen, a first battery management chip, a second battery management chip, and a battery, wherein the charging efficiency of the first battery management chip is greater than that of the second battery management chip. The electronic device controls the first battery management chip and / or the second battery management chip to charge the battery based on the on / off state of the display screen and related electrical parameters.
[0074] When the electronic device's screen is on, only the first battery management chip can be controlled to charge the battery, thus mitigating heat generation and improving the user experience. When the screen is off, both the first and second battery management chips can be controlled to power the battery simultaneously, improving charging efficiency and reducing charging time. This approach balances relatively high charging efficiency with reduced heat generation, enhancing battery safety and user experience.
[0075] The charging method provided in this application can be applied to electronic devices including: personal computers (PCs), tablets, mobile phones, wearable devices (such as smartwatches), laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, in-vehicle computers, and other electronic devices with call functions. This application does not limit the specific type of electronic device.
[0076] Figure 1 shows a schematic diagram of an electronic device. The electronic device 100 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 (or a battery), antenna 1, 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180K, a proximity light sensor 108C, an ambient light sensor 180D, etc.
[0077] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, and memory. These different processing units may be independent devices or integrated into one or more processors. For example, processor 110 is used to execute the data interaction method described in the embodiments of this application.
[0078] The electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N displays screens 194, where N is a positive integer greater than 1.
[0079] The charging management module 140 can charge the rechargeable battery by receiving charging input through a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 through the power management module 141.
[0080] The power management module 141 connects 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, providing power to the processor 110, memory 121, external memory interface 120, display screen 194, camera 193, and communication module 160, etc. The power management module 141 can also monitor parameters such as the charging management module capacity, charging management module cycle count, and charging management module health status (leakage current, impedance), etc. In some embodiments, the power management module 141 may also be located within the processor 110. In some embodiments, the power management module 141 and the battery 142 may also be located in the same device.
[0081] In this embodiment, the charging management module 140 may include a first battery management chip and a second battery management chip. The first battery management chip can be connected to a charger to charge the battery 142, and the second battery management chip can also be connected to a charger to charge the battery 142. The first battery management chip and the second battery management chip can be connected to the same charger and charge the battery 142 simultaneously or at different times.
[0082] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0083] Figure 2 illustrates a hardware-software interaction diagram of an electronic device. Specifically, the electronic device may include an application processor (AP) 201, which is responsible for executing the operating system, running applications, and handling multitasking. An application processor typically includes multiple subsystems such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a memory controller, and an input / output controller.
[0084] An application processor's internal architecture can be divided into four layers, from top to bottom: the application layer (APP), the framework layer (FWK), the hardware abstraction layer (HAL), and the kernel layer. It should be noted that in addition to these main functional layers, other functional modules may also be included; there are no limitations on this.
[0085] The application layer may include a series of application packages, such as the power-saving application and temperature control application involved in this embodiment. In addition, the application layer may also include applications such as a gallery and image processing applications with camera functionality. Application packages may also include applications such as calling, calendar, maps, navigation, music, video, and SMS.
[0086] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
[0087] The framework layer can also include a window manager, content providers, a view system, a resource manager, and a notification manager. The window manager manages window applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture the screen. The content provider stores and retrieves data, making this data accessible to applications. Data can include video, images, and audio. The view system includes visual controls, such as controls for displaying text and images. The view system can be used to build applications. The display interface can consist of one or more views. The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, video files, etc. The notification manager allows applications to display notifications in the status bar. These notifications can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, notifications can be used to announce download completion or message alerts. Notifications can also appear as icons or scrolling text in the system's top status bar, such as notifications from background applications, or as dialog boxes on the screen. Other notifications can include text messages displayed in the status bar, sound alerts, vibrations from electronic devices, and flashing indicator lights. It should be noted that the camera application can also call the content provider, resource manager, notification manager, window manager, view system, etc., according to actual business needs, and this embodiment does not impose any restrictions on this.
[0088] The kernel layer is the layer between hardware and software. The kernel layer contains at least some drivers, such as the charging driver and screen driver involved in this embodiment. The screen driver can obtain the on / off state of the display screen and determine whether the display screen is on or off. The screen driver can send the on / off state of the display screen to other modules, such as sending the on / off state of the display screen to the charging driver. In addition, the charging driver can be used to drive hardware modules with charging functions, such as the first battery management chip and the second battery management chip. The kernel layer may also include display drivers, audio drivers, sensor drivers, etc., and this embodiment does not impose any limitations on this.
[0089] The hardware abstraction layer can encapsulate drivers in the kernel layer and provide an interface for calling the framework layer, shielding the implementation details of the underlying hardware.
[0090] As shown in Figure 2, the electronic device may also include an Application-Specific Integrated Processor (ADSP) 202. The ADSP is optimized for specific tasks and workloads to improve performance and efficiency. The ADSP can process audio signals, video data, image data, etc. Adding an ADSP to the electronic device allows it to remain active even when the AP is in sleep mode, providing low-power data processing capabilities, reducing the burden on the AP and the overall power consumption of the electronic device, and improving the overall system performance and efficiency.
[0091] As shown in Figure 2, in this embodiment, the ADSP may include a charging driver. The charging driver included in the ADSP can control the first battery management chip and the second battery management chip to charge the battery.
[0092] In this embodiment, the screen driver can send the on / off state of the display to the charging driver, so that the charging driver can determine whether the display is on or off. Both the kernel-level charging driver and the ADSP's charging driver can obtain data sent by the temperature control application and the screen driver, and control the first and second battery management chips to charge the battery.
[0093] In practical implementation, temperature control applications can transmit the charging driver from the hardware abstraction layer (HAL) to the kernel layer, or from the kernel layer and bus to the ADSP.
[0094] The ADSP's charging driver can also obtain data sent by the ADSP's temperature control application (or temperature control module) to control the first and second battery management chips to charge the battery.
[0095] It should be noted that the temperature control application involved in this embodiment can be a battery temperature control-related application within an electronic device, such as a power-saving application or a power-saving wizard application. It can be a system application or a third-party application. Alternatively, the temperature control application can also be a temperature control module, such as a temperature control module within an AP or an ADSP, or other functional modules with similar temperature control functions, without limitation.
[0096] It is understood that the layers in the software structure shown in Figure 2 and the components contained in each layer do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer layers than shown in the figure, and each layer may include more or fewer components; this application does not impose any limitations.
[0097] Furthermore, it is understood that the electronic device, in order to implement the charging method of this embodiment, includes hardware and / or software modules that perform various functions. Based on the algorithmic steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0098] Figure 3 shows a partial circuit diagram of the electronic device provided in this embodiment. As shown in Figure 3, the electronic device includes a first battery management chip 301, a second battery management chip 302, a battery 303, and a charging driver 304. The first input port 301A of the first battery management chip 301 and the second input port 302 of the second battery management chip 302 are both connected to the output port of the charger. The first output port 301B of the first battery management chip 301 and the second output port 302B of the second battery management chip 302 are both connected to the third input port 303A of the battery 303.
[0099] The charging driver 304 is connected to both the first battery management chip 301 and the second battery management chip 302, and can control the operation of both chips. For example, the charging driver 304 can write an output voltage setting value into the register of the first battery management chip 301. The first battery management chip 301 can then adjust its target output voltage value according to the setting value, making the actual output voltage value close to the set value. The charging driver 304 can also acquire the step voltage setting value of the first battery management chip 301, allowing the chip to adjust the actual output voltage value in steps.
[0100] It should be noted that the processor AP / ADSP where the charging driver 304 is located is connected to the first battery management chip 301 and the second battery management chip 302 via a bus. The data transmission method between the charging driver 304 and the first battery management chip 301 and the second battery management chip 302 can be either wired or wireless, and is not limited thereto.
[0101] Figure 4 shows a timing diagram of the charging method provided in an embodiment of this application. The specific implementation of the charging method provided in this application will be explained below with reference to Figure 4.
[0102] S1: When the electronic device is connected to the charger, it controls the first battery management chip to turn on and charge the battery.
[0103] The electronic device includes a first battery management chip and a second battery management chip, with the first battery management chip having a higher charging power than the second battery management chip. When the electronic device is connected to a charger, it first controls the first battery management chip to turn on, and the first battery management chip begins charging the battery at a relatively high charging efficiency.
[0104] As shown in Figure 4, S1 may include the following steps:
[0105] S401: The charger transmits electrical signals to the first battery management chip.
[0106] As shown in Figure 3, when the electronic device is connected to the charger, both the first battery management chip and the second battery management chip can be connected to the charger via a data cable / electromagnetic induction through the charging port of the electronic device. When the first battery management chip is connected to the charger, the charger transmits electrical signals to the first battery management chip.
[0107] In practical implementation, the electronic device also includes a protocol chip. When the electronic device is connected to the charger, it first authenticates / handshakes with the charger using the protocol chip to implement the fast charging protocol. The charging process begins only after the fast charging protocol is successfully implemented. The embodiments in this application are all charging methods executed under the premise of a successful fast charging protocol, and will not be described in detail here.
[0108] S402: The first battery management chip detects a high level and notifies the charging driver to connect the charger.
[0109] The first battery management chip receives electrical signals transmitted from the charger, and a high level is detected at the first input port. The first battery management chip can then notify the charging driver that a charger has been connected.
[0110] In other cases, the first battery management chip can also report high-level events / interrupts to the charger, and the charging driver determines whether to connect to the charger based on the high-level events / interrupts.
[0111] S403: The charging driver turns on the first battery management chip and starts charging.
[0112] The charging driver determines when a charger is connected and first controls the first battery management chip with the relatively higher charging power to charge the battery. This achieves high charging efficiency while avoiding the battery overheating problem that might occur if two battery management chips are activated simultaneously.
[0113] In practice, the charging driver can write an enable instruction to the register of the first battery management chip, which then enables itself. After enabling, the first battery management chip reduces the charger's output voltage by the default rate and the charger's output voltage, and charges the battery using the reduced output voltage.
[0114] In other cases, the charging driver can also directly write the output voltage of the first battery management chip to the register of the first battery management chip. The first battery management chip can then automatically turn on, reduce the output voltage of the charger by a factor of 1, and charge the battery according to the output voltage.
[0115] S2: After the electronic device turns off the display screen, it controls the second battery management chip to turn on and start charging the battery.
[0116] When the screen of an electronic device is off, power consumption is relatively low, resulting in fewer factors causing battery overheating. When the screen is on, power consumption is relatively high, leading to more factors causing battery overheating. In other words, when both the first and second battery management chips are charging the battery simultaneously, the battery overheating when the screen is off is less than the battery overheating when the screen is on.
[0117] In this embodiment, after the electronic device's display screen is turned off, the second battery management chip is also turned on, and both the first and second battery management chips charge the battery simultaneously. This achieves higher charging efficiency.
[0118] The electronic device performing S2 may include the following steps:
[0119] S404: Screen driver notification charging driver screen off.
[0120] The kernel layer of an electronic device can include a screen driver, which can monitor whether the display is on or off. When the screen driver detects that the display is off, it can report the screen off event to the charging driver.
[0121] S405: The charging driver activates the second battery management chip and begins charging.
[0122] The charging driver receives a screen-off event reported by the screen driver, activates the second battery management chip, and the second battery management chip also begins charging the battery. In this scenario, both the first and second battery management chips charge the battery simultaneously, resulting in higher charging efficiency.
[0123] If the second battery management chip uses a method that instantly boosts the voltage to a higher output voltage, the input current of the first battery management chip may momentarily fall below its startup current, causing the first battery management chip to fail to charge normally for a brief moment. The charging method provided in this embodiment is based on the second battery management chip being a power-adjustable chip. The charging driver can adjust the output current or output voltage of the second battery management chip in steps to avoid instantaneous current shunting by the second battery management chip, which would affect the normal charging of the first battery management chip.
[0124] In this embodiment, the charging driver obtains the boost step size of the second battery management chip and gradually increases the output voltage of the second battery management chip from zero according to the boost step size. For example, the boost step size can be the voltage value corresponding to 100 mA, or the boost step size can be a value between 1 mV, 20 mV, 40 mV, or 1 mV-50 mV, without limitation.
[0125] The charging driver gradually increases the output voltage of the second battery management chip, and can also gradually increase the output voltage of the charger. In practice, the charging driver can obtain the boost step size of the charger, for example, 20 mV-40 mV. The boost step size of the charger can be kept basically consistent with the boost step size of the second battery management chip.
[0126] The charging driver can write the charger output voltage setting value to the protocol chip according to the charger's boost step size, so that the charger increases its output voltage. During the gradual output voltage process of the charger and the second battery management chip, the output voltage of the first battery management chip can be kept essentially constant to ensure that the first battery management chip can charge normally.
[0127] S3: After the electronic device's display screen lights up, it controls the second battery management chip to turn off and stop charging the battery.
[0128] When the display screen of an electronic device is on, power consumption is relatively high, leading to various factors that contribute to battery heat generation. In this embodiment, after the display screen is on, the electronic device controls the second battery management chip to turn off, and the first and second battery management chips no longer charge the battery simultaneously. This reduces battery heat generation and achieves relatively high charging efficiency.
[0129] The electronic device performing S3 may include the following steps:
[0130] S406: Screen driver notification charging driver screen light-up.
[0131] The screen driver can monitor whether the display is on or off. When the screen driver detects that the display is on, it can report the screen-on event to the charging driver.
[0132] S407: The charging driver shuts down the second battery management chip and stops charging.
[0133] When the charging driver receives a screen-on event reported by the screen driver, it shuts down the second battery management chip, which then stops charging the battery. In this situation, the first and second battery management chips no longer charge the battery simultaneously, reducing battery heat generation.
[0134] The second battery management chip is a power adjustable battery management chip. The charging driver can stepwise adjust the output current or output voltage of the second battery management chip to maintain the output voltage of the first battery management chip, so that the first battery management chip can be charged normally.
[0135] In this embodiment, the charging driver obtains the boost step size of the second battery management chip and gradually reduces the output voltage of the second battery management chip according to the boost step size. Furthermore, the charging driver can also write a charger output voltage setting value to the protocol chip to cause the charger to reduce its output voltage. While the second battery management chip gradually reduces its output voltage, the output voltage of the first battery management chip remains essentially unchanged, ensuring that the first battery management chip can charge normally.
[0136] The electronic device can also continuously monitor whether the display screen is on or off, and execute S2 again when it detects that the display screen is off.
[0137] S408: Screen driver notification charging driver screen off.
[0138] S409: The charging driver activates the second battery management chip and begins charging.
[0139] For the specific implementation process, please refer to the specific implementation methods of S404 and S405 mentioned above, which will not be repeated here.
[0140] When the electronic device detects that the display screen has turned on again, it can execute S3 again. For the specific implementation process of the electronic device executing S3, please refer to the aforementioned specific implementation method of S3, which will not be repeated here.
[0141] The charging method provided in this embodiment allows the electronic device to control only the first battery management chip to charge the battery when the screen is on, maintaining relatively high charging efficiency and reducing battery heat generation. When the screen is off, the electronic device controls both the first and second battery management chips to charge the battery simultaneously, achieving even higher charging efficiency.
[0142] In one specific embodiment, when the first battery management chip and the second battery management chip are charging the battery simultaneously, the electronic device can also control the charging parameters of the first battery management chip and the second battery management chip according to the current limiting value.
[0143] S4: The electronic device determines a first current limit value and a second current limit value, adjusts the output voltage of the first battery management chip according to the first current limit value, and adjusts the output voltage of the second battery management chip according to the second current limit value.
[0144] The first and second battery management chips have different charging powers, and therefore different heat generation powers. Electronic devices can limit the current values of the first and second battery management chips to control the overall heat generation power of the electronic device and reduce battery overheating.
[0145] Specifically, the electronic device can determine a first current limit value corresponding to the first battery management chip, and adjust the output voltage of the first battery management chip according to the first current limit value. Also, the electronic device can determine a second current limit value corresponding to the second battery management chip, and adjust the output voltage of the second battery management chip according to the second current limit value.
[0146] In one specific embodiment, the electronic device can acquire a total current limit value, which is used to limit the total current value of the electrical signal output through the charger, the total current value output through the first battery management chip and the second battery management chip, or the total current limit value transmitted to the battery. The total current limit value determined by the electronic device can be substantially equal to the sum of the first current limit value and the second current limit value. The electronic device can determine the first current limit value and the second current limit value based on the total current limit value. For ease of description, the total current limit value is referred to as the target current limit value.
[0147] In temperature control applications for electronic devices, the corresponding temperature-controlled current limit value can be determined based on the real-time temperature of the electronic device and pre-set temperature-controlled current limiting rules. If the real-time current input to the battery exceeds the temperature-controlled current limit value, it may cause the battery temperature to rise rapidly, resulting in rapid battery heating and affecting battery health.
[0148] Other hardware modules in electronic devices also have corresponding current limits. For example, the bus of an electronic device has a defined bus current limit. If the real-time current exceeds the bus current limit, it may cause the bus to overheat, affecting the data transmission efficiency and lifespan of the bus. Similarly, the battery of an electronic device has a defined total battery current limit. If the real-time current exceeds the total battery current limit, it may cause the battery to overheat, affecting the charging safety and lifespan of the battery. The charger also has a defined total charger current limit. If the real-time current exceeds the total charger current limit, it may also cause the charger to overheat, affecting the charging safety and lifespan of the charger. The total current limit determined by the temperature control application and other hardware modules of the electronic device may be adjusted according to the real-time application scenario of the electronic device, or it may remain unchanged and not be limited.
[0149] Electronic devices can acquire multiple total current limit values, determine a target current limit value from among them, and then determine a first current limit value and a second current limit value based on the target current limit value. For example, the electronic device can select the smallest current limit value from total circuit values such as temperature control total current limit value, bus total current limit value, charger total current limit value, and battery total current limit value as the target current limit value. Alternatively, the electronic device can also select the median or average of multiple current limit values as the target current limit value without imposing any restrictions.
[0150] In one specific implementation, the electronic device determines a target current limit value based on the total current limit value for temperature control, and then determines a first current limit value and a second current limit value in combination with the target current limit value, and performs charging control based on the first current limit value and the second current limit value. The electronic device executing S4 may specifically include the following steps:
[0151] S410: When the real-time temperature exceeds the first temperature threshold, the temperature control application determines the total current limit value for temperature control.
[0152] S411: The temperature control application sends the total temperature control current limit value to the charging driver.
[0153] The temperature control application can monitor the real-time temperature of electronic devices and trigger temperature-controlled current limiting when the real-time temperature exceeds a preset threshold. The temperature control application can store a first temperature threshold and a total temperature-controlled current limiting value, and send the total temperature-controlled current limiting value to the charging driver when the real-time temperature exceeds the first temperature threshold.
[0154] The higher the real-time temperature of an electronic device, the lower the total current limit should be set to mitigate battery overheating. Electronic devices can store multiple sets of data, each recording a temperature and its corresponding total current limit to restrict current values at different temperatures.
[0155] In one specific implementation, the temperature control application can also maintain a mapping table between temperature and total current limit value, determining the corresponding total current limit value based on the real-time temperature. As shown in Table 1, the total current limit value can be 12000 mA for a real-time temperature of 37 degrees Celsius, 10900 mA for a real-time temperature of 38 degrees Celsius, 10000 mA for a real-time temperature of 39 degrees Celsius, 9000 mA for a real-time temperature of 43 degrees Celsius, and 8500 mA for a real-time temperature of 45 degrees Celsius.
[0156] Table 1
[0157] Based on Table 1, the temperature control application can set the minimum temperature value or a relatively small temperature value within the temperature control range as the first temperature threshold, for example, 37 degrees Celsius or 38 degrees Celsius can be set as the first temperature threshold.
[0158] In one example, the temperature control application can determine 38 degrees Celsius as the first temperature threshold. If the real-time temperature does not exceed 38 degrees Celsius, the temperature control application can determine the total temperature control current limit to be the maximum total temperature control current limit, i.e., 12000 mA. The temperature control application can send the maximum total temperature control current limit to the charging driver, or the charging driver can pre-store this maximum total temperature control current limit. Before the temperature control application triggers the temperature control current limit based on the real-time temperature and the first temperature threshold, the charging driver can determine the target current limit as this maximum total temperature control current limit. The charging driver can then control the first and second battery management chips to charge at this maximum total temperature control current limit, maximizing charging power without triggering the temperature control current limit.
[0159] In another example, the temperature control application can also maintain a linear mapping function or other types of mapping functions, denoted as the first mapping function. The independent variable of the first mapping function is the temperature value, and the dependent variable of the second mapping function is the total current limit value of the temperature control. The temperature control application can input the real-time temperature value into the first mapping function to obtain the corresponding total current limit value of the temperature control.
[0160] In other examples, the temperature control application can maintain different mapping tables or determine different total current limit values based on the type of application currently loaded or running on the electronic device. For example, if the electronic device is at 38 degrees Celsius and is not currently playing audio, the total current limit value for temperature control might be determined to be 10,900 mA; if audio is currently playing, the total current limit value might be determined to be 10,000 mA. In other words, at the same temperature, the temperature control application can determine a relatively lower total current limit value based on the currently running high-power application to reduce battery heating.
[0161] S412: The charging driver determines the target current limit value based on the total current limit value of temperature control, and determines the first current limit value and the second current limit value based on the target current limit value.
[0162] The charging driver receives the total current limit value for temperature control and can directly determine it as the target current limit value. Alternatively, the charging driver can determine the minimum value among the total current limit value for temperature control, the total current limit value for the bus, the total current limit value for the charger, and other total current limits as the target current limit value.
[0163] The charging driver obtains the target current limit value for charging and determines the first current limit value corresponding to the first battery management chip and the second current limit value corresponding to the second battery management chip.
[0164] In one example, the charging driver can maintain a current limit allocation table, determining a first current limit and a second current limit based on a third current value. Table 2 below shows the allocation scheme for the first and second current limits within the target current limit range.
[0165] For example, if the charging driver determines the target current limit to be 12000 mA, it can allocate a first current limit of 8000 mA and a second current limit of 4000 mA. For example, if the charging driver determines the target current limit to be 10900 mA, it can allocate a first current limit of 8000 mA and a second current limit of 2900 mA. For example, if the charging driver determines the target current limit to be 10000 mA, it can allocate a first current limit of 8000 mA and a second current limit of 2000 mA. For example, if the charging driver determines the target current limit to be 9000 mA, it can allocate a first current limit of 7500 mA and a second current limit of 1500 mA. And for yet another example, if the charging driver determines the target current limit to be 8500 mA, it can allocate a first current limit of 7000 mA and a second current limit of 2000 mA.
[0166] Table 2
[0167] The current limiting value allocation scheme shown in Table 2 above corresponds to the current limiting value change curve shown in Figure 5. When the target current limiting value is relatively large, for example, when the third limit value is reduced from 12000 mA to 10000 mA, the temperature control application can allocate a first current limiting value of 8000 mA and keep it unchanged. This can maintain a high charging power of the first battery management chip before the battery reaches a high temperature, thereby improving the charging speed.
[0168] In other examples, the driver application can also allocate the target rate limit value as a first rate limit value and a second rate limit value in a fixed ratio. Alternatively, the driver application can also determine the first and second rate limit values based on the target rate limit value using other rate limit allocation schemes, without limitation.
[0169] S413: The charging driver sends a first current limit value to the first battery management chip.
[0170] S414: The charging driver sends a second current limit value to the second battery management chip.
[0171] The charging driver determines the first and second battery management chips based on the target current limit value. It can send a first current limit value to the first battery management chip and a second current limit value to the second battery management chip. In practice, the order in which the charging driver sends the first and second current limit values to the first and second battery management chips is not limited. For example, the charging driver can simultaneously perform the operations of sending the first and second current limit values, so that the first and second battery management chips can synchronously adjust their output voltages, making the current value output by the first battery management chip close to the first current limit value, and the current value output by the second battery management chip close to the second current limit value.
[0172] In one example, the charging driver can calculate the output voltage setting value of the second battery management chip based on the second current limit value, and write the output voltage setting value corresponding to the second current limit value into the register of the second battery management chip. The second battery management chip adjusts its output voltage according to the output voltage setting value corresponding to the second current limit value, so that the output current of the second battery management chip is close to the second current limit value.
[0173] The second battery management chip is a voltage-adjustable chip, while the first battery management chip is a rate-buck chip with a non-adjustable voltage. The charging driver can adjust the output voltage of the second battery management chip in steps so that the output current of the second battery management chip is close to the second current limit value.
[0174] The charging driver can also adjust the charger's output current limit in steps so that the actual value of the charger's output current is close to the target current limit value, thereby making the actual value of the first battery management chip's output current close to the first current limit value. For example, when obtaining the target current limit value, the charging driver can first write the target current limit value into the protocol register so that the charger limits the output current value based on the target current limit value.
[0175] After the temperature control current limit is triggered in the temperature control application, the charging driver controls the first battery management chip and the second battery management chip to adjust the current limit while charging the battery, based on the total current limit value of temperature control and other total current limit values. While ensuring a high charging power, the battery heat generation is reduced by limiting the output current of the first battery management chip and the second battery management chip.
[0176] When the battery is nearly fully charged, the input current is relatively low, for example, only 1000 mA. The charging driver can shut down the first battery management chip when the battery is almost fully charged to prevent the battery from overheating due to the higher output current of the first battery management chip. To ensure the battery is fully charged, the charging driver can also keep the second battery management chip running to continue slow charging the battery, gradually charging it at a relatively low power.
[0177] S415: When the target current limit value is less than the first current threshold, the charging driver determines to shut down the second battery management chip.
[0178] S416: The charging driver shuts down the second battery management chip and stops charging.
[0179] The charging driver determines a first current limit and a second current limit based on the total current limit value controlled by temperature. It adjusts the output voltage or current of the first battery management chip according to the first current limit and adjusts the output voltage or current of the second battery management chip according to the second current limit. During this process, as the real-time temperature of the electronic device increases, the target current limit decreases accordingly. The charging driver sets a first current threshold; when it determines that the target current limit is less than the first current threshold, it shuts down the second battery management chip and stops charging.
[0180] When the current limit exceeds the first current threshold, the charging driver shuts down the second battery management chip and keeps only the first battery management chip. The first current limit value corresponding to the first battery management chip is relatively large, and the charging power is also relatively large.
[0181] S5: When the battery current is less than the second current threshold, the electronic device turns off the first battery management chip and turns on the second battery management chip again to charge the battery until the battery is fully charged.
[0182] After the electronic device shuts down the second battery management chip, it relies solely on the first battery management chip. When the battery is nearly fully charged, the first battery management chip can be shut down again to reduce battery heat generation. The electronic device then re-activates the second battery management chip to slowly charge the battery until it is fully charged.
[0183] The electronic device executes S5, which mainly includes the following steps:
[0184] S417: When the battery current is less than the second current threshold, the charging driver is determined to shut down the first battery management chip.
[0185] S418: The charging driver shuts down the first battery management chip and stops charging.
[0186] The charging driver can record the current value corresponding to a certain battery level as a second current threshold as the battery level approaches its maximum capacity. The charging driver can obtain the battery current at the battery input port and determine whether the battery current is less than the second current threshold. If the battery current is less than the second current threshold, the first battery management chip is turned off, and the first battery management chip stops charging the battery.
[0187] The charging driver can write a shutdown instruction (or set the output voltage to zero) to the register of the first battery management chip, and the first battery management chip can stop charging the battery based on the shutdown instruction (or set the output voltage to zero).
[0188] S419: The charging driver starts the timer, and the timer expires to confirm that the second battery management chip is activated.
[0189] S420: The charging driver activates the second battery management chip and begins charging.
[0190] When the charging driver shuts down the first battery management chip, the battery level is close to the cut-off voltage but has not yet reached the battery's maximum capacity. The charging driver can then turn on the second battery management chip again to slowly charge the battery.
[0191] In practice, the charging driver can start a timer when the first battery management chip is turned off. The timer duration can be 1 minute or any value between 20 and 200 seconds. During this process, the battery management chip pauses charging to reduce heat generation.
[0192] After the timer expires, the charging driver activates the second battery management chip, which then performs a final charge cutoff for the battery.
[0193] S421: The battery current is less than the third current threshold, so the second battery management chip is turned off.
[0194] S419: Turn off the second battery management chip and stop charging.
[0195] The charging driver can record the battery current value corresponding to the maximum battery capacity as the third current value, which can be zero or close to zero.
[0196] The charging driver can obtain the battery current at the battery input port and determine whether the battery current is less than or equal to the third current threshold. When the battery current is less than or equal to the second current threshold, the second battery management chip is turned off and stops charging the battery.
[0197] In one scenario, the charging driver can determine the step-adjustment voltage value based on the current output voltage and step size of the second battery management chip, and write the step-adjustment voltage value into the register of the second battery management chip until the step-adjustment voltage value is zero.
[0198] In other cases, the charging driver can also directly write a shutdown instruction (or set the output voltage to zero) to the register of the second battery management chip, and the second battery management chip can stop charging the battery based on the shutdown instruction (or set the output voltage to zero).
[0199] In this way, the charging driver controls both the first and second battery management chips to shut down, allowing the battery to fully charge. The charging driver can also write a shutdown command to the protocol register (or set the output voltage to zero), and the charger can stop charging the battery based on the shutdown command (or the output voltage setting to zero).
[0200] In one specific embodiment, as shown in Figure 6, is a flowchart of a charging method provided by an embodiment of this application. In this embodiment, the first battery management chip is SC chip, and the second battery management chip is BUCK; the charging process will be described directly using these two specific chips thereafter.
[0201] The electronic device executes S1, which mainly includes the following processes:
[0202] When an electronic device is connected to a charger, its protocol chip communicates with the charger via a fast charging protocol. If the fast charging protocol is successful, charging begins. The electronic device first activates the SC chip, charging the battery solely through the SC chip. The SC chip offers high charging efficiency and generates less heat.
[0203] The electronic device executes S2-S4, which is mainly divided into two parts: the SC chip charges the battery, and the SC chip and the BUCK chip charge the battery simultaneously.
[0204] When the electronic device begins charging the battery, it first controls the SC chip to charge the battery. When the screen is off, the BUCK chip is activated, and both the BUCK and SC chips charge the battery simultaneously. When the screen is on, the BUCK chip is deactivated, and only the SC chip charges the battery. The electronic device can repeatedly turn the BUCK chip on and off according to the screen's on / off state, ensuring high charging efficiency while reducing battery heat generation.
[0205] When an electronic device charges a battery, the battery temperature gradually increases, triggering a temperature-controlled current limit. The temperature controller should determine a total current limit value based on the real-time temperature and send it to the charging driver. The charging driver, based on the total current limit value and the total current limits sent by other hardware modules, determines a minimum current limit and, based on current limit allocation rules, determines a first current limit value and a second current limit value. The electronic device then adjusts the output voltage or current of the SC chip and the BUCK chip according to the first and second current limits.
[0206] When the battery current is less than the second current threshold, the electronic device executes S5, turns off the first battery management chip, and turns on the second battery management chip again to charge the battery until the battery is fully charged.
[0207] The charging driver's adjustment of the SC chip and BUCK is a periodic adjustment process. The main process of one adjustment cycle executed by the charging driver can be summarized as follows:
[0208] 1. The charging driver receives the total current limit value for temperature control, as well as the total current limit value for the charger, the total current limit value for the bus, and the total current limit value for the battery from the temperature control application, and determines the minimum current limit value among them.
[0209] 2. The charging driver uses the minimum current limit value to look up the first current limit value corresponding to the SC chip and the second current limit value corresponding to the BUCK chip in the current limit allocation table.
[0210] 3. The charging driver determines whether the display screen is on.
[0211] If the display is on, set the target current of the BUCK chip to zero.
[0212] If the display is off, set the target current of the BUCK chip to the second current limit value.
[0213] 4. The charging driver determines whether the current setting current of the BUCK chip is greater than the target current of the BUCK chip.
[0214] BUCK determines that the current setting current of the BUCK chip is greater than the target current of the BUCK chip, and gradually reduces the setting current of the BUCK chip in steps of 100 mA.
[0215] BUCK determines that the current setting current of the BUCK chip is less than the target current of the BUCK chip, and gradually increases the setting current of the BUCK chip in steps of 100 mA.
[0216] BUCK determines that the current setting current of the BUCK chip is equal to the target current of the BUCK chip and equal to 0, and then turns off the BUCK chip.
[0217] 4. The charging driver determines whether the SC chip is turned on.
[0218] The charging driver determines that the SC chip is off and enters the slow charging stage.
[0219] 5. The charging driver confirms that the SC chip is turned on and checks whether the battery current is less than 1A.
[0220] The charging driver determines that the SC chip detects a battery current of less than 1A and shuts down the SC chip. The charging driver then starts a timer with a duration of 1 minute. After the timer expires, the charging driver activates the BUCK chip, initiating the slow charging phase.
[0221] 6. The charging driver determines whether the SC chip detects a battery current greater than 1A and whether the battery voltage is greater than the cut-off voltage.
[0222] 7. The charging driver determines that the battery voltage is greater than the cut-off voltage and reduces the charger's output voltage in 20mV increments.
[0223] 8. The charging driver determines whether the output current of the SC chip is less than the target current of the SC chip.
[0224] The output current of the SC chip is less than the target current of the SC chip, so the output voltage of the charger is increased in steps of 20 millivolts.
[0225] The output current of the SC chip is greater than the target current of the SC chip, so the output voltage of the charger is reduced in steps of 20 millivolts.
[0226] The charging driver continues to execute the above cycle until it enters the slow charging stage. During the slow charging stage, the charging driver detects whether the battery current is close to zero, shuts down the BUCK chip, and completes the charging process.
[0227] In summary, the charging method provided in this application embodiment improves charging efficiency and reduces charging heat generation when the corresponding fast charging SC chip and the corresponding slow charging BUCK chip work together.
[0228] In addition, embodiments of this application also provide an electronic device, including a first battery management chip, a second battery management chip, a battery, a display screen, a memory, and a processor;
[0229] The memory stores instructions that the computer executes;
[0230] The processor executes computer execution instructions stored in the memory, causing the electronic device to perform the charging method provided in the above embodiments. In addition to these main components, the electronic device also includes components for implementing basic functions, as detailed in Figure 1 above.
[0231] The charging methods described in the foregoing embodiments can all be implemented in the electronic device 100 having the above-described hardware structure.
[0232] Based on the above embodiments, this application also provides a charging device, which includes a processor for executing the charging method provided in the above embodiments.
[0233] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute the charging method provided in the above embodiments.
[0234] This application also provides a computer program product containing instructions that, when run on a computer, enable the computer to execute the charging method provided in the above embodiments.
[0235] The specific implementation methods and technical effects of the electronic devices, chip systems, computer-readable storage media, and computer program products containing instructions provided in this application can be found in the specific implementation process and technical effects of the charging methods provided in the foregoing embodiments, which will not be repeated here.
[0236] In some embodiments, as described above, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the functional modules described above is merely an example. In practical applications, the functions described above can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0237] In the embodiments of this application, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0238] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.
[0239] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
Claims
1. A charging method, characterized in that, The invention is applied to an electronic device, which includes a first battery management chip, a second battery management chip, and a battery, wherein the first battery management chip and the second battery management chip are respectively connected to the battery. The charging power of the first battery management chip is greater than the charging power of the second battery management chip; the charging method includes: When the electronic device is connected to the charger, if the screen of the electronic device is off, the first battery management chip and the second battery management chip are controlled to charge the battery; if the screen of the electronic device is on, the first battery management chip is controlled to charge the battery.
2. The charging method according to claim 1, characterized in that, The charging method further includes: In response to the electronic device being connected to the charger, the first battery management chip is controlled to charge the battery.
3. The charging method according to claim 1 or 2, characterized in that, When the electronic device is in the off state, controlling the first battery management chip and the second battery management chip to charge the battery includes: When the screen of the electronic device is off, the first battery management chip is controlled to charge the battery based on a first current limit value, and the second battery management chip is controlled to charge the battery based on a second current limit value.
4. The charging method according to claim 3, characterized in that, The first rate limiting value is greater than the second rate limiting value.
5. The charging method according to claim 3 or 4, characterized in that, Before controlling the first battery management chip to charge the battery based on a first current limit value when the electronic device is off, and before controlling the second battery management chip to charge the battery based on a second current limit value, the method further includes: Obtain a target current limit value; wherein the target current limit value is used to indicate the maximum allowable charging current of the battery; Based on the target rate limiting value, the first rate limiting value and the second rate limiting value are determined; wherein the sum of the first rate limiting value and the second rate limiting value is less than or equal to the target rate limiting value.
6. The charging method according to claim 5, characterized in that, The process of obtaining the target rate limit value includes: The target current limit value is determined based on the real-time temperature of the electronic device; wherein the target is positively correlated with the real-time temperature.
7. The charging method according to claim 5, characterized in that, The process of obtaining the target rate limit value includes: Obtain a third current limit value and a fourth current limit value; wherein, the third current limit value is a current limit value determined based on the real-time temperature of the electronic device, and the third current limit value is positively correlated with the real-time temperature, and the fourth current limit value is the maximum charging current allowed for a corresponding first device, the first device including at least one of the battery, the charger, and the bus of the electronic device; The minimum value between the third and fourth rate limiting values is taken as the target rate limiting value.
8. The charging method according to any one of claims 5-7, characterized in that, The step of determining the first rate limiting value and the second rate limiting value based on the target rate limiting value includes any one of the following: The real-time temperature is 37 degrees Celsius, the target current limit is 12000 mA, the first current limit is 8000 mA, and the second current limit is 4000 mA. The real-time temperature is 38 degrees Celsius, the target current limit is 10900 mA, the first current limit is 8000 mA, and the second current limit is 4000 mA. The real-time temperature is 39 degrees Celsius, the target current limit is 10,000 mA, the first current limit is 8,000 mA, and the second current limit is 2,000 mA. The real-time temperature is 43 degrees Celsius, the target current limit is 9000 mA, the first current limit is 7500 mA, and the second current limit is 1500 mA. The real-time temperature is 45 degrees Celsius, the target current limit is 8500 mA, the first current limit is 7000 mA, and the second current limit is 2000 mA.
9. The charging method according to any one of claims 5-8, characterized in that, The charging method further includes: During the process of controlling the first battery management chip and the second battery management chip to charge the battery, if the target current limit value is less than the first current threshold, the first battery management chip is controlled to charge the battery, and the second battery management chip is controlled to stop charging the battery.
10. The charging method according to claim 9, characterized in that, After controlling the first battery management chip to charge the battery and controlling the second battery management chip to stop charging the battery, the charging method further includes: When the battery current is less than the second current threshold, the second battery management chip is controlled to charge the battery, and the first battery management chip is controlled to stop charging the battery; wherein, the second current threshold is less than the first current threshold.
11. The charging method according to claim 10, characterized in that, After controlling the second battery management chip to charge the battery and controlling the first battery management chip to stop charging the battery, the charging method further includes: When the battery current is less than a third current threshold, the second battery management chip is controlled to stop charging the battery; wherein the third current threshold is less than the second current threshold.
12. A charging method, characterized in that, The invention is applied to an electronic device, which includes a first battery management chip, a second battery management chip, and a battery, wherein the first battery management chip and the second battery management chip are respectively connected to the battery. The charging power of the first battery management chip is greater than the charging power of the second battery management chip; the charging method includes: When the electronic device is connected to the charger and the screen is off, the output voltage of the first battery management chip is set to a first value, and the output voltage of the second battery management chip is set to a second value; both the first value and the second value are greater than zero. When the screen of the electronic device is on, the output voltage of the second battery management chip is set to zero.
13. The charging method according to claim 12, characterized in that, Setting the output voltage of the second battery management chip to a second value includes: According to the first step length, the output voltage of the second battery management chip is adjusted from zero steps to the second value; And / or, When the electronic device screen is on, setting the output voltage of the second battery management chip to zero includes: According to the second step size, the output voltage of the second battery management chip is adjusted from the second numerical step to zero.
14. The charging method according to claim 13, characterized in that, Setting the output voltage of the first battery management chip to a first value and setting the output voltage of the second battery management chip to a second value further includes: According to the third step, the output voltage of the charger is adjusted from the third value to the fourth value, while the output voltage of the first battery management chip remains unchanged.
15. An electronic device, characterized in that, The electronic device includes a first battery management chip, a second battery management chip, a battery, a memory, and a processor, wherein the first battery management chip, the second battery management chip, the battery, and the memory are all coupled to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the electronic device to perform the charging method as described in any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the charging method as described in any one of claims 1 to 14.
Citation Information
Patent Citations
Charging method and device
CN107528098A
Battery current limiting method and device and storage medium
CN115117949A
Battery pack control method and system, electronic equipment and readable storage medium
CN115939544A
Control method, electronic equipment and storage medium
CN117713266A
Charging method, electronic device, computer program product and readable storage medium
CN119010256A