CN118151026A - Battery management system, state of charge calculation method, electronic device, and storage medium - Google Patents
Battery management system, state of charge calculation method, electronic device, and storage medium Download PDFInfo
- Publication number
- CN118151026A CN118151026A CN202410297930.1A CN202410297930A CN118151026A CN 118151026 A CN118151026 A CN 118151026A CN 202410297930 A CN202410297930 A CN 202410297930A CN 118151026 A CN118151026 A CN 118151026A
- Authority
- CN
- China
- Prior art keywords
- state
- charge
- value
- module
- mcu module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004364 calculation method Methods 0.000 title claims abstract description 67
- 238000005070 sampling Methods 0.000 claims abstract description 50
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 claims abstract description 29
- 229910052744 lithium Inorganic materials 0.000 claims abstract description 29
- 230000005059 dormancy Effects 0.000 claims abstract description 21
- 230000007958 sleep Effects 0.000 claims description 40
- 238000000034 method Methods 0.000 claims description 23
- 208000022249 Sleep-Wake Transition disease Diseases 0.000 claims description 8
- 230000004617 sleep duration Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- 230000010354 integration Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 10
- 239000000306 component Substances 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 238000012937 correction Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000008358 core component Substances 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000004622 sleep time Effects 0.000 description 2
- 239000002253 acid Substances 0.000 description 1
- GELKBWJHTRAYNV-UHFFFAOYSA-K lithium iron phosphate Chemical compound [Li+].[Fe+2].[O-]P([O-])([O-])=O GELKBWJHTRAYNV-UHFFFAOYSA-K 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Secondary Cells (AREA)
Abstract
The invention relates to a battery management system, a charge state calculation method, electronic equipment and a storage medium, belonging to the technical field of lithium batteries, wherein the battery management system comprises: the device comprises a power supply module, a sampling module, a first MCU module, a second MCU module, a shunt and a filter; the power module, the sampling module and the shunt are respectively connected with the lithium battery module; the VCC output end of the power supply module is connected with the first MCU module, and the constant power output end of the power supply module is connected with the second MCU module; the current divider is respectively connected with the filter and the second MCU module. According to the battery management system provided by the invention, the state of charge value is calculated through the first MCU module and the second MCU module in the working period, the difference value between the first MCU module and the second MCU module is used for calibration to obtain the effective state of charge value, the state of charge variation value is calculated through the second MCU module in the dormancy period, and the value is sent to the first MCU module at the wake-up time, so that the state of charge calculation result is more reliable and accurate.
Description
Technical Field
The present invention relates to the field of lithium batteries, and in particular, to a battery management system, a state of charge calculation method, an electronic device, and a storage medium.
Background
With the advent of electric surge of automobiles, more and more electric automobiles adopt low-voltage lithium batteries (12V or 24V) to replace the original lead-acid storage batteries to provide energy sources for power-on starting of the whole automobile and low-voltage network of the whole automobile. The low-voltage lithium battery is used as a power supply source of all ECUs of the whole vehicle, and the calculation accuracy of a State of Charge (SOC) of the low-voltage lithium battery is required to be controlled at a higher level, and because the SOC is inaccurate in calculation, the battery overcharge or overdischarge faults of the low-voltage lithium are extremely easy to occur, so that the safety risk is caused; meanwhile, the lithium battery can be disconnected from a main loop due to overcharge/overdischarge and over-high/under-low protection of the SOC due to inaccurate SOC, and energy supply is cut off, so that all ECUs of the whole vehicle are powered off, and flameout and sit of the whole vehicle are caused.
In the prior art, SOC calculation of the Battery management system (Battery MANAGEMENT SYSTEM, BMS) has the following problems:
The lithium battery SOC calculation is mainly realized by means of the cooperation of the sampling chip AFE and the MCU chip in the working period, and the BMS does not work in the dormant period, so that the SOC calculation is not performed. The existing practice is addressed only indirectly, i.e. by periodic calibration of the sleep period SOC by static OCV correction using open circuit voltage methods. However, the static correction method needs to meet various conditions to trigger, and the lithium iron phosphate battery cannot be subjected to OCV correction in a platform period. The SOC change during dormancy cannot be accurately obtained, so that the SOC precision of the lithium battery is affected, and the battery overcharge and overdischarge faults are caused.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a battery management system, a state of charge calculation method, an electronic device, and a storage medium for solving the problem of low state of charge calculation accuracy in the prior art.
In order to solve the above-described problems, the present invention provides a battery management system including:
the device comprises a power supply module, a sampling module, a first MCU module, a second MCU module, a shunt and a filter;
the power module, the sampling module and the shunt are respectively connected with the lithium battery module;
The VCC output end of the power supply module is connected with the first MCU module, and the constant power output end of the power supply module is connected with the second MCU module; the first MCU module is used for carrying out charge state calculation during power-on operation; the second MCU module is used for carrying out charge state calculation during power-on operation and power-off dormancy; the shunt is respectively connected with the filter and the second MCU module;
The sampling module is connected with the filter.
In one possible implementation, the sampling module and the first MCU module communicate through SPI;
the first MCU module and the second MCU module communicate through URAT.
The invention also provides a charge state calculating method which is applied to the battery management system described in any of the above, and comprises the following steps:
Under the condition of power-on operation, acquiring current data through a first MCU module and calculating a first state of charge value at the current moment, and acquiring current data through a second MCU module and calculating a second state of charge value at the current moment;
Determining a difference between the first state of charge value and the second state of charge value;
And under the condition that the difference value is determined to be in a preset range, taking the first state of charge value as a state of charge effective value at the current moment.
In one possible implementation manner, the obtaining, by the first MCU module, the current data and calculating the first state of charge value at the current time, and obtaining, by the second MCU module, the current data and calculating the second state of charge value at the current time, includes:
and calculating the first charge state value and the second charge state value through an ampere-hour integration method. In one possible implementation, the expression of the first state of charge value is as follows:
SOC1T1=SOC1T0-SOC1ΔT
Wherein, SOC1 T1 represents a first state of charge value, T0 represents an initial time, T1 represents a current time, Δt represents a time interval between the current time and the initial time, SOC1 T0 represents a state of charge value at the initial time, SOC1 ΔT represents a state of charge variation value within the time interval, η represents a charge/discharge efficiency, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
In one possible implementation, the method further includes:
under the condition of power-down dormancy, acquiring current data through a first MCU module and calculating a state-of-charge effective value at the beginning moment of dormancy, and acquiring current data through a second MCU module and calculating a state-of-charge variation value in the dormancy time;
And obtaining the state of charge effective value at the sleep ending time based on the state of charge effective value at the sleep starting time and the state of charge variation value in the sleep duration.
In one possible implementation, the expression of the state of charge variation value in the sleep period is as follows:
The SOC2 ΔT′ represents a state of charge variation value within a sleep period, Δt' represents a sleep period, η represents a charge-discharge efficiency, T2 represents a sleep start time, T3 represents a sleep end time, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
In one possible implementation, the expression of the state of charge valid value at the sleep end time is as follows:
SOCT3=SOC1T2-SOC2ΔT′
The SOC T3 represents a state-of-charge effective value at the sleep end time, the SOC1 T2 represents a state-of-charge effective value at the sleep start time, and the SOC2 ΔT′ represents a state-of-charge variation value within the sleep duration.
In another aspect, the present invention also provides an electronic device comprising a memory and a processor, wherein,
The memory is used for storing programs;
The processor is coupled to the memory, and is configured to execute the program stored in the memory, so as to implement the state of charge calculation method in any of the foregoing implementations.
In another aspect, the present invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the state of charge calculation method described in any of the above implementations.
The beneficial effects of the invention are as follows: the battery management system comprises a power supply module, a sampling module, a first MCU module, a second MCU module, a shunt and a filter, wherein the VCC output end of the power supply module is connected with the first MCU module, so that the first MCU module can sample current and calculate the state of charge when the system is electrified and operates, the constant-voltage output end of the power supply module is connected with the second MCU module, the second MCU module is always in a working state and is not electrified, and the current sampling and the state of charge calculation can be performed at any time when the system is electrified and operates in a power-down dormancy state, so that the state of charge value can be calculated simultaneously through the first MCU module and the second MCU module during the normal power-on period of the system, and the state of charge variation value can be accurately obtained during the dormancy period of the system through the second MCU module, thereby ensuring that the state of charge calculation result is more reliable and accurate.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a battery management system according to an embodiment of the present invention;
fig. 2 is a schematic connection diagram of an embodiment of a battery management system and a lithium battery module according to the present invention;
FIG. 3 is a flowchart of a method for calculating a state of charge according to an embodiment of the present invention;
FIG. 4 is a second flowchart of a method of an embodiment of a state of charge calculation method according to the present invention;
FIG. 5 is a third flowchart of a method of an embodiment of a state of charge calculation method according to the present invention;
Fig. 6 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the embodiments of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more. "and/or", describes an association relationship of an associated object, meaning that there may be three relationships, for example: a and/or B may represent: a exists alone, A and B exist together, and B exists alone.
References to "first," "second," etc. in the embodiments of the present invention are for descriptive purposes only and are not to be construed as indicating or implying a relative importance or the number of technical features indicated. Thus, a technical feature defining "first", "second" may include at least one such feature, either explicitly or implicitly.
Fig. 1 is a schematic structural diagram of an embodiment of a battery management system according to the present invention, where, as shown in fig. 1, the battery management system according to the present invention includes:
A power supply module 110, a sampling module 120, a first MCU module 130, a second MCU module 140, a shunt 150, and a filter 160;
The power module 110, the sampling module 120, and the shunt 150 are respectively connected with a lithium battery module;
The VCC output end of the power supply module 110 is connected to the first MCU module 130, and the constant power output end of the power supply module 110 is connected to the second MCU module 140; the first MCU module 130 is configured to perform state of charge calculation during power-on operation; the second MCU module 140 is configured to perform state of charge calculation during power-on operation and power-off sleep;
the shunt 150 is respectively connected with the filter 160 and the second MCU module 140;
the sampling module 120 is connected to the filter 160.
Compared with the prior art, the battery management system provided by the embodiment of the invention comprises a power supply module, a sampling module, a first MCU module, a second MCU module, a current divider and a filter, wherein the VCC output end of the power supply module is connected with the first MCU module, so that the first MCU module can sample current and calculate the state of charge when the system is electrified and operates, the constant-electricity output end of the power supply module is connected with the second MCU module, the second MCU module is always in a working state and is not electrified, and the current sampling and the state of charge calculation can be carried out at any time when the system is electrified and is in a power-down dormancy, so that the state of charge value can be calculated simultaneously through the first MCU module and the second MCU module during normal power-up working of the system, and the state of charge variation value can be accurately obtained through the second MCU module during the dormancy of the system, thereby ensuring that the state of charge calculation result is more reliable and accurate.
In some embodiments of the present invention, the sampling module and the first MCU module communicate through SPI;
the first MCU module and the second MCU module communicate through URAT.
The first MCU module sends an instruction to control dormancy and awakening of the sampling module through SPI communication, receives temperature, voltage and current sampling data sent by the sampling module, and executes SOC calculation.
And the first MCU module and the second MCU module are in information interaction through URAT serial communication, and the first MCU module receives the SOC value sent by the second MCU module for comparison and verification.
Optionally, fig. 2 is a schematic connection diagram of an embodiment of the battery management system and the lithium battery module according to the present invention, as shown in fig. 2, the battery management system 100 and the lithium battery module 200 may be connected by a bus bar bat+/BAT-/GND.
In the battery management system 100, the power module may be an SBC power module; the sampling module may be an AFE sampling module; the Filter may be a Filter; the first MCU module, namely MCU01 is a main MCU in the battery management system, is a control center of the BMS, is responsible for power on and power off scheduling, system control and SOC calculation of the whole system, and is a core component of the whole system; the second MCU module, namely MCU02 is an auxiliary MCU in the battery management system and is a low-power consumption MCU chip with high-precision current acquisition; the S1 shunt is a key component for measuring the current of the main loop, and can convert a current signal into a voltage signal IC+/IC-.
The lithium battery module 200 is composed of a plurality of lithium battery cells connected in series for providing external energy, which is also a body that needs to calculate SOC state of charge.
The lithium battery module is connected with the power module and provides a power supply signal for the power module; the battery temperature signal is provided for a temperature sampling port in the sampling module, and the battery cell voltage signal is provided for a voltage sampling port in the sampling module.
Meanwhile, the cathode of a first Cell1 of the lithium battery module is connected to one end of the S1 current divider through a bus bar BAT-, and the anode of the highest Cell is connected to the bus bar BAT+.
The power supply module is a power supply module in the battery management system, the power supply module supplies power for the first MCU module and the second MCU module in the system, the input end of the power supply module is connected to the lithium battery module to take power, the output end VCC is connected to the first MCU module, and the output end of the power supply module is always electrically connected to the second MCU module.
The AFE sampling module is a sampling module in the battery management system and is responsible for sampling signals such as temperature, single voltage, main loop current and the like in the battery system. The current sampling port is connected to an external Filter, and the IC+/IC-of the Filter is respectively connected to two ends of the S1 shunt; the AFE sampling module is in information interaction with the first MCU module through SPI communication.
The second MCU module is an auxiliary MCU in the battery management system, is a low-power consumption MCU chip with high-precision current collection, is powered by constant electricity, does not lower electricity to sleep in continuous operation for 24 hours, and is connected to two ends of the current divider S1 through IC+/IC-respectively for current sampling, and then the second MCU module executes SOC calculation by an internal algorithm program.
The first MCU module is a main MCU in the battery management system, is a control center of the BMS, is responsible for power on and power off scheduling, system control and SOC calculation of the whole system, and is a core component of the whole system.
The first MCU module sends an instruction to control dormancy and awakening of the sampling module through SPI communication, receives temperature, voltage and current sampling data sent by the sampling module, and executes SOC calculation; and the first MCU module and the second MCU module are in information interaction through URAT serial communication, and the first MCU module receives the SOC value sent by the second MCU module for comparison and verification.
The S1 current divider is arranged on the negative electrode main loop, one side terminal of the current divider is connected with the bus bar BAT-and the other side terminal of the current divider is connected with the bus bar GND (namely the whole vehicle ground is also called KL 31), and sampling signals IC-/IC+ of the current divider are respectively connected to the current sampling ports of the Filter and the second MCU module at the same time.
The battery management system provided by the invention consists of a main MCU module (namely a first MCU module) and an auxiliary MCU module (namely a second MCU module), wherein the second MCU module is a low-power MCU chip with a power sampling function, is always in a working state and is not powered down, current sampling and SOC calculation are carried out at any time, during the normal working period of the BMS system, the first MCU module and the second MCU module calculate the SOC at the same time, the SOC1 calculated by the first MCU module is taken as the main part, the SOC2 calculated by the second MCU module is taken as the auxiliary part, and the SOC2 is used for judging the effectiveness of a threshold value, so that the SOC result is more reliable and accurate, and the dynamic SOC calculation precision is improved; and in the sleep period of the BMS, the SOC2 calculated by the second MCU module is taken as the main component, and the variation value of the SOC2 in the sleep period is sent to the first MCU module at the wake-up time, so that the high-precision detection of the static current on the main loop is realized, the dynamic calculation of the SOC is carried out, and the precision of the SOC in the sleep period is improved.
Fig. 3 is one of the flow charts of the method of the embodiment of the state of charge calculation method provided by the present invention, as shown in fig. 3, the state of charge calculation method includes:
s301, under the condition of power-on operation, acquiring current data through a first MCU module and calculating a first state of charge value at the current moment, and acquiring current data through a second MCU module and calculating a second state of charge value at the current moment;
S302, determining a difference value between the first state of charge value and the second state of charge value;
and S303, taking the first state of charge value as a state of charge effective value at the current moment under the condition that the difference value is determined to be in a preset range.
The execution subject of the state of charge calculation method provided by the present invention may be the above-described battery management system.
According to the state of charge calculation method provided by the embodiment of the invention, during power-on operation, the first MCU module and the second MCU module are used for simultaneously obtaining current data, respectively calculating the first state of charge value and the second state of charge value at the current moment, and calibrating the state of charge value by the difference value of the first state of charge value and the second state of charge value to obtain the effective state of charge value, namely, during the work of the BMS, the method for calculating and calibrating the main SOC and the auxiliary SOC is provided, so that the SOC result is more reliable and accurate, and the dynamic SOC precision is improved.
In some embodiments of the present invention, the obtaining, by the first MCU module, the current data and calculating the first state of charge value at the current time, and obtaining, by the second MCU module, the current data and calculating the second state of charge value at the current time, includes:
And calculating the first charge state value and the second charge state value through an ampere-hour integration method. In some embodiments of the invention, the expression of the first state of charge value is as follows:
SOC1T1=SOC1T0-SOC1ΔT
Wherein, SOC1 T1 represents a first state of charge value, T0 represents an initial time, T1 represents a current time, Δt represents a time interval between the current time and the initial time, SOC1 T0 represents a state of charge value at the initial time, SOC1 ΔT represents a state of charge variation value within the time interval, η represents a charge/discharge efficiency, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
Fig. 4 is a second flowchart of a method of an embodiment of a state of charge calculation method according to the present invention, as shown in fig. 4, in a BMS power-on operation condition, the state of charge calculation method includes:
S401, when the power supply module wakes up at the initial time of T0, the power supply module starts working, VCC outputs power normally with normal electricity, the first MCU module wakes up with the second MCU module along with the power on, and enters into a working state, and meanwhile, the first MCU module wakes up the sampling module through SPI communication.
And then, the sampling module and the sampling module in the second MCU module collect the signal IC+/IC-on the shunt S1 at the same sampling frequency, the sampling module converts the collected data into a real-time current value I, the I value is sent to the first MCU module through SPI communication, and the sampling module in the second MCU module converts the collected data into the real-time current value I and then provides the real-time current value I for algorithm program call.
S402, the first MCU module and the second MCU module calculate the dynamic SOC through an ampere-hour integration method, the calculation result of the first MCU module is defined as a first charge state value and is expressed as SOC1, and the calculation result of the first MCU module is defined as a second charge state value and is expressed as SOC2.
The expression of the first state of charge value is as follows:
SOC1T1=SOC1T0-SOC1ΔT
Wherein, SOC1 T1 represents a first state of charge value, T0 represents an initial time, T1 represents a current time, Δt represents a time interval between the current time and the initial time, SOC1 T0 represents a state of charge value at the initial time, SOC1 ΔT represents a state of charge variation value within the time interval, η represents a charge/discharge efficiency, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
The calculation methods of the first charge state value and the second charge state value are the same, namely in the embodiment of the invention, 2 different chips are used for collecting the same current of the main loop and are used for mutually checking the results.
At the time of S403 and T1, the second MCU module sends the calculated result SOC2 to the first MCU module through URAT communication, the first MCU module receives the sent value and compares the sent value with the self-calculated result to obtain a difference value delta SOC of the sent value and the calculated result, and the expression is as follows:
ΔSOC=|SOC1-SOC2|
if the delta SOC result is within the set threshold deviation range, the result is considered to be effective, and the first MCU module directly adopts the self-calculation result SOC1 as an effective value.
If the delta SOC result exceeds the set threshold range, the first MCU module is considered to have large calculation result deviation, and the first MCU module still adopts the SOC1 result as the display SOC value at the moment, but at the same time, the large SOC error alarm is triggered, the alarm is sent to the whole vehicle, full charge is requested, and the SOC is corrected through one full charge opportunity.
According to the state of charge calculation method provided by the embodiment of the invention, during power-on operation, the first MCU module and the second MCU module are used for simultaneously obtaining current data, respectively calculating the first state of charge value and the second state of charge value at the current moment, and calibrating the state of charge value by the difference value of the first state of charge value and the second state of charge value to obtain the effective state of charge value, namely, during the BMS working period, a main and auxiliary SOC calculation and calibration method is provided, so that an SOC result is more reliable and accurate, and dynamic SOC precision is improved.
In some embodiments of the invention, the method further comprises:
under the condition of power-down dormancy, acquiring current data through a first MCU module and calculating a state-of-charge effective value at the beginning moment of dormancy, and acquiring current data through a second MCU module and calculating a state-of-charge variation value in the dormancy time;
And obtaining the state of charge effective value at the sleep ending time based on the state of charge effective value at the sleep starting time and the state of charge variation value in the sleep duration.
In some embodiments of the present invention, the expression of the state of charge variation value in the sleep period is as follows:
The SOC2 ΔT′ represents a state of charge variation value within a sleep period, Δt' represents a sleep period, η represents a charge-discharge efficiency, T2 represents a sleep start time, T3 represents a sleep end time, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
In some embodiments of the present invention, the expression of the state of charge valid value at the sleep end time is as follows:
SOCT3=SOC1T2-SOC2ΔT′
The SOC T3 represents a state-of-charge effective value at the sleep end time, the SOC1 T2 represents a state-of-charge effective value at the sleep start time, and the SOC2 ΔT′ represents a state-of-charge variation value within the sleep duration.
Fig. 5 is a third flowchart of a method of an embodiment of a state of charge calculation method according to the present invention, as shown in fig. 5, in a power-on sleep condition of a BMS, the state of charge calculation method includes:
S501, when the BMS is powered down and dormant at the moment of T2, the power module firstly enters a power-down state, and most power outputs such as VCC are closed, but still constant power output is reserved.
At this time, the first MCU module power is powered down to sleep, the first MCU module enters into the power down state through SPI communication control sampling module before power down, AFE stops current sampling, the second MCU module receives the power down signal sent by the first MCU module through SPI communication, and the current moment T2 is recorded immediately.
At time T2, the current calculated value of the first MCU module is SOC1 T2, the current calculated value of the second MCU module is SOC2 T2, and the effective value of SOC at time T2 is calculated to be SOCT2, i.e. SOC T2=SOC1T2, according to execution of steps S402 and S403.
And after the time of S502 and T2, the first MCU module and the sampling module enter a dormant state, and at the moment, the second MCU module continues to maintain a low-power-consumption working mode, still collects current signals at a fixed frequency, and continues to execute SOC2 calculation.
And S503, when the BMS is electrified to wake up at the moment T3, the sleep time length is delta T '=T3-T2, and the second MCU module calculates the state of charge variation value SOC2 ΔT′ of the sleep time length delta T' according to the following formula, wherein the expression is as follows:
The SOC2 ΔT′ represents a state of charge variation value within a sleep period, Δt' represents a sleep period, η represents a charge-discharge efficiency, T2 represents a sleep start time, T3 represents a sleep end time, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
S504, a BMS system wakes up at a time T3, a power supply module is electrified to work, a first MCU module is electrified to work, a second MCU module is immediately waken up, a state of charge variation value SOC2 ΔT′ sent by the first MCU module is obtained at the same time, the state of charge variation value SOC2 ΔT′ is used as a state of charge variation value in a system dormancy period, the following calculation of the SOC at the current time, namely the state of charge effective value at the dormancy end time, is executed, and the expression is as follows:
SOCT3=SOC1T2-SOC2ΔT′
The SOC T3 represents a state-of-charge effective value at the sleep end time, the SOC1 T2 represents a state-of-charge effective value at the sleep start time, and the SOC2 ΔT′ represents a state-of-charge variation value within the sleep duration.
After the time of S505 and T3, the BMS system enters a power-on operation condition and continues to operate according to the steps S401 to S403 in the power-on operation condition.
According to the state of charge calculation method provided by the embodiment of the invention, the state of charge variation value is calculated through the second MCU module in the sleep period of the system, and the state of charge variation value in the sleep period is sent to the first MCU module at the wake-up time, so that the state of charge calculation result is more reliable and accurate.
The charge state calculating method and the battery management system provided by the invention have the following beneficial effects:
1. during the sleep period of the BMS, the high-precision detection of the static current on the main loop is realized, the dynamic calculation of the SOC is carried out, and the precision of the SOC during the sleep period is improved.
2. During the BMS working period, a main and auxiliary SOC calculating and calibrating method is provided, so that an SOC result is more reliable and accurate, and the dynamic SOC precision is improved.
3. The system proposal of double MCUs (one main and one auxiliary) is provided for SOC calculation, and synchronous comparison and verification of SOC results can be realized, thereby meeting the functional safety requirement of SOC calculation.
As shown in fig. 6, the present invention further provides an electronic device 600 accordingly. The electronic device 600 comprises a processor 601, a memory 602 and a display 603. Fig. 6 shows only a portion of the components of the electronic device 600, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
The processor 601 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 602, such as the state of charge calculation method of the present invention.
In some embodiments, the processor 601 may be a single server or a group of servers. The server farm may be centralized or distributed. In some embodiments, the processor 601 may be local or remote. In some embodiments, the processor 601 may be implemented in a cloud platform. In some embodiments, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multiple cloud, or the like, or any combination thereof.
The memory 602 may be an internal storage unit of the electronic device 600 in some embodiments, such as a hard disk or memory of the electronic device 600. The memory 602 may also be an external storage device of the electronic device 600 in other embodiments, such as a plug-in hard disk provided on the electronic device 600, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like.
Further, the memory 602 may also include both internal storage units and external storage devices of the electronic device 600. The memory 602 is used for storing application software and various types of data for installing the electronic device 600.
The display 603 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch, or the like in some embodiments. The display 603 is used for displaying information at the electronic device 600 and for displaying a visual user interface. The components 601-603 of the electronic device 600 communicate with each other via a system bus.
In one embodiment, when the processor 601 executes the state of charge calculation program in the memory 602, the following steps may be implemented:
Under the condition of power-on operation, acquiring current data through a first MCU module and calculating a first state of charge value at the current moment, and acquiring current data through a second MCU module and calculating a second state of charge value at the current moment;
Determining a difference between the first state of charge value and the second state of charge value;
And under the condition that the difference value is determined to be in a preset range, taking the first state of charge value as a state of charge effective value at the current moment.
It should be understood that: the processor 601 may perform other functions in addition to the above functions when executing the state of charge calculation program in the memory 602, see in particular the description of the corresponding method embodiments above.
Further, the type of the electronic device 600 is not particularly limited, and the electronic device 600 may be a portable electronic device such as a mobile phone, a tablet computer, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a wearable device, a laptop (laptop), etc. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices that carry IOS, android, microsoft or other operating systems. The portable electronic device described above may also be other portable electronic devices, such as a laptop computer (laptop) or the like having a touch-sensitive surface, e.g. a touch panel. It should also be appreciated that in other embodiments of the invention, the electronic device 600 may not be a portable electronic device, but rather a desktop computer having a touch-sensitive surface (e.g., a touch panel).
Accordingly, the embodiments of the present application further provide a computer readable storage medium, where the computer readable storage medium is used to store a computer readable program or instructions, and when the program or instructions are executed by a processor, the steps or functions in the state of charge calculation method provided in the foregoing method embodiments can be implemented.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program stored in a computer readable storage medium to instruct related hardware (e.g., a processor, a controller, etc.). The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The battery management system, the state of charge calculation method, the electronic device and the storage medium provided by the invention are described in detail, and specific examples are applied to illustrate the principles and the implementation modes of the invention, and the description of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.
Claims (10)
1. A battery management system, comprising:
the device comprises a power supply module, a sampling module, a first MCU module, a second MCU module, a shunt and a filter;
the power module, the sampling module and the shunt are respectively connected with the lithium battery module;
The VCC output end of the power supply module is connected with the first MCU module, and the constant power output end of the power supply module is connected with the second MCU module; the first MCU module is used for carrying out charge state calculation during power-on operation; the second MCU module is used for carrying out charge state calculation during power-on operation and power-off dormancy;
the shunt is respectively connected with the filter and the second MCU module;
The sampling module is connected with the filter.
2. The battery management system of claim 1, wherein,
The sampling module and the first MCU module are communicated through SPI;
the first MCU module and the second MCU module communicate through URAT.
3. A state of charge calculation method applied to the battery management system according to claim 1 or 2, comprising:
Under the condition of power-on operation, acquiring current data through a first MCU module and calculating a first state of charge value at the current moment, and acquiring current data through a second MCU module and calculating a second state of charge value at the current moment;
Determining a difference between the first state of charge value and the second state of charge value;
And under the condition that the difference value is determined to be in a preset range, taking the first state of charge value as a state of charge effective value at the current moment.
4. A state of charge calculation method according to claim 3, wherein the obtaining, by the first MCU module, the current data and calculating the first state of charge value at the current time, and obtaining, by the second MCU module, the current data and calculating the second state of charge value at the current time, comprises:
and calculating the first charge state value and the second charge state value through an ampere-hour integration method.
5. The state of charge calculation method according to claim 4, wherein the expression of the first state of charge value is as follows:
SOC1T1=SOC1T0-SOC1ΔT
Wherein, SOC1 T1 represents a first state of charge value, T0 represents an initial time, T1 represents a current time, Δt represents a time interval between the current time and the initial time, SOC1 T0 represents a state of charge value at the initial time, SOC1 ΔT represents a state of charge variation value within the time interval, η represents a charge/discharge efficiency, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
6. A state of charge calculation method according to claim 3, further comprising:
under the condition of power-down dormancy, acquiring current data through a first MCU module and calculating a state-of-charge effective value at the beginning moment of dormancy, and acquiring current data through a second MCU module and calculating a state-of-charge variation value in the dormancy time;
And obtaining the state of charge effective value at the sleep ending time based on the state of charge effective value at the sleep starting time and the state of charge variation value in the sleep duration.
7. The state of charge calculation method according to claim 6, wherein the expression of the state of charge variation value in the sleep period is as follows:
The SOC2 ΔT′ represents a state of charge variation value within a sleep period, Δt' represents a sleep period, η represents a charge-discharge efficiency, T2 represents a sleep start time, T3 represents a sleep end time, C 0 represents a current rated capacity of a battery in the lithium battery module, and I (T) represents a current value at time T.
8. The state of charge calculation method according to claim 7, wherein the expression of the state of charge effective value at the sleep end time is as follows:
SOCT3=SOC1T2-SOC2ΔT′
The SOC T3 represents a state-of-charge effective value at the sleep end time, the SOC1 T2 represents a state-of-charge effective value at the sleep start time, and the SOC2 ΔT′ represents a state-of-charge variation value within the sleep duration.
9. An electronic device comprising a memory and a processor, wherein,
The memory is used for storing programs;
The processor, coupled to the memory, is configured to execute the program stored in the memory to implement the state of charge calculation method according to any one of claims 3 to 8.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the state of charge calculation method according to any one of claims 3 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410297930.1A CN118151026A (en) | 2024-03-15 | 2024-03-15 | Battery management system, state of charge calculation method, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410297930.1A CN118151026A (en) | 2024-03-15 | 2024-03-15 | Battery management system, state of charge calculation method, electronic device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118151026A true CN118151026A (en) | 2024-06-07 |
Family
ID=91293382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410297930.1A Pending CN118151026A (en) | 2024-03-15 | 2024-03-15 | Battery management system, state of charge calculation method, electronic device, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118151026A (en) |
-
2024
- 2024-03-15 CN CN202410297930.1A patent/CN118151026A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107179505B (en) | Battery health state detection device and method | |
KR102165937B1 (en) | Method and apparatus for managing battery | |
WO2018196121A1 (en) | Method and device for use in determining internal short circuit of battery | |
CN111579998B (en) | Battery SOC calibration method and device and storage medium | |
WO2014065615A1 (en) | Apparatus and method for estimating state of charge of battery | |
WO2019184847A1 (en) | Electric vehicle and method and device for updating parameter of power battery in static state | |
CN103389468A (en) | Battery state-of-charge observer | |
CN106025399A (en) | Automotive storage battery monitoring method and system | |
EP2881749B1 (en) | Control method and control device using same | |
CN111257763A (en) | Method and system for calculating remaining capacity of battery | |
JP2000121710A (en) | Battery control device for backup power supply and method for diagnosing deterioration of secondary battery | |
CN103460063B (en) | Battery voltage measurement | |
WO2022267825A1 (en) | Charging control method, charging control device, and charging device | |
CN114158115B (en) | Power supply management method, device and system of wireless test equipment | |
CN107546433B (en) | Battery information processing method and processing device | |
CN113659685A (en) | Small-size battery management system of simulation electric automobile battery charge-discharge management | |
CN104051811B (en) | A kind of floating charge method and system of battery | |
CN116243189A (en) | Battery remaining capacity determining method and device, electronic equipment and storage medium | |
CN118151026A (en) | Battery management system, state of charge calculation method, electronic device, and storage medium | |
CN210471206U (en) | Intelligent bracelet capable of detecting battery curve parameters | |
EP3712007A1 (en) | Conversion circuit, battery equalization system, and battery management system | |
CN114379419A (en) | Electric automobile and power battery balancing method thereof, battery management system and medium | |
CN116134694A (en) | Method for charging power battery and battery management system | |
WO2020024800A1 (en) | Method and device for displaying electric quantities of dual batteries | |
CN203326645U (en) | Large power battery pack management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |