Battery grouping method, computer equipment and storage medium
By using a sliding window grouping algorithm and a four-level progressive grouping mechanism, combined with a dual-voltage intersection matching algorithm, the consistency and lifespan issues in battery grouping are resolved, achieving efficient utilization and performance extension of the battery pack.
Patent Information
- Application Number
- CN202511029305.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-10-31
AI Technical Summary
Existing battery pairing technologies suffer from limitations such as a single pairing strategy, incomplete consideration of voltage data, low pairing algorithm efficiency, lack of fault tolerance mechanisms, and fixed error thresholds, leading to inconsistent battery pack performance and shortened lifespan.
A sliding window grouping algorithm is used to effectively group the batteries, and the termination voltage and open circuit voltage parameters are tested. Through a four-level progressive grouping mechanism and a dual voltage intersection matching algorithm, the electrochemical performance consistency of the battery pack is ensured, and battery resources are maximized.
This achieves efficient battery pack matching, ensures consistent electrochemical performance of the battery packs, and extends the battery pack's lifespan.
Smart Images

Figure CN120879012A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of battery packing technology, and particularly relates to a battery packing method, computer equipment, and storage medium. Background Technology
[0002] With the rapid development of new energy vehicles and energy storage technologies, battery pack matching technology, as a key to improving battery pack performance and extending service life, has problems such as the large limitations of a single matching strategy, the incomplete consideration of voltage data due to matching based on only a single voltage parameter, low efficiency of matching algorithms, lack of fault tolerance mechanism, and fixed error threshold.
[0003] Therefore, how to efficiently group batteries, ensure the consistency of electrochemical performance of grouped batteries, and extend the service life of battery packs has become an urgent problem to be solved. Summary of the Invention
[0004] This application provides a battery grouping method, computer equipment, and storage medium. The method effectively groups batteries according to a sliding window grouping algorithm, tests the termination voltage parameter and open circuit voltage parameter respectively, generates corresponding sets, and performs a four-level progressive grouping mechanism on the batteries within the effective group to ensure maximum utilization of battery resources. Furthermore, the method uses a dual voltage intersection matching algorithm to ensure the consistency of electrochemical performance of the grouped batteries and extend the service life of the battery pack.
[0005] Other objects and advantages of the present invention can be further understood from the technical features disclosed herein.
[0006] To achieve one or more of the above objectives or other objectives, the present invention provides a battery packing method, a computer device, and a storage medium.
[0007] A battery pairing method, comprising:
[0008] The voltage data of the batteries is scanned, and the voltage data is sorted in ascending order according to the sliding window grouping algorithm. The batteries are then effectively grouped by setting left and right pointers.
[0009] Test the termination voltage parameter and open circuit voltage parameter of the batteries in the effective group respectively, and generate the corresponding set;
[0010] A four-level progressive grouping mechanism is implemented for the batteries within the effective group. The battery combination that simultaneously meets the termination voltage error threshold and the open circuit voltage error threshold is selected by the dual voltage intersection matching algorithm. The combination is then performed in sequence as single-path grouping, same-cell grouping, same-layer grouping, and mixed grouping, and the grouping results are output.
[0011] The specific process of effectively grouping the batteries using the sliding window grouping algorithm includes:
[0012] Sort the voltage data in ascending order;
[0013] Set a left boundary pointer and a right boundary pointer, and dynamically expand the group boundary through the right boundary pointer until the voltage difference between the left and right batteries exceeds a preset threshold to form an effective group window;
[0014] If the number of batteries in the window reaches the minimum grouping requirement, then the batteries in the window are classified as valid groups.
[0015] The specific process of effectively grouping the batteries also includes:
[0016] Remove the batteries in the valid group from the candidate list and restart the next round of scanning.
[0017] The termination voltage and open-circuit voltage of the batteries in the effective group are measured sequentially to generate the corresponding termination voltage parameter set and open-circuit voltage parameter set.
[0018] Different error thresholds are set for different grouping stages by configuring the voltage range parameter, and the error thresholds are gradually relaxed as the grouping level increases.
[0019] Different grouping requirements are preset based on the differentiated error thresholds set for different grouping stages.
[0020] The specific process of implementing the four-level progressive grouping mechanism includes:
[0021] The dual-voltage intersection matching algorithm identifies battery combinations that simultaneously meet both the single-path pairing termination voltage error threshold and the single-path pairing open-circuit voltage error threshold within the valid groups as the final groups for successful single-path pairing, and stores batteries that fail to pair up in the failure queue.
[0022] The specific process of implementing the four-level progressive grouping mechanism also includes:
[0023] The batteries in the failed queue will be subject to the next level of matching strategy, and automatically switched to matching in the same slot;
[0024] If the same slot group does not meet the preset grouping requirements, it will automatically switch to the same layer grouping.
[0025] If the same-layer grouping does not meet the preset grouping requirements, then mixed grouping will be performed.
[0026] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the battery packing method described in any of the preceding claims.
[0027] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the battery packing method described in any of the preceding claims.
[0028] Compared with the prior art, the beneficial effects of the present invention mainly include:
[0029] This application uses a sliding window grouping algorithm to effectively group batteries, tests the termination voltage parameter and open circuit voltage parameter respectively, generates corresponding sets, and implements a four-level progressive grouping mechanism for batteries within the effective group to ensure maximum utilization of battery resources; and uses a dual voltage intersection matching algorithm to ensure the consistency of electrochemical performance of grouped batteries and extend the service life of the battery pack.
[0030] To make the above and other objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0031] To more clearly illustrate the technical solutions in the specific embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This is a schematic flowchart of a battery matching method provided in Embodiment 1 of this application. Detailed Implementation
[0033] The foregoing and other technical contents, features, and effects of the present invention will be clearly presented in the following detailed description of a preferred embodiment with reference to the accompanying drawings. The directional terms mentioned in the following embodiments, such as up, down, left, right, front, or back, are merely for reference to the accompanying drawings. Therefore, the directional terms used are for illustrative purposes and not for limiting the present invention.
[0034] The embodiments of this application will now be described in detail with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the embodiments of this application to facilitate a better understanding of the application. However, the technical solutions claimed in this application can be implemented even without these technical details and various variations and modifications based on the following embodiments.
[0035] Example 1
[0036] like Figure 1 As shown, a battery packing method includes:
[0037] Scan the battery voltage data, sort the voltage data in ascending order according to the sliding window grouping algorithm, and effectively group the batteries by setting left and right pointers;
[0038] Test the termination voltage parameters and open-circuit voltage parameters of the batteries in the valid groups respectively, and generate the corresponding sets;
[0039] A four-level progressive grouping mechanism is implemented for batteries within the effective group. The battery combination that simultaneously meets the termination voltage error threshold and the open circuit voltage error threshold is selected by the dual voltage intersection matching algorithm. The combination is then performed in sequence as single-path grouping, same-cell grouping, same-layer grouping, and mixed grouping, and the grouping results are output.
[0040] Specifically, the battery voltage data is sorted in ascending order, and then a left boundary pointer (left) and a right boundary pointer (maxRight) are set. Starting from the left boundary, the group boundary is dynamically expanded through the right boundary pointer until the voltage difference between the left and right batteries exceeds a preset threshold, forming a valid group window. If the number of batteries in the window reaches the minimum grouping requirement, the batteries in the window are grouped together and removed from the candidate list, and the next round of scanning is restarted until all batteries that meet the conditions are configured.
[0041] The termination voltage and open-circuit voltage of the batteries in the effective group are measured sequentially to generate the corresponding termination voltage parameter set and open-circuit voltage parameter set. The battery combination that simultaneously meets the single-path grouping termination voltage error threshold and the single-path grouping open-circuit voltage error threshold in the effective group is taken as the final group of single-path grouping success, and the batteries that fail to be grouped in the single path are stored in the failure queue.
[0042] The batteries in the failed queue are assigned to the next level of grouping strategy, automatically switching to same-slot grouping; if same-slot grouping does not meet the preset grouping requirements, it automatically switches to same-layer grouping; if same-layer grouping does not meet the preset grouping requirements, it performs mixed grouping; through the number regeneration mechanism, the continuity and traceability of the recombined battery pack numbering are ensured.
[0043] Specifically, the dual-voltage intersection matching algorithm identifies battery combinations within the effective group that simultaneously meet both the single-path pairing termination voltage error threshold and the single-path pairing open-circuit voltage error threshold as the final group of successfully paired batteries. Then, the termination voltage and open-circuit voltage of batteries that failed to pair are grouped according to the same-slot rule, and batteries that simultaneously meet both the termination voltage and open-circuit voltage are identified as successfully paired batteries within the same slot. Next, the termination voltage and open-circuit voltage of batteries that failed to pair in the same slot are grouped according to the same-layer rule, and batteries that simultaneously meet both the termination voltage and open-circuit voltage are identified as successfully paired batteries within the same layer. Finally, the termination voltage of batteries that failed to pair in the same layer is grouped according to the mixed-pairing rule, resulting in the final grouping of all batteries.
[0044] Single-channel grouping involves precise grouping of batteries within the same detection channel. When single-channel grouping fails to meet requirements, it automatically switches to same-slot grouping, combining batteries in the same slot. If same-slot grouping still fails to achieve the desired effect, same-layer grouping is further implemented, grouping batteries at the same level. Finally, through a mixed-grouping scheme, the remaining batteries are globally optimized for grouping, maximizing the utilization of battery resources.
[0045] This application sets differentiated error thresholds for different battery packing stages by configuring the voltage range of the parameter. The error thresholds are gradually widened as the battery pack level increases, thereby maximizing battery utilization while ensuring battery pack performance.
[0046] This application also supports voltage range checks to ensure that the matching results are within the safe voltage range.
[0047] Example 2
[0048] Embodiment 2 of this application provides a computer device for implementing the steps of the above-described battery packing method. This computer device may include a processor, a communications interface, a memory, and a communication bus. The processor, communications interface, and memory communicate with each other via the communication bus. The processor can call logical instructions from the memory. These logical instructions can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0049] Example 3
[0050] Embodiment 3 of this application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by the computer, the computer can perform the steps of the above-described battery packing method.
[0051] Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a 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 the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0052] Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of the embodiments.
[0053] This application uses a sliding window grouping algorithm to effectively group batteries, tests the termination voltage parameter and open circuit voltage parameter respectively, generates corresponding sets, and implements a four-level progressive grouping mechanism for batteries within the effective group to ensure maximum utilization of battery resources; and uses a dual voltage intersection matching algorithm to ensure the consistency of electrochemical performance of grouped batteries and extend the service life of the battery pack.
[0054] The common English terms or letters used in this invention for clarity of description are for illustrative purposes only and are not limiting interpretations or specific uses. They should not be used to limit the scope of protection of this invention based on their possible Chinese translations or specific letters.
[0055] It should also be noted that in this article, relational terms such as “first” and “second” are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
Claims
1. A battery packing method, characterized in that, include: The voltage data of the batteries is scanned, and the voltage data is sorted in ascending order according to the sliding window grouping algorithm. The batteries are then effectively grouped by setting left and right pointers. Test the termination voltage parameter and open circuit voltage parameter of the batteries in the effective group respectively, and generate the corresponding set; A four-level progressive grouping mechanism is implemented for the batteries within the effective group. The battery combination that simultaneously meets the termination voltage error threshold and the open circuit voltage error threshold is selected by the dual voltage intersection matching algorithm. The combination is then performed in sequence as single-path grouping, same-cell grouping, same-layer grouping, and mixed grouping, and the grouping results are output.
2. The battery packing method according to claim 1, characterized in that, The specific process of effectively grouping the batteries using the sliding window grouping algorithm includes: Sort the voltage data in ascending order; Set a left boundary pointer and a right boundary pointer, and dynamically expand the group boundary through the right boundary pointer until the voltage difference between the left and right batteries exceeds a preset threshold to form an effective group window; If the number of batteries in the window reaches the minimum grouping requirement, then the batteries in the window are classified as valid groups.
3. The battery packing method according to claim 2, characterized in that, The specific process of effectively grouping the batteries also includes: Remove the batteries in the valid group from the candidate list and restart the next round of scanning.
4. The battery packing method according to claim 1, characterized in that, The termination voltage and open-circuit voltage of the batteries in the effective group are measured sequentially to generate the corresponding termination voltage parameter set and open-circuit voltage parameter set.
5. A battery packing method according to claim 1, characterized in that, Different error thresholds are set for different grouping stages by configuring the voltage range parameter, and the error thresholds are gradually relaxed as the grouping level increases.
6. A battery packing method according to claim 5, characterized in that, Different grouping requirements are preset based on the differentiated error thresholds set for different grouping stages.
7. A battery packing method according to claim 5, characterized in that, The specific process of implementing the four-level progressive grouping mechanism includes: The dual-voltage intersection matching algorithm identifies battery combinations that simultaneously meet both the single-path pairing termination voltage error threshold and the single-path pairing open-circuit voltage error threshold within the valid groups as the final groups for successful single-path pairing, and stores batteries that fail to pair up in the failure queue.
8. A battery packing method according to claim 7, characterized in that, The specific process of implementing the four-level progressive grouping mechanism also includes: The batteries in the failed queue will be subject to the next level of matching strategy, and automatically switched to matching in the same slot; If the same slot group does not meet the preset grouping requirements, it will automatically switch to the same layer grouping. If the same-layer grouping does not meet the preset grouping requirements, then mixed grouping will be performed.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the battery packing 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 the processor, it implements the steps of the battery packing method according to any one of claims 1 to 8.