Control method of charge and discharge mode, two-stage bidirectional converter and storage medium

By obtaining the voltage reference value of the bidirectional converter and processing the outer ring limiting output power, intelligent switching between the bidirectional AC/DC module and the bidirectional DC/DC module is realized, solving the poor real-time switching of the charge and discharge mode in the prior art and the control of the real-time switching of the charge and discharge mode in the prior art The complex logic problem improves the dynamics and switching smoothness of the two-stage bidirectional converter.

CN118473219BActive Publication Date: 2024-11-05XIAN MEGMEET ELECTRICAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410945059.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-05
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

The existing two-stage bidirectional converters have poor real-time performance during charging and discharging mode switching, making them unable to achieve seamless and smooth switching, and the specifications and parameters of different battery models are different, resulting in complex software control logic and a large resource occupancy.

Method used

By obtaining the voltage reference values ​​of the charging mode and discharging mode of the bidirectional converter, the bus voltage is processed separately, and the outer ring limiting output power is obtained. Based on these powers, the charging and discharging of the bidirectional AC/DC module and the bidirectional DC/DC module are carried out. Mode switching simplifies switching logic and improves dynamics.

Benefits of technology

It realizes the charging and discharging modes of intelligent switching of bidirectional AC/DC modules and bidirectional DC/DC modules, simplifies the charging and discharging switching logic, smoothly switches the charging and discharging modes, and improves the dynamics of the two-stage bidirectional converter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118473219B_ABST
    Figure CN118473219B_ABST
Patent Text Reader

Abstract

The present application discloses a control method for charge and discharge mode, a two-stage bidirectional converter and a storage medium. The control method includes: obtaining a first bus voltage given value of the charge mode and a second bus voltage given value of the discharge mode of the two-stage bidirectional converter; processing the first bus voltage given value and the second bus voltage given value respectively to obtain a first voltage outer loop limiting output power and a second voltage outer loop limiting output power; switching the charge and discharge mode of the bidirectional AC / DC module based on the first voltage outer loop limiting output power; switching the charge and discharge mode of the bidirectional DC / DC module based on the second voltage outer loop limiting output power. The control method for charge and discharge mode of the present application can use the voltage outer loop limiting output power to intelligently switch the charge and discharge mode, omitting the charge and discharge switching logic, simplifying the control logic of the charge and discharge switching, and making the charge and discharge mode switch smoothly, thereby improving the dynamics of the two-stage bidirectional converter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of charge and discharge mode control, and in particular to a charge and discharge mode control method, a two-stage bidirectional converter and a storage medium. Background Art

[0002] The two-stage bidirectional converter consists of a bidirectional AC / DC module and a bidirectional DC / DC module. The bidirectional DC / DC module often uses an isolation topology to isolate the bidirectional AC / DC module to meet product requirements. One side of the bidirectional DC / DC module is generally connected to the battery.

[0003] In the prior art, the switching control method of the charge and discharge mode of the two-stage bidirectional converter includes the following two methods. The first method is to determine the charge and discharge operation mode according to the user demand instruction. The real-time performance of this method is poor. When the battery input is abnormal, it is impossible to achieve seamless and smooth switching to the grid side input. The second method is to switch the battery charge and discharge mode by timely detecting the battery status in the bidirectional DC / DC module when the battery is in the discharge mode. For example, when the battery is discharged to the protection point (which may be undervoltage, etc.), it switches to the grid side input mode to charge the battery. However, this method requires real-time monitoring of the battery status. The specifications and parameters of batteries of different models are different. The software control logic is relatively complex and occupies more resources. Summary of the invention

[0004] The present application proposes a control method for a charge-discharge mode, a two-stage bidirectional converter and a storage medium, aiming to solve the above-mentioned problems.

[0005] To solve the above technical problems, a technical solution adopted in the present application is: to provide a control method for a charge and discharge mode, which is applied to a two-stage bidirectional converter, the two-stage bidirectional converter includes a bidirectional AC / DC module and a bidirectional DC / DC module, and the control method includes: obtaining a first bus voltage given value in a charging mode and a second bus voltage given value in a discharging mode of the two-stage bidirectional converter; processing the first bus voltage given value and the second bus voltage given value respectively to obtain a first voltage outer loop limited output power and a second voltage outer loop limited output power; switching the charge and discharge mode of the bidirectional AC / DC module based on the first voltage outer loop limited output power; switching the charge and discharge mode of the bidirectional DC / DC module based on the second voltage outer loop limited output power.

[0006] Among them, the steps of obtaining the first bus voltage given value in the charging mode and the second bus voltage given value in the discharging mode of the two-stage bidirectional converter include: obtaining the battery voltage and the preset voltage difference in the bidirectional DC / DC module; calculating the first bus voltage given value based on the battery voltage; calculating the sum of the first bus voltage given value and the preset voltage difference to obtain the second bus voltage given value.

[0007] Among them, the step of processing the first bus voltage set value to obtain the first voltage outer loop limited output power includes: obtaining the bus voltage feedback value in the bidirectional AC / DC module; calculating the first difference based on the first bus voltage set value and the bus voltage feedback value; performing proportional integral control on the first difference to obtain the first voltage outer loop output power value; and performing limiting processing on the first voltage outer loop output power value to obtain the first voltage outer loop limited output power.

[0008] Among them, the step of processing the second bus voltage set value to obtain the second voltage outer loop limited output power includes: obtaining the bus voltage feedback value in the bidirectional AC / DC module; calculating the second difference based on the second bus voltage set value and the bus voltage feedback value; performing proportional integral control on the second difference to obtain the second voltage outer loop output power value; and performing limiting processing on the second voltage outer loop output power value to obtain the second voltage outer loop limited output power.

[0009] Among them, before the step of switching the charging and discharging mode of the bidirectional AC / DC module based on the first voltage outer loop limiting output power, the control method also includes: judging whether the battery side of the two-stage bidirectional converter meets the discharge condition; in response to the battery side meeting the discharge condition, controlling the bidirectional DC / DC module to boost the voltage to the second bus voltage given value required for the inverter grid connection; in response to the battery side not meeting the discharge condition, judging whether the grid side of the two-stage bidirectional converter meets the charging condition; in response to the grid side meeting the charging condition, controlling the bidirectional AC / DC module to rectify so that the bus voltage of the bidirectional AC / DC module is maintained at the first bus voltage given value.

[0010] Among them, the step of switching the charging and discharging mode of the bidirectional AC / DC module based on the first voltage outer loop limiting output power includes: judging whether the first voltage outer loop limiting output power is negative saturation power within a preset duration; if so, switching the bidirectional AC / DC module to the discharging mode; if not, switching the bidirectional AC / DC module to the charging mode.

[0011] Among them, the step of switching the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limited output power includes: judging whether the second voltage outer loop limited output power is positive saturation power within a preset duration, and if so, switching the bidirectional DC / DC module to the charging mode; if not, switching the bidirectional DC / DC module to the discharging mode.

[0012] The control method further includes: in response to the bidirectional DC / DC module being in a charging mode, obtaining a charging current when the bidirectional DC / DC module charges the battery; determining whether the charging current is less than a preset current threshold; if the charging current is less than the preset current threshold, switching the bidirectional DC / DC module to a discharging mode; if the charging current is greater than or equal to the preset current threshold, maintaining the bidirectional DC / DC module in a charging mode.

[0013] In order to solve the above technical problems, another technical solution adopted in the present application is: providing a two-stage bidirectional converter, which includes a bidirectional DC / DC module, a bidirectional AC / DC module, an isolation transformer, a primary control module and a secondary control module, and the isolation transformer is arranged between the bidirectional DC / DC module and the bidirectional AC / DC module; the secondary control module is connected to the primary control module and the bidirectional DC / DC module, and is used to obtain the first bus voltage given value of the charging mode and the second bus voltage given value of the discharging mode of the two-stage bidirectional converter, and send the first bus voltage given value to the primary control module, and the secondary control module is also used to process the second bus voltage given value to obtain the second voltage outer loop limited output power, and switch the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limited output power; the primary control module is connected to the bidirectional AC / DC module, and is used to process the first bus voltage given value to obtain the first voltage outer loop limited output power, and switch the charging and discharging mode of the bidirectional AC / DC module based on the first voltage outer loop limited output power.

[0014] Among them, the primary side control module includes a first charging control module and a first discharging control module, the first charging control module includes a first bus voltage outer loop module and a rectifier current inner loop module, the first bus voltage outer loop module is used to process the first bus voltage given value to obtain the first voltage outer loop limited output power, the rectifier current inner loop module is used to control the bidirectional AC / DC module to perform rectification based on the first voltage outer loop limited output power, so that the bus voltage of the bidirectional AC / DC module is maintained at the first bus voltage given value; the first discharging control module is used to control the bidirectional AC / DC module to invert and connect to the grid based on the preset grid-connected power, so as to realize the transmission of electric energy to the power grid.

[0015] Among them, the secondary side control module includes a second charging control module and a second discharging control module. The second charging control module is used to reduce the voltage of the bidirectional DC / DC module based on a preset charging voltage and a preset charging current to realize charging of the battery; the second discharging control module includes a second bus voltage outer loop module and a current inner loop module. The second bus voltage outer loop module is used to process the second bus voltage given value to obtain the second voltage outer loop limited output power; the current inner loop module is used to boost the bidirectional DC / DC module based on the second voltage outer loop limited output power to boost the voltage to the second bus voltage given value required for inverter grid connection.

[0016] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a storage medium, which stores program instructions therein, and the program instructions are executed by a processor to implement any of the above-mentioned charge and discharge mode control methods.

[0017] The beneficial effects of the present application are as follows: Different from the prior art, the control method of the charge and discharge mode of the present application includes: obtaining the first bus voltage set value of the charging mode and the second bus voltage set value of the discharge mode of the two-stage bidirectional converter; processing the first bus voltage set value and the second bus voltage set value respectively to obtain the first voltage outer loop limited output power and the second voltage outer loop limited output power; switching the charge and discharge mode of the bidirectional AC / DC module based on the first voltage outer loop limited output power; switching the charge and discharge mode of the bidirectional DC / DC module based on the second voltage outer loop limited output power. Through the above manner, the control method of the charge and discharge mode of the present application can use the first voltage outer loop limited output power and the second voltage outer loop limited output power to intelligently switch the charge and discharge mode of the bidirectional AC / DC module and the bidirectional DC / DC module, omitting the charge and discharge switching logic, simplifying the control logic of the charge and discharge switching, and making the charge and discharge mode switch smoothly, thereby improving the dynamics of the two-stage bidirectional converter. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0019] Figure 1 It is a schematic diagram of the system structure of the two-stage bidirectional converter of the present application;

[0020] Figure 2 It is a flow chart of the first embodiment of the control method of the charge and discharge mode of the present application;

[0021] Figure 3 yes Figure 2 A schematic diagram of a flow chart of an embodiment of step S101;

[0022] Figure 4 yes Figure 2 Schematic diagram of the process of the first embodiment of step S102;

[0023] Figure 5 yes Figure 2 A schematic diagram of the flow chart of the second embodiment of step S102;

[0024] Figure 6 It is a flow chart of the second embodiment of the control method of the charge and discharge mode of the present application;

[0025] Figure 7 yes Figure 2 A schematic diagram of a flow chart of an embodiment of step S103;

[0026] Figure 8 yes Figure 2 A schematic diagram of a flow chart of an embodiment of step S104;

[0027] Fig. 9 It is a flow chart of the third embodiment of the control method of the charge and discharge mode of the present application;

[0028] Fig.10 It is a structural diagram of an embodiment of a primary side control module of the present application;

[0029] Fig.11 It is a structural diagram of an embodiment of a secondary side control module of the present application;

[0030] Fig.12 It is a structural diagram of an embodiment of a storage medium of the present application. DETAILED DESCRIPTION

[0031] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0033] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0035] The two-stage bidirectional converter consists of a bidirectional AC / DC module and a bidirectional DC / DC module. The bidirectional DC / DC module often uses an isolation topology to isolate the bidirectional AC / DC module to meet product requirements. One side of the bidirectional DC / DC module is generally connected to the battery.

[0036] See also Figure 1 , Figure 1 Schematic diagram of the system structure of the two-stage bidirectional converter of the present application. Figure 1 As shown, the two-stage bidirectional converter 100 includes a bidirectional AC / DC module 10, a bidirectional DC / DC module 20, an isolation transformer 30, a primary control module 40 and a secondary control module 50, wherein the bidirectional AC / DC module 10 includes an AC mains GRID and a bus capacitor BUS, and the bidirectional DC / DC module 20 includes a battery BAT. Figure 1 As shown, the two-stage bidirectional converter 100 further includes a PWM drive circuit and an ADC sampling circuit. The primary side control module 40 and the secondary side control module 50 are respectively connected to the bidirectional AC / DC module 10 and the bidirectional DC / DC module 20 through the PWM drive circuit and the ADC sampling circuit to respectively realize control of the two.

[0037] like Figure 1 As shown, the two-stage bidirectional converter 100 adopts a circuit topology with bidirectional energy flow, and the energy of the two ports of the AC mains GRID and the battery BAT can flow in both directions, so it has the functions of AC input and DC output, DC input and inverter grid-connected output, etc. When the two-stage bidirectional converter 100 is working in the forward direction, that is, when converting AC to DC, it takes power from the AC mains GRID, first rectifies through the bidirectional AC / DC module 10 to achieve functions such as stable and adjustable bus voltage and power factor correction; then steps down through the bidirectional DC / DC module 20 to achieve functions such as stable and adjustable DC output voltage and output current. When the two-stage bidirectional converter 100 is working in the reverse direction, that is, when converting DC to AC, it takes power from the battery BAT, first steps up through the bidirectional DC / DC module 20 to step up to the bus voltage required for inverter grid connection, and then steps up through the bidirectional AC / DC module 10 for inverter grid connection to achieve power transmission to the grid.

[0038] In the prior art, in order to facilitate system analysis and design, the isolation transformer 30 is often used as the dividing line, the AC mains GRID is called the primary side, and the battery side is called the secondary side. Therefore, according to the above division, the bus capacitor BUS is on the primary side, and the battery BAT is on the secondary side. In the prior art, the sampling of the bus capacitor BUS is usually performed by the primary side control module 40 of the primary side through the ADC sampling circuit, and the sampling of the battery BAT is usually performed by the secondary side control module 50 of the secondary side through the ADC sampling circuit.

[0039] However, in the prior art, Figure 1 The switching control method of the charge and discharge mode of the two-stage bidirectional converter 100 shown is generally the following two methods. The first method is to determine the charge and discharge operation mode according to the user demand instruction. This method has poor real-time performance. When the battery BAT input is abnormal, it is impossible to achieve seamless and smooth switching to the grid-side input. The second method is to switch the battery charge and discharge mode by timely detecting the state of the battery BAT in the bidirectional DC / DC module 20 when the battery is in the discharge mode. For example, when the battery BAT is discharged to the protection point (which may be undervoltage, etc.), it is switched to the grid-side input mode to charge the battery BAT. However, this method requires real-time monitoring of the state of the battery BAT. Different models of batteries have different specification parameters. The software control logic is relatively complex and occupies more resources.

[0040] In order to solve the above problems, this application first proposes a control method for charge and discharge mode. Figure 2 , Figure 2 : is a flow chart of the first embodiment of the control method of the charge and discharge mode of the present application. Figure 2 As shown, the control method of the charge and discharge mode of this embodiment specifically includes steps S101 to S104:

[0041] Step S101: obtaining a first bus voltage setting value in a charging mode and a second bus voltage setting value in a discharging mode of a two-stage bidirectional converter.

[0042] In this embodiment, this embodiment first needs to obtain the first bus voltage given value of the charging mode and the second bus voltage given value of the discharging mode of the two-stage bidirectional converter, wherein the first bus voltage given value of the charging mode is obtained by calculating the battery voltage sampled by the secondary control module through a preset formula, and the second bus voltage given value of the discharging mode is obtained by summing the first bus voltage given value and the preset voltage difference. In this embodiment, the second bus voltage given value is greater than the first bus voltage given value, and the preset voltage difference can be considered as half of the peak-to-peak value of the bus voltage when the charging mode output is fully loaded, leaving 5V reserved. In other embodiments, it can also be a margin of about 20V, which is not limited here.

[0043] Step S102: respectively process the first bus voltage given value and the second bus voltage given value to obtain the first voltage outer loop limited output power and the second voltage outer loop limited output power.

[0044] As mentioned above, the battery voltage is usually sampled and obtained by the secondary side control module of the two-stage bidirectional converter through the ADC sampling circuit. Therefore, in this embodiment, after the secondary side control module samples the battery voltage and calculates and obtains the first bus voltage set value based on the battery voltage, the first bus voltage set value can be sent to the primary side control module of the two-stage bidirectional converter through internal communication, and the secondary side control module can calculate and obtain the second bus voltage set value based on the first bus voltage set value and the preset voltage difference.

[0045] At this time, the primary control module and the secondary control module can respectively process the first bus voltage set value and the second bus voltage set value to obtain the first voltage outer loop limited output power and the second voltage outer loop limited output power respectively. The specific processing method is described below and will not be described in detail here.

[0046] Step S103: switching the charging and discharging mode of the bidirectional AC / DC module based on the output power limited by the first voltage outer loop.

[0047] After the primary control module processes the first bus voltage given value and obtains the first voltage outer loop limited output power, the primary control module can switch the charging and discharging mode of the bidirectional AC / DC module based on the first voltage outer loop limited output power. For example, if the first voltage outer loop limited output power is continuously in a power negative saturation state within a preset time, the primary control module can switch the bidirectional AC / DC module to the discharging mode, otherwise it is maintained in the charging mode.

[0048] Step S104: switching the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limiting output power.

[0049] After the secondary control module processes the second bus voltage given value and obtains the second voltage outer loop limited output power, the secondary control module can switch the charging and discharging mode of the bidirectional AC / DC module based on the second voltage outer loop limited output power. For example, if the second voltage outer loop limited output power is continuously in a power positive saturation state within a preset time, the secondary control module can switch the bidirectional DC / DC module to the charging mode, otherwise it is maintained in the discharging mode.

[0050] Different from the prior art, the control method of the charge and discharge mode of the present application includes: obtaining the first bus voltage set value of the charging mode and the second bus voltage set value of the discharge mode of the two-stage bidirectional converter; processing the first bus voltage set value and the second bus voltage set value respectively to obtain the first voltage outer loop limited output power and the second voltage outer loop limited output power; switching the charge and discharge mode of the bidirectional AC / DC module based on the first voltage outer loop limited output power; switching the charge and discharge mode of the bidirectional DC / DC module based on the second voltage outer loop limited output power. Through the above manner, the control method of the charge and discharge mode of the present application can use the first voltage outer loop limited output power and the second voltage outer loop limited output power to intelligently switch the charge and discharge mode of the bidirectional AC / DC module and the bidirectional DC / DC module, omitting the charge and discharge switching logic, simplifying the control logic of the charge and discharge switching, and making the charge and discharge mode switch smoothly, thereby improving the dynamics of the two-stage bidirectional converter.

[0051] Optionally, a method for obtaining a first bus voltage given value in a charging mode and a second bus voltage given value in a discharging mode of a two-stage bidirectional converter is as follows: Figure 3 See Figure 3 , Figure 3 yes Figure 2 Schematic diagram of the process of step S101 in an embodiment. This embodiment can be performed as follows Figure 3 The method shown implements step S101, and the specific implementation steps include steps S201 to S203:

[0052] Step S201: obtaining a battery voltage and a preset voltage difference in a bidirectional DC / DC module.

[0053] In this embodiment, the two-stage bidirectional converter first samples the battery voltage in the bidirectional DC / DC module through the secondary side control module, and obtains a preset voltage difference. As described above, the preset voltage difference in this embodiment can be half of the peak-to-peak value of the bus voltage when the charging mode output is fully loaded, leaving a margin of about 5V. In this embodiment, the value can be 20V. In other embodiments, the preset voltage difference can be set based on actual conditions and is not limited here.

[0054] Step S202: Calculate a first bus voltage set value based on the battery voltage.

[0055] After obtaining the battery voltage, the first bus voltage given value can be calculated using formula (1), where formula (1) is as follows:

[0056] = + (1)

[0057] in, It is expressed as the given value of the first bus voltage; Expressed as battery voltage, is the conversion coefficient, which is related to the output voltage range and efficiency of the bidirectional DC / DC module.

[0058] Step S203: Calculate the sum of the first bus voltage set value and the preset voltage difference to obtain the second bus voltage set value.

[0059] After obtaining the first bus voltage given value and the preset voltage difference, the secondary control module can calculate the sum of the first bus voltage given value and the preset voltage difference based on formula (2) to obtain the second bus voltage given value, wherein formula (2) is as follows:

[0060] = +Δ(2)

[0061] in, It is expressed as the given value of the first bus voltage, It is represented as the given value of the second bus voltage; Δ is represented as the preset voltage difference.

[0062] Optionally, the method for processing the first bus voltage given value to obtain the first voltage outer loop limited output power is as follows: Figure 4 See Figure 4 , Figure 4 yes Figure 2 Schematic diagram of the flow chart of the first embodiment of step S102 in FIG. Figure 4 The method shown implements the step of obtaining the first voltage outer loop limited output power in step S102, and the specific implementation steps include steps S301 to S304:

[0063] Step S301: Obtain a bus voltage feedback value in a bidirectional AC / DC module.

[0064] When the secondary control module sets the first bus voltage to a given value After being sent to the primary control module through internal communication, the primary control module obtains the given value of the first bus voltage. After that, the ADC sampling circuit described above can be used to sample the bus voltage feedback value in the bidirectional AC / DC module. .

[0065] Step S302: Calculate a first difference based on a first bus voltage set value and a bus voltage feedback value.

[0066] Getting bus voltage feedback value After that, the first bus voltage set value can be calculated And bus voltage feedback value The first difference between .

[0067] Step S303: performing proportional-integral control on the first difference to obtain a first voltage outer loop output power value.

[0068] At this time, the primary control module can Perform digital proportional integral control to obtain the output power value of the first voltage outer loop .

[0069] Step S304: performing a limiting process on the first voltage outer loop output power value to obtain the first voltage outer loop limited output power.

[0070] The primary control module obtains the output power value of the first voltage outer loop After that, the limiting processing is performed on it, and the first voltage outer loop limiting output power can be obtained. .

[0071] Among them, during the limiting process, the minimum power value of the limited output is generally selected to be about 50W less than the no-load power, and the design range of the maximum power value of the limited output needs to consider the maximum charging output power and leave a 5% margin.

[0072] Optionally, the second bus voltage given value is processed to obtain the second voltage outer loop limited output power method as follows: Figure 5 See Figure 5 , Figure 5 yes Figure 2 102 in the second embodiment of the process flow diagram. This embodiment can be Figure 5 The method shown implements the step of obtaining the second voltage outer loop limited output power in step S102, and the specific implementation steps include steps S401 to S404:

[0073] Step S401: Obtain a bus voltage feedback value in a bidirectional AC / DC module.

[0074] When the secondary control module is based on the first bus voltage given value Calculate and obtain the second bus voltage given value After that, the primary control module can feedback the bus voltage value After modulation by PWM drive circuit, it is isolated and sent to the secondary control module, which then demodulates it to obtain the bus voltage feedback value in the bidirectional AC / DC module. In other embodiments, the secondary control module can also be isolated to sample the bus voltage of the bidirectional AC / DC module to obtain the bus voltage feedback value. .

[0075] Step S402: Calculate a second difference based on the second bus voltage set value and the bus voltage feedback value.

[0076] At this time, the secondary control module can calculate the second bus voltage set value And bus voltage feedback value The second difference between .

[0077] Step S403: performing proportional-integral control on the second difference to obtain a second voltage outer loop output power value.

[0078] Getting the second difference , the secondary control module can Perform digital proportional integral control to obtain the output power value of the second voltage outer loop .

[0079] Step S404: performing a limiting process on the second voltage outer loop output power value to obtain the second voltage outer loop limited output power.

[0080] The secondary side control module obtains the output power value of the second voltage outer loop After that, the second voltage outer loop limiting output power can be obtained by limiting it. .

[0081] Among them, in this embodiment, during the limiting process, the minimum power value of the limited output is generally selected to be about 50W less than the no-load power, and the design range of the maximum power value of the limited output also needs to consider the maximum charging output power and leave a 5% margin.

[0082] Optionally, the present application further proposes a control method for a charge and discharge mode, see Figure 6 , Figure 6 : is a flow chart of the second embodiment of the control method of the charge and discharge mode of the present application. Figure 6 As shown, the control method of the charge and discharge mode of this embodiment specifically includes steps S501 to S508:

[0083] Step S501: obtaining a first bus voltage reference value in a charging mode and a second bus voltage reference value in a discharging mode of a two-stage bidirectional converter.

[0084] Step S501 is the same as step S101 and will not be described in detail.

[0085] Step S502: respectively process the first bus voltage given value and the second bus voltage given value to obtain the first voltage outer loop limited output power and the second voltage outer loop limited output power.

[0086] Step S502 is the same as step S102 and will not be described again.

[0087] Step S503: Determine whether the battery side of the two-stage bidirectional converter meets the discharge condition.

[0088] As mentioned above, when obtaining the first voltage outer loop limiting output power And the second voltage outer loop limits the output power After that, it is necessary to judge the battery on the battery side of the two-stage bidirectional converter to determine whether the battery meets the discharge condition. In this embodiment, the discharge condition includes but is not limited to voltage and temperature, etc. In response to the voltage and temperature of the battery meeting the voltage and temperature required for discharge, it is determined that the battery side meets the discharge condition; in response to the voltage and temperature of the battery not meeting the voltage and temperature required for discharge, it is determined that the battery side does not meet the discharge condition.

[0089] If the battery side meets the discharge condition, go to step S504; if the battery side does not meet the discharge condition, go to step S505.

[0090] Step S504: controlling the bidirectional DC / DC module to boost the voltage to a second bus voltage set value required for inverter grid connection.

[0091] If the battery side meets the discharge conditions, the secondary control module can control the bidirectional DC / DC module to boost the voltage to the second bus voltage set value required for inverter grid connection. , and then connected to the grid through the inverter of the previous bidirectional AC / DC module, thereby realizing the transmission of electric energy to the grid side of the two-stage bidirectional converter.

[0092] Step S505: Determine whether the grid side of the two-stage bidirectional converter meets the charging condition.

[0093] If the battery side does not meet the discharge condition, it is necessary to determine whether the grid side of the two-stage bidirectional converter meets the charging condition. In this embodiment, determining whether the grid side meets the charging condition is to determine whether the grid side input is normal. If the grid side output is normal, it is determined that the grid side meets the charging condition. If the input is abnormal, it is determined that the grid side does not meet the charging condition.

[0094] If the grid side meets the charging conditions, go to step S506.

[0095] Step S506: controlling the bidirectional AC / DC module to perform rectification so that the bus voltage of the bidirectional AC / DC module is maintained at a first bus voltage given value.

[0096] When the grid side meets the charging conditions, the primary control module can control the bidirectional AC / DC module to work and rectify the AC mains GRID to maintain the bus voltage of the bidirectional AC / DC module at the first bus voltage set value. .

[0097] Step S507: switching the charging and discharging mode of the bidirectional AC / DC module based on the output power limited by the first voltage outer loop.

[0098] Step S507 is consistent with step S103 and will not be described again.

[0099] Step S508: switching the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limiting output power.

[0100] Step S508 is consistent with step S104 and will not be described again.

[0101] Optionally, based on the above embodiment, in this embodiment, the method for switching the charging and discharging mode of the bidirectional AC / DC module based on the output power of the first voltage outer loop limiting is as follows: Figure 7 As shown, see 7, Figure 7 yes Figure 2 Schematic diagram of the process of step S103 in an embodiment. This embodiment can be performed as follows Figure 7 The method shown implements step S103, and the specific implementation steps include steps S601 to S603:

[0102] Step S601: determining whether the output power of the first voltage outer loop limiting is negative saturation power within a preset duration.

[0103] As mentioned above, when the primary control module sets the first bus voltage to a given value Processing to obtain the first voltage outer loop limiting output power At this time, the primary control module can limit the output power of the first voltage outer loop Monitor and determine the output power of the first voltage outer loop limit Whether the saturation power is negative within the preset duration, that is, judging the output power of the first voltage outer loop limit Whether the power of the limited output is the minimum value as described above during the preset duration. In this embodiment, the preset duration can be set to 1ms. In other embodiments, the preset duration can be set based on actual conditions and is not limited here.

[0104] If the first voltage outer loop limits the output power The saturation power is negative during the preset duration, then go to step S602; if the first voltage outer loop limits the output power If the saturation power is not negative all the time within the preset duration, the process goes to step S603.

[0105] Step S602: Switch the bidirectional AC / DC module to a discharge mode.

[0106] If the first voltage outer loop limits the output power The saturation power is negative during the preset duration. At this time, the primary side control module can switch the bidirectional AC / DC module to the discharge mode.

[0107] Step S603: Switch the bidirectional AC / DC module to a charging mode.

[0108] If the first voltage outer loop limits the output power If the saturated power is not negative all the time within the preset duration, the primary side control module may switch the bidirectional AC / DC module to a charging mode.

[0109] Optionally, based on the above embodiment, in this embodiment, the method for switching the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limiting output power is as follows: Figure 8 See Figure 8 , Figure 8 yes Figure 2 Schematic diagram of the process of step S104 in an embodiment. This embodiment can be performed as follows Figure 8 The method shown implements step S104, and the specific implementation steps include steps S701 to S703:

[0110] Step S701: determine whether the second voltage outer loop limiting output power is positive saturation power within a preset duration.

[0111] As mentioned above, when the secondary control module sets the second bus voltage to a given value Processing to obtain the second voltage outer loop limiting output power At this time, the secondary control module can limit the output power of the second voltage outer loop Monitor and determine the output power of the second voltage outer loop limit Whether the saturated power is positive within the preset duration, that is, judging the second voltage outer loop limiting output power Whether the power of the amplitude limiting output is the maximum value as described above during the preset duration. In this embodiment, the preset duration can be set to 1ms. In other embodiments, the preset duration can be set based on actual conditions and is not limited here.

[0112] If the second voltage outer loop limited output power is positive saturation power within the preset duration, go to step S702; if the second voltage outer loop limited output power is not positive saturation power within the preset duration, go to step S703.

[0113] Step S702: Switch the bidirectional DC / DC module to a charging mode.

[0114] If the second voltage outer loop limits the output power The power is positive saturated for a preset duration. At this time, the secondary side control module can switch the bidirectional DC / DC module to a charging mode.

[0115] Step S703: Switch the bidirectional DC / DC module to a discharge mode.

[0116] If the second voltage outer loop limits the output power If the positive saturation power is not uniform within the preset duration, the secondary side control module may switch the bidirectional DC / DC module to a discharge mode.

[0117] Optionally, based on Figure 8 For an example, see Fig. 9 , Fig. 9 1 is a flow chart of the third embodiment of the control method of the charge and discharge mode of the present application. Fig. 9 As shown, the control method of the charge and discharge mode of this embodiment further includes steps S801 to S804:

[0118] Step S801: In response to the bidirectional DC / DC module being in a charging mode, obtaining a charging current when the bidirectional DC / DC module is charging a battery.

[0119] When the secondary side control module controls the bidirectional DC / DC module to be in the charging mode, the secondary side control module can obtain the charging current when the bidirectional DC / DC module charges the battery in real time.

[0120] Step S802: Determine whether the charging current is less than a preset current threshold.

[0121] The secondary side control module may compare the charging current acquired in real time with a preset current threshold. If the charging current is less than the preset current threshold, the process proceeds to step S803 ; if the charging current is greater than or equal to the preset current threshold, the process proceeds to step S804 .

[0122] In this embodiment, the preset current threshold may be set to 0.5 A. In other embodiments, the preset current threshold may be set based on actual conditions and is not limited here.

[0123] Step S803: Switch the bidirectional DC / DC module to a discharge mode.

[0124] That is, in this embodiment, when the secondary side control module detects that the charging current is less than the preset current threshold, it means that the battery in the bidirectional DC / DC module is fully charged, and the bidirectional DC / DC module can be switched to the discharge mode.

[0125] Step S804: Maintain the bidirectional DC / DC module in the charging mode.

[0126] That is, in this embodiment, when the secondary control module detects that the charging current is greater than or equal to the preset current threshold, it means that the battery in the bidirectional DC / DC module is not fully charged. At this time, the bidirectional DC / DC module can be maintained in the charging mode.

[0127] Optionally, the present application further proposes a two-stage bidirectional converter. Figure 1 As shown, the two-stage bidirectional converter 100 of this embodiment includes a bidirectional DC / DC module 20 , a bidirectional AC / DC module 10 , an isolation transformer 30 , a primary-side control module 40 and a secondary-side control module 50 .

[0128] Among them, the isolation transformer 30 is arranged between the bidirectional DC / DC module 20 and the bidirectional AC / DC module 10; the secondary control module 50 is connected to the primary control module 40 and the bidirectional DC / DC module 20, and is used to obtain the first bus voltage given value of the charging mode and the second bus voltage given value of the discharging mode of the two-stage bidirectional converter 100, and send the first bus voltage given value to the primary control module 40, and the secondary control module 50 is also used to process the second bus voltage given value to obtain the second voltage outer loop limited output power, and switch the charging and discharging mode of the bidirectional DC / DC module 20 based on the second voltage outer loop limited output power; the primary control module 40 is connected to the bidirectional AC / DC module 10, and is used to process the first bus voltage given value to obtain the first voltage outer loop limited output power, and switch the charging and discharging mode of the bidirectional AC / DC module 10 based on the first voltage outer loop limited output power.

[0129] Optionally, see Fig.10 , Fig.10 Schematic diagram of the structure of an embodiment of the primary side control module of the present application. Fig.10 As shown, the primary side control module 40 of this embodiment includes a first charging control module 41 and a first discharging control module 42 .

[0130] Among them, the first charging control module 41 includes a first bus voltage outer loop module 411 and a rectifier current inner loop module 412. The first bus voltage outer loop module 411 is used to process the first bus voltage given value to obtain the first voltage outer loop limited output power, and the rectifier current inner loop module 412 is used to control the bidirectional AC / DC module to perform rectification based on the first voltage outer loop limited output power, so that the bus voltage of the bidirectional AC / DC module is maintained at the first bus voltage given value; the first discharge control module 42 is used to control the bidirectional AC / DC module to be inverter-connected to the grid based on the preset grid-connected power, so as to realize the transmission of electric energy to the power grid.

[0131] Specifically, Fig.10 As shown, Fig.10 In the first bus voltage outer loop module 411 is the bus voltage feedback value, which is obtained by sampling the primary control module 40. is the first bus voltage given value mentioned above; The first bus voltage given value And bus voltage feedback value The first difference between The first difference The first voltage outer loop output power value is obtained by performing digital proportional integral control, The output power value of the first voltage outer loop The first voltage outer loop limiting output power obtained after limiting processing; wherein, Fig.10 In G vbuschg (s) G Igrect (s) and G Iginv (s) is PI proportional integral control, all of which are preset transfer functions; P set is the preset grid-connected power; U g Sampling the grid voltage on the grid side; I grect , I ginv They are grid rectifier current and inverter grid-connected current respectively; U gRms is the effective value of the grid input voltage, L g and R g yes Figure 1 The inductive reactance and impedance of the inductor in the bidirectional AC / DC module 10 are shown.

[0132] Optionally, see Fig.11 , Fig.11 Schematic diagram of the structure of an embodiment of the secondary side control module of the present application. Fig.11As shown, the secondary side control module 50 of this embodiment includes a second charging control module 51 and a second discharging control module 52 .

[0133] Among them, the second charging control module 51 is used to reduce the voltage of the bidirectional DC / DC module based on the preset charging voltage and the preset charging current to realize charging of the battery; the second discharging control module 52 includes a second bus voltage outer loop module 521 and a current inner loop module 522, the second bus voltage outer loop module 521 is used to process the second bus voltage given value to obtain the second voltage outer loop limited output power; the current inner loop module 522 is used to boost the bidirectional DC / DC module based on the second voltage outer loop limited output power to boost the voltage to the second bus voltage given value required for the inverter grid.

[0134] In addition, in this embodiment, Fig.11 As shown, the second charging control module 51 realizes voltage reduction of the bidirectional DC / DC module through voltage loop PI control and current loop PI control according to the preset charging voltage and the preset charging current set by the user, thereby realizing charging of the battery.

[0135] Specifically, Fig.11 As shown, Fig.11 G vbusdischg (s)G Ibatdischg (s)G Vbatchg (s) and G Ibatchg (s) is PI proportional integral control, all of which are preset transfer functions; V bat is the battery voltage, Ibat chg is the charging current in charging mode, Vbat setchg , Ibat setchg They are respectively the preset charging voltage and the preset charging current in the charging mode.

[0136] Fig.11 In the second discharge control module 52 is the bus voltage feedback value, is the second bus voltage given value mentioned above; The second bus voltage set value And bus voltage feedback value The second difference between The second difference The second voltage outer loop output power value is obtained by performing digital proportional integral control, The output power value of the second voltage outer loop The second voltage outer loop limiting output power obtained after limiting processing;V bat is the battery voltage, Ibat dischg is the discharge current in discharge mode; Ibat dischgref for Divide by the battery voltage V bat The second voltage outer loop output current value is obtained later.

[0137] Optionally, the present application further proposes a storage medium. Fig.12 , Fig.12 It is a structural diagram of an embodiment of a storage medium of the present application.

[0138] The storage medium 300 of the embodiment of the present application stores program instructions 310 therein, and the program instructions 310 are executed by a processor to implement any of the above-mentioned control methods for the charge and discharge modes.

[0139] Among them, the program instructions 310 can form a program file and be stored in the above-mentioned storage medium in the form of a software product, so that a controller executes all or part of the steps of the methods of various embodiments of the present application. Among them, the controller can be a control chip such as a digital signal processing control chip (Digital Signal Process, DSP) or an ARM (Advanced RISC Machine, ARM) control chip, and the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or terminal devices such as computers, servers, mobile phones, tablets, etc.

[0140] The storage medium 300 of this embodiment can be but is not limited to a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy drive, a flash memory, a multimedia memory card, a server, etc.

[0141] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a storage medium. A processor of an electronic device reads the computer instructions from the storage medium, and the processor executes the computer instructions, so that the electronic device performs the steps in the above-mentioned method embodiments.

[0142] In addition, if the above functions are implemented in the form of software functions and sold or used as independent products, they can be stored in a storage medium readable by a mobile terminal, that is, the present application also provides a storage device storing program data, and the program data can be executed by a processor to implement the method of the above embodiment. The storage device can be, for example, a USB flash drive, an optical disk, a server, etc. In other words, the present application can be embodied in the form of a software product, which includes a number of instructions for enabling an intelligent terminal to execute all or part of the steps of the methods of each embodiment.

[0143] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0144] Any process or method description in a flowchart or otherwise described herein may be understood to represent a mechanism, segment or portion of a code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0145] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (which can be a personal computer, server, network device or other system that can fetch instructions from the instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0146] The above are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for controlling a charge and discharge mode, characterized in that: Applied to a two-stage bidirectional converter, the two-stage bidirectional converter includes a bidirectional AC / DC module and a bidirectional DC / DC module, and the control method includes: Obtaining a first bus voltage given value in a charging mode and a second bus voltage given value in a discharging mode of the two-stage bidirectional converter; The first bus voltage given value and the second bus voltage given value are processed respectively to obtain a first voltage outer loop limited output power and a second voltage outer loop limited output power; Switching the charging and discharging mode of the bidirectional AC / DC module based on the output power limited by the first voltage outer loop; Switching the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limiting output power; The step of obtaining a first bus voltage given value in a charging mode and a second bus voltage given value in a discharging mode of the two-stage bidirectional converter includes: obtaining a battery voltage and a preset voltage difference in the bidirectional DC / DC module; calculating the first bus voltage given value based on the battery voltage; and calculating the sum of the first bus voltage given value and the preset voltage difference to obtain the second bus voltage given value.

2. The control method according to claim 1, characterized in that: The step of processing the first bus voltage given value to obtain the first voltage outer loop limited output power comprises: Obtaining a bus voltage feedback value in the bidirectional AC / DC module; Calculating a first difference based on the first bus voltage set value and the bus voltage feedback value; Performing proportional-integral control on the first difference to obtain the output power value of the first voltage outer loop; The first voltage outer loop output power value is limited to obtain the first voltage outer loop limited output power.

3. The control method according to claim 2, characterized in that: The step of processing the second bus voltage given value to obtain the second voltage outer loop limited output power comprises: Obtaining a bus voltage feedback value in the bidirectional AC / DC module; Calculating a second difference based on the second bus voltage set value and the bus voltage feedback value; Performing proportional-integral control on the second difference to obtain the second voltage outer loop output power value; The second voltage outer loop output power value is limited to obtain the second voltage outer loop limited output power.

4. The control method according to claim 1, characterized in that: Before the step of switching the charging and discharging mode of the bidirectional AC / DC module based on the output power of the first voltage outer loop limiting, the control method further includes: Determining whether the battery side of the two-stage bidirectional converter meets the discharge condition; In response to the battery side satisfying the discharge condition, controlling the bidirectional DC / DC module to boost the voltage to the second bus voltage set value required for inverter grid connection; In response to the battery side not satisfying the discharge condition, determining whether the grid side of the two-stage bidirectional converter satisfies the charge condition; In response to the grid side satisfying the charging condition, the bidirectional AC / DC module is controlled to perform rectification so that the bus voltage of the bidirectional AC / DC module is maintained at the first bus voltage given value.

5. The control method according to claim 1, characterized in that: The step of switching the charging and discharging mode of the bidirectional AC / DC module based on the output power of the first voltage outer loop limiting comprises: Determining whether the output power of the first voltage outer loop limiting is negative saturation power within a preset duration; If yes, switching the bidirectional AC / DC module to a discharge mode; If not, the bidirectional AC / DC module is switched to a charging mode.

6. The control method according to claim 1, characterized in that: The step of switching the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limiting output power includes: Determine whether the second voltage outer loop limiting output power is positive saturation power within a preset duration, If yes, switching the bidirectional DC / DC module to charging mode; If not, the bidirectional DC / DC module is switched to a discharge mode.

7. The control method according to claim 6, characterized in that: The control method further comprises: In response to the bidirectional DC / DC module being in the charging mode, obtaining a charging current when the bidirectional DC / DC module charges a battery; Determining whether the charging current is less than a preset current threshold; If the current is less than the preset current threshold, the bidirectional DC / DC module is switched to the discharge mode; If the current is greater than or equal to the preset current threshold, the bidirectional DC / DC module is maintained in the charging mode.

8. A two-stage bidirectional converter, characterized in that: It comprises a bidirectional DC / DC module, a bidirectional AC / DC module, an isolation transformer, a primary control module and a secondary control module, wherein the isolation transformer is arranged between the bidirectional DC / DC module and the bidirectional AC / DC module; the secondary control module is connected with the primary control module and the bidirectional DC / DC module, and is used to obtain a first bus voltage given value in a charging mode and a second bus voltage given value in a discharging mode of the two-stage bidirectional converter, and send the first bus voltage given value to the primary control module; the secondary control module is also used to process the second bus voltage given value to obtain a second voltage outer loop limited output power, and switch the charging and discharging mode of the bidirectional DC / DC module based on the second voltage outer loop limited output power; The primary side control module is connected to the bidirectional AC / DC module, and is used to process the first bus voltage set value to obtain the first voltage outer loop limited output power, and switch the charging and discharging mode of the bidirectional AC / DC module based on the first voltage outer loop limited output power; wherein the secondary side control module is also used to obtain the battery voltage and the preset voltage difference in the bidirectional DC / DC module; calculate the first bus voltage set value based on the battery voltage; calculate the sum of the first bus voltage set value and the preset voltage difference to obtain the second bus voltage set value.

9. The two-stage bidirectional converter according to claim 8, characterized in that: The primary side control module comprises: a first charging control module, the first charging control module comprising a first bus voltage outer loop module and a rectifier current inner loop module, the first bus voltage outer loop module being used to process the first bus voltage given value to obtain a first voltage outer loop limited output power, the rectifier current inner loop module being used to control the bidirectional AC / DC module to perform rectification based on the first voltage outer loop limited output power, so that the bus voltage of the bidirectional AC / DC module is maintained at the first bus voltage given value; The first discharge control module is used to control the bidirectional AC / DC module to be inverter-connected to the grid based on a preset grid-connected power, so as to transmit electric energy to the grid.

10. The two-stage bidirectional converter according to claim 8, characterized in that: The secondary side control module comprises: a second charging control module, configured to reduce the voltage of the bidirectional DC / DC module based on a preset charging voltage and a preset charging current, so as to charge the battery; The second discharge control module includes a second bus voltage outer loop module and a current inner loop module. The second bus voltage outer loop module is used to process the second bus voltage given value to obtain the second voltage outer loop limited output power; the current inner loop module is used to boost the bidirectional DC / DC module based on the second voltage outer loop limited output power to boost the voltage to the second bus voltage given value required for inverter grid connection.

11. A storage medium, characterized in that: Program instructions are stored therein, and the program instructions are executed to implement the control method of the charge and discharge mode according to any one of claims 1 to 7.