Charging method, electronic device, computer program product, and readable storage medium
By adjusting the start and stop and charging power of the battery management chip in the electronic device according to the display status, the heating problem caused by simultaneous charging of the BUCK and SC chips is solved, and an efficient and safe charging process is achieved.
Patent Information
- Application Number
- CN202410941848.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-07-12
AI Technical Summary
When electronic devices use both BUCK and SC chips to charge batteries, they are prone to overheating, affecting battery safety and user experience.
By controlling the start and stop and charging power of the first battery management chip and the second battery management chip, the charging method is adjusted according to the on and off status of the display screen to ensure efficient charging and reduce heat.
While ensuring high charging efficiency, it reduces battery heating, improves battery safety and user experience.
Smart Images

Figure CN119010256B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a charging method, an electronic device, a computer program product, and a readable storage medium. Background Art
[0002] Electronic devices can include both BUCK and SC chips. BUCK chips have relatively low charging efficiency, while SC chips have relatively high charging efficiency. When connected to a charger, an electronic device can charge its battery using either a BUCK chip or an SC chip. Electronic devices can choose to charge their batteries using either a BUCK or SC chip based on factors such as application requirements, supported power range, required battery charging rate, and compatible fast charging protocols.
[0003] If an electronic device is equipped with both a BUCK chip and an SC chip, charging efficiency will be relatively low if only the BUCK chip or the SC chip is used to charge the battery. If both BUCK and SC chips are used simultaneously, heating may occur, affecting battery safety and user experience. Summary of the Invention
[0004] The embodiments of the present application provide a charging method, an electronic device, a computer program product, and a readable storage medium, which are used to solve the technical problem that when an electronic device charges a battery using a BUCK and SC chip simultaneously, heating may occur.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a charging method is provided for use in an electronic device. The electronic device 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 connected to the battery, respectively. The first battery management chip and the second battery management chip can be connected to the charger via a charging interface, or can be connected to the charger wirelessly. The charging power of the first battery management chip is greater than the charging power 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.
[0007] After the electronic device is connected to the charger, when 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.
[0008] After the display screen of the electronic device is turned off, the second battery management chip is controlled to turn on, and the first battery management chip and the second battery management chip charge the battery at the same time. In this way, higher charging efficiency can be achieved.
[0009] When the screen of the electronic device is on, the first battery management chip is controlled to charge the battery.
[0010] After the display of the charging electronic device turns on, the second battery management chip is turned off and the second battery management chip also stops charging the battery. In this case, the first battery management chip and the second battery management chip no longer charge the battery at the same time, reducing the degree of battery heating.
[0011] In another possible implementation of the first aspect, the charging method further includes: in response to the electronic device being connected to a charger, controlling the first battery management chip to charge the battery.
[0012] When the electronic device is connected to a charger, the first battery management chip with a relatively high charging power is controlled to charge the battery first. This can achieve higher charging efficiency and avoid battery overheating caused by activating two battery management chips at the same time.
[0013] In another possible implementation of the first aspect, the electronic device may determine a first current limit value corresponding to the first battery management chip, and may adjust the output voltage of the first battery management chip based on the first current limit value. Furthermore, the electronic device may determine a second current limit value corresponding to the second battery management chip, and may adjust the output voltage of the second battery management chip based on 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 separately to avoid excessive total current while maintaining a high charging power.
[0014] In another possible implementation of the first aspect, when the electronic device's screen is off, during the process of controlling the first battery management chip to charge the battery based on the first current limit value, and controlling the second battery management chip to charge the battery based on the 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 charging current allowed by 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.
[0015] For example, the target current limit value may be determined based on the real-time temperature of the electronic device; wherein the target current limit value is positively correlated with the real-time temperature.
[0016] In another possible implementation of the first aspect, the electronic device may obtain a 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 the third current limit value is positively correlated with the real-time temperature. The fourth current limit value corresponds to the maximum charging current allowed by a first device, and the first device includes at least one of a battery, a charger, and a bus of the electronic device. The electronic device selects the minimum of the multiple current limit values as the maximum current value allowed by the battery, thereby minimizing the current limit value of other hardware or modules, thereby reducing heat generation and minimizing damage to the electronic device.
[0017] In another possible implementation of the first aspect, determining the first current limiting value and the second current limiting value according to the target current limiting value includes any of the following:
[0018] 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;
[0019] 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;
[0020] 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;
[0021] 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;
[0022] The real-time temperature is 45 degrees Celsius, the target current limit value may be 8500 mA, the first current limit value may be 7000 mA, and the second current limit value may be 2000 mA.
[0023] 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. When the electronic device controls 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 electronic device controls the first battery management chip to charge the battery and controls the second battery management chip to stop charging the battery.
[0024] In this way, turning off the second battery management chip can reduce the heating of the battery and ensure a relatively high charging efficiency, so that the battery can be fully charged more safely and quickly.
[0025] In another possible implementation of the first aspect, the electronic device records a current closer to a fully charged battery 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 may further adjust the charging method.
[0026] 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. The second current threshold is less than the first current threshold. When the battery is closer to full charge, the electronic device charges through the second battery management chip, thereby reducing heat generation and maintaining a relatively stable state close to full charge.
[0027] In another possible implementation of the first aspect, the electronic device records a current value corresponding to a fully charged battery as a third current threshold, where the third current threshold 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, the electronic device controls the second battery management chip to stop charging the battery when the battery current is less than the third current threshold; wherein the third current threshold is less than the second current threshold.
[0028] In a second aspect, a charging method is also provided, which is applied to an electronic device. The electronic device 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:
[0029] After the electronic device is connected to the charger, when the screen of the electronic device 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;
[0030] When the screen of the electronic device is on, the output voltage of the second battery management chip is set to zero.
[0031] After the display screen of the electronic device is turned off, the second battery management chip is controlled to turn on, and the first battery management chip and the second battery management chip charge the battery at the same time. In this way, higher charging efficiency can be achieved.
[0032] In another possible implementation of the first aspect, setting the output voltage of the second battery management chip to a second value includes:
[0033] According to the first step, the output voltage of the second battery management chip is adjusted from zero to a second value;
[0034] and / or,
[0035] When the screen is on, the output voltage of the second battery management chip is set to zero, including:
[0036] According to the second step length, the output voltage of the second battery management chip is adjusted stepwise from the second value to zero.
[0037] Since the second battery management chip is a power-adjustable battery management chip, the charging driver can step-by-step adjust the output current or output voltage of the second battery management chip to avoid instantaneous current diversion of the second battery management chip, which affects the normal charging of the first battery management chip.
[0038] 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:
[0039] According to the third step, the output voltage of the charger is adjusted from the third value to a fourth value, and the output voltage of the first battery management chip is set to remain unchanged.
[0040] Since the second battery management chip is a power-adjustable battery management chip, the charging driver can step-by-step adjust the output current or output voltage of the second battery management chip to avoid instantaneous current diversion of the second battery management chip, which affects the normal charging of the first battery management chip.
[0041] According to a third aspect, an electronic device is provided. 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.
[0042] Memory stores computer-executable instructions;
[0043] The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the charging method according to any one of the first aspect or the second aspect.
[0044] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer is caused to execute the charging method as described in any one of the first aspect or the second aspect.
[0045] In a fifth aspect, an electronic device is provided that has the functionality to implement the charging method of the first aspect. This functionality can be implemented via hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functionality.
[0046] In a sixth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer can execute the charging method of any one of the above-mentioned first aspects.
[0047] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any one of the charging methods of the first aspect.
[0048] Among them, the technical effects brought about by any design method in the second to seventh aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of software and hardware interaction of an electronic device provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of a portion of the circuit of the electronic device provided in this embodiment;
[0052] Figure 4 A timing diagram of the charging method provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of a current limiting value variation curve involved in the charging method provided in an embodiment of the present application;
[0054] Figure 6 A flowchart of the charging method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The following description of exemplary embodiments of the present application is made in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0056] To facilitate understanding, some technical common sense involved in the embodiments of this application is first introduced.
[0057] Charging an electronic device involves charging the battery inside the device through a charger and the battery management integrated circuit (BMIC) inside the device. The charger mentioned here can refer to a charger that is specifically designed to connect to a power source and output an electrical signal, or it can refer to a charging port on a device that can output an electrical signal, such as a computer's Universal Serial Bus (USB) port.
[0058] From the perspective of whether the charging cable is connected during the charging process, electronic device charging is mainly divided into wired charging (Wired Charging) and wireless charging (Wireless Charging).
[0059] Wired charging refers to connecting an electronic device to a charger via a data cable. Wireless charging is based on the principle of electromagnetic fields and uses wireless electromagnetic induction between the electronic device and the charger to charge the electronic device without connecting a data cable.
[0060] From the perspective of charging power, electronic device charging is mainly divided into slow charging (Standard Charging) and fast charging (Fast Charging).
[0061] Electronic devices that support slow charging include a first battery management chip that supports slow charging. The first battery management chip connects the charger to the electronic device's battery and controls the charger to charge the battery at a relatively low power. Slow charging can have a power between 5W and 10W, and for the same amount of power, slow charging takes a relatively long time. Slow charging can be wired or wireless.
[0062] The first battery management chip corresponding to slow charging may include a BUCK chip. The BUCK chip is a step-down DC-DC converter chip that can convert high voltage input into a lower voltage output. The chip circuit of the BUCK chip mainly includes a power switch, an inductor element, a capacitor element, a diode and a controller, etc., wherein the power switch may include a diode, a metal oxide semiconductor field effect transistor MOSFET, etc. The BUCK chip is based on pulse width modulation (PWM) technology, which controls the working mode of the chip circuit by controlling the on and off of the power switch to achieve a stable step-down output. The BUCK chip is based on energy conversion of inductor elements and capacitor elements.
[0063] The Buck chip adjusts the output voltage to adapt to the battery input voltage while the input voltage remains unchanged.
[0064] Electronic devices that support fast charging include a second battery management chip that supports fast charging. The second battery management chip connects the charger to the electronic device's battery and controls the charger to charge the battery at a relatively high power. Fast charging can have a power of over 15W, reaching 40W, 50W, or even higher. For a full charge of the same amount, fast charging takes a relatively short time. Fast charging can be wired or wireless.
[0065] The second battery management chip corresponding to 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 requirements of different electronic devices. The second battery management chip can also provide high-precision battery power monitoring and various protection functions, such as overvoltage, overcurrent, and overheating protection, to ensure the safety of the charging process and the health of the battery.
[0066] The second battery management chip can include an SC chip. The SC chip utilizes buck-boost charging, charge pump, and GaN direct drive technologies to provide an end-to-end wired or wireless fast charging solution from AC to battery. The SC chip implements charge pump energy conversion through capacitor elements.
[0067] The SC chip adjusts its output voltage at a fixed ratio to match the battery's input voltage. For example, the SC chip can reduce the charger's input voltage to half before outputting it to the battery. The SC chip cannot adjust its output voltage if the input voltage remains unchanged.
[0068] The electronic device selects a BUCK chip or an SC chip based on the output voltage of the charger and the input voltage of the battery.
[0069] In one example, if the charger doesn't support step-by-step output voltage adjustment, a buck chip can be used to adjust the output voltage to the battery. For example, if the charger supports a fixed setting of "5V 2A," meaning the charger 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 acceptable input voltage for the battery, such as 3V.
[0070] In another example, when the charger supports step-by-step voltage regulation, an SC chip can be used to control the output voltage of the SC chip by adjusting the output voltage of the charger, so that the SC chip outputs an input voltage that the battery can accept.
[0071] In a specific implementation, the electronic device may include a BUCK chip and an SC chip. When the electronic device is connected to a charger, it can charge the battery through the BUCK chip or the SC chip. The electronic device can refer to factors such as application requirements, supported power range, required charging rate of the battery, and adapted fast charging protocol support to choose to charge the battery based on the BUCK chip or the SC chip. The charging efficiency of the electronic device based on the BUCK chip or the SC chip is relatively low. If the electronic device charges the battery based on both the BUCK chip and the SC chip at the same time, especially when the electronic device is in use, it is easy to cause battery heating problems, reducing the battery safety and user experience of the electronic device.
[0072] Based on this, an embodiment of the present application provides a charging method for an electronic device. The electronic device includes a display screen, a first battery management chip, a second battery management chip, and a battery. 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 status of the display screen and related electrical parameters.
[0073] When the display is on, the electronic device can control only the first battery management chip to charge the battery, thereby reducing heating and improving the user experience of the electronic device. When the display is off, the electronic device can control the first and second battery management chips to power the battery simultaneously to improve charging efficiency and reduce charging time. In this way, while ensuring relatively high charging efficiency, heating can be reduced, improving the battery safety and user experience of the electronic device.
[0074] The charging method provided in the embodiments of the present application may be applied to electronic devices including personal computers (PCs), tablet computers, mobile phones, wearable devices (such as smart watches), laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, in-vehicle computers, and other electronic devices with call functions. The embodiments of the present application do not limit the specific types of electronic devices.
[0075] Figure 1The figure shows a schematic diagram of the structure 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 battery), an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, a camera 193, a display 194, and a Subscriber Identification Module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180K, a proximity light sensor 108C, an ambient light sensor 180D, and the like.
[0076] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, etc. Among them, different processing units can be independent devices or integrated into one or more processors. For example, the processor 110 is used to execute the data interaction method in the embodiment of the present application.
[0077] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0078] The charging management module 140 can charge the rechargeable battery by receiving charging input from 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 via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it can also provide power to the electronic device 100 via the power management module 141.
[0079] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the memory 121, the external memory interface 120, the display 194, the camera 193, and the communication module 160. The power management module 141 can also be used to monitor parameters such as the charging management module capacity, the number of charging management module cycles, and the health status (leakage, impedance) of the charging management module. In some embodiments, the power management module 141 can also be provided in the processor 110. In some embodiments, the power management module 141 and the battery 142 can also be provided in the same device.
[0080] 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 may be connected to a charger to charge the battery 142, and the second battery management chip may also be connected to a charger to charge the battery 142. The first battery management chip and the second battery management chip may be connected to the same charger to charge the battery 142 simultaneously or at different times.
[0081] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0082] like Figure 2 Figure 2 shows a schematic diagram of the software and hardware interaction 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 operations. The AP typically includes multiple subsystems, such as a CPU (central processing unit), a GPU (graphics processing unit), a memory controller, and an input / output controller.
[0083] The internal architecture of an application processor can be divided into four layers: 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 without limitation.
[0084] The application layer can 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 can also include applications such as gallery and image processing applications with camera functions. Application packages can also include applications such as call, calendar, map, navigation, music, video, and short message applications.
[0085] The framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0086] The framework layer may also include a window manager, content provider, view system, resource manager, and notification manager. The window manager manages window applications. It can obtain the display size, determine whether a status bar exists, lock the screen, and take screenshots. The content provider stores and retrieves data and makes it accessible to applications. This data can include video, images, and audio. The view system includes visual controls, such as those for displaying text or images. The view system is 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, and video files. The notification manager enables applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically, requiring no user interaction. For example, notifications are used to announce download completions and message reminders. Notifications can also appear in the system's top status bar as icons or scrolling text, such as notifications from background applications, or as dialog windows that appear on the screen. Notifications can also take the form of text messages displayed in the status bar, beeping sounds, vibrations on the terminal, or 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.
[0087] The kernel layer is the layer between hardware and software. The kernel layer includes at least some drivers, such as the charging driver and screen driver involved in this embodiment. The screen driver can obtain the on / off status of the display screen and determine whether the display screen is on or off. The screen driver can send the on / off status of the display screen to other modules, such as sending the on / off status 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 can also include display drivers, audio drivers, sensor drivers, etc., and this embodiment does not impose any restrictions on this.
[0088] The hardware abstraction layer can encapsulate the drivers in the kernel layer and provide a calling interface to the framework layer, shielding the implementation details of the underlying hardware.
[0089] like Figure 2 As shown, the electronic device may also include an application-specific integrated processor (ADSP) 202. The ADSP is optimized for certain tasks and workloads to improve performance and efficiency. The ADSP can be used to process audio signals, video data, image data, etc. The addition of an ADSP to an electronic device can keep it powered on 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 performance and efficiency of the overall system.
[0090] like Figure 2 As shown, in this embodiment, the ADSP may include a charging driver. The charging driver included in the ADSP may control the first battery management chip and the second battery management chip to charge the battery.
[0091] In this embodiment, the screen driver can send the display screen's on / off status to the charging driver, allowing the charging driver to determine whether the display is on or off. The core layer charging driver or the ADSP charging driver can both receive data sent by the temperature control application and the screen driver and control the first and second battery management chips to charge the battery.
[0092] In specific implementation, the temperature control application can be transmitted to the charging driver of the kernel layer through the temperature control HAL of the hardware abstraction layer, or transmitted to the charging driver of the ADSP via the kernel layer and the bus.
[0093] The charging driver of ADSP can also obtain data sent by the temperature control application (or temperature control module) of ADSP to control the first battery management chip and the second battery management chip to charge the battery.
[0094] It should be noted that the temperature control application involved in this embodiment can be an application related to battery temperature control in an electronic device, such as a power saving application or a power saving wizard application, and 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 in an AP or a temperature control module in an ADSP, or other functional modules with similar temperature control functions, without limitation.
[0095] It is understandable that Figure 2The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer layers than shown, and each layer may include more or fewer components, and this application does not limit this.
[0096] In addition, it is understood that in order to implement the charging method in this embodiment, the electronic device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or 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 combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
[0097] like Figure 3 As shown in FIG, it is a partial circuit diagram of the electronic device provided in this embodiment. Figure 3 As shown, 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, and 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.
[0098] The charging driver 304 is connected to the first battery management chip 301 and the second battery management chip 302, respectively, and can control the operation of the first battery management chip 301 and the second battery management chip 302. 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 the output voltage target value of the first battery management chip based on the output voltage setting value, so that the actual output voltage value of the first battery management chip approaches the output voltage setting value. The charging driver 304 can also obtain the step voltage setting value of the first battery management chip 301, so that the first battery management chip 301 can step-adjust the actual output voltage value.
[0099] 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 through 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 a wired transmission method or a wireless transmission method, without limitation.
[0100] like Figure 4 The following is a timing diagram of the charging method provided by the embodiment of the present application. Figure 4 , explaining the specific implementation of the charging method provided in the embodiment of this application.
[0101] S1: When the electronic device is connected to a charger, the first battery management chip is controlled to turn on to charge the battery.
[0102] The electronic device includes a first battery management chip and a second battery management chip. The first battery management chip has a higher charging power than the second battery management chip. When the electronic device is connected to a charger, the first battery management chip is first turned on and begins charging the battery at a relatively high charging efficiency.
[0103] like Figure 4 As shown, S1 may include the following steps:
[0104] S401: The charger transmits an electrical signal to the first battery management chip.
[0105] like Figure 3 As shown, the electronic device is connected to the charger, and the first battery management chip and the second battery management chip can both be connected to the charger through the charging port of the electronic device via a data line / electromagnetic induction. When the first battery management chip is connected to the charger, the charger transmits an electrical signal to the first battery management chip.
[0106] In specific implementation, the electronic device also includes a protocol chip. When the electronic device is connected to the charger, it will first authenticate / handshake the fast charging protocol with the charger through the protocol chip, and start the charging process after the fast charging protocol is successful. The embodiments of this application are all based on the charging method executed under the premise of the fast charging protocol being successful, and will not be repeated here.
[0107] S402: The first battery management chip detects a high level and notifies the charging driver to connect to the charger.
[0108] The first battery management chip receives the electrical signal transmitted by the charger, and the first input port detects a high level. The first battery management chip can notify the charging driver that the charger is connected.
[0109] In other cases, the first battery management chip may also report a high-level event / interrupt to the charger, and the charging driver determines to connect to the charger based on the high-level event / interrupt.
[0110] S403: The charging driver turns on the first battery management chip and starts charging.
[0111] The charging driver determines that the charger is connected and first controls the first battery management chip with relatively higher charging power to charge the battery. In this way, higher charging efficiency can be achieved and the battery overheating problem that may be caused by turning on two battery management chips at the same time can be avoided.
[0112] In a specific implementation, the charging driver can write an enable command to a register of the first battery management chip, and the first battery management chip is enabled based on the enable command. After the first battery management chip is enabled, the charger output voltage is stepped down by the default rate and the charger output voltage, and the battery is charged according to the stepped-down output voltage.
[0113] In other cases, the charging driver can also directly write the output voltage of the first battery management chip into the register of the first battery management chip. The first battery management chip can turn on itself, reduce the output voltage of the charger according to the multiple, and charge the battery according to the output voltage.
[0114] S2: After the display screen of the electronic device is turned off, the second battery management chip is controlled to turn on and start charging the battery.
[0115] When the electronic device's display is off, power consumption is relatively low, and the factors that cause battery heating are relatively few. When the electronic device's display is on, power consumption is relatively high, and the factors that cause battery heating are relatively large. In other words, when the first battery management chip and the second battery management chip are charging the battery simultaneously, the degree of battery heating corresponding to the display being off is less than that when the display is on.
[0116] In the embodiment of the present application, after the display screen of the electronic device is turned off, the second battery management chip is also turned on, and the first battery management chip and the second battery management chip charge the battery at the same time. In this way, higher charging efficiency can be achieved.
[0117] The electronic device executes S2, which may include the following steps:
[0118] S404: The screen driver notifies the charging driver to turn off the screen.
[0119] The core layer of the electronic device may include a screen driver, which can monitor the display screen turning on and off. If the screen driver monitors the display screen turning off, it can report the screen off event to the charging driver.
[0120] S405: The charging driver turns on the second battery management chip and starts charging.
[0121] The charging driver receives the screen off event reported by the screen driver and turns on the second battery management chip, which also starts charging the battery. In this case, the first and second battery management chips charge the battery at the same time, which improves charging efficiency.
[0122] If the second battery management chip uses a solution that instantly boosts the voltage to a higher output voltage, the input current of the first battery management chip may momentarily fall below the startup current of the first battery management chip, causing the first battery management chip to be unable to charge normally. The charging method provided in this embodiment, based on the fact that the second battery management chip is a power-adjustable battery management chip, allows the charging driver to stepwise adjust the output current or output voltage of the second battery management chip to avoid instantaneous current shunting by the second battery management chip, which could affect the normal charging of the first battery management chip.
[0123] 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 a voltage value corresponding to 100 milliamperes, or the boost step size can be 1 millivolt, 20 millivolts, 40 millivolts, or a value between 1 millivolt and 50 millivolts, without limitation.
[0124] 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 specific implementations, the charging driver can obtain the charger's boost step size, for example, 20 millivolts to 40 millivolts. The charger's boost step size can be substantially consistent with the boost step size of the second battery management chip.
[0125] The charging driver can write the charger output voltage setting value to the protocol chip according to the charger's boost step size, causing the charger to increase its output voltage. As the charger and the second battery management chip gradually increase their output voltage, the output voltage of the first battery management chip can be maintained substantially unchanged to ensure normal charging of the first battery management chip.
[0126] S3: After the display screen turns on, the electronic device controls the second battery management chip to turn off and stop charging the battery.
[0127] When the display of an electronic device is on, power consumption is relatively high, leading to a variety of factors that contribute to battery heating. In an embodiment of the present application, after the display is on, the electronic device controls the second battery management chip to shut down, and the first and second battery management chips no longer charge the battery simultaneously. This reduces battery heating and achieves relatively high charging efficiency.
[0128] The electronic device executes S3, which may include the following steps:
[0129] S406: The screen driver notifies the charging driver to turn on the screen.
[0130] The screen driver can monitor the display screen on and off. When the screen driver monitors the display screen on, it can report the screen on event to the charging driver.
[0131] S407: The charging driver turns off the second battery management chip and stops charging.
[0132] The charging driver receives the screen-on event reported by the display driver and shuts down the second battery management chip, which also stops charging the battery. In this case, the first and second battery management chips no longer charge the battery simultaneously, reducing battery heating.
[0133] The second battery management chip is a power-adjustable battery management chip. The charging driver can step-by-step 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 charge normally.
[0134] 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 the charger output voltage setting value to the protocol chip to cause the charger to reduce the output voltage. While the second battery management chip gradually reduces the output voltage, the output voltage of the first battery management chip is maintained substantially unchanged, ensuring normal charging of the first battery management chip.
[0135] The electronic device may also continuously monitor whether the display screen turns on and off, and execute S2 again when the display screen turns off.
[0136] S408: The screen driver notifies the charging driver to turn off the screen.
[0137] S409: The charging driver turns on the second battery management chip and starts charging.
[0138] The specific implementation process can refer to the specific implementation methods of S404 and S405 mentioned above, which will not be repeated here.
[0139] When the electronic device detects that the display screen is lit again, it can execute S3 again. The specific implementation process of the electronic device executing S3 can refer to the specific implementation of S3 above, which will not be repeated here.
[0140] In the charging method provided in the above embodiment, when the electronic device's display is on, only the first battery management chip is controlled to charge the battery, maintaining relatively high charging efficiency and reducing battery heating. When the display is off, the electronic device controls the first and second battery management chips to charge the battery simultaneously, achieving even higher charging efficiency.
[0141] In a specific embodiment, 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 limit value when the first battery management chip and the second battery management chip charge the battery simultaneously.
[0142] S4: The electronic device determines a first current limiting value and a second current limiting value, adjusts the output voltage of the first battery management chip according to the first current limiting value, and adjusts the output voltage of the second battery management chip according to the second current limiting value.
[0143] The first and second battery management chips have different charging powers, corresponding to different heating powers. The electronic device can limit the current values of the first and second battery management chips to control the overall heating power of the electronic device and reduce the degree of battery heating.
[0144] Specifically, the electronic device can determine a first current limit value corresponding to the first battery management chip, and can adjust the output voltage of the first battery management chip based on the first current limit value. Furthermore, the electronic device can determine a second current limit value corresponding to the second battery management chip, and can adjust the output voltage of the second battery management chip based on the second current limit value.
[0145] In one specific embodiment, the electronic device can obtain a total current limit value, which is used to limit the total current value of the electrical signal output by the charger, the total current value output by 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.
[0146] Temperature control applications for electronic devices can determine the corresponding current limit based on the device's real-time temperature and pre-set current limit rules. If the real-time current input to the battery exceeds the current limit, the battery temperature may rise rapidly, causing the battery to heat up quickly and affecting battery health.
[0147] Other hardware modules of electronic devices also have corresponding current limit values. For example, the bus of an electronic device will determine the bus current limit value. If the real-time current exceeds the bus current limit value, it may cause the bus to heat up or overheat, affecting the data transmission efficiency and bus life of the bus. In addition, the battery of an electronic device will also determine the total battery current limit value. If the real-time current exceeds the total battery current limit value, it may cause the battery to heat up or overheat, affecting the battery charging safety and service life. The charger will also determine the total charger current limit value. If the real-time current exceeds the total charger current limit value, it may also cause the charger to heat up or overheat, affecting the charging safety and service life of the charger. The total current limit value determined by the temperature control application and other hardware modules of the electronic device can be adjusted according to the real-time application scenario of the electronic device, or it may remain unchanged without limitation.
[0148] The electronic device can obtain multiple total current limit values, determine a target current limit value from these values, and then determine the first current limit value and the second current limit value based on the target current limit value. For example, the electronic device can select the minimum current limit value from the total line values such as the temperature control total current limit value, the bus total current limit value, the charger total current limit value, and the battery total current limit value as the target current limit value. Alternatively, the electronic device can select the median or mean of the multiple current limit values as the target current limit value, without limitation.
[0149] In a specific embodiment, the electronic device determines a target current limit value based on the temperature control total current limit value, and then determines a first current limit value and a second current limit value based on 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 executes S4, which may specifically include the following steps:
[0150] S410: The real-time temperature exceeds a first temperature threshold, and the temperature control application determines a total temperature control current limit value.
[0151] S411: The temperature control application sends the temperature control total current limit value to the charging driver.
[0152] The temperature control application can monitor the real-time temperature of the electronic device in real time and trigger temperature control 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 control current limit value, and send the total temperature control current limit value to the charging driver when the real-time temperature exceeds the first temperature threshold.
[0153] The higher the real-time temperature of the electronic device, the lower the total current limit should be set to reduce battery heating. Electronic devices can store multiple sets of data, each recording a set of temperatures and the corresponding temperature-controlled total current limit value to limit the current value at different temperatures.
[0154] In a specific embodiment, the temperature control application can also maintain a mapping table between temperature and total temperature control current limit values, and determine the corresponding total temperature control current limit value based on the real-time temperature. As shown in Table 1, if the real-time temperature is 37 degrees Celsius, the total temperature control current limit value can be 12,000 mA. If the real-time temperature is 38 degrees Celsius, the total temperature control current limit value can be 10,900 mA. If the real-time temperature is 39 degrees Celsius, the total temperature control current limit value can be 10,000 mA. If the real-time temperature is 43 degrees Celsius, the total temperature control current limit value can be 9,000 mA. If the real-time temperature is 45 degrees Celsius, the total temperature control current limit value can be 8,500 mA.
[0155] Table 1
[0156] Temperature (Celsius) 37 38 39 43 45 Temperature control total current limit value (mA) 12000 10900 10000 9000 8500
[0157] Based on Table 1, the temperature control application may 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 as the first temperature threshold.
[0158] In one example, the temperature control application may determine 38 degrees Celsius as the first temperature threshold. When the real-time temperature does not exceed 38 degrees Celsius, the temperature control application may determine that the total temperature control current limit value is the maximum temperature control total current limit value, that is, 12000 mA. The temperature control application may send the maximum temperature control total current limit value to the charging driver, or the charging driver may pre-store the maximum temperature control total current limit value. 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 may determine the target current limit value to be the maximum temperature control total current limit value. The charging driver may control the first battery management chip and the second battery management chip to charge at the maximum temperature control total current limit value, and try to obtain a larger 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 type of mapping function, denoted as a 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 temperature control total current limit value. The temperature control application can input the real-time temperature value into the first mapping function to obtain the corresponding temperature control total current limit value.
[0160] In other examples, the temperature control application can also maintain different mapping tables or determine different temperature control 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 no audio is currently playing, the temperature control total current limit value may be determined to be 10,900 mAh; if audio is currently playing, the temperature control total current limit value may be determined to be 10,000 mAh. In other words, at the same temperature, the temperature control application can determine a relatively low temperature control total current limit value based on the currently running high-power application to reduce battery heating.
[0161] S412: The charging driver determines a target current limit value according to the total current limit value of the temperature control, and determines a first current limit value and a second current limit value according to the target current limit value.
[0162] The charging driver receives the total temperature control current limit value and can directly determine the total temperature control current limit value as the target current limit value. The charging driver can also determine the minimum value among the total temperature control current limit value, the total bus current limit value, the total charger current limit value, and other total current limit values as the target current limit value.
[0163] The charging driver obtains a target current limit value for charging, and determines a first current limit value corresponding to the first battery management chip and a second current limit value corresponding to the second battery management chip.
[0164] In one example, the charging driver can maintain a current limit value allocation table, and determine the first current limit value and the second current limit value according to the third current value. Table 2 below shows the allocation scheme of the first current limit value and the second current limit value in the target current limit value range.
[0165] For example, if the charging driver determines that the target current limit value is 12,000 mAh, the charging driver may allocate a first current limit value of 8,000 mAh and a second current limit value of 4,000 mAh. For example, if the charging driver determines that the target current limit value is 10,900 mAh, the charging driver may allocate a first current limit value of 8,000 mAh and a second current limit value of 2,900 mAh. For example, if the charging driver determines that the target current limit value is 10,000 mAh, the charging driver may allocate a first current limit value of 8,000 mAh and a second current limit value of 2,000 mAh. For example, if the charging driver determines that the target current limit value is 9,000 mAh, the charging driver may allocate a first current limit value of 7,500 mAh and a second current limit value of 1,500 mAh. For another example, if the charging driver determines that the target current limit value is 8,500 mAh, the charging driver may allocate a first current limit value of 7,000 mAh and a second current limit value of 2,000 mAh.
[0166] Table 2
[0167] Target current limit (mA) 12000 10900 10000 9000 8500 First current limit value (mA) 8000 8000 8000 7500 7000 Second current limit value (mA) 4000 2900 2000 1500 1500
[0168] The current limiting value distribution scheme shown in Table 2 above corresponds to the current limiting value change curve as shown in Figure 5 When the target current limit is relatively large, for example, when the third current limit is reduced from 12,000 mAh to 10,000 mAh, the temperature control application can assign the first current limit to 8,000 mAh and keep it unchanged. This allows the first battery management chip to maintain a high charging power before the battery reaches a higher temperature, thereby improving the charging speed.
[0169] In other examples, the driver application may also allocate the target current limit value into the first current limit value and the second current limit value according to a fixed ratio. Alternatively, the driver application may also determine the first current limit value and the second current limit value based on the target current limit value based on other current limit value allocation schemes, without limitation.
[0170] S413: The charging driver sends a first current limit value to the first battery management chip.
[0171] S414: The charging driver sends a second current limit value to the second battery management chip.
[0172] The charging driver determines the first battery management chip and the second battery management chip based on the target current limit value, and may send the first current limit value to the first battery management chip, and send the second current limit value to the second battery management chip. In a specific implementation, the order in which the charging driver sends the first current limit value to the first battery management chip and sends the second current limit value to the second battery management chip is not limited. For example, the charging driver may also perform the operation of sending the first current limit value and the second current limit value simultaneously, so that the first battery management chip and the second battery management chip can synchronously adjust the output voltage, so that the current value output by the first battery management chip approaches the first current limit value, and the current value output by the second battery management chip approaches the second current limit value.
[0173] In one example, the charging driver may calculate an output voltage setting value of the second battery management chip based on the second current limit value, and the charging driver may write the output voltage setting value corresponding to the second current limit value into a register of the second battery management chip. The second battery management chip adjusts its output voltage based on the output voltage setting value corresponding to the second current limit value so that the output current of the second battery management chip approaches the second current limit value.
[0174] The second battery management chip is a voltage-adjustable chip, while the first battery management chip is a rate-step-down chip with non-adjustable voltage. The charging driver can step-by-step adjust the output voltage of the second battery management chip so that the output current of the second battery management chip is close to the second current limit value.
[0175] The charging driver may also step-by-step adjust the output current limit of the charger so that the actual output current value of the charger approaches the target current limit value, thereby causing the actual output current value of the first battery management chip to approach the first current limit value. For example, when obtaining the target current limit value, the charging driver may 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.
[0176] After the temperature control application triggers the temperature control current limit, the charging driver controls the first battery management chip and the second battery management chip to perform current limit adjustment for battery charging at the same time based on the temperature control total current limit value and other total current limit values. While ensuring a high charging power, the battery heating level is reduced by limiting the output current of the first battery management chip and the second battery management chip.
[0177] When the battery is nearly fully charged, the input current is low, for example, only 1000 mA. The charging driver can shut down the first battery management chip when the battery is nearly fully charged to prevent the high output current of the first battery management chip from causing excessive heating of the battery. To ensure the battery is fully charged, the charging driver can also retain the second battery management chip to continue slow charging the battery, gradually charging it to full capacity at a relatively low power.
[0178] S415: The target current limit value is less than the first current threshold, and the charging driver determines to turn off the second battery management chip.
[0179] S416: The charging driver turns off the second battery management chip and stops charging.
[0180] The charging driver determines a first current limit and a second current limit based on the total temperature-controlled current limit. 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, stopping charging.
[0181] When the charging driver limits the current to exceed the first current threshold, the second battery management chip is turned off and only the first battery management chip is retained. The first current limit value corresponding to the first battery management chip is relatively large, and the charging power is also relatively large.
[0182] 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.
[0183] After the electronic device turns off the second battery management chip, it only uses the first battery management chip. When the battery is almost fully charged, the first battery management chip can be turned off again to reduce the degree of battery heating. The electronic device then turns on the second battery management chip to slowly charge the battery until the battery is fully charged.
[0184] The electronic device executes S5, which mainly includes the following steps:
[0185] S417: The battery current is less than the second current threshold, and the charging driver is determined to shut down the first battery management chip.
[0186] S418: The charging driver turns off the first battery management chip and stops charging.
[0187] The charging driver may record a current value corresponding to a certain battery level as a second current threshold when the battery level approaches the maximum battery level. The charging driver may obtain the battery current at the battery input port and determine whether the battery current is less than the second current threshold. When 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.
[0188] The charging driver may 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 may stop charging the battery based on the shutdown instruction (or set the output voltage to zero).
[0189] S419: The charging driver starts a timer, and when the timer times out, it is determined that the second battery management chip is turned on.
[0190] S420: The charging driver turns on the second battery management chip to start charging.
[0191] When the charging driver turns off the first battery management chip, the battery power is close to the cutoff voltage but has not yet reached the maximum power of the battery. The charging driver can turn on the second battery management chip again to slowly charge the battery.
[0192] In a specific implementation, the charging driver can start a timer before turning off the first battery management chip. The timer can be set to 1 minute, or any value between 20 seconds and 200 seconds. During this process, the battery management chip suspends charging to reduce heat generation.
[0193] After the timer times out, the charging driver turns on the second battery management chip, and the second battery management chip performs the final charging for the battery.
[0194] S421: The battery current is less than a third current threshold, and it is determined to shut down the second battery management chip.
[0195] S419: Turn off the second battery management chip and stop charging.
[0196] The charging driver may record the battery current value corresponding to the maximum battery power as the third current value, and the third current value may be zero or a value close to zero.
[0197] The charging driver can obtain the battery current of 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 the second battery management chip stops charging the battery.
[0198] In one case, the charging driver can determine the step-adjusted voltage value according to the current output voltage and step-down step of the second battery management chip, and write the step-adjusted voltage value into the register of the second battery management chip until the step-adjusted voltage value is zero.
[0199] 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).
[0200] In this way, the charging driver controls the first battery management chip and the second battery management chip to shut down, fully charging the battery. The charging driver can also write a shutdown instruction to the protocol register (or set the output voltage to zero), and the charger can stop charging the battery based on the shutdown instruction (or the output voltage setting to zero).
[0201] In a specific embodiment, Figure 6 FIG2 is a flow chart of a charging method according to an embodiment of the present invention. In this embodiment, the first battery management chip is SC chip and the second battery management chip is BUCK chip. The following description will directly use these two specific chips to describe the charging process.
[0202] The electronic device executes S1, which mainly includes the following processes:
[0203] When an electronic device is connected to a charger, its protocol chip and the charger enter into a fast-charging protocol. Once the fast-charging protocol is successful, charging begins. The electronic device first turns on the SC chip, charging the battery solely through the SC chip. The SC chip offers higher charging efficiency and generates less heat.
[0204] 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 at the same time.
[0205] When the electronic device begins charging the battery, it first controls the SC chip to charge the battery. When the display is off, the electronic device turns on the BUCK chip, and both the BUCK chip and the SC chip charge the battery simultaneously. When the display is on, the electronic device turns off the BUCK chip, leaving only the SC chip to charge the battery. The electronic device can repeatedly turn the BUCK chip on and off based on the display's on and off status, ensuring high charging efficiency while reducing battery heating.
[0206] When an electronic device charges a battery, the battery temperature gradually rises, triggering temperature control and current limiting. The temperature control system should determine the total temperature control current limit based on the real-time temperature and send it to the charging driver. The charging driver determines the minimum value based on the total temperature control current limit and the total current limit values sent by other hardware modules. Based on the current limit allocation rules, it determines the first and second current limit values. The electronic device adjusts the output voltage or output current of the SC chip and the output voltage or output current of the BUCK chip based on the first and second current limit values.
[0207] The electronic device executes S5, and when the battery current is less than the second current threshold, 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.
[0208] The charging driver regulates the SC chip and the BUCK in a periodic manner. The main process of a charging driver regulation cycle can be shown as follows:
[0209] 1. The charging driver receives the total temperature control current limit value issued by the temperature control application, as well as the total charger current limit value, the total bus current limit value, the total battery current limit value, etc., and determines the minimum current limit value among them.
[0210] 2. Based on the minimum current limit value, the charging driver searches the current limit allocation table for the first current limit value corresponding to the SC chip and the second current limit value corresponding to the BUCK chip.
[0211] 3. The charging driver determines whether the display screen is in the bright screen state.
[0212] If the display is in the bright state, set the target current of the BUCK chip to zero.
[0213] If the display is in the off state, the target current of the BUCK chip is set to the second current limit value.
[0214] 4. The charging driver determines whether the current setting of the BUCK chip is greater than the target current of the BUCK chip.
[0215] The BUCK module 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.
[0216] The BUCK chip 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.
[0217] The BUCK chip 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 turns off the BUCK chip.
[0218] 4. The charging driver determines whether the SC chip is turned on.
[0219] The charging driver determines that the SC chip is turned off and enters the slow charging stage.
[0220] 5. The charging driver determines whether the SC chip is turned on and whether the battery current is less than 1A.
[0221] The charging driver determines that the SC chip determines that the battery current is less than 1A and turns off the SC chip. The charging driver starts a timer for 1 minute. After the timer expires, the charging driver turns on the BUCK chip and enters the slow charging phase.
[0222] 6. The charging driver determines whether the SC chip judges that the battery current is greater than 1A, and the charging driver determines whether the battery voltage is greater than the cutoff voltage.
[0223] 7. The charging driver determines that the battery voltage is greater than the cutoff voltage and reduces the output voltage of the charger in steps of 20 mV.
[0224] 8. The charging driver determines whether the output current of the SC chip is less than the target current of the SC chip.
[0225] The output current of the SC chip is less than the target current of the SC chip, and the output voltage of the charger is increased in steps of 20 mV.
[0226] The output current of the SC chip is greater than the target current of the SC chip, and the output voltage of the charger is reduced in steps of 20 mV.
[0227] 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 and turns off the BUCK chip, completing the charging process.
[0228] In summary, the charging method provided in the embodiment of the present application realizes a method of improving charging efficiency and reducing charging heat in a mode in which the SC chip corresponding to fast charging and the BUCK chip corresponding to slow charging work together.
[0229] In addition, an embodiment of the present application further provides an electronic device, comprising a first battery management chip, a second battery management chip, a battery, a display screen, a memory, and a processor;
[0230] Memory stores computer-executable instructions;
[0231] The processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the charging method provided in the above embodiment. In addition to these main components, the electronic device also includes components for realizing basic functions, for details, refer to the above Figure 1 Specific instructions.
[0232] The charging methods in the aforementioned embodiments can all be implemented in the electronic device 100 having the aforementioned hardware structure.
[0233] On the basis of the above embodiments, an embodiment of the present application further provides a charging device, which includes a processor, and the processor is used to execute the charging method provided in the above embodiments.
[0234] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the charging method provided in the above embodiment.
[0235] An embodiment of the present application also provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the charging method provided in the above embodiment.
[0236] The specific implementation methods of the electronic device, chip system, computer-readable storage medium, and computer program product containing instructions provided in the embodiments of the present application and the technical effects brought about by them can be found in the specific implementation process of the charging method provided in the aforementioned embodiments and the technical effects brought about by them, which will not be repeated here.
[0237] In some embodiments, through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions 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 refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0238] The functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0239] If the integrated unit is implemented in the form of 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 solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk.
[0240] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A charging method, characterized in that: Applicable to electronic equipment, the electronic equipment comprising 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 connected to the battery respectively; The charging power of the first battery management chip is greater than the charging power of the second battery management chip; and the charging method includes: In response to the electronic device being connected to a charger, controlling the first battery management chip to charge the battery; After the electronic device is connected to the charger, when 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; wherein the first battery management chip charges the battery based on a first current limit value, and the second battery management chip charges the battery based on a second current limit value, the sum of the first current limit value and the second current limit value is less than or equal to a target current limit value, and the target current limit value is related to the real-time temperature of the electronic device and / or the maximum charging current allowed by a first component of the electronic device, the first component including at least one of the battery, the charger, and a bus of the electronic device; When 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, wherein: The first current limiting value is greater than the second current limiting value.
3. The charging method according to claim 1 or 2, characterized in that: When the screen of the electronic device is off, before controlling the first battery management chip to charge the battery based on the first current limiting value, and controlling the second battery management chip to charge the battery based on the second current limiting value, the method further includes: Obtaining a target current limit value; wherein the target current limit value is used to indicate the maximum charging current allowed by the battery; The first current limiting value and the second current limiting value are determined according to the target current limiting value.
4. The charging method according to claim 3, characterized in that: The obtaining of the target current limiting 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.
5. The charging method according to claim 3, wherein: The obtaining of the target current limiting value includes: Obtaining 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, the third current limit value is positively correlated with the real-time temperature, and the fourth current limit value is a maximum charging current allowed by the first device; The minimum value between the third current limit value and the fourth current limit value is used as the target current limit value.
6. The charging method according to claim 3, wherein: Determining the first current limiting value and the second current limiting value according to the target current limiting value includes any one of the following: The real-time temperature is 37 degrees Celsius, the target current limit value is 12000 mA, the first current limit value is 8000 mA, and the second current limit value is 4000 mA; The real-time temperature is 38 degrees Celsius, the target current limit value is 10900 mA, the first current limit value is 8000 mA, and the second current limit value is 4000 mA; The real-time temperature is 39 degrees Celsius, the target current limit value is 10,000 mA, the first current limit value is 8,000 mA, and the second current limit value is 2,000 mA; The real-time temperature is 43 degrees Celsius, the target current limit value is 9000 mA, the first current limit value is 7500 mA, and the second current limit value is 1500 mA; The real-time temperature is 45 degrees Celsius, the target current limit value is 8500 mA, the first current limit value is 7000 mA, and the second current limit value is 2000 mA.
7. The charging method according to claim 3, wherein: The charging method further includes: In 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.
8. The charging method according to claim 7, 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 of the battery is less than a 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.
9. The charging method according to claim 8, 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 of the battery 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.
10. A charging method, characterized in that: Applicable to electronic equipment, the electronic equipment comprising 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 connected to the battery respectively; The charging power of the first battery management chip is greater than the charging power of the second battery management chip; and the charging method includes: In response to the electronic device being connected to a charger, setting the output voltage of the first battery management chip to a first value; After the electronic device is connected to the charger, when the screen of the electronic device is off, the output voltage of the first battery management chip is set to a first value according to the first current limit value, and the output voltage of the second battery management chip is set to a second value according to the second current limit value; the first value and the second value are both greater than zero; the sum of the first current limit value and the second current limit value is less than or equal to a target current limit value, and the target current limit value is related to the real-time temperature of the electronic device and / or the maximum charging current allowed by a first component of the electronic device, the first component including at least one of the battery, the charger, and a bus of the electronic device; When the screen of the electronic device is on, the output voltage of the second battery management chip is set to zero.
11. The charging method according to claim 10, wherein: Setting the output voltage of the second battery management chip to a second value includes: According to the first step, setting the output voltage of the second battery management chip to be adjusted from zero to the second value in steps; and / or, When the screen of the electronic device is on, setting the output voltage of the second battery management chip to zero includes: According to the second step length, the output voltage of the second battery management chip is set to be adjusted stepwise from the second value to zero.
12. The charging method according to claim 11, wherein: The step of setting the output voltage of the first battery management chip to a first value and the output voltage of the second battery management chip to a second value further includes: According to the third step length, the output voltage of the charger is adjusted from the third value to a fourth value, and the output voltage of the first battery management chip is set to remain unchanged.
13. 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-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the charging method according to any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the charging method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Charging method and device
CN107528098A
Control method, electronic equipment and storage medium
CN117713266A