BMS device based on heartbeat control
By introducing a heartbeat control mechanism into the BMS system and using the dual architecture between the master MCU and the slave MCU to monitor the heartbeat signal, the problem of being unable to provide protection when the MCU is damaged is solved, the battery is safely disconnected, and the security of the system is improved. and reliability.
Patent Information
- Application Number
- CN202323092728.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2033-11-16
AI Technical Summary
The MCU itself does not have a damage detection function and cannot provide BMS protection when the main MCU is damaged, resulting in potential battery safety risks.
Using a BMS device based on heartbeat control, through the dual architecture between the master MCU and the slave MCU, the master MCU regularly sends heartbeat pulses, and the slave MCU monitors the heartbeat signal. If the signal is not received or an error occurs, the charging MOS tube and the discharge MOS tube are disconnected. , make sure the battery is in a safe condition.
The protection function of MCU self-test is added, so that the BMS system can also generate protection when the main MCU is damaged, ensuring that the battery is disconnected, and improving the safety and reliability of the battery.
Smart Images

Figure CN221614668U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of BMS, in particular to a BMS device based on heartbeat control. Background Art
[0002] BMS is an important part of the battery system. BMS has important functions such as real-time monitoring of battery status information, analysis of battery safety performance, optimization of battery energy control and extension of battery life. The normal operation of BMS plays an important role in the safe and reliable use of batteries. The operation of the BMS system is based on the normal operation of the hardware MCU chip. Generally, the hardware reset and software watchdog reset functions of the MCU chip are used to ensure the normal operation of the BMS code. Otherwise, the BMS will stop running and cause safety accidents to the battery. Based on the application scenarios of BMS, it is necessary to provide protection and real-time monitoring and reporting of battery information. At the same time, the safe operation of the battery must be guaranteed. That is, when the BMS encounters an abnormal situation and cannot operate normally, it is necessary to ensure that the battery is in a safe state of disconnection.
[0003] Since the MCU itself does not have a damage detection function, it cannot provide the protection of the BMS when it is damaged. Therefore, it is necessary to provide a BMS device based on heartbeat control, which can take protective actions when the main MCU is damaged to keep the battery in a safe state. Utility Model Content
[0004] The utility model discloses a BMS device based on heartbeat control, which can effectively solve the technical problems involved in the background technology.
[0005] To achieve the above purpose, the technical solution of the utility model is:
[0006] A BMS device based on heartbeat control is used to control the normal operation of a battery. The battery is connected to a charging MOS tube and a discharging MOS tube. The BMS device comprises a main MCU and a slave MCU. The main MCU is connected to the charging MOS tube and the discharging MOS tube respectively and controls the on and off of the charging MOS tube and the discharging MOS tube. The slave MCU is connected to the charging MOS tube and the discharging MOS tube respectively and controls the on and off of the charging MOS tube and the discharging MOS tube. The main MCU is connected to the slave MCU, and the main MCU sends a heartbeat pulse to the slave MCU at regular intervals. When working, the main MCU monitors the operation of the battery and controls the on and off of the charging MOS tube and the discharging MOS tube. When the slave MCU does not normally receive the heartbeat pulse, the charging MOS tube and the discharging MOS tube are disconnected.
[0007] A BMS secondary protection method based on heartbeat control is proposed. This method is based on the two-level architecture of BMS. A heartbeat control is established between the master MCU and the slave MCU. When the master MCU is abnormal, the BMS system can generate protection. The slave MCU ensures that the battery is in a safe state of disconnecting the output and input, thereby ensuring the safe use of the battery.
[0008] As a preferred improvement of the present utility model: the slave MCU is connected to the reset component of the master MCU, and after the slave MCU disconnects the charging MOS tube and the discharging MOS tube, it sends a reset pulse to the master MCU.
[0009] As a preferred improvement of the utility model: the slave MCU is connected to an alarm device, and after the slave MCU disconnects the charging MOS tube and the discharging MOS tube, the alarm device is controlled to alarm.
[0010] As a preferred improvement of the utility model: the heartbeat pulse frequency is 10K, and the slave MCU processes the rising / falling edge of the heartbeat pulse. If a pair of rising / falling edge pulse signals is not received for up to 5 seconds, the charging MOS tube and the discharging MOS tube are disconnected.
[0011] As a preferred improvement of the present utility model: the master MCU model is STM32G474RBT6, and the slave MCU model is STM32G030K6T6.
[0012] As a preferred improvement of the present utility model: the BMS device further includes a temperature sensor, which is installed at the battery and is used to monitor the battery temperature, and the temperature sensor is connected to the main MCU.
[0013] As a preferred improvement of the present invention: there are multiple temperature sensors.
[0014] As a preferred improvement of the present utility model: the BMS device further includes a current sampling component, which is used to monitor the charging current and the discharging current of the battery, and the current sampling component is connected to the main MCU.
[0015] As a preferred improvement of the present utility model: the BMS device further includes a voltage sampling component, which is used to monitor the charging voltage and discharging voltage of the battery, and the voltage sampling component is connected to the main MCU.
[0016] As a preferred improvement of the present utility model: the BMS device further includes a power detection component, the power detection component is used to detect the battery power, and the power detection component is connected to the main MCU.
[0017] The beneficial effects of the utility model are as follows:
[0018] The device has a simple structure and stable operation. By building a heartbeat pulse communication between the main MCU and the slave MCU, the MCU self-check protection function is added, so that the BMS system can also generate protection when the main MCU is damaged, so that the battery is disconnected, ensuring that the use of the battery is safer and more reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present utility model, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present utility model. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0020] Figure 1 This is a schematic diagram of a BMS device based on heartbeat control in the utility model;
[0021] Figure 2 It is a schematic diagram of the heartbeat pulse of the utility model;
[0022] Figure 3 This is a working diagram of the utility model device. DETAILED DESCRIPTION
[0023] The technical solutions in the embodiments of the present invention will be described clearly and completely below in combination with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0025] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0026] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0027] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0028] See also Figure 1 As shown, the utility model provides a BMS device based on heartbeat control, which is used to control the normal operation of a battery. The battery is connected with a charging MOS tube and a discharging MOS tube. The BMS device includes a main MCU and a slave MCU. The main MCU is connected to the charging MOS tube and the discharging MOS tube respectively, and controls the on and off of the charging MOS tube and the discharging MOS tube. The slave MCU is connected to the charging MOS tube and the discharging MOS tube respectively, and controls the on and off of the charging MOS tube and the discharging MOS tube. The main MCU is connected to the slave MCU, and the main MCU sends a heartbeat pulse to the slave MCU at a regular time. When working, the main MCU monitors the operation of the battery and controls the on and off of the charging MOS tube and the discharging MOS tube. When the slave MCU does not receive the heartbeat pulse normally, the charging MOS tube and the discharging MOS tube are disconnected. Preferably, the slave MCU also sends a heartbeat pulse to the main MCU at a regular time. The main MCU detects whether it is operating normally. When the pulse signal is abnormal, the main MCU sends a reset pulse and / or an alarm to the slave MCU.
[0029] Specifically, the BMS device includes the main MCU and a detection instrument, the detection instrument is used to monitor the working state of the battery and transmit it to the main MCU, and the main MCU controls the charging and discharging process of the battery. When the battery is working abnormally, the main MCU controls the charging MOS tube and the discharging MOS tube to disconnect the battery from other devices or loads to ensure the safety of the battery. However, the main MCU itself does not have a damage detection function and cannot provide the protection of the BMS when it is damaged. For example, during the operation of the BMS, the charging and discharging MOS are in a closed state, and the battery is inputting / outputting normally. At this time, the main MCU chip is damaged and cannot perform logical control on the charging / discharging MOS. If it is damaged, the control pin is still in a controlled closed state. At this time, when the BMS is abnormal, the battery is still outputting / inputting normally, which poses a great safety hazard, which is obviously dangerous. Therefore, this solution adds the slave MCU, a design based on heartbeat control, which can make a protective action when the main MCU is damaged to keep the battery in a safe state. A heartbeat-like communication pulse is constructed between the master MCU and the slave MCU. The slave MCU continuously detects the heartbeat pulse. When no heartbeat pulse is received within a set time, or the received heartbeat pulse signal is erroneous, the master MCU is judged to be damaged or frozen. The slave MCU controls the charging MOS tube and the discharging MOS tube to be disconnected, so that the battery is disconnected from other instruments and is in a static state waiting for maintenance, which is equivalent to abnormal protection of the BMS device, which greatly improves the safety and reliability of the BMS device.
[0030] As an implementation mode, the slave MCU is connected to the reset component of the master MCU. After the slave MCU disconnects the charging MOS tube and the discharging MOS tube, it sends a reset pulse to the master MCU. If the master MCU returns to normal after the reset, the master MCU controls the charging MOS tube and the discharging MOS tube normally, and sends a heartbeat pulse to the slave MCU regularly, and the slave MCU cancels the control of the charging MOS tube and the discharging MOS tube. If the master MCU fails to return to normal after the reset, the slave MCU keeps disconnecting the charging MOS tube and the discharging MOS tube, waiting for maintenance by personnel. Preferably, the slave MCU is connected to an alarm device. After the slave MCU disconnects the charging MOS tube and the discharging MOS tube, it controls the alarm device to alarm and remind the staff to repair the instrument.
[0031] As an implementation method, the heartbeat pulse frequency is 10K, and the slave MCU processes the rising / falling edge of the heartbeat pulse (see the attached Figure 2), if a pair of rising / falling edge pulse signals is not received for 5 seconds, it is considered that the main MCU is damaged or dead, and the charging MOS tube and the discharging MOS tube are disconnected, and a reset pulse is sent to try to reset the main MCU. It should be further explained that the use of other components to achieve the above effects should all fall within the inventive concept of the utility model and should fall within the protection scope of the utility model.
[0032] In this embodiment, the master MCU model is STM32G474RBT6, and the slave MCU model is STM32G030K6T6. It should be further explained that the use of other components to achieve the above effects should all fall within the inventive concept of the utility model and should fall within the protection scope of the utility model.
[0033] As an embodiment, the BMS device further includes a temperature sensor, which is installed at the battery and used to monitor the battery temperature, and the temperature sensor is connected to the main MCU. Preferably, there are multiple temperature sensors, which can be selected according to needs, generally 4-10. The BMS device also includes a current sampling component, which is used to monitor the charging current and discharging current of the battery, and the current sampling component is connected to the main MCU. The BMS device also includes a voltage sampling component, which is used to monitor the charging voltage and discharging voltage of the battery, and the voltage sampling component is connected to the main MCU. The BMS device also includes a power detection component, which is used to detect the battery power, and the power detection component is connected to the main MCU. The temperature, current information, voltage information, and power information of the battery are monitored, and the main MCU controls the on and off of the charging MOS tube and the discharging MOS tube according to the above information to ensure the normal operation of the battery.
[0034] Working principle: See Figure 3 As shown, a heartbeat-like communication pulse is constructed between the master MCU and the slave MCU. The slave MCU processes the rising / falling edge of the pulse. If a pair of rising / falling edge pulse signals is not received for 5 seconds, it is considered that the master MCU is damaged or dead. At this time, the slave MCU controls the charging MOS tube and the discharging MOS tube to be disconnected, and sends a reset pulse to try to reset the master MCU, which is equivalent to the BMS device generating abnormal protection, disconnecting the battery, and leaving the battery in a static state waiting for maintenance, which greatly improves the safety and reliability of the BMS device.
[0035] Although the implementation scheme of the utility model has been disclosed as above, it is not limited to the applications listed in the specification and the implementation scheme. It can be fully applied to various fields suitable for the utility model. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the utility model is not limited to the specific details and the illustrations shown and described herein.
Claims
1. A BMS device based on heartbeat control, used to control the normal operation of a battery, the battery is connected with a charging MOS tube and a discharging MOS tube, characterized in that: The main MCU and the slave MCU are included. The main MCU is connected to the charging MOS tube and the discharging MOS tube respectively, and controls the on and off of the charging MOS tube and the discharging MOS tube. The slave MCU is connected to the charging MOS tube and the discharging MOS tube respectively, and controls the on and off of the charging MOS tube and the discharging MOS tube. The main MCU and the slave MCU are connected, and the main MCU sends a heartbeat pulse to the slave MCU at a regular time. During operation, the main MCU monitors the operation of the battery and controls the on and off of the charging MOS tube and the discharging MOS tube. When the slave MCU fails to receive the heartbeat pulse normally, the charging MOS tube and the discharging MOS tube are disconnected.
2. A BMS device based on heartbeat control according to claim 1, characterized in that: The slave MCU is connected to the reset component of the master MCU. After the slave MCU disconnects the charging MOS tube and the discharging MOS tube, it sends a reset pulse to the master MCU.
3. A BMS device based on heartbeat control according to claim 1, characterized in that: The slave MCU is connected to an alarm device, and after the slave MCU disconnects the charging MOS tube and the discharging MOS tube, the alarm device is controlled to alarm.
4. A BMS device based on heartbeat control according to claim 1, characterized in that: The heartbeat pulse frequency is 10K, and the slave MCU processes the rising / falling edge of the heartbeat pulse. If a pair of rising / falling edge pulse signals is not received for 5 seconds, the charging MOS tube and the discharging MOS tube are disconnected.
5. The BMS device based on heartbeat control according to claim 1, characterized in that: The master MCU model is STM32G474RBT6, and the slave MCU model is STM32G030K6T6.
6. A BMS device based on heartbeat control according to claim 1, characterized in that: The BMS device further includes a temperature sensor, which is installed at the battery and is used to monitor the battery temperature. The temperature sensor is connected to the main MCU.
7. A BMS device based on heartbeat control according to claim 6, characterized in that: There are multiple temperature sensors.
8. The BMS device based on heartbeat control according to claim 1, characterized in that: The BMS device further includes a current sampling component, which is used to monitor the charging current and discharging current of the battery, and the current sampling component is connected to the main MCU.
9. A BMS device based on heartbeat control according to claim 1, characterized in that: The BMS device further includes a voltage sampling component, which is used to monitor the charging voltage and discharging voltage of the battery, and the voltage sampling component is connected to the main MCU.
10. A BMS device based on heartbeat control according to claim 1, characterized in that: The BMS device further includes a power detection component, which is used to detect the battery power, and the power detection component is connected to the main MCU.
