Dynamic reconstruction device and method for battery network

By dynamically reconstructing the energy network card and the controller communication link of the device, the battery data is collected and the battery connection is adjusted, which solves the shortening of life and safety risks caused by battery floating charging and circulation, and improves the safety and economicality of battery use.

CN118889595APending Publication Date: 2024-11-01LBATTERYCLOUD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410910177.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In traditional DC 48V power supply room, long-term floating charging of the battery and mixing new and old batteries lead to a shortening of battery life and safety risks, especially the circulation between the batteries exacerbates these problems.

Method used

The dynamic reconstruction device is adopted to collect battery data through the communication link between the energy network card and the controller, determine the charging and discharging state and battery voltage information, dynamically adjust the battery connection relationship, control the battery input and cut-out, and avoid circulation and floating charge.

Benefits of technology

It effectively improves the safety and economy of battery use, reduces wiring workload, improves signal speed and accuracy, and solves the problems of shortening battery life and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118889595A_ABST
    Figure CN118889595A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic reconfiguration device and method for a battery network, and relates to the field of new energy, and the dynamic reconfiguration device is characterized in that each energy network card is connected with a battery module; the controller is connected with each energy network card through a communication link; the energy network card is used for collecting battery data of each battery in the battery module at the current moment and transmitting the battery data to the controller; the battery data comprises a battery charging and discharging state, battery voltage information and battery current information; the controller is used for determining the charging and discharging state of each battery module according to the battery charging and discharging state and the battery current information of each battery in each battery module at the current moment, and determining the access time of each battery in each battery module according to the charging and discharging state of each battery module and the corresponding battery voltage information of each battery; the use safety of the backup battery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy, and in particular to a device and method for dynamically reconfiguring a battery network. Background Art

[0002] In traditional DC 48V power supply rooms and other places, especially data rooms and other places, backup batteries are always available on site for emergency power supply in case of power outages and other emergencies. However, since the batteries need to be constantly connected to the DC 48V bus and are in a floating charge state for a long time, the internal electrodes of the batteries will be corroded, resulting in varying degrees of shortening of the battery life. In addition, when new and old batteries are configured, a charge and discharge cycle will occur between the new and old batteries, accelerating the shortening of the battery life.

[0003] At present, in traditional DC 48V backup power sites, when new and old batteries are mixed, circulation between batteries is caused, further shortening the battery life and even causing battery heating and safety problems. Summary of the invention

[0004] The purpose of this application is to provide a device and method for dynamically reconfiguring a battery network, which can improve the safety of using backup batteries.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a subject 1 device, comprising: a plurality of energy network cards and a controller;

[0007] Each of the energy network cards is connected to a battery module;

[0008] The controller is connected to each of the energy network cards via a communication link;

[0009] The energy network card is used to collect battery data of each battery in the battery module at the current moment and transmit it to the controller; the battery data includes battery charging and discharging status, battery voltage information and battery current information;

[0010] The controller is used to determine the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at a current moment and the battery current information, and to determine the access time of each battery in each battery module according to the charge and discharge state of each battery module and the corresponding battery voltage information of each battery.

[0011] Optionally, each of the energy network cards comprises: an anti-backflow circuit, a digital switch, an analog quantity acquisition system, a communication system and a switch control system;

[0012] One end of the anti-backflow circuit, one end of the digital switch, and one end of the analog quantity acquisition system are all connected to the battery module;

[0013] The other end of the anti-backflow circuit and the other end of the digital switch are both connected to one end of the switch control system;

[0014] The other end of the analog quantity acquisition system and the other end of the switch control system are both connected to one end of the communication system;

[0015] The other end of the communication system is connected to the controller via a communication link.

[0016] Optionally, the communication system is composed of a main circuit including a main coil and a secondary circuit including two secondary coils; the main coil and the two secondary coils form a transformer;

[0017] The auxiliary circuit includes a high-pass filter and a low-pass filter; the output of one auxiliary coil passes through the high-pass filter to obtain a high-frequency data signal; the output of the other auxiliary coil passes through the low-pass filter to obtain a low-frequency control signal.

[0018] Optionally, the analog quantity acquisition system includes a voltage acquisition system and a current acquisition system.

[0019] Optionally, the switch control system includes a single chip microcomputer and peripheral circuits of the single chip microcomputer.

[0020] Optionally, the communication link is a twisted pair cable.

[0021] In a second aspect, the present application provides a method of subject 2, comprising: obtaining battery data of each battery in the battery module at the current moment; the battery data includes battery charge and discharge status, battery voltage information, and battery current information;

[0022] Determine the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at the current moment and the battery current information;

[0023] The access time of each of the multiple batteries in each of the battery modules is determined according to the charge and discharge status of each of the battery modules and the battery voltage information of the corresponding batteries.

[0024] Optionally, determining the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at a current moment and the battery current information specifically includes:

[0025] According to the battery current information of each battery in each battery module at the current moment, the total current of each battery module under the battery charge and discharge state at the current moment is calculated; the total current under the battery charge and discharge state includes the total current of the battery under the battery charge state and the total current of the battery under the battery discharge state;

[0026] The charge and discharge state of each battery module is determined according to a comparison result of the total current of the battery in the charging state and the total current of the battery in the discharging state.

[0027] Optionally, determining the access time of each battery in each battery module according to the charge and discharge state of each battery module and the battery voltage information of each corresponding battery specifically includes:

[0028] Determine the charge and discharge state of each corresponding battery according to the charge and discharge state of each battery module; the charge and discharge state of each corresponding battery is consistent with the charge and discharge state of each battery module; when the charge and discharge state of the corresponding battery is inconsistent with the charge and discharge state of each battery module, cut the corresponding battery out of the battery module;

[0029] According to the ratio of the battery voltage information of each battery to the corresponding highest battery voltage information, the connection time of each battery consistent with the charge and discharge state of each battery module is determined.

[0030] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0031] The present application provides a device and method for dynamically reconfiguring a battery network, which controls the input and output of parallel batteries through an energy network card. According to the performance of the battery, the original connection relationship of the battery is dynamically changed, which can completely solve the life and safety problems caused by battery floating charge and circulation, and greatly improve the safety and economy of backup battery use. Through the communication control method of this patent, the workload of wiring is reduced and the signal rate and accuracy are improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0033] Figure 1 Schematic diagram of traditional batteries connected to the busbar via an energy network card.

[0034] Figure 2 This is a schematic diagram of the connection between the energy network card and the controller.

[0035] Figure 3 A schematic diagram of a controller controlling multiple network cards.

[0036] Figure 4 Schematic diagram of communication link coupling and decoupling.

[0037] Figure 5 This is the circuit diagram for preventing backflow and digital switch.

[0038] Figure 6 This is the circuit diagram of the current acquisition system.

[0039] Figure 7 This is the circuit diagram of the voltage acquisition system.

[0040] Figure 8 This is the circuit diagram of the communication system.

[0041] Fig. 9 This is a schematic diagram of the switch control system connection structure.

[0042] Explanation of symbols:

[0043] 48V power supply-1; 48V electrical equipment-2; energy network card-3; 48V lithium battery module-4; controller-5; anti-backflow circuit-6; digital switch-7; analog quantity acquisition system-8; communication system-9; switch control system-10; communication link-11. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0046] In an exemplary embodiment, Figures 1 to 9 As shown, a reconfigurable battery network communication device is provided, including: multiple energy network cards 3 and a controller 5.

[0047] Each of the energy network cards 3 is connected to a battery module.

[0048] The controller 5 is connected to each of the energy network cards 3 via a communication link 11 .

[0049] The energy network card 3 is used to collect battery data of each battery in the battery module at the current moment and transmit it to the controller 5; the battery data includes battery charging and discharging status, battery voltage information and battery current information.

[0050] The controller 5 is used to determine the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at the current moment and the battery current information, and to determine the access time of each battery in each battery module according to the charge and discharge state of each battery module and the corresponding battery voltage information of each battery.

[0051] Specifically, Figures 5 to 9 As shown, each of the energy network cards 3 includes: an anti-backflow circuit 6, a digital switch 7, an analog quantity acquisition system 8, a communication system 9 and a switch control system 10.

[0052] One end of the anti-backflow circuit 6, one end of the digital switch 7, and one end of the analog quantity acquisition system 8 are all connected to the battery module; the other end of the anti-backflow circuit 6 and the other end of the digital switch 7 are both connected to one end of the switch control system 10; the other end of the analog quantity acquisition system 8 and the other end of the switch control system 10 are both connected to one end of the communication system 9; the other end of the communication system 9 is connected to the controller 5 via a communication link 11.

[0053] The communication system 9 is composed of a main circuit including a main coil and a secondary circuit including two secondary coils; the main coil and the two secondary coils form a transformer. The secondary circuit includes a high-pass filter and a low-pass filter; the output of one secondary coil passes through the high-pass filter to obtain a high-frequency data signal; the output of the other secondary coil passes through the low-pass filter to obtain a low-frequency control signal. Figure 8 As shown, the communication system 9 adopts a method of one main coil and two secondary coils. The outputs of the secondary coils are respectively subjected to high-pass filters and low-pass filters to separate the original waveforms, and low-frequency control signals and high-frequency data signals are respectively decoupled and sent to the energy network card 3 or the controller 5 through the back-end comparator for signal analysis.

[0054] The analog quantity acquisition system 8 includes a voltage acquisition system and a current acquisition system. Figure 6 and Figure 7 As shown, the current acquisition circuit collects the voltage value of the sampling resistor between B- and B-IN on the main circuit and sends it to the analog-to-digital conversion system of the energy network card 3. The voltage acquisition system collects the voltage on the battery side and the power supply side in the form of differential amplification, and the converted waveform is sent to the analog-to-digital conversion system of the energy network card 3.

[0055] The switch control system 10 includes a single chip microcomputer and its peripheral circuits. The communication link 11 is a twisted pair. Fig. 9As shown, the energy network card 3 has a switch control system 10 inside, which is mainly a single-chip microcomputer. The signals of the anti-backflow circuit 6 and the digital switch 7, the current acquisition system, the voltage acquisition system, and the communication system 9 are transmitted to the single-chip microcomputer to complete the communication, acquisition and control of the energy network card 3.

[0056] In the connection between the controller 5 and the energy network card 3, the communication link 11 only needs a simple line connection to realize the transmission of data signals and control signals between the controller 5 and the energy network card 3, such as Figure 3 shown.

[0057] The data signal and control signal are transmitted between the controller 5 and the energy network card 3. The controller 5 and the energy network card 3 have signal coupling and decoupling modules inside. The controller 5 includes a communication system 9 and a control chip and its peripheral circuit; the communication system 9 of the energy network card 3 is called the first communication system, and the communication system 9 of the controller 5 is called the second communication system. The first communication system is connected to the second communication system through a communication link 11.

[0058] The signal coupling and decoupling module couples and decouples the communication data signal and the control signal. Figure 4 shown.

[0059] The data signal adopts a typical high-frequency differential control method. Through the data signal, the energy network card 3 sends the collected battery data to the controller 5.

[0060] The control signal adopts a low-frequency PWM frequency duty cycle comprehensive modulation method. Specifically, the low-frequency PWM frequency duty cycle comprehensive modulation method selects the corresponding energy network card 3 through different frequencies. The low-frequency PWM frequency duty cycle comprehensive modulation method controls the time for the energy network card 3 to put the battery in and out through the change of the duty cycle.

[0061] The energy network card 3 is selected by different frequencies, and the time for the energy network card 3 to put the battery in and out is controlled by the duty cycle, so as to realize the dynamic input and selection of the battery and the dynamic reconstruction of the battery network. The high-frequency data signal and the low-frequency control signal only refer to the large frequency difference between the two, and no specific frequency is specified.

[0062] The present invention solves the problem of shortened life of conventional battery floating charge and circulation problems caused by mixing old and new batteries, and solves the problem of complex communication and control lines between the controller 5 and the energy network card 3 during dynamic battery reconstruction.

[0063] The following is a specific example, combined with Figures 1 to 9 The present invention will be further described.

[0064] like Figure 1As shown, a control device for a reconfigurable battery network includes energy network cards No. 1, No. 2...No. N; a controller 5; energy network cards No. 1 to No. N are connected to 48V lithium battery modules No. 1 to No. N; and a 48V lithium battery module 4 is connected to the busbar of a 48V power supply 1 and a 48V electrical device 2 through the energy network card.

[0065] like Figure 2 As shown, the energy network card 3 is internally provided with an anti-backflow circuit 6, a digital switch 7, an analog quantity acquisition system 8, a communication system 9, and a switch control system 10. The controller 5 is connected to the energy network card 3 via a communication link 11, so that the energy network card 3 can switch the batteries in and out, and dynamically reconstruct the connection relationship between the batteries.

[0066] like Figure 3 As shown, the connection between the controller 5 and the energy network card 3 is connected end to end using a simple communication link 11 consisting of two wires.

[0067] like Figure 4 As shown, the original signals in the controller 5 and the energy network card 3 include data signals and control signals. The original signals are coupled through the communication system 9 in the controller 5 or the energy network card 3 to generate a synthetic coupled signal. Through the communication link 11, the controller 5 or the communication system 9 in the energy network card 3 decouples the coupled signal to generate a decoupled signal.

[0068] The specific working principle is as follows:

[0069] 1.48V battery modules are connected to the DC bus in parallel. When the power supply is on, the power supply supplies power to the load and charges the battery module at the same time; when the power supply is off, the battery module supplies power to the load. If the voltages of the parallel battery modules are inconsistent, current circulation will occur between the modules, reducing the service life of the battery module, and in severe cases, it may cause overheating failure or fire accidents.

[0070] 2. When the reconfigurable battery network is put into use, when the battery system as a whole is in a charging state, the energy network card 3 controls the battery with high voltage to reduce the access time, or controls the battery that is discharging to stop discharging; when the battery system as a whole is in a discharging state, the energy network card 3 controls the battery with low voltage to reduce the access time, or controls the battery that is charging to stop charging. The above process changes the network to which the battery is connected, which is called reconfiguring the battery network.

[0071] 3. During the use of the battery, the energy network card 3 collects the battery charging and discharging status and battery voltage information through the internal analog quantity acquisition system 8, and couples the data information to the communication link 11 through the built-in communication system 9 of the energy network card 3.

[0072] 4. The controller 5 decouples the signal through the built-in communication system 9, extracts the data information of each battery in the communication link 11, parses the battery charging and discharging information of energy network cards 3 No. 1 to N, evaluates the charging and discharging status of the battery, and accumulates the current of each battery to calculate the charging and discharging status of the entire battery system.

[0073] 5. The controller 5 collects the voltage signals of each battery. When the system is in a discharging state, the ratio of the battery voltage to the voltage of the highest voltage battery is used as the duty cycle; when the system is in a charging state, the ratio of the voltage of the lowest voltage battery to the battery voltage is used as the duty cycle. From the above, it can be seen that when the system is in a discharging state, the duty cycle of the battery with the highest voltage is 100%, and when the system is in a charging state, the duty cycle of the battery with the lowest voltage is 100%.

[0074] 6. In addition, the energy network card 3 needs to be 1, 2, 3, ...N, and the corresponding frequencies are 1k, 2k, 3k, ...Nk.

[0075] 7. Through the above calculations, the frequency and duty cycle information of the corresponding energy network card 3 are calculated, and the control signals are coupled together through the built-in communication system 9 and sent to each energy network card 3 through the communication link 11.

[0076] 8. The energy network card 3 decouples the system through the built-in communication system 9, analyzes the frequency and duty cycle of its own signal, calculates the battery access time through the duty cycle, and switches the battery in and out to make the charge and discharge relationship between the battery and the system consistent, avoiding charge and discharge circulation between the batteries.

[0077] The energy network card 3 is used to control the time of input and output of the parallel batteries, that is, the batteries with high voltage are discharged more and the batteries with low voltage are discharged less; or the batteries with high voltage are charged less and the batteries with low voltage are charged more, so as to achieve dynamic balance between the batteries.

[0078] At present, the traditional DC 48V backup power field has the following shortcomings: 1. Long-term floating charge of the battery shortens the battery life; 2. When new and old batteries are mixed, circulation between the batteries is caused, further shortening the battery life, and even causing battery heating and safety problems. The present invention controls the input and output of parallel batteries through the energy network card. According to the performance of the battery, the original connection relationship of the battery is dynamically changed, which can completely solve the life and safety problems caused by battery floating charge and circulation, and greatly improve the safety and economy of the use of backup batteries. Through the communication control method of this patent, the workload of wiring is reduced and the signal rate and accuracy are improved.

[0079] The beneficial effects of the present invention are:

[0080] 1. It solves the problem of shortened battery life caused by traditional battery floating charge and the circulation problem of mixed use of new and old batteries.

[0081] 2. Solved the problem of complex communication and control lines between the controller and the energy network card during dynamic reconstruction of the battery.

[0082] Based on the same inventive concept, the embodiment of the present application also provides a method for dynamically reconfiguring a battery network for implementing the above-mentioned dynamic reconfiguration device of the battery network. The implementation scheme for solving the problem provided by the method is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more dynamic reconfiguration methods of the battery network provided below can refer to the limitations of the dynamic reconfiguration device of the battery network above, and will not be repeated here.

[0083] In an exemplary embodiment, a method for dynamically reconfiguring a battery network is provided, comprising:

[0084] Step S1: obtaining battery data of each battery in the battery module at the current moment; the battery data includes battery charge and discharge status, battery voltage information and battery current information.

[0085] Step S2: determining the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at the current moment and the battery current information.

[0086] S2 specifically includes:

[0087] Step S21: Calculate the total current of each battery module under the battery charge and discharge state at the current moment according to the battery current information of each battery in each battery module at the current moment; the total current under the battery charge and discharge state includes the total current under the battery charge state and the total current under the battery discharge state.

[0088] Step S22: determining the charge and discharge state of each of the battery modules according to a comparison result of the total current in the battery charging state and the total current in the battery discharging state.

[0089] Step S3: Determine the access time of each battery of each battery module according to the charge and discharge status of each battery module and the battery voltage information of each corresponding battery.

[0090] S3 specifically includes:

[0091] Step S31: Determine the charge and discharge status of each corresponding battery according to the charge and discharge status of each battery module; the charge and discharge status of each corresponding battery is consistent with the charge and discharge status of each battery module; when the charge and discharge status of the corresponding battery is inconsistent with the charge and discharge status of each battery module, the corresponding battery is cut out of the battery module.

[0092] Step S32: Determine the access time of each battery consistent with the charge and discharge state of each battery module according to the ratio of the battery voltage information of each battery to the corresponding highest battery voltage information.

[0093] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0094] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A dynamic reconstruction device for a battery network, characterized in that: The dynamic reconfiguration device of the battery network includes: a plurality of energy network cards and a controller; Each of the energy network cards is connected to a battery module; The controller is connected to each of the energy network cards via a communication link; The energy network card is used to collect battery data of each battery in the battery module at the current moment and transmit it to the controller; the battery data includes battery charging and discharging status, battery voltage information and battery current information; The controller is used to determine the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at a current moment and the battery current information, and to determine the access time of each battery in each battery module according to the charge and discharge state of each battery module and the corresponding battery voltage information of each battery.

2. The dynamic reconfiguration device for a battery network according to claim 1, characterized in that: Each of the energy network cards includes: an anti-backflow circuit, a digital switch, an analog quantity acquisition system, a communication system and a switch control system; One end of the anti-backflow circuit, one end of the digital switch, and one end of the analog quantity acquisition system are all connected to the battery module; The other end of the anti-backflow circuit and the other end of the digital switch are both connected to one end of the switch control system; The other end of the analog quantity acquisition system and the other end of the switch control system are both connected to one end of the communication system; The other end of the communication system is connected to the controller via a communication link.

3. The dynamic reconfiguration device for a battery network according to claim 2, characterized in that: The communication system is composed of a main circuit including a main coil and a secondary circuit including two secondary coils; the main coil and the two secondary coils form a transformer; The auxiliary circuit includes a high-pass filter and a low-pass filter; the output of one auxiliary coil passes through the high-pass filter to obtain a high-frequency data signal; the output of the other auxiliary coil passes through the low-pass filter to obtain a low-frequency control signal.

4. The dynamic reconfiguration device for a battery network according to claim 2, characterized in that: The analog quantity acquisition system includes a voltage acquisition system and a current acquisition system.

5. The dynamic reconfiguration device of the battery network according to claim 2, characterized in that: The switch control system includes a single chip microcomputer and a peripheral circuit of the single chip microcomputer.

6. The dynamic reconfiguration device for a battery network according to claim 1, characterized in that: The communication link is a twisted pair.

7. A method for dynamic reconstruction of a battery network, characterized in that: The dynamic reconstruction method of the battery network includes: Obtaining battery data of each battery in the battery module at the current moment; the battery data includes battery charge and discharge status, battery voltage information, and battery current information; Determine the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at the current moment and the battery current information; The access time of each of the multiple batteries in each of the battery modules is determined according to the charge and discharge status of each of the battery modules and the battery voltage information of the corresponding batteries.

8. The method for dynamic reconfiguration of a battery network according to claim 7, characterized in that: Determining the charge and discharge state of each battery module according to the battery charge and discharge state of each battery in each battery module at a current moment and the battery current information specifically includes: According to the battery current information of each battery in each battery module at the current moment, the total current of each battery module under the battery charge and discharge state at the current moment is calculated; the total current under the battery charge and discharge state includes the total current of the battery under the battery charge state and the total current of the battery under the battery discharge state; The charge and discharge state of each battery module is determined according to a comparison result of the total current of the battery in the charging state and the total current of the battery in the discharging state.

9. The method for dynamic reconfiguration of a battery network according to claim 7, characterized in that: Determining the access time of each battery in each battery module according to the charge and discharge state of each battery module and the battery voltage information of each corresponding battery, specifically includes: Determine the charge and discharge state of each corresponding battery according to the charge and discharge state of each battery module; the charge and discharge state of each corresponding battery is consistent with the charge and discharge state of each battery module; when the charge and discharge state of the corresponding battery is inconsistent with the charge and discharge state of each battery module, cut the corresponding battery out of the battery module; According to the ratio of the battery voltage information of each battery to the corresponding highest battery voltage information, the connection time of each battery consistent with the charge and discharge state of each battery module is determined.