Battery charging and discharging control method, battery charging and discharging circuit, vehicle, controller, medium, and product

By using parallel cells and switching units in the battery, periodic full charging and equalization of the cells can be achieved, solving the problems of inaccurate battery state of charge and reliability risks, and improving the safety of the battery system and the efficient recovery of regenerative braking energy.

WO2026237752A1PCT designated stage Publication Date: 2026-11-19BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/094230
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-16
Filing Date
2026-04-30
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

In existing technologies, reserving charge during electric braking regenerative braking affects battery system performance and poses reliability risks. Furthermore, the inability to fully charge the cells over a long period leads to inaccurate state of charge.

Method used

By setting multiple parallel-connected cells in the battery and using a switching unit to control the charging and discharging of the cells, the cells are periodically fully charged except for the reserved capacity. Combined with the use of electronic switches and contactors, efficient parallel connection and balanced operation of the cells can be achieved.

Benefits of technology

This solves the problem of inaccurate state of charge caused by the inability of the battery cells to be fully charged over a long period of time, improves the safety of the whole vehicle and the efficient recovery of regenerative braking energy, and ensures the safety and consistency of the battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026094230_19112026_PF_FP_ABST
    Figure CN2026094230_19112026_PF_FP_ABST
Patent Text Reader

Abstract

A battery charging and discharging control method, a battery charging and discharging circuit, a vehicle, a controller, a medium, and a product, which relate to the technical field of battery charging and discharging. A battery comprises a plurality of cells connected in parallel. The method comprises: in response to a charging instruction, determining a cell requiring reserved capacity; and fully charging cells of a battery other than the cell requiring reserved capacity.
Need to check novelty before this filing date? Find Prior Art

Description

Battery charging and discharging control methods, circuits, vehicles, controllers, media, and products

[0001] Cross-references to related applications

[0002] This disclosure claims priority to Chinese patent application No. 202510638960.9, filed on May 16, 2025, entitled "Battery charging and discharging control method, circuit, vehicle, controller, medium and product", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This disclosure relates to the field of battery charging and discharging technology, and in particular to a battery charging and discharging control method, circuit, vehicle, controller, medium, and product. Background Technology

[0004] When a vehicle is using electric braking regenerative braking, the following solution is generally adopted to prevent the battery voltage from exceeding the preset value:

[0005] The battery is not fully charged during charging, but reserved for regenerative braking. When the vehicle continuously brakes and regenerates energy, the regenerative energy is stored in the reserved energy.

[0006] However, the reserved battery capacity in the design can easily affect the performance of the battery system and bring reliability risks. Summary of the Invention

[0007] This disclosure aims to at least partially address one of the technical problems in the related art. Therefore, the purpose of this disclosure is to provide a battery charging and discharging control method, circuit, vehicle, controller, medium, and product to achieve periodic full charging of each battery cell, solve the problem of inaccurate battery state of charge caused by the inability to fully charge cells over a long period, meet the user's braking feedback requirements, and improve the safety of the entire vehicle.

[0008] In a first aspect, embodiments of this disclosure provide a battery charging and discharging control method, wherein the battery includes a plurality of cells connected in parallel, the method comprising: in response to a charging command, determining the cells that need to reserve power; and fully charging the cells of the battery other than the cells that need to reserve power.

[0009] Secondly, embodiments of this disclosure provide a battery charging and discharging circuit. The battery includes multiple cells, and the circuit includes multiple switching units, each corresponding one-to-one with a cell. Each switching unit is adapted to be connected in series with its corresponding cell to form a cell branch, and the multiple cell branches are connected in parallel. The switching units serve as controlled devices when executing the battery charging and discharging control method described in the first aspect.

[0010] When charging the battery cell, the corresponding switching unit of the battery cell is turned on; and / or

[0011] When charging of the battery cell is stopped, the corresponding switching unit of the battery cell is turned off; and / or

[0012] The battery cells are balanced, or, during discharge control of the battery, the switching units corresponding to all cells are turned on; and / or

[0013] After completing the balancing operation of the battery cells, the switching units corresponding to all cells are turned off.

[0014] Thirdly, embodiments of this disclosure provide a controller, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the battery charging and discharging control method described in the first aspect.

[0015] Fourthly, this disclosure provides another battery charging and discharging circuit. The battery includes cells, and the circuit includes multiple switching units, each corresponding one-to-one with a cell. Each switching unit includes a contactor and an electronic switch. The contactor and the electronic switch are connected in parallel and adapted to be connected in series with the corresponding cell to form a cell branch. The multiple cell branches are connected in parallel. In response to a cell connection or disconnection command, the switching unit operates in a target sequence, with the electronic switch and the contactor acting to connect or disconnect the cell.

[0016] Fifthly, embodiments of this disclosure provide a vehicle, including: a battery; and the battery charging and discharging circuit described in the second aspect and the controller described in the third aspect, or the battery charging and discharging circuit described in the fourth aspect.

[0017] In a sixth aspect, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the battery charging and discharging control method described in the first aspect.

[0018] In a seventh aspect, embodiments of this disclosure provide a computer program product that stores instructions which, when executed by a computer, implement the steps of the battery charging and discharging control method described in the first aspect.

[0019] The battery charging and discharging control method, circuit, vehicle, controller, medium, and product of this disclosure determine the battery cells that need to reserve power during battery charging; and fully charge all battery cells except those requiring reserved power. Therefore, by reselecting the cells requiring reserved power each time charging, and fully charging all other battery cells, regular full charging of each battery cell can be achieved. This solves the problem of inaccurate battery state of charge caused by cells not being fully charged for extended periods. Simultaneously, it effectively meets the user's braking feedback requirements, eliminates the need for a braking resistor, and improves overall vehicle safety.

[0020] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description

[0021] Figure 1 is a schematic diagram of a battery charging and discharging circuit and its connection relationship according to an embodiment of the present disclosure;

[0022] Figure 2 is a schematic diagram of a battery charging and discharging circuit and its connection relationship according to another embodiment of the present disclosure;

[0023] Figure 3 is a flowchart of a battery charging and discharging control method according to an embodiment of the present disclosure;

[0024] Figure 4 is a flowchart of battery charging control according to an embodiment of the present disclosure;

[0025] Figure 5 is a flowchart of battery charging control according to another embodiment of this disclosure;

[0026] Figure 6 is a flowchart of a battery balancing operation according to an embodiment of the present disclosure;

[0027] Figure 7 is a flowchart of battery discharge control according to an embodiment of the present disclosure;

[0028] Figure 8 is a structural block diagram of the controller according to an embodiment of the present disclosure;

[0029] Figure 9 is a structural block diagram of a vehicle according to an embodiment of the present disclosure. Detailed Implementation

[0030] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure.

[0031] The following description, with reference to the accompanying drawings, outlines embodiments of a battery charging and discharging control method, circuit, vehicle, controller, medium, and product.

[0032] In embodiments of this disclosure, as shown in Figures 1 and 2, the battery includes multiple cells connected in parallel. Figures 1 and 2 illustrate an example comprising n cells (denoted as PACK 1, PACK 2, ..., PACK n), where n is an integer greater than 1.

[0033] Based on the aforementioned battery, this disclosure proposes a battery charging and discharging circuit.

[0034] Referring to Figures 1 and 2, the battery charging and discharging circuit 100 includes multiple switching units 10, each corresponding to a multiple battery cell. The switching unit 10 is adapted to be connected in series with the corresponding battery cell to form a battery cell branch, and the multiple battery cell branches are connected in parallel.

[0035] In this embodiment, the switching unit 10 serves as a controlled device when executing the battery charging and discharging control method of the following embodiments of this disclosure, and the control specifically includes at least one of the following:

[0036] When charging the battery cell, the corresponding switching unit 10 of the battery cell is turned on;

[0037] When charging of the battery cell stops, the corresponding switch unit 10 of the battery cell is turned off.

[0038] When performing cell balancing operations on the battery, or when controlling the discharge of the battery, the switching unit 10 corresponding to all cells is turned on.

[0039] After completing the balancing operation of the battery cells, the switching unit 10 corresponding to all cells is turned off.

[0040] In some examples, referring to Figure 1, the switching unit 10 includes a contactor K and an electronic switch 11. The contactor K and the electronic switch 11 are connected in parallel and then connected in series with the corresponding battery cell to form a battery cell branch. The contactor K uses low-voltage line control, indicating a physical switch that can change the on / off state of the high-voltage circuit.

[0041] In this example, when the switch unit 10 corresponding to the control cell is turned on or off, if there is a cell with a voltage greater than the cell voltage, the electronic switch 11 of the control switch unit 10 is closed first, then the contactor K of the control switch unit 10 is closed or opened, and then the electronic switch 11 of the control switch unit 10 is opened.

[0042] For example, referring to Figures 1 and 2, the electronic switch 11 includes a first switch transistor Q1, a second diode D1, a second switch transistor Q2, and a second diode D2. The first switch transistor Q1 is connected in parallel with the first diode D1, and the second switch transistor Q2 is connected in parallel with the second diode D2. The first switch transistor Q1 and the second switch transistor Q2 are connected in series, and the polarities of the terminals of the first switch transistor Q1 and the second switch transistor Q2 connected in series are the same (e.g., both are drain terminals), and the polarities of the terminals of the first diode D1 and the second diode D2 are the same (e.g., both are cathode terminals). The first switch transistor Q1 and the second switch transistor Q2 are connected in series with the corresponding battery cell to form a battery cell branch.

[0043] Specifically, referring to Figure 1, when a lower-voltage PACK is connected to the high-voltage circuit, if a voltage difference exists between the marked PACK and other PACKs, and the higher-voltage PACK contactor is already closed, if it is necessary to close the lower-voltage PACK contactor K, the BMS provides a potential difference (e.g., 5V) between the K1 / G1 and K2 / G2 pins of the lower-voltage PACK electronic switch 11, causing the two switching transistors in different directions to conduct, forming a circuit. At this time, the potential difference across contactor K is the resistance of electronic switch 11 itself multiplied by the current flowing through electronic switch 11. This potential difference is much smaller than the potential difference across contactor K when it is directly closed. When contactor K is closed at this time, under a small voltage difference, there will be no contact burning or other issues. After contactor K is fully closed, the current flows through the copper busbar of contactor K with lower resistance, at which point the electronic switch is opened, achieving a damage-free closure of contactor K.

[0044] Furthermore, the diode in electronic switch 11 can withstand the circulating current impact generated when battery cells with differential voltage are connected in parallel. However, the contactor K, composed of copper busbars and copper contacts, will generate arcing when it is activated under large differential voltage conditions, causing the contactor to sinter. Combining electronic switch 11 and contactor K enables efficient and lossless parallel connection of battery cells with differential voltage.

[0045] The advantage of this structure lies in combining the characteristics of electronic switch 11 and contactor K, achieving complementary advantages. Electronic switch 11 has high voltage resistance and long service life, but it has a certain internal resistance, which can cause it to heat up if it carries current for a long time. Contactor K has low internal resistance, but it is easily affected by voltage difference during switching, which can lead to sintering and adhesion. Combining the two can achieve a high-voltage circuit connection that is voltage resistant and can be used for a long time.

[0046] In some other examples, referring to Figure 2, the switching unit 10 includes an electronic switch 11, which is connected in series with the corresponding battery cell to form a battery cell branch.

[0047] When the control switch unit 10 is turned on or off, the electronic switch 11 of the control switch unit 10 is closed or opened.

[0048] Compared to the structure shown in Figure 1, the structure shown in Figure 2 is simpler and more economical. However, if the structure shown in Figure 2 is used, the resistance of the electronic switch 11 must be less than a preset resistance threshold to reduce heat generation when closed, ensure battery safety, and reduce energy waste.

[0049] The problem of contactor damage caused by parallel PACK under different pressure differentials can be solved by using electronic switch 11.

[0050] Figure 3 is a flowchart of a battery charging and discharging control method according to an embodiment of the present disclosure. The battery charging and discharging control method of this embodiment can be executed by a controller, which may be a battery management system (BMS).

[0051] As shown in Figure 1, the battery charging and discharging control method includes:

[0052] S101, in response to a charging command, determines which battery cells need to reserve power.

[0053] Here, "battery" can refer to the vehicle's power battery, and "charging command" can be triggered by detecting that a charging gun is inserted into the vehicle's charging port.

[0054] S102 fully charges all battery cells except those requiring reserved charge.

[0055] Among them, a fully charged cell can mean that the cell voltage reaches the charging cutoff voltage. When all cells that do not need to reserve power are fully charged, the battery's SOC can be considered to be 100%.

[0056] For example, while fully charging all battery cells except those requiring reserved power, the cells requiring reserved power may not be charged, or the cells requiring reserved power may be charged to a certain value instead of being fully charged, in order to meet the reserved power requirements.

[0057] This battery charging and discharging control method reselects the cells that need reserved power during each charge and fully charges all other cells except for the selected cells. This allows for periodic full charging of each battery cell, resolving the issue of inaccurate battery state of charge caused by cells not being fully charged over a long period. It also effectively meets the user's braking feedback requirements, eliminating the need for a braking resistor and improving overall vehicle safety.

[0058] In some embodiments of this disclosure, determining the battery cell that needs to reserve power includes: detecting the state of charge of the battery; if the state of charge of the battery is less than a first charge threshold, determining a first target battery cell, and determining a second target battery cell based on the first target battery cell as the battery cell that needs to reserve power.

[0059] The state of charge (SOC) of a battery represents the ratio of its remaining capacity to its nominal capacity. It can be directly estimated based on the overall battery capacity, or it can be obtained by estimating the SOC of each individual cell and summing their SOC values. The first state of charge threshold (SOC1) refers to the sum of the SOCs of all battery packs (i.e., cells) after reserving a certain SOC. For example, if 10% of the capacity of a single pack is reserved, and the vehicle has three packs, the SOC1 is 290%. Optionally, if the battery's SOC is greater than or equal to the first state of charge threshold, it indicates that the battery has a large amount of capacity and there is no room for reserving additional capacity; in this case, the battery can be left uncharged.

[0060] In some implementations, battery electrical parameters such as voltage and current can be detected, and a first target cell can be determined based on the voltage and / or current. A second target cell for which power needs to be reserved can then be determined based on the first target cell. For example, the battery voltage can be detected; if the battery voltage is less than a first voltage threshold, a first target cell is determined, and a second target cell for which power needs to be reserved is determined based on the first target cell.

[0061] For example, multiple battery cells are sorted according to a preset rule, wherein the first target battery cell is the next battery cell after the first target battery cell during the last charging.

[0062] Specifically, a first target cell can be marked each time the battery is charged. This can be achieved by first sorting the multiple cells, for example, assigning each cell a unique number (either randomly or based on its position), and then sorting them in descending or ascending order of these numbers. Then, the first target cell for each charge is marked according to this sorting. For instance, during the initial marking, the cell with the lowest state of charge (SOC) can be designated as the first target cell. During the second marking, the cell following the first target cell will be designated as the first target cell. Similarly, during the third marking, the cell following the first target cell will be designated as the first target cell, and so on. This ensures that each cell is periodically marked as the first target cell, allowing each cell to be fully charged periodically.

[0063] In some embodiments of this disclosure, determining a second target cell that needs to reserve power based on a first target cell includes: if the state of charge of the first target cell is less than a second charge threshold, then the first target cell is used as the second target cell.

[0064] The second charge threshold (denoted as SOC2) refers to the SOC value after the marked PACK (i.e. the first target cell) has reserved a certain SOC. For example, if the marked PACK is expected to reserve 10% SOC, then SOC2 is 90%.

[0065] Specifically, if the state of charge of the first target cell is less than the second charge threshold, it means that the state of charge of the first target cell is small and has met the requirement of reserved power. In this case, the first target cell can be directly used as the second target cell that needs to reserve power.

[0066] In some other embodiments of this disclosure, determining a second target battery cell for which power needs to be reserved based on a first target battery cell includes: if the state of charge (SOC) of the first target battery cell is greater than or equal to a second charge threshold, sorting the battery cells other than the first target battery cell to obtain a first sequence, and determining a third target battery cell from the first sequence; summing the SOC of the first target battery cell with the SOC of all third target battery cells; if the summation result is less than or equal to a first sum value, using the first target battery cell and the third target battery cell as the second target battery cell, wherein the first sum value is the sum of the second charge threshold and the number of third target battery cells; if the summation result is greater than the first sum value, updating the third target battery cell, and returning to the step of summing the SOC of the first target battery cell with the SOC of the third target battery cell.

[0067] Specifically, if the state of charge (SOC) of the first target cell is greater than or equal to the second SOC threshold, it indicates that there are too many SOCs for the first target cell, which does not meet the requirement of reserving capacity. Therefore, it is still necessary to continue screening for cells that can reserve capacity. Specifically, the cells of the battery other than the first target cell can be sorted (the sorting method for marking the first target cell can be directly used, or another sorting method can be used) to obtain a first sequence, and the third target cells are determined from the first sequence, the number of which is m; the SOC of the first target cell is summed with the SOC of all the third target cells; if the summation result is less than or equal to the first sum value (SOC2+m), it indicates that cells that can reserve capacity have been screened. At this time, the first target cell and the third target cell are used as the second target cell; if the summation result is greater than the first sum value, it indicates that it is still necessary to continue screening for cells that can reserve capacity. At this time, the third target cell is updated, and the process returns to the step of summing the SOC of the first target cell and the SOC of the third target cell.

[0068] In some embodiments of this example, determining the third target cell from the first sequence includes: marking the cell that is first in the first sequence as the third target cell. Updating the third target cell includes: marking the cell following the currently last third target cell in the first sequence as the third target cell.

[0069] In other embodiments of this example, determining the third target cell from the first sequence includes: marking the cells in the first sequence other than the cell at the top as the third target cell; wherein, updating the third target cell includes: removing the third target cell that is currently at the top.

[0070] For example, firstly, based on SOC1, it is determined whether all battery packs have sufficient reserved capacity to meet feedback requirements. If so, a pack with reserved capacity is initially marked (i.e., the first target cell is identified). If the SOC of the initially marked pack is lower than SOC2, the initially marked pack is determined to be a pack requiring reserved capacity, and the initially marked pack is charged but not fully charged, while other packs are fully charged. When the full charge ends, the marked pack becomes the next pack, and the initially marked pack can be fully charged in the next full charge. If the SOC of the initially marked pack is not less than SOC2, then while the initially marked pack is designated as a pack requiring reserved capacity, other packs that meet the reserved capacity requirements can be selected based on the initial marked pack. The selection methods for reserved capacity packs can include: the first selection method, which involves closing all non-marked pack contactors first, and then opening the contactors of the packs requiring reserved capacity, as shown in Figure 4, which is described in detail below; and the second selection method, which involves engaging the contactors of the packs requiring charging one by one, as shown in Figure 5, which is described in detail below. Then, the PACKs that do not require reserved power are fully charged. Thus, with full charging as the rotation condition, each PACK of the vehicle can be fully charged periodically.

[0071] In some embodiments of this disclosure, since there are cells that are not fully charged after charging is completed, in order to achieve consistency of battery cells, a cell balancing operation is performed on the battery cells. Specifically, a second target cell can be charged by a fully charged cell until all cells have the same charge level.

[0072] Specifically, when charging is complete, a balancing operation can be triggered on the battery packs. This balancing operation can distribute the reserved power evenly among all packs, ensuring that the power of all packs is consistent and avoiding problems such as excessive voltage difference between cells and SOC jumps.

[0073] In some embodiments of this disclosure, the method further includes: controlling the discharge of the battery in response to a discharge initiation command.

[0074] The discharge start command can be triggered when the vehicle is stationary and the start button is pressed, and the brake pedal is depressed (e.g., the brake pedal opening is greater than a preset threshold). At this point, the vehicle powers on and starts, requiring the battery to discharge to supply power to the vehicle's loads (the motor controller MA and motor M in Figures 2 and 3).

[0075] In practical applications, once the equalization operation is completed, the battery can be considered fully charged, at which point all contactors K can be disconnected. Subsequently, during discharge startup, contactors K of all PACKs can be closed for synchronous discharge; and when the vehicle regenerates braking energy, the regenerative energy can be charged into the partially charged PACKs, achieving efficient recovery of braking energy and ensuring a consistent driver experience.

[0076] In some embodiments of this disclosure, when the state of charge of the first target cell is less than the second charge threshold, the second target cell is also charged until the state of charge is greater than the second charge threshold but not fully charged.

[0077] In this embodiment, charging the second target cell to a state of charge greater than a second charge threshold but not fully charged, and fully charging all cells of the battery except the second target cell, may include: charging all cells of the battery based on a first preset maximum allowable charging current; charging all cells of the battery based on a second preset maximum allowable charging current when the state of charge of the second target cell is greater than or equal to the second charge threshold, wherein the second preset maximum allowable charging current is less than the first preset maximum allowable charging current; stopping charging the second target cell after a first preset time delay; and determining a target maximum allowable charging current after a second preset time delay, and fully charging all cells of the battery except the second target cell based on the target maximum allowable charging current.

[0078] For example, determining the target maximum allowable charging current includes: detecting the temperature and state of charge (SOC) of each cell in the battery, excluding the second target cell; determining the target maximum allowable charging current based on the minimum temperature and the corresponding SOC, which can be determined by looking up a table. For instance, if the minimum temperature of the PACK requiring full charging is 25°C, the row corresponding to 25°C in the maximum allowable charging current table is looked up, and then the column is determined based on the SOC value of the PACK at 25°C, thereby determining the target maximum allowable charging current.

[0079] In some embodiments of this disclosure, when the state of charge of the first target cell is greater than or equal to the second charge threshold, the cells of the battery other than the second target cell are fully charged, including: fully charging the cells of the battery other than the second target cell based on a third preset maximum allowable charging current.

[0080] The third preset maximum allowable charging current can also be the battery's rated maximum allowable charging current, in order to improve charging efficiency.

[0081] As shown in Figure 4, the charging control process corresponding to the first selection method includes:

[0082] S01, check if the sum of all PACK SOCs is less than SOC1. If so, execute S02; otherwise, execute S03.

[0083] S02, adjust the battery's SOC to 100% and exit charging;

[0084] S03, Initial flag PACK;

[0085] S04, check if the marked PACK SOC is < SOC2. If yes, execute S16; otherwise, execute S05.

[0086] S05, contactor that engages unmarked PACK;

[0087] S06, assign a sequence number Pi (i∈[1,n-1]) to all unlabeled PACKs, and the total number of unlabeled PACKs is n-1;

[0088] S07, i = 1, SOCh = mark PACK SOC;

[0089] S08, SOCh=SOCh+Pi number PACK SOC;

[0090] S09, disconnect the contactor of PACK number Pi;

[0091] S10, determine if SOCh ≤ i + SOC2, if yes, execute S11, otherwise execute S13;

[0092] S11, charging process control, charging of the PACK of all closed contactors;

[0093] Specifically, charging can be performed based on the third preset maximum allowable charging current mentioned above.

[0094] It should be noted that, referring to Figure 4, before S11, it is necessary to determine whether there is a PACK with an undisconnected contactor. If so, S11 is executed; otherwise, S15 is executed.

[0095] S12, all voltages required for a full charge PACK reach the charging cutoff voltage;

[0096] The battery cell that needs to be fully charged is the battery cell other than the second target battery cell. When the battery cell voltage reaches the charging cutoff voltage, it means that the battery cell is fully charged.

[0097] S13, i = i + 1;

[0098] S14, determine if i ≤ n-1, if yes, return to S08, otherwise execute S15;

[0099] S15, adjust the battery SOC to 100%, then execute S25;

[0100] S16, engages the contactor for all PACKs;

[0101] S17, charging process control, charges all PACKs;

[0102] Specifically, all PACKs can be charged based on the first preset maximum allowable charging current.

[0103] S18, detected that the marked PACK SOC≥SOC2;

[0104] S19, reduce the current maximum allowable charging current to the second preset maximum allowable charging current;

[0105] S20 controls the closing of the electronic switch that is marked PACK;

[0106] S21, after a set time t1, disconnect the contactor marked PACK;

[0107] The set time t1 is the first preset time mentioned above.

[0108] S22, controls the electronic switch of the PACK to open;

[0109] S23, after a set time t2, the target maximum allowable charging current is obtained by looking up the table;

[0110] The set time t2 is the second preset time mentioned above.

[0111] S24, based on the target maximum allowable charging current, fully charge the remaining PACK and correct the battery SOC to 100%;

[0112] S25, automatically transfer the initial marked PACK to the next PACK for the next charge control;

[0113] S26, charging complete.

[0114] As shown in Figure 5, the charging control process corresponding to the second selection method includes:

[0115] S01, check if the sum of all PACK SOCs is less than SOC1. If so, execute S02; otherwise, execute S03.

[0116] S02, adjust the battery's SOC to 100% and exit charging;

[0117] S03, Initial flag PACK;

[0118] S04, check if the marked PACK SOC is < SOC2. If yes, execute S14; otherwise, execute S05.

[0119] S05, assign a sequence number Pi (i∈[1,n-1]) to all unlabeled PACKs, and the total number of unlabeled PACKs is n-1;

[0120] S06, Define i = 1

[0121] S07, the contactor that engages the Pi PACK;

[0122] S08, check if the sum of the SOCs of non-marked PACKs (excluding the engaging contactor PACK) is ≤ n-i+SOC2. If yes, execute S11; otherwise, execute S09.

[0123] S09, charging process control, charging the PACK of all closed contactors;

[0124] Specifically, charging can be performed based on the third preset maximum allowable charging current mentioned above.

[0125] S10, all voltages required for a full charge PACK reach the charging cutoff voltage;

[0126] S11, let i=i+1;

[0127] S12, determine if i ≤ n-1, if yes, return to S07, otherwise execute S13;

[0128] S13, adjust the battery SOC to 100%;

[0129] S14, the contactor that engages all PACKs;

[0130] S15, charging process control, charges all PACKs;

[0131] Specifically, all PACKs can be charged based on the first preset maximum allowable charging current.

[0132] S16, detected that the marked PACK SOC≥SOC2;

[0133] S17, reduce the current maximum allowable charging current to the second preset maximum allowable charging current;

[0134] S18 controls the closing of the electronic switch marked PACK;

[0135] S19, disconnect the contactor marked PACK after a set time t1;

[0136] The set time t1 is the first preset time mentioned above.

[0137] S20, controls the electronic switch of the PACK to open;

[0138] S21, after a set time t2, the target maximum allowable charging current is obtained by looking up the table;

[0139] The set time t2 is the second preset time mentioned above.

[0140] S22, based on the target maximum allowable charging current, fully charge the remaining PACK and correct the battery SOC to 100%;

[0141] S23, automatically transfer the initial marked PACK to the next PACK for use in the next charge control;

[0142] S24, charging complete.

[0143] In the charging process control shown in Figures 4 and 5 above, SOC1 and SOC2 can be flexibly adjusted according to actual conditions, thereby reducing energy storage waste and improving energy utilization. The marked PACK is disconnected when SOC2 is reached. The disconnection method is as follows: a potential difference is provided by the BMS between the electronic switches K1 / G1 and K2 / G2 pins of the marked PACK, causing the two switching transistors in different directions to conduct, forming a circuit. At this time, there is no current inside the electronic switch, but voltage exists across its terminals. After closing the electronic switch, the contactor of the marked PACK is disconnected. At this time, there is current inside the electronic switch, and voltage exists across its terminals. The electronic switches are then continuously disconnected until the marked PACK is completely disconnected. The remaining PACKs continue charging after the marked PACK is disconnected until fully charged. This disconnection method can reduce or avoid contactor damage caused by voltage differences between parallel PACKs.

[0144] After the battery is fully charged, an equalization operation can be triggered. This operation integrates the PACKs that need to reserve power into the fully charged PACKs and charges the PACKs that need to reserve power (i.e., the second target cells). This achieves the goal of reserving power for each PACK. This method can extend the reserved power of a single or a few PACKs to the reserved power of multiple PACKs, thereby improving the feedback power and keeping the battery cells consistent.

[0145] The control flow after charging is completed is shown in Figure 6.

[0146] S01, charging process complete;

[0147] S02, close the electronic switch of the PACK that needs to reserve power;

[0148] S03, engages the PACK contactor that requires reserved power;

[0149] S04, disconnect the electronic switch of the PACK that needs to reserve power;

[0150] S05, fully charged PACK charges PACKs that need to reserve power;

[0151] S06, all PACKs have the same battery level;

[0152] S07, disconnect all PACK contactors;

[0153] S08, Equilibrium complete.

[0154] As shown in Figure 7, when the battery needs to be discharged, the PACK containing the reserved power determined during the last charge is incorporated. An electronic switch is used to achieve contactor closure without damage. The specific process is as follows:

[0155] S01, Discharge start command received;

[0156] S02, contactor for closing the fully charged PACK;

[0157] S03, close the electronic switch of the PACK that needs to reserve power;

[0158] S04, close the contactor of the PACK that needs to reserve power.

[0159] Because the initial voltage of the pack that was fully charged last time may be higher than the pack that needs to reserve power during the last charge, the electronic switch of the pack that needs to reserve power needs to be closed in advance, and then the pack that needs to reserve power needs to be added.

[0160] S05, disconnect the electronic switch of the PACK that requires reserved power.

[0161] S06, send discharge permission command, normal discharge.

[0162] In summary, the battery charging and discharging control method of this disclosure can still perform regenerative charging when the battery SOC is 100%, achieving efficient recovery of braking energy and ensuring a consistent driver operating experience; it can also periodically fully charge the battery cells, solving the problem of inaccurate SOC caused by the battery cells not being fully charged for a long time; by adding an electronic switch to pre-open and close before the contactor opens and closes, the voltage difference during contactor opening and closing can be eliminated, realizing efficient and lossless parallel connection of battery cells with voltage difference.

[0163] Based on the charging and discharging control method of the above embodiments, this disclosure also proposes a computer-readable storage medium.

[0164] In this embodiment, a computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, it implements the steps of the battery charging and discharging control method of the above embodiment.

[0165] Based on the charging and discharging control method of the above embodiments, this disclosure also proposes a computer program product.

[0166] In this embodiment, the computer program product stores instructions that, when executed by a computer, implement the steps of the battery charging and discharging control method described above.

[0167] Figure 8 is a structural block diagram of the controller according to an embodiment of the present disclosure.

[0168] As shown in Figure 8, the controller 500 includes a processor 501 and a memory 503. The processor 501 and the memory 503 are connected, for example, via a bus 502. Optionally, the controller 500 may also include a transceiver 504. It should be noted that in practical applications, the transceiver 504 is not limited to one type, and the structure of the controller 500 does not constitute a limitation on the embodiments of this disclosure.

[0169] Processor 501 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. Processor 501 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0170] Bus 502 may include a pathway for transmitting information between the aforementioned components. Bus 502 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 502 can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in Figure 8, but this does not indicate that there is only one bus or one type of bus.

[0171] The memory 503 stores a computer program corresponding to the battery charging and discharging control method of the above embodiments of this disclosure. This computer program is controlled and executed by the processor 501. The processor 501 executes the computer program stored in the memory 503 to implement the content shown in the foregoing method embodiments.

[0172] The controller 500 includes, but is not limited to, an in-vehicle controller, such as a BMS. The controller 500 shown in Figure 8 is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0173] This disclosure also proposes another battery charging and discharging circuit.

[0174] In this embodiment, as shown in FIG1, the battery includes a cell, and the battery charging and discharging circuit 100 includes a plurality of switching units 10, each of which corresponds to a plurality of cells. Each switching unit 10 includes a contactor K and an electronic switch 11. The contactor K and the electronic switch 11 are connected in parallel and are adapted to be connected in series with the corresponding cell to form a cell branch.

[0175] In this process, the switching unit 10 responds to the battery cell connection or disconnection command, and the electronic switch 11 and contactor K operate in the target sequence to realize the connection or disconnection of the battery cell.

[0176] For example, the electronic switch 11 and the contactor K operate in a target sequence including: the electronic switch 11 first performs an access operation, after a first preset time delay, the contactor K performs an access or disconnect operation, and then the electronic switch 11 performs a disconnect operation.

[0177] In some embodiments of this disclosure, the battery charging and discharging circuit 100 further includes: a control unit (not shown), which, in response to a charging command, determines the cells that need to reserve power and fully charges the cells of the battery other than those that need to reserve power.

[0178] The control unit is connected to each of the switching units 10 and is used to control the on / off state of the electronic switches 11 and contactors in the switching units 10. For example, when the control unit is fully charging all the cells of the battery except for those that need to reserve power, if it sends a cell access command to the switching unit 10 of a certain cell, the electronic switch 11 will first close (i.e., perform the access action), and after a first preset time delay, the contactor K will perform the access action, and then the electronic switch 11 will open. If it sends a cell disconnect command to the switching unit 10 of a certain cell, the electronic switch 11 will first close (i.e., perform the access action), and after a first preset time delay, the contactor K will open, and then the electronic switch 11 will open.

[0179] It should be noted that when controlling the connection or disconnection of a specific battery cell (denoted as the target battery cell), if there is a connected battery cell with a voltage greater than that of the target battery cell, the potential difference across the contactor K of the target battery cell will be large. If the contactor K of the target battery cell is directly controlled to close or open, the contactor K is prone to arcing due to its copper busbar and copper contact structure, leading to sintering of the contactor K. Therefore, this disclosure corresponds to a parallel electronic switch 11 connected to the contactor K. Before the contactor K operates, the electronic switch 11 is first controlled to close, and after the contactor K operates, the electronic switch 11 is then controlled to open. To ensure the safe operation of the contactor K, the contactor K is controlled to operate after the electronic switch 11 has been closed for a first preset time.

[0180] In one embodiment, the switching unit 10 may further include a control device. After receiving an access command or disconnect command from the battery cell, the control device first controls the electronic switch 11 to access, then controls the contactor K to access or disconnect after a first preset time delay, and then controls the electronic switch 11 to disconnect.

[0181] In another implementation, both the battery cell connection and disconnection commands include three sub-commands, referred to as the first sub-command, the second sub-command, and the third sub-command. The first sub-command is used to control the electronic switch 11 to connect; the second sub-command is issued a first preset time after the first sub-command is issued, and is used to control the contactor K to connect or disconnect; the third sub-command is issued after the second sub-command is issued, and is used to control the electronic switch 11 to disconnect.

[0182] In some embodiments of this disclosure, when the control unit determines which battery cell needs to reserve power, it is specifically used to: detect the state of charge of the battery; if the state of charge of the battery is less than a first charge threshold, determine a first target battery cell; and determine a second target battery cell based on the first target battery cell as the battery cell that needs to reserve power.

[0183] In some embodiments of this disclosure, multiple battery cells are sorted according to a preset rule, wherein the first target battery cell is the next battery cell after the first target battery cell during the last charging.

[0184] In some embodiments of this disclosure, when the control unit determines the second target cell based on the first target cell, it is specifically configured to: when the state of charge of the first target cell is less than a second charge threshold, use the first target cell as the second target cell.

[0185] In some embodiments of this disclosure, when the control unit determines the second target battery cell based on the first target battery cell, it is specifically configured to: when the state of charge of the first target battery cell is greater than or equal to a second charge threshold, sort the battery cells other than the first target battery cell to obtain a first sequence, and determine the third target battery cell from the first sequence; sum the state of charge of the first target battery cell with the state of charge of all the third target battery cells; when the summation result is less than or equal to a first sum value, use the first target battery cell and the third target battery cell as the second target battery cell, wherein the first sum value is the sum of the second charge threshold and the number of third target battery cells; when the summation result is greater than the first sum value, update the third target battery cell, and return to the step of summing the state of charge of the first target battery cell with the state of charge of the third target battery cell.

[0186] In some embodiments of this disclosure, when the control unit determines the third target cell from the first sequence, it is specifically configured to: mark the cell that is first in the first sequence as the third target cell; wherein, when the control unit updates the third target cell, it is specifically configured to: mark the cell next to the third target cell that is currently last in the first sequence as the third target cell.

[0187] In some embodiments of this disclosure, when the control unit determines the third target cell from the first sequence, it is specifically used to: mark the cells in the first sequence other than the first cell as the third target cell; wherein, when the control unit updates the third target cell, it is specifically used to: remove the third target cell that is currently ranked first.

[0188] In some embodiments of this disclosure, when the state of charge of the first target cell is less than the second charge threshold, the control unit will also charge the second target cell until the state of charge is greater than the second charge threshold but not fully charged.

[0189] In some embodiments of this disclosure, when the control unit charges the second target cell to a state of charge greater than a second charge threshold but not fully charged, and fully charges all cells of the battery except the second target cell, it specifically performs the following operations: controlling the contactors of all cells to close, and charging all cells of the battery based on a first preset maximum allowable charging current; when the state of charge of the second target cell is greater than or equal to the second charge threshold, charging all cells of the battery based on a second preset maximum allowable charging current, wherein the second preset maximum allowable charging current is less than the first preset maximum allowable charging current; sending a disconnect command to the switching unit corresponding to the second target cell to stop charging the second target cell after a first preset time delay; and after a second preset time delay, determining a target maximum allowable charging current, and fully charging all cells of the battery except the second target cell based on the target maximum allowable charging current.

[0190] In some embodiments of this disclosure, when determining the target maximum allowable charging current, the control unit is specifically used to: detect the temperature and state of charge of each cell of the battery other than the second target cell; and determine the target maximum allowable charging current based on the minimum temperature and the state of charge corresponding to the minimum temperature.

[0191] In some embodiments of this disclosure, when the state of charge of the first target cell is greater than or equal to the second charge threshold, the control unit, when fully charging the cells of the battery other than the second target cell, is specifically used to: fully charge the cells of the battery other than the second target cell based on the third preset maximum allowable charging current.

[0192] In some embodiments of this disclosure, the control unit is further configured to: after charging is completed, send an access command to the switching unit of the cell that needs to reserve power, so as to access the cell that needs to reserve power, and charge the cell that needs to reserve power through the fully charged cell; and control the contactors of all cells to disconnect after the power of all cells is consistent.

[0193] In some embodiments of this disclosure, the control unit is further configured to: in response to a discharge start command, control the contactors of the cells other than those requiring reserved charge to close, send an access command to the switching unit of the cells requiring reserved charge, and control the battery to discharge after all cells are accessed.

[0194] It should be noted that for the specific implementation of the battery charging and discharging circuit of this disclosure, please refer to the description of the specific implementation of the battery charging and discharging control method and another battery charging and discharging circuit in the above embodiments.

[0195] This disclosure also proposes a vehicle.

[0196] Figure 9 is a structural block diagram of a vehicle according to an embodiment of the present disclosure.

[0197] As shown in Figure 9, the vehicle 900 includes: a battery 910, a battery charging and discharging circuit 100 in the embodiment without a control unit, and a controller 500 in the embodiment.

[0198] In another embodiment of this disclosure, the vehicle 900 includes: a battery 910 and a battery charging and discharging circuit as described in the embodiment including the control unit.

[0199] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0200] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0201] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0202] In the description of this disclosure, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this disclosure and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this disclosure.

[0203] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0204] In this disclosure, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this disclosure according to the specific circumstances.

[0205] In this disclosure, unless otherwise expressly specified and limited, "above" or "below" the second feature can mean that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.

[0206] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.

Claims

1. A battery charging and discharging circuit, characterized by comprising: The battery includes a cell, and the circuit includes multiple switching units, each of which corresponds to one of the cells. Each switching unit includes a contactor and an electronic switch. The contactor and the electronic switch are connected in parallel and are adapted to be connected in series with the corresponding cell to form a cell branch. The multiple cell branches are connected in parallel. The switching unit responds to the battery cell's connection or disconnection command, and the electronic switch and the contactor operate in a target sequence to realize the connection or disconnection of the battery cell.

2. The battery charging and discharging circuit according to claim 1, wherein The electronic switch and the contactor operate in the target sequence as follows: the electronic switch first performs an access operation, after a first preset time delay, the contactor performs an access or disconnect operation, and then the electronic switch performs a disconnect operation.

3. The battery charging and discharging circuit according to claim 1 or 2, wherein The circuit also includes: The control unit, in response to a charging command, determines the cells that need to reserve power and fully charges all cells of the battery except those that need to reserve power.

4. The battery charging and discharging circuit according to claim 3, wherein When determining which battery cells require reserved power, the control unit is specifically used for: Detect the state of charge of the battery; If the state of charge of the battery is less than the first charge threshold, then the first target cell is determined; A second target cell is determined based on the first target cell, which is then used as the cell for which the reserved power needs to be stored.

5. The battery charging and discharging circuit according to claim 4, wherein The multiple battery cells are sorted according to a preset rule, wherein the first target battery cell is the next battery cell after the first target battery cell during the last charging.

6. The battery charging and discharging circuit according to claim 4 or 5, wherein When the control unit determines the second target battery cell based on the first target battery cell, it is specifically used for: When the state of charge of the first target cell is less than the second charge threshold, the first target cell is used as the second target cell.

7. The battery charging and discharging circuit according to claim 4 or 5, wherein When the control unit determines the second target battery cell based on the first target battery cell, it is specifically used for: When the state of charge of the first target cell is greater than or equal to the second charge threshold, the cells of the battery other than the first target cell are sorted to obtain a first sequence, and the third target cell is determined from the first sequence. The state of charge of the first target cell is summed with the state of charge of all the third target cells; When the summation result is less than or equal to the first sum value, the first target cell and the third target cell are used as the second target cell, wherein the first sum value is the sum of the second charge threshold and the number of the third target cells; When the summation result is greater than the first sum value, the third target cell is updated, and the process returns to the step of summing the state of charge of the first target cell and the state of charge of the third target cell.

8. The battery charging and discharging circuit according to claim 7, wherein When the control unit determines the third target cell from the first sequence, it is specifically used for: The first cell in the first sequence is designated as the third target cell; Specifically, when updating the third target cell, the control unit is used to: mark the cell next to the third target cell that is currently last in the first sequence as the third target cell.

9. The battery charging and discharging circuit according to claim 7, wherein When the control unit determines the third target cell from the first sequence, it is specifically used for: The cells in the first sequence, excluding the first cell, are designated as the third target cells. Specifically, when updating the third target cell, the control unit is used to: remove the third target cell that is currently ranked first.

10. The battery charging and discharging circuit according to claim 6, wherein When the state of charge of the first target cell is less than the second charge threshold, the control unit will also charge the second target cell until the state of charge is greater than the second charge threshold but not fully charged.

11. The battery charging and discharging circuit according to claim 10, wherein When the control unit charges the second target cell to a state of charge greater than the second charge threshold but not fully charged, and fully charges all cells of the battery other than the second target cell, it is specifically used for: The contactors of all cells are closed, and all cells of the battery are charged based on a first preset maximum allowable charging current. When the state of charge of the second target cell is greater than or equal to the second charge threshold, all cells of the battery are charged based on the second preset maximum allowable charging current, wherein the second preset maximum allowable charging current is less than the first preset maximum allowable charging current. Send the disconnect command to the switching unit corresponding to the second target cell to stop charging the second target cell after a first preset time delay; After a second preset time delay, a target maximum allowable charging current is determined, and the cells of the battery other than the second target cell are fully charged based on the target maximum allowable charging current.

12. The battery charging and discharging circuit of claim 11, wherein, When determining the target maximum allowable charging current, the control unit is specifically used for: The temperature and state of charge of each cell in the battery, excluding the second target cell, are detected; The target maximum allowable charging current is determined based on the minimum value of the temperature and the corresponding state of charge.

13. The battery charging and discharging circuit according to any one of claims 4-12, wherein, When the state of charge of the first target cell is greater than or equal to the second charge threshold, the control unit, when fully charging all cells of the battery except the second target cell, specifically performs the following functions: The battery cells, excluding the second target cell, are fully charged based on the third preset maximum allowable charging current.

14. The battery charging and discharging circuit according to any one of claims 3-13, wherein, The control unit is also used for: After charging is completed, the access command is sent to the switching unit of the cell that needs to reserve power, so as to access the cell that needs to reserve power, and charge the cell that needs to reserve power with the fully charged cell. Once the charge levels of all battery cells are consistent, the contactors controlling all battery cells are disconnected.

15. The battery charging and discharging circuit according to any one of claims 3-14, wherein, The control unit is also used for: In response to the discharge start command, the contactors of all cells except the one requiring reserved charge are controlled to close, and the access command is sent to the switching unit of the cell requiring reserved charge. After all cells are accessed, the battery is controlled to discharge.

16. A battery charge and discharge control method characterized by comprising: The battery comprises multiple cells connected in parallel, and the method includes: In response to charging commands, determine which battery cells need to reserve power; Fully charge all battery cells except those requiring reserved charge.

17. The battery charge-discharge control method according to claim 16, wherein The determination of the battery cells that need to reserve power includes: Detect the state of charge of the battery; If the state of charge of the battery is less than the first charge threshold, then the first target cell is determined; A second target cell is determined based on the first target cell, which is then used as the cell for which the reserved power needs to be stored.

18. The battery charge-discharge control method according to claim 17, wherein The multiple battery cells are sorted according to a preset rule, wherein the first target battery cell is the next battery cell after the first target battery cell during the last charging.

19. The battery charge-discharge control method according to claim 17, wherein The step of determining the second target cell based on the first target cell includes: If the state of charge of the first target cell is less than the second charge threshold, then the first target cell is used as the second target cell.

20. The battery charge-discharge control method according to claim 17, wherein The step of determining the second target cell based on the first target cell includes: If the state of charge of the first target cell is greater than or equal to the second charge threshold, then the cells of the battery other than the first target cell are sorted to obtain a first sequence, and the third target cell is determined from the first sequence. The state of charge of the first target cell is summed with the state of charge of all the third target cells; If the summation result is less than or equal to the first sum value, then the first target cell and the third target cell are used as the second target cell, wherein the first sum value is the sum of the second charge threshold and the number of the third target cells; If the summation result is greater than the first sum value, then the third target cell is updated, and the process returns to the step of summing the state of charge of the first target cell and the state of charge of the third target cell.

21. The battery charge-discharge control method according to claim 20, wherein Determining the third target cell from the first sequence includes: The first cell in the first sequence is designated as the third target cell; The step of updating the third target cell includes: marking the cell following the third target cell that is currently last in the first sequence as the third target cell.

22. The battery charge-discharge control method according to claim 20, wherein Determining the third target cell from the first sequence includes: The cells in the first sequence, excluding the first cell, are designated as the third target cells. The updating of the third target cell includes: removing the third target cell that is currently ranked first.

23. The battery charge-discharge control method according to claim 19, wherein When the state of charge of the first target cell is less than the second charge threshold, the second target cell will be charged until the state of charge is greater than the second charge threshold but not fully charged.

24. The battery charge-discharge control method according to claim 23, wherein Charging the second target cell to a state of charge greater than the second charge threshold but not fully charged, and fully charging all cells of the battery except the second target cell, includes: All cells of the battery are charged based on the first preset maximum allowable charging current; When the state of charge of the second target cell is greater than or equal to the second charge threshold, all cells of the battery are charged based on the second preset maximum allowable charging current, wherein the second preset maximum allowable charging current is less than the first preset maximum allowable charging current. After a first preset time delay, charging of the second target battery cell is stopped; After a second preset time delay, a target maximum allowable charging current is determined, and the cells of the battery other than the second target cell are fully charged based on the target maximum allowable charging current.

25. The battery charge-discharge control method according to claim 24, wherein Determining the target maximum allowable charging current includes: The temperature and state of charge of each cell in the battery, excluding the second target cell, are detected; The target maximum allowable charging current is determined based on the minimum value of the temperature and the corresponding state of charge.

26. The battery charge and discharge control method according to any one of claims 17-25, wherein, When the state of charge of the first target cell is greater than or equal to the second charge threshold, the cells of the battery other than the second target cell are fully charged, including: The battery cells, excluding the second target cell, are fully charged based on the third preset maximum allowable charging current.

27. The battery charge-discharge control method according to any one of claims 16-26, wherein, The method further includes: After charging is complete, the cells that require reserved power are charged using the fully charged cells until all cells have the same power level.

28. The battery charge-discharge control method according to any one of claims 16-27, wherein, The method further includes: In response to a discharge start command, the battery is discharged under control.

29. A battery charging and discharging circuit, comprising: The battery includes multiple cells, and the circuit includes multiple switching units, each corresponding one-to-one with a cell. Each switching unit is adapted to be connected in series with its corresponding cell to form a cell branch, and the multiple cell branches are connected in parallel. The switching unit serves as a controlled device when executing the battery charging and discharging control method as described in any one of claims 16-28. When charging the battery cell, the corresponding switching unit of the battery cell is turned on; and / or When charging of the battery cell is stopped, the corresponding switching unit of the battery cell is turned off; and / or The battery cells are balanced, or, during discharge control of the battery, the switching units corresponding to all cells are turned on; and / or After completing the balancing operation of the battery cells, the switching units corresponding to all cells are turned off.

30. The battery charging and discharging circuit of claim 29, wherein, The switching unit includes an electronic switch, and the electronic switch is connected in series with the corresponding battery cell to form the battery cell branch; Specifically, when controlling the switching unit to be turned on or off, the electronic switch of the switching unit is controlled to be closed or opened.

31. The battery charging and discharging circuit of claim 30, wherein, The switching unit includes a contactor and an electronic switch. The contactor and the electronic switch are connected in parallel and then connected in series with the corresponding battery cell to form the battery cell branch. When the switching unit corresponding to the battery cell is controlled to be turned on or off,... If there is a battery cell with a voltage greater than that of the battery cell, the electronic switch of the switching unit is first controlled to close, then the contactor of the switching unit is controlled to close or open, and finally the electronic switch of the switching unit is controlled to open.

32. The battery charging and discharging circuit of claim 30 or 31, wherein, The electronic switch includes a first switching transistor, a first diode, a second switching transistor, and a second diode. The first switching transistor and the first diode are connected in parallel, and the second switching transistor and the second diode are connected in parallel. The first switching transistor and the second switching transistor are connected in series, and the polarities of the terminals of the first switching transistor and the second switching transistor, as well as the polarities of the terminals of the first diode and the second diode, are the same at the series connection point. The first switching transistor and the second switching transistor are connected in series with the corresponding battery cell to form the battery cell branch.

33. A controller characterized by It includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the battery charging and discharging control method as described in any one of claims 16-28.

34. A vehicle characterized by include: Battery; The battery charging and discharging circuit as described in any one of claims 1-15; Alternatively, the battery charging / discharging circuit as described in any one of claims 29-32 and the controller as described in claim 33.

35. A computer readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements the steps of the battery charging and discharging control method according to any one of claims 16-28.

36. A computer program product, characterised in that, The computer program product stores instructions that, when executed by a computer, implement the steps of the battery charging and discharging control method according to any one of claims 16-28.