Charge and discharge state switching control method and related device
By intelligently monitoring the DC bus and battery voltage status, and directly switching the charge and discharge state, the problem of low switching efficiency of bidirectional DC/DC modules is solved, and low latency control and cost reduction are achieved.
Patent Information
- Application Number
- CN202510685406.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-05-27
AI Technical Summary
The charging and discharging switching efficiency of existing bidirectional DC/DC modules is poor, and there is a delay of hundreds of milliseconds, resulting in a large number of system modules and a high cost.
By intelligently monitoring the DC bus and battery voltage status, the charging and discharging state is directly determined, and the low-delay control method is adopted to reduce the number of system modules and improve system stability.
Low-delay charging and discharging switching control is realized, which improves the stability of the DC bus power supply system and reduces system costs.
Smart Images

Figure CN120200358B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power supply, and specifically to a charge and 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 power the DC bus, ensuring the normal operation of the DC load.
[0003] However, in the current control scheme for bidirectional DC / DC modules, after the monitoring module detects the overvoltage or undervoltage status of the DC bus, it sends the charging and discharging instructions to the bidirectional DC / DC module via the CAN bus. Considering the sampling lag of the DC bus power supply system and the high message occupancy rate of the CAN bus, there is a delay of hundreds of milliseconds between the DC bus voltage change and the bidirectional DC / DC module receiving the charge and discharge switching instructions, resulting in a slow charging and discharging response of the bidirectional DC / DC module. At the same time, when the bidirectional DC / DC module switches between charging and discharging, it is necessary to switch the switching transistor wave configuration, switch the loop control of the voltage loop and the current loop, and adjust the energy transmission level. The bidirectional DC / DC module needs to be turned on and off to achieve the charging and discharging switch. This switching takes several seconds, resulting in poor switching efficiency of the bidirectional DC / DC module. In addition, considering the poor switching efficiency of bidirectional DC / DC modules, when the bidirectional DC / DC modules are charging, in order to ensure sufficient capacity to support the load requirements of the DC bus, a sufficient number of bidirectional DC / DC modules are required to be in a discharging state at all times to ensure that energy transmission can be responded to at any time. Therefore, the system requires too many modules, resulting in high costs. Summary of the Invention
[0004] The embodiments of the present application provide a charge and discharge state switching control method and related devices. By using the embodiments of the present application, it is possible to directly and intelligently monitor the DC bus state and battery voltage state through a bidirectional DC / DC module, determine the charge and discharge state switching, and implement low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the number of system modules, thereby reducing costs.
[0005] In a first aspect, an embodiment of the present application provides 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:
[0006] Obtaining a DC bus voltage of a target full-bridge circuit, a battery pack voltage, and a current operating mode of the charge and discharge module;
[0007] Determining whether the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage;
[0008] 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, then determining whether the charge and discharge module is in the discharge state;
[0009] If it is determined that the charge and discharge module is not in a discharge state, the current operating mode of the charge and discharge module is assigned to a discharge state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation wave of the switch tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output incremental step of the voltage loop and the current loop is assigned to a second preset value respectively, and the discharge step timer is assigned to a 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.
[0010] In a possible example, determining whether the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage includes:
[0011] Determining whether the DC bus voltage is less than or equal to a preset DC bus undervoltage value;
[0012] If it is determined that the DC bus voltage is less than the preset DC bus undervoltage value, determining whether the battery pack voltage is greater than the preset battery pack undervoltage value;
[0013] If it is determined that the battery pack voltage is greater than the preset battery pack undervoltage value, determining that the target full-bridge circuit meets the discharge state switching condition;
[0014] If it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, determining that the target full-bridge circuit does not meet the discharge state switching condition;
[0015] 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.
[0016] In a possible example, after determining that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, and determining that the target full-bridge circuit does not meet the discharge state switching condition, the method includes:
[0017] Assigning the current working mode of the charge and discharge module to a charge and discharge prohibited state;
[0018] Control the switch tubes in the target full-bridge circuit to turn on and off to generate a wave.
[0019] In a possible example, after determining whether the charge-discharge module is in a discharge state, the method includes:
[0020] If it is determined that the charge and discharge module is in a discharge state, obtaining a first timing value of a discharge step timer;
[0021] If it is determined that the first timing value is equal to a third preset value, controlling the switch tube in the target full-bridge circuit to generate a pulse;
[0022] If it is determined that the first timing value is less than or equal to the charge and discharge step limit time, a second output result is determined, and a third output result is determined based on the first output result and the output increment step, where the second output result is the smaller output result of the output result of the voltage loop and the output result of the current loop at the current beat;
[0023] If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0024] If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop;
[0025] If it is determined that the first timing value is greater than the charge and discharge step limit time, the timing value of the discharge step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
[0026] In a possible example, after obtaining the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charge and discharge module, the method includes:
[0027] Determining whether the target full-bridge circuit meets a charging state switching condition according to the DC bus voltage and the battery pack voltage;
[0028] If it is determined according to the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets the charging state switching condition, then determining whether the charging and discharging module is in the charging state;
[0029] If it is determined that the charge and discharge module is not in a charging state, the operating mode of the charge and discharge module is assigned to a charging state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation transmission of the switch tube in the target full-bridge circuit is configured to be charging, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output increment step of the voltage loop and the current loop is assigned to a second preset value, and the charging step timer is assigned to the first preset value.
[0030] In a possible example, determining whether the target full-bridge circuit meets a charging state switching condition according to the DC bus voltage and the battery pack voltage includes:
[0031] Determining whether the DC bus voltage is greater than a preset DC bus undervoltage value;
[0032] If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, determining whether the battery pack voltage is less than or equal to a preset battery pack overvoltage value;
[0033] If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, determining that the target full-bridge circuit meets the charging state switching condition;
[0034] If it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, determining that the target full-bridge circuit does not meet the charging state switching condition;
[0035] 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.
[0036] In a possible example, after determining whether the charge and discharge module is in a charging state, the method includes:
[0037] If it is determined that the charging and discharging module is in a charging state, obtaining a second timing value of the charging step timer;
[0038] If it is determined that the second timing value is equal to the third preset value, controlling the switch tube in the target full-bridge circuit to generate a ripple;
[0039] If it is determined that the second timing value is less than or equal to the charge and discharge step limit time, determining whether the second output result is greater than the third output result;
[0040] If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0041] If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop;
[0042] If it is determined that the second timing value is greater than the charge and discharge step limit time, the timing value of the charging step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
[0043] In a second aspect, an embodiment of the present application provides a charge and discharge state switching control device, which is applied to a charge and discharge module in a DC bus power supply system. The charge and discharge state switching control device includes an acquisition unit, a judgment unit, and a control unit, wherein:
[0044] The acquisition unit is configured to acquire the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charge and discharge module;
[0045] The judging unit is configured to judge whether the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage;
[0046] The judging unit is further configured to judge whether the charging and discharging module is in a discharging state if it is judged that the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage;
[0047] The control unit is configured to, if it is determined that the charge and discharge module is not in a discharge state, assign the current operating mode of the charge and discharge module to a discharge state, control the switching tube in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave of the switching 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, assign the output incremental step of the voltage loop and the current loop to a second preset value respectively, and assign the discharge step timer to the first preset value, wherein 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.
[0048] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program comprises instructions for executing the steps in the first aspect of the embodiment of the present application.
[0049] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, which implements the steps in the first aspect of the embodiment of the present application when the computer program / instruction is executed by a processor.
[0050] In a fifth aspect, 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 enable a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application.
[0051] It can be seen that in the embodiment of the present application, the charge and discharge module can first obtain the DC bus voltage, battery pack voltage and current operating mode of the target full-bridge circuit, and then determine whether the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and battery pack voltage. Then, if it is determined that the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and battery pack voltage, 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 operating mode of the charge and discharge module is assigned to the discharge state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation wave of the switch tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to the first preset value, the output result of the previous cycle of the current loop is assigned to the first preset value, the output result of the previous cycle of the voltage loop is assigned to the first preset value, the output incremental step of the voltage loop and the current loop is assigned to the second preset value respectively, 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 cycle of the voltage loop and the output result of the previous cycle of the current loop. It can directly monitor the DC bus status and battery voltage status through the bidirectional DC / DC module, determine the charge and discharge status switching, and realize low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the number of system modules, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0053] Figure 1 is a schematic diagram of a DC bus power supply system provided in an embodiment of the present application;
[0054] Figure 2 is a schematic diagram of a DAB circuit provided in an embodiment of the present application;
[0055] Figure 3 This is a flow chart of a charge and discharge state switching control method provided in an embodiment of the present application;
[0056] Figure 4 This is a schematic diagram of a triple phase-shift charging mode wave configuration provided by an embodiment of the present application;
[0057] Figure 5 This is a schematic diagram of another triple phase-shift discharge mode wave configuration provided by an embodiment of the present application;
[0058] Figure 6 This is a flow chart of a voltage loop and current loop dual-loop competition control provided by an embodiment of the present application;
[0059] Figure 7 This is a schematic diagram of the output result of a loop takeover strategy provided in an embodiment of the present application;
[0060] Figure 8 This is a schematic diagram of the output results of another loop takeover strategy provided in an embodiment of the present application;
[0061] Figure 9 This is a flow chart provided by an embodiment of the present application for determining whether a discharge state switching condition is met;
[0062] Figure 10 This is a flowchart of a working mode assignment provided by an embodiment of the present application;
[0063] Figure 11 This is a flow chart of an incremental step control provided by an embodiment of the present application;
[0064] Figure 12 1 is a flow chart of another charge-discharge state switching control method provided in an embodiment of the present application;
[0065] Figure 13 1 is a flow chart of another charge-discharge state switching control method provided in an embodiment of the present application;
[0066] Figure 14 1 is a flow chart of another charge-discharge state switching control method provided in an embodiment of the present application;
[0067] Figure 15 This is a schematic diagram of the overall flow of a charge and discharge state switching control method provided by an embodiment of the present application;
[0068] Figure 16 This is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0069] Figure 17 This is a block diagram of the functional units of a charge and discharge state switching control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0071] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0072] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0073] In the embodiments of this application, "and / or" describes the relationship between associated objects and indicates that three relationships can exist. For example, "A and / or B" can represent the following three situations: A exists alone; A and B exist simultaneously; and B exists alone. A and B can be singular or plural.
[0074] In the embodiments of the present application, the symbol " / " can indicate that the preceding and following objects are in an "or" relationship. In addition, the symbol " / " can also represent a division sign, that is, performing a division operation. For example, A / B can mean A divided by B.
[0075] In the embodiments of the present application, "at least one item" or similar expressions refers to any combination of these items, including any combination of single items or plural items, and refers to one or more, and multiple refers to two or more. For example, at least one item (item) of a, b, or c can 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, and c can be an element or a set containing one or more elements.
[0076] In the embodiments of this application, "equal to" can be used in conjunction with "greater than" and is applicable to the technical solution adopted when "greater than" is used, and can also be used in conjunction with "less than" and is applicable to the technical solution adopted when "less than" is used. When "equal to" is used in conjunction with "greater than", it should not be used in conjunction with "less than"; when "equal to" is used in conjunction with "less than", it should not be used in conjunction with "greater than".
[0077] In order 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 are first introduced below.
[0078] The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication capabilities, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), and electronic devices (terminal devices). For ease of description, the above-mentioned devices are collectively referred to as electronic devices.
[0079] See also Figure 1 , Figure 1 Schematic diagram of a DC bus power supply system provided in an embodiment of the present application. Figure 1 As 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 the A phase, B phase, C phase and PE line, and 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 connected to the DC bus 10, the bidirectional DC / DC module 50, the battery pack 60, the monitoring module 70, the MPPT module 80 and the solar photovoltaic panel 90. The DC module 50, the battery pack 60 and the MPPT module 80 are connected, 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, and 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 supply, Vbat- represents the negative pole of the battery power supply, DC+ represents the positive pole of the DC power supply, and DC- represents the negative pole of the DC power supply.
[0080] The charging and discharging module is a bidirectional DC / DC module 50, and the target full-bridge circuit can be a DAB (Dual Active Bridge) circuit, for example, Figure 2 As shown, Figure 2: This is a schematic diagram of a DAB circuit provided by an embodiment of the present application, Cbus is a DC bus side electrolytic capacitor, Cbat is a battery side electrolytic capacitor, Tr is a transformer, the transformer includes a primary winding and a secondary winding, the two ends of the DC bus side electrolytic capacitor are respectively connected to the first end of the first switch tube Q1 and the second end of the second switch tube Q2, the second end of the first switch tube Q1 is respectively connected to the first end of the second switch tube Q2 and the first end of the first inductor L1, the first end of the first switch tube Q1 is connected to the first end of the third switch tube Q3, the second end of the third switch tube Q3 is respectively connected to the first end of the fourth switch tube Q4 and the second end of the primary winding, the first inductor L1 is connected to the first end of the primary winding. One end, 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 the second end of the fifth switch tube Q5 and the first end of the sixth switch tube Q6, the first end of the fifth switch tube Q5 is respectively connected to the first end of the seventh switch tube Q7 and the first end of the battery-side electrolytic capacitor, the second end of the seventh switch tube Q7 is respectively connected to the first end of the eighth switch tube Q8 and the second end of the secondary winding, and 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 battery-side electrolytic capacitor; the energy transmission direction in the charging mode is input to the DC bus side and output to the battery side, and the energy transmission direction in the discharging mode is input to the battery side and output to the DC bus side.
[0081] When the DC bus 10 is not undervoltage and the battery pack voltage is not overvoltage, the charging state switching condition is met and the battery can be switched to the charging state. When the DC bus 10 is undervoltage and the battery pack voltage is not undervoltage, the discharging state switching condition is met and the battery can be switched to the discharging state. In other cases, charging and discharging are not performed, that is, the battery is in the charging and discharging prohibited state.
[0082] In one possible example, the bidirectional DC / DC module 50 may first obtain 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, and then the bidirectional DC / DC module 50 may determine whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage. If the bidirectional DC / DC module 50 determines that the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, then it may determine 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, then the charge and discharge module may be switched to the discharge state. The module's current operating mode is assigned to a discharge state, the switching tubes in the target full-bridge circuit are controlled to be blocked, the enhanced pulse width modulation (EPM) of the switching tubes in the target full-bridge circuit are configured for discharge, a first output result is assigned to a first preset value, the output result of the previous cycle of the current loop is assigned to the first preset value, the output result of the previous cycle of the voltage loop is assigned to the first preset value, the output increments of the voltage loop and the current loop are assigned to second preset values, and the discharge step timer is assigned to the first preset value. The first output result is the smaller of the output result of the previous cycle of the voltage loop and the output result of the previous cycle of the current loop. This allows for intelligent monitoring of the DC bus state and battery voltage state directly through the bidirectional DC / DC module 50, determination of charge / discharge state switching, and low-latency charge / discharge switching control, thereby improving the stability of the DC bus power supply system and reducing costs by reducing the number of system modules.
[0083] See also Figure 3 , Figure 3 : This is a flow chart of a charge and discharge state switching control method provided in an embodiment of the present application, which is applied to a charge and discharge module in a DC bus power supply system. The method includes:
[0084] Step S301 , obtaining the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charging and discharging module.
[0085] The working modes of the charge and discharge module include a charge mode and a discharge mode.
[0086] 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 charging and discharging module, the following steps are also included: step S201, controlling the time base timer T1 to start accumulation; step S202, obtaining 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 executing steps S301-step 304.
[0087] The accumulated step of T1 is related to the main frequency of the chip used. For example, when the main frequency is 150MHz, the accumulated step is 6.67ns each time.
[0088] Step S302 : determining whether the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage.
[0089] When the DC bus is not undervoltage and the battery pack voltage is not overvoltage, the charging state switching condition is met and the battery can be switched to the charging state. When the DC bus is undervoltage and the battery pack voltage is not undervoltage, the discharging state switching condition is met and the battery can be switched to the discharging state. In other cases, charging and discharging are not performed, that is, the charging and discharging is prohibited.
[0090] 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, it is determined whether the charge and discharge module is in the discharge state.
[0091] Step S304: If it is determined that the charge and discharge module is not in the discharge state, the current operating mode of the charge and discharge module is assigned to the discharge state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation transmission of the switch tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output increment step of the voltage loop and the current loop is assigned to a second preset value respectively, 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.
[0092] Among them, the DAB circuit wave control is divided into single phase shift, double phase shift and triple phase shift, but all of them need to control the phase shift angle of the primary and secondary sides of the transformer. Taking triple phase shift as an example, the following explains the charging and discharging wave configuration of the DAB circuit. The enhanced pulse width modulation (EPWM) wave configurations of the switch tubes Q1-Q8 are EPWM1A, EPWM1B, EPWM2A, EPWM2B, EPWM3A, EPWM3B, EPWM4A and EPWM4B, respectively, and the conduction duty cycle of all MOS tubes is (50%-dead zone). When the energy transfer angle phase of Q1 and Q4 is ahead of the energy transfer angle phase of Q5 and Q8, it is in charging mode. When the energy transfer angle phase of Q1 and Q4 lags behind the energy transfer angle phase of Q5 and Q8, it is in discharge mode.
[0093] Among them, see Figure 4 and Figure 5 , Figure 4 This is a schematic diagram of a triple phase-shift charging mode wave configuration provided by an embodiment of the present application. Figure 5 This is a schematic diagram of another triple phase-shift discharge mode wave configuration provided by an embodiment of the present application, Figure 4 and Figure 5 As can be seen, to achieve charge-discharge switching, the lead / lag relationship between the primary and secondary energy transfer angles must be altered. Therefore, the synchronization phases of EPWM3A, EPWM3B, EPWM4A, and EPWM4B must be adjusted. When switching from charge to discharge (i.e., when the timers of EPWM1A, EPWM1B, EPWM2A, and EPWM2B cross zero), the synchronized phases of EPWM3A, EPWM3B, EPWM4A, and EPWM4B must advance. When switching from discharge to charge (i.e., when the timers of EPWM1A, EPWM1B, EPWM2A, and EPWM2B cross zero), the synchronized phases of EPWM3A, EPWM3B, EPWM4A, and EPWM4B must lag. However, this phase adjustment must be performed during the MOSFET blocking phase. Otherwise, Q5-Q8 will inevitably generate dysregulation, ultimately leading to inductor current imbalance and triggering overcurrent protection. Therefore, a brief blocking phase of one switching cycle occurs during the charge-discharge switching phase.
[0094] Among them, the enhanced pulse width modulation wave of the switch tube in the target full-bridge circuit is configured to discharge, which is to configure the switch tube in the target full-bridge circuit to discharge according to Figure 5 Perform wave configuration in discharge mode.
[0095] Among them, see Figure 6 , Figure 6 This is a flowchart of a voltage loop and a current loop dual-loop competitive control provided by an embodiment of the present application. The voltage loop and the current loop can immediately switch the loop sampling value and the reference value according to the working mode of the charge and discharge module. For example: when the working mode is the charging module, the voltage loop switching loop sampling value is Vbat_samp, the switching loop reference value is Vbat_ref, the current loop switching loop sampling value is Ibat_samp, and the switching loop reference value is Ibat_ref. At this time, V_ref=Vbat_ref, V_samp=Vbat_samp; when the working mode is the discharging module, the voltage loop switching loop sampling value is Vbus_samp, the switching loop reference value is Vbus_ref, the current loop switching loop sampling value is Ibus_samp, and the switching loop reference value is 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, PI compensator calculates and outputs V_out and I_out according to the input V_Err and I_Err, taking the voltage loop as an example: , the output result of the current beat of the PI compensator, is the output result of the PI compensator on the previous beat, is the difference between V_ref and V_samp of the current shot, is the difference between V_ref and V_samp in the previous beat, K1 and K2 are constant parameters of the voltage loop, taking the current loop as an example: , the output result of the current beat of the PI compensator, is the output result of the PI compensator on the previous beat, is the difference between I_ref and I_samp of the current shot, is the difference between I_ref and I_samp in the previous beat, K3 and K4 are constant parameters of the current loop. Limiting refers to limiting the output of the PI compensator to prevent the output of the PI compensator from increasing or decreasing without limit. Specifically, The amplitude limit is in the first voltage range, and the first voltage range includes a first voltage lower limit value and a first voltage upper limit value. When the output result of the PI compensator is in the first voltage range, after the amplitude limit The value remains unchanged. When the output result of the PI compensator is less than the first voltage lower limit value of the first voltage range, Assigned to the first voltage lower limit, that is, after limiting The value of is the first voltage lower limit. When the output result of the PI compensator is greater than the first voltage upper limit of the first voltage range, Assigned to the first voltage upper limit value, that is, after limiting The value of is the first voltage upper limit; The amplitude limit is in the first current range, and the first current range includes a first current lower limit value and a first current upper limit value. When the output result of the PI compensator is in the first current range, after the amplitude limit The value remains unchanged. When the output result of the PI compensator is less than the first current lower limit value of the first current range, Assigned to the first current lower limit value, that is, after limiting The value of 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, Assigned to the first current upper limit value, that is, after limiting The value of is the first voltage and current value; and After the comparator MIN outputs Dout, Dout is and The smaller value of Dout is obtained by triple phase-shift wave calculation to obtain D1, D2 and D3. Finally, the wave control is performed according to D1, D2 and D3. Among them, D1 refers to the duty cycle phase shift angle of the primary bridge arm and the secondary bridge arm, D2 refers to the time when the primary MOS tubes Q1 and Q4 are turned on at the same time or the time when Q2 and Q3 are turned on at the same time, and D3 refers to the time when the secondary MOS tubes Q5 and Q8 are turned on at the same time or the time when Q6 and Q7 are turned on at the same time.
[0096] Among them, when switching between charge and discharge states, there will inevitably be a problem of inconsistency between charging power and discharging power. If handled improperly, there is a risk of module damage. For example, when switching from a high-power discharge state to a low-power charging state, if the energy transfer is not reduced immediately, or after the energy transfer is reduced rapidly, during the step soft start, the loop takeover is too slow, resulting in energy transfer overshoot, which will cause the battery to be at risk of overpower damage. The combination of initialization loop calculation, gradual current limiting and loop fast takeover strategy can ensure smooth energy transfer. Initialization loop calculation means initializing the data involved in the loop calculation while switching loop control to avoid mutual influence between the loop calculations of the charge and discharge states. For example, when the charging state is switched to the discharge state, 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 are all cleared to zero to ensure that the influence of the charging state loop calculation is cleared. Gradual current limiting means limiting the incremental step of the loop output result of a single calculation cycle after the loop calculation is initialized, that is, assigning the output incremental step to a second preset value. The second preset value can be set manually or by system default, and is not limited here. For example, the second preset value is 1%. Taking the voltage loop as an example, in the gradual current limiting process, due to V_Err and 1 always exists. If only the incremental step of Dout is limited, then It will increase to the upper limit before the voltage loop takes over, resulting in an overshoot problem in energy transfer. The fast loop takeover strategy is to limit the integral term V_out1, that is, to limit the incremental step of V_out1 and Dout at the same time, to ensure that the voltage loop can be closed quickly, that is, the loop takes over without delay, such as Figure 7 and Figure 8 As shown, Figure 7 This is a schematic diagram of the output result of a loop takeover strategy provided in an embodiment of the present application. Figure 8 This is a schematic diagram of the output results of another loop takeover strategy provided in an embodiment of the present application; Figure 7 It is the voltage loop output result under the conventional loop takeover strategy, Dout and the loop output result after the voltage loop takes over. Figure 8 It is the voltage loop output result under the loop fast takeover strategy, Dout and the loop output result after the voltage loop takes over. Figure 7 Due to the delay in the voltage loop takeover, the Dout part exceeds Dout_steady state or even reaches Dout_overshoot. Figure 8 Because the voltage loop takes over without delay, Dout remains stable at Dout_steady-state. This is achieved by assigning the output of the previous current loop as the third output when the smaller of the output of the voltage loop or the output of the current loop in the current cycle is greater than the third output (the sum of the smaller of the output of the previous voltage loop or the output of the current loop in the previous cycle and the output increment step). This allows for rapid and timely voltage and current loop takeover. The third output is less than the first voltage upper limit, and the third output is less than the first current upper limit. Therefore, during the step soft-start process, voltage and current overshoot can be effectively suppressed, improving the stability of the DC bus power supply system. Dout_Max is the maximum output value of Dout.
[0097] It can be seen that in the embodiment of the present application, the charge and discharge module can first obtain the DC bus voltage, battery pack voltage and current operating mode of the target full-bridge circuit, and then determine whether the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and battery pack voltage. Then, if it is determined that the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and battery pack voltage, 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 operating mode of the charge and discharge module is assigned to the discharge state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation wave of the switch tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to the first preset value, the output result of the previous cycle of the current loop is assigned to the first preset value, the output result of the previous cycle of the voltage loop is assigned to the first preset value, the output incremental step of the voltage loop and the current loop is assigned to the second preset value respectively, 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 cycle of the voltage loop and the output result of the previous cycle of the current loop. It can directly monitor the DC bus status and battery voltage status through the bidirectional DC / DC module, determine the charge and discharge status switching, and realize low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the number of system modules, thereby reducing costs.
[0098] See also Figure 9 , Figure 9 This is a flowchart of determining whether a discharge state switching condition is satisfied, provided by an embodiment of the present application. In determining whether the target full-bridge circuit satisfies the discharge state switching condition based on the DC bus voltage and the battery pack voltage, the method includes:
[0099] Step S401, determining whether the DC bus voltage is less than or equal to a preset DC bus undervoltage value;
[0100] Step S402: If it is determined that the DC bus voltage is less than the preset DC bus undervoltage value, then determining whether the battery pack voltage is greater than the preset battery pack undervoltage value;
[0101] Step S403: If it is determined that the battery pack voltage is greater than the preset battery pack undervoltage value, determining that the target full-bridge circuit meets the discharge state switching condition;
[0102] Step S404: If it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, determining that the target full-bridge circuit does not meet the discharge state switching condition;
[0103] 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.
[0104] If the DC bus voltage is less than or equal to the preset DC bus undervoltage value, it indicates that the power supply module on the DC bus is insufficient and a bidirectional DC / DC module is required to draw energy from the battery pack to support the DC bus. If the battery pack voltage is greater than the preset battery pack undervoltage value, it indicates that the battery pack is not undervoltage and can support discharge. In this case, the target full-bridge circuit meets the discharge state switching condition. If the battery pack voltage is less than or equal to the preset battery pack undervoltage value, it indicates that the battery pack is undervoltage and cannot support discharge. In this case, the target full-bridge circuit does not meet the discharge state switching condition.
[0105] Among them, if the DC bus voltage is greater than the preset DC bus undervoltage value, it means that the power supply module on the DC bus has sufficient capacity and the bidirectional DC / DC module is not required to draw energy from the battery pack.
[0106] The preset DC bus undervoltage value and the preset battery pack undervoltage value may be set manually or by system default, and are not limited here.
[0107] It can be seen that in this example, the DC bus status and battery voltage status are directly monitored intelligently by the bidirectional DC / DC module, and the charge and discharge state switching is determined, which is conducive to improving the efficiency of the charge and discharge state switching.
[0108] See also Figure 10 , Figure 10 This is a flowchart of an operating mode assignment provided by an embodiment of the present application. After determining that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, and determining that the target full-bridge circuit does not meet the discharge state switching condition, the method includes:
[0109] Step S501, assigning the current working mode of the charging and discharging module to a charging and discharging prohibited state;
[0110] Step S502: Control the switch tubes in the target full-bridge circuit to turn off and generate a wave.
[0111] Among them, if the battery pack voltage is less than or equal to the preset battery pack undervoltage value, it means that the battery pack is in an undervoltage state and cannot supply energy to the DC bus. The bidirectional DC / DC module enters a charge and discharge prohibited state, and the main power MOS tube remains in a normally off state to reduce the loss of the DC bus power supply system.
[0112] It can be seen that in this example, the charge and discharge module can enter the charge and discharge prohibited state when the battery pack is in an undervoltage state, and the main power MOS tube remains in a normally off state, which is beneficial to reducing the loss of the DC bus power supply system.
[0113] See also Figure 11 , Figure 11 This is a flowchart of an incremental step control provided by an embodiment of the present application. After determining whether the charge and discharge module is in a discharge state, the method includes:
[0114] Step S601: if it is determined that the charge and discharge module is in a discharge state, a first timing value of a discharge step timer is obtained;
[0115] Step S602: If it is determined that the first timing value is equal to a third preset value, controlling the switch tubes in the target full-bridge circuit to generate ripples;
[0116] Step S603: If it is determined that the first timing value is less than or equal to the charge and discharge step limit time, a second output result is determined, and a third output result is determined based on the first output result and the output increment step, where the second output result is the smaller output result of the output result of the voltage loop and the output result of the current loop at the current beat;
[0117] Step S604: If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0118] Step S605: 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 as the output result of the current loop, and the output result of the previous beat of the voltage loop is assigned as the output result of the current loop;
[0119] Step S606: If it is determined that the first timing value is greater than the charge and discharge step limit time, the timing value of the discharge step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop current beat, and the output result of the previous beat of the voltage loop is assigned to the output result of the current loop current beat.
[0120] Among them, the third output result = the first output result + the output incremental step.
[0121] The third preset value can be manually set or set by the system by default, and is not limited here. For example, the third preset value can be 1. The first timing value is equal to 1, indicating that the blocking time only lasts for a single switching cycle, at which time each switch tube is controlled to generate a wave.
[0122] When the charge and discharge module switches to the discharge state, the discharge step timer is assigned a value of 0, and the discharge step timer is controlled to start accumulating.
[0123] Among them, when it is judged that the second output result is greater than the third output result, the second output result is assigned to the third output result, in order to limit the incremental step of the smaller output results of the voltage loop and the current loop to avoid energy transfer overshoot; 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 energy transfer overshoot; 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 energy transfer overshoot.
[0124] The discharge step timer T3 is assigned a charge and discharge step limit time length T4, indicating exiting the gradual current limiting state.
[0125] Among them, if it is judged 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 as the output result of the current loop current beat, and the output result of the previous beat of the voltage loop is assigned as the output result of the current beat of the voltage loop. Since the incremental limit is not triggered, the loop quick takeover strategy is not used.
[0126] It can be seen that in this example, by limiting the incremental step of the output results of the voltage loop and the current loop in the current beat, the incremental step of the output result of the current loop in the previous beat, and the incremental step of the output result of the current loop in the previous beat, it is beneficial to ensure that the voltage loop and the current loop are quickly closed, which is beneficial to suppressing the voltage and current overshoot problem.
[0127] See also Figure 12 , Figure 12 is a flow chart of another charge and discharge state switching control method provided by an embodiment of the present application. After obtaining the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charge and discharge module, the method includes:
[0128] Step S701, judging whether the target full-bridge circuit meets a charging state switching condition according to the DC bus voltage and the battery pack voltage;
[0129] Step S702: If it is determined that the target full-bridge circuit meets the charging state switching condition based on the DC bus voltage and the battery pack voltage, then it is determined whether the charging and discharging module is in the charging state;
[0130] Step S703: If it is determined that the charge-discharge module is not in the charging state, the operating mode of the charge-discharge module is assigned to the charging state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation transmission of the switch tube in the target full-bridge circuit is configured to be charging, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output increment step of the voltage loop and the current loop is assigned to a second preset value, and the charging step timer is assigned to the first preset value.
[0131] When the DC bus 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 met and the battery pack can be switched to the charging state.
[0132] Among them, before the enhanced pulse width modulation wave configuration of the switch tube, the switch tube in the target full-bridge circuit must be controlled to block the wave to avoid causing inductor current imbalance and triggering overcurrent protection.
[0133] Among them, the enhanced pulse width modulation wave configuration of the switch tube in the target full-bridge circuit is configured as charging, which is to configure the switch tube in the target full-bridge circuit according to Figure 4 Perform wave configuration in discharge mode.
[0134] As can be seen, in this example, the bidirectional DC / DC module directly monitors the DC bus status and battery voltage status intelligently, determines the charge and discharge state switching, and implements low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the number of system modules, thereby reducing costs.
[0135] See also Figure 13 , Figure 13 is a flow chart of another charge and discharge state switching control method provided by an embodiment of the present application. In terms of determining whether the target full-bridge circuit meets the charge state switching condition based on the DC bus voltage and the battery pack voltage, the method includes:
[0136] Step S801, determining whether the DC bus voltage is greater than a preset DC bus undervoltage value;
[0137] Step S802: If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, then determining whether the battery pack voltage is less than or equal to a preset battery pack overvoltage value;
[0138] Step S803: If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, determining that the target full-bridge circuit meets the charging state switching condition;
[0139] Step S804: 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;
[0140] Step S805: 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.
[0141] The preset DC bus undervoltage value and the preset battery pack overvoltage value may be manually set or set by system default, and are not limited here.
[0142] If the DC bus voltage is greater than the preset DC bus undervoltage value, it indicates that the DC bus is not undervoltage and the power supply module on the DC bus has sufficient power supply capacity. If the battery pack voltage is less than the preset battery pack overvoltage value, it indicates that the battery pack is not overvoltage and can support charging. In this case, the target full-bridge circuit meets the charging state switching condition. If the battery pack voltage is greater than the preset battery pack overvoltage value, it indicates that the battery pack is overvoltage and cannot support charging. In this case, the target full-bridge circuit does not meet the charging state switching condition.
[0143] Optionally, if it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, then after determining that the target full-bridge circuit does not meet the charging state switching condition, the method includes: step S901, assigning the current working mode of the charging and discharging module to a charging and discharging prohibited state; step S902, controlling the switch tube in the target full-bridge circuit to turn on and off.
[0144] Among them, the battery pack voltage is greater than the preset battery pack overvoltage value, indicating that the battery pack is in an overvoltage state and cannot be charged. The bidirectional DC / DC module enters a charge and discharge prohibited state, and the main power MOS tube remains in a normally off state to reduce the loss of the DC bus power supply system.
[0145] It can be seen that in this example, the DC bus status and battery voltage status are directly monitored intelligently by the bidirectional DC / DC module, and the charge and discharge state switching is determined, which is conducive to improving the efficiency of the charge and discharge state switching.
[0146] See also Figure 14 , Figure 14: is a flow chart of another charge and discharge state switching control method provided by an embodiment of the present application. After determining whether the charge and discharge module is in a charging state, the method includes:
[0147] Step S1001: if it is determined that the charging and discharging module is in a charging state, a second timing value of a charging step timer is obtained;
[0148] Step S1002: If it is determined that the second timing value is equal to a third preset value, controlling the switch tubes in the target full-bridge circuit to generate ripples;
[0149] Step S1003: If it is determined that the second timing value is less than or equal to the charge / discharge step limit time, then determining whether the second output result is greater than the third output result;
[0150] Step S1004: If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0151] Step S1005: 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 as the output result of the current loop, and the output result of the previous beat of the voltage loop is assigned as the output result of the current loop;
[0152] Step S1006: If it is determined that the second timing value is greater than the charge and discharge step limit time, the timing value of the charging step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop current beat, and the output result of the previous beat of the voltage loop is assigned to the output result of the current loop current beat.
[0153] When the charge and discharge module switches to the charging state, the charging step timer is assigned a value of 0, and the charging step timer is controlled to start accumulating.
[0154] Among them, when the charge and discharge module switches to the charging state, in order to avoid energy transfer overshoot, when it is judged that the second output result is greater than the third output result, the second output result is assigned to the third output result, in order to limit the incremental step of the smaller output results of the voltage loop and the current loop to avoid energy transfer overshoot; 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, also in order to avoid energy transfer overshoot; 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, also in order to avoid energy transfer overshoot.
[0155] Among them, the charging step timer T5 is assigned the charging and discharging step limit time T4, indicating that the gradual current limiting state is exited.
[0156] Among them, when the incremental limit is not triggered, the loop quick takeover strategy is not used as follows: if it is judged 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 as the output result of the current loop current beat, and the output result of the previous beat of the voltage loop is assigned as the output result of the current loop current beat.
[0157] See also Figure 15 , Figure 15 This is a schematic diagram of the overall flow of a charge and discharge state switching control method provided by an embodiment of the present application, which may include the following process path: process start - step S201 - step S202 - step S203 - step S301 - step S401 - step S402 - step S403 - step S303 - step S304 - process end;
[0158] Process starts - 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 ends;
[0159] Process starts - step S201 - step S202 - step S203 - step S301 - step S401 - step S402 - step S403 - step S303 - step S601 - step S602 - step S606 - process ends;
[0160] Process starts - 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 ends;
[0161] Process starts - step S201 - step S202 - step S203 - step S301 - step S401 - step S402 - step S404 - step S501 - step S502 - process ends;
[0162] Process starts - step S201 - step S202 - step S203 - step S301 - step S801 - step S802 - step S803 - step S702 - step S703 - process ends;
[0163] Process starts - 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 ends;
[0164] Process starts - step S201 - step S202 - step S203 - step S301 - step S801 - step S802 - step S803 - step S702 - step S1001 - step S1006 - process ends;
[0165] Process starts - step S201 - step S202 - step S203 - step S301 - step S801 - step S802 - step S803 - step S702 - step S1001 - step S1002 - step S1005 - process ends;
[0166] Process start-step S201-step S202-step S203-step S301-step S801-step S804-step S901-step S902-step end;
[0167] The process starts - step S201 - step S202 - step S203 - step ends.
[0168] It can be seen that in this example, by limiting the incremental step of the output results of the voltage loop and the current loop in the current beat, the incremental step of the output result of the current loop in the previous beat, and the incremental step of the output result of the current loop in the previous beat, it is beneficial to ensure that the voltage loop and the current loop are quickly closed, which is beneficial to suppressing the voltage and current overshoot problem.
[0169] See also Figure 16 , Figure 16 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application, which is applied to a charging and discharging module in a DC bus power supply system; Figure 16 As shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to cause the processor to execute the following steps:
[0170] Obtaining a DC bus voltage of a target full-bridge circuit, a battery pack voltage, and a current operating mode of the charge and discharge module;
[0171] Determining whether the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage;
[0172] 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, then determining whether the charge and discharge module is in the discharge state;
[0173] If it is determined that the charge and discharge module is not in a discharge state, the current operating mode of the charge and discharge module is assigned to a discharge state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation wave of the switch tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output incremental step of the voltage loop and the current loop is assigned to a second preset value respectively, and the discharge step timer is assigned to a 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.
[0174] It can be seen that in the embodiment of the present application, the electronic device can first obtain the DC bus voltage, the battery pack voltage and the current operating mode of the charge and discharge module of the target full-bridge circuit, and then determine whether the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and the battery pack voltage. Then, if it is determined that the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and the battery pack voltage, 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 operating mode of the charge and discharge module is assigned to the discharge state, the switching tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation of the switching tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to the first preset value, the output result of the previous cycle of the current loop is assigned to the first preset value, the output result of the previous cycle of the voltage loop is assigned to the first preset value, the output increment step of the voltage loop and the current loop is assigned to the second preset value respectively, 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 cycle of the voltage loop and the output result of the previous cycle of the current loop. It can directly monitor the DC bus status and battery voltage status through the bidirectional DC / DC module, determine the charge and discharge status switching, and realize low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the number of system modules, thereby reducing costs.
[0175] In one possible example, in terms of determining whether the target full-bridge circuit meets a discharge state switching condition based on the DC bus voltage and the battery pack voltage, the program further includes instructions for executing the following steps:
[0176] Determining whether the DC bus voltage is less than or equal to a preset DC bus undervoltage value;
[0177] If it is determined that the DC bus voltage is less than the preset DC bus undervoltage value, determining whether the battery pack voltage is greater than the preset battery pack undervoltage value;
[0178] If it is determined that the battery pack voltage is greater than the preset battery pack undervoltage value, determining that the target full-bridge circuit meets the discharge state switching condition;
[0179] If it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, determining that the target full-bridge circuit does not meet the discharge state switching condition;
[0180] 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.
[0181] In one possible example, after determining that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, and determining that the target full-bridge circuit does not meet the discharge state switching condition, the program includes instructions for executing the following steps:
[0182] Assigning the current working mode of the charge and discharge module to a charge and discharge prohibited state;
[0183] Control the switch tubes in the target full-bridge circuit to turn on and off to generate a wave.
[0184] In a possible example, after determining whether the charge-discharge module is in a discharge state, the program further includes instructions for executing the following steps:
[0185] If it is determined that the charge and discharge module is in a discharge state, obtaining a first timing value of a discharge step timer;
[0186] If it is determined that the first timing value is equal to a third preset value, controlling the switch tube in the target full-bridge circuit to generate a pulse;
[0187] If it is determined that the first timing value is less than or equal to the charge and discharge step limit time, a second output result is determined, and a third output result is determined based on the first output result and the output increment step, where the second output result is the smaller output result of the output result of the voltage loop and the output result of the current loop at the current beat;
[0188] If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0189] If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop;
[0190] If it is determined that the first timing value is greater than the charge and discharge step limit time, the timing value of the discharge step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
[0191] In one possible example, after obtaining the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charge and discharge module, the program further includes instructions for executing the following steps:
[0192] Determining whether the target full-bridge circuit meets a charging state switching condition according to the DC bus voltage and the battery pack voltage;
[0193] If it is determined according to the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets the charging state switching condition, then determining whether the charging and discharging module is in the charging state;
[0194] If it is determined that the charge and discharge module is not in a charging state, the operating mode of the charge and discharge module is assigned to a charging state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation transmission of the switch tube in the target full-bridge circuit is configured to be charging, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output increment step of the voltage loop and the current loop is assigned to a second preset value, and the charging step timer is assigned to the first preset value.
[0195] In one possible example, in determining whether the target full-bridge circuit meets a charging state switching condition based on the DC bus voltage and the battery pack voltage, the program further includes instructions for executing the following steps:
[0196] Determining whether the DC bus voltage is greater than a preset DC bus undervoltage value;
[0197] If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, determining whether the battery pack voltage is less than or equal to a preset battery pack overvoltage value;
[0198] If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, determining that the target full-bridge circuit meets the charging state switching condition;
[0199] If it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, determining that the target full-bridge circuit does not meet the charging state switching condition;
[0200] 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.
[0201] In a possible example, after determining whether the charge and discharge module is in a charging state, the program further includes instructions for executing the following steps:
[0202] If it is determined that the charging and discharging module is in a charging state, obtaining a second timing value of the charging step timer;
[0203] If it is determined that the second timing value is equal to the third preset value, controlling the switch tube in the target full-bridge circuit to generate a ripple;
[0204] If it is determined that the second timing value is less than or equal to the charge and discharge step limit time, determining whether the second output result is greater than the third output result;
[0205] If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0206] If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop;
[0207] If it is determined that the second timing value is greater than the charge and discharge step limit time, the timing value of the charging step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
[0208] 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 is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0209] The embodiment of the present application can divide the functional units of the electronic device according to the above method example. For example, each functional unit can be divided according 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 software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0210] In the case of dividing each functional module into corresponding functional modules, Figure 17 This is a functional unit block diagram of a charge and discharge state switching control device provided by an embodiment of the present application, such as Figure 17 As shown, the charging and discharging module is applied to the DC bus power supply system, and the charging and discharging state switching control device includes: an acquisition unit 1701, a judgment unit 1702 and a control unit 1703, wherein,
[0211] 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 operating mode of the charge and discharge module;
[0212] The judging unit 1702 is configured to judge whether the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage;
[0213] The judging unit 1702 is further configured to judge whether the charging and discharging module is in a discharging state if it is determined based on the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets a discharge state switching condition;
[0214] The control unit 1703 is used to assign the current working mode of the charge and discharge module to the discharge state if it is determined that the charge and discharge module is not in the discharge state, control the switching tube in the target full-bridge circuit to block the wave, configure the enhanced pulse width modulation wave of the switching 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, assign the output incremental step of the voltage loop and the current loop to the second preset value respectively, 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.
[0215] It can be seen that the charge and discharge state switching control device described in the embodiment of the present application can first obtain the DC bus voltage, battery pack voltage and current operating mode of the target full-bridge circuit, then determine whether the target full-bridge circuit meets the discharge state switching condition based on the DC bus voltage and battery pack voltage. If the target full-bridge circuit is determined to meet the discharge state switching condition based on the DC bus voltage and battery pack voltage, then determine 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 operating mode of the charge and discharge module is assigned to the discharge state, the switching tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation of the switching tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to the first preset value, the output result of the previous cycle of the current loop is assigned to the first preset value, the output result of the previous cycle of the voltage loop is assigned to the first preset value, the output increment step of the voltage loop and the current loop is assigned to the second preset value respectively, 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 cycle of the voltage loop and the output result of the previous cycle of the current loop. It can directly monitor the DC bus status and battery voltage status through the bidirectional DC / DC module, determine the charge and discharge status switching, and realize low-latency charge and discharge switching control, which is beneficial to improving the stability of the DC bus power supply system and reducing the number of system modules, thereby reducing costs.
[0216] In a possible example, in determining whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage, the determining unit 1702 is specifically configured to:
[0217] Determining whether the DC bus voltage is less than or equal to a preset DC bus undervoltage value;
[0218] If it is determined that the DC bus voltage is less than the preset DC bus undervoltage value, determining whether the battery pack voltage is greater than the preset battery pack undervoltage value;
[0219] If it is determined that the battery pack voltage is greater than the preset battery pack undervoltage value, determining that the target full-bridge circuit meets the discharge state switching condition;
[0220] If it is determined that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, determining that the target full-bridge circuit does not meet the discharge state switching condition;
[0221] 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.
[0222] In a possible example, after determining that the battery pack voltage is less than or equal to the preset battery pack undervoltage value and determining that the target full-bridge circuit does not meet the discharge state switching condition, the control unit 1703 is specifically configured to:
[0223] Assigning the current working mode of the charge and discharge module to a charge and discharge prohibited state;
[0224] Control the switch tubes in the target full-bridge circuit to turn on and off to generate a wave.
[0225] In a possible example, after determining whether the charge-discharge module is in a discharge state, the determining unit 1702 is further specifically configured to:
[0226] If it is determined that the charge and discharge module is in a discharge state, obtaining a first timing value of a discharge step timer;
[0227] If it is determined that the first timing value is equal to a third preset value, controlling the switch tube in the target full-bridge circuit to generate a pulse;
[0228] If it is determined that the first timing value is less than or equal to the charge and discharge step limit time, a second output result is determined, and a third output result is determined based on the first output result and the output increment step, where the second output result is the smaller output result of the output result of the voltage loop and the output result of the current loop at the current beat;
[0229] If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0230] If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop;
[0231] If it is determined that the first timing value is greater than the charge and discharge step limit time, the timing value of the discharge step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
[0232] In a possible example, after obtaining the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charge and discharge module, the control unit 1703 is specifically configured to:
[0233] Determining whether the target full-bridge circuit meets a charging state switching condition according to the DC bus voltage and the battery pack voltage;
[0234] If it is determined according to the DC bus voltage and the battery pack voltage that the target full-bridge circuit meets the charging state switching condition, then determining whether the charging and discharging module is in the charging state;
[0235] If it is determined that the charge and discharge module is not in a charging state, the operating mode of the charge and discharge module is assigned to a charging state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation transmission of the switch tube in the target full-bridge circuit is configured to be charging, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output increment step of the voltage loop and the current loop is assigned to a second preset value, and the charging step timer is assigned to the first preset value.
[0236] In a possible example, in 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 determining unit 1702 is specifically configured to:
[0237] Determining whether the DC bus voltage is greater than a preset DC bus undervoltage value;
[0238] If it is determined that the DC bus voltage is greater than the preset DC bus undervoltage value, determining whether the battery pack voltage is less than or equal to a preset battery pack overvoltage value;
[0239] If it is determined that the battery pack voltage is less than or equal to the preset battery pack overvoltage value, determining that the target full-bridge circuit meets the charging state switching condition;
[0240] If it is determined that the battery pack voltage is greater than the preset battery pack overvoltage value, determining that the target full-bridge circuit does not meet the charging state switching condition;
[0241] 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.
[0242] In a possible example, after determining whether the charging and discharging module is in a charging state, the control unit 1703 is specifically configured to:
[0243] If it is determined that the charging and discharging module is in a charging state, obtaining a second timing value of the charging step timer;
[0244] If it is determined that the second timing value is equal to the third preset value, controlling the switch tube in the target full-bridge circuit to generate a ripple;
[0245] If it is determined that the second timing value is less than or equal to the charge and discharge step limit time, determining whether the second output result is greater than the third output result;
[0246] If it is determined that the second output result is greater than the third output result, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result;
[0247] If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop;
[0248] If it is determined that the second timing value is greater than the charge and discharge step limit time, the timing value of the charging step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
[0249] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0250] The electronic device provided in this embodiment is used to execute the above-mentioned charge and discharge state switching control method, and thus can achieve the same effect as the above-mentioned implementation method.
[0251] When integrated, the electronic device may include a processing module, a storage module, and a communication module. The processing module may be used to control and manage the electronic device's operations. For example, it may be used to support the electronic device in executing the steps performed by the acquisition unit 1701, the judgment unit 1702, and the control unit 1703. The storage module may be used to support the electronic device in executing and storing program code and data. The communication module may be used to support communication between the electronic device and other devices.
[0252] The processing module can be a processor or controller. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. A processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a 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 that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.
[0253] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0254] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer includes a control platform.
[0255] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0256] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0257] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0258] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0259] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0260] If the above-mentioned 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, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program code.
[0261] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which may include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0262] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A charge and discharge state switching control method, characterized in that: A charging and discharging module is applied to a DC bus power supply system; the method includes: Obtaining a DC bus voltage of a target full-bridge circuit, a battery pack voltage, and a current operating mode of the charge and discharge module; Determining whether the target full-bridge circuit meets a discharge 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 discharge state switching condition according to the DC bus voltage and the battery pack voltage, then determining whether the charge and discharge module is in the discharge state; If it is determined that the charge and discharge module is not in a discharge state, the current operating mode of the charge and discharge module is assigned to a discharge state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation wave of the switch tube in the target full-bridge circuit is configured to discharge, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output increment step of the voltage loop and the output of the current loop are respectively assigned to a second preset value, and the discharge step timer is assigned to a 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; If it is determined that the charge and discharge module is in a discharge state, obtaining a first timing value of a discharge step timer; If it is determined that the first timing value is equal to a third preset value, controlling the switch tube in the target full-bridge circuit to generate a pulse; If it is determined that the first timing value is less than or equal to the charge and discharge step limit time, a second output result is determined, and a third output result is determined based on the first output result and the output increment step, where the second output result is the smaller output result of the output result of the voltage loop and the output result of the current loop at 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 as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result; If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop; If it is determined that the first timing value is greater than the charge and discharge step limit time, the timing value of the discharge step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
2. The method according to claim 1, characterized in that The determining whether the target full-bridge circuit meets the discharge state switching condition according to the DC bus voltage and the battery pack voltage includes: Determining 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, determining 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, determining 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, determining 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, it is determined that the target full-bridge circuit does not meet the discharge state switching condition.
3. The method according to claim 2, characterized in that After determining that the battery pack voltage is less than or equal to the preset battery pack undervoltage value, and determining that the target full-bridge circuit does not meet the discharge state switching condition, the method further includes: Assigning the current working mode of the charge and discharge module to a charge and discharge prohibited state; Control the switch tubes in the target full-bridge circuit to turn on and off to generate a wave.
4. The method according to claim 1, wherein After obtaining the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charge and discharge module, the method further includes: Determining whether the target full-bridge circuit meets a charging 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 charging state switching condition, then determining whether the charging and discharging module is in the charging state; If it is determined that the charge and discharge module is not in a charging state, the operating mode of the charge and discharge module is assigned to a charging state, the switch tube in the target full-bridge circuit is controlled to be blocked, the enhanced pulse width modulation transmission of the switch tube in the target full-bridge circuit is configured to be charging, the first output result is assigned to a first preset value, the output result of the previous beat of the current loop is assigned to a first preset value, the output result of the previous beat of the voltage loop is assigned to a first preset value, the output increment step of the voltage loop and the current loop is assigned to a second preset value, and the charging step timer is assigned to the first preset value.
5. The method according to claim 4, characterized in that The determining, based on the DC bus voltage and the battery pack voltage, whether the target full-bridge circuit meets the charging state switching condition includes: Determining 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, determining 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, determining 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, determining 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.
6. The method according to claim 4, characterized in that After determining whether the charge and discharge module is in a charging state, the method further includes: If it is determined that the charging and discharging module is in a charging state, obtaining a second timing value of the charging step timer; If it is determined that the second timing value is equal to the third preset value, controlling the switch tube in the target full-bridge circuit to generate a ripple; If it is determined that the second timing value is less than or equal to the charge and discharge step limit time, determining 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, the second output result is assigned as the third output result, the output result of the previous cycle of the current loop is assigned as the third output result, and the output result of the previous cycle of the voltage loop is assigned as the third output result; If it is determined that the second output result is less than or equal to the third output result, assigning the output result of the previous beat of the current loop as the output result of the current loop, and assigning the output result of the previous beat of the voltage loop as the output result of the current loop; If it is determined that the second timing value is greater than the charge and discharge step limit time, the timing value of the charging step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop as the current beat, 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.
7. A charge and discharge state switching control device, characterized in that: A charging and discharging module used in a DC bus power supply system; the charging and discharging state switching control device includes an acquisition unit, a judgment unit and a control unit; wherein, The acquisition unit is configured to acquire the DC bus voltage of the target full-bridge circuit, the battery pack voltage, and the current operating mode of the charge and discharge module; The judging unit is configured to judge whether the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage; The judging unit is further configured to judge whether the charging and discharging module is in a discharging state if it is judged that the target full-bridge circuit meets a discharge state switching condition according to the DC bus voltage and the battery pack voltage; The control unit is configured to, if it is determined that the charge-discharge module is not in a discharge state, assign the current operating mode of the charge-discharge module to a discharge state, control the switching tube in the target full-bridge circuit to be wave-sealed, configure the enhanced pulse width modulation wave of the switching 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, assign the output increment step of the voltage loop and the output of the current loop to a second preset value respectively, and assign the discharge step timer to the first preset value, wherein 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; The control unit is further configured to obtain a first timing value of a discharge step timer if it is determined that the charge and discharge module is in a discharge state; control the switch tube in the target full-bridge circuit to generate a pulse if it is determined that the first timing value is equal to a third preset value; determine a second output result if it is determined that the first timing value is less than or equal to the charge and discharge step limit time, and determine a third output result based on the first output result and the output incremental step, wherein the second output result is the smaller output result of the output result of the voltage loop and the output result of the current loop in the current cycle; and assign the second output result to the third output result if it is determined that the second output result is greater than the third output result, and assign the second output result to the output result of the previous cycle of the current loop. The result 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 judged 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 loop current beat, and the output result of the previous beat of the voltage loop is assigned to the output result of the current loop current beat; if it is judged that the first timing value is greater than the charge and discharge step limit time, the timing value of the discharge step timer is assigned to the charge and discharge step limit time, and the output result of the previous beat of the current loop is assigned to the output result of the current loop current beat, and the output result of the previous beat of the voltage loop is assigned to the output result of the voltage loop current beat.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the programs include instructions for executing the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.
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