Battery charging control method of electronic equipment and electronic equipment

By acquiring battery parameters and power consumption current values, an adaptive current limit value is determined for charging, solving the problem of battery capacity decreasing instead of increasing during electronic device charging, and achieving stable charging and normal device operation in high-temperature environments.

CN119010245APending Publication Date: 2024-11-22HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310574214.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

During the charging process of electronic devices, the battery capacity may decrease instead of increase during use, especially at high temperatures where the combined power consumption of the electronic device and the power consumption of the system-on-a-chip leads to increased heat, affecting the battery's charging and discharging performance.

Method used

By acquiring the battery's current parameters, including temperature and power consumption current, the limiting current value in DC charging mode is determined and used as the online charging current. This ensures that the limiting current value is not lower than the power consumption current value and is negatively correlated with the battery temperature to adapt to high-temperature environments.

Benefits of technology

In high-temperature environments, it is essential to ensure that the battery capacity of electronic devices does not decrease during charging, reduce battery wear, improve charging efficiency, and ensure the normal operation of system-on-a-chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010245A_ABST
    Figure CN119010245A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a battery charging control method of electronic equipment and the electronic equipment, and relates to the technical field of the electronic equipment. In the using process of the electronic equipment, current battery parameters including the current battery temperature are obtained; when the current battery temperature is in the preset warm temperature interval and the battery is in the direct current charging mode, the current use power consumption current value of the electronic equipment is obtained, then the current limit current value in the direct current charging mode is determined according to the current use power consumption current value and the current battery temperature, and the current limit current value is used as the on-line current. It can be ensured that the on-line current provided by the adapter for the electronic equipment is not lower than the power consumption current of the electronic equipment, and then the situation that the electric quantity of the battery is not increased but decreased when the battery is in the charging state is reduced as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a battery charging control method for electronic equipment and the electronic equipment. Background Art

[0002] With the popularization of electronic devices, more and more electronic devices are used in people's lives, which has led to the scene of charging and using electronic devices at the same time becoming a very common phenomenon. In such a scenario, since the use of electronic devices is realized through the operation of the system-level chip, the power consumption in the battery charging circuit of the electronic device and the power consumption of the system-level chip in the running state are superimposed, which will cause a sharp increase in heat release, causing the electronic device to heat up. However, temperature changes have a great impact on the charging and discharging performance of the battery. Too high a temperature will destroy the chemical balance in the battery, causing the battery capacity to decline, causing irreparable damage to the electronic device. Therefore, existing electronic devices often set strict temperature control and current limiting strategies during the charging process.

[0003] In the related technology, the temperature-controlled current limiting strategy will limit the charging current of electronic devices at high temperatures. The common response is to exit the high-voltage DC charging (also known as fast charging) with higher charging efficiency and switch to buck (step-down conversion) charging. This charging method will cause the charging efficiency of electronic devices to drop sharply. Because the power consumption current of electronic devices is large and unrestricted during the use of electronic devices, when the power consumption current of electronic devices exceeds the charging current, it will cause the battery to discharge, that is, the problem of the power of the electronic device not increasing but decreasing during the charging process. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a battery charging control method for an electronic device and an electronic device, so as to improve the situation where the battery power decreases instead of increases when the electronic device is used during the charging process. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a battery charging control method for an electronic device, wherein the electronic device includes a battery, and the method includes:

[0006] During use of the electronic device, obtaining current battery parameters of the battery, wherein the current battery parameters include current battery temperature;

[0007] When the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode, obtaining a current power consumption current value of the electronic device;

[0008] Determine a current limiting current value in a DC charging mode according to a current power consumption current value and a current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature;

[0009] The current limiting current value is used as the online current, and the battery is charged in a direct current charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

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

[0011] Get the current battery parameters of the battery;

[0012] Determine the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode;

[0013] The battery is charged using the target DC charging mode.

[0014] In a third aspect, an embodiment of the present application provides a battery charging control device for an electronic device, wherein the electronic device includes a battery and a system-level chip, and the device includes:

[0015] A battery parameter acquisition module, used to acquire current battery parameters of the battery during use of the electronic device, wherein the current battery parameters include current battery temperature;

[0016] A power consumption current value acquisition module is used to acquire the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode;

[0017] A current limiting value determination module is used to determine a current limiting current value in a DC charging mode according to a current power consumption current value and a current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature;

[0018] The battery charging module is used to use the current limiting current value as the online current to charge the battery in a DC charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

[0019] In a fourth aspect, an embodiment of the present application provides a battery charging control device for an electronic device, the device comprising:

[0020] Battery parameter module, used to obtain the current battery parameters of the battery;

[0021] A charging mode determination module is used to determine the DC charging mode with the highest charging efficiency under current battery parameters to obtain a target DC charging mode;

[0022] A battery charging module is used to charge the battery using the target DC charging mode.

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

[0024] Batteries, system-level chips and charging chips;

[0025] The system-level chip is used to obtain current battery parameters of the battery during use of the electronic device, wherein the current battery parameters include current battery temperature;

[0026] The charging chip is used to obtain the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode; determine the current limiting current value in the DC charging mode according to the current power consumption current value and the current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value and the current limiting current value is negatively correlated with the current battery temperature; use the current limiting current value as the online current and charge the battery in a DC charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

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

[0028] Batteries, system-level chips and charging chips;

[0029] The system-level chip is used to obtain the current battery parameters of the battery; determine the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode;

[0030] The charging chip is used to charge the battery using the target DC charging mode.

[0031] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the battery charging control method described in any one of the present application is implemented.

[0032] Beneficial effects of the embodiments of the present application:

[0033] The battery charging control method of the electronic device provided in the embodiment of the present application obtains current battery parameters including the current battery temperature during the use of the electronic device, and obtains the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode. Then, based on the current power consumption current value and the current battery temperature, the current limiting current value in the DC charging mode is determined, and the current limiting current value is used as the online current, which can ensure that the online current provided by the adapter to the electronic device is not lower than the power consumption current of the electronic device, thereby minimizing the situation where the battery charge decreases instead of increases during the charging state.

[0034] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0036] Figure 1-1 A schematic diagram of the battery power of an electronic device decreasing during the charging process in the related art;

[0037] Figure 1-2 A schematic diagram of a charging chip providing current to a battery and a system-level chip in the related art;

[0038] Figure 1-3 A schematic flow chart of a first method for controlling battery charging of an electronic device provided in an embodiment of the present application;

[0039] Figure 1-4 A schematic flow chart of a second method for controlling battery charging of an electronic device provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of a smart phone system architecture for a battery charging control method provided in an embodiment of the present application;

[0041] Figure 3 A first example flow chart of a battery charging control method for an electronic device provided in an embodiment of the present application;

[0042] Figure 4-1 A second example flow chart of the method for controlling battery charging of an electronic device provided in an embodiment of the present application;

[0043] Figure 4-2A graph showing the relationship between charging efficiency and battery current under different DC charging modes provided in an embodiment of the present application;

[0044] Figure 5-1 A possible implementation of step S42 provided in the embodiment of the present application;

[0045] Figure 5-2 An example diagram of a temperature curve of a first electronic device charging process provided in an embodiment of the present application;

[0046] Figure 5-3 An example diagram of a temperature curve of a second electronic device charging process provided in an embodiment of the present application;

[0047] Figure 6-1 A possible implementation of step S43 provided in the embodiment of the present application;

[0048] Figure 6-2 A third flow chart of the method for controlling battery charging of an electronic device provided in an embodiment of the present application;

[0049] Figure 6-3 A fourth flow chart of a method for controlling battery charging of an electronic device provided in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of a first structure of a battery charging control device for an electronic device provided in an embodiment of the present application;

[0051] Figure 8 A second structural schematic diagram of a battery charging control device for an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0053] In the related art, when an electronic device is used during charging, the battery power of the electronic device may decrease instead of increase. Figure 1-1 As shown in FIG. 1 , during the charging process of the electronic device, the power of the electronic device is 80% at a certain moment. Figure 1-1 As shown in the left figure; at the same time, the user starts to use the electronic device. Although the electronic device is charging, the power consumption is consumed. After a period of time, the battery power becomes 70%, for example Figure 1-1As shown in the figure on the right. This is because when the battery temperature rises, the electronic device will reduce the line current of the adapter (charger) when the temperature is high in order to reduce the loss of battery life, for example Figure 1-2 As shown, the adapter transmits the online current to the charging chip, and the charging chip splits the online current into two parts, one part is the power consumption current 1, and the other part is the charging current of the battery; when the battery charging current remains unchanged, the online current is reduced, and the power consumption current 1 is reduced. When the power consumption current 1 is not enough to support the power consumption of modules such as system-level chips, it is necessary to use the battery for power supply, that is, the battery provides the power consumption current 2 to support the power consumption of modules such as system-level chips, so that the battery power decreases instead of increases during the charging process. In order to solve this problem, the embodiments of the present application provide a battery charging control method for an electronic device and an electronic device.

[0054] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0055] The present application also provides an electronic device, such as Figure 1-3 As shown, including:

[0056] Batteries, system-level chips and charging chips;

[0057] The system-level chip is used to obtain current battery parameters of the battery during use of the electronic device, wherein the current battery parameters include current battery temperature;

[0058] The charging chip is used to obtain the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode; determine the current limiting current value in the DC charging mode according to the current power consumption current value and the current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value and the current limiting current value is negatively correlated with the current battery temperature; use the current limiting current value as the online current and charge the battery in a DC charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

[0059] Or, the system-level chip is used to obtain current battery parameters of the battery; determine the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode;

[0060] The charging chip is used to charge the battery using the target DC charging mode.

[0061] In a possible embodiment, in order to more clearly describe the electronic device provided by the embodiment of the present application, a possible application scenario of the electronic device provided by the embodiment of the present application is exemplarily described below. It can be understood that the following example is only a possible application scenario of the electronic device provided by the embodiment of the present application. In other possible embodiments, the electronic device provided by the embodiment of the present application can also be applied to other possible application scenarios, and the following example does not impose any limitation on this.

[0062] See also Figure 1-4 , Figure 1-4 Shown is a schematic diagram of the hardware structure of an electronic device targeted by the message display method provided in an embodiment of the present application.

[0063] The electronic device includes a system-level chip 110, a transceiver 120, a battery 150, a charging chip 102, and a display unit 170. The display unit 170 may include a display screen.

[0064] In a possible implementation, the electronic device may further include a memory 130. The system-level chip 110, the transceiver 120 and the memory 130 may communicate with each other through an internal connection path to transmit control and / or data signals. The memory 130 is used to store a computer program, and the system-level chip 110 is used to call and run the computer program from the memory 130.

[0065] In a possible implementation, the electronic device may further include an antenna 140 for transmitting the wireless signal output by the transceiver 120 .

[0066] The system-on-chip 110 and the memory 130 may be combined into a processing device, or more commonly, they are independent components. The system-on-chip 110 is used to execute the program code stored in the memory 130 to implement the battery charging control method in the present application. In specific implementation, the memory 130 may also be integrated into the system-on-chip 110, or may be independent of the system-on-chip 110.

[0067] In one example, the charging chip 102 can call and run the computer program from the memory 130. More commonly, the charging chip 102 has built-in storage particles, and the charging chip 102 calls and runs the computer program from its own storage particles.

[0068] In addition, in order to make the functions of the electronic device more complete, the electronic device may also include one or more of an input unit 160, an audio circuit 180, a camera 190 and a sensor 101, and the audio circuit may also include a speaker 182, a microphone 184, and the like.

[0069] The battery 150 in the electronic device is used to provide power to various devices or circuits in the electronic device.

[0070] Understandably, Figure 1-4 The operations and / or functions of each module in the electronic device shown are respectively for implementing the corresponding processes in the following method embodiments. For details, please refer to the description in the following method embodiments, and the detailed description is appropriately omitted here to avoid repetition.

[0071] Understandably, Figure 1-4 The system-on-chip 110 in the electronic device shown may include one or more processing units, for example: the system-on-chip 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (imagesignalprocessor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. A memory can also be set in the system-on-chip 110 for storing instructions and data. In some embodiments, the memory in the system-on-chip 110 is a high-speed cache memory. The memory can save instructions or data that the system-on-chip 110 has just used or circulated. If the system-on-chip 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the system-on-chip 110 is reduced, and the efficiency of the system is improved.

[0072] In some embodiments, the system-on-chip 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0073] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the system-level chip 110 may include multiple groups of I2C buses. The system-level chip 110 can be coupled to a touch sensor, a charger, a flash, a camera 190, etc. through different I2C bus interfaces. For example: the system-level chip 110 can be coupled to a touch sensor through the I2C interface, so that the system-level chip 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the electronic device.

[0074] The I2S interface can be used for audio communication. In some embodiments, the system-level chip 110 can include multiple groups of I2S buses. The system-level chip 110 can be coupled to the audio circuit 180 through the I2S bus to achieve communication between the system-level chip 110 and the audio circuit 180. In some embodiments, the audio circuit 180 can transmit an audio signal to the transceiver 120 through the I2S interface to achieve the function of answering a voice call through a Bluetooth headset.

[0075] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio circuit 180 and the transceiver 120 can be coupled via a PCM bus interface. In some embodiments, the audio circuit 180 can also transmit audio signals to the transceiver 120 via the PCM interface to implement the function of answering voice calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0076] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the system-level chip 110 and the transceiver 120. For example, the system-level chip 110 communicates with the Bluetooth module in the transceiver 120 through the UART interface to realize the Bluetooth function. In some embodiments, the audio circuit 180 can transmit an audio signal to the transceiver 120 through the UART interface to realize the function of playing music through a Bluetooth headset.

[0077] The MIPI interface can be used to connect the system-level chip 110 with peripheral devices such as the display unit 170 and the camera 190. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the system-level chip 110 and the camera 190 communicate through the CSI interface to realize the shooting function of the electronic device. The system-level chip 110 and the display unit 170 communicate through the DSI interface to realize the display function of the electronic device.

[0078] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the system-level chip 110 with the camera 190, the display unit 170, the transceiver 120, the audio circuit 180, the sensor 101, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0079] In one possible implementation, the sensor 101 may be one or more, for example, it may include a temperature sensor for collecting the temperature of the battery, and may also include a fuel meter for collecting the current and voltage of the battery; in addition, in other possible examples, the sensor 101 may also include an inertial measurement unit, a light sensor, etc.

[0080] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0081] Understandably, Figure 1-4The power supply 150 shown is used to power the system-level chip 110, the memory 130, the display unit 170, the camera 190, the input unit 160 and the transceiver 120. The antenna 140 is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, the antenna 140 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0082] The transceiver 120 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 120 can be one or more devices integrating at least one communication processing module. The transceiver 120 receives electromagnetic waves via the antenna 140, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the system-level chip 110. The transceiver 120 can also receive the signal to be sent from the system-level chip 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 140.

[0083] In some embodiments, the antenna 140 and the transceiver 120 of the electronic device are coupled so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

[0084] The electronic device implements the display function through a GPU, a display unit 170, and an application processor. The GPU is a microprocessor for image processing, which connects the display unit 170 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The system-level chip 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0085] The display unit 170 is used to display images, videos, etc. The display unit 170 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (AMOLED), a flexible light emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display units 170, where N is a positive integer greater than 1.

[0086] The electronic device can realize the shooting function through the ISP, the camera 190, the video codec, the GPU, the display unit 170 and the application processor.

[0087] The ISP is used to process the data fed back by the camera 190. For example, when recording a video, the camera is turned on, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image.

[0088] ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 190. Camera 190 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to ISP for conversion into a digital image signal. ISP outputs the digital image signal to DSP for processing. DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 190, where N is a positive integer greater than 1. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0089] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0090] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0091] The memory 130 can be used to store computer executable program codes, which include instructions. The memory 130 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 130 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The system-level chip 110 executes various functional applications and data processing of the electronic device by running instructions stored in the memory 130 and / or instructions stored in a memory provided in the processor.

[0092] The electronic device can implement audio functions such as music playing and recording through the audio circuit 180, the speaker 182, the microphone 184, and the application processor.

[0093] The audio circuit 180 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio circuit 180 can also be used to encode and decode audio signals. In some embodiments, the audio circuit 180 can be arranged in the system-on-chip 110, or some functional modules of the audio circuit 180 can be arranged in the system-on-chip 110.

[0094] The speaker 182, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device can listen to music or listen to a hands-free call through the speaker 182.

[0095] Microphone 184, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can input the sound signal into microphone 184 by speaking close to microphone 184. The electronic device can be provided with at least one microphone 184. In other embodiments, the electronic device can be provided with two microphones 184, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 184 to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.

[0096] Electronic devices, such as mobile phones, tablet computers, and car computers, usually support three types of audio channels, namely Bluetooth call audio channels, Bluetooth media audio channels, and electronic device audio channels (external audio channels and handset audio channels). Electronic devices can establish connections with Bluetooth devices that have audio playback capabilities, such as Bluetooth headsets and car audio systems, through Bluetooth. After the electronic device is successfully connected to the Bluetooth device, the application running on the electronic device can send audio data to the Bluetooth device through the Bluetooth audio channel for playback.

[0097] Taking the electronic device as a smart phone as an example, the battery charging control method in the embodiment of the present application can be Figure 2 The smartphone system architecture shown is implemented in Figure 2 The smartphone system architecture includes the APP (Application) layer, the Kernel (core) layer, the driver layer, and the Hardware (hardware) layer. The APP layer runs a thermal temperature control APP, which can control the power_interface node ( Figure 2In the example, the control node iin_thermal is taken as an example to perform a write operation and send the instruction to the power_interface node; the power_interface node interacts with the charging driver in the driver layer, and uses the charging driver to call the charging chip in the hardware layer to implement the message display method in the embodiment of the present application. Among them, the thermal temperature control APP is an application that relies on the system-level chip of the electronic device to run. The method steps executed by the thermal temperature control APP correspond to the method steps executed by the system-level chip in this application. The method steps executed by the system-level chip and the charging chip can refer to other embodiments in this application, which will not be repeated here. In one example, the power_interface node and the charging driver can interact with data through Oem_glink. Oem_glink is a shared memory data interaction method, that is, the power_interface node and the charging driver access the same shared memory to achieve data interaction. In one example, the charging driver can be operated based on the ADSP (Audio Digital Signal Processing, audio digital processor) architecture. The process of the ADSP architecture running the charging area can refer to the relevant technology, which is not limited in this application.

[0098] The following describes it in detail through specific embodiments.

[0099] The battery charging control method for an electronic device provided in the embodiments of the present application can be applied to any electronic device with battery charging capability, including but not limited to smart phones, tablet computers, smart watches, smart glasses, laptop computers, etc.

[0100] First, as Figure 3 As shown, an embodiment of the present application provides a flow chart of a battery charging control method of an electronic device, wherein the electronic device includes a battery and a system-level chip, including:

[0101] Step S11: during use of the electronic device, obtaining current battery parameters of the battery.

[0102] The current battery parameters include the current battery temperature.

[0103] The application scenario in the embodiment of the present application is charging control during the use of electronic devices. When the electronic device is running, the system-level chip of the electronic device is in a working state. The system-level chip obtains the current battery parameters of the battery in real time through sensors in the electronic device, such as temperature sensors and fuel gauges, so as to detect the current condition of the battery in real time. Specifically, the current battery parameters include at least the current battery temperature, and may also include the current battery current, the current battery voltage, etc.

[0104] Step S12: when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode, obtaining the current power consumption current value of the electronic device.

[0105] The preset warm temperature range is a preset battery temperature range, which means that when the battery temperature is continuously within this range, the battery loss may be accelerated, so the battery charging needs to be restricted. The preset warm temperature range can be set according to the actual situation. In one example, the JEITA temperature rise control specification (a battery standard specification) can be used to set the warm range of 45°C to 55°C as the preset warm temperature range. In other examples, the preset warm temperature range can also be set to 45°C to 49°C, or to 45°C to 50°C, etc.

[0106] During the use of electronic devices, modules such as system-level chips in the electronic devices are in operation. The power consumption current value of the electronic device refers to the current consumed by the operation of the system-level chip, display screen, loudspeaker, etc. during the use of the electronic device. The current power consumption current value indicates the real-time power consumption current of other modules except the battery during the use of the electronic device.

[0107] Step S13: determining a current limiting current value in the DC charging mode according to the current power consumption current value and the current battery temperature.

[0108] The current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature.

[0109] Generally speaking, batteries in electronic devices are usually charged using a DC charging mode. Specifically, the DC charging mode includes 4:1, 2:1, and 1:1 charging modes, which respectively increase the charging voltage by four times, two times, and one time, so that the charging current is also increased by four times, two times, and one time, so as to improve the battery charging efficiency. It can be seen that the DC charging mode is a charging mode that can quickly charge electronic devices, but when the battery is in a preset warm temperature range, maintaining the DC charging mode as a fast charging mode will further increase the battery temperature, and high temperature will cause a greater loss of battery life.

[0110] Therefore, when it is detected that the current battery temperature is in the preset warm temperature range and the battery is in DC charging mode, the battery charging power needs to be limited to reduce the heat dissipation of the battery and prevent the battery temperature from being too high. The current provided by the adapter (also called the charger) to the electronic device is called the online current, which is divided into two parts: one is the power consumption current, which is used to provide the power consumption of the electronic device; the other is the battery charging current, which is used to charge the battery. The limited current value indicates the current value provided by the adapter to the electronic device, that is, the current value of the online current.

[0111] In the present application, the current limiting current value is not lower than the current power consumption current value, which can ensure that the current value provided by the adapter to the electronic device will not be lower than the power consumption current of the electronic device, so that the current value provided by the adapter to the electronic device can at least supply the real-time power consumption of other modules of the electronic device except the battery during use, so that the electronic device will not experience a decrease in power during the process of charging and use.

[0112] Step S14: using the current limiting current value as the online current and charging the battery in a DC charging mode.

[0113] The online current includes the power consumption current of the electronic device and the battery charging current of the battery.

[0114] The current limit current value is used as the online current, that is, the limit current value is used as the output current of the adapter or charger of the electronic device, and the DC charging mode is still used to charge the battery. The online current includes the power consumption current of the electronic device and the battery charging current of the battery. Under the condition of a given power consumption current, the higher the battery temperature, the lower the battery charging current.

[0115] In one embodiment of the present application, when the current battery temperature is within a preset hot temperature range, charging of the battery is stopped.

[0116] The preset hot temperature range is a pre-set battery temperature range, which means that when the battery temperature continues to be within this range, any charging method will cause loss of battery life, so it is necessary to stop charging the battery. In one example, the JEITA temperature rise control specification (a battery standard specification) can be used to set the hot range exceeding 55°C as the preset hot temperature range. In one example, the temperature range exceeding 50°C can also be used as the preset hot temperature range.

[0117] As can be seen from the above, the battery charging control method of the electronic device provided by the present application obtains the current battery parameters of the battery including the current battery temperature during the use of the electronic device, and obtains the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode, and then determines the current limiting current value in the DC charging mode based on the current power consumption current value and the current battery temperature, and uses the current limiting current value as the online current to charge the battery in the DC charging mode. The current limiting current value can continuously charge the battery while supplying the power consumption current brought by the system-level chip running the program, and can ensure that the online current provided by the adapter to the electronic device is not lower than the power consumption current of the electronic device, thereby minimizing the situation where the battery power decreases instead of increases when the battery is in the charging state.

[0118] In some examples, when the current battery temperature is higher than a certain value, the battery charging current can be reduced to 0, that is, the online current is all the power consumption current. In one embodiment of the present application, when the current battery temperature is in a preset warm temperature range and the current battery temperature is higher than a first preset temperature value, the current limit current value is equal to the current power consumption current value, the battery charging current is 0, and the first preset temperature value is in the preset warm temperature range.

[0119] The first preset temperature value is a preset temperature value, indicating that when the battery temperature exceeds this temperature, supplying charging current and using power consumption current at the same time will cause damage to the battery, so at this time, the current limit current value is updated to the current power consumption current value, only the power consumption of the system-level chip running program is supplied, and the battery charging current is 0. If the battery temperature drops below the first preset temperature value thereafter, the current limit current value can be increased to increase the current charging current.

[0120] In one example, according to the JEITA temperature rise control specification (a battery standard specification), 49° C. can be used as the first preset temperature value, and when the battery temperature exceeds 49° C., the battery charging current is 0. In other examples, the first preset temperature value can also be set to 50° C.

[0121] As can be seen from the above, the battery charging control method of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the first preset temperature value, resets the battery charging current to zero, and the current limiting current value only supplies the current power consumption current value currently used, thereby reducing the battery loss while ensuring the normal use of the electronic device, and ensuring the operating power consumption of the system-level chip during the use of the electronic device, thereby avoiding the situation where the battery power is reduced as much as possible.

[0122] The DC charging process of the battery can include four different stages: trickle charging, constant current stage, constant voltage stage, and charging termination. Trickle charging is a low-voltage pre-charging stage at the initial stage of charging. The constant current stage is the early fast charging stage, that is, constant current charging, which continuously increases the battery voltage. When the battery is almost fully charged (for example, when the current voltage of the battery is higher than a certain voltage value, the battery is considered to be almost fully charged), the DC charging process enters the constant voltage stage, which uses a charging voltage of a preset amplitude to charge the battery. In some scenarios, whether the battery is fully charged can be determined based on the current battery voltage of the battery; in the constant voltage stage of the DC charging mode, when the current battery voltage of the battery reaches a certain voltage value, the battery is considered to be fully charged. In one embodiment of the present application, the current battery parameters also include the current battery voltage;

[0123] The above step S12 obtains the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode, including:

[0124] When the current battery temperature is in a preset warm temperature range, the battery is in a DC charging mode, and the current battery voltage is lower than a preset voltage threshold, obtaining a current power consumption current value of the electronic device;

[0125] The above method further includes:

[0126] When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a DC charging mode, and the current battery voltage is not lower than a preset voltage threshold, charging of the battery is stopped.

[0127] In this application, when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, and the current battery voltage is not lower than the preset voltage threshold, it is considered that the battery power will not increase significantly if the battery continues to be charged, and the heat generated by the battery charging has a greater impact on the battery life, so the battery charging is stopped. When the current battery temperature is in the preset warm temperature range, the battery is in the DC charging mode, and the current battery voltage is lower than the preset voltage threshold, it is considered that the battery power will increase significantly if the battery continues to be charged, so the current power consumption current value of the electronic device can be obtained to further determine the online current of the adapter.

[0128] The preset voltage threshold can be set according to actual conditions. In one example, the value of the preset voltage threshold when the current battery temperature is in the preset warm temperature range can be slightly lower than the value of the preset voltage threshold when the current battery temperature is in the good (suitable) temperature range. For example, when the current battery temperature is in the preset warm temperature range, the preset voltage threshold can be 4V or 4.1V, etc.

[0129] As can be seen from the above, the battery charging control method of the electronic device provided by the present application obtains the current power consumption current value of the electronic device when the current battery temperature is in the preset warm temperature range, the battery is in the DC charging mode, and the current battery voltage is lower than the preset voltage threshold, and then adjusts the limiting current value. When the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, and the current battery voltage is not lower than the preset voltage threshold, the battery is stopped from charging, thereby minimizing the battery loss while ensuring the battery charging amount.

[0130] In one embodiment of the present application, the method further includes:

[0131] Step 1: When the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, and the current value of the preset voltage threshold is a first preset voltage value, the preset voltage threshold is adjusted to a second preset voltage value.

[0132] Wherein, the first preset voltage value is greater than the second preset voltage value;

[0133] Step 2: When the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value.

[0134] The third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

[0135] In the embodiment of the present application, the second preset temperature value can be customized according to the actual situation, but it is necessary to satisfy that the second preset temperature value is lower than the first preset temperature value. For example, the second preset temperature value can be set to 45°C, 45.5°C or 46°C. The third preset temperature value can be customized according to the actual situation, but it is necessary to satisfy that the third preset temperature value is less than the second preset temperature value. For example, the second preset temperature value can be set to 43°C, 43.5°C or 44°C. When the current battery temperature is in the preset warm temperature range, the current battery temperature is higher than the second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, it can be understood that the battery charging current does not need to be reset to zero, but it still needs to be adjusted. Therefore, the threshold voltage of the constant voltage stage is adjusted, and the preset voltage threshold is adjusted to the second preset voltage value. When the battery reaches the second preset voltage value, the constant voltage stage can be entered. The first preset voltage value can be the voltage value when the battery is fully charged at an appropriate temperature. For example, for a mobile phone lithium battery, the first preset voltage value can be 4.5V, etc. The second preset voltage value can be customized according to the actual situation, but it is necessary to satisfy that the second preset voltage value is less than the first preset voltage value. For example, for a mobile phone lithium battery, the second preset voltage value may be set to 4V or 4.1V.

[0136] For example, for a mobile phone lithium battery, the first preset voltage value can be set to 4.5V, and the second preset voltage value can be set to 4.1V. It can be understood that when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the second preset temperature value, the threshold voltage value for the battery to enter the constant voltage stage is lowered to ensure that the battery can be fully charged normally and then stop charging.

[0137] When the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, it means that the battery has cooled down after adjustment. When the temperature drops to no higher than the third preset temperature value, it is considered that the battery can store more electricity. At this time, the threshold voltage value of the constant voltage stage can be increased to the voltage value when the battery is fully charged at normal temperature, that is, the preset voltage threshold is adjusted to the first preset voltage value.

[0138] The third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is the preset hysteresis temperature value. The preset hysteresis temperature value is a preset hysteresis space to avoid frequent changes in the charging threshold voltage based only on the difference between the current battery temperature and the second preset temperature value. The preset hysteresis temperature value can be customized according to actual conditions. For example, the preset hysteresis temperature value can be set to 2°C, 2.5°C or 3°C, etc.

[0139] As can be seen from the above, the battery charging control method of the electronic device provided by the present application adjusts the threshold voltage in the constant voltage stage when the current battery temperature is in the preset warm temperature range, the current battery temperature is higher than the second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, so as to ensure that the battery can be charged more stably and stop charging smoothly after being fully charged, thereby avoiding overcharging of the battery caused by the battery threshold voltage being too high at the current battery temperature; and when the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, indicating that the battery has cooled down, the charging threshold voltage is adjusted back to the first preset voltage value to ensure the charging efficiency of the battery. At the same time, a difference as a preset hysteresis temperature value is set between the second preset temperature value and the third preset temperature value to avoid frequent changes in the charging threshold voltage due to unstable battery temperature during the charging process.

[0140] In some scenarios, whether the battery is fully charged can be determined based on the current battery current of the battery; in the constant voltage stage of the DC charging mode, when the current battery current of the battery is less than a certain current value, the battery is considered to be fully charged. In one embodiment of the present application, the current battery parameter also includes the current battery current;

[0141] The above step S12 obtains the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode, including:

[0142] When the current battery temperature is in a preset warm temperature range, the battery is in a DC charging mode, and the current battery current is not less than a preset charging shutdown current threshold, obtaining a current power consumption current value of the electronic device;

[0143] The above method further includes:

[0144] When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a DC charging mode, the target voltage value of the battery is a preset voltage threshold, and the current battery current is less than a preset charging shutdown current threshold, charging of the battery is stopped.

[0145] In the embodiment of the present application, the preset charging shutdown current threshold is a pre-set shutdown threshold current value indicating that the battery is fully charged and charging needs to be stopped.

[0146] When the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is not less than the preset charge shutdown current threshold, the battery is considered not yet fully charged. When the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is less than the preset charge shutdown current threshold, the battery is considered fully charged, and charging of the battery is stopped at this time. The target voltage value of the battery can be understood as the voltage value after the battery is fully charged; the target voltage value of the battery is the preset voltage threshold, indicating that during the charging process, when the current battery voltage of the battery is the preset voltage threshold, the battery is considered fully charged. The preset charge shutdown current threshold can be customized according to actual conditions. For example, the preset charge shutdown current threshold is any current value from 200mA to 1000mA.

[0147] As can be seen from the above, the battery charging control method of the electronic device provided by the present application also obtains the current battery current when the battery is in the constant voltage stage of the DC charging mode, and obtains the current power consumption current value so that most of the online current is used to supply the system-level chip operating power consumption when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is not less than the preset charging shutdown current threshold; and stops charging the battery when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is less than the preset charging shutdown current threshold, thereby reducing the overcharging of the battery and increasing the service life of the battery in the electronic device.

[0148] In one embodiment of the present application, the method further includes:

[0149] Step A: When the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, the current value of the preset charge shutdown current threshold is a first preset current value, and the current value of the preset voltage threshold is a first preset voltage value, the preset voltage threshold is adjusted to a second preset voltage value, and the preset charge shutdown current threshold is adjusted to a second preset current value.

[0150] Wherein, the first preset voltage value is greater than the second preset voltage value, and the first preset current value is less than the second preset current value;

[0151] Step B: When the current battery temperature is not higher than the third preset temperature value, the current value of the preset charge shutdown current threshold is the second preset current value, and the current value of the preset voltage threshold is the second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value, and the preset charge shutdown current threshold is adjusted to the first preset current value.

[0152] The third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

[0153] The second preset temperature value can be customized according to the actual situation, but it is necessary to satisfy that the second preset temperature value is lower than the first preset temperature value. For example, the second preset temperature value can be set to 45°C, 45.5°C or 46°C. The third preset temperature value can be customized according to the actual situation, but it is necessary to satisfy that the third preset temperature value is less than the second preset temperature value. For example, the second preset temperature value can be set to 43°C, 43.5°C or 44°C. In the embodiment of the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the second preset temperature value, the preset charging shutdown current threshold and the preset voltage threshold are adjusted at the same time, wherein the first preset current value is the shutdown threshold current in the appropriate temperature range. In an example, the first preset current value can be any current value between 200-1000mA, and the second preset current value can be greater than the first preset current value. For example, the second preset current value can be 1000mA.

[0154] As can be seen from the above, the battery charging control method of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the second preset temperature value, adjusts the preset charging shutdown current threshold and the preset voltage threshold at the same time, so as to ensure the stability of the battery voltage as much as possible, so that the battery can enter the constant voltage stage under the stable shutdown threshold current and threshold voltage values, and stop charging smoothly after the battery is fully charged, so as to avoid battery loss caused by overcharging or unstable charging process or excessive battery temperature as much as possible.

[0155] In an example, for a mobile phone lithium battery, taking the preset hysteresis temperature value as 2°C, the second preset temperature value as 45°C, the third preset temperature value as 43°C, and the second preset current value as 1000mA, the value update process of the preset charging shutdown current threshold and the preset voltage threshold can be as follows: Figure 6-3 shown.

[0156] Use the charging chip to set dc_state->cur_stage (parameters) for dc_select_charging_stage (DC charging mode stage); obtain btb (board to board, connector) voltage: Vbat (current battery voltage), bat (battery) current: ibat (current battery current), adp (charger) current: Iadp (online current); get tbat (current battery temperature); when tbat>45℃ and high_temp_flag (high temperature label)==false, set high_temp_flag=true, and set the last gear of the battery's CV curve (the voltage threshold corresponds to the preset voltage threshold) to vbat_th=4100mv, and the cur_th_low current threshold (the preset charging shutdown current threshold) to 1000mA; when tbat<43℃ and high_temp_flag==true, set high_temp_flag=false, and set the last gear of the CV curve back to the original gear (for example, 4.5v); dc_state->pre_stage=0, according to the voltage and current matching CV curve stage: cur_stage0:cc stage, 1:cvstage, 2:max stage. If high_temp_flag is not met, the dc_state configuration dc_static state is set to dc_done_flag = 1. In other words, if the battery is fully charged at normal temperature (the battery voltage reaches the preset voltage threshold when high_temp_flag == false), that is, the battery voltage reaches the normal CV curve voltage threshold condition and the charging is exited, dc_done_flag will be set to mark the end of this charging. If the battery voltage reaches the preset voltage threshold when high_temp_flag == true, it is obvious that the battery does not meet the full charge condition, so dc_done_flag is not set.

[0157] In a third aspect, the present application also provides a battery charging control method for an electronic device, such as Figure 4-1 As shown, the above method includes:

[0158] Step S41: obtaining current battery parameters of the battery;

[0159] Step S42: determining the DC charging mode with the highest charging efficiency under the current battery parameters to obtain a target DC charging mode;

[0160] Step S43: charging the battery using the target DC charging mode.

[0161] The current battery parameters of the battery may include at least one of the current battery voltage (vbat), the current battery current (ibat), and the current battery temperature (tbat). Under the current battery parameters, the DC charging mode with the highest charging efficiency is selected as the target DC charging mode, and then charging is performed using the target DC charging mode. In one example, the DC charging mode may include 4:1, 2:1, 1:1 charging modes, etc. It is understandable that the higher the charging efficiency of the battery, the lower the heat generation rate during the charging process.

[0162] Under different battery parameters, the charging efficiency of different DC charging modes is different. In one example, under different charging currents, the charging efficiency of the 4:1 charging mode and the 1:1 charging mode is as follows: Figure 4-2 As shown, the horizontal axis represents the charging current of the battery, and the vertical axis represents the charging efficiency of the battery; Figure 4-2 It can be seen that when the battery charging current is less than 2A, the charging efficiency of the 1:1 charging mode is higher, and when the battery charging current is greater than 2A, the charging efficiency of the 4:1 charging mode is higher.

[0163] In one embodiment of the present application, the target DC charging mode is selected and determined by the temperature control module in the system-level chip according to the current battery parameters. In practical applications, it can be implemented by the mobile phone housekeeper program running on the system-level chip. After determining the target DC charging mode, the system-level chip sends the target DC charging mode to the charging chip, so that the charging chip charges the battery using the target DC charging mode.

[0164] As can be seen from the above, the battery charging control method of the electronic device provided in the present application selects the DC charging mode with the highest charging efficiency to charge the battery according to the current battery parameters of the battery, which can improve the charging efficiency as much as possible and reduce the charging heat.

[0165] In one embodiment of the present application, Figure 5-1 As shown, the current battery parameters include the current battery current;

[0166] The above step S42 determines the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode, including:

[0167] Step S51: determining the current charging efficiency of the current battery current in each DC charging mode according to the predetermined first corresponding relationship between the different battery currents and the battery charging efficiency in each DC charging mode;

[0168] Step S52: Select the DC charging mode with the highest current charging efficiency to obtain the target DC charging mode.

[0169] A first correspondence between different battery currents and battery charging efficiencies in each DC charging mode is predetermined. For example, the correspondence between the battery charging current and the charging efficiency in each DC charging mode can be measured in advance through experiments. Specifically, a third correspondence between the battery charging current and the charging efficiency in the 4:1 DC charging mode, a fourth correspondence between the battery charging current and the charging efficiency in the 2:1 DC charging mode, and a fifth correspondence between the battery charging current and the charging efficiency in the 1:1 DC charging mode can be measured through experiments. The first correspondence includes the third correspondence, the fourth correspondence, and the fifth correspondence. The charging efficiency corresponding to the third correspondence of the current battery current is queried to obtain the first charging efficiency. The charging efficiency corresponding to the fourth correspondence of the current battery current is queried to obtain the second charging efficiency. The charging efficiency corresponding to the fifth correspondence of the current battery current is queried to obtain the third charging efficiency. The highest charging efficiency among the first charging efficiency, the second charging efficiency, and the third charging efficiency is determined, and the DC charging mode corresponding to the highest charging efficiency is referred to as the target DC charging mode.

[0170] As can be seen from the above, the battery charging control method of the electronic device provided in the present application pre-establishes a first correspondence between different battery currents and battery charging efficiencies in each DC charging mode, and then determines the target DC charging mode with the highest charging efficiency under the current battery parameters, thereby further improving the charging efficiency.

[0171] In one embodiment of the present application, the current battery parameter includes the current battery current;

[0172] The above step S42 determines the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode, including:

[0173] According to a predetermined second correspondence between the battery current and the DC charging mode, the DC charging mode corresponding to the current battery current is determined to obtain a target DC charging mode, wherein the second correspondence is established according to a first correspondence between different battery currents and battery charging efficiencies under each DC charging mode.

[0174] After establishing the above-mentioned first correspondence, a second correspondence between the battery current and the DC charging mode can be further established based on the first correspondence, that is, a second correspondence between the battery current and the DC charging mode with the highest charging efficiency under the current is established. For any battery current in the second correspondence, the DC charging mode corresponding to the battery current in the second correspondence is the DC charging mode with the highest battery charging efficiency under the battery current.

[0175] For example, Figure 4-2Taking the curve shown as an example, when the battery current is in a current value range lower than 2A, the charging efficiency of the 1:1 DC charging mode is higher, and a second corresponding relationship is established between the battery current in the current value range lower than 2A and the 1:1 DC charging mode; when the battery current is in a current value range not lower than 2A, the charging efficiency of the 4:1 DC charging mode is higher, and a second corresponding relationship is established between the battery current in the current value range not lower than 2A and the 4:1 DC charging mode, thereby obtaining a second corresponding relationship.

[0176] As can be seen from the above, the battery charging control method for an electronic device provided in the present application pre-establishes a second corresponding relationship between the battery current and the DC charging mode, and then directly determines the target DC charging mode under the condition of determining the current battery parameters, thereby further improving the charging efficiency.

[0177] In one example, a simulation verification of the embodiment of the present application was carried out: the mobile phone was placed in a room temperature environment of 25°C, the temperature control current was limited to 2A to simulate a high temperature current limiting scenario, and the mobile phone was charged for 10 minutes using the 8V charging mode and the 5V charging mode respectively, and the temperature rise curves of the two were compared. Figure 5-2 The middle is the time-temperature curve of the charging process of the mobile phone with 5V 1A in the low-power state with the screen off, which is used to simulate the charging temperature rise in the 1:1 DC charging mode with a limited battery current of 1A. The horizontal axis represents time and the vertical axis represents temperature. Figure 5-3 This is the time-temperature curve of the 10V 0.5A charging process when the phone is in a low-power state with the screen off, which is used to simulate the charging temperature rise of the 2:1 DC charging mode under the state of limiting the battery current to 1A. The horizontal axis represents time and the vertical axis represents temperature. By comparison, it can be seen that when the battery current is low, the charging temperature rise effect of the 1:1 DC charging mode is significantly better than that of the 2:1 DC charging mode. Therefore, when the current battery current is less than the preset current value (for example, 2A), the 1:1 DC charging mode can be used.

[0178] In one embodiment of the present application, Figure 6-1 As shown, the electronic device includes a battery and a system-level chip, and the current battery parameters include the current battery temperature;

[0179] The above step S43 uses the target DC charging mode to charge the battery, including:

[0180] Step S61: setting the charging mode of the battery to a target DC charging mode;

[0181] Step S62: during the use of the electronic device, when the current battery temperature is in a preset warm temperature range and the battery is in a target DC charging mode, obtaining a current power consumption current value of the electronic device;

[0182] Step S63: Determine the current limiting current value in the target DC charging mode according to the current power consumption current value and the current battery temperature.

[0183] The current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature;

[0184] Step S64: using the current limiting current value as the online current and adopting the target DC charging mode to charge the battery.

[0185] The online current includes the power consumption current of the electronic device and the battery charging current of the battery.

[0186] As can be seen from the above, the battery charging control method of the electronic device provided by the present application, the battery charging mode is set to the target DC charging mode, and during the use of the electronic device, when the current battery temperature is in the preset warm temperature range and the battery is in the DC charging mode, the current power consumption current value of the electronic device is obtained to determine the power consumption current brought by the system-level chip running the program during the use of the electronic device, and then the current limiting current value in the DC charging mode is determined according to the current power consumption current value and the current battery temperature. The current limiting current value can continuously charge the battery while supplying the power consumption current brought by the system-level chip running the program, so the current limiting current value is used as the online current, and the DC charging mode is used to charge the battery. In this way, it is ensured that even if the electronic device is in a high-load scenario of simultaneous charging and use, the online current can still provide sufficient current consumption of the system-level chip, thereby ensuring as much as possible that the battery power does not decrease instead of increase when the battery is in the charging state.

[0187] In one embodiment of the present application, when the current battery temperature is in a preset warm temperature range and the current battery temperature is higher than a first preset temperature value, the current limiting current value is equal to the current power consumption current value, the battery charging current is 0, and the first preset temperature value is in the preset warm temperature range.

[0188] As can be seen from the above, the battery charging control method of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the first preset temperature value, resets the battery charging current to zero, and the current limiting current value only supplies the current power consumption current value currently used, thereby reducing the battery loss while ensuring the normal use of the electronic device, and ensuring the operating power consumption of the system-level chip during the use of the electronic device, thereby avoiding the situation where the battery power is reduced as much as possible.

[0189] In one embodiment of the present application, the current battery parameter also includes the current battery voltage;

[0190] The above step S62 obtains the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a target DC charging mode, including:

[0191] When the current battery temperature is in a preset warm temperature range, the battery is in a target DC charging mode, and the current battery voltage is lower than a preset voltage threshold, obtaining a current power consumption current value of the electronic device;

[0192] The above method further includes:

[0193] When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a target DC charging mode, and the current battery voltage is not lower than a preset voltage threshold, charging of the battery is stopped.

[0194] As can be seen from the above, the battery charging control method of the electronic device provided by the present application obtains the current power consumption current value of the electronic device when the current battery temperature is in the preset warm temperature range, the battery is in the DC charging mode, and the current battery voltage is lower than the preset voltage threshold, and then adjusts the limiting current value. When the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, and the current battery voltage is not lower than the preset voltage threshold, the battery is stopped from charging, thereby ensuring that the battery can ensure charging efficiency while minimizing losses.

[0195] In one embodiment of the present application, the method further includes:

[0196] When the current battery temperature is in the preset warm temperature range, the current battery temperature is higher than the second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, the preset voltage threshold is adjusted to the second preset voltage value.

[0197] Wherein, the first preset voltage value is greater than the second preset voltage value;

[0198] When the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is the preset hysteresis temperature value.

[0199] As can be seen from the above, the battery charging control method of the electronic device provided by the present application adjusts the threshold voltage in the constant voltage stage when the current battery temperature is in the preset warm temperature range, the current battery temperature is higher than the second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, so as to ensure that the battery can be charged more stably and stop charging smoothly after being fully charged, thereby avoiding overcharging of the battery caused by the battery threshold voltage being too high at the current battery temperature; and when the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, indicating that the battery has cooled down, the charging threshold voltage is adjusted back to the first preset voltage value to ensure the charging efficiency of the battery. At the same time, a difference as a preset hysteresis temperature value is set between the second preset temperature value and the third preset temperature value to avoid frequent changes in the charging threshold voltage due to unstable battery temperature during the charging process.

[0200] In one embodiment of the present application, the current battery parameter also includes the current battery current;

[0201] The above step S62 obtains the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a target DC charging mode, including:

[0202] When the current battery temperature is in a preset warm temperature range, the battery is in a target DC charging mode, and the current battery current is not less than a preset charging shutdown current threshold, obtaining a current power consumption current value of the electronic device;

[0203] The above method further includes:

[0204] When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a target DC charging mode, the target voltage value of the battery is a preset voltage threshold, and the current battery current is less than a preset charging shutdown current threshold, charging of the battery is stopped.

[0205] As can be seen from the above, the battery charging control method of the electronic device provided by the present application also obtains the current battery current when the battery is in the constant voltage stage of the DC charging mode, and obtains the current power consumption current value so that most of the online current is used to supply the system-level chip operating power consumption when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is not less than the preset charging shutdown current threshold; and when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is less than the preset charging shutdown current threshold, the battery is stopped from being charged to avoid battery overcharging, so that the electronic device can be successfully charged during use.

[0206] In one embodiment of the present application, the method further includes:

[0207] When the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, the current value of the preset charge shutdown current threshold is a first preset current value, and the current value of the preset voltage threshold is a first preset voltage value, adjusting the preset voltage threshold to a second preset voltage value, and adjusting the preset charge shutdown current threshold to a second preset current value, wherein the first preset voltage value is greater than the second preset voltage value, and the first preset current value is less than the second preset current value;

[0208] When the current battery temperature is not higher than a third preset temperature value, the current value of the preset charge shutdown current threshold is a second preset current value, and the current value of the preset voltage threshold is a second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value, and the preset charge shutdown current threshold is adjusted to the first preset current value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

[0209] As can be seen from the above, the battery charging control method of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the second preset temperature value, adjusts the preset charging shutdown current threshold and the preset voltage threshold at the same time, so as to ensure the stability of the battery voltage as much as possible, so that the battery can enter the constant voltage stage under the stable shutdown threshold current and threshold voltage values, and stop charging smoothly after the battery is fully charged, so as to avoid battery loss caused by overcharging or unstable charging process or excessive battery temperature as much as possible.

[0210] In one example, an example scenario is provided for the battery charging control method of the electronic device provided in the embodiment of the present application. The user inserts a 66w charger while playing games on a mobile phone. At this time, the temperature of the mobile phone is around room temperature (25°C), the temperature control limits the battery current to around 6A, and the power adapter outputs 10V, 3A current. At this time, the temperature of the mobile phone rises sharply, reaching around 40°C, and the temperature control limits the battery current to around 2A. The efficiency of the 2:1 charging mode decreases, and the efficiency at this current is lower than that of the 1:1 charging mode; the code makes a mode switching action, exits the 2:1 mode, and enters the 1:1 mode. The temperature of the mobile phone continues to rise, and the battery temperature reaches above 45°C. At this time, the current power consumption of the system-level chip is about 1.5A. In order to reduce the temperature rise and protect the battery safety, the battery current needs to be reduced as much as possible. The temperature control limits the online current to 1.5A according to the power consumption state of the system-level chip at this time, so that it is balanced with the power consumption of the system-level chip, and the battery voltage remains stable, so that the battery power will not decrease under the limit and the temperature rise is reduced.

[0211] In a possible implementation, the present application embodiment provides a flow chart of a battery charging control method for an electronic device. Figure 6-2 As shown, Figure 6-2 The process in the dotted box is implemented by the system-level chip in the electronic device, and the other processes are implemented by the charging chip in the electronic device. Figure 6-2 As shown, after the electronic device is plugged into the charger, the system-level chip first obtains the current battery parameters including the current battery current ibat, the current battery voltage vbat, the current battery temperature tbat, etc. According to the pre-established temperature control module, the charging mode corresponding to the current battery parameters is determined, that is, the DC charging mode with the highest charging efficiency under the current battery parameters is determined; wherein, when the current battery parameters change, the system-level chip can dynamically switch the DC charging mode. The system-level chip sends the DC charging mode to the control node; the control node sends the DC charging mode to the charging chip. The DC charging mode is controlled according to the preset rules until the conditions for exiting DC charging are met (the value of the control node is 0), the DC charging mode is exited and a message is reported. The system-level chip also sends the charging current threshold (preset charging shutdown current threshold) to the charging chip according to ibat and tbat, and can also send the preset voltage threshold, etc.

[0212] After the electronic device is plugged into the charger, the charging chip will start the direct charge detection. After the direct charge detection is passed, the type of charger is obtained, and the constant current (cc) charging and internal state (sbu) detection are checked. The charging chip selects the current charging mode according to the type of charger and the DC charging mode sent by the control node. Connector detection, fast charging data cable detection, aging mode setting, Uscp (super fast charging voltage) status detection, adapter information (including adapter power curve), standard cable detection are performed; then the battery temperature tbat is detected, and direct charging is not performed when the current tbat>50℃+1 or tbat<10℃-1, otherwise the battery voltage detection, adapter anti-counterfeiting detection, switching path, setting the shutdown charging threshold, IC enabling, and safety detection are performed, and then direct charging is started; the current battery temperature tbat is detected, and the direct charging is exited when the current battery temperature is tbat>45℃+1 or tbat<10℃-1, otherwise the battery temperature is detected again after waiting for the preset time.

[0213] When charging, the charging chip also selects the DC charging parameters to obtain the current limit value ibat_th in the current charging stage. Get the current and threshold at a specific temperature: main_batt_temp_cur (current limit value at the current temperature of the main battery pack), aux_batt_temp_cur (current limit value at the current temperature of the auxiliary battery pack), cur_th_high (maximum battery current). The charging chip obtains the current battery temperature tbat and the current voltage vbat. When tbat>50℃ or tbat<10℃, exit DC charging (Return-1). Get the current limit value adp_max_cur of the adapter; then update the latest value of cur_th_high to the minimum value of cur_th_high and adp_max_cur; get the cable current limit value cable_max_cur, and update the threshold cur_th_high to take the minimum value; get the impedance current limit value path_resist, and update the threshold cur_th_high to take the minimum value; get the cur_mode current limit value; get the limited time current limit value time_max_cur; the current limit value of CHARGE_MULTI_IC (charging chip); then use the charging current threshold issued by the system-level chip as the thermal current limit value ichg_thermal_cur; set the current limit value Cur_ibat_th_high of the current charging stage to the current cur_th_high (maximum current value).

[0214] Fourthly, Figure 7 As shown, the embodiment of the present application also provides a structural schematic diagram of a battery charging control device of a first electronic device, wherein the electronic device includes a battery and a system-level chip, and the device includes:

[0215] The battery parameter acquisition module 701 is used to acquire the current battery parameters of the battery during the use of the electronic device, wherein the current battery parameters include the current battery temperature;

[0216] A power consumption current value acquisition module 702 is used to acquire the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode;

[0217] The limiting current value determination module 703 is used to determine the current limiting current value in the DC charging mode according to the current power consumption current value and the current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature;

[0218] The battery charging module 704 is used to use the current limiting current value as the online current to charge the battery in a DC charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

[0219] As can be seen from the above, the battery charging control device of the electronic device provided by the present application obtains the current battery parameters of the battery including the current battery temperature during the use of the electronic device, and obtains the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode, so as to determine the power consumption current brought by the system-level chip running the program during the use of the electronic device, and then determines the current limiting current value in the DC charging mode according to the current power consumption current value and the current battery temperature. The current limiting current value can continuously charge the battery while supplying the power consumption current brought by the system-level chip running the program, so the current limiting current value is used as the online current, and the battery is charged in a DC charging mode. In this way, it is ensured that even if the electronic device is in a high-load scenario of simultaneous charging and use, the online current can still provide sufficient current consumption of the system-level chip, thereby ensuring as much as possible that the battery power does not decrease instead of increase when the battery is in the charging state.

[0220] In one embodiment of the present application, when the current battery temperature is in a preset warm temperature range and the current battery temperature is higher than a first preset temperature value, the current limiting current value is equal to the current power consumption current value, the battery charging current is 0, and the first preset temperature value is in the preset warm temperature range.

[0221] As can be seen from the above, the battery charging control device of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the first preset temperature value, resets the battery charging current to zero, and the current limiting current value only supplies the current power consumption current value currently used, thereby reducing the battery loss while ensuring the normal use of the electronic device, and ensuring the operating power consumption of the system-level chip during the use of the electronic device, thereby avoiding the situation where the battery power is reduced as much as possible.

[0222] In one embodiment of the present application, the current battery parameter also includes the current battery voltage;

[0223] The power consumption current value acquisition module 702 is specifically used to:

[0224] When the current battery temperature is in a preset warm temperature range, the battery is in a DC charging mode, and the current battery voltage is lower than a preset voltage threshold, obtaining a current power consumption current value of the electronic device;

[0225] The device also includes:

[0226] The first charging stop module is used to stop charging the battery when the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a DC charging mode, and the current battery voltage is not lower than a preset voltage threshold.

[0227] As can be seen from the above, the battery charging control device of the electronic device provided by the present application obtains the current power consumption current value of the electronic device and adjusts the limiting current value when the current battery temperature is in the preset warm temperature range, the battery is in the DC charging mode, and the current battery voltage is lower than the preset voltage threshold. When the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, and the current battery voltage is not lower than the preset voltage threshold, the battery is stopped from charging, thereby ensuring that the battery can ensure charging efficiency while minimizing losses.

[0228] In one embodiment of the present application, the device further includes:

[0229] a first voltage value adjustment module, configured to adjust the preset voltage threshold to a second preset voltage value when the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, wherein the first preset voltage value is greater than the second preset voltage value;

[0230] A second voltage value adjustment module is used to adjust the preset voltage threshold to a first preset voltage value when the current battery temperature is not higher than a third preset temperature value and the current value of the preset voltage threshold is a second preset voltage value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

[0231] As can be seen from the above, the battery charging control device of the electronic device provided by the present application adjusts the threshold voltage in the constant voltage stage when the current battery temperature is in the preset warm temperature range, the current battery temperature is higher than the second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, so as to ensure that the battery can be charged more stably and stop charging smoothly after being fully charged, thereby avoiding overcharging of the battery caused by the battery threshold voltage being too high at the current battery temperature; and when the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, indicating that the battery has cooled down, the charging threshold voltage is adjusted back to the first preset voltage value to ensure the charging efficiency of the battery. At the same time, a difference as a preset hysteresis temperature value is set between the second preset temperature value and the third preset temperature value to avoid frequent changes in the charging threshold voltage due to unstable battery temperature during the charging process.

[0232] In one embodiment of the present application, the current battery parameter also includes the current battery current;

[0233] The power consumption current value acquisition module 702 is specifically used to:

[0234] When the current battery temperature is in a preset warm temperature range, the battery is in a DC charging mode, and the current battery current is not less than a preset charging shutdown current threshold, obtaining a current power consumption current value of the electronic device;

[0235] The device also includes:

[0236] The second charging stop module is used to stop charging the battery when the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a DC charging mode, the target voltage value of the battery is a preset voltage threshold, and the current battery current is less than a preset charging shutdown current threshold.

[0237] As can be seen from the above, the battery charging control device of the electronic device provided by the present application also obtains the current battery current when the battery is in the constant voltage stage of the DC charging mode, and obtains the current power consumption current value so that most of the online current is used to supply the system-level chip operating power consumption when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is not less than the preset charging shutdown current threshold; and when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is less than the preset charging shutdown current threshold, the battery is stopped from being charged to avoid battery overcharging, so that the electronic device can be successfully charged during use.

[0238] In one embodiment of the present application, the device further includes:

[0239] a first threshold adjustment module, configured to adjust the preset voltage threshold to a second preset voltage value and the preset charge shutdown current threshold to a second preset current value when the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, the current value of the preset charge shutdown current threshold is a first preset current value, and the current value of the preset voltage threshold is a first preset voltage value, wherein the first preset voltage value is greater than the second preset voltage value, and the first preset current value is less than the second preset current value;

[0240] A second threshold adjustment module is used to adjust the preset voltage threshold to the first preset voltage value and the preset charge shutdown current threshold to the first preset current value when the current battery temperature is not higher than a third preset temperature value, the current value of the preset charge shutdown current threshold is the second preset current value, and the current value of the preset voltage threshold is the second preset voltage value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

[0241] As can be seen from the above, the battery charging control device of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the second preset temperature value, adjusts the preset charging shutdown current threshold and the preset voltage threshold at the same time, so as to ensure the stability of the battery voltage as much as possible, so that the battery can enter the constant voltage stage under the stable shutdown threshold current and threshold voltage values, and stop charging smoothly after the battery is fully charged, so as to avoid battery loss caused by overcharging or unstable charging process or excessive battery temperature as much as possible.

[0242] Fifthly, Figure 8As shown, the embodiment of the present application also provides a structural schematic diagram of a battery charging control device of a second electronic device, the device comprising:

[0243] The battery parameter acquisition module 801 is used to acquire the current battery parameters of the battery;

[0244] The charging mode determination module 802 is used to determine the DC charging mode with the highest charging efficiency under the current battery parameters to obtain a target DC charging mode;

[0245] The battery charging module 803 is configured to charge the battery using the target DC charging mode.

[0246] As can be seen from the above, the battery charging control device of the electronic device provided in the present application selects the DC charging mode with the highest charging efficiency to charge the battery according to the current battery parameters of the battery, which can improve the charging efficiency as much as possible and reduce the charging heat.

[0247] In one embodiment of the present application, the current battery parameter includes the current battery current;

[0248] The charging mode determination module 802 is specifically configured to:

[0249] According to a predetermined first correspondence between different battery currents and battery charging efficiencies in each DC charging mode, respectively determining a current charging efficiency of the current battery current in each DC charging mode;

[0250] The DC charging mode with the highest current charging efficiency is selected to obtain the target DC charging mode.

[0251] As can be seen from the above, the battery charging control device of the electronic device provided in the present application pre-establishes a first correspondence between different battery currents and battery charging efficiencies in each DC charging mode, and then determines the target DC charging mode with the highest charging efficiency under the current battery parameters, thereby further improving the charging efficiency.

[0252] In one embodiment of the present application, the current battery parameter includes the current battery current;

[0253] The charging mode determination module 802 is specifically configured to:

[0254] According to a predetermined second correspondence between the battery current and the DC charging mode, the DC charging mode corresponding to the current battery current is determined to obtain a target DC charging mode, wherein the second correspondence is established according to a first correspondence between different battery currents and battery charging efficiencies under each DC charging mode.

[0255] As can be seen from the above, the battery charging control device for an electronic device provided in the present application pre-establishes a second corresponding relationship between the battery current and the DC charging mode, and then directly determines the target DC charging mode under the condition of determining the current battery parameters, thereby further improving the charging efficiency.

[0256] In one embodiment of the present application, the electronic device includes a battery and a system-level chip, and the current battery parameter includes a current battery temperature;

[0257] The battery charging module 803 includes:

[0258] A charging mode setting submodule, used to set the charging mode of the battery to a target DC charging mode;

[0259] A power consumption current value acquisition submodule is used to acquire the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a target DC charging mode during use of the electronic device;

[0260] The limiting current value determination submodule is used to determine the current limiting current value in the target DC charging mode according to the current power consumption current value and the current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature;

[0261] The battery charging submodule is used to use the current limiting current value as the online current and adopt a target DC charging mode to charge the battery, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

[0262] As can be seen from the above, the battery charging control device of the electronic device provided by the present application, the battery charging mode is set to the target DC charging mode, and during the use of the electronic device, when the current battery temperature is in the preset warm temperature range and the battery is in the DC charging mode, the current power consumption current value of the electronic device is obtained to determine the power consumption current brought by the system-level chip running the program during the use of the electronic device, and then the current limiting current value in the DC charging mode is determined according to the current power consumption current value and the current battery temperature. The current limiting current value can continuously charge the battery while supplying the power consumption current brought by the system-level chip running the program, so the current limiting current value is used as the online current, and the DC charging mode is used to charge the battery. In this way, it is ensured that even if the electronic device is in a high-load scenario of simultaneous charging and use, the online current can still provide sufficient current consumption of the system-level chip, thereby ensuring as much as possible that the battery power does not decrease instead of increase when the battery is in the charging state.

[0263] In one embodiment of the present application, when the current battery temperature is in a preset warm temperature range and the current battery temperature is higher than a first preset temperature value, the current limiting current value is equal to the current power consumption current value, the battery charging current is 0, and the first preset temperature value is in the preset warm temperature range.

[0264] As can be seen from the above, the battery charging control device of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the first preset temperature value, resets the battery charging current to zero, and the current limiting current value only supplies the current power consumption current value currently used, thereby reducing the battery loss while ensuring the normal use of the electronic device, and ensuring the operating power consumption of the system-level chip during the use of the electronic device, thereby avoiding the situation where the battery power is reduced as much as possible.

[0265] In one embodiment of the present application, the current battery parameter also includes the current battery voltage;

[0266] The power consumption current value acquisition submodule is specifically used for:

[0267] When the current battery temperature is in a preset warm temperature range, the battery is in a target DC charging mode, and the current battery voltage is lower than a preset voltage threshold, obtaining a current power consumption current value of the electronic device;

[0268] The method further comprises:

[0269] When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a target DC charging mode, and the current battery voltage is not lower than a preset voltage threshold, charging of the battery is stopped.

[0270] As can be seen from the above, the battery charging control device of the electronic device provided by the present application obtains the current power consumption current value of the electronic device and adjusts the limiting current value when the current battery temperature is in the preset warm temperature range, the battery is in the DC charging mode, and the current battery voltage is lower than the preset voltage threshold. When the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, and the current battery voltage is not lower than the preset voltage threshold, the battery is stopped from charging, thereby ensuring that the battery can ensure charging efficiency while minimizing losses.

[0271] In one embodiment of the present application, the device further includes:

[0272] a first voltage value adjustment module, configured to adjust the preset voltage threshold to a second preset voltage value when the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, wherein the first preset voltage value is greater than the second preset voltage value;

[0273] A second voltage value adjustment module is used to adjust the preset voltage threshold to a first preset voltage value when the current battery temperature is not higher than a third preset temperature value and the current value of the preset voltage threshold is a second preset voltage value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

[0274] As can be seen from the above, the battery charging control device of the electronic device provided by the present application adjusts the threshold voltage in the constant voltage stage when the current battery temperature is in the preset warm temperature range, the current battery temperature is higher than the second preset temperature value, and the current value of the preset voltage threshold is the first preset voltage value, so as to ensure that the battery can be charged more stably and stop charging smoothly after being fully charged, thereby avoiding overcharging of the battery caused by the battery threshold voltage being too high at the current battery temperature; and when the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, indicating that the battery has cooled down, the charging threshold voltage is adjusted back to the first preset voltage value to ensure the charging efficiency of the battery. At the same time, a difference as a preset hysteresis temperature value is set between the second preset temperature value and the third preset temperature value to avoid frequent changes in the charging threshold voltage due to unstable battery temperature during the charging process.

[0275] In one embodiment of the present application, the current battery parameter also includes the current battery current;

[0276] The power consumption current value acquisition submodule is specifically used for:

[0277] When the current battery temperature is in a preset warm temperature range, the battery is in a target DC charging mode, and the current battery current is not less than a preset charging shutdown current threshold, obtaining a current power consumption current value of the electronic device;

[0278] The method further comprises:

[0279] When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a target DC charging mode, the target voltage value of the battery is a preset voltage threshold, and the current battery current is less than a preset charging shutdown current threshold, charging of the battery is stopped.

[0280] As can be seen from the above, the battery charging control device of the electronic device provided by the present application also obtains the current battery current when the battery is in the constant voltage stage of the DC charging mode, and obtains the current power consumption current value so that most of the online current is used to supply the system-level chip operating power consumption when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is not less than the preset charging shutdown current threshold; and when the current battery temperature is in the preset warm temperature range, the battery is in the constant voltage stage of the DC charging mode, the target voltage value of the battery is the preset voltage threshold, and the current battery current is less than the preset charging shutdown current threshold, the battery is stopped from being charged to avoid battery overcharging, so that the electronic device can be successfully charged during use.

[0281] In one embodiment of the present application, the device further includes:

[0282] a third voltage value adjustment module, configured to adjust the preset voltage threshold to a second preset voltage value and the preset charge shutdown current threshold to a second preset current value when the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, the current value of the preset charge shutdown current threshold is a first preset current value, and the current value of the preset voltage threshold is a first preset voltage value, wherein the first preset voltage value is greater than the second preset voltage value, and the first preset current value is less than the second preset current value;

[0283] A fourth voltage value adjustment module is used to adjust the preset voltage threshold to the first preset voltage value and the preset charge shutdown current threshold to the first preset current value when the current battery temperature is not higher than the third preset temperature value, the current value of the preset charge shutdown current threshold is the second preset current value, and the current value of the preset voltage threshold is the second preset voltage value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

[0284] As can be seen from the above, the battery charging control device of the electronic device provided by the present application, when the current battery temperature is in the preset warm temperature range and the current battery temperature is higher than the second preset temperature value, adjusts the preset charging shutdown current threshold and the preset voltage threshold at the same time, so as to ensure the stability of the battery voltage as much as possible, so that the battery can enter the constant voltage stage under the stable shutdown threshold current and threshold voltage values, and stop charging smoothly after the battery is fully charged, so as to avoid battery loss caused by overcharging or unstable charging process or excessive battery temperature as much as possible.

[0285] The memory in the electronic device may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.

[0286] The above-mentioned system-level chip can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0287] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the battery charging control method of any of the above electronic devices are implemented.

[0288] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the battery charging control method of any electronic device in the above embodiments.

[0289] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0290] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0291] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system, device, electronic device, and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0292] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A battery charging control method for an electronic device, characterized in that: The electronic device includes a battery, and the method includes: During use of the electronic device, obtaining current battery parameters of the battery, wherein the current battery parameters include current battery temperature; When the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode, obtaining a current power consumption current value of the electronic device; Determine a current limiting current value in a DC charging mode according to a current power consumption current value and a current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature; The current limiting current value is used as the online current, and the battery is charged in a direct current charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

2. The method according to claim 1, characterized in that When the current battery temperature is in a preset warm temperature range and is higher than a first preset temperature value, the current limiting current value is equal to the current power consumption current value, the battery charging current is 0, and the first preset temperature value is in the preset warm temperature range.

3. The method according to claim 1, characterized in that The current battery parameters also include the current battery voltage; The step of obtaining the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode includes: When the current battery temperature is in a preset warm temperature range, the battery is in a DC charging mode, and the current battery voltage is lower than a preset voltage threshold, obtaining a current power consumption current value of the electronic device; The method further comprises: When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a DC charging mode, and the current battery voltage is not lower than a preset voltage threshold, charging of the battery is stopped.

4. The method according to claim 3, characterized in that The method further comprises: When the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, and the current value of the preset voltage threshold is a first preset voltage value, adjusting the preset voltage threshold to a second preset voltage value, wherein the first preset voltage value is greater than the second preset voltage value; When the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is the preset hysteresis temperature value.

5. The method according to claim 1, characterized in that The current battery parameters also include the current battery current; The step of obtaining the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode includes: When the current battery temperature is in a preset warm temperature range, the battery is in a DC charging mode, and the current battery current is not less than a preset charging shutdown current threshold, obtaining a current power consumption current value of the electronic device; The method further comprises: When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a DC charging mode, the target voltage value of the battery is a preset voltage threshold, and the current battery current is less than a preset charging shutdown current threshold, charging of the battery is stopped.

6. The method according to claim 5, characterized in that The method further comprises: When the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, the current value of the preset charge shutdown current threshold is a first preset current value, and the current value of the preset voltage threshold is a first preset voltage value, adjusting the preset voltage threshold to a second preset voltage value, and adjusting the preset charge shutdown current threshold to a second preset current value, wherein the first preset voltage value is greater than the second preset voltage value, and the first preset current value is less than the second preset current value; When the current battery temperature is not higher than a third preset temperature value, the current value of the preset charge shutdown current threshold is a second preset current value, and the current value of the preset voltage threshold is a second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value, and the preset charge shutdown current threshold is adjusted to the first preset current value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

7. A battery charging control method for an electronic device, characterized in that: The method comprises: Get the current battery parameters of the battery; Determine the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode; The battery is charged using the target DC charging mode.

8. The method according to claim 7, characterized in that The current battery parameters include the current battery current; The step of determining the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode includes: According to a predetermined first correspondence between different battery currents and battery charging efficiencies in each DC charging mode, respectively determining a current charging efficiency of the current battery current in each DC charging mode; The DC charging mode with the highest current charging efficiency is selected to obtain the target DC charging mode.

9. The method according to claim 7, characterized in that: The current battery parameters include the current battery current; The step of determining the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode includes: According to a predetermined second correspondence between the battery current and the DC charging mode, the DC charging mode corresponding to the current battery current is determined to obtain a target DC charging mode, wherein the second correspondence is established according to a first correspondence between different battery currents and battery charging efficiencies under each DC charging mode.

10. The method according to claim 7, characterized in that The electronic device includes a battery and a system-level chip, and the current battery parameter includes the current battery temperature; The charging the battery using the target DC charging mode includes: Setting the charging mode of the battery to a target DC charging mode; During use of the electronic device, when the current battery temperature is in a preset warm temperature range and the battery is in a target DC charging mode, obtaining a current power consumption current value of the electronic device; Determine a current limiting current value in a target DC charging mode according to a current power consumption current value and a current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value, and the current limiting current value is negatively correlated with the current battery temperature; The current limiting current value is used as the online current, and the battery is charged in a target DC charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

11. The method according to claim 10, characterized in that When the current battery temperature is in a preset warm temperature range and is higher than a first preset temperature value, the current limiting current value is equal to the current power consumption current value, the battery charging current is 0, and the first preset temperature value is in the preset warm temperature range.

12. The method according to claim 10, characterized in that The current battery parameters also include the current battery voltage; The step of obtaining the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a target DC charging mode includes: When the current battery temperature is in a preset warm temperature range, the battery is in a target DC charging mode, and the current battery voltage is lower than a preset voltage threshold, obtaining a current power consumption current value of the electronic device; The method further comprises: When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a target DC charging mode, and the current battery voltage is not lower than a preset voltage threshold, charging of the battery is stopped.

13. The method according to claim 12, characterized in that The method further comprises: When the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, and the current value of the preset voltage threshold is a first preset voltage value, adjusting the preset voltage threshold to a second preset voltage value, wherein the first preset voltage value is greater than the second preset voltage value; When the current battery temperature is not higher than the third preset temperature value and the current value of the preset voltage threshold is the second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is the preset hysteresis temperature value.

14. The method according to claim 10, characterized in that The current battery parameters also include the current battery current; The step of obtaining the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a target DC charging mode includes: When the current battery temperature is in a preset warm temperature range, the battery is in a target DC charging mode, and the current battery current is not less than a preset charging shutdown current threshold, obtaining a current power consumption current value of the electronic device; The method further comprises: When the current battery temperature is in a preset warm temperature range, the battery is in a constant voltage stage of a target DC charging mode, the target voltage value of the battery is a preset voltage threshold, and the current battery current is less than a preset charging shutdown current threshold, charging of the battery is stopped.

15. The method according to claim 14, characterized in that The method further comprises: When the current battery temperature is in a preset warm temperature range, the current battery temperature is higher than a second preset temperature value, the current value of the preset charge shutdown current threshold is a first preset current value, and the current value of the preset voltage threshold is a first preset voltage value, adjusting the preset voltage threshold to a second preset voltage value, and adjusting the preset charge shutdown current threshold to a second preset current value, wherein the first preset voltage value is greater than the second preset voltage value, and the first preset current value is less than the second preset current value; When the current battery temperature is not higher than a third preset temperature value, the current value of the preset charge shutdown current threshold is a second preset current value, and the current value of the preset voltage threshold is a second preset voltage value, the preset voltage threshold is adjusted to the first preset voltage value, and the preset charge shutdown current threshold is adjusted to the first preset current value, wherein the third preset temperature value is less than the second preset temperature value, and the difference between the second preset temperature value and the third preset temperature value is a preset hysteresis temperature value.

16. An electronic device, characterized in that: include: Batteries, system-level chips and charging chips; The system-level chip is used to obtain current battery parameters of the battery during use of the electronic device, wherein the current battery parameters include current battery temperature; The charging chip is used to obtain the current power consumption current value of the electronic device when the current battery temperature is in a preset warm temperature range and the battery is in a DC charging mode; determine the current limiting current value in the DC charging mode according to the current power consumption current value and the current battery temperature, wherein the current limiting current value is not lower than the current power consumption current value and the current limiting current value is negatively correlated with the current battery temperature; use the current limiting current value as the online current and charge the battery in a DC charging mode, wherein the online current includes the power consumption current of the electronic device and the battery charging current of the battery.

17. An electronic device, characterized in that: include: Batteries, system-level chips and charging chips; The system-level chip is used to obtain current battery parameters of the battery; Determine the DC charging mode with the highest charging efficiency under the current battery parameters to obtain the target DC charging mode; The charging chip is used to charge the battery using the target DC charging mode.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.