Power supply management method for multiple battery packs, computer equipment and readable storage medium
By acquiring the status parameters of multiple battery packs, calculating the health index, and prioritizing power supply, the problem of uneven battery pack usage was solved, thus improving system reliability and lifespan.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SYL (NINGBO) BATTERY CO LTD
- Filing Date
- 2026-01-09
- Publication Date
- 2026-05-26
AI Technical Summary
In traditional multi-battery pack power management solutions, uneven use of battery packs leads to a decline in system reliability and performance, and there is currently no effective solution.
By acquiring the status parameters of multiple battery packs, calculating the health index and sorting the power supply priorities, detecting power supply switching conditions, and switching the battery pack with the highest power supply priority as the new main battery pack for power supply.
This enables balanced use of multiple battery packs, improving system reliability and lifespan.
Smart Images

Figure CN122092433A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power management technology, and in particular to a power supply management method for a multi-battery pack, a computer device, and a readable storage medium. Background Technology
[0002] In the field of power management technology, the photovoltaic-storage-charging system is a comprehensive energy solution that integrates photovoltaic power generation, energy storage systems, and electric vehicle charging facilities. It aims to achieve efficient utilization of clean energy, reduce electricity costs, improve grid stability, and reduce dependence on traditional fossil fuels. The photovoltaic-storage-charging system consists of multiple battery packs used to provide a stable DC voltage to the system.
[0003] In traditional multi-battery pack power management schemes, when the system is in standby mode, only the first battery pack is typically activated. Because this battery pack is constantly in operation while the others remain idle, there is an imbalance in usage among the battery packs. This imbalance directly affects the overall reliability and performance maintenance capability of the battery system.
[0004] There is currently no effective solution for how to achieve balanced use of battery packs in multiple battery packs to improve system reliability and lifespan. Summary of the Invention
[0005] Therefore, it is necessary to provide a power management method, computer device, and readable storage medium for multiple battery packs that can achieve balanced use of each battery pack in multiple battery packs to improve system reliability and lifespan, in order to address the above-mentioned technical problems.
[0006] In a first aspect, this application provides a power supply management method for multiple battery packs, including:
[0007] Obtain the status parameters of each battery pack in the multi-battery pack;
[0008] Based on the state parameters of each battery pack, calculate the health index of each battery pack, and sort the power supply priority of the battery packs in the multi-battery pack based on the health index.
[0009] Detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions;
[0010] When the main battery pack is detected to meet the power supply switching conditions, the battery pack with the highest power supply priority is switched to the new main battery pack for power supply according to the power supply priority ranking result.
[0011] In one embodiment, the state parameters include health state parameters, state of charge parameters, temperature, and number of cycles;
[0012] The formula for calculating the health index of each battery pack is as follows:
[0013]
[0014] in, This refers to the health index of each battery pack. These are the health status parameters for each battery pack. These are the state-of-charge parameters for each battery pack. For the multi-battery pack average value, This is the normalized value of the number of cycles for each battery pack. This refers to the normalized temperature value of each battery pack. , , and These are the weight parameters.
[0015] In one embodiment, the normalized value of the cycle number of each battery pack is calculated using the following formula:
[0016]
[0017] in, The number of cycles for each battery pack. This is the minimum number of cycles for all battery packs in the multi-battery pack. This is the maximum number of cycles for all battery packs in the multi-battery pack;
[0018] The formula for calculating the normalized temperature of each battery pack is as follows:
[0019]
[0020] in, The temperature of each battery pack, This represents the minimum temperature of all battery packs in the multi-battery pack. This represents the maximum temperature of all battery packs in the multi-battery pack.
[0021] In one embodiment, the status parameters include health status parameters, state of charge parameters, temperature, power supply duration, and alarm flags;
[0022] The step of detecting whether the main battery pack in the multi-battery pack meets the power supply switching conditions includes: detecting whether the main battery pack in the multi-battery pack meets at least one power supply switching condition;
[0023] The power supply switching conditions include: health status parameters are lower than a set threshold; the decrease in state of charge parameters is greater than or equal to a set decrease threshold; the temperature exceeds a set maximum temperature threshold; the power supply duration is greater than or equal to a set duration threshold; and an alarm flag is detected and triggered.
[0024] In one embodiment, the state parameters include power supply duration and cycle count; the method further includes:
[0025] The cumulative statistical values of power supply duration and cycle count for each battery pack are periodically obtained;
[0026] Based on the cumulative statistical values, the statistical dispersion of the multi-battery pack over the power supply duration or number of cycles is determined;
[0027] When the statistical dispersion is higher than a preset threshold, the weighting parameters used to calculate the health index are adjusted.
[0028] In one embodiment, after detecting that the main battery pack meets the power supply switching condition, the method further includes:
[0029] Based on the state parameters, abnormal battery packs are identified from the multiple battery packs and filtered to obtain a set of remaining battery packs;
[0030] Based on the health index, the battery packs in the remaining battery pack set are sorted by power supply priority.
[0031] Based on the power supply priority sorting result, the battery pack with the highest power supply priority in the remaining battery pack set is switched as the new main battery pack for power supply.
[0032] In one embodiment, the status parameters include health status parameters; the abnormal battery pack includes a battery pack in which the decrease in the health status parameters within one cycle is greater than or equal to a set decrease threshold.
[0033] In one embodiment, the power supply management method for the multi-battery pack further includes:
[0034] After the abnormal battery pack is inspected, its health status parameters are recalibrated, and the abnormal battery pack is added back to the remaining battery pack set for re-priority reordering.
[0035] Secondly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0036] Obtain the status parameters of each battery pack in the multi-battery pack;
[0037] Based on the state parameters of each battery pack, calculate the health index of each battery pack, and sort the power supply priority of the battery packs in the multi-battery pack based on the health index.
[0038] Detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions;
[0039] When the main battery pack is detected to meet the power supply switching conditions, the battery pack with the highest power supply priority is switched to the new main battery pack for power supply according to the power supply priority ranking result.
[0040] Thirdly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0041] Obtain the status parameters of each battery pack in the multi-battery pack;
[0042] Based on the state parameters of each battery pack, calculate the health index of each battery pack, and sort the power supply priority of the battery packs in the multi-battery pack based on the health index.
[0043] Detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions;
[0044] When the main battery pack is detected to meet the power supply switching conditions, the battery pack with the highest power supply priority is switched to the new main battery pack for power supply according to the power supply priority ranking result.
[0045] The aforementioned power supply management method, computer device, and readable storage medium for multiple battery packs employ the following steps: acquiring the status parameters of each battery pack in the multiple battery pack; calculating the health index of each battery pack based on the status parameters; prioritizing the power supply of the battery packs based on the health index; detecting whether the main battery pack in the multiple battery pack meets the power supply switching conditions; and when the main battery pack meets the power supply switching conditions, switching the battery pack with the highest power supply priority as the new main battery pack according to the power supply priority ranking. By calculating the health index based on the acquired status parameters of each battery pack in the multiple battery pack and prioritizing the battery packs based on the health index, the current state of each battery pack can be quantitatively evaluated, and the power supply priority ranking of the battery packs can be obtained. By detecting whether the power supply switching conditions are met, it is possible to detect whether the currently responsible main battery pack needs to be replaced. When the currently responsible main battery pack needs to be replaced, the battery pack with the highest power supply priority is selected to take over the power supply task according to the power supply priority ranking, thereby achieving balanced use of the battery packs in the multiple battery packs and improving system reliability and lifespan. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a flowchart illustrating a power supply management method for multiple battery packs in one embodiment;
[0048] Figure 2 This is a flowchart illustrating a power supply management method for multiple battery packs in an example embodiment.
[0049] Figure 3 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0051] In one embodiment, such as Figure 1 As shown, a power management method for multiple battery packs is provided. This embodiment illustrates the method applied to a terminal, but it is understood that the method can also be applied to a server, or to a system including both a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0052] Step 102: Obtain the status parameters of each battery pack in the multi-battery pack.
[0053] Optionally, the status parameters include parameters for health status, charge status, operating environment status, and fault and alarm status. The health status parameters include health status parameters; the charge status parameters include state of charge parameters; the operating environment status parameters include temperature, cycle count, and power supply duration; and the fault and alarm status parameters include alarm flags. Optionally, the temperature is an average temperature, and the power supply duration is a cumulative power supply duration. The health status parameters characterize capacity decay, the state of charge parameters characterize real-time state of charge, the average temperature reflects the pack temperature status, the cycle count is used for long-term statistics, the cumulative power supply duration reflects the current pack operating time, and the alarm flag is triggered when there is a battery pack communication failure and / or the battery pack temperature rise exceeds a preset threshold.
[0054] Optionally, the status parameters may also include other operational statistics parameters, such as minimum cell voltage, maximum cell voltage, etc.
[0055] Optionally, the status parameters of each battery pack in the multi-battery pack can be continuously or periodically acquired.
[0056] Step 104: Calculate the health index of each battery pack based on the state parameters of each battery pack, and sort the power supply priority of the battery packs in the multi-battery pack based on the health index.
[0057] Optionally, the health index can be calculated using a preset health index calculation model. The health index calculation model can be a weighted formula for state parameters. After calculation, the health indices of all battery packs are compared and sorted from highest to lowest. The battery pack with the highest health index represents the best overall state and is given the highest power supply priority, while the one with the lowest health index has the lowest priority. The power supply priority ranking results can be stored for subsequent switching decisions.
[0058] By calculating the health index based on the state parameters of each battery pack in the multi-battery pack, and sorting the power supply priority of the battery packs according to the health index, the current state of each battery pack can be quantitatively evaluated, and the power supply priority of the battery packs can be obtained.
[0059] Step 106: Detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions.
[0060] Optionally, the main battery pack may be continuously or periodically checked to see if it meets the power supply switching conditions.
[0061] By detecting whether the power supply switching conditions are met, it is possible to determine whether the main battery pack currently providing power needs to be replaced.
[0062] Step 108: When it is detected that the main battery pack meets the power supply switching conditions, the battery pack with the highest power supply priority is switched as the new main battery pack to provide power according to the power supply priority sorting result.
[0063] Optionally, after the switchover is complete, the newly connected battery pack is marked as the current master battery pack, and the detection process continues. The statistical information on the cumulative power supply duration and cycle count of each battery pack is updated and recorded in the database. It is understood that the database may also store operation logs and other statistical data to support multi-battery pack power supply management for later analysis.
[0064] Optionally, during the switching process, the contactor of the newly connected battery pack is closed, and after a preset fixed delay, the contactor of the main battery pack is opened to ensure a smooth voltage switching.
[0065] When the main battery pack that is currently providing power needs to be replaced, the battery pack with the highest power supply priority is selected to take over the power supply task based on the power supply priority ranking result, thereby achieving balanced use of each battery pack in the multi-battery pack and improving system reliability and lifespan.
[0066] The aforementioned power supply management method for multiple battery packs involves: acquiring the status parameters of each battery pack within the multiple battery packs; calculating the health index of each battery pack based on its status parameters; prioritizing the power supply of the battery packs based on the health index; detecting whether the main battery pack in the multiple battery pack meets the power supply switching conditions; and, when the main battery pack meets the power supply switching conditions, switching the battery pack with the highest power supply priority as the new main battery pack according to the power supply priority ranking. By calculating the health index based on the acquired status parameters of each battery pack and prioritizing the battery packs based on the health index, the current status of each battery pack can be quantitatively evaluated, and the power supply priority ranking of the battery packs can be obtained. By detecting whether the power supply switching conditions are met, it is possible to detect whether the currently responsible main battery pack needs to be replaced. When the currently responsible main battery pack needs to be replaced, the battery pack with the highest power supply priority is selected to take over the power supply task according to the power supply priority ranking, thereby achieving balanced use of the battery packs in the multiple battery packs and improving system reliability and lifespan.
[0067] In one embodiment, the state parameters include health state parameters, state of charge parameters, temperature, and cycle count; the formula for calculating the health index of each battery pack is:
[0068]
[0069] in, This refers to the health index of each battery pack. These are the health status parameters for each battery pack. These are the state-of-charge parameters for each battery pack. For the multi-battery pack average value, This is the normalized value of the number of cycles for each battery pack. This refers to the normalized temperature value of each battery pack. , , and These are the weight parameters.
[0070] Optionally, the above , , and The values are set to 0.4, 0.3, 0.2, and 0.1 respectively. , , and It can be dynamically adjusted. If more attention is paid to the cycle life of the battery pack, it can be increased appropriately. If more attention is paid to the temperature of the battery pack, the temperature can be increased appropriately. .
[0071] Optionally, the temperature is an average temperature.
[0072] By calculating the health index, the current status of each battery pack can be quantitatively assessed, providing a basis for prioritizing the power supply of subsequent battery packs.
[0073] In one embodiment, the normalized value of the cycle number of each battery pack is calculated using the following formula:
[0074]
[0075] in, The number of cycles for each battery pack. This is the minimum number of cycles for all battery packs in the multi-battery pack. This is the maximum number of cycles for all battery packs in the multi-battery pack;
[0076] The formula for calculating the normalized temperature of each battery pack is as follows:
[0077]
[0078] in, The temperature of each battery pack, This represents the minimum temperature of all battery packs in the multi-battery pack. This represents the maximum temperature of all battery packs in the multi-battery pack.
[0079] By normalizing the number of cycles and the temperature of each battery pack separately, the health index can be calculated on a uniform scale.
[0080] In one embodiment, the status parameters include health status parameters, state of charge parameters, temperature, power supply duration, and alarm flags; detecting whether the main battery pack in the multi-battery pack meets the power supply switching conditions includes: detecting whether the main battery pack in the multi-battery pack meets at least one power supply switching condition; the power supply switching conditions include: the health status parameter is lower than a set threshold; the decrease in the state of charge parameter is greater than or equal to a set decrease threshold; the temperature exceeds a set maximum temperature threshold; the power supply duration is greater than or equal to a set duration threshold; and an alarm flag is detected being triggered.
[0081] Optionally, the threshold values for the health status parameters, the threshold value for the decrease in the state of charge parameters, the threshold value for the power supply duration, and the threshold value for the highest temperature of the current battery pack can be set as needed. The power supply duration can be the continuous power supply duration of the current pack.
[0082] Optionally, the threshold for the health status parameter is set to 85% of the nominal initial capacity of the battery pack, the threshold for the decrease in the state of charge parameter is set to 10% of the typical value, the threshold for the power supply duration is set to the typical value of 60 minutes, and the threshold for the highest temperature of the current battery pack is set to 55°C.
[0083] By setting multiple power supply switching conditions, it is possible to detect whether the main battery pack currently providing power needs to be replaced, thereby achieving balanced use of each battery pack in a multi-pack system.
[0084] In one embodiment, the status parameters include power supply duration and number of cycles; the method further includes: periodically acquiring the cumulative statistical values of each battery pack in terms of power supply duration and number of cycles; determining the statistical dispersion of the multiple battery packs in terms of power supply duration or number of cycles based on the cumulative statistical values; and adjusting the weighting parameters used to calculate the health index when the statistical dispersion is higher than a preset threshold.
[0085] Optionally, periodically obtaining the cumulative statistical values of the power supply duration and number of cycles for each battery pack includes periodically obtaining the power supply duration and number of cycles for each battery pack, and obtaining the cumulative statistical values of the power supply duration and number of cycles for each battery pack based on the power supply duration and number of cycles for each battery pack.
[0086] Optionally, the periodic acquisition of cumulative statistics may include acquiring cumulative statistics monthly, weekly, or daily.
[0087] Optionally, determining the statistical dispersion of the multiple battery packs on the power supply duration or number of cycles based on the cumulative statistical value includes calculating the dispersion of the power supply duration based on the cumulative statistical value of the power supply duration of all battery packs within the cycle, or calculating the dispersion of the number of cycles based on the cumulative statistical value of the number of cycles of all battery packs within the cycle.
[0088] It is understood that, based on the cumulative statistical values, the statistical dispersion of the multi-battery pack in terms of power supply duration and cycle number can be determined.
[0089] Optionally, the degree of dispersion in calculating the power supply duration includes calculating the range, variance, standard deviation, or coefficient of variation of the power supply duration for all battery packs. The degree of dispersion in calculating the number of cycles includes calculating the range, variance, standard deviation, or coefficient of variation of the number of cycles for all battery packs.
[0090] Optionally, the adjustment of the weight parameters used to calculate the health index includes: when the coefficient of variation of the power supply duration of all battery packs is higher than a preset threshold, the weight parameters of the power supply duration in the calculation of the health index are adjusted accordingly; when the coefficient of variation of the number of cycles of all battery packs is higher than a preset threshold, the weight parameters of the number of cycles in the calculation of the health index are adjusted accordingly.
[0091] By determining the statistical dispersion and adjusting the weighting parameters used to calculate the health index when the statistical dispersion exceeds a preset threshold, the balanced use of each battery pack in a multi-battery pack can be promoted to extend the system's lifespan.
[0092] In one example embodiment, the power supply duration and cycle count of each battery pack are obtained daily. Based on the power supply duration and cycle count of each battery pack, a cumulative statistical value of each battery pack in terms of power supply duration and cycle count is obtained. Based on the cumulative statistical value, the dispersion coefficient of the multiple battery packs in terms of power supply duration or cycle count is determined. When the dispersion coefficient is higher than a preset threshold of 10%, the weighting parameter used to calculate the health index is adjusted.
[0093] In one embodiment, after detecting that the main battery pack meets the power supply switching condition, the method further includes: determining abnormal battery packs from the multiple battery packs based on the status parameters and filtering them to obtain a set of remaining battery packs; sorting the battery packs in the set of remaining battery packs by power supply priority based on the health index; and switching the battery pack with the highest power supply priority in the set of remaining battery packs as the new main battery pack for power supply according to the result of the power supply priority sorting.
[0094] Optionally, the abnormal battery pack includes battery packs that are confirmed to be abnormal based on status parameters and battery packs that have failed to switch over multiple times.
[0095] By filtering abnormal battery packs, battery packs with high health indices but abnormalities can be filtered out, ensuring the reliability of the power supply priority ranking results.
[0096] In one embodiment, the status parameters include health status parameters; the abnormal battery pack includes a battery pack in which the decrease in the health status parameters within one cycle is greater than or equal to a set decrease threshold.
[0097] Optionally, a monitoring cycle can be one day, one week, or one month.
[0098] Optionally, the status parameter includes temperature, and the abnormal battery pack also includes battery packs whose temperature is abnormal within a cycle.
[0099] Health status parameters can reflect the degradation performance of the battery pack. If the decrease in health status parameters within a cycle is greater than or equal to the set decrease threshold, it indicates that the battery pack performance is in a deteriorated state. By identifying it as an abnormal battery pack, the system reliability can be improved.
[0100] In one embodiment, the power supply management method for the multiple battery packs further includes: after repairing the abnormal battery pack, recalibrating the health status parameters of the abnormal battery pack, and adding the abnormal battery pack back into the set of remaining battery packs to re-sort the power supply priority.
[0101] By re-adding the repaired faulty battery packs to the remaining battery pack set to re-sort the power supply priorities, the battery packs are prevented from being permanently abandoned due to a single fault, thus improving their utilization rate.
[0102] In one example embodiment, a power management system for multiple battery packs is provided. Figure 2 The flowchart of this method includes the following steps:
[0103] Step 201: Obtain the status parameters of each battery pack in the multi-battery pack.
[0104] Step 202: Calculate the health index of each battery pack based on the state parameters of each battery pack.
[0105] Step 203: Sort the power supply priority of the battery packs in the multi-battery pack based on the health index.
[0106] Step 204: Detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions. If the main battery pack meets the power supply switching conditions, execute step 205 or step 206. If the main battery pack does not meet the power supply switching conditions, re-execute step 201.
[0107] Step 205: Based on the power supply priority ranking result, switch the battery pack with the highest power supply priority as the new main battery pack for power supply.
[0108] Step 206: Based on the state parameters, identify abnormal battery packs from the multiple battery packs and filter them to obtain a set of remaining battery packs.
[0109] Step 207: Based on the health index, sort the battery packs in the remaining battery pack set by power supply priority.
[0110] Step 208: Based on the power supply priority sorting result, switch the battery pack with the highest power supply priority in the remaining battery pack set as the new main battery pack for power supply.
[0111] It is understandable that step 204 can be executed first, followed by steps 202 and 203, that is, to detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions. When the power supply switching conditions are met, steps 202 and 203 are executed. After executing step 203, step 205 or step 206 is executed.
[0112] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0113] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 3 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a multi-battery pack power management method.
[0114] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0115] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: acquiring status parameters of each battery pack in a multi-battery pack; calculating a health index of each battery pack based on the status parameters, and prioritizing the power supply of the battery packs in the multi-battery pack based on the health index; detecting whether the main battery pack in the multi-battery pack meets the power supply switching conditions; and when the main battery pack is detected to meet the power supply switching conditions, switching the battery pack with the highest power supply priority as the new main battery pack for power supply according to the power supply priority ranking result.
[0116] In one embodiment, the status parameters include power supply duration and cycle count. When the processor executes the computer program, it further implements the following steps: periodically acquiring the cumulative statistical values of each battery pack in terms of power supply duration and cycle count; determining the statistical dispersion of the multiple battery packs in terms of power supply duration or cycle count based on the cumulative statistical values; and adjusting the weighting parameters used to calculate the health index when the statistical dispersion is higher than a preset threshold.
[0117] In one embodiment, when the main battery pack is detected to meet the power supply switching conditions, the processor executes the computer program to further implement the following steps: based on the status parameters, determine abnormal battery packs from the multiple battery packs and filter them to obtain a set of remaining battery packs; based on the health index, sort the battery packs in the set of remaining battery packs by power supply priority; and according to the result of the power supply priority sorting, switch the battery pack with the highest power supply priority in the set of remaining battery packs as the new main battery pack for power supply.
[0118] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0119] Obtain the status parameters of each battery pack in the multi-battery pack; calculate the health index of each battery pack based on the status parameters of each battery pack, and sort the power supply priority of the battery packs in the multi-battery pack based on the health index; detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions; when the main battery pack is detected to meet the power supply switching conditions, switch the battery pack with the highest power supply priority as the new main battery pack for power supply according to the power supply priority sorting result.
[0120] In one embodiment, the status parameters include power supply duration and cycle count. When the computer program is executed by the processor, it further implements the following steps: periodically acquiring the cumulative statistical values of each battery pack in terms of power supply duration and cycle count; determining the statistical dispersion of the multiple battery packs in terms of power supply duration or cycle count based on the cumulative statistical values; and adjusting the weighting parameters used to calculate the health index when the statistical dispersion is higher than a preset threshold.
[0121] In one embodiment, when the main battery pack is detected to meet the power supply switching conditions, the computer program, when executed by the processor, further implements the following steps: determining and filtering abnormal battery packs from the multiple battery packs based on the status parameters to obtain a set of remaining battery packs; sorting the battery packs in the set of remaining battery packs by power supply priority based on the health index; and switching the battery pack with the highest power supply priority in the set of remaining battery packs as the new main battery pack for power supply according to the result of the power supply priority sorting.
[0122] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0124] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A power supply management method for multiple battery packs, characterized in that, include: Obtain the status parameters of each battery pack in the multi-battery pack; Based on the state parameters of each battery pack, calculate the health index of each battery pack, and sort the power supply priority of the battery packs in the multi-battery pack based on the health index. Detect whether the main battery pack in the multi-battery pack meets the power supply switching conditions; When the main battery pack is detected to meet the power supply switching conditions, the battery pack with the highest power supply priority is switched to the new main battery pack for power supply according to the power supply priority ranking result.
2. The method according to claim 1, characterized in that, The state parameters include health state parameters, charge state parameters, temperature, and number of cycles; The formula for calculating the health index of each battery pack is as follows: in, This refers to the health index of each battery pack. These are the health status parameters for each battery pack. These are the state-of-charge parameters for each battery pack. For the multi-battery pack average value, This is the normalized value of the number of cycles for each battery pack. This refers to the normalized temperature value of each battery pack. , , and These are the weight parameters.
3. The method according to claim 2, characterized in that, The formula for calculating the normalized value of the cycle number of each battery pack is as follows: ; in, The number of cycles for each battery pack. This is the minimum number of cycles for all battery packs in the multi-battery pack. This is the maximum number of cycles for all battery packs in the multi-battery pack; The formula for calculating the normalized temperature of each battery pack is as follows: ; in, The temperature of each battery pack, This represents the minimum temperature of all battery packs in the multi-battery pack. This represents the maximum temperature of all battery packs in the multi-battery pack.
4. The method according to claim 1, characterized in that, The status parameters include health status parameters, charge status parameters, temperature, power supply duration, and alarm flags. The step of detecting whether the main battery pack in the multi-battery pack meets the power supply switching conditions includes: detecting whether the main battery pack in the multi-battery pack meets at least one power supply switching condition; The power supply switching conditions include: health status parameters are lower than a set threshold; the decrease in state of charge parameters is greater than or equal to a set decrease threshold; the temperature exceeds a set maximum temperature threshold; the power supply duration is greater than or equal to a set duration threshold; and an alarm flag is detected and triggered.
5. The method according to claim 1, characterized in that, The status parameters include power supply duration and number of cycles; the method further includes: The cumulative statistical values of power supply duration and cycle count for each battery pack are periodically obtained; Based on the cumulative statistical values, the statistical dispersion of the multi-battery pack over the power supply duration or number of cycles is determined; When the statistical dispersion is higher than a preset threshold, the weighting parameters used to calculate the health index are adjusted.
6. The method according to claim 1, characterized in that, After detecting that the main battery pack meets the power supply switching conditions, the method further includes: Based on the state parameters, abnormal battery packs are identified from the multiple battery packs and filtered to obtain a set of remaining battery packs; Based on the health index, the battery packs in the remaining battery pack set are sorted by power supply priority. Based on the power supply priority sorting result, the battery pack with the highest power supply priority in the remaining battery pack set is switched as the new main battery pack for power supply.
7. The method according to claim 6, characterized in that, The status parameters include health status parameters; the abnormal battery packs include battery packs whose health status parameters decrease by a amount greater than or equal to a set decrease threshold within one cycle.
8. The method according to claim 7, characterized in that, Also includes: After the abnormal battery pack is inspected, its health status parameters are recalibrated, and the abnormal battery pack is added back to the remaining battery pack set for re-priority reordering.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.