Battery pack control method and device, electronic equipment and computer program product

By acquiring the battery pack's circuitry and preset data to calculate adjustment coefficients and dynamically adjusting voltage control values, the problem of uneven current in mixed battery usage is solved, thereby improving the safety and efficiency of the battery pack.

CN121689450APending Publication Date: 2026-03-17CHINA TOWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511982191.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-25
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

When batteries are used in combination, the lack of effective communication means leads to uneven current distribution and circulating current, which affects the efficiency and lifespan of the battery pack.

Method used

By acquiring the circuit data and preset battery data of the target battery pack, the target adjustment coefficient is calculated, and the voltage control value is dynamically adjusted to achieve current balance and avoid circulating current.

Benefits of technology

It improves the safety and efficiency of battery pack control, extends battery life, and reduces system maintenance costs and failure risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121689450A_ABST
    Figure CN121689450A_ABST
Patent Text Reader

Abstract

The invention discloses a battery pack control method and device, electronic equipment and a computer program product. The method comprises the steps that a target battery pack is obtained, circuit data of the target battery pack are obtained, and the circuit data comprise the power supply voltage value and the power supply current value of the target battery pack; preset battery data of M batteries in the target battery pack are obtained, a target adjustment coefficient is determined according to the preset battery data of the M batteries, the preset battery data of the M batteries are used for indicating a battery rated voltage value and a battery rated current value of each battery, and M is a positive integer; and calculating a voltage control value according to the circuit data and the target adjustment coefficient, and processing the target battery pack according to the voltage control value. According to the invention, the technical problem that the safety is poor when the battery pack is controlled in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power supply and related technologies, and more specifically, to a control method, device, electronic equipment, and computer program product for a battery pack. Background Technology

[0002] In modern communication infrastructure, smart lithium batteries play a crucial role as energy storage devices, especially in communication base stations. As backup power systems, they can continue operating and maintain the stability of the communication network during power grid outages. However, with the upgrading and maintenance of base station equipment, various scenarios involving the mixed use of batteries have emerged, including parallel connections of smart lithium batteries and traditional lithium batteries, parallel connections of different types of smart lithium batteries, parallel connections of smart lithium batteries and lithium iron phosphate batteries (including batteries used in cascade applications), and parallel connections of smart lithium batteries and lead-acid batteries.

[0003] However, when batteries are used in combination, the lack of effective communication between them makes it impossible to achieve precise current distribution during parallel discharge. In some cases, circulating currents may even form between the batteries. For example, smart lithium batteries are equipped with current converters that can adjust the voltage as needed, enabling flexible charging and discharging. In contrast, conventional lithium iron phosphate batteries, secondary batteries, and lead-acid batteries lack voltage regulation capabilities. Their output voltage depends on the battery's own state and cannot actively adjust to match the voltage of other batteries. This leads to a situation where, when used in parallel, if there is a voltage difference between the battery packs, the battery with the higher voltage will "reverse charge" the battery with the lower voltage, resulting in a circulating current phenomenon.

[0004] When smart lithium batteries come from different manufacturers, their independent control systems and lack of a unified communication protocol prevent them from sharing information and coordinating control during parallel discharge. This leads to uneven distribution of discharge current, where some batteries discharge too quickly while others discharge too slowly or barely at all. This uneven discharge current and circulating current not only reduce the overall efficiency of the battery pack but also negatively impact battery health, accelerating the wear and tear of some batteries and shortening their lifespan. This is especially true under light discharge conditions, where faster-discharging batteries have a higher cycle count, resulting in a significant difference in lifespan compared to slower-discharging batteries. Furthermore, under high-load discharge conditions, faster-discharging batteries experience full-load discharge, placing excessive strain on the battery itself and increasing system maintenance costs and the risk of failure.

[0005] There is currently no effective solution to the technical problem of poor safety when controlling battery packs in related technologies. Summary of the Invention

[0006] The main objective of this application is to provide a battery pack control method, device, electronic device, and computer program product to solve the technical problem of poor safety when controlling battery packs in related technologies.

[0007] To achieve the above objectives, according to one aspect of this application, a method for controlling a battery pack is provided. The method includes: acquiring a target battery pack and acquiring circuit data of the target battery pack, wherein the circuit data includes the power supply voltage value and power supply current value of the target battery pack; acquiring preset battery data for M batteries in the target battery pack; determining a target adjustment coefficient based on the preset battery data of the M batteries, wherein the preset battery data of the M batteries indicates the rated voltage value and rated current value of each battery, and M is a positive integer; calculating a voltage control value based on the circuit data and the target adjustment coefficient; and processing the target battery pack based on the voltage control value.

[0008] Furthermore, determining the target adjustment coefficient based on the preset battery data of M batteries includes: obtaining the application scenario type of the target battery pack; determining a coefficient list based on the application scenario type, wherein the application scenario type refers to the scenario type in which the target battery pack is deployed, and the application scenario type includes at least one of the following: communication type, energy storage type; the coefficient list includes multiple candidate target adjustment coefficients under an application scenario type and the error value corresponding to each candidate target adjustment coefficient; determining the preset error value of the target battery pack based on the M preset battery data, and selecting the target adjustment coefficient from the coefficient list based on the preset error value.

[0009] Further, the voltage control value is calculated based on circuit data and the target adjustment coefficient, and the target battery pack is processed according to the voltage control value, including: obtaining the battery state of the target battery pack and the mains power state, wherein the battery state includes at least one of the following: charging state and discharging state, and the mains power state includes at least one of the following: mains power on state and mains power off state; when the mains power state is mains power on state and the battery state is charging state, the power supply voltage value and the power supply current value are extracted from the circuit data; the product of the power supply current value and the target adjustment coefficient is calculated to obtain the voltage adjustment value, and the difference between the power supply voltage value and the voltage adjustment value is calculated to obtain the voltage control value; the voltage control value is compared with the power supply voltage value, and when the mains power state is mains power off state and the voltage control value is greater than the power supply voltage value, the target battery pack is switched from charging state to discharging state, and the target battery pack is controlled to discharge according to the voltage control value.

[0010] Furthermore, after controlling the target battery pack to discharge according to the voltage control value, the method further includes: acquiring the power supply voltage value during the discharge process of the target battery pack, obtaining an updated power supply voltage value, and acquiring a first preset voltage value; detecting the updated power supply voltage value to obtain a detection result, wherein the detection result is used to indicate the changing trend of the updated power supply voltage value; and when the updated power supply voltage value is greater than the first preset voltage value and the detection result indicates that the updated power supply voltage value is on an upward trend, switching the target battery pack from a discharge state to a charging state.

[0011] Further, the voltage control value is calculated based on circuit data and a target adjustment coefficient, and the target battery pack is processed based on the voltage control value, including: obtaining the battery state of the target battery pack and obtaining a second preset voltage value; extracting the power supply voltage value and power supply current value from the circuit data, wherein the battery state includes at least one of the following: charging state and discharging state; when the battery state is discharging state and the power supply voltage value is less than or equal to the second preset voltage value, calculating the product of the power supply current value and the target adjustment coefficient to obtain a voltage adjustment value; calculating the difference between the power supply voltage value and the voltage adjustment value to obtain a voltage control value; controlling the target battery pack to discharge based on the voltage control value; when the power supply voltage value is greater than the second preset voltage value, obtaining a third preset voltage value; and controlling the target battery pack to discharge based on the third preset voltage value.

[0012] Furthermore, after controlling the target battery pack to discharge based on the voltage control value, the method further includes: acquiring the battery capacity data of the target battery pack, and acquiring the discharge current value and discharge voltage value of the target battery pack during the discharge process; calculating the cumulative discharge data of the target battery pack during the discharge process based on the discharge current value, and calculating the discharge depth data based on the cumulative discharge data and the battery capacity data; determining a preset threshold based on the discharge depth data; controlling the target battery pack to discharge based on a third preset voltage value when the discharge depth data is less than the preset threshold; and adjusting the voltage control value to a fourth preset voltage value when the discharge depth data is greater than or equal to the preset threshold, and controlling the target battery pack to discharge based on the fourth preset voltage value.

[0013] Furthermore, the method also includes: calculating the difference between the power supply voltage value and the voltage control value to obtain the output voltage difference, and performing constant voltage proportional integral calculation on the voltage difference to obtain the duty cycle signal; adjusting the voltage control value based on the duty cycle signal to obtain the adjusted voltage control value, and controlling the target battery pack to perform discharge processing according to the adjusted voltage control value.

[0014] To achieve the above objectives, according to another aspect of this application, a control device for a battery pack is provided. The device includes: a first acquisition unit, configured to acquire a target battery pack and acquire circuit data of the target battery pack, wherein the circuit data includes the power supply voltage value and power supply current value of the target battery pack; a second acquisition unit, configured to acquire preset battery data of M batteries in the target battery pack, and determine a target adjustment coefficient based on the preset battery data of the M batteries, wherein the preset battery data of the M batteries indicates the rated voltage value and rated current value of each battery, and M is a positive integer; and a first calculation unit, configured to calculate a voltage control value based on the circuit data and the target adjustment coefficient, and process the target battery pack based on the voltage control value.

[0015] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is executed, it controls the device where the computer-readable storage medium is located to perform any of the above-described battery pack control methods.

[0016] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory storing an executable program, and the processor for running the program, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement any of the above-described battery pack control methods.

[0017] According to another aspect of the present invention, a computer program product is also provided, the computer program product including a computer program, wherein the computer program, when executed by a processor, implements any of the above-described battery pack control methods.

[0018] In this embodiment, a battery pack control method is adopted. This involves acquiring a target battery pack and its circuit data, including the power supply voltage and current values. Preset battery data for M batteries in the target battery pack is acquired, and a target adjustment coefficient is determined based on this data. The preset battery data for the M batteries indicates the rated voltage and rated current of each battery, where M is a positive integer. A voltage control value is calculated based on the circuit data and the target adjustment coefficient, and the target battery pack is then processed according to this voltage control value. This method solves the technical problem of poor safety when controlling battery packs in related technologies. By determining the target adjustment coefficient based on the preset battery data of the batteries in the target battery pack, calculating the voltage control value based on the circuit data and the target adjustment coefficient, and processing the target battery pack according to the voltage control value, the technical effect of improving the safety of battery pack control is achieved. Attached Figure Description

[0019] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0020] Figure 1 This is a hardware structure block diagram of a computer terminal (or mobile device) used to implement a control method for a battery pack;

[0021] Figure 2 This is a flowchart of a battery pack control method provided according to an embodiment of this application;

[0022] Figure 3 This is a schematic diagram of a processing method for a target battery pack according to an embodiment of this application. Figure 1 ;

[0023] Figure 4 This is a schematic diagram of a processing method for a target battery pack according to an embodiment of this application. Figure 2 ;

[0024] Figure 5 This is a schematic diagram of an optional battery pack control device provided according to an embodiment of this application;

[0025] Figure 6 This is a schematic diagram of a smart lithium battery provided according to an embodiment of this application;

[0026] Figure 7 This is a schematic diagram of a battery management system provided according to an embodiment of this application;

[0027] Figure 8 This is a schematic diagram of a control device for a battery pack according to an embodiment of this application;

[0028] Figure 9 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0031] It should be noted that all information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties. For example, this system has interfaces with relevant users or organizations to provide users with corresponding operation data for them to choose to agree to or refuse automated decision-making results. Before obtaining relevant information, a request for obtaining the information needs to be sent to the aforementioned user or organization through the interface, and the relevant information is obtained after receiving consent from the aforementioned user or organization; if the user chooses to refuse, the expert decision-making process is initiated. Users can view the purpose of data use in real time through authorization decoding and have the right to withdraw authorization or delete data at any time. After the authorization is withdrawn, the system will terminate the relevant data processing within 24 hours.

[0032] It should be noted that the information collected in this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data all comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation access points for users to choose to authorize use or refuse use.

[0033] Example 1

[0034] According to an embodiment of this application, a method embodiment for controlling a battery pack is also provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0035] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1This is a hardware structure block diagram of a computer terminal (or mobile device) used to implement a control method for a battery pack, such as... Figure 1 As shown, computer terminal 10 (or mobile device) may include one or more ( Figure 1 The processor 102 (which may include, but is not limited to, a microprocessor MCU (Microcontroller Unit) or a programmable gate array (FPGA)) is shown as 102a, 102b, ..., 102n. It also includes a memory 104 for storing data and a transmission device 106 for communication functions. In addition, it may include: a display, an input / output interface, a Universal Serial Bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a keyboard, a cursor control device, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0036] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0037] The memory 104 can be used to store software programs and modules for application software, such as the program instructions / data storage device corresponding to the battery pack control method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned battery pack control method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0038] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network interface controller (NIC) and a network interface, which can be connected to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a radio frequency (RF) module, used for wireless communication with the Internet.

[0039] The display can be, for example, a touchscreen liquid crystal display (LCD), which allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0040] Under the aforementioned operating environment, this application provides the following: Figure 2 The control method for the battery pack shown. Figure 2 This is a flowchart of a battery pack control method provided according to an embodiment of this application, such as... Figure 2 As shown, the method includes the following steps:

[0041] Step S201: Obtain the target battery pack and obtain the circuit data of the target battery pack, wherein the circuit data includes the power supply voltage value and the power supply current value of the target battery pack.

[0042] It should be noted that the target battery pack refers to the battery pack that requires charge and discharge management. This can be a single smart lithium battery or a combination of multiple batteries, including parallel combinations of smart lithium batteries, lithium iron phosphate batteries, second-generation batteries, and lead-acid batteries of different brands, models, and ages. Circuit data refers to data directly related to the electrical performance of the target battery pack, mainly including power supply voltage (busbar voltage) and power supply current (busbar current). This includes the voltage values ​​of the parallel busbars of the battery pack and the total current flowing through them. Furthermore, circuit data can be obtained through sensors installed on the battery pack. By detecting the busbar voltage and determining the mains power supply status, the system switches between charging and discharging modes.

[0043] Step S202: Obtain the preset battery data of M batteries in the target battery pack, and determine the target adjustment coefficient based on the preset battery data of M batteries. The preset battery data of M batteries is used to indicate the rated voltage and rated current of each battery, and M is a positive integer.

[0044] It should be noted that, in scenarios involving mixed batteries, the rated voltage values ​​of different batteries differ, which can affect voltage matching and discharge strategies during parallel discharge. Therefore, when the target battery pack includes multiple batteries, it is also possible to obtain the preset battery data of these batteries. That is, to obtain the data that reflects the electrical characteristics of each battery, which is defined in the design or at the factory. This mainly includes the battery rated voltage value and the battery rated current value. The battery rated voltage value represents the design voltage of the battery under normal operating conditions and is a fixed value provided by the manufacturer in the product specifications. The battery rated current value is the maximum stable current that the battery can provide under the rated voltage, which can indicate the battery's power output capability.

[0045] After obtaining the preset battery data, the performance coefficients used to adjust the output characteristics of the battery during operation can be determined based on the data, that is, the target adjustment coefficients are obtained, so that the current distribution of different batteries during the discharge process is more reasonable, the current balance between batteries is achieved, and the uneven current or circulating current phenomenon is avoided. The target adjustment coefficient refers to the drooping current sharing coefficient, which can affect the dynamic relationship between the battery output voltage and output current, thereby controlling the current distribution between batteries.

[0046] Step S203: Calculate the voltage control value based on the circuit data and the target adjustment coefficient, and process the target battery pack according to the voltage control value.

[0047] Specifically, after calculating the target adjustment coefficient, a precise voltage control value can be calculated based on the collected circuit data and the target adjustment coefficient. This adjusts the battery's charging and discharging voltage, achieving balanced current distribution and optimizing the battery pack's operating efficiency. For example, when the target battery pack includes two batteries connected in parallel, the higher voltage output current is larger due to voltage differences, leading to bias current. By linking the output voltage and output current, and based on the power supply voltage value V, the voltage control value V0 = V-1 - K is set. I, where K is the target adjustment coefficient and I is the power supply voltage value in the circuit data, causes the DC / DC converter circuit with a larger output current to lower its output voltage, thereby optimizing the bias current and achieving current equalization. After obtaining the voltage control value, the output of the bidirectional power conversion circuit can be adjusted according to this value to discharge in constant voltage mode, ensuring that the current of all parallel batteries is balanced during the discharge process, avoiding circulating current or uneven current problems caused by voltage differences between batteries.

[0048] The battery pack control method provided in this application embodiment acquires a target battery pack and its circuit data, including the power supply voltage and current values. It then acquires preset battery data for M batteries in the target battery pack, determines a target adjustment coefficient based on this data (where M is a positive integer), and calculates a voltage control value based on the circuit data and the target adjustment coefficient. This method addresses the safety issues inherent in battery pack control in related technologies. By determining the target adjustment coefficient based on the preset battery data of the batteries in the target battery pack, calculating the voltage control value based on the circuit data and the target adjustment coefficient, and then processing the target battery pack based on the voltage control value, the method improves the safety of battery pack control.

[0049] Optionally, in the battery pack control method provided in this application embodiment, determining the target adjustment coefficient based on the preset battery data of M batteries includes: obtaining the application scenario type of the target battery pack; determining a coefficient list based on the application scenario type, wherein the application scenario type refers to the scenario type in which the target battery pack is deployed, and the application scenario type includes at least one of the following: communication type, energy storage type; the coefficient list includes multiple candidate target adjustment coefficients under an application scenario type and the error value corresponding to each candidate target adjustment coefficient; determining the preset error value of the target battery pack based on the M preset battery data, and selecting the target adjustment coefficient from the coefficient list based on the preset error value.

[0050] To further improve the performance and applicability of parallel battery packs, target adjustment coefficients can be determined based on the application scenario type and preset battery data of the target battery pack. This enables more efficient current balancing and battery management. It should be noted that the application scenario type refers to the specific scenario or environment in which the target battery pack is deployed and operated. This determines the operating mode and load characteristics of the battery pack and can include communication type and energy storage type. For example, the communication type refers to the application of the battery pack in scenarios such as communication base stations and data centers. In these scenarios, the battery pack needs fast response, high power output, and stable voltage support. The energy storage type refers to residential, commercial, or industrial-grade energy storage, emphasizing the battery's long lifespan, high efficiency, and safety.

[0051] After determining the application scenario type, a corresponding coefficient list can be retrieved from a pre-set database based on the obtained application scenario type. This coefficient list contains multiple candidate target adjustment coefficients for each application scenario type, along with the corresponding error value for each candidate target adjustment coefficient. The error value refers to the voltage error value of the target battery pack at the time of manufacture. For example, if a battery is designed with a rated voltage of 55V but its rated voltage at the time of manufacture is 54V, the error value is 1V. After collecting the preset battery data, the preset error value of the target battery pack can be calculated. Then, based on the preset error value, the most suitable candidate target adjustment coefficient is selected from the coefficient list as the target adjustment coefficient.

[0052] This embodiment determines the target adjustment coefficient based on the specific application scenario in which the target battery pack is deployed. This lays the data foundation for reducing current deviation and circulating current between batteries, and improving the operating efficiency and lifespan of the battery pack in communication and energy storage scenarios. Specifically, in communication scenarios, the battery pack needs to respond quickly and provide stable high-power output when the mains power is interrupted. The target adjustment coefficient can effectively avoid sudden fluctuations and overloads in the discharge current, making the battery pack highly reliable under light and high-load discharge scenarios. In energy storage scenarios, the target adjustment coefficient helps maintain the current balance of the battery pack during long-term discharge, reducing battery wear and extending the overall lifespan of the battery pack.

[0053] Optionally, in the battery pack control method provided in this application embodiment, calculating the voltage control value based on circuit data and a target adjustment coefficient, and processing the target battery pack according to the voltage control value includes: obtaining the battery state of the target battery pack and obtaining the mains power state, wherein the battery state includes at least one of the following: charging state and discharging state, and the mains power state includes at least one of the following: mains power on state and mains power off state; when the mains power state is mains power on state and the battery state is charging state, extracting the power supply voltage value and power supply current value from the circuit data; calculating the product of the power supply current value and the target adjustment coefficient to obtain the voltage adjustment value, and calculating the difference between the power supply voltage value and the voltage adjustment value to obtain the voltage control value; comparing the voltage control value with the power supply voltage value, and when the mains power state is mains power off state and the voltage control value is greater than the power supply voltage value, switching the target battery pack from charging state to discharging state, and controlling the target battery pack to discharge according to the voltage control value.

[0054] Specifically, in order to manage the charging and discharging behavior of smart lithium batteries under different mains power conditions more precisely, so that the battery can be charged safely and efficiently when the mains power is available, and quickly and smoothly switch to the discharging state when the mains power fails, Figure 3 This is a schematic diagram of a processing method for a target battery pack according to an embodiment of this application. Figure 1 ,like Figure 3 As shown, after acquiring the circuit data of the target battery pack, the battery status and mains power status can be obtained. The battery status can be determined by the charging / discharging flag of the smart lithium battery to indicate whether the battery pack is currently charging or discharging. The mains power status refers to the current power supply status of the grid, which can include whether the mains power is on or off. The detection of the mains power status relies on a grid voltage monitoring circuit. When the detected grid voltage is within the normal range, it is determined that the mains power is on; otherwise, it is determined that the mains power is off.

[0055] When the mains power is available and the target battery pack is charging, the voltage adjustment value is first calculated by multiplying the power supply current value in the circuit data by the target adjustment coefficient. Then, the difference between this voltage adjustment value and the power supply voltage value is calculated to obtain the final voltage control value, which is calculated using the following formula: Voltage control value V0 = V-1 - K I, where K is the target adjustment coefficient and I is the power supply voltage value in the circuit data.

[0056] When a mains power outage is detected, and the voltage control value is greater than the power supply voltage, and this state lasts for less than or equal to 800µs, the smart lithium battery needs to switch from charging to discharging. In this discharging mode, the discharge process of the smart lithium battery can be controlled according to the calculated voltage control value to ensure voltage stability during discharge, avoid possible circulating current between batteries, and achieve current balance.

[0057] This embodiment dynamically adjusts the charging voltage of the smart lithium battery by acquiring the status of the battery pack and mains power in real time and combining it with the target adjustment coefficient. This allows the battery to quickly and smoothly enter the discharge state when the mains power fails, avoiding current imbalance caused by voltage fluctuations and improving the reliability of the backup power supply.

[0058] Optionally, in the battery pack control method provided in this application embodiment, after controlling the target battery pack to discharge according to the voltage control value, the method further includes: obtaining the power supply voltage value during the discharge process of the target battery pack, obtaining an updated power supply voltage value, and obtaining a first preset voltage value; detecting the updated power supply voltage value to obtain a detection result, wherein the detection result is used to indicate the changing trend of the updated power supply voltage value; and when the updated power supply voltage value is greater than the first preset voltage value and the detection result indicates that the updated power supply voltage value is on an upward trend, switching the target battery pack from a discharge state to a charging state.

[0059] Specifically, such as Figure 3 As shown, after controlling the target battery pack to discharge, in order to avoid unnecessary over-discharge of the battery and to achieve continuity and efficiency of power supply, since the power supply voltage value will continuously change during the discharge process of the target battery pack, it is necessary to obtain a new power supply voltage value to obtain an updated power supply voltage value. Simultaneously, a first preset voltage value is obtained based on the characteristics of the battery pack and the application scenario. This preset voltage value is the threshold for determining the transition from a discharge state to a charging state, and can be set to 51V. Then, trend analysis is performed on the updated power supply voltage value. The algorithm determines whether the voltage is in an upward trend. This can be determined by whether the updated power supply voltage value is greater than the sum of the voltage control value and the preset parameter. For example, if the preset parameter is 0.6V, and the updated power supply voltage value > the voltage control value + 0.6V, this indicates that the updated power supply voltage value is in an upward trend.

[0060] When the updated power supply voltage value is detected to be on an upward trend, the updated power supply voltage value is greater than the first preset voltage value, and both of the above conditions are met simultaneously and last for 3 minutes, it is confirmed that the mains power has been restored to a sufficient power supply level. The target battery pack can then be switched from the discharge state to the charging state to avoid the risk of overcharging or failure to charge the battery in time due to voltage instability.

[0061] This embodiment accurately determines the power supply voltage value and its changing trend of the target battery pack at the moment the mains power is restored, and determines whether it should switch from the discharging state to the charging state based on the first preset voltage value. This not only enables the battery pack to be charged in time when the mains power is restored, extending the battery life, but also effectively avoids the problem of current imbalance caused by voltage change, achieving the stability and reliability of the entire battery management in complex application environments.

[0062] Optionally, in the battery pack control method provided in this application embodiment, calculating a voltage control value based on circuit data and a target adjustment coefficient, and processing the target battery pack based on the voltage control value includes: obtaining the battery state of the target battery pack and obtaining a second preset voltage value; extracting a power supply voltage value and a power supply current value from the circuit data, wherein the battery state includes at least one of the following: charging state and discharging state; when the battery state is discharging state and the power supply voltage value is less than or equal to the second preset voltage value, calculating the product of the power supply current value and the target adjustment coefficient to obtain a voltage adjustment value; calculating the difference between the power supply voltage value and the voltage adjustment value to obtain a voltage control value; controlling the target battery pack to perform discharge processing based on the voltage control value; and when the power supply voltage value is greater than the second preset voltage value, obtaining a third preset voltage value and controlling the target battery pack to perform discharge processing based on the third preset voltage value.

[0063] Control of the target battery pack can also be achieved in the following ways. Figure 4 This is a schematic diagram of a processing method for a target battery pack according to an embodiment of this application. Figure 2 ,like Figure 4 As shown, specifically, after acquiring the circuit data of the target battery pack, the battery state and the second preset voltage value of the target battery pack can be obtained, and it can be determined whether the target battery pack is currently in a discharging state. When the target battery pack is in a discharging state and the power supply voltage value is less than or equal to the second preset voltage value, the target battery pack can be controlled to discharge using a voltage control value, where the voltage control value V0 can be calculated using the following formula: V0 = V-1 - K I and K are the target adjustment coefficients, and I is the power supply voltage value in the circuit data.

[0064] Furthermore, when the target battery pack is in a discharging state, if the power supply voltage is greater than the second preset voltage value, a third preset voltage value can be obtained. This voltage value is then used to control the target battery pack to discharge. For example, if the second preset voltage value is 55V and the third preset voltage value is 54V, when the power supply voltage is greater than 55V, discharge is performed using the third preset voltage value, and the voltage linearly decreases to a specific voltage value (e.g., 53.2VK) within three minutes. I)V), where K is the target adjustment coefficient and I is the power supply voltage value in the circuit data. It should be noted that when controlling the target battery pack to discharge, the voltage control value can be fed back to the constant voltage PI control unit, and the output voltage of the bidirectional DC unit (such as the BUCK-BOOST circuit) can be dynamically adjusted to achieve current balance control of the battery during discharge.

[0065] This embodiment achieves balanced current distribution during discharge by using current balancing control based on power supply voltage and preset voltage values. This avoids circulating current between batteries, effectively improving battery life, overall stability and safety, while ensuring continuous power supply to the load.

[0066] Optionally, in the battery pack control method provided in this application embodiment, after controlling the target battery pack to discharge based on the voltage control value, the method further includes: acquiring battery capacity data of the target battery pack, and acquiring discharge current value and discharge voltage value during the discharge process of the target battery pack; calculating cumulative discharge data during the discharge process of the target battery pack based on the discharge current value, and calculating discharge depth data based on the cumulative discharge data and battery capacity data; determining a preset threshold based on the discharge depth data; controlling the target battery pack to discharge based on a third preset voltage value when the discharge depth data is less than the preset threshold; and adjusting the voltage control value to a fourth preset voltage value when the discharge depth data is greater than or equal to the preset threshold, and controlling the target battery pack to discharge based on the fourth preset voltage value.

[0067] Specifically, such as Figure 4 As shown, after controlling the target battery pack to discharge, in order to ensure the safety and efficiency of the battery during the discharge process and avoid performance degradation due to over-discharge, it is necessary to obtain the battery capacity data and the discharge current value during the discharge process. The battery capacity data reflects the energy storage capacity of the target battery pack, and the discharge current value reflects the load state of the target battery pack. Then, based on the discharge current value, the cumulative discharge data of the target battery pack during the discharge process is calculated, that is, the amount of electricity discharged by the battery within a certain time. Subsequently, combined with the battery capacity data, the depth of discharge (DOD) data is calculated, which indicates the percentage of the target battery pack's current remaining capacity.

[0068] A preset threshold is determined based on the depth of discharge data; for example, the preset threshold could be DOD (Depth of Discharge). 90% when the depth of discharge data is less than a preset threshold, for example, when the depth of discharge data is less than DOD. At 90%, the current discharge strategy can be maintained, i.e., discharge processing is performed according to the third preset voltage value, so that a stable discharge state is maintained while the battery still has sufficient charge. When the depth of discharge data reaches or exceeds a preset threshold, for example, when the depth of discharge data reaches DOD... At 90%, a fourth preset voltage value can be obtained. For example, the fourth preset voltage value is 45.8V. After adjusting the voltage control value to 45.8V, the target battery pack is controlled to discharge based on the fourth preset voltage value.

[0069] It should be noted that after the voltage control value is adjusted to the fourth preset voltage value and the duration reaches 3 minutes, the voltage control value can be further adjusted to 43.8V, and the target battery pack can be controlled to discharge based on this value, thereby slowing down the discharge rate, extending the discharge time, and protecting the battery from over-discharge.

[0070] This embodiment monitors the battery's depth of discharge in real time during the discharge process and dynamically adjusts the discharge strategy based on the relationship between the depth of discharge and a preset threshold. This enables the battery to discharge efficiently under load demand. At the same time, when the depth of discharge approaches the preset threshold, the discharge voltage is reduced in a timely manner to avoid unnecessary over-discharge, extend the battery's lifespan, and help achieve comprehensive management of current balance and battery health status.

[0071] Optionally, in the battery pack control method provided in the embodiments of this application, the method further includes: calculating the difference between the power supply voltage value and the voltage control value to obtain the output voltage difference, and performing constant voltage proportional integral calculation on the voltage difference to obtain the duty cycle signal; adjusting the voltage control value based on the duty cycle signal to obtain the adjusted voltage control value, and controlling the target battery pack to perform discharge processing according to the adjusted voltage control value.

[0072] Processing of the target battery pack can also be achieved based on the duty cycle signal, such as... Figure 4 As shown, specifically, after acquiring the circuit data and voltage control value, the difference between the power supply voltage and the voltage control value can be calculated and used as the input to the constant voltage PI control unit. That is, after obtaining the output voltage difference, a constant voltage proportional-integral algorithm is used to calculate the duty cycle signal. The duty cycle signal determines the output state of the bidirectional power converter, directly affecting the battery's discharge voltage. Then, the voltage control value is adjusted based on the obtained duty cycle signal, and the target battery pack is controlled to discharge according to the adjusted voltage control value. This allows the target battery pack to adjust its discharge voltage according to changes in external conditions during discharge, achieving balanced current distribution and avoiding current imbalance and circulating current caused by voltage inconsistencies, thereby improving the overall charging and discharging efficiency and lifespan of the battery pack.

[0073] This application also provides an optional battery pack control device. Figure 5 This is a schematic diagram of an optional battery pack control device provided according to an embodiment of this application, such as... Figure 5 As shown, the device includes: a power grid, an energy storage unit, a power supply unit, and a load unit (i.e., electrical equipment). The energy storage unit includes smart lithium batteries, conventional lithium batteries (such as cascaded lithium batteries), and lead-acid batteries. The power supply unit includes devices such as rectifiers, which can convert AC power from the power grid into DC power and provide energy to the batteries and load units. When the AC power grid fails, the batteries provide energy to the load units. For example, in the backup power device, the power supply unit is a mains rectifier, the load unit is an electronic load, and the battery pack is a lithium iron phosphate integrated PACK. Figure 6 This is a schematic diagram of a smart lithium battery provided according to an embodiment of this application, such as... Figure 6 As shown, a smart lithium battery can include a battery pack and a battery management system, which enables backup power supply to the battery pack through bidirectional power conversion. A battery pack refers to an integrated PACK formed by connecting battery cells in series, and can have 15, 8, 24, or other numbers of cells; the battery cells include materials such as lithium cobalt oxide, lithium manganese oxide, lithium nickel cobalt manganese oxide, lithium nickel cobalt aluminum oxide, lithium iron phosphate, and lithium titanate.

[0074] Figure 7 This is a schematic diagram of a battery management system provided according to an embodiment of this application, such as... Figure 7 As shown, the battery management system includes a hybrid logic control unit, a bidirectional power conversion unit, and a sampling unit. The bidirectional power conversion unit is controlled by the hybrid logic control unit. The hybrid logic control unit is a minimal control system consisting of a main control chip (such as a DSP or FPGA) and peripheral circuits. It can control the bidirectional power conversion unit and can be used to implement an optional battery pack control method. The sampling unit includes a sampling operational amplifier circuit and its peripheral circuits. It can be composed of a busbar voltage (i.e., power supply voltage value) sampling circuit and a busbar current (i.e., power supply current value) sampling circuit. The DC / DC conversion circuit is a BUCK-BOOST circuit.

[0075] It should be noted that the aforementioned optional battery pack control methods include a hybrid charge-discharge conversion strategy and a self-managed constant-voltage discharge control strategy. The hybrid charge-discharge conversion strategy and the self-managed constant-voltage discharge control strategy refer to strategies that calculate voltage control values ​​based on circuit data and target adjustment coefficients, and then process the target battery pack according to these voltage control values. Specifically, the hybrid charge-discharge conversion strategy can be expressed as follows: After obtaining the battery state and mains power state of the target battery pack, if the mains power state is active and the battery state is charging, calculate the voltage control value. If the mains power state is deactivated and the voltage control value is greater than the power supply voltage value, switch the target battery pack from charging to discharging, and control the target battery pack to discharge according to the voltage control value. Then, obtain the updated power supply voltage value during the discharge process of the target battery pack, and detect the updated power supply voltage value. If the updated power supply voltage value is greater than a first preset voltage value, and the detection result indicates that the updated power supply voltage value is on an upward trend, switch the target battery pack from discharging to charging.

[0076] The self-managed constant voltage discharge control strategy can use a drooping current sharing algorithm to adjust the discharge voltage (i.e., adjust the voltage control value). This can be expressed as follows: When the target battery pack is in a discharge state and the power supply voltage is less than or equal to a second preset voltage value, calculate the voltage control value and control the target battery pack to discharge based on this value. When the power supply voltage is greater than the second preset voltage value, obtain a third preset voltage value and control the target battery pack to discharge based on this value. Further, obtain the battery capacity data of the target battery pack and calculate the depth of discharge data, then determine a preset threshold based on the depth of discharge data. When the depth of discharge data is less than the preset threshold, control the target battery pack to discharge based on the third preset voltage value; when the depth of discharge data is greater than or equal to the preset threshold, adjust the voltage control value to a fourth preset voltage value and control the target battery pack to discharge based on this value.

[0077] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0078] Example 2

[0079] This application also provides a battery pack control device. It should be noted that the battery pack control device of this application can be used to execute the battery pack control method provided in this application. The following describes the battery pack control device provided in this application.

[0080] According to an embodiment of this application, an apparatus for implementing the control method for the battery pack described above is also provided. Figure 8 This is a schematic diagram of the control device for a battery pack according to an embodiment of this application, such as... Figure 8 As shown, the device includes: a first acquisition unit 81, a second acquisition unit 82, and a first calculation unit 83.

[0081] The first acquisition unit 81 is used to acquire the target battery pack and acquire the circuit data of the target battery pack, wherein the circuit data includes the power supply voltage value and the power supply current value of the target battery pack.

[0082] The second acquisition unit 82 is used to acquire the preset battery data of M batteries in the target battery pack, and determine the target adjustment coefficient based on the preset battery data of M batteries. The preset battery data of M batteries is used to indicate the rated voltage value and rated current value of each battery, and M is a positive integer.

[0083] The first calculation unit 83 is used to calculate the voltage control value based on the circuit data and the target adjustment coefficient, and to process the target battery pack based on the voltage control value.

[0084] The battery pack control device provided in this application embodiment acquires a target battery pack and its circuit data through a first acquisition unit 81. The circuit data includes the power supply voltage and power supply current values ​​of the target battery pack. A second acquisition unit 82 acquires preset battery data for M batteries in the target battery pack and determines a target adjustment coefficient based on the preset battery data of the M batteries. The preset battery data of the M batteries indicates the rated voltage and rated current values ​​of each battery, and M is a positive integer. A first calculation unit 83 calculates a voltage control value based on the circuit data and the target adjustment coefficient, and processes the target battery pack based on the voltage control value. This solves the technical problem of poor safety when controlling battery packs in related technologies. By determining the target adjustment coefficient based on the preset battery data of the batteries in the target battery pack, calculating the voltage control value based on the circuit data and the target adjustment coefficient, and processing the target battery pack based on the voltage control value, the technical effect of improving the safety of battery pack control is achieved.

[0085] Optionally, in the control device for the battery pack provided in this application embodiment, the second acquisition unit 82 includes: a first acquisition module, used to acquire the application scenario type of the target battery pack, and determine a coefficient list according to the application scenario type, wherein the application scenario type refers to the scenario type in which the target battery pack is deployed, and the application scenario type includes at least one of the following: communication type, energy storage type, and the coefficient list includes multiple candidate target adjustment coefficients under an application scenario type and the error value corresponding to each candidate target adjustment coefficient; and a determination module, used to determine the preset error value of the target battery pack according to M preset battery data, and to filter the target adjustment coefficient from the coefficient list according to the preset error value.

[0086] Optionally, in the battery pack control device provided in this application embodiment, the first calculation unit 83 includes: a second acquisition module, used to acquire the battery state of the target battery pack and the mains power state, wherein the battery state includes at least one of the following: charging state and discharging state, and the mains power state includes at least one of the following: mains power on state and mains power off state; an extraction module, used to extract the power supply voltage value and the power supply current value from the circuit data when the mains power state is mains power on state and the battery state is charging state; a first calculation module, used to calculate the product of the power supply current value and the target adjustment coefficient to obtain the voltage adjustment value, and calculate the difference between the power supply voltage value and the voltage adjustment value to obtain the voltage control value; and a comparison module, used to compare the voltage control value with the power supply voltage value, and when the mains power state is mains power off state and the voltage control value is greater than the power supply voltage value, to switch the target battery pack from the charging state to the discharging state, and to control the target battery pack to perform discharge processing according to the voltage control value.

[0087] Optionally, in the battery pack control device provided in the embodiments of this application, the device further includes: a third acquisition unit, configured to acquire the power supply voltage value during the discharge process of the target battery pack after controlling the target battery pack to discharge according to the voltage control value, obtain an updated power supply voltage value, and acquire a first preset voltage value; a detection unit, configured to detect the updated power supply voltage value and obtain a detection result, wherein the detection result is used to indicate the changing trend of the updated power supply voltage value; and a conversion unit, configured to convert the target battery pack from a discharge state to a charging state when the updated power supply voltage value is greater than the first preset voltage value and the detection result indicates that the updated power supply voltage value is in an upward trend.

[0088] Optionally, in the battery pack control device provided in this application embodiment, the first calculation unit 83 includes: a third acquisition module, used to acquire the battery state of the target battery pack and acquire a second preset voltage value, extracting a power supply voltage value and a power supply current value from circuit data, wherein the battery state includes at least one of the following: charging state and discharging state; a second calculation module, used to calculate the product of the power supply current value and the target adjustment coefficient to obtain a voltage adjustment value when the battery state is in a discharging state and the power supply voltage value is less than or equal to the second preset voltage value; a third calculation module, used to calculate the difference between the power supply voltage value and the voltage adjustment value to obtain a voltage control value, and control the target battery pack to perform discharge processing based on the voltage control value; and a fourth acquisition module, used to acquire a third preset voltage value when the power supply voltage value is greater than the second preset voltage value, and control the target battery pack to perform discharge processing based on the third preset voltage value.

[0089] Optionally, in the battery pack control device provided in the embodiments of this application, the device further includes: a fourth acquisition unit, configured to acquire battery capacity data of the target battery pack and acquire discharge current and discharge voltage values ​​during the discharge process of the target battery pack after controlling the target battery pack to discharge based on a voltage control value; a second calculation unit, configured to calculate cumulative discharge data during the discharge process of the target battery pack based on the discharge current value, and calculate discharge depth data based on the cumulative discharge data and battery capacity data; a control unit, configured to determine a preset threshold based on the discharge depth data, and control the target battery pack to discharge based on a third preset voltage value when the discharge depth data is less than the preset threshold; and an adjustment unit, configured to adjust the voltage control value to a fourth preset voltage value when the discharge depth data is greater than or equal to the preset threshold, and control the target battery pack to discharge based on the fourth preset voltage value.

[0090] Optionally, in the battery pack control device provided in the embodiments of this application, the device further includes: a fourth calculation module, used to calculate the difference between the power supply voltage value and the voltage control value to obtain the output voltage difference, and to perform constant voltage proportional integral calculation on the voltage difference to obtain the duty cycle signal; and an adjustment module, used to adjust the voltage control value based on the duty cycle signal to obtain the adjusted voltage control value, and to control the target battery pack to perform discharge processing according to the adjusted voltage control value.

[0091] It should be noted that the first acquisition unit 81, the second acquisition unit 82, and the first calculation unit 83 mentioned above correspond to steps S201 to S203 in Embodiment 1. The instances and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1. It should be noted that the above modules or units can be hardware or software components stored in memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above units can also be part of a device and can run in the computer terminal 10 provided in Embodiment 1.

[0092] Example 3

[0093] Embodiments of this application may provide a computer terminal, which may be any computer terminal device in a group of computer terminals. Optionally, in this embodiment, the aforementioned computer terminal may also be replaced with a mobile terminal or an electronic device, etc.

[0094] Optionally, in this embodiment, the computer terminal may be located in at least one of a plurality of network devices in a computer network.

[0095] In this embodiment, the computer terminal described above can execute the program code for the following steps in the battery pack control method: acquiring the target battery pack and acquiring the circuit data of the target battery pack, wherein the circuit data includes the power supply voltage value and power supply current value of the target battery pack; acquiring the preset battery data of M batteries in the target battery pack, determining the target adjustment coefficient based on the preset battery data of the M batteries, wherein the preset battery data of the M batteries is used to indicate the rated voltage value and rated current value of each battery, and M is a positive integer; calculating the voltage control value based on the circuit data and the target adjustment coefficient, and processing the target battery pack based on the voltage control value.

[0096] Optionally, the aforementioned computer terminal may execute the program code for the following steps in the battery pack control method: obtaining the application scenario type of the target battery pack; determining a coefficient list based on the application scenario type, wherein the application scenario type refers to the scenario type in which the target battery pack is deployed, and the application scenario type includes at least one of the following: communication type, energy storage type; the coefficient list includes multiple candidate target adjustment coefficients under an application scenario type and the error value corresponding to each candidate target adjustment coefficient; determining the preset error value of the target battery pack based on M preset battery data, and selecting the target adjustment coefficient from the coefficient list based on the preset error value.

[0097] Optionally, the aforementioned computer terminal can execute program code for the following steps in the battery pack control method: obtaining the battery state of the target battery pack and obtaining the mains power state, wherein the battery state includes at least one of the following: charging state and discharging state, and the mains power state includes at least one of the following: mains power on state and mains power off state; when the mains power state is mains power on state and the battery state is charging state, extracting the power supply voltage value and power supply current value from the circuit data; calculating the product of the power supply current value and the target adjustment coefficient to obtain the voltage adjustment value, and calculating the difference between the power supply voltage value and the voltage adjustment value to obtain the voltage control value; comparing the voltage control value with the power supply voltage value, and when the mains power state is mains power off state and the voltage control value is greater than the power supply voltage value, switching the target battery pack from charging state to discharging state, and controlling the target battery pack to discharge according to the voltage control value.

[0098] Optionally, the aforementioned computer terminal may execute program code for the following steps in the battery pack control method: obtaining the power supply voltage value during the discharge process of the target battery pack, obtaining an updated power supply voltage value, and obtaining a first preset voltage value; detecting the updated power supply voltage value and obtaining a detection result, wherein the detection result is used to indicate the changing trend of the updated power supply voltage value; when the updated power supply voltage value is greater than the first preset voltage value, and the detection result indicates that the updated power supply voltage value is on an upward trend, switching the target battery pack from a discharge state to a charging state.

[0099] Optionally, the aforementioned computer terminal may execute program code for the following steps in the battery pack control method: obtaining the battery state of the target battery pack and obtaining a second preset voltage value; extracting the power supply voltage value and power supply current value from circuit data, wherein the battery state includes at least one of the following: charging state and discharging state; when the battery state is discharging state and the power supply voltage value is less than or equal to the second preset voltage value, calculating the product of the power supply current value and the target adjustment coefficient to obtain a voltage adjustment value; calculating the difference between the power supply voltage value and the voltage adjustment value to obtain a voltage control value; controlling the target battery pack to perform discharge processing based on the voltage control value; when the power supply voltage value is greater than the second preset voltage value, obtaining a third preset voltage value; and controlling the target battery pack to perform discharge processing based on the third preset voltage value.

[0100] Optionally, the aforementioned computer terminal may execute program code for the following steps in the battery pack control method: acquiring battery capacity data of the target battery pack, and acquiring discharge current and discharge voltage values ​​during the discharge process of the target battery pack; calculating cumulative discharge data during the discharge process of the target battery pack based on the discharge current value, and calculating discharge depth data based on the cumulative discharge data and battery capacity data; determining a preset threshold based on the discharge depth data; controlling the target battery pack to discharge based on a third preset voltage value when the discharge depth data is less than the preset threshold; and adjusting the voltage control value to a fourth preset voltage value when the discharge depth data is greater than or equal to the preset threshold, and controlling the target battery pack to discharge based on the fourth preset voltage value.

[0101] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the battery pack control method: calculate the difference between the power supply voltage value and the voltage control value to obtain the output voltage difference, and perform constant voltage proportional integral calculation on the voltage difference to obtain the duty cycle signal; adjust the voltage control value based on the duty cycle signal to obtain the adjusted voltage control value, and control the target battery pack to discharge according to the adjusted voltage control value.

[0102] Optionally, Figure 9 This is a structural block diagram of an electronic device according to an embodiment of this application. Figure 9 As shown, the electronic device may include: one or more ( Figure 9 (Only one is shown) processor 902, memory 904, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0103] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the battery pack control method and device in this embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned battery pack control method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0104] The processor can access the information and application programs stored in the memory via the transmission device to execute the steps described above in the control method for the battery pack.

[0105] Those skilled in the art will understand that Figure 9The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 9 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 9 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 9 The different configurations shown.

[0106] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0107] Example 4

[0108] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the battery pack control method provided in Embodiment 1.

[0109] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0110] Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring a target battery pack and acquiring circuit data of the target battery pack, wherein the circuit data includes the power supply voltage value and power supply current value of the target battery pack; acquiring preset battery data of M batteries in the target battery pack, determining a target adjustment coefficient based on the preset battery data of the M batteries, wherein the preset battery data of the M batteries is used to indicate the rated voltage value and rated current value of each battery, and M is a positive integer; calculating a voltage control value based on the circuit data and the target adjustment coefficient, and processing the target battery pack based on the voltage control value.

[0111] This application also provides a computer program product, which, when executed on a data processing device, is adapted to perform the control method steps of a battery pack.

[0112] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0113] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0114] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of units or modules may be electrical or other forms.

[0115] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0116] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0117] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0118] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A control method of a battery pack, characterized by, The method comprises the following steps: acquiring a target battery pack and acquiring circuit data of the target battery pack, wherein the circuit data comprises a power supply voltage value and a power supply current value of the target battery pack; acquiring preset battery data of M batteries in the target battery pack, and determining a target adjustment coefficient according to the preset battery data of the M batteries, wherein the preset battery data of the M batteries is used to indicate a battery rated voltage value and a battery rated current value of each battery, and M is a positive integer; calculating a voltage control value according to the circuit data and the target adjustment coefficient, and processing the target battery pack according to the voltage control value.

2. The method of claim 1, wherein, The step of determining a target adjustment coefficient according to the preset battery data of the M batteries comprises: acquiring an application scenario type of the target battery pack, and determining a coefficient list according to the application scenario type, wherein the application scenario type refers to a scenario type in which the target battery pack is deployed, the application scenario type comprises at least one of a communication type and an energy storage type, and the coefficient list comprises a plurality of candidate target adjustment coefficients in one application scenario type and an error value corresponding to each candidate target adjustment coefficient; determining a preset error value of the target battery pack according to the M preset battery data, and screening the target adjustment coefficient from the coefficient list according to the preset error value.

3. The method of claim 1, wherein, The step of calculating a voltage control value according to the circuit data and the target adjustment coefficient, and processing the target battery pack according to the voltage control value comprises: acquiring a battery state of the target battery pack and acquiring a power state, wherein the battery state comprises at least one of a charging state and a discharging state, and the power state comprises at least one of a power-on state and a power-off state; extracting the power supply voltage value and the power supply current value from the circuit data in a case where the power state is the power-on state and the battery state is the charging state; calculating a product of the power supply current value and the target adjustment coefficient to obtain a voltage adjustment value, and calculating a difference between the power supply voltage value and the voltage adjustment value to obtain the voltage control value; comparing the voltage control value with the power supply voltage value, and converting the target battery pack from the charging state to the discharging state and discharging the target battery pack according to the voltage control value in a case where the power state is the power-off state and the voltage control value is greater than the power supply voltage value.

4. The method of claim 3, wherein, After discharging the target battery pack according to the voltage control value, the method further comprises: acquiring a power supply voltage value during discharging of the target battery pack to obtain an updated power supply voltage value, and acquiring a first preset voltage value; detecting the updated power supply voltage value to obtain a detection result, wherein the detection result is used to indicate a change trend of the updated power supply voltage value; In a case where the updated power supply voltage value is greater than the first preset voltage value and the detection result indicates that the updated power supply voltage value is in an upward trend, the target battery pack is switched from the discharging state to the charging state.

5. The method of claim 1, wherein, According to the circuit data and the target adjustment coefficient, a voltage control value is calculated, and the target battery pack is processed according to the voltage control value, including: obtaining a battery state of the target battery pack, and obtaining a second preset voltage value, extracting the power supply voltage value and the power supply current value from the circuit data, wherein the battery state at least includes one of the following: a charging state and a discharging state; In a case where the battery state is the discharging state and the power supply voltage value is less than or equal to the second preset voltage value, a product of the power supply current value and the target adjustment coefficient is calculated to obtain a voltage adjustment value; The difference between the power supply voltage value and the voltage adjustment value is calculated to obtain the voltage control value, and the target battery pack is controlled to discharge based on the voltage control value; In a case where the power supply voltage value is greater than the second preset voltage value, a third preset voltage value is obtained, and the target battery pack is controlled to discharge based on the third preset voltage value.

6. The method of claim 5, wherein, After the target battery pack is controlled to discharge based on the voltage control value, the method further includes: obtaining battery capacity data of the target battery pack, and obtaining a discharging current value and a discharging voltage value during the discharging process of the target battery pack; According to the discharging current value, cumulative discharge data during the discharging process of the target battery pack is calculated, and a discharge depth data is calculated according to the cumulative discharge data and the battery capacity data; According to the discharge depth data, a preset threshold is determined, and in a case where the discharge depth data is less than the preset threshold, the target battery pack is controlled to discharge according to the third preset voltage value; In a case where the discharge depth data is greater than or equal to the preset threshold, the voltage control value is adjusted to a fourth preset voltage value, and the target battery pack is controlled to discharge based on the fourth preset voltage value.

7. The method according to any one of claims 2 to 6, characterized in that, The method further includes: The difference between the power supply voltage value and the voltage control value is calculated to obtain an output voltage difference value, and a constant voltage proportional integral calculation is performed on the voltage difference value to obtain a duty cycle signal; The voltage control value is adjusted based on the duty cycle signal to obtain an adjusted voltage control value, and the target battery pack is controlled to discharge according to the adjusted voltage control value.

8. A control device of a battery pack characterized by comprising: including: a first obtaining unit configured to obtain a target battery pack and obtain circuit data of the target battery pack, wherein the circuit data includes a power supply voltage value and a power supply current value of the target battery pack; a second obtaining unit configured to obtain preset battery data of M batteries in the target battery pack, and determine a target adjustment coefficient according to the preset battery data of the M batteries, wherein the preset battery data of the M batteries is used to indicate a battery rated voltage value and a battery rated current value of each battery, and M is a positive integer; A first calculation unit is configured to calculate a voltage control value according to the circuit data and the target adjustment coefficient, and to process the target battery pack according to the voltage control value.

9. An electronic device, comprising: The application further provides a computer readable storage medium storing the computer program. The application further provides a computer readable storage medium storing the computer program. The application further provides a computer readable storage medium storing the computer program.

10. A computer program product comprising computer instructions, characterized in that, The application further provides a computer readable storage medium storing the computer program.