Battery equalization method and device, terminal equipment and storage medium

By obtaining and setting the balance parameters of the standby state in the wake-up state of the terminal device, the battery cell voltage equalization problem is solved in the standby state of the terminal device, the battery pack working condition is optimized, and the battery life and battery life of the terminal device are improved.

CN119231670APending Publication Date: 2024-12-31GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310781528.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

When the terminal equipment is in standby state, it cannot effectively balance the voltage of each battery cell in the non-isotropic battery pack, resulting in a large voltage difference of the battery cell, which may lead to worsening of working conditions, damage to the battery cell and safety hazards, affecting the life of the battery pack.

Method used

When the terminal device is in a wake-up state, obtain the current equalization parameters of the battery pack and set it to the target equalization parameters in the standby state through the equalization management module. After switching to the standby state, equalize according to these parameters to ensure that the equalization parameters are accurate and appropriate. The operating conditions of the battery pack can avoid low hardware balance efficiency and safety hazards.

Benefits of technology

By continuously obtaining and updating the balance parameters, the working conditions of the battery pack are optimized, the accuracy of the matching balance parameters of the battery pack is improved, and the battery life of the terminal equipment is extended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119231670A_ABST
    Figure CN119231670A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of batteries, and provides a battery equalization method and device, terminal equipment and a storage medium. According to the method, when the terminal device is in the awakening state, the current equalization parameter of the battery pack is obtained, and the current equalization parameter is set as the target equalization parameter when the terminal device is in the standby state through the equalization management module; after the terminal equipment is switched from the awakening state to the standby state, balancing the battery pack according to the target balancing parameter; compared with voltage balancing through hardware in the standby state, the method has the advantages that the current balancing parameter is continuously acquired in the awakening state and set as the target balancing parameter, so that the target balancing parameter can be accurately adapted to the working condition of the battery pack when the terminal equipment enters the standby state, the working condition of the battery pack is continuously and effectively optimized in the standby state, and the service life of the battery pack is prolonged. Potential safety hazards are prevented, the accuracy of battery pack matching equalization parameters is improved, the cruising ability of the terminal equipment is improved, and the service life of the battery pack is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of battery technology, and in particular relates to a battery balancing method, device, terminal equipment and storage medium. Background Art

[0002] With the rapid development of electronic technology, terminal devices have become indispensable tools for learning, work and entertainment in life. They are becoming more and more functional and more diversified in design and form. For example, multi-layer motherboard design and multi-screen form enable terminal devices to be equipped with battery packs including multiple cells. The capacity of each cell is determined according to the installation space. It is easy for the capacity of multiple cells to be different. It is necessary to balance the voltage of each cell to improve the working efficiency of the battery pack.

[0003] At present, terminal equipment manufacturers usually use software to actively balance the voltage of each battery cell during the charging and discharging process, or use hardware to passively balance the voltage of each battery cell; when the terminal equipment is in standby mode, the system will be suspended, and the software used to monitor and balance the battery cell voltage will also stop working. Under some special working conditions (such as battery cell overheating, large battery cell power difference, etc.), the battery cell voltage difference will be large, and the voltage cannot be effectively balanced only through hardware, which is likely to cause the working conditions to continue to deteriorate, and there is a risk of damaging the battery cell and breaking down electrical components, affecting the life of the battery pack and posing a safety hazard. Therefore, how to balance the voltage of each battery cell in a non-isocapacitive battery pack when the terminal equipment is in standby mode has become a problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, embodiments of the present application provide a battery balancing method, apparatus, terminal device, and storage medium to solve the problem that the voltages of various cells in a non-isotropic battery pack cannot be effectively balanced when the existing terminal device is in a standby state.

[0005] A first aspect of an embodiment of the present application provides a battery balancing method, which is applied to a terminal device, wherein the terminal device includes a battery pack, and the method includes:

[0006] When the terminal device is in the awake state, obtaining the current balancing parameter of the battery pack, and setting the current balancing parameter as the target balancing parameter of the terminal device in the standby state through the balancing management module;

[0007] After the terminal device switches from the awake state to the standby state, balancing the battery pack according to the target balancing parameter;

[0008] Among them, when the terminal device is in the awake state, the balancing management module is controlled to be in the working state to configure the balancing parameters according to the voltage difference between any two battery cells in the battery pack; when the terminal device is in the standby state, the balancing management module is controlled to stop working; the balancing parameters include the balancing mode and the balancing current.

[0009] A first aspect of an embodiment of the present application provides a battery balancing method, which obtains current balancing parameters of a battery pack when a terminal device is in an awake state, and sets the current balancing parameters as target balancing parameters when the terminal device is in a standby state through a balancing management module; after the terminal device switches from the awake state to the standby state, the battery pack is balanced according to the target balancing parameters; compared to voltage balancing by hardware in the standby state, by continuously obtaining the current balancing parameters in the awake state and setting them as target balancing parameters, the target balancing parameters can be accurately adapted to the working conditions of the battery pack when the terminal device enters the standby state, thereby continuously and effectively optimizing the working conditions of the battery pack in the standby state, avoiding hardware balancing with fixed parameters and low balancing efficiency from deteriorating the working conditions of the battery pack in the standby state, and improving the accuracy of matching the balancing parameters of the battery pack while preventing safety hazards, thereby improving the battery life of the terminal device and the life of the battery pack.

[0010] A second aspect of an embodiment of the present application provides a battery balancing device, including:

[0011] A configuration module, used to obtain the current balancing parameters of the battery pack when the terminal device is in the awake state, and set the current balancing parameters as the target balancing parameters of the terminal device in the standby state through the balancing management module;

[0012] A balancing module, configured to balance the battery pack according to the target balancing parameter after the terminal device switches from the awake state to the standby state;

[0013] Among them, when the terminal device is in the awake state, the balancing management module is controlled to be in the working state to configure the balancing parameters according to the voltage difference between any two battery cells in the battery pack; when the terminal device is in the standby state, the balancing management module is controlled to stop working; the balancing parameters include the balancing mode and the balancing current.

[0014] A third aspect of an embodiment of the present application provides a terminal device, including a battery pack, a memory, a processor, and a computer program stored in the memory and executable on the processor;

[0015] The processor is connected to the memory and the battery pack respectively;

[0016] When the processor executes the computer program, the steps of the battery balancing method provided in the first aspect of the embodiment of the present application are implemented.

[0017] A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the battery balancing method provided in the first aspect of the embodiments of the present application are implemented.

[0018] It can be understood that the beneficial effects of the second to fourth 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

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

[0020] Figure 1 This is a schematic diagram of the first structure of a terminal device provided in an embodiment of the present application;

[0021] Figure 2 This is a schematic diagram of the architecture of an operating system running on a terminal device provided in an embodiment of the present application;

[0022] Figure 3 This is a schematic diagram of a first flow chart of a battery balancing method provided in an embodiment of the present application;

[0023] Figure 4 This is a second flow chart of the battery balancing method provided in the embodiment of the present application;

[0024] Figure 5 This is a third flow chart of the battery balancing method provided in the embodiment of the present application;

[0025] Figure 6 This is a schematic diagram of the first structure of a battery balancing device provided in an embodiment of the present application;

[0026] Figure 7 This is a second structural diagram of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0028] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0029] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0030] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0031] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0032] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0033] In applications, terminal equipment manufacturers usually use software to actively balance the voltage of each battery cell during the charging and discharging process, or use hardware to passively balance the voltage of each battery cell; when the terminal equipment is in standby mode, the system will be suspended, and the software used to monitor and balance the battery cell voltage will also stop working. Under some special working conditions (such as battery cell overheating, large battery cell power difference, etc.), the battery cell voltage difference will be large, and the voltage cannot be effectively balanced only through hardware, which can easily lead to continuous deterioration of the working conditions, and there is a risk of damaging the battery cell and breaking down the electrical components, affecting the life of the battery pack and posing a safety hazard. Therefore, how to balance the voltage of each battery cell in a non-isocapacitive battery pack when the terminal equipment is in standby mode has become a problem that needs to be solved urgently.

[0034] In response to the above technical problems, an embodiment of the present application provides a battery balancing method, which obtains the current balancing parameters of the battery pack when the terminal device is in an awake state, and sets the current balancing parameters as the target balancing parameters when the terminal device is in a standby state through a balancing management module; after the terminal device switches from the awake state to the standby state, the battery pack is balanced according to the target balancing parameters; compared with voltage balancing through hardware in the standby state, by continuously obtaining the current balancing parameters in the awake state and setting them as the target balancing parameters, the target balancing parameters can be accurately adapted to the working conditions of the battery pack when the terminal device enters the standby state, thereby continuously and effectively optimizing the working conditions of the battery pack in the standby state, avoiding hardware balancing with fixed parameters and low balancing efficiency from deteriorating the working conditions of the battery pack in the standby state, and improving the accuracy of matching the balancing parameters of the battery pack while preventing safety hazards, thereby improving the battery life of the terminal device and the life of the battery pack.

[0035] The battery balancing method provided in the embodiment of the present application can be applied to terminal devices. The terminal device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device, and the battery pack of the terminal device may include at least two cells connected in parallel or in series, wherein the capacities of any two cells may be different.

[0036] Figure 1The schematic diagram of the structure of the terminal device 1 is shown as an example. The terminal device 1 includes a processor 10, a memory 20, an audio module 30, a camera module 40, a sensor module 50, an input module 60, a display module 70, a wireless communication module 80, and a power module 90. The audio module 30 may include a speaker 31 and a microphone 32, the camera module 40 may include a short-focus camera 41, a long-focus camera 42, and a flash 43, the sensor module 50 may include an infrared sensor 51, an acceleration sensor 52, a position sensor 53, a fingerprint sensor 54, and an iris sensor 55, the input module 60 may include a touch panel 61 and an external input unit 62, and the wireless communication module 80 may include wireless communication units such as Bluetooth, optical wireless communication (Optical Wireless), mobile communication (Mobile Communications), wireless local area network (Wireless Local Area Network, WLAN), near field communication (Near Field Communication, NFC) and ZigBee protocol (ZigBee).

[0037] In applications, the processor 10 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0038] In application, the memory 20 may be an internal storage unit of the terminal device in some embodiments, such as a hard disk or memory of the terminal device. The memory 20 may also be an external storage device of the terminal device in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory 20 may also include both an internal storage unit of the terminal device and an external storage device. The memory 20 is used to store computer programs 21 such as an operating system, an application program, and a boot loader (BootLoader). The memory 20 may also be used to temporarily store data that has been output or is to be output.

[0039] In application, the display module 70 can be a flat screen, a curved screen or a flexible screen, specifically a folding screen. The folding screen may include at least one flexible screen, or the folding screen may include at least one flexible screen and at least one flat screen or curved screen. The embodiment of the present application does not impose any restrictions on the specific type of the display module 70.

[0040] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 1. In other embodiments of the present application, the terminal device 1 may include more or fewer components than those illustrated, or may combine certain components, or different components, such as a graphics processor, etc. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0041] like Figure 2 As shown, the architecture diagram of the operating system running on the terminal device 1 provided in the embodiment of the present application, the layered architecture can divide the operating system into multiple layers, and the layers communicate with each other through software interfaces. In some embodiments, the operating system can be divided from top to bottom into an application layer 100, a framework layer 200, a system runtime layer 300, a hardware abstraction layer 400, and a Linux kernel layer 500.

[0042] It should be noted that the type of the operating system may be an Android system, an operating system customized based on the Android system, or other different types of operating systems. The embodiments of the present application do not impose any limitation on the specific type of the operating system.

[0043] In the application, the five layers of the operating system are introduced as follows:

[0044] The application layer 100 may include built-in applications 120 built into the system and upper layer applications 110 provided by third-party application providers. The application programs of the application layer 100 may interact directly with users to implement different functions provided by the application programs. For example, the application layer 100 may specifically include built-in applications such as email, phone, calendar, camera, contacts, and Bluetooth, and upper layer applications such as map positioning, food delivery, and video playback.

[0045] The framework layer (Application Framwork) 200 may include an application programming interface (API) and a programming framework. The application programming interface may be used to provide an interface for operating system developers to develop applications, and may also be used to call corresponding basic services for applications in the application layer when implementing different functions. For example, the framework layer may include different types of application programming interfaces such as window managers, content providers, phone managers, positioning managers, and view systems.

[0046] The window manager is used to manage window programs. Specifically, it can be used to obtain the window size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0047] Content providers are used to store and retrieve data and make the data accessible to applications. The data may include videos, images, audio, call logs, contacts, browsing history, and bookmarks.

[0048] The phone manager is used to provide communication functions of the terminal device 1, such as management of call status, including answering and hanging up calls, etc.;

[0049] The positioning manager is used to obtain the location information of the terminal device 1, which may include different types of location information such as satellite location information (obtained through the global positioning system), network location information (obtained through a network positioning service), and fused location information (obtained through a fused positioning service);

[0050] The view system is used to provide visual controls, such as controls for displaying text and controls for displaying pictures, and is also used to build applications for displaying the application layer 100. The view system can run multiple visual controls at the same time, so that the terminal device can display multiple views at the same time, for example, a view that displays text and a view that displays pictures at the same time.

[0051] The system runtime layer (Native) 300 may include a C / C++ library 310 and an Android runtime library 320, wherein the C / C++ library 310 may include a drawing function library, a font engine, a rendering engine, a multimedia library, and a database engine, etc. The drawing function library may be OpenGL For Embedded Systems 3D (a 3D open graphics library running on embedded systems); the font engine is used to provide different fonts, and may be FreeType (a portable font engine); the rendering engine is used to render two-dimensional graphics or three-dimensional graphics, and may be Skia Graphics Library (an engine for rendering two-dimensional graphics); the multimedia library (Media Framework) is used to support the playback, recording, and playback of audio and video in different formats; the database engine is used to provide storage functions for different types of databases, so that different types of data can be stored in different types of databases according to actual needs, or different types of data can be stored in a unified database.

[0052] The Android runtime 320 may include core libraries (Core Libraries) and an Android runtime environment (Android Runtime, ART), wherein after the Android 5.0 system, the Dalvik virtual machine is replaced by ART. The core library provides most of the functions of the Java language core library, so that developers can use the Java language to write Android applications. Compared with the Java Virtual Machine (Java Virtual Machine, JVM), the Dalvik virtual machine is specially customized for mobile devices, allowing multiple virtual machine instances to run simultaneously in limited memory, and each Dalvik application is executed as an independent Linux process. Independent processes can prevent all programs from being closed when the virtual machine crashes. The mechanism of ART, which replaces the Dalvik virtual machine, is different from Dalvik. Under Dalvik, every time an application runs, the bytecode needs to be converted into machine code by a just-in-time compiler, which slows down the running efficiency of the application. In the ART environment, when the application is installed for the first time, the bytecode will be pre-compiled into machine code, making it a truly local application.

[0053] The Hardware Abstraction Layer (HAL) 400 is an interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware. In order to protect the intellectual property rights of hardware manufacturers, it hides the hardware interface details of a specific platform, thereby providing a virtual hardware platform for the operating system, making it hardware-independent and portable on multiple platforms. From the perspective of software and hardware testing, the testing of software and hardware can be completed based on the hardware abstraction layer, so that the testing of software and hardware can be carried out in parallel.

[0054] The Linux kernel layer 500 can be used to provide system services of the operating system, including security services, memory management, process management, network protocol stack, driver model and other services of the operating system.

[0055] Understandably, Figure 2 The architecture diagram of an operating system is only shown by way of example. The operating system architecture can also be four-layer or six-layer, wherein the architecture of a four-layer operating system may include: an application layer, a framework layer, a system runtime layer and a Linux kernel layer; the architecture of a six-layer operating system may include: an application layer, a framework layer, a system runtime layer, a hardware abstraction layer, a Linux kernel layer and a hardware device layer. The embodiment of the method of the present application does not impose any limitation on the number of architecture layers and the specific architecture of the operating system.

[0056] like Figure 3 As shown, the battery balancing method provided in the embodiment of the present application is applied to a terminal device, and includes the following steps S301 and S302:

[0057] Step S301: when the terminal device is in the awake state, obtain the current balancing parameters of the battery pack, and set the current balancing parameters as the target balancing parameters when the terminal device is in the standby state through the balancing management module.

[0058] When the terminal device is in the awake state, the balancing management module is controlled to be in the working state to configure the balancing parameters according to the voltage difference between any two cells in the battery pack; the balancing parameters include the balancing mode and the balancing current.

[0059] In the application, the working state of the terminal device may include the awake state and the standby state, wherein the awake state may specifically include the normal charging state, the fast charging state and the discharging state. The standby state indicates that the system of the terminal device is suspended and the terminal device does not perform any activities. In the standby state, all services except keeping the terminal device in the standby state may be suspended, including the balancing parameter configuration service provided by the balancing management module, until the terminal device exits the standby state.

[0060] In the application, in the awake state, the balancing management module will continue to work to configure the current balancing parameters in real time according to the operating conditions of the battery pack, and after each configuration of the current balancing parameters, the current balancing parameters will be updated to the target balancing parameters, so that the target balancing parameters are constantly overwritten to ensure that the current balancing parameters and the target balancing parameters match the current operating conditions of the battery pack.

[0061] In one embodiment, step S301 includes:

[0062] When the terminal device is in the awake state, determining the corresponding current equalization parameter based on the real-time working condition information of the terminal device;

[0063] The real-time operating condition information includes charging and discharging information and the voltage difference between any two cells in the battery pack.

[0064] The following is an explanation of the balancing method:

[0065] In application, the balancing methods of the battery pack may include passive balancing and active balancing. Specifically, passive balancing is to discharge the voltage of the high-voltage battery cell to reduce the voltage value of the high-voltage battery cell, thereby reducing the voltage difference between the high-voltage battery cell and other battery cells; active balancing is to transfer part of the current of the high-voltage battery cell to the low-voltage battery cell, thereby increasing the compensation current for the low-voltage battery cell. When reducing the voltage of the high-voltage battery cell, the voltage of the low-voltage battery cell can be simultaneously increased, thereby reducing the voltage difference between the two battery cells.

[0066] It should be noted that the difference between passive balancing and active balancing is that passive balancing is suitable for when the voltage difference of the battery cells needs to be reduced and the voltage difference is small. The advantage is that the loss during the balancing process is small, and the disadvantage is that the balancing speed is slow. Active balancing is suitable for when the voltage difference needs to be reduced and the pressure difference is large. The advantage is that the balancing speed is fast and balancing of a larger pressure difference can be achieved. The disadvantage is that the loss during the balancing process is large.

[0067] In applications, passive balancing can be achieved through discharge elements in the battery pack, such as resistors or capacitors, etc., and whether to start passive balancing can also be controlled by an electronic switch. The electronic switch can be a triode or a metal-oxide-semiconductor field-effect transistor (MOSFET), etc., specifically a P-type MOS tube. Active balancing can be achieved through a balancing chip in the battery pack. The balancing chip can obtain the voltage of each battery cell, and when the voltage difference between any two batteries is too large, the balancing current is determined according to the voltage difference to perform active current balancing.

[0068] In the application, when the terminal device is in the awake state, the corresponding balancing mode can be determined by the balancing management module according to the real-time working condition information of the terminal device. When the balancing mode is determined to be passive balancing, the passive balancing is performed by controlling the discharge element to be turned on; when the balancing mode is determined to be active balancing, the balancing current is determined by controlling the balancing chip, and active balancing is performed. It should be noted that when the balancing mode is passive balancing, the balancing current can be determined by controlling the number of discharge elements that are turned on, and / or the balancing current can be determined by selecting the impedance of the discharge element (the balancing current under passive balancing is the amount of current reduced by the balanced battery cell).

[0069] In the application, it is assumed that the battery pack includes a first battery cell and a second battery cell. When the terminal device is in the awake state, the corresponding preset balancing parameters can be determined based on the charging and discharging information of the terminal device; on the basis of determining the preset balancing parameters, the preset balancing parameters can be adjusted based on the voltage difference between the first battery cell and the second battery cell to obtain the current balancing parameters, so that the current balancing parameters match the working conditions of the battery pack. Among them, the charging and discharging information is used to reflect the specific charging and discharging state of the terminal device, and there are corresponding preset balancing parameters in each charging and discharging state; the corresponding relationship between the charging and discharging state and the preset balancing parameters, and the method for adjusting the preset balancing parameters by the voltage difference can be set according to actual needs.

[0070] Step S302: after the terminal device switches from the awake state to the standby state, the battery pack is balanced according to the target balancing parameter; wherein, when the terminal device is in the standby state, the balancing management module is controlled to stop working.

[0071] In the application, after the terminal device switches from the awake state to the standby state, it means that the terminal device has entered the standby state, and the terminal device can balance the battery pack according to the target balancing parameters. It should be noted that after entering the standby state, the terminal device can balance the battery pack according to the target balancing parameters in the following way: the terminal device can monitor whether it is about to enter the standby state / whether it has entered the standby state, and when it is determined that it is about to enter the standby state / has entered the standby state, the balancing management module is controlled to set the balancing parameters to the target balancing parameters, and configure the hardware related to the target balancing parameters (such as discharge components, balancing chips, etc.) to maintain the working state in the standby state.

[0072] In application, the prior art usually only supports passive balancing of the voltages of each battery cell through hardware when the terminal device is in standby mode. When the current balancing mode of the battery pack includes active balancing, it means that there is a large voltage difference between any two battery cells in the battery pack. If the active balancing is stopped and the standby mode is entered directly, the voltage difference between any two battery cells of the terminal device in the standby mode will always be too large, and there is a risk of increasing voltage difference. Therefore, when the current balancing mode of the battery pack includes active balancing, the target balancing parameters are set according to the current balancing parameters, and active balancing can continue after entering the standby mode.

[0073] In the application, when the terminal device is in the awake state, the current balancing parameters of the battery pack are obtained, and the current balancing parameters are set as the target balancing parameters when the terminal device is in the standby state through the balancing management module; after the terminal device switches from the awake state to the standby state, the battery pack is balanced according to the target balancing parameters; compared with voltage balancing by hardware in the standby state, by continuously obtaining the current balancing parameters in the awake state and setting them as the target balancing parameters, the target balancing parameters can be accurately adapted to the working conditions of the battery pack when the terminal device enters the standby state, thereby continuously and effectively optimizing the working conditions of the battery pack in the standby state, avoiding hardware balancing with fixed parameters and low balancing efficiency from deteriorating the working conditions of the battery pack in the standby state, and improving the accuracy of matching the balancing parameters of the battery pack while preventing safety hazards, thereby improving the battery life of the terminal device and the life of the battery pack.

[0074] like Figure 4 As shown, in one embodiment, based on Figure 3 The corresponding embodiment includes the following steps S401 to S405:

[0075] Step S401: when the terminal device is in the awake state, obtain the current balancing parameters of the battery pack, and set the current balancing parameters as the target balancing parameters when the terminal device is in the standby state through the balancing management module.

[0076] In the application, the battery balancing method provided in step S401 may refer to the relevant description in the above step S301, which will not be repeated here.

[0077] Step S402: when the terminal device is in the awake state and the current balancing mode of the battery pack is active balancing, determine the target awake time based on the time for the battery pack to complete balancing.

[0078] In the application, when the current balancing mode of the battery pack is active balancing, it means that there is a large voltage difference between any two cells in the battery pack, and active balancing is required. The target wake-up time can be determined by calculating the time it takes for the battery pack to complete balancing. The target wake-up time is used to determine how long the terminal device is in standby mode. It should be noted that when the terminal device is in wake-up mode and the current balancing mode of the battery pack is active balancing, the target wake-up time can be calculated in real time and the old target wake-up time can be continuously overwritten to ensure that after the terminal device switches from wake-up mode to standby mode, the target wake-up time can match the current working condition of the battery pack.

[0079] In one embodiment, step S402 includes:

[0080] When the terminal device is in an awake state and the current balancing mode of the battery pack includes active balancing, determining a first target wake-up time based on the balancing current and the voltage difference between the first battery cell and the second battery cell;

[0081] The first target wake-up time indicates the time when the voltage difference between the first battery cell and the second battery cell reaches a preset voltage difference threshold through active balancing.

[0082] In the application, according to the voltage difference between the first battery cell and the second battery cell (obtained by calculating the absolute value of the voltage difference) and the balancing current, the time required to reduce the voltage difference to a preset voltage difference threshold through active balancing can be estimated. Specifically, the calculation formula for the first target wake-up time can be:

[0083]

[0084] Among them, Time 1 Represents the first target wake-up time, V detal Characterizes the voltage difference between the first cell and the second cell, I iref represents the balancing current, and β represents the relationship coefficient among the wake-up time, voltage difference and balancing current.

[0085] In one embodiment, after step S402, the method further includes:

[0086] A second target wake-up time is determined according to the first target wake-up time and the preset step time; wherein the second target wake-up time is greater than the first target wake-up time.

[0087] In the application, after determining the first target wake-up time, the second target wake-up time can also be determined according to the first target wake-up time and the preset step time. By setting the second target wake-up time, the wake-up action can be performed when the terminal device does not wake up according to the first wake-up time, so as to provide a backup guarantee for the first target wake-up time controlled by the software, so as to avoid the terminal device always being in standby state when the corresponding software is not triggered (specifically, it may be caused by problems such as crash or suspension), causing the battery pack to be over-balanced. Among them, the preset step time can be set according to actual needs, specifically 1 minute, 2 minutes or 3 minutes, etc.; the second wake-up time can be specifically set by the balancing chip to set the timing and establish communication with the processor to perform the wake-up action, thereby ensuring that the terminal device can be woken up through hardware control.

[0088] Step S403: when the terminal device is in the awake state and the current balancing mode of the battery pack is passive balancing, configure the terminal device to remain in the standby state until receiving a wake-up instruction.

[0089] In the application, when the current balancing mode of the battery pack is passive balancing, it means that there is no large voltage difference between any two cells in the current battery pack, and voltage balancing can be effectively achieved only through passive balancing. In this case, the balancing mode of maintaining passive balancing is entered into the standby state. Since the power consumption is usually further reduced after standby, the voltage difference is not easy to increase. The terminal device can maintain the passive balancing mode in the standby state without waking up until a wake-up command is received, so as to save the battery pack power and improve the battery life of the terminal device.

[0090] Step S404: After the terminal device switches from the awake state to the standby state, the battery pack is balanced according to the target balancing parameter.

[0091] In the application, the battery balancing method provided in step S404 may refer to the relevant description in the above step S302, which will not be repeated here.

[0092] Step S405: When the terminal device is in the standby state, the terminal device is controlled to enter the awake state based on the target awake time, or the terminal device is controlled to enter the awake state according to the received awake instruction.

[0093] In the application, when the terminal device is in standby state, if a first target wake-up time or a second target wake-up time is set, the terminal device can be controlled to enter the wake-up state according to the first target wake-up time or the second target wake-up time; the terminal device can also be controlled to enter the wake-up state when a wake-up command sent by the user is received at any time.

[0094] In the application, by setting the target wake-up time, the terminal device can be woken up when the balancing is completed and the current balancing parameters can be reconfigured through the balancing management module, so that the terminal device can be woken up intermittently in the standby state to quantify the battery pack working condition in real time and match the corresponding balancing logic to avoid excessive balancing and cause power loss. While preventing safety hazards, it can improve the accuracy and timeliness of the battery pack matching balancing logic, thereby improving the terminal device endurance and battery life.

[0095] like Figure 5 As shown, in one embodiment, based on Figure 4 The corresponding embodiment includes the following steps S501 to S507:

[0096] Step S501: when the terminal device is in the awake state, obtain the current balancing parameter of the battery pack, and set the current balancing parameter as the target balancing parameter when the terminal device is in the standby state through the balancing management module;

[0097] Step S502: when the terminal device is in the awake state and the current balancing mode of the battery pack is active balancing, determining a target awakening time based on the time it takes for the battery pack to complete balancing;

[0098] Step S503: when the terminal device is in the awake state and the current balancing mode of the battery pack is passive balancing, configure the terminal device to remain in the standby state until receiving a wake-up instruction when it is in the standby state;

[0099] Step S504: after the terminal device switches from the awake state to the standby state, the battery pack is balanced according to the target balancing parameter;

[0100] Step S505: When the terminal device is in the standby state, the terminal device is controlled to enter the awake state based on the target awake time, or the terminal device is controlled to enter the awake state according to the received awake instruction;

[0101] In the application, the battery balancing method provided by step S501 to step S405 can refer to the relevant description in the above step S401 to step S405, which will not be repeated here.

[0102] Step S506: when the terminal device is in a standby state, obtaining a voltage difference between the first battery cell and the second battery cell;

[0103] Step S507: If the voltage difference between the first battery cell and the second battery cell reaches a preset voltage difference threshold, control the terminal device to enter a wake-up state.

[0104] In the application, in addition to setting the first target wake-up time and the second target wake-up time to wake up the terminal device, the terminal device can also obtain the voltage of the first battery cell and the voltage of the second battery cell through the balancing chip after entering the standby state, thereby calculating the absolute value of the difference between the first battery cell and the second battery cell, and obtaining the voltage difference between the first battery cell and the second battery cell; and comparing the above pressure difference with the preset pressure difference threshold. If the above pressure difference reaches (reduced to) the preset pressure difference threshold, it means that the battery pack has completed balancing, and the terminal device can be controlled to enter the wake-up state, thereby returning to step S501 to re-acquire the current balancing parameters of the battery pack.

[0105] In one embodiment, before step S507, the method further includes:

[0106] When the terminal device is in the awake state, the preset voltage difference threshold and the awakening program are input into the balancing chip;

[0107] The balancing chip is used to perform a wake-up action when a preset voltage difference threshold of the voltage difference between the first battery cell and the second battery cell is determined according to the wake-up program.

[0108] In the application, by inputting the preset voltage difference threshold and the wake-up program into the balancing chip when the terminal device is in the wake-up state, the balancing chip can realize offline hardware control and improve the wake-up stability during the standby balancing process.

[0109] It should be noted that when the first target wake-up time, the second target wake-up time and the voltage difference monitoring of the balancing chip are enabled at the same time, the priority of triggering the wake-up is ranked from high to low as follows: voltage difference monitoring of the balancing chip, the first target wake-up time, and the second target wake-up time. In the actual working conditions of the battery pack, there is a situation where the power consumption of the terminal device is large during standby, and the voltage difference cannot always be reduced to the preset voltage difference threshold, resulting in the inability to wake up the terminal device through the voltage difference monitoring of the balancing chip. At this time, it is necessary to wake up through the first wake-up time or the second wake-up time to improve the wake-up stability.

[0110] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0111] like Figure 6 As shown, the embodiment of the present application also provides a battery balancing device for executing the steps in the battery balancing method embodiment applied to the terminal device. The battery balancing device can be a virtual appliance in the terminal device, which is run by the processor of the terminal device, or it can be the terminal device itself.

[0112] like Figure 6As shown, the battery balancing device 6 provided in the embodiment of the present application includes:

[0113] The configuration module 610 is used to obtain the current balancing parameters of the battery pack when the terminal device is in the awake state, and set the current balancing parameters as the target balancing parameters of the terminal device in the standby state through the balancing management module;

[0114] The balancing module 620 is used to balance the battery pack according to the target balancing parameter after the terminal device switches from the awake state to the standby state;

[0115] Among them, when the terminal device is in the awake state, the control equalization management module is in the working state to configure the equalization parameters according to the voltage difference between any two battery cells in the battery pack; when the terminal device is in the standby state, the control equalization management module stops working; the equalization parameters include the equalization mode and the equalization current.

[0116] In one embodiment, the battery balancing device 6 further includes:

[0117] A target wake-up time determination module, used to determine the target wake-up time based on the time it takes for the battery pack to complete balancing when the terminal device is in a wake-up state and the current balancing mode of the battery pack is active balancing;

[0118] A holding module, used for configuring the terminal device to remain in the standby state until receiving a wake-up command when the terminal device is in the awake state and the current balancing mode of the battery pack is passive balancing;

[0119] A wake-up module, used to control the terminal device to enter a wake-up state based on a target wake-up time when the terminal device is in a standby state, or to control the terminal device to enter a wake-up state according to a received wake-up instruction;

[0120] The battery pack includes a first battery cell and a second battery cell. Active balancing is to balance the voltage by migrating current between the first battery cell and the second battery cell. Passive balancing is to balance the voltage by consuming the voltage of the first battery cell or the second battery cell.

[0121] In one embodiment, the battery balancing device 6 further includes:

[0122] A pressure difference acquisition module, used to acquire a pressure difference between the first battery cell and the second battery cell when the terminal device is in a standby state;

[0123] The pressure difference monitoring module is used to control the terminal device to enter a wake-up state if the pressure difference between the first battery cell and the second battery cell reaches a preset pressure difference threshold.

[0124] In one embodiment, the configuration module 610 includes:

[0125] A current equalization parameter acquisition unit, used to determine the corresponding current equalization parameter based on the real-time working condition information of the terminal device when the terminal device is in the awake state;

[0126] The real-time operating condition information includes charging and discharging information and the voltage difference between any two cells in the battery pack.

[0127] In application, each module in the battery balancing device 6 may be a software program module, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.

[0128] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0129] like Figure 7 As shown, a terminal device 1 provided in an embodiment of the present application includes a battery pack 91, a memory 20, a processor 10, and a computer program 21 stored in the memory 20 and executable on the processor 10; the battery pack 91 includes a first battery cell 92 and a second battery cell 93;

[0130] The processor 10 is connected to the memory 20, the first battery cell 92 and the second battery cell 93 respectively;

[0131] When the processor 10 executes the computer program, the steps of the battery balancing method provided in the above embodiment are implemented.

[0132] In application, the battery pack 91 may include at least two battery cells connected in parallel or series, specifically a first battery cell 92 and a second battery cell 93, wherein the capacities of the first battery cell 92 and the second battery cell 93 may be different, for example, the capacity of the first battery cell 92 is 1500mAh, and the capacity of the second battery cell 93 is 2000mAh. The embodiment of the present application does not impose any restrictions on the number of battery cells and the battery capacity included in the battery pack 91.

[0133] It should be noted that the battery pack 91 provided in the embodiment of the present application is a unit in the power module 90, and the battery pack 91 including the first battery cell 92 and the second battery cell 93 is merely exemplary. The first battery cell 92 and the second battery cell 93 can be regarded as the battery cell with the smallest capacity and the battery cell with the largest capacity in the battery pack 91.

[0134] In one embodiment, the battery pack 91 further includes a through shaft.

[0135] In application, the terminal device 1 can be a folding screen mobile phone, the first battery cell 92 and the second battery cell 93 can be installed in the main boards of the two folding screens respectively, and the first battery cell 92 and the second battery cell 93 can be connected through the physical structure of the through-axis. The embodiment of the present application does not impose any restrictions on the specific connection method of the battery pack 91.

[0136] Those skilled in the art 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. The functional modules in the embodiment can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, the specific names of the functional modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the modules in the above-mentioned system can refer to the corresponding process in the above-mentioned battery balancing method embodiment, which will not be repeated here.

[0137] The embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned battery balancing method embodiment can be implemented.

[0138] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device that can carry the computer program code to the camera terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0139] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0140] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0141] In the embodiments provided in the present application, it should be understood that the disclosed terminal device and method can be implemented in other ways. For example, the terminal device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, 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 an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0142] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A battery balancing method, characterized in that: Applied to a terminal device, the terminal device includes a battery pack, and the method includes: When the terminal device is in the awake state, obtaining the current balancing parameter of the battery pack, and setting the current balancing parameter as the target balancing parameter of the terminal device in the standby state through the balancing management module; After the terminal device switches from the awake state to the standby state, balancing the battery pack according to the target balancing parameter; Among them, when the terminal device is in the awake state, the balancing management module is controlled to be in the working state to configure the balancing parameters according to the voltage difference between any two battery cells in the battery pack; when the terminal device is in the standby state, the balancing management module is controlled to stop working; the balancing parameters include the balancing mode and the balancing current.

2. The battery equalization method according to claim 1, characterized in that: The balancing mode includes active balancing and passive balancing, and the method further includes: When the terminal device is in an awake state and the current balancing mode of the battery pack is active balancing, determining a target awakening time based on the time it takes for the battery pack to complete balancing; When the terminal device is in an awake state and the current balancing mode of the battery pack is passive balancing, configuring the terminal device to remain in a standby state until a wake-up instruction is received when the terminal device is in a standby state; When the terminal device is in a standby state, controlling the terminal device to enter a wake-up state based on the target wake-up time, or controlling the terminal device to enter a wake-up state according to a received wake-up instruction; The battery pack includes a first battery cell and a second battery cell, the active balancing is to balance the voltage by migrating current between the first battery cell and the second battery cell; the passive balancing is to balance the voltage by consuming the voltage of the first battery cell or the second battery cell.

3. The battery balancing method according to claim 2, wherein: The balancing current is the current size of the migration when active balancing is performed between the first battery cell and the second battery cell; when the terminal device is in the awake state and the current balancing mode of the battery pack includes active balancing, determining the target wake-up time based on the time when the battery pack completes balancing, includes: When the terminal device is in an awake state and a current balancing mode of the battery pack includes active balancing, determining a first target awakening time based on the balancing current and a voltage difference between the first battery cell and the second battery cell; The first target wake-up time represents the time for the voltage difference between the first battery cell and the second battery cell to reach a preset voltage difference threshold through active balancing.

4. The battery equalization method according to claim 3, wherein: The method further comprises: Determining a second target wake-up time according to the first target wake-up time and the preset step time; The second target wake-up time is greater than the first target wake-up time.

5. The battery equalization method according to claim 1, wherein: The battery pack includes a first battery cell and a second battery cell, and the method further includes: When the terminal device is in a standby state, obtaining a voltage difference between the first battery cell and the second battery cell; If the voltage difference between the first battery cell and the second battery cell reaches a preset voltage difference threshold, the terminal device is controlled to enter a wake-up state.

6. The battery balancing method according to any one of claims 1 to 5, characterized in that: When the terminal device is in the awake state, obtaining the current balancing parameters of the battery pack includes: When the terminal device is in an awake state, determining a corresponding current equalization parameter based on the real-time operating condition information of the terminal device; The real-time operating condition information includes charging and discharging information and a voltage difference between any two cells in the battery pack.

7. The battery balancing method according to any one of claims 6, characterized in that: The battery pack includes a first battery cell and a second battery cell, and when the terminal device is in an awake state, determining the corresponding current balancing parameter based on the real-time working condition information of the terminal device includes: When the terminal device is in an awake state, determining a corresponding preset balancing parameter based on the charge and discharge information of the terminal device; The preset equalization parameter is adjusted based on the voltage difference between the first battery cell and the second battery cell to obtain the current equalization parameter.

8. A battery balancing device, characterized in that: include: A configuration module, used to obtain the current balancing parameters of the battery pack when the terminal device is in the awake state, and set the current balancing parameters as the target balancing parameters of the terminal device in the standby state through the balancing management module; A balancing module, configured to balance the battery pack according to the target balancing parameter after the terminal device switches from the awake state to the standby state; Among them, when the terminal device is in the awake state, the balancing management module is controlled to be in the working state to configure the balancing parameters according to the voltage difference between any two battery cells in the battery pack; when the terminal device is in the standby state, the balancing management module is controlled to stop working; the balancing parameters include the balancing mode and the balancing current.

9. A terminal device, characterized in that: A computer program comprising a battery pack, a memory, a processor, and a computer program stored in the memory and executable on the processor; The processor is connected to the memory and the battery pack respectively; When the processor executes the computer program, the steps of the battery balancing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the battery balancing method according to any one of claims 1 to 7 are implemented.