Control method for battery management system
By designing multiple control modes and fault handling mechanisms in the lithium battery management system, real-time monitoring and automatic control of battery status, the problem of insufficient battery management in the existing technology is solved, and the safety and life of the battery is improved. .
Patent Information
- Application Number
- CN202411109217.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-15
AI Technical Summary
The existing lithium battery management system has a single control method, making it difficult to effectively protect the battery, especially in the event of a sampling system failure, which cannot meet safety requirements.
A control method for battery management system is designed to realize real-time monitoring and automatic battery status by initializing, real-time acquisition of battery data, fault detection, mode switching (charging, pre-charge, discharge, current limiting, etc.) and fault processing mode. Control to ensure battery safety.
It effectively reduces battery losses, improves battery usage safety, and meets the battery management needs of high-voltage users.
Smart Images

Figure CN118953253A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lithium batteries, and in particular to a control method for a battery management system. Background Art
[0002] With the development of the economy, people's living standards and quality of life are constantly improving. RVs are favored by many people. However, during the use of RVs, some on-board or off-board electrical equipment need to be powered. Currently, most power supply batteries are lead-acid batteries. For users with low power consumption, there is basically no big problem. However, for users with high power consumption, the energy density of lead-acid batteries is low, which is not enough. Lithium batteries are needed to increase the energy density of the batteries. Lithium batteries require a battery management system to prevent the battery from overcharging and over-discharging, extend the battery life, and monitor the battery status. The existing lithium battery management system has a single control method and cannot effectively protect the battery when the system fails, making it difficult to meet safety requirements.
[0003] Therefore, it is very important for those skilled in the art to design a control method for a battery management system that can effectively improve the safety of RV batteries. Summary of the invention
[0004] The technical problem to be solved by the embodiments of the present invention is to provide a control method for a battery management system to solve the problem that the management system in the prior art has a single control mode and cannot effectively protect the battery when the sampling system fails, making it difficult to meet safety requirements.
[0005] The present invention discloses a control method for a battery management system, which comprises the following steps:
[0006] Initialize and collect battery voltage, current and temperature data in real time;
[0007] Perform fault detection and enter fault handling mode if a fault occurs;
[0008] If no fault occurs, determine whether the battery is connected to the charger;
[0009] If a charger is connected, the activation MOS tube is turned off and the charge and discharge MOS tube is turned on to enter the charging control mode;
[0010] If the charger is not connected, the activation MOS tube is turned off and the pre-charge MOS tube is turned on to enter the pre-charge control mode;
[0011] In the pre-charge control mode, it is detected in real time whether the charge and discharge MOS tube is turned on. If the charge and discharge MOS tube is not turned on, the pre-charge MOS tube is turned off after a preset pre-charge time, and the charge and discharge MOS tube is turned on to enter the discharge control mode.
[0012] Optionally, the charging control mode includes the following control steps:
[0013] During the battery charging process, the system is detected in real time whether the current limiting MOS tube is turned off and the charging MOS tube or the discharging MOS tube is turned on;
[0014] If yes, determine whether the discharge current is greater than 0.8A;
[0015] If the discharge current is greater than 0.8A, it enters the discharge control mode;
[0016] If the discharge current is not greater than 0.8A, the system detects whether the charging current is greater than the current limiting current and the current limiting function is turned on. If so, the system enters the current limiting control mode.
[0017] Optionally, the current limiting control mode includes the following control steps:
[0018] During the battery current limiting process, real-time detection of whether the discharge MOS tube is turned on;
[0019] If the discharge MOS tube is turned on, determine whether the discharge current is greater than 1A;
[0020] If the discharge current is greater than 1A, the current limiting MOS tube is turned off and the discharge control mode is entered;
[0021] If the discharge current is not greater than 1A, the current limiting will be continued when the current limiting time is not greater than the maximum current limiting time.
[0022] Optionally, the pre-filling control mode includes the following control steps:
[0023] During the battery pre-charging process, real-time detection of whether the charging and discharging MOS tubes are turned on;
[0024] If the charge and discharge MOS tube is turned on, it enters the corresponding control mode according to the current, and enters the discharge control mode when there is no current;
[0025] If the charge and discharge MOS tube is not turned on, the pre-charge MOS tube is turned off after a delay of the set pre-charge time, and the charge and discharge MOS tube is turned on to enter the discharge control mode.
[0026] Optionally, the discharge control mode includes the following control steps:
[0027] During the battery discharge process, the system is detected in real time whether the current limiting MOS tube is turned off and the charging MOS tube or the discharging MOS tube is turned on;
[0028] If yes, determine whether the charging current is greater than 0.8A;
[0029] If the charging current is greater than 0.8A, it enters the charging control mode;
[0030] If the charging current is not greater than 0.8A, it is determined whether the system is in the state where the charging MOS tube or the discharging MOS tube is turned off and there is no discharging fault;
[0031] If so, the charge and discharge MOS tube is turned on and maintained in the discharge state.
[0032] Optionally, the fault handling mode includes the following control steps:
[0033] When the maximum single cell voltage collected is greater than 3.65V or the overall voltage is greater than 14.6V, and the current is greater than 0A, it is judged that the battery is in a charging overvoltage fault;
[0034] When the maximum collected single cell voltage is less than 2.8V or the overall voltage is greater than 11.2V, the current is less than 0A.
[0035] Determine that the battery is in a discharge undervoltage fault;
[0036] When the average temperature of the maximum and minimum cells during charging and discharging is higher than 65°C and the current is greater than 0A, the battery is judged to be in an over-temperature fault;
[0037] When the average temperature of the maximum and minimum cells during charging is lower than 0°C, and the average temperature of the maximum and minimum cells during discharging is lower than -20°C, and the current is greater than 0A, it is judged that the battery is in a low temperature fault;
[0038] When the sampling current is greater than 275A during charging and discharging, it is judged that the battery is in overcurrent fault;
[0039] When the maximum voltage of the battery is greater than or equal to 3.85V, or the maximum temperature sampled during charging and discharging is higher than 75°C, or the MOS temperature is higher than 120°C, the secondary protection is triggered.
[0040] Optionally, the fault handling mode further includes the following control steps:
[0041] When the battery is in a charging overvoltage fault or a charging overcurrent fault, the charging MOS tube and the current limiting MOS tube are turned off;
[0042] When the battery is in a discharge undervoltage fault, the discharge MOS tube is turned off.
[0043] Optionally, the fault handling mode further includes the following control steps:
[0044] When the secondary protection is triggered, the hardware fuse blows;
[0045] When the maximum collected single cell voltage is less than 3.65V, the maximum temperature is less than 65℃, and the MOS tube temperature is less than 110℃, there is no MOS fault and the secondary protection fault is eliminated.
[0046] Optionally, the fault handling mode further includes the following control steps:
[0047] When the battery is in a low temperature environment and cannot be charged, the heating control mode is entered to heat the battery pack.
[0048] Optionally, the heating control mode further includes the following control steps:
[0049] Collect the battery temperature. If the lowest temperature is lower than the heating start-up temperature, the heating is turned on if a charger is connected and the battery has not entered the discharge control mode.
[0050] If the minimum temperature is higher than the heating stop temperature, or the battery enters the discharge control mode, or the minimum temperature of the battery is still lower than the heating stop temperature after the preset heating time, the heating is stopped.
[0051] Compared with the prior art, the beneficial effect of the control method for a battery management system provided by an embodiment of the present invention is that by designing a control method for a battery management system dedicated to RVs, it is determined whether the voltage, current and temperature of the RV battery can meet the functional requirements of power supply, and the battery management system performs corresponding automatic control according to the detected data, which can effectively reduce battery loss and effectively ensure the safety of RV battery use. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The scheme of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments, in which:
[0053] Figure 1 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 1 ;
[0054] Figure 2 is a flowchart of system initialization provided by an embodiment of the present invention;
[0055] Figure 3 is a flow chart of AFE initialization provided by an embodiment of the present invention;
[0056] Figure 4 is a flowchart of fault detection provided by an embodiment of the present invention;
[0057] Figure 5 is a flow chart of a pre-filling control mode provided by an embodiment of the present invention;
[0058] Figure 6 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 2 ;
[0059] Figure 7is a flow chart of a charging control mode provided by an embodiment of the present invention;
[0060] Figure 8 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 3 ;
[0061] Fig. 9 is a flow chart of a current limiting control mode provided by an embodiment of the present invention;
[0062] Fig.10 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 4 ;
[0063] Fig.11 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 5 ;
[0064] Fig.12 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 6 ;
[0065] Fig.13 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 7 ;
[0066] Fig.14 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 8 ;
[0067] Fig.15 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 9 ;
[0068] Fig.16 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 10 ;
[0069] Fig.17 The control method for a battery management system provided by the embodiment of the present invention is as follows: Figure 10 one. DETAILED DESCRIPTION
[0070] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. Now, in conjunction with the accompanying drawings, the preferred embodiments of the present invention are described in detail.
[0071] like Figure 1-15 As shown, the present invention provides a specific embodiment of a control method for a battery management system.
[0072] A control method for a battery management system, referring to Figure 1 , the control method comprises the following steps:
[0073] S1, initialization, and real-time collection of battery voltage, current and temperature data;
[0074] S2. Perform fault detection. If a fault occurs, enter the fault handling mode; if no fault occurs, determine whether the battery is connected to the charger;
[0075] S3: If the charger is connected, the activation MOS tube is turned off and the charge and discharge MOS tube is turned on. The battery enters the charging state and the battery management system enters the charging control mode.
[0076] S4: If the charger is not connected, the activation MOS tube is turned off and the pre-charge MOS tube is turned on. The battery enters the pre-charge state and the battery management system enters the pre-charge control mode.
[0077] S5. In the pre-charge control mode, it is detected in real time whether the charge and discharge MOS tube is turned on. If the charge and discharge MOS tube is not turned on, the pre-charge MOS tube is turned off after a preset pre-charge time, and the charge and discharge MOS tube is turned on. The battery enters the discharge state, and the battery management system enters the discharge control mode.
[0078] Specifically, refer to Figure 2 , initialization includes peripheral initialization, data initialization, reading EEPRO PO area data verification and AFE initialization; after peripheral initialization, data initialization and reading EEPRO PO area data verification are completed, determine whether the system is in a state where the maximum supported voltage and rated charging current have changed, the product type has changed, or the battery and temperature string number data are invalid. If so, restore the default parameters and erase the EEPROM and write the default parameters to the EEPROM, and then perform AFE initialization. If the system is not in a state where the maximum supported voltage and rated charging current have changed, the product type has changed, or the battery and temperature string number data are invalid, read the EEPRO data into the memory, and then perform AFE initialization.
[0079] refer to Figure 2 and Figure 3 After AFE is initialized, it is determined whether AFE initialization is successful. If AFE initialization is unsuccessful, a sampling fault is reported. Then, the running light is controlled to run and the power-on flag is stored in EEPROM to complete the initialization. If AFE initialization is successful, the running light is directly controlled to run and the power-on flag is stored in EEPROM to complete the initialization.
[0080] refer to Figure 3 and Figure 4After the initialization is completed, the system enters the idle state and collects the voltage, current and temperature data of the battery in real time. After a delay of 500ms, fault detection is performed to specifically detect whether the system has sampling faults, battery failure faults, short circuit faults, MOS tube failure faults, temperature sampling faults, the number of NTC disconnections is greater than the preset number, or the total battery voltage is lower than 8V. If the system has the above faults, it will continue to delay for 500ms and enter the fault handling mode. If the system does not have the above faults, it will determine whether the system is connected to a charger. If a charger is connected, the activation MOS tube will be turned off and the charge and discharge MOS tube will be turned on. The battery enters the charging state and the system enters the charging control mode.
[0081] refer to Figure 4 and Figure 5 If it is detected that the system is not connected to a charger, the activation MOS tube is turned off and the pre-charge MOS tube is turned on, the battery enters the pre-charge state, and the system enters the pre-charge control mode; in the pre-charge control mode, the system detects in real time whether the pre-charge MOS tube is turned on. If the pre-charge MOS tube is not turned on, the system enters the idle state. If the pre-charge MOS tube is turned on, it enters the corresponding state according to the current battery current, and when there is no current, the battery enters the discharge state, and the system enters the discharge control state.
[0082] refer to Figure 5 If it is detected that the pre-charge MOS tube is turned on, it is determined whether the charge-discharge MOS tube is turned on. If the charge-discharge MOS tube is also turned on, it enters the corresponding state according to the current battery current, and enters the discharge state when there is no current; if it is detected that the charge-discharge MOS tube is not turned on when the pre-charge MOS tube is turned on, the pre-charge MOS tube is turned off after a preset pre-charge time, and the charge-discharge MOS tube is turned on, the battery enters the discharge state, and the system enters the discharge control mode.
[0083] In this embodiment, a control method for a battery management system dedicated to RVs is designed. The voltage, current and temperature of the RV battery are detected to determine whether it can meet the functional requirements of power supply. The battery management system performs corresponding automatic control based on the detected data, which can effectively reduce battery loss and effectively ensure the safety of RV battery use.
[0084] In one embodiment, reference Figure 6 , the charging control mode includes the following control steps:
[0085] S31, during the battery charging process, real-time detection of whether the system is in a state where the current limiting MOS tube is turned off and the charging MOS tube or the discharging MOS tube is turned on;
[0086] S32, if the system is in a state where the current limiting MOS tube is turned off and the charging MOS tube or the discharging MOS tube is turned on, determine whether the discharge current is greater than 0.8A;
[0087] S33, if the discharge current is greater than 0.8A, enter the discharge control mode;
[0088] S34. If the discharge current is not greater than 0.8 A, the system is detected to see whether the charging current is greater than the current limiting current and the current limiting function is turned on. If so, the system enters the current limiting control mode.
[0089] Specifically, refer to Figure 7 When the battery enters the charging state, it detects in real time whether all MOS tubes in the system are turned off. If it is detected that all MOS tubes are turned off, the system enters the idle state; when it is detected that not all MOS tubes in the system are turned off, it is determined whether the system is in a state where the current limiting MOS tube is turned off and any one of the charging MOS tube and the discharging MOS tube is turned on. If so, it is determined whether the discharge current is greater than 0.8A. If the discharge current is greater than 0.8A, the battery enters the discharge state and the system enters the discharge control mode.
[0090] refer to Figure 7 If the discharge current is not greater than 0.8A, it is determined whether the system is in a state where the charging current is greater than the current limiting current value and the current function is turned on. If so, the current limiting MOS tube turn-on flag is set to 1, and the current limiting control mode is entered. If not, it is determined whether the system is in a state where the charging MOS tube is turned off or the discharging MOS tube is turned off, and there is no charging fault. If the system is in a state where the charging MOS tube is turned off or the discharging MOS tube is turned off, and there is no charging fault, the charging and discharging MOS tube turn-on flag is set to 1, and it is determined whether the system is in a state where the discharging MOS tube is turned off and there is no discharging fault. If the system is not in a state where the charging MOS tube is turned off or the discharging MOS tube is turned off, and there is no charging fault, it is directly determined whether the system is in a state where the discharging MOS tube is turned off and there is no discharging fault.
[0091] refer to Figure 7 If the system is in a state where the discharge MOS tube is closed and there is no discharge fault, the discharge MOS tube opening flag is set to 1, and it is determined whether the pre-charge MOS tube is opened. If the system is not in a state where the MOS tube is closed and there is no discharge fault, it is directly determined whether the pre-charge MOS tube is opened. If the pre-charge MOS tube is opened, the pre-charge MOS tube closing flag is set to 1, and the process jumps to the step of determining whether the system is in a state where all MOS tubes are closed. If the pre-charge MOS tube is not opened, it directly jumps to the step of determining whether the system is in a state where all MOS tubes are closed.
[0092] In one embodiment, reference Figure 8 , the current limiting control mode includes the following control steps:
[0093] S341, during the battery current limiting process, real-time detection of whether the discharge MOS tube is turned on;
[0094] S342, if the discharge MOS tube is turned on, determine whether the discharge current is greater than 1A;
[0095] S343, if the discharge current is greater than 1A, the current limiting MOS tube is turned off and the discharge control mode is entered;
[0096] S344: If the discharge current is not greater than 1A, the current is continuously limited when the current limiting time is not greater than the maximum current limiting time.
[0097] Specifically, refer to Fig. 9 When the battery is in the current limiting state, the system determines whether the current limiting function is turned on. If the current limiting function is not turned on, the current limiting MOS tube closing flag is set to 1, and the battery enters the charging state, and the system enters the charging control mode; if the current limiting function is turned on, it is determined whether the current limiting MOS tube is turned on. If the current limiting MOS tube is not turned on, the charging MOS tube opening flag is set to 1; if the current limiting MOS tube is turned on, it is determined whether the discharge MOS tube is turned on; if the discharge MOS tube is not turned on, the discharge MOS tube opening flag is set to 1, and it is determined whether the discharge current is greater than 1A; if the discharge MOS tube is turned on, it is directly determined whether the discharge current is greater than 1A. If the discharge current is greater than 1A, the current limiting MOS tube closing flag is set to 1, the charge and discharge MOS tube opening flag is set to 1, the continuous current limiting flag is cleared, and the battery is controlled to enter the discharge state, and the system enters the discharge control mode.
[0098] refer to Fig. 9 If the discharge current is not greater than 1A, it is determined whether the current limiting time is greater than the maximum current limiting time of 10 minutes. If the current limiting time is greater than the maximum current limiting time of 10 minutes, the current limiting MOS tube shutdown flag is set to 1, the continuous triggering current limiting flag is cleared to 0, the battery enters the charging state, and the system enters the charging control mode; if the current limiting time is not greater than the maximum current limiting time of 10 minutes, it is determined whether the continuous triggering current limiting flag is 1. If the continuous triggering current limiting flag is not 1, it is determined whether the current is less than 0.8A. If so, the charging MOS tube start flag is set to 1, and it is determined whether the system is in a state where the current is less than the current limiting current, or the current limiting switch is closed. If so, the current limiting MOS tube shutdown flag is set to 1, the continuous triggering current limiting flag is cleared to 0, the battery enters the charging state, and the system enters the charging control mode.
[0099] In one embodiment, reference Fig.10 , the pre-charge control mode includes the following control steps:
[0100] S41, during the battery pre-charging process, real-time detection of whether the charging and discharging MOS tube is turned on;
[0101] S42, if the charge and discharge MOS tube is turned on, the corresponding control mode is entered according to the current, and the discharge control mode is entered when there is no current;
[0102] S43, if the charge-discharge MOS tube is not turned on, the pre-charge MOS tube is turned off after a delay of the set pre-charge time, and the charge-discharge MOS tube is turned on to enter the discharge control mode.
[0103] Specifically, when the battery enters the pre-charge state, it is first determined whether the pre-charge MOS tube is turned on. If the pre-charge MOS tube is not turned on, it is determined whether the charge and discharge MOS tube is turned on, and the idle state is entered when the charge and discharge MOS tube is not turned on. When the charge and discharge MOS tube is turned on, it is determined according to the collected battery current to enter the corresponding state, and the discharge state is entered when there is no current.
[0104] If the pre-charge MOS tube is turned on, it is determined whether the charge and discharge MOS tube is turned on, and when the charge and discharge MOS tube is turned on, it is determined according to the collected battery current to enter the corresponding state, and enter the discharge state when there is no current, and when the charge and discharge MOS tube is not turned on, the pre-charge MOS tube is turned off after a delay of the set pre-charge time, and the charge and discharge MOS tube is turned on to enter the discharge control mode.
[0105] In one embodiment, reference Fig.11 , the discharge control mode includes the following control steps:
[0106] S51, during the battery discharge process, real-time detection of whether the system is in a state where the current limiting MOS tube is turned off and the charging MOS tube or the discharging MOS tube is turned on;
[0107] S52: If yes, determine whether the charging current is greater than 0.8A;
[0108] S53, if the charging current is greater than 0.8A, enter the charging control mode;
[0109] S54, if the charging current is not greater than 0.8A, determine whether the system is in the state where the charging MOS tube or the discharging MOS tube is turned off and there is no discharging fault;
[0110] S55: If yes, turn on the charge and discharge MOS tube and keep the discharge state.
[0111] Specifically, when the battery enters the discharge state, it is first determined whether all MOS tubes are turned off. If all MOS tubes are turned off, the battery enters the control state. If not all MOS tubes are turned off, it is determined whether the system is in a state where the current limiting MOS tube is turned off and any one of the charging MOS tube or the discharging MOS tube is turned on. If the system is not in a state where the current limiting MOS tube is turned off and any one of the charging MOS tube or the discharging MOS tube is turned on, it jumps to determining whether all MOS tubes of the system are turned off. If the system is in a state where the current limiting MOS tube is turned off and any one of the charging MOS tube or the discharging MOS tube is turned on, it is determined whether the charging current is greater than 0.8A.
[0112] If the charging current is greater than 0.8A, the battery enters the charging state and the system enters the charging control mode; if the charging current is not greater than 0.8A, it is determined whether the system is in a state where the charging MOS tube is turned off and there is a charging fault. If the system is in a state where the charging MOS tube is turned off and there is a charging fault, the charging MOS tube opening flag is set to 1, and it is determined whether the pre-charging MOS tube is turned on. If the system is not in a state where the charging MOS tube is turned off and there is a charging fault, it is directly determined whether the pre-charging MOS tube is turned on. If the pre-charging MOS tube is turned on, the pre-charging MOS tube closing flag is set to 1, and it jumps to determine whether all MOS tubes in the system are turned off.
[0113] In one embodiment, reference Fig.12 , the fault handling mode includes the following control steps:
[0114] S21, when the maximum single cell voltage collected is greater than 3.65V or the overall voltage is greater than 14.6V, and the current is greater than 0A, it is determined that the battery is in a charging overvoltage fault;
[0115] S22: When the maximum single cell voltage collected is less than 2.8V or the overall voltage is greater than 11.2V, and the current is less than 0A, it is determined that the battery is in a discharge undervoltage fault;
[0116] S23: When the average temperature of the maximum and minimum cells during charging and discharging is higher than 65°C and the current is greater than 0A, it is determined that the battery is in an over-temperature fault;
[0117] S24: When the average temperature of the maximum and minimum cells during charging is lower than 0°C, and the average temperature of the maximum and minimum cells during discharging is lower than -20°C, and the current is greater than 0A, it is determined that the battery is in a low temperature fault;
[0118] S25, when the sampling current is greater than 275A during charging and discharging, it is determined that the battery is in an overcurrent fault;
[0119] S26: When the maximum voltage of the battery is greater than or equal to 3.85V, or the maximum temperature sampled during charging and discharging is higher than 75°C, or the MOS temperature is higher than 120°C, the secondary protection is triggered.
[0120] Specifically, by collecting the battery voltage, current and temperature in real time, it is possible to detect whether the battery has a fault through the battery voltage, current and temperature. In the fault handling mode, it is possible to detect whether there is overvoltage or overcurrent during the battery charging process, whether there is undervoltage during the battery discharging process, and whether the battery has faults such as abnormal temperature during the charging and discharging process, and enter different fault handling modes under different battery conditions.
[0121] Furthermore, when an AFE temperature sampling failure is detected, it is determined whether the difference between the second highest temperature and the second lowest temperature is greater than 20°C. If the difference between the second highest temperature and the second lowest temperature is greater than 20°C, a temperature sampling failure is reported and the charging and discharging MOS tube is turned off; if the difference between the second highest temperature and the second lowest temperature is not greater than 20°C, it is determined whether the system is in a state where the sampled AD value is greater than 29500 or less than 10, the difference between the second highest temperature and the second lowest temperature is higher than the average temperature by 20°C, the temperature is greater than 127°C or the temperature is less than -40°C. If the system If the sampled AD value is greater than 29500 or less than 10, the difference between the second highest temperature and the second lowest temperature is higher than the average temperature by 20℃, the temperature is greater than 127℃ or the temperature is lower than -40℃, the NTC open circuit damage quantity is increased by 1, and the AFE temperature sampling fault shutdown MOS tube enable is set to 1. If the system is not in the state where the sampled AD value is greater than 29500 or less than 10, the difference between the second highest temperature and the second lowest temperature is higher than the average temperature by 20℃, the AFE temperature sampling fault shutdown MOS tube enable is directly set to 1.
[0122] After the AFE temperature sampling fault shuts down the MOS tube enable and sets it to 1, determine whether the system is in a state where the temperature difference is less than 20°C, there is no AFE sampling fault, there is a temperature sampling fault, and the number of NTC disconnections is 0. If the system is in a state where the temperature difference is less than 20°C, there is no AFE sampling fault, there is a temperature sampling fault, and the number of NTC disconnections is 0, then the temperature sampling fault is recovered. If the system is not in a state where the temperature difference is less than 20°C, there is no AFE sampling fault, there is a temperature sampling fault, and the number of NTC disconnections is 0, then determine whether the number of open NTCs is 1.
[0123] If the number of open NTCs is 1, the temperature sampling fault shuts down the MOS enable and sets it to 0, and reports a temperature sampling fault. If the number of open NTCs is not 1, determine whether the number of open NTCs is greater than or equal to 2. If the number of open NTCs is greater than or equal to 2, report a temperature sampling fault and shut down the charge and discharge MOS tube. If the number of open NTCs is not greater than or equal to 2, jump to determine whether the system is in a state where the sampled AD value is greater than 29500 or less than 10, the difference between the second highest temperature and the second lowest temperature is higher than the average temperature by 20°C, the temperature is greater than 127°C or the temperature is less than -40°C. If so, trigger the secondary protection.
[0124] In one embodiment, reference Fig.13, the fault handling mode also includes the following control steps:
[0125] S271, when the battery is in a charging overvoltage fault or a charging overcurrent fault, turning off the charging MOS tube and the current limiting MOS tube;
[0126] S272. When the battery is in a discharge undervoltage fault, the discharge MOS tube is turned off.
[0127] In one embodiment, reference Fig.14 , the fault handling mode also includes the following control steps:
[0128] S261, when the secondary protection is triggered, the hardware fuse blows;
[0129] S262: When the maximum collected single cell voltage is less than 3.65V, the maximum temperature is less than 65℃, and the MOS tube temperature is less than 110℃, there is no MOS fault, the secondary protection fault is eliminated, and the fuse needs to be replaced manually.
[0130] In one embodiment, reference Fig.15 , the fault handling mode also includes the following control steps:
[0131] S28. When the battery is in a low temperature environment and cannot be charged, enter the heating control mode to heat the battery pack.
[0132] In one embodiment, reference Fig.16 , the heating control mode includes the following control steps:
[0133] S281. Collect the battery temperature. If the lowest temperature is lower than the heating start-up temperature, a charger is connected and the battery has not entered the discharge control mode, then turn on the heating.
[0134] S282: If the lowest temperature is higher than the heating stop temperature, or the battery enters the discharge control mode, or the lowest temperature of the battery is still lower than the heating stop temperature after the preset heating time, the heating is stopped.
[0135] In one embodiment, reference Fig.17 , the fault handling mode also includes the following control steps:
[0136] S211, detecting whether there is a sampling fault, and when a sampling fault is detected, detecting whether the system is in a state where there is a signal on the sampling pin but the register value of the notification reason is read to be 0;
[0137] S212: If yes, record the number of communication failures plus 1, and determine whether the total number of communication failures is greater than 10;
[0138] S213. If the total number of communication failures is greater than 10 times, a sampling failure is reported, sampling is stopped, the pre-charging MOS tube and the charging and discharging MOS tube are turned off, and reinitialization is performed.
[0139] Specifically, when the system detects a sampling fault, it first determines whether the system is in a state where there is a signal on the I2C communication pin connected to the AFE, but the register value of the notification reason is read as 0. If the system is in a state where there is a signal on the I2C communication pin connected to the AFE, but the register value of the notification reason is read as 0, the number of communication failures is recorded plus 1, and it is determined whether the number of communication failures is greater than 10; if the system is not in a state where there is a signal on the I2C communication pin connected to the AFE, but the register value of the notification reason is read as 0, it is directly determined whether the number of system communication failures is greater than 10.
[0140] If the number of system communication failures is not greater than 10, determine whether the system is in a state where AFE has a notification signal, the register is read successfully, and the notification reason is the ADC sampling completion state. If the system is in a state where AFE has a notification signal, the register is read successfully, and the notification reason is the ADC sampling completion state, the communication failure count is cleared to 0, and jump to determine whether the system is in a state where the I2C communication pin connected to the AFE has a signal, but the register value read for the notification reason is 0.
[0141] If the number of system communication failures is greater than 10, an AFE fault is reported, AFE sampling is stopped, all MOS tubes are turned off, the system enters idle mode, and AFE is reinitialized; and it is determined whether AFE initialization is successful. If AFE initialization is unsuccessful, initialization is not performed and the system waits for entering a dormant state; if AFE initialization is successful, the communication failure count is cleared, the AFE fault is cleared, sampling continues, and operation continues from idle mode, and the system jumps to determine whether the I2C communication pin connected to the AFE has a signal, but the register value of the notification reason is read as 0.
[0142] In one of the embodiments, when the system detects a short circuit fault, an interrupt is triggered, and after the interrupt is triggered, it is determined whether the system is in the initialization completion state and the sleep flag is 0. If the system is not in the initialization completion state and the sleep flag is 0, the interrupt is cleared and it is determined to be a false alarm; if the system is in the initialization completion state and the sleep flag is 0, all MOS tubes are turned off, short circuit protection is entered, and the number of short circuits is recorded plus 1, and it is determined whether the number of short circuits is less than 3 times. If the number of short circuits is less than 3, it is restored after a first preset time delay; if the number of short circuits is not less than 3 and less than the preset maximum number of short circuits, it is restored after a second preset time delay. If the number of short circuits is greater than the preset maximum number of short circuits, it is not restored.
[0143] In one of the embodiments, the AFE event processing method in the control method is specifically as follows: when an AFE event occurs, determine whether a level change of the alarm pin is detected; if a level change of the alarm pin is detected, determine whether there is an AFE sampling fault; if there is an AFE sampling fault, jump to determine whether a level change of the alarm pin is detected; if there is no AFE sampling fault, read the alarm cause register; after reading the alarm cause register, determine whether ADC sampling is completed; if ADC sampling is completed, read the temperature, voltage and current data, and determine whether balancing is being performed; if ADC sampling is not completed, directly determine whether balancing is being performed; if the system is being balanced, read the battery balancing status, and clear the AFE alarm register; if the system is not balanced, directly clear the AFE alarm register.
[0144] In one of the embodiments, the sleep control method in the control method is specifically as follows: when the system enters the sleep state, it is determined in real time whether the system is in a state where the minimum string voltage is lower than 3.15V, there is no charge and discharge current, and there is no communication state. If the system is in a state where the minimum string voltage is lower than 3.15V, there is no charge and discharge current, and there is no communication state, then the running lights are running, the shutdown state is set to 1, historical data is stored, all MOS tubes are turned off, AFE is configured to enter low power consumption, 12V is turned off, and all IO ports are configured as analog inputs to turn off peripherals.
[0145] If the system is not in a state where the minimum string voltage is lower than 3.15V, and there is no charge and discharge current, and no communication state, then first determine whether the system is in a battery-triggered undervoltage protection state. If the system is in a battery-triggered undervoltage protection state, the running lights will run, the shutdown state will be set to 1, historical data will be stored, all MOS tubes will be turned off, AFE will be configured to enter low power consumption, 12V will be turned off, and all IO ports will be configured as analog inputs to turn off peripherals; if the system is not in a battery-triggered undervoltage protection state, the boat switch will be turned off, and the running lights will run, the shutdown state will be set to 1, historical data will be stored, all MOS tubes will be turned off, AFE will be configured to enter low power consumption, 12V will be turned off, and all IO ports will be configured as analog inputs to turn off peripherals.
[0146] When the running light is running, the shutdown state is set to 1, historical data is stored, all MOS tubes are turned off, AFE is configured to enter low power consumption, 12V is turned off, all IO ports are configured as analog inputs, and after turning off peripherals, PTC is configured as the longest time interrupt, and the boat switch, charger wake-up, and communication wake-up pins are all configured as interrupts to enter stop mode.
[0147] When the system enters the stop mode, it detects in real time whether the rocker switch is turned off. If the rocker switch is turned off, the switch is configured as the wake-up function, enters the shutdown mode, and restarts the program after the next rocker switch is turned on. If the rocker switch is not turned off, it determines whether the charger or communication interrupt is awakened. If the charger or communication interrupt is awakened, the running light is enabled, the startup history data is written to configure the peripherals, clock and AFE, and the system enters normal operation.
[0148] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0149] 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.
[0150] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. For those skilled in the art, the technical solutions described in the above embodiments can be modified, or some of the technical features therein can be replaced by equivalents; and all these modifications and replacements should fall within the protection scope of the claims attached to the present invention.
Claims
1. A control method for a battery management system, It is characterized in that The following steps are involved: Initialize and collect battery voltage, current and temperature data in real time; Perform fault detection and enter fault handling mode if a fault occurs; If no fault occurs, determine whether the battery is connected to the charger; If a charger is connected, the activation MOS tube is turned off and the charge and discharge MOS tube is turned on to enter the charging control mode; If the charger is not connected, the activation MOS tube is turned off and the pre-charge MOS tube is turned on to enter the pre-charge control mode; In the pre-charge control mode, it is detected in real time whether the charge and discharge MOS tube is turned on. If the charge and discharge MOS tube is not turned on, the pre-charge MOS tube is turned off after a preset pre-charge time, and the charge and discharge MOS tube is turned on to enter the discharge control mode.
2. The control method according to claim 1, It is characterized in that The charging control mode includes the following control steps: During the battery charging process, the system is detected in real time whether the current limiting MOS tube is turned off and the charging MOS tube or the discharging MOS tube is turned on; If yes, determine whether the discharge current is greater than 0.8A; If the discharge current is greater than 0.8A, it enters the discharge control mode; If the discharge current is not greater than 0.8A, the system detects whether the charging current is greater than the current limiting current and the current limiting function is turned on. If so, the system enters the current limiting control mode.
3. The control method according to claim 2, It is characterized in that The current limiting control mode includes the following control steps: During the battery current limiting process, real-time detection of whether the discharge MOS tube is turned on; If the discharge MOS tube is turned on, determine whether the discharge current is greater than 1A; If the discharge current is greater than 1A, the current limiting MOS tube is turned off and the discharge control mode is entered; If the discharge current is not greater than 1A, the current limiting will be continued when the current limiting time is not greater than the maximum current limiting time.
4. The control method according to claim 1, It is characterized in that The pre-charge control mode includes the following control steps: During the battery pre-charging process, real-time detection of whether the charging and discharging MOS tubes are turned on; If the charge and discharge MOS tube is turned on, it enters the corresponding control mode according to the current, and enters the discharge control mode when there is no current; If the charge and discharge MOS tube is not turned on, the pre-charge MOS tube is turned off after a delay of the set pre-charge time, and the charge and discharge MOS tube is turned on to enter the discharge control mode.
5. The control method according to claim 1, It is characterized in that The discharge control mode includes the following control steps: During the battery discharge process, the system is detected in real time whether the current limiting MOS tube is turned off and the charging MOS tube or the discharging MOS tube is turned on; If yes, determine whether the charging current is greater than 0.8A; If the charging current is greater than 0.8A, it enters the charging control mode; If the charging current is not greater than 0.8A, it is determined whether the system is in the state where the charging MOS tube or the discharging MOS tube is turned off and there is no discharging fault; If so, the charge and discharge MOS tube is turned on and maintained in the discharge state.
6. The control method according to claim 1, It is characterized in that The fault handling mode includes the following control steps: When the maximum single cell voltage collected is greater than 3.65V or the overall voltage is greater than 14.6V, and the current is greater than 0A, it is judged that the battery is in a charging overvoltage fault; When the maximum single cell voltage collected is less than 2.8V or the overall voltage is greater than 11.2V, and the current is less than 0A, the battery is judged to be in a discharge undervoltage fault; When the average temperature of the maximum and minimum cells during charging and discharging is higher than 65°C and the current is greater than 0A, the battery is judged to be in an over-temperature fault; When the average temperature of the maximum and minimum cells during charging is lower than 0°C, and the average temperature of the maximum and minimum cells during discharging is lower than -20°C, and the current is greater than 0A, it is judged that the battery is in a low temperature fault; When the sampling current is greater than 275A during charging and discharging, it is judged that the battery is in overcurrent fault; When the maximum voltage of the battery is greater than or equal to 3.85V, or the maximum temperature sampled during charging and discharging is higher than 75°C, or the MOS temperature is higher than 120°C, the secondary protection is triggered.
7. The control method according to claim 6, It is characterized in that The fault handling mode also includes the following control steps: When the battery is in a charging overvoltage fault or a charging overcurrent fault, the charging MOS tube and the current limiting MOS tube are turned off; When the battery is in a discharge undervoltage fault, the discharge MOS tube is turned off.
8. The control method according to claim 6, It is characterized in that The fault handling mode also includes the following control steps: When the secondary protection is triggered, the hardware fuse blows; When the maximum collected single cell voltage is less than 3.65V, the maximum temperature is less than 65℃, and the MOS tube temperature is less than 110℃, there is no MOS fault and the secondary protection fault is eliminated.
9. The control method according to claim 6, It is characterized in that The fault handling mode also includes the following control steps: When the battery is in a low temperature environment and cannot be charged, the heating control mode is entered to heat the battery pack.
10. The control method according to claim 9, It is characterized in that The heating control mode includes the following control steps: Collect the battery temperature. If the lowest temperature is lower than the heating start-up temperature, the heating is turned on if a charger is connected and the battery has not entered the discharge control mode. If the minimum temperature is higher than the heating stop temperature, or the battery enters the discharge control mode, or the minimum temperature of the battery is still lower than the heating stop temperature after the preset heating time, the heating is stopped.
