Battery management method and electronic equipment
By determining the current usage cycle and preset aging parameters of the battery in the electronic device, and gradually adjusting the battery parameters to match the target aging parameters, the problem of inconsistency between the preset parameters and the actual aging situation is solved, and the battery life is extended and the risk of short circuit internal combustion is reduced. .
Patent Information
- Application Number
- CN202410840266.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-06-27
AI Technical Summary
In existing electronic devices, the preset battery aging parameters do not match the actual usage habits of users, resulting in inaccurate battery management, which cannot effectively extend battery life and reduce the risk of short-circuit internal combustion.
By determining the current usage cycle of the battery and the preset aging parameters, the battery parameters are gradually adjusted to match the target aging parameters, using step value adjustments to avoid inconsistency between the preset parameters and the actual aging conditions, including the number of charges, full charge capacity and low voltage switching. Voltage management during charging.
Extend battery life, reduce the risk of short-circuit internal combustion, and improve battery management accuracy and user experience.
Smart Images

Figure CN118398929B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic equipment, and in particular to a battery management method and electronic equipment. Background Art
[0002] With the development of electronic equipment technology, users are using more and more electronic equipment. However, as the use cycle of the battery of the electronic equipment increases, the battery of the electronic equipment will gradually age, and the risk of short circuit and internal combustion of the battery will gradually increase.
[0003] Usually, electronic devices can perform battery management and control on the batteries of electronic devices by presetting battery aging parameters corresponding to different usage cycles (such as the battery's full charge voltage, the battery's charging current, the battery's full charge capacity, etc.) to extend the battery's service life and reduce the risk of short circuit and internal combustion of the battery. The battery aging parameters corresponding to different usage cycles can be used to reflect the aging of batteries corresponding to different usage cycles. For example, when the usage cycle of the battery of an electronic device reaches a certain usage cycle, the electronic device can adjust the battery parameters to the battery aging parameters corresponding to the usage cycle, thereby managing the battery through the battery aging parameters corresponding to the usage cycle.
[0004] However, since different users have different habits of using electronic devices (such as the remaining battery power during charging, etc.), the aging conditions of the batteries of different users' electronic devices are different. This results in that when the batteries of different users' electronic devices are controlled by preset battery aging parameters, the preset battery aging parameters do not match the actual aging conditions of the batteries of the users' electronic devices, resulting in inaccurate control of the batteries of electronic devices by preset battery aging parameters, which cannot effectively extend the battery life and reduce the risk of short circuit internal combustion of the battery. Summary of the invention
[0005] The embodiments of the present application provide a battery management method and an electronic device, which can prevent the preset battery aging parameters from being inconsistent with the actual aging of the battery of the user's electronic device, thereby preventing the preset battery aging parameters from inaccurately controlling the battery of the electronic device.
[0006] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0007] In a first aspect, an embodiment of the present application provides a battery management method, which is applied to an electronic device, which may include a battery. The battery management method may include: the electronic device determines a current usage cycle of the battery; the electronic device determines a target battery aging parameter corresponding to the current usage cycle based on the current usage cycle and a plurality of preset battery aging parameters; the electronic device gradually adjusts the current battery parameter to the target battery aging parameter based on the current battery parameter of the battery, the target battery aging parameter and a first incremental value.
[0008] Based on the method described in the first aspect, after determining the target battery aging parameters corresponding to the current battery usage cycle of the battery, the electronic device does not directly adjust the current battery parameters of the battery to the target battery aging parameters, but gradually adjusts the current battery parameters to the target battery aging parameters according to the first step value. This can avoid the preset battery aging parameters not being consistent with the actual aging of the battery of the user's electronic device, resulting in inaccurate control of the battery of the electronic device through the preset battery aging parameters, thereby extending the battery life and reducing the risk of short circuit internal combustion of the battery.
[0009] In combination with the first aspect, in another possible implementation, the target battery aging parameters include a target full charge capacity of the battery, and the electronic device gradually adjusts the current battery parameters to the target battery aging parameters according to the current battery parameters of the battery, the target battery aging parameters and the first step value, which may include: when the electronic device meets preset conditions, the electronic device determines the aging deviation of the battery; the aging deviation of the battery is used to indicate the deviation between the current full charge capacity of the battery and the target full charge capacity; when the aging deviation is greater than a preset aging deviation threshold, the electronic device determines a second step value; the second step value is half of the first step value; the electronic device gradually adjusts the current battery parameters to the target battery aging parameters according to the current battery parameters of the battery, the target battery aging parameters and the second step value.
[0010] Based on this possible implementation method, when the aging deviation of the battery of the electronic device is too large, it can be determined that the preset target battery aging parameters do not match the actual aging of the battery. The electronic device can reduce the step value, thereby gradually adjusting the battery parameters to the preset battery aging parameters according to the reduced step value, thereby further avoiding the electronic device from inaccurately controlling the battery of the electronic device through the preset battery aging parameters, thereby extending the battery life and reducing the risk of short circuit internal combustion of the battery.
[0011] In combination with the first aspect, in another possible implementation, the preset condition may include that the number of charging times corresponding to the first step value reaches a preset number of charging times, and the electronic device is restarted or the electronic device is in a charging state.
[0012] Based on this possible implementation, by setting the preset condition that the number of charging times corresponding to the first step value reaches the preset number of charging times, and the electronic device is restarted or the electronic device is in a charging state, the power consumption of the electronic device can be saved.
[0013] In combination with the first aspect, in another possible implementation method, the above-mentioned electronic device determines the aging deviation of the battery, which may include: the electronic device determines the current full charge capacity of the battery and the full charge capacity corresponding to each charging process in a preset number of charging times; the electronic device determines the average full charge capacity corresponding to the preset number of charging times based on the full charge capacity corresponding to each charging process in the preset number of charging times; the electronic device determines the aging deviation of the battery based on the average full charge capacity corresponding to the preset number of charging times, the current full charge capacity of the battery, and the target full charge capacity.
[0014] Based on this possible implementation, the aging deviation of the battery can be determined by the average full charge capacity corresponding to the preset charging times, the current full charge capacity of the battery, and the target full charge capacity.
[0015] In combination with the first aspect, in another possible implementation, before the electronic device determines the aging deviation of the battery, the above-mentioned battery management method may also include: when the electronic device determines that the battery has been short-circuited, the electronic device adjusts the current battery parameters of the battery to target battery aging parameters; when the electronic device determines that the battery has not been short-circuited, the electronic device determines the aging deviation of the battery.
[0016] Based on this possible implementation method, when the electronic device determines that a battery short circuit has occurred, it can be determined that the actual aging condition of the battery is relatively serious, and the current battery parameters of the battery can be directly adjusted to target battery aging parameters, so that the electronic device can control the charging process of the battery through the target battery aging parameters.
[0017] In combination with the first aspect, in another possible implementation method, the above-mentioned electronic device determines the second step value, which may include: when the electronic device has set a random delay period, and the duration between the start time of the random delay period and the current time has reached the random delay period, the electronic device determines the second step value; when the electronic device has set a random delay period, and the duration between the start time of the random delay period and the current time has not reached the random delay period, the electronic device controls the battery charging process according to current battery parameters.
[0018] Based on this possible implementation method, the electronic device can set a random delay duration, and when the random delay duration is not met, the electronic device can control the battery charging process according to the current battery parameters, that is, the electronic device may not adjust the battery parameters, thereby weakening the user's perception and improving the user's experience.
[0019] In combination with the first aspect, in another possible implementation, the above-mentioned battery management method may also include: when the electronic device determines that the random delay period has not been set, the electronic device generates a random delay period, and the electronic device controls the battery charging process according to the current battery parameters.
[0020] Based on this possible implementation method, when the random delay duration is not set, the electronic device can set the random delay duration, and when the random delay duration is not met, the electronic device can control the battery charging process according to the current battery parameters, that is, the electronic device may not adjust the battery parameters, thereby weakening the user's perception and improving the user's usage experience.
[0021] In combination with the first aspect, in another possible implementation, the target battery aging parameter also includes a switching low-voltage charging voltage corresponding to the battery and a target switching capacity of the battery when switching to low-voltage charging, and the electronic device determines the second step value, which may include: the electronic device determines the switching capacity of the battery when charging the battery by switching the low-voltage charging voltage according to the switching low-voltage charging voltage corresponding to the battery; the electronic device determines the switching capacity difference according to the switching capacity and the target switching capacity; when the switching capacity difference is greater than a preset capacity difference threshold, the electronic device determines the second step value.
[0022] Based on this possible implementation method, when the switching capacity of the battery is less than the target switching capacity when switching the low-voltage charging voltage to charge the battery, it is determined that the switching to low-voltage charging is too early, and it can be determined that the preset target battery aging parameters are inconsistent with the actual aging of the battery. The electronic device can reduce the step value, thereby gradually adjusting the battery parameters to the preset battery aging parameters according to the reduced step value, thereby further avoiding inaccurate control of the battery of the electronic device by the electronic device through the preset battery aging parameters, which can extend the service life of the battery and reduce the risk of short circuit internal combustion of the battery.
[0023] In combination with the first aspect, in another possible implementation, the above-mentioned battery management method may also include: when the switching capacity difference is less than or equal to a preset capacity difference threshold, the electronic device gradually adjusts the current battery parameters to the target battery aging parameters based on the current battery parameters of the battery, the target battery aging parameters and the first step value.
[0024] Based on this possible implementation method, when the switching capacity of the battery is less than the target switching capacity when switching the low-voltage charging voltage to charge the battery, it is determined that the switching to low-voltage charging is not premature, and it can be determined that the preset target battery aging parameters are consistent with the actual aging of the battery. The electronic device can gradually adjust the battery parameters to the preset battery aging parameters through the first step value, thereby avoiding inaccurate control of the battery of the electronic device through the preset battery aging parameters, extending the battery life and reducing the risk of short circuit internal combustion of the battery.
[0025] In a second aspect, an embodiment of the present application provides a battery management device, which can be applied to an electronic device to implement the method in the first aspect. The functions of the battery management device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, such as a determination module, an adjustment module, etc.
[0026] The determination module can be used to determine the current usage cycle of the battery.
[0027] The determination module may also be used to determine a target battery aging parameter corresponding to the current usage cycle according to the current usage cycle and a plurality of preset battery aging parameters.
[0028] The adjustment module can be used to gradually adjust the current battery parameters to the target battery aging parameters according to the current battery parameters of the battery, the target battery aging parameters and the first step value.
[0029] In a third aspect, a battery management device is provided, which has the function of implementing the method described in the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0030] In a fourth aspect, a battery management device is provided, comprising: a processor and a memory; the memory is used to store computer execution instructions, and when the battery management device is running, the processor executes the computer execution instructions stored in the memory so that the battery management device performs the battery management method as described in any one of the above-mentioned first aspects.
[0031] In a fifth aspect, a battery management device is provided, comprising: a processor; the processor is used to couple with a memory, and after reading instructions in the memory, execute the battery management method as described in any one of the above-mentioned first aspects according to the instructions.
[0032] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by an electronic device, the electronic device implements a battery management method as described in any one of the first aspect or possible implementations of the first aspect.
[0033] In a seventh aspect, an embodiment of the present application provides a computer program product, comprising a computer readable code, which, when executed in an electronic device, enables the electronic device to implement a battery management method as described in any one of the first aspect or possible implementations of the first aspect.
[0034] In an eighth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the first aspect. In a possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
[0035] It should be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 Schematic diagram for switching low voltage charging of the battery too early;
[0037] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0038] Figure 3 One of the software structure diagrams of an electronic device provided in an embodiment of the present application;
[0039] Figure 4 A second schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;
[0040] Figure 5 A schematic diagram of the principle of the battery management method provided in the embodiment of the present application;
[0041] Figure 6 One of the flow charts of a battery management method is provided for an embodiment of the present application;
[0042] Figure 7 A second flow chart of a battery management method is provided for an embodiment of the present application;
[0043] Figure 8 A schematic diagram of the structure of a battery management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] 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 without creative work are within the scope of protection of this application.
[0045] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0046] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that " / " means or, for example, A / B can mean A or B; "and / or" in the text is merely a description of the association relationship of associated characters, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0047] With the development of electronic equipment technology, users are using more and more electronic equipment (such as mobile phones, etc.). However, as the battery life of electronic equipment increases, the battery of the electronic equipment will gradually age, and the risk of short circuit and internal combustion of the battery will gradually increase. Battery aging means that the battery capacity decreases, the internal resistance increases, the charging and discharging efficiency decreases, the self-discharge rate increases, and the chemical stability decreases.
[0048] Usually, electronic devices can control the batteries of electronic devices by presetting battery aging parameters corresponding to different usage cycles (such as the battery's full charge voltage, the battery's charging current, the battery's full charge capacity, etc.) to extend the battery's service life and reduce the risk of short circuit and internal combustion of the battery. The battery aging parameters corresponding to different usage cycles can be used to reflect the aging of batteries corresponding to different usage cycles. For example, when the usage cycle of the battery of an electronic device reaches a certain usage cycle, the electronic device can adjust the battery parameters to the battery aging parameters corresponding to the usage cycle, thereby controlling the battery through the battery aging parameters corresponding to the usage cycle.
[0049] The battery life cycle, that is, the number of times the battery starts to charge to full capacity, can also be called the number of cycles of battery use. Battery aging parameters, that is, a series of key parameters involved in the battery when the battery life reaches a certain life cycle in the battery aging experiment. These parameters are used to describe and quantify the performance changes of the battery during long-term use. The battery aging experiment can start charging when the battery power is less than 5% of the full charge capacity, and stop charging when the battery power reaches 95% of the full charge capacity.
[0050] Battery aging parameters may include parameters such as the battery's full charge voltage, battery's charging current, and battery's full charge capacity. The battery's full charge voltage refers to the highest voltage value reached by the battery after charging. For different types of batteries, the full charge voltage is also different. The battery's charging current is the current when the battery is charged. It should be noted that the battery's charging current is not a fixed value, but changes with the charging process. That is, at the beginning of charging, in order to quickly increase the power, the battery will accept a larger current; as the power increases, in order to avoid overcharging and battery damage, the charging current will gradually decrease. The battery's full charge capacity refers to the amount of charge that the battery can store when fully charged, usually expressed in ampere-hours (Ah). It should be noted that the battery capacity can also be called the battery power.
[0051] However, since different users have different usage habits for electronic devices (such as the remaining battery power during charging, etc.), the aging conditions of the batteries of different users' electronic devices are different. For example, when the user's usage habits are good, such as the user's usage habits are to start charging when the remaining battery power is less than 20% of the full charge capacity, and stop charging when the remaining battery power reaches 90% of the full charge capacity, for the same usage cycle, the aging condition of the battery of the user's electronic device is good, that is, the degree of battery aging is light.
[0052] When the user's usage habits are poor, such as the user's usage habit is to start charging when the remaining battery power is less than 20% of the full charge capacity, and stop charging when the remaining battery power reaches 100% of the full charge capacity, or the user's usage habit is to continue charging when the remaining battery power reaches 100% of the full charge capacity, for the same usage cycle, the aging condition of the battery of the user's electronic device is poor, that is, the degree of battery aging is severe.
[0053] Therefore, when the batteries of electronic devices of different users are managed and controlled through preset battery aging parameters, the preset battery aging parameters may not match the actual aging conditions of the batteries of the users' electronic devices due to the different usage habits of different users for electronic devices. This may result in inaccurate management and control of the batteries of electronic devices through preset battery aging parameters, and fail to effectively extend the battery service life and reduce the risk of short circuit and internal combustion of the battery.
[0054] For example, the preset battery aging parameters are used as an example to illustrate the battery aging parameters corresponding to the battery when the battery life reaches a certain use cycle, when the battery power starts charging when the battery power is less than 5% of the full charge capacity in the battery aging experiment, and stops charging when the battery power reaches 95% of the full charge capacity. When the user has good usage habits, such as starting charging when the remaining battery power is less than 20% of the full charge capacity, and stopping charging when the remaining battery power reaches 90% of the full charge capacity, when the battery life reaches the same use cycle, the aging of the battery of the user's electronic device is lighter than that of the battery in the battery aging experiment (such as the actual full charge capacity of the battery of the user's electronic device is higher than the full charge capacity of the battery in the battery aging experiment, and the actual full charge voltage of the battery is higher than the full charge voltage of the battery in the battery aging experiment).
[0055] Since the aging condition of the battery of the user's electronic device is lighter than that of the battery in the battery aging experiment, controlling the battery of the electronic device through preset battery aging parameters at this time will cause the preset battery aging parameters to be inconsistent with the actual aging condition of the battery of the user's electronic device, thereby resulting in overly strict control of the battery of the electronic device through the preset battery aging parameters.
[0056] For example, because the actual full charge capacity of the battery of the user's electronic device is higher than the full charge capacity of the battery during the battery aging experiment, when the battery is managed by the full charge capacity in the preset battery aging parameters, the battery may be over-full or switch to low-voltage charging too early (i.e., direct charging and switching to the buck circuit too early).
[0057] It should be noted that when the battery is charging, the electronic device will first perform high-voltage charging. When the remaining power of the battery is about to reach the full charge capacity (such as when the remaining power of the battery reaches a certain threshold of the full charge capacity), the electronic device will switch to the buck circuit for low-voltage charging. Since the actual full charge capacity of the battery of the user's electronic device is higher than the full charge capacity of the battery in the case of the battery aging experiment, when the full charge capacity of the battery is lower in the case of the battery aging experiment, if the full charge capacity of the battery is the full charge capacity of the battery in the case of the battery aging experiment, the timing of the electronic device switching to the buck circuit for low-voltage charging is earlier than the timing when the full charge capacity of the battery is the actual full charge capacity of the battery of the user's electronic device. Switching to the buck circuit for low-voltage charging too early will increase the charging time and affect the user experience.
[0058] For example, when an electronic device is charged at a high voltage of 9 volts (V), and the remaining power of the battery reaches 89% of the full charge capacity, the electronic device will switch to the buck circuit and charge at a low voltage (such as 5V). Figure 1 As shown, the battery switching to low-voltage charging is illustrated too early. When the battery of an electronic device is charged, the electronic device will first charge at high voltage through a voltage of 9V. When the remaining power of the battery is about to reach 89% of the full charge capacity, the electronic device will switch to the buck circuit for low-voltage (5V) charging.
[0059] Since the actual full charge capacity of the battery of the user's electronic device is higher than the full charge capacity of the battery under the battery aging test, that is, the full charge capacity of the battery under the battery aging test is lower. If the full charge capacity of the battery is the full charge capacity of the battery under the battery aging test, and the remaining power of the battery reaches 89% of the full charge capacity of the battery under the battery aging test, the electronic device switches to the buck circuit for low-voltage charging. Compared with the case where the full charge capacity of the battery is the actual full charge capacity of the battery, and the remaining power of the battery reaches 89% of the actual full charge capacity of the battery, the electronic device switches to the buck circuit for low-voltage charging too early, which will increase the charging time and affect the user experience.
[0060] In addition, since the electronic device is managed by presetting the battery aging parameters corresponding to different usage cycles, it means that when the battery of the electronic device reaches different usage cycles, the electronic device manages the battery of the electronic device through the battery aging parameters corresponding to different usage cycles. In other words, the aging of the battery corresponding to different usage cycles is different. In order to weaken the user's perception, the electronic device is roughly divided according to the battery usage cycle, and the battery of each user's electronic device is gradually managed.
[0061] However, when users have poor usage habits, resulting in a high risk and extremely severe aging of the batteries of electronic devices, if the corresponding battery aging parameters are determined according to the battery usage cycle and the batteries of the electronic devices are gradually managed and controlled, the battery aging parameters will not correspond to the aging of the battery, thereby further aggravating the risk and aging of the batteries of the electronic devices.
[0062] In response to the above problems, an embodiment of the present application provides a battery management method, which is applied to an electronic device. The battery management method may include that the electronic device may first obtain preset battery aging parameters corresponding to multiple usage cycles, and determine the target battery aging parameters according to the current usage cycle of the battery of the electronic device. Afterwards, the electronic device may obtain the battery information of the battery and the charging status information of the battery. Afterwards, the electronic device may determine the step value at which the electronic device adjusts the battery parameters to the target battery aging parameters based on the battery information of the battery and the charging status information of the battery. Thereby, the electronic device may gradually adjust the battery parameters to the target battery aging parameters according to the step value.
[0063] In the solution of the present application, the electronic device can determine the step value at which the electronic device adjusts the battery parameters to the target battery aging parameters based on the battery information and the battery charging status information, and gradually adjust the battery parameters to the target battery aging parameters based on the step value. Therefore, when the preset battery aging parameters do not match the actual aging of the battery of the user's electronic device, the solution of the present application gradually adjusts the battery parameters to the preset battery aging parameters through the step value, thereby avoiding inaccurate control of the electronic device's battery by the preset battery aging parameters, extending the battery's service life and reducing the risk of short circuit internal combustion of the battery.
[0064] The battery management method provided in the embodiment of the present application is described below.
[0065] The battery management method provided in the embodiment of the present application can be applied to the above-mentioned electronic device. The electronic device includes an electronic device with a rechargeable battery. In some embodiments, the above-mentioned electronic device can be a mobile phone, a tablet computer, a handheld computer, a personal computer (PC), a cellular phone, a personal digital assistant (PDA) and other electronic devices. The embodiment of the present application does not limit the specific form of the electronic device. It should be noted that the electronic device can also be a vehicle with a rechargeable battery.
[0066] For example, taking the electronic device as a mobile phone, Figure 2 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.
[0067] like Figure 2 As shown, the electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. Among them, the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
[0068] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0069] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0070] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0071] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0072] In some embodiments, the processor 210 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 wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor.
[0074] Antenna 1 and antenna 2 are 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 antennas. For example, antenna 1 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.
[0075] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be set in the same device as at least some of the modules of the processor 210.
[0076] The wireless communication module 260 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 wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0077] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, 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.
[0078] The electronic device implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
[0079] The display screen 294 is used to display images, videos, etc. The display screen 294 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 screens 294, where N is a positive integer greater than 1.
[0080] The electronic device can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor, etc. In some embodiments, the electronic device can include 1 or N cameras 293, where N is a positive integer greater than 1.
[0081] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 221. The internal memory 221 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 established during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 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.
[0082] The acceleration sensor 280E can periodically collect acceleration data of the electronic device at a certain frequency. For example, the acceleration magnitude of the electronic device in various directions (generally XYZ three-axis directions) can be collected.
[0083] Of course, it is understandable that the above Figure 2 The figure is only an exemplary description when the electronic device is in the form of a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (such as a smart watch, a smart bracelet), etc., the structure of the electronic device may include Figure 2 The structure shown in the figure is less than Figure 2 More structures are shown in the figure, which are not limited here.
[0084] It is understandable that, generally speaking, the realization of electronic device functions requires not only hardware support but also software cooperation.
[0085] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android® system of the layered architecture as an example to illustrate the software structure of the electronic device.
[0086] Figure 3 It is a software structure block diagram of the electronic device provided in the embodiment of the present application.
[0087] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android® system is divided into four layers, from top to bottom: the application layer, the application framework layer (also called the system framework Java layer), the Android® runtime and system library (also called the Native layer), and the kernel layer.
[0088] The application layer can include a series of application packages. Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, phone, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0089] It should be noted that, in the embodiment of the present application, the application layer may also include an application for managing the battery of the electronic device (i.e., an application that can be used to execute the battery management method provided in the embodiment of the present application), such as a mobile phone butler application. The mobile phone butler application may obtain preset battery aging parameters corresponding to multiple usage cycles, determine the target battery aging parameters according to the current usage cycle of the battery of the electronic device, and send the target battery aging parameters to the kernel layer, so that the kernel layer can control the battery according to the target battery aging parameters. The mobile phone butler application may also obtain the battery information of the battery and the charging status information of the battery. Afterwards, the mobile phone butler application may also determine that the electronic device adjusts the battery parameters to the step value of the target battery aging parameters based on the battery information of the battery and the charging status information of the battery. The mobile phone butler application may also adjust the battery parameters to the step value of the target battery aging parameters and send them to the kernel layer of the electronic device (i.e., control and send), so that the kernel layer can control the battery according to the target battery aging parameters.
[0090] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0091] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0092] like Figure 3As shown, the application framework layer may also include a battery service. The battery service may be used to receive battery information and charging status information sent by the kernel layer, and send the battery information and charging status information to the mobile phone manager application in the application layer. The battery service may also be used to receive control and management sent by the mobile phone manager application in the application layer, and send the control and management to the kernel layer. Thus, the kernel layer may control the battery according to the control and management values sent by the mobile phone manager application in the application layer.
[0093] It should be noted that the battery service can be a service for managing the battery in the hardware abstraction layer interface definition language (HIDL) service. The HIDL service can be used to enable the mobile phone manager application in the application layer to interact with the kernel layer, that is, the HIDL service is a communication channel between the upper and lower layers.
[0094] Android® runtime includes core libraries and virtual machines. Android® runtime is responsible for scheduling and management of the Android® system.
[0095] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the core library of Android®.
[0096] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0097] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0098] like Figure 3 As shown, the system library may also include a monitoring module (i.e., healthd layer). The monitoring module may be used to monitor the battery information and charging status information sent by the kernel charging control driver of the kernel layer. The monitoring module may also be used to send the battery information and charging status information to the battery service in the application framework layer. The monitoring module may also be used to receive the control issued by the battery service and send the control to the kernel charging control driver of the kernel layer.
[0099] It should be noted that the control and management of the battery service received by the monitoring module may include information such as the target full charge capacity of the battery, the charging current of the battery, and the charging voltage. The charging voltage may include the full charge voltage of the battery and the low-voltage charging voltage when the battery switches to the low-voltage charging voltage. The low-voltage charging voltage when the battery switches to the low-voltage charging voltage is the voltage of the battery when the electronic device switches from the high-voltage charging to the buck circuit for low-voltage charging.
[0100] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0101] like Figure 3 As shown, the kernel layer may further include a kernel charging control driver. The kernel charging control driver may include a battery driver (ie, a battery driver) and a charging driver (ie, a charge-ic driver).
[0102] The battery driver can be used to receive the target full charge capacity sent by the monitoring module control, and adjust the full charge capacity of the battery according to the target full charge capacity. The battery driver can also be used to obtain battery information and send the battery information to the monitoring module in the system library. The battery information may include the current full charge capacity of the battery and the number of charging cycles of the battery. The number of charging cycles of the battery, that is, the number of times the battery starts to charge to the full charge capacity, can also be called the battery life cycle.
[0103] The charging driver can be used to receive the charging current and charging voltage sent by the monitoring module, and adjust the current and voltage of the battery when charging according to the charging current and charging voltage. The charging driver can also be used to obtain charging status information and send the charging status to the monitoring module in the system library. The charging status information can include the charging status of the battery and the current power of the battery. The charging status of the battery refers to whether the battery is currently charging.
[0104] The following takes the mobile phone manager application, which is an application for managing the battery of an electronic device included in the application layer, as an example. Figure 4 , the principle of the battery management method provided in the embodiment of the present application is schematically illustrated.
[0105] like Figure 4 As shown, the mobile phone manager application may include battery health services, other services, and configuration files, etc. The battery health service may include other algorithm libraries and a battery algorithm library. The battery algorithm library may be used to execute the battery management method provided in the embodiment of the present application.
[0106] like Figure 4As shown in the figure, the kernel charging control driver in the kernel layer can send battery information and charging status information to the battery service in the HIDL service. That is, the battery driver in the kernel charging control driver can obtain battery information (i.e., the current full charge capacity and the number of battery charging cycles), and send the battery information to the battery service in the HIDL service through the monitoring module in the system library.
[0107] The charging driver in the kernel charging control driver can obtain the charging status information (that is, the current power and charging status of the battery), and send the charging status information to the battery service in the HIDL service through the monitoring module in the system library.
[0108] Afterwards, the battery service can send the battery information and charging status information to the battery algorithm library in the mobile phone manager application, so that the battery algorithm library in the mobile phone manager application can make protection logic judgments based on the battery information and charging status information. That is, the battery algorithm library in the mobile phone manager application can determine the target full charge capacity, charging current, and charging voltage issued by the management and control based on the battery information and charging status information. The battery algorithm library in the mobile phone manager application can also determine the step value for the electronic device to adjust the battery parameters (such as full charge capacity) to the target battery aging parameters (such as target full charge capacity) based on the battery information and the battery charging status information, and gradually adjust the battery parameters to the target battery aging parameters according to the step value.
[0109] After the battery service receives the control and distribution of the battery algorithm library in the mobile phone manager application, it can send the target full charge capacity, charging current and charging voltage to the kernel charging control driver of the kernel layer. That is, the battery service can send the target full charge capacity to the battery driver, and send the charging current and charging voltage to the charging driver. In this way, the battery driver can adjust the full charge capacity of the battery according to the target full charge capacity, and the charging driver can adjust the current and voltage when charging the battery according to the charging current and charging voltage.
[0110] The following takes the mobile phone manager application, which is an application for managing the battery of an electronic device included in the application layer, as an example. Figure 5 , the process of the battery management method provided in the embodiment of the present application is schematically illustrated.
[0111] like Figure 5 As shown, the mobile phone manager application can first obtain the battery aging parameters corresponding to different usage cycles from the server. Afterwards, the mobile phone manager application can determine the corresponding battery aging parameters according to the battery usage cycle, and send the corresponding battery aging parameters to the kernel charging control driver of the kernel layer, so that the kernel charging control driver can control the battery according to the corresponding battery aging parameters.
[0112] The kernel charging control driver in the kernel layer can obtain battery information and charging status information, and send the battery information and charging status information to the monitoring module in the Native layer. The monitoring module in the Native layer can send the battery information and charging status information to the battery service in the application framework layer. After that, the battery service in the application framework layer can send the battery information and charging status information to the mobile manager application.
[0113] Afterwards, the mobile phone manager application can make protection logic judgments based on the battery information and charging status information. That is, the battery algorithm library in the mobile phone manager application can determine the target full charge capacity, charging current, and charging voltage issued by the management and control (also called protection) based on the battery information and charging status information. The battery algorithm library in the mobile phone manager application can also determine the step value for the electronic device to adjust the battery parameters (such as full charge capacity) to the target battery aging parameters (such as target full charge capacity) based on the battery information and the battery charging status information, and gradually adjust the battery parameters to the target battery aging parameters according to the step value.
[0114] After the battery service in the application framework layer receives the protection sent by the battery algorithm library in the mobile phone manager application, it can send the protection sent to the monitoring module of the Native layer. After that, the monitoring module of the Native layer can send the protection sent to the kernel charging control driver of the kernel layer. Therefore, the kernel charging control driver can control the battery according to the protection sent. That is, the battery driver in the kernel charging control driver can adjust the full charge capacity of the battery according to the target full charge capacity sent by the protection, and the charging driver can adjust the current and voltage when the battery is charging according to the charging current and charging voltage sent by the protection.
[0115] The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure or software structure.
[0116] The following is combined with Figure 6 , the battery management method provided in the embodiment of the present application is described in detail, and the battery management method can be applied to electronic devices (such as mobile phones, etc.). Figure 6 As shown, the battery management method may include the following S601-S615.
[0117] S601: The electronic device determines a target battery aging parameter corresponding to a current usage cycle.
[0118] The electronic device can first obtain battery aging parameters corresponding to different usage cycles (i.e., preset battery experimental aging parameters). The usage cycle is the usage cycle of the battery of the electronic device. The usage cycle of the battery of the electronic device, i.e., the number of times the battery starts to charge to full capacity, can also be called the number of battery charging cycles.
[0119] The battery aging parameters may include the full charge voltage of the battery, the charging current of the battery, the full charge capacity of the battery, the remaining power of the battery when switching to low-voltage charging during the battery charging process, and the battery voltage when switching to low-voltage charging. It should be noted that the power of the battery in the embodiment of the present application may also be referred to as the capacity of the battery.
[0120] After the electronic device has been used for a period of time, the electronic device can determine the target battery aging parameter corresponding to the current use cycle, so that the electronic device can control the battery charging process for a preset number of times based on the target battery aging parameter.
[0121] In some examples, the electronic device determines the target battery aging parameter corresponding to the current usage cycle, and can obtain the battery information sent by the battery driver in the kernel layer of the electronic device for the battery management application in the electronic device (such as the mobile phone manager application, etc.). Afterwards, the battery management application in the electronic device can determine the current usage cycle of the battery based on the number of battery charging cycles included in the battery information.
[0122] After determining the current use cycle of the battery, the electronic device can determine the target battery aging parameters corresponding to the current use cycle from the preset battery aging parameters corresponding to different use cycles according to the current use cycle of the battery. The target battery aging parameters include the target full charge voltage of the battery corresponding to the current use cycle, the target charging current of the battery, the target full charge capacity of the battery, and the target remaining power of the battery when switching to low voltage charging during the battery charging process.
[0123] It should be noted that, in order to save power consumption of the electronic device, the electronic device may determine a target battery aging parameter corresponding to the current usage cycle when the electronic device is being charged or restarted.
[0124] S602: The electronic device controls the battery charging process for a preset number of times according to the target battery aging parameter.
[0125] After the electronic device determines the target battery aging parameter corresponding to the current usage cycle, the electronic device can control the battery charging process for a preset number of times according to the target battery aging parameter. That is, the electronic device can adjust the current battery parameter of the battery to the target battery aging parameter, and control the battery charging process for a preset number of times (the preset number of times in the embodiment of the present application may also be referred to as the preset charging number) according to the target battery aging parameter.
[0126] The current battery parameters may include the current full charge voltage, current charge current, current full charge capacity of the battery, the current remaining power of the battery when switching to low voltage charging during the battery charging process, and the battery voltage when switching to low voltage charging.
[0127] The specific value of the preset number of times can be set according to actual conditions, and the specific value of the preset number of times is not limited in the embodiment of the present application. For example, the preset number of times can be 10 times. In other words, the electronic device can control the 10 charging processes of the battery according to the target battery aging parameters.
[0128] In some examples, the electronic device controls the battery charging process according to the target battery aging parameters, and can charge the electronic device according to the target full charge voltage, target charge current, target full charge capacity in the target battery aging parameters, and the target remaining power of the battery when switching to low-voltage charging during the battery charging process. That is, when the electronic device is charging, the full charge voltage of the battery is the target full charge voltage in the target battery aging parameters, the charging current of the battery is the target charge current in the target battery aging parameters, and the full charge capacity of the battery is the target full charge capacity in the target battery aging parameters. When the remaining power of the battery reaches the target remaining power during the battery charging process, it switches to low-voltage charging.
[0129] In some examples, before the electronic device manages a preset number of battery charging processes according to a target battery aging parameter, the electronic device may first determine whether a short circuit has occurred in a battery of the electronic device.
[0130] In the event that a short circuit occurs in the battery, the electronic device can directly control the battery charging process for a preset number of times according to the target battery aging parameters. In the event that a short circuit does not occur in the battery, the electronic device can determine whether the aging deviation between the current full charge capacity of the battery and the target full charge capacity in the target battery aging parameters is too large. That is, determine whether the aging deviation between the current full charge capacity of the battery and the target full charge capacity in the target battery aging parameters is greater than a preset threshold. The aging deviation is used to indicate the deviation between the current full charge capacity of the battery and the target full charge capacity in the target battery aging parameters.
[0131] The specific value of the preset threshold can be set according to actual conditions, and the specific value of the preset threshold is not limited in the embodiments of the present application.
[0132] When the aging deviation between the current full charge capacity of the battery and the target full charge capacity in the target battery aging parameter is greater than a preset threshold, the electronic device can control the battery charging process for a preset number of times according to the target battery aging parameter and the initial step value (the initial step value in the embodiment of the present application can also be referred to as the first step value). In other words, the electronic device can gradually adjust the battery parameters to the target battery aging parameters according to the current battery parameters and the initial step value.
[0133] That is, the electronic device can determine the intermediate target battery aging parameters according to the current battery parameters and the initial step value. Afterwards, the electronic device can control the battery charging process for a preset number of times according to the intermediate target battery aging parameters. Afterwards, when the electronic device determines that the battery has not been short-circuited, and the aging deviation between the current full charge capacity of the battery and the target full charge capacity in the target battery aging parameters is not too large, the electronic device can determine the new intermediate battery parameters according to the intermediate battery parameters and the initial step value, and control the battery charging process for a preset number of times according to the new intermediate battery parameters. Afterwards, the above process is repeated until the current battery parameters are gradually adjusted to the target battery aging parameters.
[0134] When the electronic device determines that the battery has not been short-circuited, and the aging deviation between the current full-charge capacity of the battery and the target full-charge capacity in the target battery aging parameters is too large, the electronic device can determine the new intermediate battery parameters based on the current battery parameters and the step value after halving (i.e., half of the initial step value), and control the battery charging process for a preset number of times based on the new intermediate battery parameters. Afterwards, the above process is repeated until the current battery parameters are gradually adjusted to the target battery aging parameters. It should be noted that the step value after halving (i.e., half of the initial step value) in the embodiment of the present application can also be referred to as the second step value.
[0135] In some examples, combined Figure 4 As shown, the electronic device controls the battery charging process for a preset number of times according to the target battery aging parameters. After the application program (such as the mobile phone manager application program, etc.) that manages the battery in the electronic device obtains and determines the battery aging parameters corresponding to the current use cycle of the battery, the mobile phone manager application program can send the battery aging parameters corresponding to the current use cycle to the battery service in the electronic device. The battery service can send the battery aging parameters corresponding to the current use cycle to the kernel charging control driver (i.e., the battery driver and the charging driver) in the kernel layer of the electronic device. Thus, the battery driver and the charging driver can control the battery charging process for a preset number of times according to the target battery aging parameters.
[0136] S603: When the electronic device starts charging, the electronic device determines whether a short circuit occurs in the battery.
[0137] After the electronic device manages and controls the battery charging process for a preset number of times according to the target battery aging parameter, when the electronic device starts charging, the electronic device can determine whether a short circuit occurs in the battery.
[0138] It should be noted that when a battery of an electronic device is short-circuited, the electronic device can record the short-circuit condition of the battery, so that the electronic device can determine whether the battery has been short-circuited based on the recorded short-circuit condition of the battery.
[0139] When the electronic device determines that the battery has been short-circuited, the electronic device can set the control value of the battery to the target value, that is, the following S604 can be executed. When the electronic device determines that the battery has been short-circuited, the electronic device can determine the aging deviation between the current full charge capacity of the battery and the target full charge capacity in the target battery aging parameter, that is, the following S605 can be executed.
[0140] In some examples, the electronic device determines whether to start charging, and can obtain the charging status information sent by the charging driver in the kernel layer of the electronic device for the application (such as the mobile phone manager application) that manages the battery in the electronic device. Afterwards, the application that manages the battery in the electronic device can determine whether to start charging based on the charging status of the battery included in the charging status information. The charging status of the battery can include charging and not charging.
[0141] In some examples, combined Figure 4 As shown, the electronic device determines whether a short circuit has occurred in the battery by, for example, an application program for managing the battery in the electronic device (such as a mobile phone manager application program, etc.) determining whether a short circuit has occurred in the battery based on the short circuit condition of the battery recorded by the electronic device.
[0142] It should be noted that the electronic device can determine whether the battery has a short circuit when starting to charge, and the electronic device can determine whether the battery has a short circuit when restarting. This is not limited in the embodiments of the present application. In the embodiments of the present application, the electronic device determines whether the battery has a short circuit when starting to charge as an example for schematic illustration.
[0143] That is, the electronic device determines whether the battery has been short-circuited when the preset conditions are met. The preset conditions may include that the electronic device controls the battery charging process for a preset number of times according to the target battery aging parameter (that is, the number of charging times corresponding to the first step value of the electronic device reaches the preset number of charging times), and the electronic device is restarted or the electronic device is in a charging state.
[0144] S604: The electronic device sets the current battery parameters of the battery as target battery aging parameters, and manages the battery charging process for a preset number of times according to the target battery aging parameters.
[0145] It should be noted that the current battery parameter of the battery may also be referred to as the control value of the battery, and the target battery aging parameter may also be referred to as the target value of the battery.
[0146] In some examples, the electronic device sets the current battery parameters of the battery as target battery aging parameters, and the current battery parameters of the battery, including the current full charge voltage of the battery, the current charging current of the battery, the current full charge capacity of the battery, and the current remaining power of the battery when switching to low-voltage charging during the battery charging process, can be switched by the electronic device to the target battery aging parameters, including the target full charge voltage of the battery, the target charging current of the battery, the target full charge capacity of the battery, and the target remaining power of the battery when switching to low-voltage charging during the battery charging process.
[0147] After the electronic device sets the current battery parameter of the battery as the target battery aging parameter, the electronic device can control the battery charging process for a preset number of times according to the target battery aging parameter. After the electronic device controls the battery charging process for a preset number of times according to the target battery aging parameter, after the battery of the electronic device is charged or the electronic device is restarted, the electronic device can also determine again whether the battery has a short circuit, that is, it can continue to execute the above S603.
[0148] S605: The electronic device determines whether the aging deviation of the battery is too large.
[0149] The aging deviation of the battery can be used to indicate the deviation between the current full charge capacity of the battery and the full charge capacity in the target battery aging parameters. When the aging deviation of the battery is large, the deviation between the current full charge capacity of the battery and the full charge capacity in the target battery aging parameters is large. At this time, it can be explained that the deviation between the target battery aging parameters corresponding to the current usage cycle and the current battery parameters of the battery is large, that is, the preset battery aging parameters do not match the actual aging of the battery of the user's electronic device. When the aging deviation of the battery is small, the deviation between the current full charge capacity of the battery and the full charge capacity in the target battery aging parameters is small. At this time, it can be explained that the deviation between the target battery aging parameters corresponding to the current usage cycle and the current battery parameters of the battery is small, that is, the preset battery aging parameters are consistent with the actual aging of the battery of the user's electronic device.
[0150] In the case where the aging deviation is too large, the electronic device can set the current battery parameter of the battery as the target battery aging parameter and reduce the step value by half, that is, the electronic device can continue to perform the following S606-S607. In the case where the aging deviation is too large, the electronic device can determine whether there is a random delay duration, that is, the electronic device can continue to perform the following S608.
[0151] In some examples, the current full charge capacity of the battery may be the full charge capacity of the battery that has been obtained by the electronic device through self-learning. The specific method for obtaining the current full charge capacity of the battery is not limited in the embodiments of the present application.
[0152] In some examples, the electronic device determines whether the aging deviation of the battery is too large, and the aging deviation of the battery can be determined for the electronic device first. After that, the electronic device can determine whether the battery aging deviation is greater than a preset deviation (the preset deviation in the embodiment of the present application can also be referred to as a preset aging deviation threshold). When the battery aging deviation is greater than the preset deviation, the electronic device can determine that the battery aging deviation is too large. When the battery aging deviation is less than or equal to the preset deviation, the electronic device can determine that the battery aging deviation is not too large.
[0153] The specific value of the preset deviation can be set according to actual conditions. The specific value of the preset deviation is not limited in the embodiment of the present application.
[0154] In some examples, the electronic device determines the battery aging deviation by first determining an average value of the battery full charge capacity corresponding to a preset number of times for the electronic device. Thereafter, the electronic device can determine the battery aging deviation based on the average value of the battery full charge capacity corresponding to the preset number of times, the current full charge capacity of the battery, and the target full charge capacity.
[0155] The average value of the battery full charge capacity corresponding to the preset number of times (which may also be referred to as the average full charge capacity corresponding to the preset number of charging times in the embodiment of the present application), that is, the average value of the current full charge capacity of the battery obtained by self-learning by the electronic device each time the electronic device controls the battery charging process for the preset number of times according to the target battery aging parameters. In other words, when the electronic device controls the battery charging process according to the target battery aging parameters, the electronic device can self-learn the current full charge capacity of the battery (which may also be referred to as the full charge capacity corresponding to each charging process in the preset number of charging times in the embodiment of the present application) and record it. After obtaining the current full charge capacity of the battery obtained by self-learning by the electronic device for the preset number of times, the electronic device can sum the current full charge capacity of the battery obtained by self-learning by the electronic device for the preset number of times, and divide the summed full charge capacity by the preset number of times, thereby obtaining the average value of the battery full charge capacity corresponding to the preset number of times.
[0156] In some examples, the electronic device can determine the aging deviation of the battery by using the following formula 1.
[0157] Formula 1: ;
[0158] in, Indicates the battery aging deviation. Indicates the average value of the battery full charge capacity corresponding to the preset number of times. Indicates the current fully charged capacity of the battery. Indicates the target full charge capacity, and N indicates the preset number of times.
[0159] In some examples, combined Figure 4 As shown, the electronic device determines whether the aging deviation of the battery is too large. The battery driver in the kernel layer of the electronic device can first determine the current full charge capacity of the battery and the current full charge capacity of the battery obtained by self-learning of the electronic device during each control, and send the battery information of the battery to the application (such as the mobile phone manager application, etc.) that manages the battery in the electronic device through the battery service. The battery information includes the current full charge capacity and the current full charge capacity of the battery obtained by self-learning of the electronic device during each control. Thus, according to the current full charge capacity of the battery obtained by self-learning of the electronic device during each control, the average value of the full charge capacity of the battery corresponding to the preset number of times is determined, and according to the average value of the full charge capacity of the battery corresponding to the preset number of times, the current full charge capacity of the battery, the target full charge capacity and the preset number of times, the aging deviation of the battery is determined.
[0160] S606: The electronic device sets the current battery parameter of the battery as the target battery aging parameter and reduces the step value by half.
[0161] In the case where the aging deviation is too large, it can be determined that the preset battery aging parameters do not match the actual aging of the battery of the user's electronic device, and the electronic device can set the current battery parameters of the battery to the target battery aging parameters and halve the step value (the halved step value in the embodiment of the present application can also be referred to as the second step value). Thus, the electronic device can gradually adjust the current battery parameters of the battery to the target battery aging parameters.
[0162] The step value is to adjust the current battery parameters of the battery to the step value of the target battery aging parameters (it may also be referred to as the first step value in the embodiment of the present application). That is to say, when the electronic device adjusts the battery parameters to the target battery aging parameters, it does not directly adjust the current battery parameters of the battery to the target battery aging parameters, but adds the step value to the battery parameters to obtain the intermediate battery parameters. Afterwards, the electronic device can control the battery charging process for a preset number of times according to the intermediate battery parameters. Afterwards, the electronic device can add the step value to the intermediate battery parameters again to obtain new intermediate battery parameters, and control the battery charging process for a preset number of times according to the new intermediate battery parameters. Afterwards, the above process is repeated until the current battery parameters of the battery are adjusted to the target battery aging parameters.
[0163] It should be noted that when obtaining the intermediate battery parameters, the electronic device can add the step value to the battery parameters to obtain the intermediate battery parameters, or subtract the step value from the battery parameters to obtain the intermediate battery parameters. Specifically, it can be determined whether to add or subtract the step value based on the current battery parameters and the target battery aging parameters.
[0164] In some examples, the electronic device sets the current battery parameter of the battery as the target battery aging parameter, and the step value in the step value halving can be the initial step value or the intermediate step value. The intermediate step value can be half of the initial step value, or one quarter of the initial step value, or one eighth of the initial step value, etc. In other words, the intermediate step value can be half of the initial step value, or the initial step value halved again after halving. The number and specific values of the intermediate step values are not limited in the embodiments of the present application.
[0165] That is, when the electronic device first determines that the battery aging deviation is too large, the electronic device sets the current battery parameter of the battery as the target battery aging parameter and reduces the initial step value by half. Thus, the electronic device can adjust the current battery parameter of the battery to the target battery aging parameter according to the halved initial step value.
[0166] When the electronic device determines for the second time that the aging deviation of the battery is too large, the electronic device sets the current battery parameter of the battery as the target battery aging parameter, and halves the halved initial step value again (i.e., the intermediate step value). Thus, the electronic device can adjust the current battery parameter of the battery to the target battery aging parameter according to the halved initial step value.
[0167] In some examples, combined Figure 4 As shown, the electronic device sets the current battery parameters of the battery to the target battery aging parameters and halve the step value. The application program for managing the battery in the electronic device (such as a mobile phone manager application program, etc.) can determine the aging deviation of the battery according to the average value of the full charge capacity of the battery corresponding to the preset number of times, the current full charge capacity of the battery, the target full charge capacity and the preset number of times. When the aging deviation of the battery is too large, the mobile phone manager application program can set the current battery parameters of the battery to the target battery aging parameters and halve the step value.
[0168] S607: The electronic device controls the battery charging process for a preset number of times according to the target battery aging parameter and the halved step value.
[0169] In some examples, the electronic device controls the battery charging process for a preset number of times according to the target battery aging parameter and the halved step value. The electronic device may add the halved step value to the current battery parameter of the battery to obtain an intermediate battery parameter. Afterwards, the electronic device may control the battery charging process for a preset number of times according to the intermediate battery parameter. Afterwards, the electronic device may add the halved step value to the intermediate battery parameter again to obtain a new intermediate battery parameter, and control the battery charging process for a preset number of times according to the new intermediate battery parameter. Afterwards, the above process is repeated until the current battery parameter of the battery is adjusted to the target battery aging parameter.
[0170] In some examples, current battery parameters of the electronic device's battery are added to a halved step value to obtain intermediate battery parameters. The current full charge voltage and the current full charge capacity in the current battery parameters of the electronic device can be added to the halved step value to obtain an intermediate full charge voltage and an intermediate full charge capacity in the intermediate battery parameters.
[0171] It should be noted that after the electronic device controls the battery charging process for a preset number of times according to the target battery aging parameters and the step value after halving, when the electronic device is restarted or charged, the electronic device can again determine whether the battery has a short circuit, that is, it can continue to execute the above S603.
[0172] In some examples, combined Figure 4 As shown, the electronic device controls the battery charging process for a preset number of times according to the target battery aging parameters and the halved step value, and after the halved step value is determined for the application program (such as the mobile phone manager application program, etc.) that manages the battery in the electronic device, the mobile phone manager application program can send the target battery aging parameters and the halved step value to the battery service in the electronic device. The battery service can send the target battery aging parameters and the halved step value to the kernel charging control driver (i.e., the battery driver and the charging driver) in the kernel layer of the electronic device. Thus, the battery driver and the charging driver can control the battery charging process for a preset number of times according to the target battery aging parameters and the halved step value.
[0173] S608: The electronic device determines whether there is a random delay duration.
[0174] If the aging deviation is not too large, it can be determined that the preset battery aging parameters are consistent with the actual aging of the battery of the user's electronic device, and the electronic device can determine whether there is a random delay time. That is, the electronic device can determine whether the electronic device has set a random delay time.
[0175] The random delay duration is the duration from when the electronic device sets the random delay to when the current battery parameters of the battery start to be adjusted to the target battery aging parameters. That is to say, from when the electronic device sets the random delay until the random delay duration is reached, the electronic device does not adjust the current battery parameters of the battery to the target battery aging parameters. After the electronic device sets the random delay until the random delay duration is reached, the electronic device starts to adjust the current battery parameters of the battery to the target battery aging parameters.
[0176] The specific value of the random delay time can be set according to the actual situation. The specific value of the random delay time is not limited in the embodiment of the present application. For example, the random delay time can be any time from 30 days to 60 days.
[0177] If there is no random delay time, the electronic device may generate a random delay time, that is, the electronic device may continue to perform the following S609. If there is a random delay time, the electronic device may determine whether the random delay time is satisfied, that is, the electronic device may continue to perform the following S610.
[0178] In some examples, combined Figure 4 As shown, the electronic device determines whether there is a random delay time, and an application for managing the battery in the electronic device (such as a mobile phone manager application, etc.) can determine whether the electronic device has set a random delay time.
[0179] S609: The electronic device generates a random delay duration.
[0180] It should be noted that after the electronic device generates the random delay time, the electronic device can determine whether the battery has been short-circuited and whether the battery aging deviation is too large when the random delay time is reached (i.e., the time between the start time of the random delay time and the current time reaches the random delay time) and the electronic device is restarted or the electronic device is charged. If the battery has not been short-circuited and the battery aging deviation is not too large, the electronic device can continue to determine whether the random delay time is met. That is, if the battery has not been short-circuited and the battery aging deviation is not too large, the electronic device can continue to execute the following S610.
[0181] S610: The electronic device determines whether a random delay time is satisfied.
[0182] The electronic device determines whether the random delay duration is satisfied, and can determine whether the duration from when the random delay is set for the electronic device to the current time reaches the random delay duration.
[0183] If the random delay time is not satisfied, the electronic device can control the battery charging process according to the current battery parameters of the battery, that is, the electronic device can continue to execute the following S611. If the random delay time is satisfied, the electronic device can determine whether the low voltage charging is switched too early, that is, the electronic device can continue to execute the following S612.
[0184] In some examples, combined Figure 4 As shown, the electronic device determines whether the random delay duration is met, and an application for managing the battery in the electronic device (such as a mobile phone manager application, etc.) can determine whether the random delay duration has been reached from the setting of the random delay to the current time.
[0185] S611. The electronic device controls the charging process of the battery according to the current battery parameters of the battery.
[0186] When the random delay time is not met, the electronic device can control the charging process of the battery according to the current battery parameters of the battery. Therefore, when the random delay time is not met, the electronic device may not adjust the current battery parameters of the battery, thereby weakening the user's perception.
[0187] In some examples, when the electronic device controls the charging process of the battery according to the current battery parameters of the battery, if the random delay duration is reached (that is, the duration between the start time of the random delay duration and the current time reaches the random delay duration), and the battery of the electronic device is charged or the electronic device is restarted, the electronic device can also determine again whether the battery has a short circuit, that is, the above S603 can continue to be executed.
[0188] S612: The electronic device determines whether switching to low-voltage charging is premature.
[0189] In some examples, the electronic device determines whether it is too early to switch to low-voltage charging. When the electronic device is charging, the electronic device first performs high-voltage charging, and when the voltage of the battery reaches the voltage of the battery when switching to low-voltage charging in the target battery aging parameter (which may also be referred to as the switching low-voltage charging voltage corresponding to the battery in the embodiment of the present application), the electronic device switches to low-voltage charging (i.e., step-down charging). When the electronic device switches to low-voltage charging, the electronic device can determine the current capacity of the battery. Afterwards, the electronic device can compare the current capacity of the battery with the remaining capacity of the battery when switching to low-voltage charging (i.e., switching to low-voltage charging) in the target battery aging parameter during the battery charging process, thereby determining whether it is too early to switch to low-voltage charging. It should be noted that in the embodiment of the present application, the remaining capacity of the battery when switching to low-voltage charging during the battery charging process may also be referred to as the target switching capacity of the battery when switching to low-voltage charging.
[0190] When the current capacity of the battery when the electronic device switches to low-voltage charging (in the embodiment of the present application, it may also be referred to as the switching capacity of the battery when the electronic device switches to low-voltage charging voltage to charge the battery) is less than the remaining capacity of the battery when the battery is switched to low-voltage charging in the target battery aging parameter during the battery charging process, or the absolute value of the capacity difference between the current capacity of the battery when the electronic device switches to low-voltage charging and the remaining capacity of the battery when the battery is switched to low-voltage charging in the target battery aging parameter during the battery charging process (in the embodiment of the present application, it may also be referred to as the switching capacity difference) is less than the preset capacity threshold, the electronic device may determine that the switching to low-voltage charging is too early. The preset capacity threshold in the embodiment of the present application may also be referred to as the preset capacity difference threshold.
[0191] When the current capacity of the battery when the electronic device switches to low-voltage charging is greater than or equal to the remaining capacity of the battery when switching to low-voltage charging during the battery charging process in the target battery aging parameters, or when the current capacity of the battery when the electronic device switches to low-voltage charging is not less than the preset capacity threshold of the remaining capacity of the battery when switching to low-voltage charging during the battery charging process in the target battery aging parameters, the electronic device can determine that switching to low-voltage charging is not premature.
[0192] The specific value of the preset capacity threshold can be set according to actual conditions. The specific value of the preset capacity threshold is not limited in the embodiment of the present application.
[0193] In the case where the low-voltage charging is not switched too early, the electronic device can set the current battery parameters of the battery to the target battery aging parameters and halve the step value, that is, the electronic device can continue to execute the following S613. In the case where the low-voltage charging is not switched too early, the electronic device can set the current battery parameters of the battery to the target battery aging parameters, and control the battery charging process for a preset number of times according to the target battery aging parameters and the step value, that is, the electronic device can continue to execute the following S615.
[0194] In some examples, combined Figure 4 As shown, the electronic device determines whether it is too early to switch to low-voltage charging, and the charging driver of the core layer of the electronic device can first determine the charging status information of the battery, and the charging status information may include the remaining power of the battery when the electronic device switches to low-voltage charging (that is, the current power of the battery when the electronic device switches to low-voltage charging). Afterwards, the charging driver can send the battery charging status information to the application (such as the mobile phone housekeeper application, etc.) that manages the battery in the electronic device through the battery service. Thus, the mobile phone housekeeper application can determine whether it is too early to switch to low-voltage charging based on the current power of the battery when the electronic device switches to low-voltage charging.
[0195] S613: The electronic device sets the current battery parameter of the battery as the target battery aging parameter and reduces the step value by half.
[0196] The specific implementation process of the electronic device setting the current battery parameter of the battery as the target battery aging parameter and halving the step value can refer to the specific implementation process of the electronic device setting the current battery parameter of the battery as the target battery aging parameter and halving the step value in S606 above. The embodiments of the present application will not be repeated here.
[0197] S614: The electronic device controls the battery charging process for a preset number of times according to the target battery aging parameter and the halved step value.
[0198] The specific implementation process of the electronic device controlling the preset number of battery charging processes according to the target battery aging parameter and the halved step value can refer to the specific implementation process of the electronic device controlling the preset number of battery charging processes according to the target battery aging parameter and the halved step value in S607 above. The embodiments of the present application will not be repeated here.
[0199] S615: The electronic device sets the current battery parameter of the battery as the target battery aging parameter, and controls the battery charging process for a preset number of times according to the target battery aging parameter and the step value.
[0200] It should be noted that the electronic device sets the current battery parameters of the battery as the target battery aging parameters, and controls the battery charging process for a preset number of times based on the target battery aging parameters and the step value. The step value can be the initial step value or the initial step value after being halved.
[0201] That is, when the electronic device first determines that switching to low-voltage charging is not premature, the electronic device sets the current battery parameters of the battery as the target battery aging parameters, and controls the battery charging process for a preset number of times based on the target battery aging parameters and the initial step value.
[0202] When the electronic device first determines that the low-voltage charging is switched too early, the electronic device sets the current battery parameters of the battery to the target battery aging parameters and halves the initial step value. Thus, the electronic device can adjust the current battery parameters of the battery to the target battery aging parameters according to the halved initial step value. Afterwards, when the electronic device is restarted or charged, the electronic device can continue to determine whether the battery has been short-circuited, that is, the electronic device can continue to execute the above S603-S612. When the electronic device determines again that the low-voltage charging is switched too early, the electronic device sets the current battery parameters of the battery to the target battery aging parameters, and further halves the initial step value after halving. Thus, the electronic device can adjust the current battery parameters of the battery to the target battery aging parameters according to the initial step value further halved. When the electronic device determines again that the low-voltage charging is not switched too early, the electronic device sets the current battery parameters of the battery to the target battery aging parameters, and adjusts the current battery parameters of the battery to the target battery aging parameters according to the halved initial step value.
[0203] In the solution of the present application, the electronic device can determine the step value at which the electronic device adjusts the battery parameters to the target battery aging parameters based on the battery information and the battery charging status information, and gradually adjust the battery parameters to the target battery aging parameters based on the step value. Therefore, when the preset battery aging parameters do not match the actual aging of the battery of the user's electronic device, the solution of the present application gradually adjusts the battery parameters to the preset battery aging parameters through the step value, thereby avoiding inaccurate control of the electronic device's battery by the preset battery aging parameters, extending the battery's service life and reducing the risk of short circuit internal combustion of the battery.
[0204] For ease of understanding, the following Figure 7 The battery management method provided in the embodiment of the present application is described. Figure 7 As shown, the battery management method may include the following S701-S703.
[0205] S701. The electronic device determines a current usage cycle of a battery.
[0206] The current life cycle of the battery, that is, the number of charge cycles the battery has undergone.
[0207] S702: The electronic device determines a target battery aging parameter corresponding to the current usage cycle according to the current usage cycle and a plurality of preset battery aging parameters.
[0208] The multiple battery aging parameters are multiple preset battery aging parameters.
[0209] In the embodiment of the present application, the electronic device determines the current usage cycle of the battery, and the electronic device determines the target battery aging parameter corresponding to the current usage cycle based on the current usage cycle and multiple preset battery aging parameters. Please refer to the above S601, and the embodiment of the present application will not be repeated here.
[0210] S703: The electronic device gradually adjusts the current battery parameter to the target battery aging parameter according to the current battery parameter of the battery, the target battery aging parameter and the first incremental value.
[0211] After the electronic device determines the current usage cycle and multiple preset battery aging parameters, the electronic device can gradually adjust the current battery parameters to the target battery aging parameters according to the current battery parameters of the battery, the target battery aging parameters and the first incremental value.
[0212] The first step value may be an initial step value.
[0213] Exemplarily, the electronic device gradually adjusts the current battery parameters to the target battery aging parameters based on the current battery parameters of the battery, the target battery aging parameters and the first step value, and can determine the intermediate target battery aging parameters for the electronic device based on the current battery parameters and the first step value. Afterwards, the electronic device can control the battery charging process of the preset number of charging times corresponding to the first step value according to the intermediate target battery aging parameters. The preset number of charging times corresponding to the first step value is the number of times the electronic device controls the battery charging process according to the first step value. The specific value of the preset number of charging times corresponding to the first step value can be determined according to actual conditions, and the preset number of charging times corresponding to the first step value is not limited in the embodiment of the present application. For example, the preset number of charging times corresponding to the first step value can be 10 times.
[0214] Afterwards, the electronic device can determine a new intermediate target battery aging parameter according to the intermediate target battery aging parameter and the first step value. Afterwards, the electronic device can control the battery charging process of the preset number of charging times corresponding to the first step value according to the intermediate target battery aging parameter. Afterwards, the electronic device can loop the above process until the current battery parameter is gradually adjusted to the target battery aging parameter.
[0215] In some examples, the target battery aging parameters may include a target full charge capacity of the battery. The electronic device gradually adjusts the current battery parameters to the target battery aging parameters based on the current battery parameters of the battery, the target battery aging parameters, and the first step value, which may include: when the electronic device meets a preset condition, the electronic device determines the aging deviation of the battery. The aging deviation of the battery is used to represent the deviation between the current full charge capacity of the battery and the target full charge capacity. When the aging deviation is greater than a preset aging deviation threshold, the electronic device determines a second step value. The second step value is half of the first step value. Thereafter, the electronic device may gradually adjust the current battery parameters to the target battery aging parameters based on the current battery parameters of the battery, the target battery aging parameters, and the second step value.
[0216] Exemplarily, the electronic device gradually adjusts the current battery parameters to the target battery aging parameters according to the current battery parameters of the battery, the target battery aging parameters and the second step value, and can determine the intermediate target battery aging parameters for the electronic device according to the current battery parameters and the second step value. Afterwards, the electronic device can control the battery charging process of the preset number of charging times corresponding to the second step value according to the intermediate target battery aging parameters. The specific value of the preset number of charging times corresponding to the second step value can be determined according to actual conditions, and the preset number of charging times corresponding to the second step value is not limited in the embodiment of the present application. For example, the preset number of charging times corresponding to the second step value can be 10 times. In other words, the preset number of charging times corresponding to the second step value can be the same as the preset number of charging times corresponding to the first step value.
[0217] Afterwards, the electronic device can determine a new intermediate target battery aging parameter according to the intermediate target battery aging parameter and the second step value. Afterwards, the electronic device can control the battery charging process of the preset number of charging times corresponding to the second step value according to the intermediate target battery aging parameter. Afterwards, the electronic device can loop the above process until the current battery parameter is gradually adjusted to the target battery aging parameter.
[0218] In some examples, the preset conditions may include that the number of charging times corresponding to the first step value reaches a preset number of charging times, and the electronic device is restarted or the electronic device is in a charging state.
[0219] In some examples, the electronic device determines the aging deviation of the battery, which may include: the electronic device determines the current full charge capacity of the battery and the full charge capacity corresponding to each charging process in the preset charging times. Afterwards, the electronic device may determine the average full charge capacity corresponding to the preset charging times based on the full charge capacity corresponding to each charging process in the preset charging times. Afterwards, the electronic device may determine the aging deviation of the battery based on the average full charge capacity corresponding to the preset charging times, the current full charge capacity of the battery, and the target full charge capacity.
[0220] In some examples, before the electronic device determines the aging deviation of the battery, it may also include: when the electronic device determines that the battery has been short-circuited, the electronic device adjusts the current battery parameters of the battery to target battery aging parameters. Afterwards, the electronic device may control the battery charging process according to the target battery aging parameters. When the electronic device determines that the battery has not been short-circuited, the electronic device may determine the aging deviation of the battery.
[0221] In some examples, the electronic device determines the second step value, which may include: when the electronic device has set a random delay time, and the time between the start time of the random delay time and the current time has reached the random delay time, the electronic device determines the second step value. When the electronic device has set a random delay time, and the time between the start time of the random delay time and the current time has not reached the random delay time, the electronic device controls the battery charging process according to the current battery parameters.
[0222] In some examples, the battery management method may further include: when the electronic device determines that the random delay time has not been set, the electronic device may generate a random delay time. And the electronic device may control the battery charging process according to the current battery parameters. The specific value of the random delay time can be determined according to the actual situation, and the specific value of the random delay time is not limited in the embodiment of the present application.
[0223] In some examples, the target battery aging parameters may also include the switching low-voltage charging voltage corresponding to the battery and the target switching capacity of the battery when switching the low-voltage charging. The above-mentioned electronic device determines the second step value, which may include: the electronic device determines the switching capacity of the battery when the low-voltage charging voltage is switched to charge the battery according to the switching low-voltage charging voltage corresponding to the battery. Afterwards, the electronic device may determine the switching capacity difference based on the switching capacity and the target switching capacity. When the switching capacity difference is greater than the preset capacity difference threshold, the electronic device determines the second step value. The specific value of the preset capacity difference threshold can be determined according to the actual situation, and the specific value of the preset capacity difference threshold is not limited in the embodiment of the present application.
[0224] In some examples, the above-mentioned battery management method may also include: when the switching capacity difference is less than or equal to a preset capacity difference threshold, the electronic device gradually adjusts the current battery parameters to the target battery aging parameters based on the current battery parameters of the battery, the target battery aging parameters and the first step value.
[0225] In the solution of the present application, after determining the target battery aging parameters corresponding to the current battery usage cycle, the electronic device does not directly adjust the current battery parameters of the battery to the target battery aging parameters, but gradually adjusts the current battery parameters to the target battery aging parameters according to the first step value. This can avoid the inconsistency between the preset battery aging parameters and the actual aging of the battery of the user's electronic device, resulting in inaccurate control of the battery of the electronic device through the preset battery aging parameters, thereby extending the battery life and reducing the risk of short circuit internal combustion of the battery.
[0226] And when the aging deviation of the battery of the electronic device is too large, it can be determined that the preset target battery aging parameters are inconsistent with the actual aging of the battery. The electronic device can reduce the step value, and thus gradually adjust the battery parameters to the preset battery aging parameters according to the reduced step value, thereby further avoiding the electronic device from inaccurately controlling the battery of the electronic device through the preset battery aging parameters, which can extend the battery life and reduce the risk of short circuit and internal combustion of the battery.
[0227] Corresponding to the method in the above-mentioned embodiment, the embodiment of the present application further provides a battery management device. The battery management device can be applied to an electronic device to implement the method in the above-mentioned embodiment. The functions of the battery management device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
[0228] For example, Figure 8 A schematic diagram of the structure of a battery management device 800 is shown. Figure 8 As shown, the battery management device 800 may include: a determination module 801, an adjustment module 802, etc.
[0229] The determination module 801 may be used to determine the current usage cycle of the battery.
[0230] The determination module 801 may also be used to determine a target battery aging parameter corresponding to the current usage cycle according to the current usage cycle and a plurality of preset battery aging parameters.
[0231] The adjustment module 802 may be used to gradually adjust the current battery parameter to the target battery aging parameter according to the current battery parameter of the battery, the target battery aging parameter and the first incremental value.
[0232] It should be understood that the division of units or modules (hereinafter referred to as units) in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or physically separated. And the units in the device can all be implemented in the form of software calling through processing elements; or all in the form of hardware; or some units can be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware.
[0233] For example, each unit can be a separately established processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in a memory in the form of a program, and called and executed by a certain processing element of the device. In addition, all or part of these units can be integrated together, or they can be implemented independently. The processing element described here can also be called a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or in the form of software called by a processing element.
[0234] In one example, the unit in the above apparatus may be one or more integrated circuits configured to implement the above method, such as one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.
[0235] For another example, when the units in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a CPU or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system on a chip SOC.
[0236] In one implementation, the units of the above apparatus implementing the corresponding steps in the above method can be implemented in the form of a processing element scheduling program. For example, the apparatus may include a processing element and a storage element, and the processing element calls the program stored in the storage element to execute the method described in the above method embodiment. The storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.
[0237] In another implementation, the program for executing the above method may be in a storage element on a different chip from the processing element, i.e., an off-chip storage element. In this case, the processing element calls or displays the program on the on-chip storage element from the off-chip storage element to call and execute the method described in the above method embodiment.
[0238] For example, an embodiment of the present application may also provide a device, such as an electronic device, which may include a processor and a memory for storing instructions executable by the processor. When the processor is configured to execute the above instructions, the electronic device implements the battery management method as described in the above embodiments. The memory may be located inside the electronic device or outside the electronic device. And the processor includes one or more.
[0239] In another implementation, the unit of the device implementing each step in the above method may be configured as one or more processing elements, which may be arranged on the corresponding electronic device, and the processing element here may be an integrated circuit, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these integrated circuits. These integrated circuits may be integrated together to form a chip.
[0240] For example, the present application also provides a chip, which can be applied to the above electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuit to implement the method described in the above method embodiment.
[0241] An embodiment of the present application also provides a computer program product, including computer instructions executed by the above-mentioned electronic device.
[0242] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0243] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0244] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0245] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0246] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, such as a program. The software product is stored in a program product, such as a computer-readable storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0247] For example, the embodiment of the present application may also provide a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by an electronic device, the electronic device implements the battery management method as described in the above method embodiment.
[0248] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A battery management method, characterized in that: Applied to an electronic device, the electronic device includes a battery, and the method includes: The electronic device determines the current usage cycle of the battery; the current usage cycle refers to the number of times the battery of the electronic device is currently charged from the beginning to the full charge capacity; The electronic device determines, according to the current usage cycle and a plurality of preset battery aging parameters, a target battery aging parameter corresponding to the current usage cycle; The electronic device gradually adjusts the current battery parameter to the target battery aging parameter according to the current battery parameter of the battery and the first step value; Among them, the target battery aging parameters include the target full charge capacity of the battery, and the electronic device gradually adjusts the current battery parameters to the target battery aging parameters according to the current battery parameters of the battery and the first step value, including: when the electronic device meets the preset conditions, the electronic device determines the aging deviation of the battery; the aging deviation of the battery is used to represent the deviation between the current full charge capacity of the battery and the target full charge capacity; when the aging deviation is greater than the preset aging deviation threshold, the electronic device determines a second step value; the second step value is half of the first step value; the electronic device gradually adds or subtracts the second step value to the current battery parameter according to the current battery parameters of the battery and the second step value, so as to adjust it to the target battery aging parameters.
2. The method according to claim 1, characterized in that The preset condition includes that the number of charging times corresponding to the first step value reaches a preset number of charging times, and the electronic device is restarted or the electronic device is in a charging state.
3. The method according to claim 2, characterized in that The electronic device determines the aging deviation of the battery, including: The electronic device determines the current full charge capacity of the battery and the full charge capacity corresponding to each charging process in the preset number of charging times; The electronic device determines an average full charge capacity corresponding to the preset number of charging times according to the full charge capacity corresponding to each charging process in the preset number of charging times; The electronic device determines the aging deviation of the battery according to the average full charge capacity corresponding to the preset charging times, the current full charge capacity of the battery, and the target full charge capacity; The electronic device determines the aging deviation of the battery according to the average full charge capacity corresponding to the preset charging times, the current full charge capacity of the battery, and the target full charge capacity, including: the electronic device determines the aging deviation of the battery using the following formula; ; Among them, δ represents the aging deviation of the battery, Indicates the average value of the battery full charge capacity corresponding to the preset number of times. Indicates the current fully charged capacity of the battery. Indicates the target full charge capacity, and N indicates the preset number of times.
4. The method according to claim 1, characterized in that: Before the electronic device determines the aging deviation of the battery, the method further includes: When the electronic device determines that the battery has a short circuit, the electronic device adjusts the current battery parameter of the battery to the target battery aging parameter; In the case that the electronic device determines that the battery has not been short-circuited, the electronic device determines an aging deviation of the battery.
5. The method according to claim 1, characterized in that The electronic device determines a second step value, including: In the case where the aging deviation is not greater than a preset threshold, the electronic device has set a random delay time, and the time between the start time of the random delay time and the current time has reached the random delay time, the electronic device determines a second step value; the random delay time is the time from the start of setting the random delay to the start of adjusting the current battery parameters of the battery to the target battery aging parameters; When the aging deviation is not greater than a preset threshold, the electronic device has set a random delay duration, and the duration between the start time of the random delay duration and the current time does not reach the random delay duration, the electronic device controls the charging process of the battery according to the current battery parameters.
6. The method according to claim 5, characterized in that The method further comprises: In the case where the electronic device determines that the random delay time has not been set, the electronic device generates a random delay time, and the electronic device controls the charging process of the battery according to the current battery parameters.
7. The method according to claim 5, characterized in that The target battery aging parameter also includes the switching low-voltage charging voltage corresponding to the battery and the target switching capacity of the battery when switching to low-voltage charging. The electronic device determines the second step value, including: The electronic device determines, according to the switched low-voltage charging voltage corresponding to the battery, a switching capacity of the battery when the battery is charged by switching the low-voltage charging voltage; The electronic device determines a switching capacity difference according to the switching capacity and the target switching capacity; In a case where the switching capacity difference is greater than a preset capacity difference threshold, the electronic device determines a second step value.
8. The method according to claim 7, characterized in that The method further comprises: When the switching capacity difference is less than or equal to the preset capacity difference threshold, the electronic device gradually adjusts the current battery parameter to the target battery aging parameter according to the current battery parameter of the battery and the first step value.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory for storing instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having computer program instructions stored thereon; characterized in that: When the computer program instructions are executed by an electronic device, the electronic device implements the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Charging method, device and equipment and storage medium
CN111384757A
Dynamic adjustments to battery parameters using battery metrics
US11662391B1
Predictive model for estimating battery states
US11691518B2
Battery management system for extending service life of a battery
US20190199107A1
Method and device for carrying out a process for charging an appliance battery
US20230046787A1
