Dual power supply charging and discharging system and method
By automatically controlling the dual-power charging and discharging system with an MCU and acquiring voltage and current information, the system achieves automated management of dual-power charging and discharging, solving the problem of high control complexity in existing technologies and improving the system's safety and applicability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HENGDIAN GRP DMEGC MAGNETICS CO LTD
- Filing Date
- 2026-03-27
- Publication Date
- 2026-06-19
Smart Images

Figure CN122246946A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of dual-power parallel connection technology, and more specifically, to a dual-power charging and discharging system and method. Background Technology
[0002] As applications such as portable energy storage devices, power tools, and low-speed electric vehicles continue to demand higher battery life, single battery slots cannot accommodate higher-capacity cells due to limitations in product structure space, heat dissipation conditions, and battery pack mechanical strength. To overcome physical space constraints and achieve system-level energy expansion, the industry generally adopts a dual-battery configuration solution, which involves arranging two independent battery packs side by side in a limited space and coordinating power supply or charging through external control strategies.
[0003] However, dual-battery configurations face the challenge of switching between battery packs. Currently, the common approach is to manually determine the power state and perform the switching operation, which increases the complexity of use. This can lead to overcurrent charging issues when parallel operation is performed due to excessive voltage differences, and charging also requires switching power sources. If charging is not performed with a single power source for an extended period, deep over-discharge of a single power source can easily occur.
[0004] In summary, existing technologies suffer from the problem of high complexity in dual-battery charge and discharge control. Summary of the Invention
[0005] The purpose of this disclosure is to provide a dual-power charging and discharging system and method to solve the problem of high complexity in dual-battery charging and discharging control in the prior art.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this disclosure are as follows: On one hand, this disclosure provides a dual-power charging and discharging system, which includes an MCU, a first charging and discharging circuit, a second charging and discharging circuit, and a charging and discharging interface. The first and second charging and discharging circuits are respectively connected to the MCU and the charging and discharging interface. The first charging and discharging circuit is also used to connect to a first power source, and the second charging and discharging circuit is also used to connect to a second power source. After the system is powered on, the MCU is used to obtain the first voltage of the first power supply and the second voltage of the second power supply, and to obtain the current of the first charging and discharging circuit and / or the current of the second charging and discharging circuit. The MCU is also used to determine the charging and discharging state of the dual power supply based on the current of the first charging and discharging circuit or the second charging and discharging circuit; and to determine the parallel state of the dual power supply based on the difference between the first voltage and the second voltage. The MCU is also used to control the operating status of the first charging / discharging circuit and the second charging / discharging circuit based on the parallel state and the charging / discharging state.
[0007] Optionally, the charging and discharging states include charging state and discharging state, and the parallel state includes single-path state and dual-path state; The MCU is used to determine that the dual power supply is in a discharging state when the current in the target charging and discharging circuit is greater than a first current threshold, and to determine that the dual power supply is in a charging state when the current in the target charging and discharging circuit is less than the first current threshold; wherein, the target charging and discharging circuit is a first charging and discharging circuit or a second charging and discharging circuit. The MCU is also used to determine that the dual power supply is in a single-path state when the difference between the first voltage and the second voltage is greater than a voltage threshold; and to determine that the dual power supply is in a dual-path state when the difference between the first voltage and the second voltage is less than a voltage threshold.
[0008] Optionally, the first charging and discharging circuit includes a first charging switch, a first discharging switch, a first driving module, and a first current detection module. The first power supply, the first charging switch, the first discharging switch, the first current detection module, and the charging and discharging interface are connected in sequence. The first driving module is connected to the first charging switch, the first discharging switch, and the MCU. The second charging and discharging circuit includes a second charging switch, a second discharging switch, a second driving module, and a second current detection module. The second power supply, the second charging switch, the second discharging switch, the second current detection module, and the charging and discharging interface are connected in sequence. The second driving module is connected to the second charging switch, the second discharging switch, and the MCU. The MCU is also used to control the first discharge switch and the second discharge switch to be turned on when the dual power supply is determined to be in a single-channel discharge state, and to control the charging switch in the target charging and discharging circuit to be turned on; wherein, the target charging and discharging circuit is the first charging and discharging circuit or the second charging and discharging circuit; and the MCU is used to adjust the working state of the first charging and discharging circuit and the second charging and discharging circuit by controlling the on and off states of the first charging switch, the first discharge switch, the second charging switch, and the second discharge switch.
[0009] Optionally, the MCU is further configured to control the charging switch in the other charging circuit to turn on when the current in the other charging circuit besides the target charging circuit is greater than the second current threshold.
[0010] Optionally, the MCU is further configured to, when determining that the dual power supply is in a dual-path discharge state, control the first charging / discharging circuit to disconnect when the current of the first charging / discharging circuit is less than a third current threshold and the current of the second charging / discharging circuit is greater than a fourth current threshold; or When the current in the second charging / discharging circuit is less than the third current threshold and the current in the first charging / discharging circuit is greater than the fourth current threshold, the second charging / discharging circuit is controlled to disconnect.
[0011] Optionally, the first charging and discharging circuit includes a first charging switch, a first discharging switch, a first driving module, and a first current detection module. The first power supply, the first charging switch, the first discharging switch, the first current detection module, and the charging and discharging interface are connected in sequence. The first driving module is connected to the first charging switch, the first discharging switch, and the MCU. The second charging and discharging circuit includes a second charging switch, a second discharging switch, a second driving module, and a second current detection module. The second power supply, the second charging switch, the second discharging switch, the second current detection module, and the charging and discharging interface are connected in sequence. The second driving module is connected to the second charging switch, the second discharging switch, and the MCU. The MCU is also used to control the first charging switch and the second charging switch to turn on when it is determined that the dual power supply is in a single-channel charging state, and to control the discharge switch in the target charging and discharging circuit to turn on; wherein, the target charging and discharging circuit is the first charging and discharging circuit or the second charging and discharging circuit.
[0012] Optionally, the MCU is further configured to, when determining that the dual power supply is in a dual-path charging state, control the corresponding charging / discharging circuit to disconnect when the current of any charging / discharging circuit is greater than a fifth current threshold.
[0013] Optionally, the MCU is further configured to control the dual power supply to switch to a discharging state when the current of the first charging / discharging circuit and / or the second charging / discharging circuit is greater than a sixth current threshold when the dual power supply is determined to be in a charging state.
[0014] Optionally, the dual-power charging and discharging system further includes a first activation circuit and a second activation circuit. The first activation circuit is connected to the first power source and the charging and discharging interface, respectively; the second activation circuit is connected to the second power source and the charging and discharging interface, respectively. The first activation circuit and the second activation circuit are used to provide voltage to the corresponding power supply for power activation after the system is powered on.
[0015] On the other hand, this disclosure also provides a dual-power supply charging and discharging control method, which is applied to the MCU of the above-mentioned dual-power supply charging and discharging system, and the method includes: After the system is powered on, the first voltage of the first power supply and the second voltage of the second power supply are obtained, and the current of the first charging and discharging circuit and / or the current of the second charging and discharging circuit are obtained. The charging and discharging state of the dual power supply is determined based on the current in the first or second charging and discharging circuit; and the parallel state of the dual power supply is determined based on the difference between the first and second voltages. The operating states of the first and second charging / discharging circuits are controlled based on parallel connection and charging / discharging states.
[0016] Compared with the prior art, this disclosure has the following beneficial effects: This disclosure provides a dual-power charging and discharging system and method. The dual-power charging and discharging system includes an MCU, a first charging and discharging circuit, a second charging and discharging circuit, and a charging and discharging interface. The first charging and discharging circuit and the second charging and discharging circuit are respectively connected to the MCU and the charging and discharging interface. The first charging and discharging circuit is also used to connect to a first power supply, and the second charging and discharging circuit is also used to connect to a second power supply. After the system is powered on, the MCU is used to acquire a first voltage of the first power supply and a second voltage of the second power supply, and to acquire the current of the first charging and discharging circuit and / or the current of the second charging and discharging circuit. The MCU is also used to determine the charging and discharging state of the dual power supplies based on the current of the first charging and discharging circuit or the second charging and discharging circuit, and to determine the parallel connection state of the dual power supplies based on the difference between the first voltage and the second voltage. The MCU is also used to control the operating state of the first charging and discharging circuit and the second charging and discharging circuit based on the parallel connection state and the charging and discharging state. Because the dual-power charging and discharging system provided in this disclosure obtains the voltage and current of the two power sources, thereby determining the parallel connection state and charging and discharging state of the dual power sources, and further realizes the working state control of the charging and discharging circuit, the automated control of the dual-power charging and discharging system is realized. Its control strategy is simpler, requires no manual intervention, and reduces the complexity of dual-battery charging and discharging control.
[0017] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this disclosure and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram of a dual-power charging and discharging system provided in an embodiment of the present disclosure.
[0020] Figure 2 This is another schematic diagram of a dual-power charging and discharging system provided in an embodiment of the present disclosure.
[0021] Figure 3This is an exemplary flowchart of a dual-power supply charging and discharging control method provided in an embodiment of this disclosure.
[0022] In the picture: 110-MCU; 120-First charging / discharging circuit; 121-First charging switch; 122-First discharging switch; 123-First current detection module; 124-First drive module; 130-Second charging / discharging circuit; 131-Second charging switch; 132-Second discharging switch; 133-Second current detection module; 134-Second drive module; 140-Charging / discharging interface; 150-First voltage detection module; 160-Second voltage detection module; 170-First activation circuit; 180-Second activation circuit; 200-First power supply; 300-Second power supply. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0024] Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely to illustrate selected embodiments of the disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0025] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this disclosure, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0026] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Some embodiments of this disclosure are described in detail below with reference to the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0027] As described in the background section, current dual-battery charging and discharging control schemes generally employ manual control. However, this method is highly complex and prone to causing deep over-discharge of a single battery. Furthermore, control schemes based on dual-battery communication also exist, such as those based on CAN communication or communication modules. However, these control methods cannot be applied to batteries from different products, limiting their applicability and resulting in weak anti-interference capabilities.
[0028] In view of this, in order to solve the above problems, the present disclosure provides a dual power supply charging and discharging system, which uses an MCU (Microcontroller Unit) to collect and process loop information. It can be applied to batteries of different products and has the advantages of wide application, no communication module, strong anti-interference ability, low power consumption and high security.
[0029] The dual-power charging and discharging system provided in this disclosure is illustrated below: As an optional implementation, please refer to Figure 1 The dual-power charging and discharging system includes an MCU 110, a first charging and discharging circuit 120, a second charging and discharging circuit 130, and a charging and discharging interface 140. The first charging and discharging circuit 120 and the second charging and discharging circuit 130 are respectively connected to the MCU 110 and the charging and discharging interface 140. The first charging and discharging circuit 120 is also used to connect to a first power supply 200, and the second charging and discharging circuit 130 is also used to connect to a second power supply 300. After the system is powered on, the MCU 110 is used to obtain the first voltage of the first power supply 200 and the second voltage of the second power supply 300, and to obtain the current of the first charging and discharging circuit 120 and / or the current of the second charging and discharging circuit 130. The MCU 110 is also used to determine the charging and discharging state of the dual power supply based on the current of the first charging and discharging circuit 120 or the second charging and discharging circuit 130, and to determine the parallel state of the dual power supply based on the difference between the first voltage and the second voltage. The MCU 110 is also used to control the working state of the first charging and discharging circuit 120 and the second charging and discharging circuit 130 based on the parallel state and the charging and discharging state.
[0030] This disclosure does not limit the types of the first power supply 200 and the second power supply 300; for example, they can be batteries, capacitors, or other devices. Understandably, the dual-power supply charging and discharging system provided by this disclosure does not require a communication module. The MCU 110 detects and processes the voltage and current information of the two power supplies, and then controls the operating states of the first charging and discharging circuit 120 and the second charging and discharging circuit 130, achieving automated control of the dual-power supply charging and discharging system without manual intervention, thus reducing control complexity. Furthermore, the entire system can be applied to batteries of different products, has a wide range of applications, requires no communication module, has strong anti-interference capabilities, low power consumption, and high security.
[0031] As one implementation, the dual-power charging and discharging system includes a first voltage detection module 150 and a second voltage detection module 160. The first voltage detection module 150 is connected to both the MCU 110 and the first power supply 200, and the second voltage detection module 160 is connected to both the MCU 110 and the second power supply 300. The first voltage detection module 150 is used to detect the first voltage of the first power supply 200 in real time and transmit the first voltage to the MCU 110; the second voltage detection module 160 is used to detect the second voltage of the second power supply 300 in real time and transmit the second voltage to the MCU 110.
[0032] Furthermore, in one implementation, please refer to [link / reference]. Figure 2 The first charging / discharging circuit 120 includes a first charging switch 121, a first discharging switch 122, a first driving module 124, and a first current detection module 123. A first power supply 200, the first charging switch 121, the first discharging switch 122, the first current detection module, and a charging / discharging interface 140 are connected in sequence. The first driving module 124 is connected to the first charging switch 121, the first discharging switch 122, and the MCU 110. The second charging / discharging circuit 130 includes a second charging switch 131, a second discharging switch 132, a second driving module 134, and a second current detection module 133. A second power supply 300, the second charging switch 131, the second discharging switch 132, the second current detection module 133, and a charging / discharging interface 140 are connected in sequence. The second driving module 134 is connected to the second charging switch 131, the second discharging switch 132, and the MCU 110. This disclosure does not limit the specific types of the first charging switch 121, the first discharging switch 122, the second charging switch 131, and the second discharging switch 132; they can be MOSFETs, IGBTs, etc. For example, the first charging switch 121, the first discharging switch 122, the second charging switch 131, and the second discharging switch 132 are all MOSFETs, and the body diodes of the charging and discharging switches have different orientations. Specifically, the cathode of the body diode of the first charging switch 121 is connected to the first power supply 200, and the anode is connected to the first discharging switch 122; the anode of the first discharging switch 122 is connected to the first charging switch 121, and the cathode is connected to the first current detection module. The cathode of the body diode of the second charging switch 131 is connected to the second power supply 300, and the anode is connected to the second discharging switch 132; the anode of the second discharging switch 132 is connected to the second charging switch 131, and the cathode is connected to the second current detection module 133.
[0033] The first current detection module can acquire the current of the first charging / discharging circuit 120 and feed it back to the MCU 110. The second current detection module 133 can acquire the current of the second charging / discharging circuit 130 and feed it back to the MCU 110. Furthermore, the MCU 110 controls the on / off states of the first charging switch 121 and the first discharging switch 122 through the first driving module 124, and controls the on / off states of the second charging switch 131 and the second discharging switch 132 through the second driving module 134. By controlling the on / off states of the first charging switch 121, the first discharging switch 122, the second charging switch 131, and the second discharging switch 132, the MCU 110 can switch the operating states of the first charging / discharging circuit 120 and the second charging / discharging circuit 130. The first charging / discharging circuit 120 and the second charging / discharging circuit 130 operate in two states: on and off. For example, the first charging / discharging circuit 120 is in the on state when both the first charging switch 121 and the first discharging switch 122 are on, and in the off state when at least one of them is off. Similarly, the second charging / discharging circuit 130 operates in the same way.
[0034] In this disclosure, the MCU110 makes a comprehensive judgment based on current and voltage to control the operating states of the first charging / discharging circuit 120 and the second charging / discharging circuit 130. The charging / discharging states described in this disclosure include charging and discharging states. The charging state refers to the first power supply 200 and the second power supply 300 discharging externally through the charging / discharging interface 140. For example, when the charging / discharging interface 140 is connected to a load, either the first power supply 200 or the second power supply 300, or both, discharge to the load. The charging state refers to the charging / discharging interface 140 being connected to an external power supply, where the external power supply is either the first power supply 200 or the second power supply 300, or both simultaneously charging. The parallel connection states described in this disclosure include single-path and dual-path states. A single-path state refers to either the first charging / discharging circuit 120 or the second charging / discharging circuit 130 charging or discharging. A dual-path state refers to both the first charging / discharging circuit 120 and the second charging / discharging circuit 130 charging or discharging simultaneously. Based on this, the dual power supply can include a single-channel charging state, a single-channel discharging state, a dual-channel charging state, and a dual-channel discharging state. The MCU110 can switch between different states of the dual power supply by controlling the on / off states of the first charging switch 121, the first discharging switch 122, the second charging switch 131, and the second discharging switch 132. For example, when the dual power supply is in the dual-channel discharging state, it means that the charging / discharging interface 140 is connected to the load, and the first power supply 200 and the second power supply 300 jointly supply power to the load.
[0035] In one implementation, when determining the charging and discharging state of the charging and discharging circuit, the MCU110 first identifies the target charging and discharging circuit in the first charging and discharging circuit 120 and the second charging and discharging circuit 130. Then, when the current of the target charging and discharging circuit is greater than a first current threshold, it determines that the dual power supply is in a discharging state. When the current of the target charging and discharging circuit is less than the first current threshold, it determines that the dual power supply is in a charging state.
[0036] The target charging / discharging circuit can be either the first charging / discharging circuit 120 or the second charging / discharging circuit 130, or both the first charging / discharging circuit 120 and the second charging / discharging circuit 130 can be used as the target charging / discharging circuit. When the target charging / discharging circuit is either the first charging / discharging circuit 120 or the second charging / discharging circuit 130, the charging / discharging circuit corresponding to the power supply with the larger voltage can be selected as the target charging / discharging circuit.
[0037] Furthermore, when the charging / discharging interface 140 is connected to a device (such as a load or power supply), the entire dual-power charging / discharging system is powered on and defaults to a discharging state. That is, regardless of whether a load or a power supply is connected, the entire system is initially in a discharging state. At this time, the MCU 110 can obtain the power supply voltage through the voltage detection module and the current of the charging / discharging circuit through the current detection module (although neither the first charging / discharging circuit 120 nor the second charging / discharging circuit 130 is open at this time, current still flows because there is a body diode in the switching transistor). In this disclosure, the power supply outflow current is defined as positive, and vice versa. Of course, in some other embodiments, the current detection module can also be adjusted so that the power supply outflow current is negative and vice versa, which is not limited here.
[0038] Understandably, the first current threshold serves as the basis for determining the charging and discharging states. Taking the current flowing out of the power source as positive and vice versa as negative, to more accurately detect the specific current flow direction, the first current threshold is set to a value slightly lower than 0A, for example, a value between -0.3A and -0.1A, such as first current threshold = -0.1A, -0.2A, or -0.3A. When the current in the target charging / discharging circuit is greater than the first current threshold, it indicates that the current flows from the power source to the downstream end, and the power source is in a discharging state. Conversely, when the current in the target charging / discharging circuit is less than the first current threshold, it indicates that the current flows from the downstream end to the power source, and the power source is in a charging state.
[0039] When determining the parallel connection state, if the voltage difference between the first power supply 200 and the second power supply 300 is large, they cannot charge or discharge simultaneously. If the voltage difference between the first power supply 200 and the second power supply 300 is small, they can charge or discharge simultaneously. Based on this, the MCU110 determines that the dual power supplies are in a single-path state when the difference between the first voltage and the second voltage is greater than a voltage threshold; and determines that the dual power supplies are in a dual-path state when the difference between the first voltage and the second voltage is less than a voltage threshold. The difference mentioned in this disclosure can be the absolute value of the difference between the first voltage and the second voltage, or it can be the difference between the larger voltage value and the smaller voltage value of the first voltage and the second voltage.
[0040] The control of charging and discharging states is explained below: When in a discharge state, if it is a single-channel discharge state, the MCU110 will control the first discharge switch 122 and the second discharge switch 132 to turn on, and control the charging switch in the target charge / discharge circuit to turn on; wherein, the target charge / discharge circuit is the first charge / discharge circuit 120 or the second charge / discharge circuit 130. For example, if the MCU110 controls the first discharge switch 122 and the second discharge switch 132 to turn on, and simultaneously controls the first charging switch 121 to turn on, then the first charge / discharge circuit 120 is fully open, while in the second charge / discharge circuit 130, the second discharge switch 132 is turned on, and the second charging switch 131 is in the off state, so the second charge / discharge circuit 130 is in the off state.
[0041] In the dual-path discharge state, the MCU110 will control the first discharge switch 122, the second discharge switch 132, the first charging switch 121, and the second charging switch 131 to be turned on. At this time, the first charging and discharging circuit 120 and the second charging and discharging circuit 130 are fully open, and the first power supply 200 and the second power supply 300 supply power to the back-end load.
[0042] Furthermore, when in single-channel discharge mode, MCU110 will also control the charging switch in the other charging circuit to turn on when the current in the other charging circuit besides the target charging circuit is greater than the second current threshold.
[0043] When there is a sudden increase in load, such as when the load current demand jumps from 10A to 50A, a single charging / discharging circuit cannot meet the load's power supply requirements. In this case, the MCU110 will control another charging / discharging circuit to also conduct, thereby supplying power to the downstream load. For example, if the MCU110 controls the first discharge switch 122, the second discharge switch 132, and the first charging switch 121 to conduct, the first power supply 200 supplies power to the downstream load. However, if the second current detection module 133 detects that the current in the second charging / discharging circuit 130 is greater than the second current threshold, the MCU110 will control the second charging switch 131 to conduct, switching to a dual-path discharge state.
[0044] As another example, when in single-circuit discharge mode, as the discharge to the back-end load continues, the voltage of the power supply used for discharge decreases. When the voltage difference between the first power supply 200 and the second power supply 300 becomes small, the first charging and discharging circuit 120 and the second charging and discharging circuit 130 will also be fully opened, switching to dual-circuit discharge mode.
[0045] Furthermore, in the dual-circuit discharge state, since this state may be a normal state (i.e., the difference between the first power supply 200 and the second power supply 300 is small) or a sudden state (although the difference between the first power supply 200 and the second power supply 300 is large, the load increases instantaneously), the MCU110 will also control the first charging and discharging circuit 120 to disconnect when the current of the first charging and discharging circuit 120 is less than the third current threshold and the current of the second charging and discharging circuit 130 is greater than the fourth current threshold; or control the second charging and discharging circuit 130 to disconnect when the current of the second charging and discharging circuit 130 is less than the third current threshold and the current of the first charging and discharging circuit 120 is greater than the fourth current threshold.
[0046] If the abnormal state of a sudden increase in load disappears, a reverse current flow will occur due to the large voltage difference between the first power supply 200 and the second power supply 300. For example, if the voltage of the first power supply 200 is greater than the voltage of the second power supply 300, and the voltage difference is large, both the first charging / discharging circuit 120 and the second charging / discharging circuit 130 will be conducting. Therefore, the first power supply 200 will not only supply power to the downstream load, but will also charge the second power supply 300 through the first charging / discharging circuit 120 and the second charging / discharging circuit 130. This will cause the current detected by the first current detection module to increase abnormally, while the current detected by the second current detection module 133 will become negative. Therefore, if the current detected by the second charging / discharging circuit 130 is less than the third current threshold and the current detected by the first charging / discharging circuit 120 is greater than the fourth current threshold, the MCU 110 will control the second charging / discharging circuit 130 to disconnect, switching the dual power supply to a single power supply state.
[0047] When in charging state, if in single-channel discharging state, MCU110 will control the first charging switch 121 and the second charging switch 131 to turn on, and control the discharge switch in the target charging and discharging circuit to turn on; wherein, the target charging and discharging circuit is the first charging and discharging circuit 120 or the second charging and discharging circuit 130, and the target charging and discharging circuit is the charging and discharging circuit corresponding to the power supply with the smaller voltage value between the first power supply 200 and the second power supply 300.
[0048] For example, if the voltage of the first power supply 200 is less than the voltage of the second power supply 300, and the difference is large, the MCU110 will control the first charging switch 121 and the second charging switch 131 to turn on, and at the same time control the first discharging switch 122 to turn on. Then the first charging and discharging circuit 120 will be fully open, while in the second charging and discharging circuit 130, the second charging switch 131 will be on, and the second discharging switch 132 will be off. Therefore, the second charging and discharging circuit 130 will be off.
[0049] In dual-channel charging mode, MCU110 will control the first discharge switch 122, the second discharge switch 132, the first charging switch 121, and the second charging switch 131 to be turned on. At this time, the first charging and discharging circuit 120 and the second charging and discharging circuit 130 are fully open, and the external power supply is the first power supply 200 and the second power supply 300 to charge simultaneously.
[0050] Furthermore, in dual-channel charging mode, as charging continues, the first power supply 200 and the second power supply 300 will be fully charged sequentially or simultaneously. Therefore, if the MCU110 confirms that the current in any charging / discharging circuit is greater than the fifth current threshold, it indicates that the power supply is fully charged, and the corresponding charging / discharging circuit can be disconnected.
[0051] In single-channel charging mode, the MCU110 will also control the charging switch in the other charging / discharging circuit to turn on when the current in the other charging / discharging circuit (excluding the target charging / discharging circuit) is less than the seventh current threshold. That is, as charging progresses, when the voltage difference between one power supply and the other power supply becomes small, the single-channel charging mode can be switched to dual-channel charging mode. The fifth current threshold is closer to 0A than the seventh current threshold.
[0052] Furthermore, when in charging mode, if the current in the first charging / discharging circuit 120 and / or the second charging / discharging circuit 130 exceeds the sixth current threshold, the dual power supply is switched to discharging mode. That is, when switching from charging mode to discharging mode, the switch is performed directly if the current exceeds the sixth current threshold.
[0053] In one implementation, the dual-power charging and discharging system further includes a first activation circuit 170 and a second activation circuit 180. The first activation circuit 170 is connected to the first power supply 200 and the charging / discharging interface 140, respectively; the second activation circuit 180 is connected to the second power supply 300 and the charging / discharging interface 140, respectively. The first activation circuit 170 and the second activation circuit 180 are used to provide voltage to the corresponding power supply for power activation after the system is powered on. When both power supplies are discharged, connecting the charger powers on the module and provides voltage to the battery through the activation circuit for battery activation.
[0054] Based on the above implementation, this disclosure also provides a dual-power charging and discharging control method, which is applied to the MCU110 of the above-mentioned dual-power charging and discharging system. Please refer to [link to relevant documentation]. Figure 3 The method includes: S102, after the system is powered on, obtain the first voltage of the first power supply and the second voltage of the second power supply, and obtain the current of the first charging and discharging circuit 120 and / or the current of the second charging and discharging circuit 130.
[0055] S104, determine the charging and discharging state of the dual power supply based on the current of the first charging and discharging circuit 120 or the second charging and discharging circuit 130; and determine the parallel state of the dual power supply based on the difference between the first voltage and the second voltage.
[0056] S106 controls the working state of the first charging / discharging circuit 120 and the second charging / discharging circuit 130 based on the parallel state and the charging / discharging state.
[0057] In summary, this disclosure provides a dual-power charging and discharging system and method. The dual-power charging and discharging system includes an MCU, a first charging and discharging circuit, a second charging and discharging circuit, and a charging and discharging interface. The first charging and discharging circuit and the second charging and discharging circuit are respectively connected to the MCU and the charging and discharging interface. The first charging and discharging circuit is also used to connect to a first power supply, and the second charging and discharging circuit is also used to connect to a second power supply. After the system is powered on, the MCU is used to acquire a first voltage of the first power supply and a second voltage of the second power supply, and to acquire the current of the first charging and discharging circuit and / or the current of the second charging and discharging circuit. The MCU is also used to determine the charging and discharging state of the dual power supplies based on the current of the first charging and discharging circuit or the second charging and discharging circuit, and to determine the parallel connection state of the dual power supplies based on the difference between the first voltage and the second voltage. The MCU is also used to control the operating state of the first charging and discharging circuit and the second charging and discharging circuit based on the parallel connection state and the charging and discharging state. Because the dual-power charging and discharging system provided in this disclosure obtains the voltage and current of the two power sources, thereby determining the parallel connection state and charging and discharging state of the dual power sources, and further realizes the working state control of the charging and discharging circuit, the automated control of the dual-power charging and discharging system is realized. Its control strategy is simpler, requires no manual intervention, and reduces the complexity of dual-battery charging and discharging control.
[0058] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
[0059] It will be apparent to those skilled in the art that this disclosure is not limited to the details of the exemplary embodiments described above, and that this disclosure can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of this disclosure is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within this disclosure. No reference numerals in the claims should be construed as limiting the scope of the claims.
Claims
1. A dual-power charging and discharging system, characterized in that, The dual-power charging and discharging system includes an MCU, a first charging and discharging circuit, a second charging and discharging circuit, and a charging and discharging interface. The first and second charging and discharging circuits are respectively connected to the MCU and the charging and discharging interface. The first charging and discharging circuit is also used to connect to a first power source, and the second charging and discharging circuit is also used to connect to a second power source. After the system is powered on, the MCU is used to obtain the first voltage of the first power supply and the second voltage of the second power supply, and to obtain the current of the first charging and discharging circuit and / or the current of the second charging and discharging circuit. The MCU is also used to determine the charging and discharging state of the dual power supply based on the current of the first charging and discharging circuit or the second charging and discharging circuit; and to determine the parallel state of the dual power supply based on the difference between the first voltage and the second voltage. The MCU is also used to control the operating status of the first charging / discharging circuit and the second charging / discharging circuit based on the parallel state and the charging / discharging state.
2. The dual-power charging and discharging system according to claim 1, characterized in that, The charging and discharging states include charging state and discharging state, and the parallel state includes single-path state and dual-path state. The MCU is used to determine that the dual power supply is in a discharging state when the current in the target charging and discharging circuit is greater than a first current threshold, and to determine that the dual power supply is in a charging state when the current in the target charging and discharging circuit is less than the first current threshold; wherein, the target charging and discharging circuit is a first charging and discharging circuit or a second charging and discharging circuit. The MCU is also used to determine that the dual power supply is in a single-path state when the difference between the first voltage and the second voltage is greater than a voltage threshold; and to determine that the dual power supply is in a dual-path state when the difference between the first voltage and the second voltage is less than a voltage threshold.
3. The dual-power charging and discharging system according to claim 1, characterized in that, The first charging and discharging circuit includes a first charging switch, a first discharging switch, a first driving module, and a first current detection module. The first power supply, the first charging switch, the first discharging switch, the first current detection module, and the charging and discharging interface are connected in sequence. The first driving module is connected to the first charging switch, the first discharging switch, and the MCU. The second charging and discharging circuit includes a second charging switch, a second discharging switch, a second driving module, and a second current detection module. The second power supply, the second charging switch, the second discharging switch, the second current detection module, and the charging and discharging interface are connected in sequence. The second driving module is connected to the second charging switch, the second discharging switch, and the MCU. The MCU is also used to control the first discharge switch and the second discharge switch to be turned on when the dual power supply is determined to be in a single-channel discharge state, and to control the charging switch in the target charging and discharging circuit to be turned on; wherein, the target charging and discharging circuit is the first charging and discharging circuit or the second charging and discharging circuit; and the MCU is used to adjust the working state of the first charging and discharging circuit and the second charging and discharging circuit by controlling the on and off states of the first charging switch, the first discharge switch, the second charging switch, and the second discharge switch.
4. The dual-power charging and discharging system according to claim 3, characterized in that, The MCU is also used to control the charging switch in the other charging circuit to turn on when the current in the other charging circuit besides the target charging circuit is greater than the second current threshold.
5. The dual-power charging and discharging system according to claim 1, characterized in that, The MCU is also configured to, when determining that the dual power supply is in a dual-path discharge state, control the first charging / discharging circuit to disconnect when the current in the first charging / discharging circuit is less than a third current threshold and the current in the second charging / discharging circuit is greater than a fourth current threshold; or When the current in the second charging / discharging circuit is less than the third current threshold and the current in the first charging / discharging circuit is greater than the fourth current threshold, the second charging / discharging circuit is controlled to disconnect.
6. The dual-power charging and discharging system according to claim 1, characterized in that, The first charging and discharging circuit includes a first charging switch, a first discharging switch, a first driving module, and a first current detection module. The first power supply, the first charging switch, the first discharging switch, the first current detection module, and the charging and discharging interface are connected in sequence. The first driving module is connected to the first charging switch, the first discharging switch, and the MCU. The second charging and discharging circuit includes a second charging switch, a second discharging switch, a second driving module, and a second current detection module. The second power supply, the second charging switch, the second discharging switch, the second current detection module, and the charging and discharging interface are connected in sequence. The second driving module is connected to the second charging switch, the second discharging switch, and the MCU. The MCU is also used to control the first charging switch and the second charging switch to turn on when it is determined that the dual power supply is in a single-channel charging state, and to control the discharge switch in the target charging and discharging circuit to turn on; wherein, the target charging and discharging circuit is the first charging and discharging circuit or the second charging and discharging circuit.
7. The dual-power charging and discharging system according to claim 1, characterized in that, The MCU is also used to control the corresponding charging / discharging circuit to disconnect when the current of any charging / discharging circuit is greater than the fifth current threshold when the dual power supply is determined to be in a dual-circuit charging state.
8. The dual-power charging and discharging system according to claim 1, characterized in that, The MCU is also used to control the dual power supply to switch to the discharge state when the current of the first charging / discharging circuit and / or the second charging / discharging circuit is greater than the sixth current threshold when the dual power supply is determined to be in the charging state.
9. The dual-power charging and discharging system according to claim 1, characterized in that, The dual-power charging and discharging system further includes a first activation circuit and a second activation circuit. The first activation circuit is connected to the first power source and the charging and discharging interface, respectively; the second activation circuit is connected to the second power source and the charging and discharging interface, respectively. The first activation circuit and the second activation circuit are used to provide voltage to the corresponding power supply for power activation after the system is powered on.
10. A dual-power supply charging and discharging control method, characterized in that, The method is applied to an MCU in a dual-power-supply charging and discharging system as described in any one of claims 1 to 9, and the method includes: After the system is powered on, the first voltage of the first power supply and the second voltage of the second power supply are obtained, and the current of the first charging and discharging circuit and / or the current of the second charging and discharging circuit are obtained. The charging and discharging state of the dual power supply is determined based on the current in the first or second charging and discharging circuit; and the parallel state of the dual power supply is determined based on the difference between the first and second voltages. The operating states of the first and second charging / discharging circuits are controlled based on parallel connection and charging / discharging states.