A multi-battery pack hot plug management system and method
By managing the voltage detection of multiple battery packs through MCU fast polling and status indication circuitry, the problem of lack of intelligent management in multi-battery pack applications is solved. This enables high-voltage and high-current applications and battery status indication, prevents battery pack sparking, and expands the management capabilities of the battery pack.
Patent Information
- Application Number
- CN202211419139.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-14
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2042-11-14
AI Technical Summary
Existing multi-battery pack applications lack intelligent management systems, making it impossible to flexibly manage the simultaneous discharge of multiple batteries. This limits the high-power application of battery packs and lacks indication of the battery's application status.
The MCU is used to perform time-sharing load voltage detection for each battery through a fast polling method. Intelligent battery management is achieved through battery control output circuit and battery voltage sampling circuit. The battery status is displayed by a status indicator circuit, and the battery discharge switch is delayed to prevent sparks when hot plugging is detected.
It enables effective management of multiple battery packs, is suitable for high-voltage and high-current applications, prevents high-voltage batteries from charging low-voltage batteries, provides battery status indication, prevents connector sparking, and expands the management capabilities of battery packs.
Smart Images

Figure CN115799671B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of battery management, and particularly relates to a multi-battery-pack hot plug management system and method. BACKGROUND
[0002] Solar energy and batteries are widely used as new energy sources. In some remote places, such as remote areas or roads where it is inconvenient to pull the power grid, the power supply of traffic equipment will use solar energy and battery packs for power supply. However, during long-term use, the battery pack will inevitably need to be replaced. In order to ensure that the equipment works normally without power failure, hot plug technology needs to be used at this time.
[0003] In the application circuit of the existing multi-battery-pack, many support hot plug function, but lack an effective management system, such as only one battery is discharging during discharging, and multiple batteries cannot be flexibly managed to discharge at the same time. After all, the power of a battery is too small, which limits the high-power application of the battery pack, and often lacks indication of the application state of the battery. SUMMARY
[0004] The technical problem solved by the application is to provide a multi-battery-pack hot plug management system and method that solves the problem of lack of intelligent management system in the application of multi-battery-pack hot plug technology, can effectively manage the discharging of the battery pack and the connection of the battery to the system, and is suitable for high-voltage and high-current application scenarios of the battery pack.
[0005] Technical solution: In order to solve the above technical problems, the technical solution adopted by the application is as follows:
[0006] A multi-battery-pack hot plug management system, comprising an MCU, a battery, a battery control output circuit, a battery voltage sampling circuit and a load circuit, the battery is provided with one or more, each battery is provided with a battery control output circuit, the battery control output circuit comprises a battery control output circuit A and a battery control output circuit B; the MCU uses a fast polling method to perform time-sharing load voltage detection on each battery to determine whether the voltage of the battery meets the discharging requirement, if the voltage meets the discharging voltage requirement, the MCU controls the corresponding battery control output circuit to conduct discharging.
[0007] Further, the output pin of the MCU is connected with the input end of the battery control output circuit through a resistor R71 and a switch tube Q27, a battery voltage sampling circuit is arranged between the MCU and the battery control output circuit for detecting the battery voltage, the output end of each battery control output circuit is connected with the battery, the MCU output signal controls the battery control output circuit to be turned on or closed, thereby controlling the battery to discharge or not to discharge.
[0008] Further, the battery 1 corresponds to the battery control output circuit, which includes the battery control output circuit A1 and the battery control output circuit B1. The battery control output circuit A1 includes the output drive A1 circuit, the output A1 circuit and the filter voltage stabilization circuit. The battery control output circuit B1 includes the output drive B1 circuit, the output B1 circuit and the filter voltage stabilization circuit.
[0009] Further, the output end of the output drive A1 circuit is connected with the input end of the output A1 circuit. The output end of the output A1 circuit is connected with the battery. The output drive A1 circuit includes the switch tube Q6, the switch tube Q3, the switch tube Q7 and the switch tube Q1 and its peripheral elements. The output A1 circuit includes the switch tube Q5, the switch tube Q2, the switch tube Q4 and its peripheral elements.
[0010] Further, the output end of the output drive B1 circuit is connected with the input end of the output B1 circuit. The output drive B1 circuit includes the switch tube Q19, the switch tube Q16, the switch tube Q20 and the switch tube Q14 and its peripheral elements. The output drive B1 includes the switch tube Q18, the switch tube Q15, the switch tube Q17 and its peripheral elements.
[0011] Further, the battery voltage sampling circuit realizes the detection of the battery voltage. The battery voltage sampling circuit includes the diode D9, the resistor R22, the resistor R23 and the capacitor C9. The diode D9 is an isolation diode. The resistor R22 and the resistor R23 are voltage dividing resistors. C9 is a filter capacitor.
[0012] Further, the state indication circuit includes the resistor R24, the resistor R25, the LED1 and the LED2. When the battery is connected to the battery 1 control output circuit, if the battery 1 control output circuit is in the open state, the LED2 is lighted and the LED1 is extinguished. If the battery 1 control output circuit is in the closed state, the LED1 is lighted and the LED2 is extinguished. When there is no battery connected to the battery 1 control output circuit, neither the LED1 nor the LED2 is lighted.
[0013] A multi-battery pack hot plug management method is realized by the multi-battery pack hot plug management system. The MCU uses the polling method to detect the load voltage of each battery control output circuit in time, records each voltage value, judges which battery voltage meets the discharge voltage requirement, controls the corresponding battery control output circuit to be turned on if it meets the discharge requirement, and the battery is discharged. When the voltage difference is too large, the high-voltage battery charges the low-voltage battery with large current. At this time, the green LED of the corresponding battery control output circuit is lighted and the red LED is extinguished. When the battery voltage does not meet the discharge voltage requirement, the battery is not discharged. At this time, the red LED of the corresponding battery control output circuit is lighted and the green LED is extinguished. If the battery control output circuit is not connected with the battery, the LEDs of the corresponding battery control output circuit are extinguished.
[0014] Further, the system polling detection method is that other battery control output circuits are disconnected, only the battery 1 control output circuit is turned on, the voltage of the battery 1 is detected; then the battery 2 control output circuit is turned on, and then the battery 1 control output circuit is turned off, the voltage of the battery 2 is detected; then the battery 3 control output circuit is turned on, and then the battery 2 control output circuit is turned off, the voltage of the battery 3 is detected; then the battery 4 control output circuit is turned on, and then the battery 3 control output circuit is turned off, the voltage of the battery 4 is detected, and the polling of the 8-way battery control output circuit is completed in turn, and the detection is circular.
[0015] Further, the system MCU is powered on and initialized, the voltage of the online battery is detected after the initialization is completed, the discharge circuit of the battery meeting the discharge voltage requirement is turned on, the number of the online batteries of the system is detected, and it is judged whether it is one battery online, if only one battery is online, the MCU detects whether there is a single battery synchronization signal, if there is no single battery synchronization signal, there may be no second system, or there is more than one battery online in the second system, the MCU sends a single battery synchronization signal at this time, to prevent the second system with only one battery from accessing without the single battery synchronization signal, and the battery voltage is detected according to the time agreed by the single battery synchronization signal; if there is a single battery synchronization signal, the battery voltage is detected according to the time agreed by the single battery synchronization signal, if the battery voltage detected does not meet the discharge requirement, the discharge output of the battery is turned off, if the battery voltage meets the discharge voltage requirement, the battery access is detected; when the number of the batteries detected by the system is not one, it is detected whether there is a multi-battery synchronization signal, if there is, it is indicated that there is a battery with a higher voltage in another system, at this time, the system turns off the battery discharge circuit of all the discharge batteries, if not, the battery voltage of the battery pack is detected in a polling mode, the output of the battery with a voltage not meeting the discharge requirement is disconnected, and then it is detected whether there is a battery access, if there is no battery access, the number of the online batteries is detected, if there is a battery access, the access battery is controlled to discharge after a delay of 3 seconds, and then the number of the online batteries is detected.
[0016] Advantages: Compared with the prior art, the present application has the following advantages:
[0017] The application is an intelligent control system for managing multiple batteries by using high-speed MCU. In order to make the response speed of the system not be affected, the system manages at most 8 batteries. When the battery pack exceeds 8 batteries or even reaches 16 batteries, two management systems are used to work in parallel. The two systems are connected through a synchronization signal to form a new management system. The MCU uses a fast polling method to detect the voltage of each battery in time to determine whether the voltage of the battery meets the discharge requirement. If the voltage meets the discharge voltage requirement, the MCU controls the corresponding battery control output circuit to conduct discharge, avoiding that the high-voltage battery charges the low-voltage battery. For the battery connected to the system, if it is in the discharge state, a green LED is used for indication, and if it is in the standby discharge state, a red LED is used for indication. When a hot-plug battery is detected to be connected, a discharge switch tube is turned on after a delay of 3 seconds to prevent sparks from the connector. The application solves the problem of lack of intelligent management system in the application of multi-battery pack hot-plug technology, can effectively manage the discharge and connection of the battery pack, facilitates the design of the battery current circuit, facilitates the expansion management of the battery pack, and is suitable for high-voltage and large-current application scenarios of the battery pack. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 is a system principle block diagram of the multi-battery pack hot-plug management system with 8 battery packs.
[0019] Figure 2 is a battery pack system principle block diagram of the multi-battery pack hot-plug management system extended to 16 battery packs by using the two systems.
[0020] Figure 3 is a principle diagram of the battery 1 control output circuit of the battery pack hot-plug management system.
[0021] Figure 4 is a main program flow chart of the battery pack hot-plug management method. DETAILED DESCRIPTION
[0022] The application will be further illustrated by combining with specific embodiments. The embodiments are implemented on the premise of the technical scheme of the application and should be understood as being used for illustrating the application but not for limiting the scope of the application.
[0023] As shown in Figure 1 and 3 , the multi-battery pack hot-plug management system of the application includes an MCU, a battery control output circuit, a +5V voltage stabilizing circuit, a battery voltage sampling circuit, a battery, a load circuit and a state indicating circuit. The battery control output circuit is one of the control output circuits of the system. The battery control output circuit includes a battery control output circuit A and a battery control output circuit B.
[0024] Battery settings can have multiple, each battery corresponding to the battery control output circuit, for example, the battery 1 is the battery 1 control output circuit, which is composed of battery control output circuit A1 and battery control output circuit B1, the battery 2 is the battery 2 control output circuit, which is composed of battery control output circuit A2 and battery control output circuit B2. As shown in Figure 1 When the battery 1 control output circuit and the same battery 2 control output circuit, battery 3 control output circuit and so on are used in parallel combination (up to 8 ways), a battery pack control output circuit of the system can be formed. As shown in Figure 2 When the battery needs to be expanded to 9 or even 16, two systems can be used in parallel, and the two systems form a new system; if both systems have only one or more batteries, parallel use can also form a new system.
[0025] As shown in Figure 1 and 3 The output pin resistance of the MCU is connected to the input terminal of the battery control output circuit through R71 and the switch tube Q27, and the battery voltage sampling circuit is set between the MCU and the battery control output circuit. Each battery corresponds to a state indicating circuit controlled by the MCU, and the output end of each battery control output circuit is connected to the battery. The MCU output signal controls the battery control output circuit to be turned on or closed, thereby controlling the battery 1 to discharge or not to discharge, and controlling the corresponding state indicating circuit to light up. Taking battery 1 (BT1, 51.2V) as an example, the CH1_CT pin of the MCU is connected to the input terminal of the battery 1 control output circuit through a switch tube Q27, and the output terminal of the battery 1 control output circuit is connected to the battery 1. The MCU directly controls the state indicating circuit, which includes red LED1 and green LED2.
[0026] This embodiment takes battery 1 and its control output circuit as an example to introduce its principle circuit: the battery 1 control output circuit is composed of battery control output circuit A1 and battery control output circuit B1. Among them, the battery control output circuit A1 contains output drive A1 circuit and output A1 circuit (the output circuit can be expanded to increase output A2, output A3, etc. to increase the output current), and filter voltage stabilizing circuit. The battery control output circuit B1 contains output drive B1 circuit and output B1 circuit (the output circuit can be expanded to increase output B2, output B3, etc. to increase the output current). The output end of the output drive A1 circuit is connected to the input end of the output A1 circuit, and the output end of the output A1 circuit is connected to the battery.
[0027] As shown in Figure 3As shown, the filter voltage stabilizing circuit of the battery control output circuit A1 includes the capacitor C2, the capacitor C3 and the diode DZ1 in parallel. The DZ1 is a 15V voltage stabilizing diode, which ensures that the gate-source voltage of the switch tube Q4 is safe.
[0028] The output drive A1 circuit mainly consists of the switch tube Q6, the switch tube Q3, the switch tube Q7 and the switch tube Q1 and its peripheral elements, specifically including the diode D6, the resistor R16, the capacitor C8, the resistor R17, the switch tube Q6, the diode D7, the diode D3, the resistor R7, the resistor R5, the capacitor C1, the switch tube Q3, the diode D4, the resistor R14, the capacitor C7, the switch tube Q7, the diode D8, the resistor R13, the resistor R9, the capacitor C4, the switch tube Q1, the diode D1, etc. The CH1_CT end of the MCU is connected with the base of the switch tube Q6 through the resistor R71 and the switch tube Q27, the diode D6 and the resistor R16, the resistor R17, the resistor R17 is connected with the capacitor C8 in parallel, and the diode D7 is used as the e pole reverse bias protection diode of the switch tube Q6; the diode D3 and the diode D4 are isolation diodes, the C pole of the switch tube Q6 is connected with the base of the switch tube Q3 through the diode D3, the resistor R7 and the resistor R5, the C pole of the switch tube Q3 is connected with the Q3_C network; at the same time, the C pole of the switch tube Q6 is connected with the base of the switch tube Q7 through the diode D4 and the resistor R14, the resistor R14 is connected with the capacitor C7 in parallel, the E pole of the switch tube Q7 is connected with the diode D8, the C pole of the switch tube Q7 is connected with the base of the switch tube Q1 through the resistor R13 and the resistor R9, and the resistor R9 is connected with the capacitor C4 in parallel. The C pole of the switch tube Q1 is connected with the Q1_C network. Among them, the diode D8 is the e pole bias diode of the switch tube Q7, which offsets the voltage difference generated by the diode D4 between the b pole and the e pole of the switch tube Q7, so that the switch tube Q7 can be reliably cut off; the diode D1 is the external damping diode of the switch tube Q4, which avoids the reverse breakdown of the switch tube Q4.
[0029] The output A1 circuit mainly consists of the switch tube Q5, the switch tube Q2, the switch tube Q4 and peripheral elements thereof, and specifically includes the resistor R8, the capacitor C5, the resistor R11, the switch tube Q2, the diode D2, the diode D5, the resistor R6, the switch tube Q4, the capacitor C6, the resistor R15, the resistor R20 and the switch tube Q5. The C pole of the switch tube Q1 is connected with the base pole of the switch tube Q2 through the resistor R8, the capacitor C5 and the resistor R11 are connected in series and then are connected in parallel at both ends of the resistor R8, the e pole of the switch tube Q2 is connected with the G pole of the switch tube Q4 through the resistor R6; the Q3_C network is connected with the base pole of the switch tube Q5 through the resistor R15, the capacitor C6 and the resistor R20 are connected in series and then are connected in parallel at both ends of the resistor R15, and the D pole of the switch tube Q4 is connected with the diode D1. Among them, the switch tube Q4 is an output power switch tube, which adopts a MOS tube, D2 is an isolation diode, when the switch tube Q5 is cut off, the switch tube Q2 is quickly turned on, the switch tube Q4 is quickly cut off, and the switch tube Q4 and the switch tube Q17 of the output B1 circuit are connected in series, which can prevent the battery pack current from being back-primed, the two devices are used in series, which plays a role in voltage division in high-voltage output, and makes the circuit work reliably. The output A1 circuit, the output A2 circuit and the output A3 circuit are completely the same, and when they are used in parallel, the output current is increased.
[0030] The battery control output circuit B1 includes the output driving B1 circuit, the output B1 circuit and the filter voltage stabilizing circuit, the output end of the output driving B1 circuit is connected with the input end of the output B1 circuit, and the output B1 circuit is connected with the load circuit. The filter voltage stabilizing circuit of the battery control output circuit B1 includes the capacitor C14, the capacitor C15 and the diode DZ2, and the diode DZ2 is a 15V voltage stabilizing diode, which makes the gate-source voltage of the switch tube Q17 not lower than -15V, and ensures the safety of the gate-source voltage of the switch tube Q17.
[0031] The output driving B1 circuit mainly consists of the switch tube Q19, the switch tube Q16, the switch tube Q20 and the switch tube Q14 and peripheral elements thereof, and specifically includes the diode D18, the resistor R51, the capacitor C20, the resistor R52, the switch tube Q19, the diode D19, the diode D15, the resistor R42, the resistor R40, the capacitor C13, the switch tube Q16, the diode D16, the resistor R49, the capacitor C19, the switch tube Q20, the diode D20, the resistor R48, the resistor R44, the capacitor C16, the switch tube Q14, the diode D13 and the like, and the specific circuit connection structure is the same as that of the output driving A1, which will not be described herein. Among them, the diode D19 is the e pole reverse bias protection diode of the Q19; the diode D15 and the diode D16 are isolation diodes; the diode D20 is the e pole bias diode of the Q20, which offsets the pressure difference generated by the diode D16 at the b pole and the e pole of the Q20, so that the Q20 can be reliably cut off; the diode D13 is the external damping diode of the Q17, which avoids the reverse breakdown of the Q17.
[0032] The output B1 circuit is mainly composed of switch tube Q18, switch tube Q15, switch tube Q17 and peripheral elements thereof, and specifically includes R43, capacitor C17, resistor R46, switch tube Q15, diode D14, diode D17, resistor R41, switch tube Q17, capacitor C18, resistor R50, resistor R55, switch tube Q18, and the specific circuit connection structure is the same as that of the output A1 circuit, and thus will not be described herein again. The Q17 is an output power switch tube, the diode D14 is an isolation diode, the Q18 is cut off, so that the Q15 is rapidly turned on, the Q17 is rapidly cut off, and the Q17 and the Q4 of the output A1 circuit are connected in series, so that the battery pack current reverse flow can be prevented, the two devices are used in series, play a role in voltage division in high-voltage output, and the circuit works reliably. The output B1 circuit is completely the same as the output B2 circuit and the output B3 circuit, and when being used in parallel, the output current is increased.
[0033] +5V voltage stabilizing circuit: the battery voltage of +51.2V_1 is stabilized as +5V voltage to supply power for the MCU.
[0034] The battery voltage sampling circuit detects the voltage of the battery, and is composed of diode D9, resistor R22, resistor R23 and capacitor C9, wherein the D9 is an isolation diode, the resistors R22 and R23 are voltage dividing resistors, and the C9 is a filter capacitor.
[0035] State indication circuit: including resistor R24, resistor R25, LED1 and LED2. When the battery is connected to the battery 1 control output circuit, if the battery 1 control output circuit is in the open state, the green LED2 is lit, and the red LED1 is extinguished; if the battery 1 control output circuit is in the closed state, the red LED1 is lit, and the green LED2 is extinguished; when there is no battery connected to the battery 1 control output circuit, the LED1 and the LED2 are not lit.
[0036] Load circuit: the load circuit is composed of R and capacitor C25, wherein R is a circuit load, and capacitor C25 is an output filter capacitor.
[0037] Working principle of the battery control output circuit:
[0038] When the CH1_CT pin of the MCU outputs a mutation to low level, the transistor Q27 is cut off, and the c pole of Q27 is mutated to high level. At this time, the diode D6 of the battery control output circuit A1 is cut off. Due to the characteristics of the capacitor, the voltage across the capacitor C8 cannot be mutated, but the current is mutated, which is equivalent to an instantaneous short circuit. The switch tube Q6 is quickly turned on, causing the voltage of the c pole to mutate to low level. When the capacitor C8 is fully charged, it is equivalent to an open circuit, and the current through the resistor R17 drives the switch tube Q6 to turn on. When the voltage of the c pole of the switch tube Q6 mutates to low level, one way through the diode D3 causes the capacitor C1 current to mutate, and the other way through the diode D4 makes the switch tube Q7 and the switch tube Q1 quickly cut off. The mutation of the capacitor C1 current is equivalent to an instantaneous short circuit, and the switch tube Q3 is quickly turned on. The Q3_C network is mutated to high level. When the capacitor C1 is fully charged, it is equivalent to an open circuit, and the current through the resistor R5 drives the switch tube Q3 to turn on. The mutation of the Q3_C network to high level causes the capacitor C6 current to mutate, which is equivalent to an instantaneous short circuit. The switch tube Q5 is quickly turned on. When the capacitor C6 is fully charged, the current through the resistor R15 drives the switch tube Q5 to turn on. The conduction of the switch tube Q5 causes the c pole voltage to mutate to low level. The gate voltage of the MOS tube Q4 is pulled low through the diode D2 and the resistor R6, and Q4 is turned on. The current of the battery +51.2V_1 reaches the network D end.
[0039] When the CH1_CT pin of the MCU outputs a sudden low level, the transistor Q27 is turned off, and the c terminal of Q27 is changed to a high level. At this time, the diode D18 of the battery control output circuit B1 is turned off. Due to the characteristics of the capacitor, the voltage across the capacitor C20 cannot change suddenly, but the current changes suddenly, which is equivalent to a momentary short circuit. The switch tube Q19 is quickly turned on, causing the voltage at the c terminal of the switch tube Q19 to change suddenly to a low level. When the capacitor C20 is fully charged, it is equivalent to an open circuit, and the current through the resistor R52 drives the switch tube Q19 to turn on. When the voltage at the c terminal of the switch tube Q19 changes suddenly to a low level, one path through the diode D15 causes the current of the capacitor C13 to change suddenly, and the other path through the diode D16 quickly turns off the switch tube Q20 and the switch tube Q14. The sudden change in the current of the capacitor C13 is equivalent to a momentary short circuit, and the switch tube Q16 is quickly turned on. The Q16_C network changes to a high level. When the capacitor C13 is fully charged, it is equivalent to an open circuit, and the current through the resistor R40 drives the switch tube Q16 to turn on. The high level of the Q16_C network causes the current of the capacitor C18 to change suddenly, which is equivalent to a momentary short circuit. The switch tube Q18 is quickly turned on. When the capacitor C18 is fully charged, the current through the resistor R50 drives the switch tube Q18 to turn on. The turn-on of the switch tube Q18 causes the c terminal voltage to change suddenly to a low level. The voltage at the gate of the MOS tube Q17 is pulled low through the diode D14 and the resistor R41, and the MOS tube Q17 is turned on. The current at the D terminal of the network reaches the +51.2V_OUT terminal. Instead, the voltage and current of the battery BT1 are output to the load circuit R and C25, i.e., the battery 1 control output circuit is in an open state, and the LED2 is lit, and the LED1 is extinguished.
[0040] When the CH1_CT pin of the MCU outputs a sudden high level, the transistor Q27 is turned on, and the c terminal of Q27 is changed to a low level. At this time, D6 of the battery control output circuit A1 is turned on, and the b terminal of Q6 is made low through R16, R17 and C8 to turn off Q6. The c terminal of Q6 is high, D3 is turned off, the b terminal of Q3 is high, Q3 is turned off, the network Q3_C is low, the b terminal of Q5 is made low through R15, C6 and R20 to turn off Q5, and D2 is turned off. At the same time, due to the high level of the c terminal of Q6, D4 is turned off, which causes the current of C7 to change suddenly, the b terminal of Q7 changes to a high level and is turned on, the c terminal of Q7 is low, the b terminal of Q1 is made low through R13, R9 and C4 to turn on Q1, and the c terminal of Q1 outputs a high level through R8, C5 and R11 to turn on Q2. Since D2 is also turned off at this time, the gate voltage of Q4 rises quickly and is turned off, thereby turning off the path from the battery +51.2V_1 to the network D.
[0041] When the CH1_CT pin of the MCU outputs a sudden high level, the switch tube Q27 is turned on, and the c terminal of the switch tube Q27 is suddenly changed to a low level. At this time, the diode D18 of the battery control output circuit B1 is turned on, the b terminal of the switch tube Q19 is made low through the resistor R51, the resistor R52 and C20 to be cut off, the c terminal of the switch tube Q19 is high, the diode D15 is cut off, the b of the switch tube Q16 is high, the switch tube Q16 is cut off, the network Q16_C is low, the b terminal of the switch tube Q18 is made low through the resistor R50, C18 and the resistor R50 to be cut off, and D14 is cut off; at the same time, since the c terminal of the switch tube Q19 is high, the diode D16 is cut off, the cut-off of the diode D16 causes the current of C19 to suddenly change, the b terminal of the switch tube Q20 is suddenly changed to a high level to be turned on, the c terminal of the switch tube Q20 is low, the b terminal of the switch tube Q14 is made low through the resistor R48, the resistor R44 and the capacitor C16 to be turned on, the c terminal of the switch tube Q14 outputs a high level, the switch tube Q15 is turned on through the resistor R43, the capacitor C17 and the resistor R46, since the diode D14 is also cut off at this time, the gate voltage of the MOS tube Q17 rises rapidly to be cut off, so that the path from the +51.2V_OUT end to the network D end is closed. Instead, the voltage and current of the battery BT1 cannot be output to the load circuit R and the capacitor C25, that is, the battery 1 control output circuit is in a closed state, the LED1 is lit, and the LED2 is extinguished.
[0042] The application also discloses a multi-battery pack hot plug management method. The MCU uses a polling method to detect the voltage of each battery control output circuit in turn, records the voltage value of each battery control output circuit, and judges which battery voltage meets the discharge voltage requirement (for example, the highest battery voltage can be used as the standard, and the battery voltage is not lower than 0.3V of the highest voltage, which is considered to meet the requirement). If the discharge requirement is met, the corresponding battery control output circuit is turned on, and the battery is discharged. When the voltage difference is too large, the high-voltage battery charges the low-voltage battery with a large current. At this time, the green LED (LED2 of the battery 1 control output circuit) of the corresponding battery control output circuit is lit, and the red LED (LED1 of the battery 1 control output circuit) is extinguished. When the battery voltage does not meet the discharge voltage requirement, the battery is not discharged. At this time, the red LED (LED1 of the battery 1 control output circuit) of the corresponding battery control output circuit is lit, and the green LED (LED2 of the battery 1 control output circuit) is extinguished. If the battery control output circuit is not connected to the battery, the LEDs of the corresponding battery control output circuit are all extinguished.
[0043] The system polling detection method is that other battery control output circuits are disconnected, only the battery 1 control output circuit is turned on, the voltage of the battery 1 is detected; then the battery 2 control output circuit is turned on, and then the battery 1 control output circuit is turned off, the voltage of the battery 2 is detected; then the battery 3 control output circuit is turned on, and then the battery 2 control output circuit is turned off, the voltage of the battery 3 is detected; then the battery 4 control output circuit is turned on, and then the battery 3 control output circuit is turned off, the voltage of the battery 4 is detected, and the polling of the 8-way battery control output circuit is completed in turn, and the detection is circular.
[0044] When the hot plug battery is detected to be connected, a delay of 3 seconds is performed, and after the battery connector is well contacted, the MCU controls the battery discharge switch tube, so as to prevent sparks from appearing in the connector when the battery is connected.
[0045] When the battery needs to be expanded to 9 or even 16, two systems can be used in parallel, or the number of batteries is less than 8, and two management systems are used, the two systems use synchronization information, and the two systems form a new system to work.
[0046] The flow of the multi-battery pack hot plug management method is as shown in Figure 4 The specific steps are as follows:
[0047] S1: The system MCU is powered on and initialized,
[0048] S2: After the initialization is completed, the voltage of the online battery is detected;
[0049] S3: Then the discharge loop of the battery meeting the discharge voltage requirement is turned on,
[0050] S4: The system detects the number of on-line batteries, and judges whether it is one battery on-line. If there is only one battery on-line, the MCU detects whether there is a single battery synchronization signal. If there is no single battery synchronization signal, it is possible that there is no second system, or there is a second system with more than one battery on-line. The MCU sends a single battery synchronization signal at this time, to prevent the second system with only one battery from accessing without a single battery synchronization signal. The battery voltage is detected according to the time agreed upon by the single battery synchronization signal. If there is a single battery synchronization signal, the battery voltage is detected according to the time agreed upon by the single battery synchronization signal. If the detected battery voltage does not meet the discharge requirements, the discharge output of the battery is closed. If the battery voltage meets the discharge requirements, it is detected whether there is a battery access. When the system detects that the number of batteries is not one, it is detected whether there is a multi-battery synchronization signal. If there is, it means that another system has a battery with a higher voltage access. At this time, the system closes the battery discharge circuit of all the discharge batteries. If there is no multi-battery synchronization signal, the battery group battery voltage is detected in a polling manner. The output of the battery with a voltage that does not meet the discharge requirements is disconnected. Then it is detected whether there is a battery access. If there is no battery access, the number of on-line batteries is detected. If there is a battery access, the access battery is discharged after a delay of 3 seconds. The number of on-line batteries is detected again.
[0051] The above only describes the preferred embodiments of the present application. It should be noted that those skilled in the art can make several improvements and refinements without departing from the principles of the present application. These improvements and refinements should also be considered within the scope of the present application.
Claims
1. A multi-battery pack hot plug management system, comprising: The application relates to a battery control circuit, which comprises an MCU, a battery, a battery control output circuit, a battery voltage sampling circuit and a load circuit, wherein the battery is provided with one or more, each battery is provided with a battery control output circuit, the battery control output circuit comprises a battery control output circuit A and a battery control output circuit B; the MCU uses a fast polling mode to carry out time-sharing load voltage detection on each battery to determine whether the voltage of the battery meets the discharge requirement, and if the voltage meets the discharge voltage requirement, the MCU controls the corresponding battery control output circuit to be turned on for discharging; An output pin of the MCU is connected with an input end of the battery control output circuit, a battery voltage sampling circuit is arranged between the MCU and the battery control output circuit for detecting the battery voltage, an output end of each battery control output circuit is connected with a battery, and an output signal of the MCU controls the battery control output circuit to be turned on or closed, so that the battery is controlled to discharge or not to discharge.
2. The multi-battery plug-and-play management system of claim 1, wherein: The battery control output circuit corresponding to the battery 1 comprises a battery control output circuit A1 and a battery control output circuit B1, the battery control output circuit A1 comprises an output driving A1 circuit, an output A1 circuit and a filter voltage stabilizing circuit, and the battery control output circuit B1 comprises an output driving B1 circuit, an output B1 circuit and a filter voltage stabilizing circuit.
3. The multi-battery plug-and-play management system of claim 2, wherein: An output end of the output driving A1 circuit is connected with an input end of the output A1 circuit, an output end of the output A1 circuit is connected with a battery, the output driving A1 circuit comprises a switching tube Q6, a switching tube Q3, a switching tube Q7 and a switching tube Q1 and peripheral elements thereof, and the output A1 circuit comprises a switching tube Q5, a switching tube Q2, a switching tube Q4 and peripheral elements thereof.
4. The multi-battery plug-and-play management system of claim 2, wherein: An output end of the output driving B1 circuit is connected with an input end of the output B1 circuit, the output driving B1 circuit comprises a switching tube Q19, a switching tube Q16, a switching tube Q20 and a switching tube Q14 and peripheral elements thereof, and the output driving B1 comprises a switching tube Q18, a switching tube Q15, a switching tube Q17 and peripheral elements thereof.
5. The multi-battery plug-and-play management system of claim 1, wherein: The battery voltage sampling circuit realizes detection of the battery voltage, and comprises a diode D9, a resistor R22, a resistor R23 and a capacitor C9, wherein the diode D9 is an isolation diode, the resistor R22 and the resistor R23 are voltage dividing resistors, and the C9 is a filter capacitor.
6. The multi-battery plug-and-play management system of claim 1, wherein: The application further comprises a state indicating circuit, which comprises a resistor R24, a resistor R25, an LED1 and an LED2, when a battery is connected to the battery 1 control output circuit, if the battery 1 control output circuit is in an open state, the green LED2 is lighted and the red LED1 is extinguished; if the battery 1 control output circuit is in a closed state, the red LED1 is lighted and the green LED2 is extinguished; and when no battery is connected to the battery 1 control output circuit, neither the LED1 nor the LED2 is lighted.
7. A multi-battery plug and play management method, implemented by the system of any one of claims 1-6, characterized in that: The MCU uses a polling method to detect the voltage of each battery in time, records the voltage value of each battery, and determines which battery voltage meets the discharge voltage requirement. If the discharge requirement is met, the corresponding battery control output circuit is turned on, and the battery is discharged. If the voltage difference is too large, the high-voltage battery will charge the low-voltage battery with a large current. At this time, the green LED of the corresponding battery control output circuit is on, and the red LED is off. When the battery voltage does not meet the discharge voltage requirement, the battery is not discharged. At this time, the red LED of the corresponding battery control output circuit is on, and the green LED is off. If the battery control output circuit is not connected to the battery, the LEDs of the corresponding battery control output circuit are off.
8. The multi-battery plug-and-play management method of claim 7, wherein: The system polling detection method is to disconnect other battery control output circuits and only leave the battery 1 control output circuit on to detect the voltage of battery 1. Then, the battery 2 control output circuit is turned on, and the battery 1 control output circuit is turned off to detect the voltage of battery 2. Then, the battery 3 control output circuit is turned on, and the battery 2 control output circuit is turned off to detect the voltage of battery 3. Then, the battery 4 control output circuit is turned on, and the battery 3 control output circuit is turned off to detect the voltage of battery 4. After polling all 8 battery control output circuits, the cycle detection is performed.
9. The multi-battery plug-and-play management method of claim 7, wherein: The specific process is as follows: the system MCU is powered on and initialized, and the voltage of the online battery is detected after initialization. Then, the discharge circuit of the battery meeting the discharge voltage requirement is turned on, and the number of online batteries is detected to determine whether there is only one battery online. If there is only one battery online, the MCU detects whether there is a single battery synchronization signal. If there is no single battery synchronization signal, there may be no second system or more than one battery online in the second system. The MCU sends a single battery synchronization signal at this time to prevent the second system with only one battery from accessing without a single battery synchronization signal. Then, the battery voltage is detected at the time agreed upon by the single battery synchronization signal. If there is a single battery synchronization signal, the battery voltage is detected at the time agreed upon by the single battery synchronization signal. If the battery voltage does not meet the discharge requirement, the discharge output of the battery is turned off. If the battery voltage meets the discharge voltage requirement, the system detects whether there is a battery connected. If there is no battery connected, the number of online batteries is detected. If there is a battery connected, the connected battery is discharged after a delay of 3 seconds, and the number of online batteries is detected.
Citation Information
Patent Citations
Hot plug method, hot plug control device, a voltage balancing method and device
CN106451623A
Uninterruptible power supply battery hot plug device
CN111934416A