Charging and discharging state switching control method and related device
Through the bidirectional DC/DC module, the DC bus and battery voltage status are intelligently monitored, and the charging and discharging state switching judgment is directly performed, which solves the problems of charge and discharge delay and low efficiency in the prior art, and realizes a high stability and low cost DC bus power supply system.
Patent Information
- Application Number
- CN202510685406.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-05-27
AI Technical Summary
In the existing control scheme of bidirectional DC/DC modules, the DC bus voltage changes to the module that receives the charge and discharge switching instruction, which leads to a slow charge and discharge response and poor switching efficiency, which increases system cost.
Through the bidirectional DC/DC module, the DC bus status and battery voltage status are intelligently monitored, and the charging and discharging state switching is directly determined, and the low-delay charging and discharging switching control is realized. The specific method includes obtaining the DC bus voltage, battery pack voltage and current working mode of the target full-bridge circuit, determining whether the discharge or charging state switching conditions are met, and adjusting the operating mode of the charge and discharge module and the configuration of the switch tube according to the judgment result.
It improves the stability of the DC bus power supply system, reduces the number of system modules, thereby reducing costs, and implements low-latency charging and discharging switching control.
Smart Images

Figure CN120200358A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of power supplies, and particularly relates to a charge-discharge state switching control method and related devices. Background Art
[0002] With the rapid development of power electronics technology, bidirectional DC / DC modules are widely used in DC bus power supply systems. The control logic of the bidirectional DC / DC module in the DC bus power supply system is that when the DC bus has sufficient energy, the bidirectional DC / DC module charges the battery pack and stores the excess energy in the battery pack. When the DC bus has insufficient energy, the bidirectional DC / DC module draws power from the battery pack to supply power to the DC bus to ensure the normal operation of DC loads.
[0003] However, in the current control scheme of bidirectional DC / DC modules, after the monitoring module detects the overvoltage and undervoltage states of the DC bus, the monitoring module then issues charge-discharge instructions to the bidirectional DC / DC module through the CAN bus. Considering the hysteresis of sampling in the DC bus power supply system and the relatively high message occupancy rate of the CAN bus, there will be a delay of hundreds of milliseconds from the voltage change of the DC bus to the bidirectional DC / DC module receiving the charge-discharge switching instruction, resulting in slow charge-discharge response of the bidirectional DC / DC module. At the same time, when the bidirectional DC / DC module performs charge-discharge switching, it is necessary to switch the switching tube waveform configuration, switch the loop control of the voltage loop and current loop, and adjust the energy transfer amount. The bidirectional DC / DC module needs to perform a power-on and power-off operation to achieve charge-discharge switching, and a single power-on and power-off takes several seconds, resulting in poor switching efficiency of the bidirectional DC / DC module. In addition, considering the poor switching efficiency of the bidirectional DC / DC module, when the bidirectional DC / DC module is charging, in order to ensure sufficient capacity to support the load demand of the DC bus, a sufficient number of bidirectional DC / DC modules need to be in the discharge state all the time to ensure that energy transfer can be responded to at any time. Therefore, the number of system modules required is too large, resulting in high costs. Summary of the Invention
[0004] The embodiments of this application provide a charge-discharge state switching control method and related devices. Using the embodiments of this application can directly realize the intelligent monitoring of the DC bus state and battery voltage state by the bidirectional DC / DC module, determine the charge-discharge state switching, and achieve low-delay charge-discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing costs due to reducing the number of system modules.
[0005] In a first aspect, the embodiments of this application provide a charge-discharge state switching control method, which is applied to a charge-discharge module in a DC bus power supply system; the method includes: Obtain the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charging and discharging module; Judge whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage; If it is judged that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, then judge whether the charging and discharging module is in the discharge state; If it is judged that the charging and discharging module is not in the discharge state, then assign the current working mode of the charging and discharging module to the discharge state, control the switch tube in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave of the switch tube in the target full-bridge circuit to discharge, assign the first output result to the first preset value, assign the output result of the previous beat of the current loop to the first preset value, assign the output result of the previous beat of the voltage loop to the first preset value, respectively assign the output increment step of the voltage loop and the current loop to the second preset value, and assign the discharge step timer to the first preset value. The first output result is the smaller output result of the output result of the previous beat of the voltage loop and the output result of the previous beat of the current loop.
[0006] In a possible example, the judging whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage includes: Judge whether the DC bus voltage is less than or equal to the preset DC bus undervoltage value; If it is judged that the DC bus voltage is less than the preset DC bus undervoltage value, then judge whether the battery pack voltage is greater than the preset battery pack undervoltage value; If it is judged that the battery pack voltage is greater than the preset battery pack undervoltage value, it is determined that the target full-bridge circuit meets the discharge state switching condition; If it is judged that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, it is determined that the target full-bridge circuit does not meet the discharge state switching condition; If it is judged that the DC bus voltage is greater than or equal to the preset DC bus undervoltage value, it is determined that the target full-bridge circuit does not meet the discharge state switching condition.
[0007] In a possible example, after the step of if it is judged that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, it is determined that the target full-bridge circuit does not meet the discharge state switching condition, it includes: Assign the current working mode of the charging and discharging module to the charge and discharge prohibited state; Control the switch tube in the target full-bridge circuit to turn off the wave.
[0008] In a possible example, after determining whether the charge and discharge module is in a discharge state, it includes: If it is determined that the charge and discharge module is in a discharge state, obtain the first timing value of the discharge step timer; If it is determined that the first timing value is equal to the third preset value, control the switch tubes in the target full-bridge circuit to turn on; If it is determined that the first timing value is less than or equal to the charge and discharge step limit duration, determine the second output result, and determine the third output result according to the first output result and the output increment step. The second output result is the smaller output result between the output result of the voltage loop and the output result of the current loop in the current beat; If it is determined that the second output result is greater than the third output result, assign the second output result to the third output result, assign the output result of the previous beat of the current loop to the third output result, and assign the output result of the previous beat of the voltage loop to the third output result; If it is determined that the second output result is less than or equal to the third output result, assign the output result of the previous beat of the current loop to the output result of the current beat of the current loop, and assign the output result of the previous beat of the voltage loop to the output result of the current beat of the voltage loop; If it is determined that the first timing value is greater than the charge and discharge step limit duration, assign the timing value of the discharge step timer to the charge and discharge step limit duration, and assign the output result of the previous beat of the current loop to the output result of the current beat of the current loop, and assign the output result of the previous beat of the voltage loop to the output result of the current beat of the voltage loop.
[0009] In a possible example, after obtaining the DC bus voltage, the battery pack voltage, and the current working mode of the charge and discharge module of the target full-bridge circuit, it includes: Judge whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage; If it is determined that the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage, judge whether the charge and discharge module is in a charging state; If it is determined that the charge and discharge module is not in the charging state, assign the operating mode of the charge and discharge module to the charging state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave of the switch tubes in the target full-bridge circuit for charging, assign the first output result to a first preset value, assign the output result of the previous beat of the current loop to the first preset value, assign the output result of the previous beat of the voltage loop to the first preset value, assign the output increment step of the voltage loop and the current loop to a second preset value, and assign the charging step timer to the first preset value.
[0010] In a possible example, the determining whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage includes: Determine whether the DC bus voltage is greater than a preset DC bus undervoltage value; If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, then determine whether the battery pack voltage is less than or equal to a preset battery pack overvoltage value; If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, then determine that the target full-bridge circuit meets the charging state switching condition; If it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, then determine that the target full-bridge circuit does not meet the charging state switching condition; If it is determined that the DC bus voltage is less than or equal to the preset DC bus undervoltage value, then determine that the target full-bridge circuit does not meet the charging state switching condition.
[0011] In a possible example, after determining whether the charge and discharge module is in the charging state, it includes: If it is determined that the charge and discharge module is in the charging state, obtain the second timing value of the charging step timer; If it is determined that the second timing value is equal to a third preset value, control the switch tubes in the target full-bridge circuit to unblock the wave; If it is determined that the second timing value is less than or equal to the charge and discharge step limit duration, then determine whether the second output result is greater than the third output result; If it is determined that the second output result is greater than the third output result, then assign the second output result to the third output result, assign the output result of the previous beat of the current loop to the third output result, and assign the output result of the previous beat of the voltage loop to the third output result; If it is determined that the second output result is less than or equal to the third output result, then assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop; If it is determined that the second timing value is greater than the charge-discharge step limit duration, then assign the timing value of the charge-discharge step timer to the charge-discharge step limit duration, assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop.
[0012] In a second aspect, an embodiment of the present application provides a charge-discharge state switching control device, which is applied to a charge-discharge module in a DC bus power supply system. The charge-discharge state switching control device includes an acquisition unit, a judgment unit, and a control unit, where, The acquisition unit is configured to acquire the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge-discharge module; The judgment unit is configured to judge whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage; The judgment unit is further configured to, if it is judged that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, then judge whether the charge-discharge module is in the discharge state; The control unit is configured to, if it is judged that the charge-discharge module is not in the discharge state, then assign the current working mode of the charge-discharge module to the discharge state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tubes in the target full-bridge circuit for discharge, assign the first output result to a first preset value, assign the output result of the previous cycle of the current loop to the first preset value, assign the output result of the previous cycle of the voltage loop to the first preset value, respectively assign the output increment step of the voltage loop and the current loop to a second preset value, and assign the discharge step timer to the first preset value, where the first output result is the smaller output result of the output result of the previous cycle of the voltage loop and the output result of the previous cycle of the current loop.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and are configured to be executed by the processor. The programs include instructions for executing the steps in the first aspect of the embodiments of the present application.
[0014] Fourthly, an embodiment of the present application provides a computer-readable storage medium, on which a computer program / instructions are stored, and when the computer program / instructions are executed by a processor, the steps in the first aspect of the embodiments of the present application are implemented.
[0015] Fifthly, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application.
[0016] It can be seen that in the embodiment of the present application, the charge and discharge module can first obtain the DC bus voltage, the battery pack voltage, and the current working mode of the target full-bridge circuit of the target full-bridge circuit, then determine whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, and then if it is determined according to the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets the discharge state switching condition, it is determined whether the charge and discharge module is in the discharge state. Further, if it is determined that the charge and discharge module is not in the discharge state, the current working mode of the charge and discharge module is assigned to the discharge state, the switching tube in the target full-bridge circuit is blocked, the enhanced pulse width modulation wave of the switching tube in the target full-bridge circuit is configured for discharge, the first output result is assigned to the first preset value, the output result of the previous beat of the current loop is assigned to the first preset value, the output result of the previous beat of the voltage loop is assigned to the first preset value, the output increments of the voltage loop and the current loop are respectively assigned to the second preset value, and the discharge step timer is assigned to the first preset value. The first output result is the smaller output result of the output result of the previous beat of the voltage loop and the output result of the previous beat of the current loop. It can directly and intelligently monitor the DC bus state and the battery voltage state through the bidirectional DC / DC module, determine the charge and discharge state switching, and achieve low-delay charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the cost due to reducing the number of system modules. Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 is a schematic diagram of a DC bus power supply system provided by an embodiment of the present application; Figure 2 is a schematic diagram of a DAB circuit provided by an embodiment of the present application; Figure 3 It is a schematic flow chart of a charge and discharge state switching control method provided by an embodiment of the present application; Figure 4 It is a schematic diagram of a triple-phase phase-shifted charging mode wave configuration provided by an embodiment of the present application; Figure 5 It is a schematic diagram of another triple-phase phase-shifted discharge mode wave configuration provided by an embodiment of the present application; Figure 6 It is a flow chart of a dual-loop competition control of a voltage loop and a current loop provided by an embodiment of the present application; Figure 7 It is a schematic diagram of the output result of a loop takeover strategy provided by an embodiment of the present application; Figure 8 It is a schematic diagram of the output result of another loop takeover strategy provided by an embodiment of the present application; Figure 9 It is a flow chart of determining whether the discharge state switching condition is satisfied provided by an embodiment of the present application; Figure 10 It is a flow chart of a working mode assignment provided by an embodiment of the present application; Figure 11 It is a flow chart of an increasing step control provided by an embodiment of the present application; Figure 12 It is a schematic flow chart of another charge and discharge state switching control method provided by an embodiment of the present application; Figure 13 It is a schematic flow chart of another charge and discharge state switching control method provided by an embodiment of the present application; Figure 14 It is a schematic flow chart of another charge and discharge state switching control method provided by an embodiment of the present application; Figure 15 It is a schematic overall flow chart of a charge and discharge state switching control method provided by an embodiment of the present application; Figure 16 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application; Figure 17 It is a block diagram of the functional units of a charge and discharge state switching control device provided by an embodiment of the present application. Detailed implementation manners
[0019] To enable those skilled in the art to better understand the solution of this application, the following will clearly and completely describe the technical solutions in the embodiments of this application in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0020] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.
[0021] Referring to "embodiment" herein means that a specific feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of this application. The phrase appears in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
[0022] The "and / or" in the embodiments of this application describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone; both A and B exist simultaneously; B exists alone. Among them, A and B may be singular or plural.
[0023] In the embodiments of this application, the symbol " / " may represent an "or" relationship between the associated objects before and after. In addition, the symbol " / " may also represent a division sign, that is, perform a division operation. For example, A / B may represent A divided by B.
[0024] The "at least one (item)" or its similar expression in the embodiments of this application refers to any combination of these items, including any combination of single item (item) or plural items (items), and refers to one or more, and multiple refers to two or more. For example, at least one (item) of a, b or c may represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b and c. Among them, each of a, b, c may be an element or a set containing one or more elements.
[0025] In the embodiments of the present application, "equal to" can be used in combination with "greater than", applicable to the technical solutions adopted when it is greater than, or can be used in combination with "less than", applicable to the technical solutions adopted when it is less than. When "equal to" is used in combination with "greater than", it is not used in combination with "less than"; when "equal to" is used in combination with "less than", it is not used in combination with "greater than".
[0026] To better understand the solutions of the embodiments of the present application, the electronic devices, related concepts and backgrounds that may be involved in the embodiments of the present application will be introduced first below.
[0027] The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (UE), mobile station (MS), terminal device, etc. For the convenience of description, the devices mentioned above are collectively referred to as electronic devices.
[0028] Please refer to Figure 1 , Figure 1 is a schematic diagram of a DC bus power supply system provided by the embodiments of the present application. As Figure 1 shown, the DC bus power supply system includes a DC bus 10, a bidirectional AC / DC module 20, an AC mains 30, a DC load 40, a bidirectional DC / DC module 50, a battery pack 60, a monitoring module 70, an MPPT module 80, and a solar photovoltaic panel 90. The bidirectional AC / DC module 20 is connected to the AC mains 30 through phase A, phase B, phase C, and the PE line. The bidirectional AC / DC module 20 is connected to the monitoring module 70 through CAN_L and CAN_H. The bidirectional AC / DC module 20 is also respectively connected to the DC bus 10, the bidirectional DC / DC module 50, the battery pack 60, and the MPPT module 80. The DC bus 10 is respectively connected to the DC load 40, the MPPT module 80, and the bidirectional DC / DC module 50. The bidirectional DC / DC module 50 is connected to the battery pack 60. The MPPT module 80 is connected to the solar photovoltaic panel 90; wherein, Vbus+ represents the positive pole of the power bus, Vbus- represents the negative pole of the power bus, Vbat+ represents the positive pole of the battery power, Vbat- represents the negative pole of the battery power, DC+ represents the positive pole of the DC power, and DC- represents the negative pole of the DC power.
[0029] Among them, the charge and discharge module is the bidirectional DC / DC module 50, and the target full-bridge circuit can be a DAB (Dual Active Bridge) circuit. For example, as Figure 2 shown, Figure 2It is a schematic diagram of a DAB circuit provided by an embodiment of the present application. Cbus is an electrolytic capacitor on the DC bus side, Cbat is an electrolytic capacitor on the battery side, and Tr is a transformer. The transformer includes a primary winding and a secondary winding. Two ends of the electrolytic capacitor on the DC bus side are respectively connected to a first end of a first switch tube Q1 and a second end of a second switch tube Q2. The second end of the first switch tube Q1 is respectively connected to a first end of the second switch tube Q2 and a first end of a first inductor L1. The first end of the first switch tube Q1 is connected to a first end of a third switch tube Q3. The second end of the third switch tube Q3 is respectively connected to a first end of a fourth switch tube Q4 and a second end of the primary winding. The first inductor L1 is connected to a first end of the primary winding. The second end of the fourth switch tube Q4 is connected to the second end of the second switch tube Q2. The first end of the secondary winding is respectively connected to a second end of a fifth switch tube Q5 and a first end of a sixth switch tube Q6. The first end of the fifth switch tube Q5 is respectively connected to a first end of a seventh switch tube Q7 and a first end of the electrolytic capacitor on the battery side. The second end of the seventh switch tube Q7 is respectively connected to a first end of an eighth switch tube Q8 and a second end of the secondary winding. The second end of the eighth switch tube Q8 is respectively connected to the second end of the sixth switch tube Q6 and the second end of the electrolytic capacitor on the battery side; the energy transfer direction in the charging mode is input from the DC bus side and output from the battery side, and the energy transfer direction in the discharging mode is input from the battery side and output from the DC bus side.
[0030] Among them, when the DC bus 10 is in a non-undervoltage state and the battery pack voltage of the battery pack is in a non-overvoltage state, the charging state switching condition is satisfied and it can be switched to the charging state; when the DC bus 10 is in an undervoltage state and the battery pack voltage of the battery pack is in a non-undervoltage state, the discharging state switching condition is satisfied and it can be switched to the discharging state. In other cases, no charging or discharging is performed, that is, the charging and discharging are prohibited state.
[0031] In a possible example, the bidirectional DC / DC module 50 may first obtain the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge and discharge module. Then, the bidirectional DC / DC module 50 determines whether the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and the battery pack voltage. Next, if it is determined based on the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets the discharge state switching condition, the bidirectional DC / DC module 50 further determines whether the charge and discharge module is in the discharge state. Further, if the bidirectional DC / DC module 50 determines that the charge and discharge module is not in the discharge state, it assigns the current working mode of the charge and discharge module to the discharge state, controls the switch tubes in the target full-bridge circuit to block the wave, configures the enhanced pulse width modulation wave of the switch tubes in the target full-bridge circuit for discharge, assigns the first output result to the first preset value, assigns the output result of the previous cycle of the current loop to the first preset value, assigns the output result of the previous cycle of the voltage loop to the first preset value, respectively assigns the output increment steps of the voltage loop and the current loop to the second preset value, and assigns the discharge step timer to the first preset value. The first output result is the smaller output result of the output result of the previous cycle of the voltage loop and the output result of the previous cycle of the current loop. It can directly and intelligently monitor the DC bus state and the battery voltage state through the bidirectional DC / DC module 50, determine the charge and discharge state switching, and achieve low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the cost due to reducing the number of system modules.
[0032] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a charge and discharge state switching control method provided by an embodiment of the present application, applied to a charge and discharge module in a DC bus power supply system. The method includes: Step S301: Obtain the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge and discharge module.
[0033] Among them, the working modes of the charge and discharge module include a charging mode and a discharging mode.
[0034] Among them, before obtaining the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge and discharge module, the following steps are further included: Step S201: Control the time-base timer T1 to start accumulating; Step S202: Obtain the third timing value of the time-base timer T1 and the charge and discharge switching strategy execution period T2; Step S203: If it is determined that the third timing value of the time-base timer T1 is an integer multiple of T2, then execute Step S301 - Step 304.
[0035] Among them, the step size of the T1 accumulation is related to the main frequency of the chip used. For example, when the main frequency is 150 MHz, the step size of each accumulation is 6.67 ns.
[0036] Step S302: Determine whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage.
[0037] Among them, when the DC bus is not in the under-voltage state and the battery pack voltage of the battery pack is not in the over-voltage state, the charging state switching condition is met and the charging state can be switched; when the DC bus is in the under-voltage state and the battery pack voltage of the battery pack is not in the under-voltage state, the discharge state switching condition is met and the discharge state can be switched. In other cases, charging and discharging are not performed, that is, the charge and discharge are prohibited state.
[0038] Step S303: If it is determined according to the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets the discharge state switching condition, determine whether the charge and discharge module is in the discharge state.
[0039] Step S304: If it is determined that the charge and discharge module is not in the discharge state, assign the current working mode of the charge and discharge module to the discharge state, control the switch tube in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tube in the target full-bridge circuit to discharge, assign the first output result to the first preset value, assign the output result of the previous beat of the current loop to the first preset value, assign the output result of the previous beat of the voltage loop to the first preset value, respectively assign the output increment step of the voltage loop and the current loop to the second preset value, and assign the discharge step timer to the first preset value. The first output result is the smaller output result of the output result of the previous beat of the voltage loop and the output result of the previous beat of the current loop.
[0040] Among them, the wave generation control of the DAB circuit is divided into single-phase phase shift, double-phase phase shift and triple-phase phase shift, but the phase shift angles of the primary side and the secondary side of the transformer need to be controlled. Taking the triple-phase phase shift as an example, the wave generation configuration of the charge and discharge of the DAB circuit is described. The enhanced pulse width modulation (EPWM) wave generation configurations of the switch tubes Q1-Q8 are EPWM1A, EPWM1B, EPWM2A, EPWM2B, EPWM3A, EPWM3B, EPWM4A and EPWM4B in sequence, and the conduction duty cycle of all MOS tubes is (50% - dead zone). When the energy transfer phase angles of Q1 and Q4 are ahead of the energy transfer phase angles of Q5 and Q8, it is the charging mode. When the energy transfer phase angles of Q1 and Q4 are behind the energy transfer phase angles of Q5 and Q8, it is the discharge mode.
[0041] Among them, please refer to Figure 4 and Figure 5 ,Figure 4 It is a schematic diagram of a triple-phase-shifted charging mode wave generation configuration provided by an embodiment of the present application. Figure 5 It is a schematic diagram of another triple-phase-shifted discharging mode wave generation configuration provided by an embodiment of the present application. As can be seen from Figure 4 and Figure 5 , to achieve charge-discharge switching, it is necessary to change the leading and lagging relationships of the primary-side energy transfer angle phase and the secondary-side energy transfer angle phase. Therefore, it is necessary to change the synchronization phases of EPWM3A, EPWM3B, EPWM4A, and EPWM4B. When the charging state is switched to the discharging state, that is, when the timers of EPWM1A, EPWM1B, EPWM2A, and EPWM2B pass zero, the phases synchronized by EPWM3A, EPWM3B, EPWM4A, and EPWM4B should be more advanced; when the discharging state is switched to the charging state, when the timers of EPWM1A, EPWM1B, EPWM2A, and EPWM2B pass zero, the phases synchronized by EPWM3A, EPWM3B, EPWM4A, and EPWM4B should be more lagging. However, the adjustment of the phase must be carried out when the MOS tube blocks the wave, otherwise the wave generation of Q5-Q8 will surely be out of adjustment, ultimately leading to the out-of-adjustment of the inductor current and triggering overcurrent protection. Therefore, during the charge-discharge state switching, a short wave blocking will be carried out for one switching cycle.
[0042] Among them, configuring the enhanced pulse width modulation wave generation of the switching tubes in the target full-bridge circuit to discharge means configuring the switching tubes in the target full-bridge circuit according to Figure 5 for wave generation configuration in the discharging mode.
[0043] Among them, please refer to Figure 6 , Figure 6 It is a flowchart of a dual-loop competition control of a voltage loop and a current loop provided by an embodiment of the present application. The voltage loop and the current loop can immediately switch the loop sampling values and reference values according to the working mode of the charge-discharge module. For example: when the working mode is the charging module, the voltage loop switches the loop sampling value to Vbat_samp, switches the loop reference value to Vbat_ref, the current loop switches the loop sampling value to Ibat_samp, switches the loop reference value to Ibat_ref. At this time, V_ref = Vbat_ref, V_samp = Vbat_samp. When the working mode is the discharging module, the voltage loop switches the loop sampling value to Vbus_samp, switches the loop reference value to Vbus_ref, the current loop switches the loop sampling value to Ibus_samp, switches the loop reference value to Ibus_ref. At this time, V_ref = Vbus_ref, V_samp = Vbus_samp; V_Err = V_ref - V_samp, I_Err = I_ref - I_samp. The PI compensator calculates and outputs V_out and I_out respectively according to the input V_Err and I_Err. Taking the voltage loop as an example: , the output result of the PI compensator at the current cycle, is the output result of the PI compensator at the previous cycle, is the difference between V_ref and V_samp at the current cycle, is the difference between V_ref and V_samp at the previous cycle. K1 and K2 are constant parameters of the voltage loop. Taking the current loop as an example: , the output result of the PI compensator at the current cycle, is the output result of the PI compensator at the previous cycle, is the difference between I_ref and I_samp at the current cycle, is the difference between I_ref and I_samp at the previous cycle. Limiting refers to limiting the magnitude of the output result of the PI compensator to prevent the output result of the PI compensator from increasing or decreasing without limit. Specifically, the limiting of is within the first voltage range. The first voltage range includes the first voltage lower limit value and the first voltage upper limit value. When the output result of the PI compensator is within the first voltage range, the value of remains unchanged after limiting. When the output result of the PI compensator is less than the first voltage lower limit value of the first voltage range, then is assigned the first voltage lower limit value, that is, the value of after limiting is the first voltage lower limit value. When the output result of the PI compensator is greater than the first voltage upper limit value of the first voltage range, then is assigned the first voltage upper limit value, that is, the value of after limiting is the first voltage upper limit value; the limiting of is within the first current range. The first current range includes the first current lower limit value and the first current upper limit value. When the output result of the PI compensator is within the first current range, the value of remains unchanged after limiting. When the output result of the PI compensator is less than the first current lower limit value of the first current range, then is assigned the first current lower limit value, that is, the value of after limiting is the first current lower limit value. When the output result of the PI compensator is greater than the first current upper limit value of the first current range, then is assigned the first current upper limit value, that is, the value of after limiting is the first voltage current value; and pass through the comparator MIN to output Dout. Dout is and For the smaller value, Dout undergoes triple-phase-shifted wave calculation to obtain D1, D2, and D3. Finally, firing control is performed based on D1, D2, and D3. Among them, D1 refers to the duty cycle phase-shift angle of the primary-side bridge arm and the secondary-side bridge arm. D2 refers to the time when the primary-side MOS transistors Q1 and Q4 conduct simultaneously or the time when Q2 and Q3 conduct simultaneously. D3 refers to the time when the secondary-side MOS transistors Q5 and Q8 conduct simultaneously or the time when Q6 and Q7 conduct simultaneously.
[0044] Among them, when the charge-discharge state switches, there must be a problem that the charging power and the discharging power are not consistent in magnitude. If not handled properly, there is a risk of module damage. For example, when switching from a high-power discharging state to a low-power charging state, if the energy transfer does not immediately decrease, or after the energy transfer rapidly decreases, due to the loop takeover being too slow during the step-by-step soft start, resulting in overshoot of the energy transfer, it will cause a risk of over-power damage to the battery. The smooth transition of the energy transfer can be ensured through the combination of the initialization loop calculation, step-by-step current limiting, and the loop rapid takeover strategy. The initialization loop calculation means that while switching the loop control, the data participating in the loop calculation is initialized to avoid the mutual influence of the loop calculations in the charge-discharge states. For example, when switching from the charging state to the discharging state, by clearing the values of the first output result, the output result of the previous beat of the current loop, and the output result of the previous beat of the voltage loop, the influence of the charging state loop calculation is ensured to be cleared. Step-by-step current limiting means that after the initialization loop calculation, the incremental step of the loop output result in a single calculation period is restricted, that is, the incremental step of the output is assigned to the second preset value. The second preset value can be set manually or default by the system, and is not limited here. For example, the second preset value is 1%. Taking the voltage loop as an example, during the step-by-step current limiting process, since V_Err and 1 always exist, if only the incremental step of Dout is restricted, then it will increase to the upper limit value before the voltage loop takes over, resulting in an overshoot problem in the energy transfer. The loop rapid takeover strategy is to restrict the integral term V_out1, that is, to restrict the incremental steps of both V_out1 and Dout simultaneously to ensure that the voltage loop can be quickly closed-loop, that is, there is no delay in the loop takeover. As Figure 7 and Figure 8 shown, Figure 7 is a schematic diagram of the output result of a loop takeover strategy provided by an embodiment of the present application, Figure 8 is a schematic diagram of the output result of another loop takeover strategy provided by an embodiment of the present application; Figure 7 is the output result of the voltage loop, Dout, and the loop output result after the voltage loop takes over under the conventional loop takeover strategy, Figure 8 is the output result of the voltage loop, Dout, and the loop output result after the voltage loop takes over under the loop rapid takeover strategy, Figure 7 in which due to the delay in the voltage loop takeover, part of Dout exceeds Dout_steady state and even reaches Dout_overshoot.Figure 8 Since there is no delay in the voltage loop takeover, Dout remains stable at Dout_steady state. The implementation method is that when the smaller output result between the output result of the voltage loop in the current cycle and the output result of the current loop is greater than the third output result (the sum of the smaller output result between the output result of the voltage loop in the previous cycle and the output result of the current loop in the previous cycle and the output increment step), the output result of the current loop in the previous cycle is assigned to the third output result, and the output result of the voltage loop in the previous cycle is assigned to the third output result, so as to achieve fast and timely takeover of the voltage loop and the current loop. The third output result is less than the first voltage upper limit value and the third output result is less than the first current upper limit value. Therefore, during the step soft start process, the overshoot problems of voltage and current can be effectively suppressed, which is beneficial to improving the stability of the DC bus power supply system. Among them, Dout_Max is the maximum value of Dout that can be output.
[0045] It can be seen that in the embodiment of the present application, the charge and discharge module can first obtain the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge and discharge module, then judge whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, and then if it is judged that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, judge whether the charge and discharge module is in the discharge state. Further, if it is judged that the charge and discharge module is not in the discharge state, the current working mode of the charge and discharge module is assigned to the discharge state, the switching tubes in the target full-bridge circuit are controlled to block the wave, the enhanced pulse width modulation wave configuration of the switching tubes in the target full-bridge circuit is configured for discharge, the first output result is assigned to the first preset value, the output result of the current loop in the previous cycle is assigned to the first preset value, the output result of the voltage loop in the previous cycle is assigned to the first preset value, the output increment steps of the voltage loop and the current loop are respectively assigned to the second preset value, and the discharge step timer is assigned to the first preset value. The first output result is the smaller output result between the output result of the voltage loop in the previous cycle and the output result of the current loop in the previous cycle. It can directly realize intelligent monitoring of the DC bus state and the battery voltage state through the bidirectional DC / DC module, determine the charge and discharge state switching, and realize low-delay charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system, and is beneficial to reducing costs due to reducing the number of system modules.
[0046] Please refer to Figure 9 , Figure 9 is a flowchart for judging whether the discharge state switching condition is met provided by the embodiment of the present application. In terms of judging whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, the method includes: Step S401, judge whether the DC bus voltage is less than or equal to the preset DC bus undervoltage value; In step S402, if it is determined that the DC bus voltage is less than the preset DC bus undervoltage value, then it is determined whether the battery pack voltage is greater than the preset battery pack undervoltage value; In step S403, if it is determined that the battery pack voltage is greater than the preset battery pack undervoltage value, it is determined that the target full-bridge circuit meets the discharge state switching condition; In step S404, if it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, it is determined that the target full-bridge circuit does not meet the discharge state switching condition; In step S405, if it is determined that the DC bus voltage is greater than or equal to the preset DC bus undervoltage value, it is determined that the target full-bridge circuit does not meet the discharge state switching condition.
[0047] Among them, the DC bus voltage being less than or equal to the preset DC bus undervoltage value indicates that the power supply module on the DC bus has insufficient capacity, and the bidirectional DC / DC module needs to obtain energy from the battery pack to support the DC bus. If at the same time the battery pack voltage is greater than the preset battery pack undervoltage value, it means that the battery pack is not in the undervoltage state and can support discharging. At this time, the target full-bridge circuit meets the discharge state switching condition. If at the same time the battery pack voltage is less than or equal to the preset battery pack undervoltage value, it means that the battery pack is in the undervoltage state and does not support discharging. At this time, the target full-bridge circuit does not meet the discharge state switching condition.
[0048] Among them, the DC bus voltage being greater than the preset DC bus undervoltage value indicates that the power supply module on the DC bus has sufficient capacity and the bidirectional DC / DC module does not need to obtain energy from the battery pack.
[0049] Among them, the preset DC bus undervoltage value and the preset battery pack undervoltage value can be set manually or by default in the system, and are not limited here.
[0050] It can be seen that in this example, by directly using the bidirectional DC / DC module to intelligently monitor the DC bus state and the battery voltage state and determine the charge and discharge state switching, it is beneficial to improve the efficiency of charge and discharge state switching.
[0051] Please refer to Figure 10 , Figure 10 which is a flowchart of a working mode assignment provided by an embodiment of the present application. After the step of if it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, it is determined that the target full-bridge circuit does not meet the discharge state switching condition, the method includes: In step S501, assign the current working mode of the charge and discharge module to the charge and discharge prohibited state; In step S502, control the switch tubes in the target full-bridge circuit to turn off the wave.
[0052] Among them, when the battery pack voltage is less than or equal to the preset under-voltage value of the battery pack, it indicates that the battery pack is in an under-voltage state and cannot supply energy to the DC bus. The bidirectional DC / DC module enters the state of prohibiting charging and discharging, and the main power MOS transistor remains in the normally-off state, reducing the loss of the DC bus power supply system. It can be seen that in this example, when the battery pack is in an under-voltage state, the charge and discharge module can enter the state of prohibiting charging and discharging, and the main power MOS transistor remains in the normally-off state, which is beneficial to reducing the loss of the DC bus power supply system.
[0053] Please refer to Figure 11 , Figure 11 which is a flowchart of an increasing step control provided by an embodiment of the present application. After determining whether the charge and discharge module is in a discharging state, the method includes: Step S601, if it is determined that the charge and discharge module is in a discharging state, obtain the first timing value of the discharge step timer; Step S602, if it is determined that the first timing value is equal to the third preset value, control the switch tube of the target full-bridge circuit to turn on the wave; Step S603, if it is determined that the first timing value is less than or equal to the charge and discharge step limit duration, determine the second output result, and determine the third output result according to the first output result and the output increasing step. The second output result is the smaller output result of the output results of the voltage loop and the current loop in the current beat; Step S604, if it is determined that the second output result is greater than the third output result, assign the second output result to the third output result, assign the output result of the previous beat of the current loop to the third output result, and assign the output result of the previous beat of the voltage loop to the third output result; Step S605, if it is determined that the second output result is less than or equal to the third output result, assign the output result of the previous beat of the current loop to the output result of the current beat of the current loop, and assign the output result of the previous beat of the voltage loop to the output result of the current beat of the voltage loop; Step S606, if it is determined that the first timing value is greater than the charge and discharge step limit duration, assign the timing value of the discharge step timer to the charge and discharge step limit duration, and assign the output result of the previous beat of the current loop to the output result of the current beat of the current loop, and assign the output result of the previous beat of the voltage loop to the output result of the current beat of the voltage loop.
[0054] Among them, the third output result = the first output result + the output increasing step.
[0055] Among them, the third preset value can be set manually or defaulted by the system, and is not limited here. For example, the third preset value can be 1. When the first timing value is equal to 1, it means that the wave blocking time only lasts for a single switching period, and at this time, each switching tube is controlled to develop waves.
[0056] Among them, when the charge and discharge module switches to the discharge state, after assigning the discharge step timer to 0, the discharge step timer is controlled to start accumulating.
[0057] Among them, when it is determined that the second output result is greater than the third output result, the second output result is assigned to the third output result to limit the incremental step of the smaller output results of the voltage loop and the current loop and avoid overshoot in energy transfer; at the same time, the output result of the previous beat of the current loop is assigned, which is a fast takeover strategy for the current loop and is also to avoid overshoot in energy transfer; at the same time, the output result of the previous beat of the voltage loop is assigned, which is a fast takeover strategy for the voltage loop and is also to avoid overshoot in energy transfer.
[0058] Among them, when the discharge step timer T3 is assigned the charge and discharge step limit duration T4, it means exiting the step-by-step current limiting state.
[0059] Among them, if it is determined that the second output result is less than or equal to the third output result, the output result of the previous beat of the current loop is assigned to the output result of the current beat of the current loop, and the output result of the previous beat of the voltage loop is assigned to the output result of the current beat of the voltage loop. Since the loop fast takeover strategy is not used when the incremental amplitude limiting is not triggered.
[0060] It can be seen that in this example, by limiting the incremental steps of the output results of the current beat of the voltage loop and the current loop, the incremental steps of the output result of the previous beat of the current loop, and the incremental steps of the output result of the previous beat of the current loop, it is beneficial to ensure the fast closed-loop of the voltage loop and the current loop and is beneficial to suppressing the overshoot problem of voltage and current.
[0061] Please refer to Figure 12 , Figure 12 which is a schematic flowchart of another charge and discharge state switching control method provided by an embodiment of the present application. After obtaining the DC bus voltage, the battery pack voltage, and the current working mode of the charge and discharge module of the target full-bridge circuit, the method includes: Step S701, determining whether the target full-bridge circuit meets the charge state switching condition according to the DC bus voltage and the battery pack voltage; Step S702, if it is determined according to the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets the charge state switching condition, then determining whether the charge and discharge module is in the charge state; Step S703: If it is determined that the charge and discharge module is not in the charging state, assign the operating mode of the charge and discharge module to the charging state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tubes in the target full-bridge circuit for charging, assign the first output result to a first preset value, assign the output result of the previous beat of the current loop to a first preset value, assign the output result of the previous beat of the voltage loop to a first preset value, assign the output increment step of the voltage loop and the current loop to a second preset value, and assign the charging step timer to a first preset value.
[0062] Among them, when the DC bus is not in the under-voltage state and the battery pack voltage of the battery pack is not in the over-voltage state, the charging state switching condition is satisfied and the charging state can be switched.
[0063] Among them, before configuring the enhanced pulse width modulation wave generation of the switch tubes, it is necessary to control the switch tubes in the target full-bridge circuit to block the wave to avoid causing the inductor current to be out of balance and triggering over-current protection.
[0064] Among them, configuring the enhanced pulse width modulation wave generation of the switch tubes in the target full-bridge circuit for charging is to configure the switch tubes in the target full-bridge circuit according to Figure 4 the wave generation configuration in the discharge mode.
[0065] It can be seen that in this example, the DC bus state and the battery voltage state are directly and intelligently monitored through the bidirectional DC / DC module, the determination of the charge and discharge state switching is carried out, and the low-delay charge and discharge switching control is realized, which is beneficial to improving the stability of the DC bus power supply system and reducing the cost due to reducing the number of system modules.
[0066] Please refer to Figure 13 , Figure 13 which is a schematic flowchart of another charge and discharge state switching control method provided by the embodiment of the present application. In terms of determining whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage, the method includes: Step S801: Determine whether the DC bus voltage is greater than a preset DC bus under-voltage value; Step S802: If it is determined that the DC bus voltage is greater than the preset DC bus under-voltage value, then determine whether the battery pack voltage is less than or equal to a preset battery pack over-voltage value; Step S803: If it is determined that the battery pack voltage is less than or equal to the preset battery pack over-voltage value, then determine that the target full-bridge circuit meets the charging state switching condition; Step S804, if it is determined that the battery pack voltage is greater than the preset overvoltage value of the battery pack, it is determined that the target full-bridge circuit does not meet the charging state switching condition; Step S805, if it is determined that the DC bus voltage is less than or equal to the preset undervoltage value of the DC bus, it is determined that the target full-bridge circuit does not meet the charging state switching condition.
[0067] Among them, the preset undervoltage value of the DC bus and the preset overvoltage value of the battery pack can be set manually or defaulted by the system, which is not limited here.
[0068] Among them, the DC bus voltage being greater than the preset undervoltage value of the DC bus indicates that the DC bus is not in an undervoltage state, and the power supply module on the DC bus has sufficient power supply capacity. If at the same time the battery pack voltage is less than the preset overvoltage value of the battery pack, it indicates that the battery pack is not in an overvoltage state and can support charging. At this time, the target full-bridge circuit meets the charging state switching condition; if at the same time the battery pack voltage is greater than the preset overvoltage value of the battery pack, it indicates that the battery pack is in an overvoltage state and does not support charging. At this time, the target full-bridge circuit does not meet the charging state switching condition.
[0069] Optionally, after the step of if it is determined that the battery pack voltage is greater than the preset overvoltage value of the battery pack, it is determined that the target full-bridge circuit does not meet the charging state switching condition, the method includes: Step S901, assign the current working mode of the charge and discharge module to the charge and discharge prohibited state; Step S902, control the switching tubes in the target full-bridge circuit to stop generating waves.
[0070] Among them, the battery pack voltage being greater than the preset overvoltage value of the battery pack indicates that the battery pack is in an overvoltage state and cannot accept charging. The bidirectional DC / DC module enters the charge and discharge prohibited state, and the main power MOS tubes remain in the off state all the time, reducing the loss of the DC bus power supply system.
[0071] It can be seen that in this example, by directly using the bidirectional DC / DC module to intelligently monitor the DC bus state and the battery voltage state and determine the charge and discharge state switching, it is beneficial to improve the efficiency of the charge and discharge state switching.
[0072] Please refer to Figure 14 , Figure 14 which is a schematic flowchart of another charge and discharge state switching control method provided by the embodiment of the present application. After determining whether the charge and discharge module is in the charging state, the method includes: Step S1001, if it is determined that the charge and discharge module is in the charging state, obtain the second timing value of the charging step timer; Step S1002, if it is determined that the second timing value is equal to the third preset value, control the switching tubes in the target full-bridge circuit to start generating waves; Step S1003, if it is determined that the second timing value is less than or equal to the charge-discharge step limit duration, then determine whether the second output result is greater than the third output result; Step S1004, if it is determined that the second output result is greater than the third output result, then assign the second output result to the third output result, assign the output result of the previous cycle of the current loop to the third output result, and assign the output result of the previous cycle of the voltage loop to the third output result; Step S1005, if it is determined that the second output result is less than or equal to the third output result, then assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop; Step S1006, if it is determined that the second timing value is greater than the charge-discharge step limit duration, then assign the timing value of the charge step timer to the charge-discharge step limit duration, and assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop.
[0073] Among them, when the charge-discharge module switches to the charging state, after assigning 0 to the charge step timer, control the charge step timer to start accumulating.
[0074] Among them, after the charge-discharge module switches to the charging state, to avoid overshoot in energy transfer, when it is determined that the second output result is greater than the third output result, then assign the second output result to the third output result, which is to limit the incremental step of the smaller output results of the voltage loop and the current loop to avoid overshoot in energy transfer; at the same time, assign the output result of the previous cycle of the current loop, which is a fast takeover strategy for the current loop and also to avoid overshoot in energy transfer; at the same time, assign the output result of the previous cycle of the voltage loop, which is a fast takeover strategy for the voltage loop and also to avoid overshoot in energy transfer.
[0075] Among them, assigning the charge step timer T5 to the charge-discharge step limit duration T4 indicates exiting the step-by-step current limiting state.
[0076] Among them, when the incremental amplitude limiting is not triggered, the following is the non-use of the loop fast takeover strategy: if it is determined that the second output result is less than or equal to the third output result, then assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop.
[0077] Please refer to Figure 15 , Figure 15It is a schematic diagram of the overall process of a charge and discharge state switching control method provided by an embodiment of the present application, and the possible process paths are as follows: Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S401 - Step S402 - Step S403 - Step S303 - Step S304 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S401 - Step S402 - Step S403 - Step S303 - Step S601 - Step S602 - Step S603 - Step S604 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S401 - Step S402 - Step S403 - Step S303 - Step S601 - Step S602 - Step S606 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S401 - Step S402 - Step S403 - Step S303 - Step S601 - Step S602 - Step S603 - Step S605 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S401 - Step S402 - Step S404 - Step S501 - Step S502 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S801 - Step S802 - Step S803 - Step S702 - Step S703 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S801 - Step S802 - Step S803 - Step S702 - Step S1001 - Step S1002 - Step S1003 - Step S1004 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S801 - Step S802 - Step S803 - Step S702 - Step S1001 - Step S1006 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S801 - Step S802 - Step S803 - Step S702 - Step S1001 - Step S1002 - Step S1005 - Process end; Process start - Step S201 - Step S202 - Step S203 - Step S301 - Step S801 - Step S804 - Step S901 - Step S902 - Process end; Process start - Step S201 - Step S202 - Step S203 - Process end.
[0078] It can be seen that in this example, by restricting the incremental steps of the output results of the current beat of the voltage loop and the current loop, the incremental steps of the output result of the previous beat of the current loop, and the incremental steps of the output result of the previous beat of the current loop, it is beneficial to ensure the rapid closed-loop of the voltage loop and the current loop and to suppress the overshoot problem of voltage and current.
[0079] Please refer to Figure 16 , Figure 16 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application and is applied to a charge and discharge module in a DC bus power supply system; as Figure 16 shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs. Among them, the above one or more programs are stored in the above memory, and the above one or more programs are configured with instructions for the above processor to execute the following steps: Obtain the DC bus voltage, battery pack voltage, and the current working mode of the charge and discharge module of the target full-bridge circuit; Judge whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage; If it is judged that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, then judge whether the charge and discharge module is in the discharge state; If it is judged that the charge and discharge module is not in the discharge state, then assign the current working mode of the charge and discharge module to the discharge state, control the switch tube in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tube in the target full-bridge circuit to discharge, assign the first output result to a first preset value, assign the output result of the previous beat of the current loop to the first preset value, assign the output result of the previous beat of the voltage loop to the first preset value, respectively assign the incremental step of the output of the voltage loop and the current loop to a second preset value, and assign the discharge step timer to the first preset value. The first output result is the smaller output result of the output result of the previous beat of the voltage loop and the output result of the previous beat of the current loop.
[0080] It can be seen that in the embodiments of the present application, the electronic device can first obtain the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge and discharge module. Then, it determines whether the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and the battery pack voltage. Next, if it is determined that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, it further determines whether the charge and discharge module is in the discharge state. Moreover, if it is determined that the charge and discharge module is not in the discharge state, it assigns the current working mode of the charge and discharge module to the discharge state, controls the switch tubes in the target full-bridge circuit to block the wave, configures the enhanced pulse width modulation wave of the switch tubes in the target full-bridge circuit for discharge, assigns the first output result to the first preset value, assigns the output result of the previous beat of the current loop to the first preset value, assigns the output result of the previous beat of the voltage loop to the first preset value, respectively assigns the output increment step of the voltage loop and the current loop to the second preset value, and assigns the discharge step timer to the first preset value. The first output result is the smaller output result between the output result of the previous beat of the voltage loop and the output result of the previous beat of the current loop. It can directly and intelligently monitor the DC bus state and the battery voltage state through the bidirectional DC / DC module, determine the charge and discharge state switching, and achieve low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing costs due to reducing the number of system modules.
[0081] In a possible example, in terms of determining whether the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and the battery pack voltage, the above program further includes instructions for performing the following steps: Determine whether the DC bus voltage is less than or equal to a preset DC bus undervoltage value; If it is determined that the DC bus voltage is less than the preset DC bus undervoltage value, then determine whether the battery pack voltage is greater than the preset battery pack undervoltage value; If it is determined that the battery pack voltage is greater than the preset battery pack undervoltage value, then determine that the target full-bridge circuit meets the discharge state switching condition; If it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition; If it is determined that the DC bus voltage is greater than or equal to the preset DC bus undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition.
[0082] In a possible example, after determining that the battery pack voltage is less than or equal to the preset battery pack undervoltage value and then determining that the target full-bridge circuit does not meet the discharge state switching condition, the above program includes instructions for performing the following steps: Assign the current working mode of the charge and discharge module to the charge - prohibited and discharge - prohibited state; Control the switching tubes in the target full - bridge circuit to turn on and off the wave.
[0083] In a possible example, after determining whether the charge and discharge module is in the discharge state, the above program further includes instructions for performing the following steps: If it is determined that the charge and discharge module is in the discharge state, obtain the first timing value of the discharge step timer; If it is determined that the first timing value is equal to the third preset value, control the switching tubes in the target full - bridge circuit to turn on the wave; If it is determined that the first timing value is less than or equal to the charge - discharge step limit duration, determine the second output result, and determine the third output result according to the first output result and the output increment step. The second output result is the smaller output result between the output result of the voltage loop and the output result of the current loop in the current beat; If it is determined that the second output result is greater than the third output result, assign the second output result to the third output result, assign the output result of the previous beat of the current loop to the third output result, and assign the output result of the previous beat of the voltage loop to the third output result; If it is determined that the second output result is less than or equal to the third output result, assign the output result of the previous beat of the current loop to the output result of the current beat of the current loop, and assign the output result of the previous beat of the voltage loop to the output result of the current beat of the voltage loop; If it is determined that the first timing value is greater than the charge - discharge step limit duration, assign the timing value of the discharge step timer to the charge - discharge step limit duration, and assign the output result of the previous beat of the current loop to the output result of the current beat of the current loop, and assign the output result of the previous beat of the voltage loop to the output result of the current beat of the voltage loop.
[0084] In a possible example, after obtaining the DC bus voltage, the battery pack voltage, and the current working mode of the charge and discharge module of the target full - bridge circuit, the above program further includes instructions for performing the following steps: Judge whether the target full - bridge circuit meets the charge - state switching condition according to the DC bus voltage and the battery pack voltage; If it is determined according to the DC bus voltage and the battery pack voltage that the target full - bridge circuit meets the charge - state switching condition, then judge whether the charge and discharge module is in the charging state; If it is determined that the charge-discharge module is not in the charging state, then assign the operating mode of the charge-discharge module to the charging state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tubes in the target full-bridge circuit for charging, assign the first output result to a first preset value, assign the output result of the previous cycle of the current loop to the first preset value, assign the output result of the previous cycle of the voltage loop to the first preset value, assign the output increment step of the voltage loop and the current loop to a second preset value, and assign the charging step timer to the first preset value.
[0085] In a possible example, in terms of determining whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage, the above program further includes instructions for performing the following steps: Judge whether the DC bus voltage is greater than the preset DC bus undervoltage value; If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, then judge whether the battery pack voltage is less than or equal to the preset battery pack overvoltage value; If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, then determine that the target full-bridge circuit meets the charging state switching condition; If it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, then determine that the target full-bridge circuit does not meet the charging state switching condition; If it is determined that the DC bus voltage is less than or equal to the preset DC bus undervoltage value, then determine that the target full-bridge circuit does not meet the charging state switching condition.
[0086] In a possible example, after determining whether the charge-discharge module is in the charging state, the above program further includes instructions for performing the following steps: If it is determined that the charge-discharge module is in the charging state, then obtain the second timing value of the charging step timer; If it is determined that the second timing value is equal to the third preset value, then control the switch tubes in the target full-bridge circuit to generate waves; If it is determined that the second timing value is less than or equal to the charge-discharge step limit duration, then judge whether the second output result is greater than the third output result; If it is determined that the second output result is greater than the third output result, then assign the second output result to the third output result, assign the output result of the previous cycle of the current loop to the third output result, and assign the output result of the previous cycle of the voltage loop to the third output result; If it is determined that the second output result is less than or equal to the third output result, the output result of the previous cycle of the current loop is assigned to the output result of the current cycle of the current loop, and the output result of the previous cycle of the voltage loop is assigned to the output result of the current cycle of the voltage loop; If it is determined that the second timing value is greater than the charge-discharge step limit duration, the timing value of the charge-discharge step timer is assigned to the charge-discharge step limit duration, and the output result of the previous cycle of the current loop is assigned to the output result of the current cycle of the current loop, and the output result of the previous cycle of the voltage loop is assigned to the output result of the current cycle of the voltage loop.
[0087] The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process of the method side. It can be understood that in order for the electronic device to implement the above functions, it includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0088] The embodiments of the present application can divide the functional units of the electronic device according to the above method examples. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0089] In the case of dividing each functional module corresponding to each function, Figure 17 is a block diagram of the functional unit composition of a charge-discharge state switching control device provided by an embodiment of the present application. As Figure 17 shown, it is applied to the charge-discharge module in a DC bus power supply system. The charge-discharge state switching control device includes: an acquisition unit 1701, a judgment unit 1702, and a control unit 1703, where, The acquisition unit 1701 is configured to acquire the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge-discharge module; The judgment unit 1702 is configured to judge whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage; The determination unit 1702 is further configured to determine whether the charge-discharge module is in a discharge state if it is determined that the target full-bridge circuit satisfies the discharge state switching condition according to the DC bus voltage and the battery pack voltage. The control unit 1703 is configured to, if it is determined that the charge-discharge module is not in a discharge state, assign the current working mode of the charge-discharge module to the discharge state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tubes in the target full-bridge circuit to discharge, assign the first output result to a first preset value, assign the output result of the previous cycle of the current loop to the first preset value, assign the output result of the previous cycle of the voltage loop to the first preset value, respectively assign the output increment step of the voltage loop and the current loop to a second preset value, and assign the discharge step timer to the first preset value, where the first output result is the smaller output result between the output result of the previous cycle of the voltage loop and the output result of the previous cycle of the current loop.
[0090] It can be seen that the charge-discharge state switching control device described in the embodiments of the present application can first obtain the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current working mode of the charge-discharge module, then determine whether the target full-bridge circuit satisfies the discharge state switching condition according to the DC bus voltage and the battery pack voltage, and then determine whether the charge-discharge module is in a discharge state if it is determined that the target full-bridge circuit satisfies the discharge state switching condition according to the DC bus voltage and the battery pack voltage. Further, if it is determined that the charge-discharge module is not in a discharge state, assign the current working mode of the charge-discharge module to the discharge state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tubes in the target full-bridge circuit to discharge, assign the first output result to a first preset value, assign the output result of the previous cycle of the current loop to the first preset value, assign the output result of the previous cycle of the voltage loop to the first preset value, respectively assign the output increment step of the voltage loop and the current loop to a second preset value, and assign the discharge step timer to the first preset value, where the first output result is the smaller output result between the output result of the previous cycle of the voltage loop and the output result of the previous cycle of the current loop. It can directly and intelligently monitor the DC bus state and the battery voltage state through the bidirectional DC / DC module, determine the charge-discharge state switching, and achieve low-latency charge-discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing costs due to reducing the number of system modules.
[0091] In a possible example, in terms of determining whether the target full-bridge circuit satisfies the discharge state switching condition according to the DC bus voltage and the battery pack voltage, the determination unit 1702 is specifically configured to: Determine whether the DC bus voltage is less than or equal to a preset DC bus undervoltage value; If it is determined that the DC bus voltage is less than the preset DC bus undervoltage value, then determine whether the battery pack voltage is greater than the preset battery pack undervoltage value; If it is determined that the battery pack voltage is greater than the preset battery pack undervoltage value, then determine that the target full-bridge circuit meets the discharge state switching condition; If it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition; If it is determined that the DC bus voltage is greater than or equal to the preset DC bus undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition.
[0092] In a possible example, after the step of if it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition, the control unit 1703 is specifically configured to: Assign the current working mode of the charge and discharge module to the charge and discharge prohibited state; Control the switch tubes in the target full-bridge circuit to turn off the wave.
[0093] In a possible example, after the step of determining whether the charge and discharge module is in the discharge state, the determining unit 1702 is further specifically configured to: If it is determined that the charge and discharge module is in the discharge state, then obtain the first timing value of the discharge step timer; If it is determined that the first timing value is equal to the third preset value, then control the switch tubes in the target full-bridge circuit to turn on the wave; If it is determined that the first timing value is less than or equal to the charge and discharge step limit duration, then determine the second output result, and determine the third output result according to the first output result and the output increment step, where the second output result is the smaller output result of the output results of the voltage loop and the current loop in the current beat; If it is determined that the second output result is greater than the third output result, then assign the second output result to the third output result, assign the output result of the previous beat of the current loop to the third output result, and assign the output result of the previous beat of the voltage loop to the third output result; If it is determined that the second output result is less than or equal to the third output result, then assign the output result of the previous beat of the current loop to the output result of the current beat of the current loop, and assign the output result of the previous beat of the voltage loop to the output result of the current beat of the voltage loop; If it is determined that the first timing value is greater than the charge-discharge step limit duration, then assign the timing value of the discharge step timer to the charge-discharge step limit duration, assign the output result of the previous cycle of the current loop to the output result of the current loop in the current cycle, and assign the output result of the previous cycle of the voltage loop to the output result of the voltage loop in the current cycle.
[0094] In a possible example, after obtaining the DC bus voltage, the battery pack voltage, and the current working mode of the charge-discharge module of the target full-bridge circuit, the control unit 1703 is specifically configured to: Determine whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage; If it is determined that the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage, then determine whether the charge-discharge module is in the charging state; If it is determined that the charge-discharge module is not in the charging state, then assign the working mode of the charge-discharge module to the charging state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave of the switch tubes in the target full-bridge circuit for charging, assign the first output result to a first preset value, assign the output result of the previous cycle of the current loop to the first preset value, assign the output result of the previous cycle of the voltage loop to the first preset value, assign the output increment step of the voltage loop and the current loop to a second preset value, and assign the charging step timer to the first preset value.
[0095] In a possible example, in terms of determining whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage, the determination unit 1702 is specifically configured to: Determine whether the DC bus voltage is greater than the preset DC bus undervoltage value; If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, then determine whether the battery pack voltage is less than or equal to the preset battery pack overvoltage value; If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, then determine that the target full-bridge circuit meets the charging state switching condition; If it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, then determine that the target full-bridge circuit does not meet the charging state switching condition; If it is determined that the DC bus voltage is less than or equal to the preset DC bus undervoltage value, then determine that the target full-bridge circuit does not meet the charging state switching condition.
[0096] In a possible example, after determining whether the charge-discharge module is in a charging state, the control unit 1703 is specifically configured to: If it is determined that the charge-discharge module is in a charging state, obtain a second timing value of a charging step timer; If it is determined that the second timing value is equal to a third preset value, control the switching tubes in the target full-bridge circuit to turn on; If it is determined that the second timing value is less than or equal to a charge-discharge step limit duration, determine whether a second output result is greater than a third output result; If it is determined that the second output result is greater than the third output result, assign the second output result to the third output result, assign the output result of the previous cycle of the current loop to the third output result, and assign the output result of the previous cycle of the voltage loop to the third output result; If it is determined that the second output result is less than or equal to the third output result, assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop; If it is determined that the second timing value is greater than the charge-discharge step limit duration, assign the timing value of the charging step timer to the charge-discharge step limit duration, assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop.
[0097] It should be noted that all relevant contents of the steps involved in the above method embodiments can be cited in the function descriptions of the corresponding functional modules, and will not be elaborated here.
[0098] The electronic device provided in this embodiment is used to execute the above charge-discharge state switching control method, and thus can achieve the same effect as the above implementation method.
[0099] In the case of adopting an integrated unit, the electronic device may include a processing module, a storage module, and a communication module. Among them, the processing module can be used to control and manage the operations of the electronic device. For example, it can be used to support the electronic device to execute the steps performed by the above acquisition unit 1701, determination unit 1702, and control unit 1703. The storage module can be used to support the electronic device to execute storing program codes and data, etc. The communication module can be used to support the communication of the electronic device with other devices.
[0100] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on. The storage module can be a memory. The communication module can specifically be a device for interacting with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0101] An embodiment of this application also provides a computer storage medium. Among them, this computer storage medium stores a computer program for electronic data exchange, and this computer program causes a computer to execute some or all of the steps of any of the methods described in the foregoing method embodiments. The above computer includes an electronic device.
[0102] An embodiment of this application also provides a computer program product. The above computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the above computer program is operable to cause a computer to execute some or all of the steps of any of the methods described in the foregoing method embodiments. This computer program product can be a software installation package, and the above computer includes a control platform.
[0103] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0104] In the above embodiments, the descriptions of the various embodiments have their own emphases. For parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0105] In several embodiments provided by this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the above division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical or other form.
[0106] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0108] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above methods in the various embodiments of the present application. The aforementioned memory includes: USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical disks, etc., which can store program codes.
[0109] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. This program can be stored in a computer-readable memory, and the memory can include: flash drives, read-only memories, random access memories, magnetic disks, or optical disks, etc.
[0110] The above has introduced the embodiments of the present application in detail. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A charge-discharge state switching control method, characterized in that, A charge and discharge module applied to a DC bus power supply system; the method includes: Obtain the DC bus voltage, battery pack voltage, and the current working mode of the charge and discharge module of the target full-bridge circuit; Judge whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage; If it is judged that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, then judge whether the charge and discharge module is in the discharge state; If it is judged that the charge and discharge module is not in the discharge state, then assign the current working mode of the charge and discharge module to the discharge state, control the switch tubes in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave of the switch tubes in the target full-bridge circuit to discharge, assign the first output result to the first preset value, assign the output result of the previous beat of the current loop to the first preset value, assign the output result of the previous beat of the voltage loop to the first preset value, respectively assign the output increment step of the voltage loop and the current loop to the second preset value, and assign the discharge step timer to the first preset value. The first output result is the smaller output result of the output result of the previous beat of the voltage loop and the output result of the previous beat of the current loop.
2. The method according to claim 1, wherein The judging whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage includes: Judge whether the DC bus voltage is less than or equal to the preset DC bus undervoltage value; If it is judged that the DC bus voltage is less than the preset DC bus undervoltage value, then judge whether the battery pack voltage is greater than the preset battery pack undervoltage value; If it is judged that the battery pack voltage is greater than the preset battery pack undervoltage value, then determine that the target full-bridge circuit meets the discharge state switching condition; If it is judged that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition; If it is judged that the DC bus voltage is greater than or equal to the preset DC bus undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition.
3. The method according to claim 2, wherein After the step of if it is judged that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, then determine that the target full-bridge circuit does not meet the discharge state switching condition, the method further includes: Assign the current working mode of the charge and discharge module to the charge and discharge prohibited state; Control the switch tubes in the target full-bridge circuit to turn off the wave.
4. The method according to claim 1, wherein After the step of judging whether the charge and discharge module is in the discharge state, the method further includes: If it is judged that the charge and discharge module is in the discharge state, then obtain the first timing value of the discharge step timer; If it is judged that the first timing value is equal to the third preset value, then control the switch tubes in the target full-bridge circuit to turn on the wave; If it is determined that the first timing value is less than or equal to the charge-discharge step limit duration, a second output result is determined, and a third output result is determined according to the first output result and the output increment step. The second output result is the smaller output result between the output result of the voltage loop and the output result of the current loop in the current beat. If it is determined that the second output result is greater than the third output result, the second output result is assigned to the third output result, the output result of the previous beat of the current loop is assigned to the third output result, and the output result of the previous beat of the voltage loop is assigned to the third output result. If it is determined that the second output result is less than or equal to the third output result, the output result of the previous beat of the current loop is assigned to the output result of the current beat of the current loop, and the output result of the previous beat of the voltage loop is assigned to the output result of the current beat of the voltage loop. If it is determined that the first timing value is greater than the charge-discharge step limit duration, the timing value of the discharge step timer is assigned to the charge-discharge step limit duration, the output result of the previous beat of the current loop is assigned to the output result of the current beat of the current loop, and the output result of the previous beat of the voltage loop is assigned to the output result of the current beat of the voltage loop.
5. The method according to claim 1, wherein After obtaining the DC bus voltage, the battery pack voltage, and the current working mode of the charge-discharge module of the target full-bridge circuit, the method further includes: Judging whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage; If it is determined that the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage, it is judged whether the charge-discharge module is in the charging state; If it is determined that the charge-discharge module is not in the charging state, the working mode of the charge-discharge module is assigned to the charging state, the switching tubes in the target full-bridge circuit are controlled to block the wave, the enhanced pulse width modulation wave generation of the switching tubes in the target full-bridge circuit is configured for charging, the first output result is assigned to the first preset value, the output result of the previous beat of the current loop is assigned to the first preset value, the output result of the previous beat of the voltage loop is assigned to the first preset value, the output increment steps of the voltage loop and the current loop are assigned to the second preset value, and the charging step timer is assigned to the first preset value.
6. The method according to claim 5, wherein The judging whether the target full-bridge circuit meets the charging state switching condition according to the DC bus voltage and the battery pack voltage includes: Judging whether the DC bus voltage is greater than the preset DC bus undervoltage value; If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, it is judged whether the battery pack voltage is less than or equal to the preset battery pack overvoltage value; If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, it is determined that the target full-bridge circuit meets the charging state switching condition; If it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, it is determined that the target full-bridge circuit does not meet the charging state switching condition; If it is determined that the DC bus voltage is less than or equal to the preset DC bus undervoltage value, it is determined that the target full-bridge circuit does not meet the charging state switching condition.
7. The method according to claim 5, wherein After determining whether the charge and discharge module is in the charging state, the method further includes: If it is determined that the charge and discharge module is in the charging state, obtain the second timing value of the charging step timer; If it is determined that the second timing value is equal to the third preset value, control the switch tube in the target full-bridge circuit to develop a wave; If it is determined that the second timing value is less than or equal to the charge and discharge step limit duration, determine whether the second output result is greater than the third output result; If it is determined that the second output result is greater than the third output result, assign the second output result to the third output result, assign the output result of the previous cycle of the current loop to the third output result, and assign the output result of the previous cycle of the voltage loop to the third output result; If it is determined that the second output result is less than or equal to the third output result, assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop; If it is determined that the second timing value is greater than the charge and discharge step limit duration, assign the timing value of the charging step timer to the charge and discharge step limit duration, assign the output result of the previous cycle of the current loop to the output result of the current cycle of the current loop, and assign the output result of the previous cycle of the voltage loop to the output result of the current cycle of the voltage loop.
8. A charge and discharge state switching control device, characterized in that, Applied to the charge and discharge module in the DC bus power supply system; the charge and discharge state switching control device includes an acquisition unit, a judgment unit and a control unit; where, The acquisition unit is used to acquire the DC bus voltage, the battery pack voltage and the current working mode of the charge and discharge module of the target full-bridge circuit; The judgment unit is used to judge whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage; The judgment unit is further used to, if it is judged that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, judge whether the charge and discharge module is in the discharge state; The control unit is used to, if it is determined that the charge and discharge module is not in the discharge state, assign the current working mode of the charge and discharge module to the discharge state, control the switch tube in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave generation of the switch tube in the target full-bridge circuit for discharge, assign the first output result to the first preset value, assign the output result of the previous cycle of the current loop to the first preset value, assign the output result of the previous cycle of the voltage loop to the first preset value, respectively assign the output increment step of the voltage loop and the current loop to the second preset value, and assign the discharge step timer to the first preset value, where the first output result is the smaller output result of the output result of the previous cycle of the voltage loop and the output result of the previous cycle of the current loop.
9. An electronic device, characterized in that, Comprising a processor and a memory, the memory being configured to store one or more programs and to be executed by the processor, the programs including instructions for performing the steps in the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, A computer program for electronic data interchange is stored, wherein the computer program causes a computer to execute the method according to any one of claims 1-7.
Citation Information
Patent Citations
A charging and discharging circuit and a method of a UPS battery
CN109193895A
Method for realizing soft start of bidirectional converter
CN111786550A
Method for suppressing overshoot of output voltage or output current, charging equipment and medium
CN113437862A
Switching control method for DC power supply bidirectional DC / DC converter
CN116760282A
Control method and device for improving dynamic response speed of special power supply
CN118232693A
Cited By
Charging and discharging control method and device, energy storage system, storage medium and program product
CN121036280A