Inverter program online upgrading architecture and method

By using an online inverter program upgrade architecture and leveraging latching units and delay circuits to maintain relay closure, the problem of load power interruption during the photovoltaic-storage inverter program upgrade process is solved, achieving a low-cost, high-reliability power supply solution.

CN118963812AActive Publication Date: 2024-11-15NINGBO GINLONG TECH
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411038098.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-15
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

Existing photovoltaic-storage inverter program upgrade solutions suffer from drawbacks such as high cost and unstable power supply when dealing with load power interruption issues, especially in multi-MCU scenarios where it is difficult to maintain continuous load power supply.

Method used

An online inverter program upgrade architecture is adopted. The relay control signal is latched by the latching unit. Combined with the delay circuit and protection unit, the relay is kept closed during the MCU upgrade process to maintain the power supply to the load.

Benefits of technology

It achieves uninterrupted power supply to the load, reduces costs, increases power density, supports simultaneous upgrades of multiple controller models, and improves power supply reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963812A_ABST
    Figure CN118963812A_ABST
Patent Text Reader

Abstract

The invention discloses an inverter program online upgrading architecture and method. The architecture comprises an upper computer, a controller and a latch unit, the upper computer is in communication connection with the controller, the controller is in communication connection with the latch unit, and the latch unit is suitable for latching the high level of the controller at the previous moment when the controller is upgraded, so that the relay group continues to perform high level enabling control. According to the method, the framework is used for controlling the on-line upgrading of the inverter program. The method has the advantages that uninterrupted load power supply in the program upgrading process can be achieved through a single controller, the cost is low, and the power density is high. In addition, the method can also be applied to scenes of multi-controller models, uninterrupted load power supply can be achieved when program upgrading is carried out on multiple controllers at the same time, and the power supply reliability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of renewable energy power generation technology, and in particular to an inverter program online upgrade architecture and method. Background Art

[0002] Existing PV inverter software upgrade solutions include: Figure 1 As shown, the MCU controller 420 (such as DSP) controls each converter (including the DC / DC unit 120, the bidirectional DC / DC unit 140, the DC / AC unit 150 and the relay group 160, etc.). During the upgrade process, the host computer 410 generally sends an upgrade instruction to the MCU controller 420. However, when the program is upgraded, due to the reset of the MCU controller 420, the relay control signal relay_ctrl will be pulled to a low level, and then the relay will be disconnected, and the load 300 will be powered off.

[0003] In order to maintain uninterrupted power supply to the load during the program upgrade process, there are two existing solutions: one is to add a bypass relay between the power grid and the load, and add a control bit of the bypass relay in the boot program, thereby significantly reducing the power interruption time; the other is to redundantly control the relay through multiple MCUs. When one of the MCUs is upgraded, the other MCU maintains the relay control.

[0004] However, the existing solutions have the following defects when used: For the bypass relay solution mentioned above, the need to add additional relays will increase additional costs and reduce power density. In addition, there is still a possibility of load power interruption between MCU reset and program boot execution. For the solution of using multiple MCUs for redundant control of relays, compared with the solution with only one MCU, it will increase additional costs; and for machines with multiple MCUs, in scenarios such as multiple MCUs needing to upgrade programs at the same time, relay disconnection will still occur, and the load power supply cannot be maintained continuously. Summary of the invention

[0005] One of the objectives of the present application is to provide an architecture for implementing an inverter program online upgrade method, which can solve at least one defect in the above-mentioned background technology.

[0006] In order to achieve one of the above-mentioned purposes, the technical solution adopted in the present application is: an inverter program online upgrade architecture, including a host computer, a controller and a latch unit; the host computer is suitable for issuing upgrade instructions, the input side of the controller is communicatively connected to the host computer, and the controller is suitable for controlling the relay group; the output side of the controller is communicatively connected to the latch unit; the controller is communicatively connected to the latch unit, and the latch unit is used to output the relay control signal of the controller; the latch unit is suitable for latching the relay control signal of the previous high level when the controller is upgraded, and then continuing to perform high-level enable control on the relay group.

[0007] Preferably, the latch unit adopts a D latch; the controller is suitable for outputting a relay control signal and a clock signal to the D port and the EN port of the latch unit respectively; when the controller works normally, the relay control signal and the clock signal are both high level; when the controller is upgraded, the clock signal is low level, and then the latch unit maintains the high level output.

[0008] Preferably, the inverter program online upgrade architecture further includes a delay circuit, and the clock signal output by the controller is delayed by a set time through the delay circuit and then sent to the EN port of the latch unit.

[0009] Preferably, the delay circuit includes a second AND gate unit, one of the input ends of the second AND gate unit is used to receive the clock signal issued by the controller, the other input ends of the second AND gate unit are all set high, and the output end of the second AND gate unit is communicatively connected to the EN port of the latch unit.

[0010] Preferably, the inverter program online upgrade architecture also includes a software protection circuit with a software protection function, and the software protection circuit includes a third AND gate unit, the input end of the third AND gate unit is communicatively connected to the controller, and the output end of the third AND gate unit is communicatively connected to the D port of the latch unit; the controller sends the relay control signal and the software protection signal to the input end of the third AND gate unit respectively.

[0011] Preferably, the inverter program online upgrade architecture also includes a first AND gate unit and a protection unit; the protection unit and the latch unit are respectively connected to the input end of the first AND gate unit, and the output end of the first AND gate unit is control-connected to the relay group; the first AND gate unit is suitable for sending a relay drive signal to the relay group according to the relay control signal output by the latch unit and the high-level blocking signal output by the protection unit.

[0012] Preferably, there are multiple controllers, one of which participates in the control of the relay group, and the remaining controllers do not participate in the control of the relay group; the controller participating in the control of the relay group is connected to the latch unit, and the remaining controllers are communicatively connected to the controller connected to the latch unit or the host computer.

[0013] Preferably, there are multiple controllers and latch units, and the controller is connected to the corresponding latch units to form a control branch; the controllers serving as the input ends of each control branch are communicated with each other, or are communicated with the host computer; the latch units serving as the output ends of each control branch are connected to the input end of the first AND gate unit.

[0014] An inverter program online upgrade method using the above inverter program online upgrade architecture comprises the following steps: a host computer sends a program upgrade preparation instruction to the controller; after receiving the instruction, the controller controls the current working mode of the inverter so that the inverter can work in the grid-connected mode and execute the relay maintenance control mode; after the inverter completes the switching of the relay maintenance mode, the controller feeds back to the host computer that the program upgrade preparation is completed; after receiving the preparation completion information, the host computer sends an upgrade package to the controller to enter the program upgrade mode; after the control upgrade is completed, a high level is sent to the latch unit to perform normal work.

[0015] Preferably, the working mode control of the inverter includes the following process: judging the current working mode of the inverter; if the inverter is in the grid-connected mode, the inverter directly executes the relay maintenance control mode; if the inverter is in the off-grid mode, further judging whether the inverter meets the grid-connected requirements; for the inverter that meets the grid-connected requirements, switching to the grid-connected mode and then executing the relay maintenance control mode, for the inverter that does not meet the grid-connected requirements, maintaining the off-grid mode; wherein, the relay maintenance control mode is that the relay maintains the state of the previous moment, and the control instruction of the controller at the next moment no longer affects the opening and closing of the relay.

[0016] Compared with the prior art, the beneficial effects of this application are:

[0017] This application can achieve uninterrupted load power supply during program upgrades through a single controller, with low cost and high power density. In addition, this application can also be applied to scenarios with multiple controller models, and can achieve uninterrupted load power supply when multiple controllers are performing program upgrades at the same time, with high power supply reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The schematic diagram of the structure of the existing inverter program online upgrade architecture is shown in FIG.

[0019] Figure 2 This is a schematic diagram of the structure of the inverter program online upgrade architecture of this application.

[0020] Figure 3 : is the truth table when the latch unit in this application adopts a D latch.

[0021] Figure 4 This is a timing diagram of the inverter during program upgrade in this application.

[0022] Figure 5 This is a timing diagram of the controller performing power-on reset after completing the program upgrade in this application.

[0023] Figure 6 This is a relay on-off timing diagram during normal operation of the inverter in this application.

[0024] Figure 7 This is a schematic diagram of the structure of the inverter program online upgrade architecture with software protection function in this application.

[0025] Figure 8 This is a structural diagram of an example of an inverter program online upgrade architecture for a multi-controller scenario in this application.

[0026] Fig. 9 This is a structural diagram of Example 2 of the inverter program online upgrade architecture for a multi-controller scenario in this application.

[0027] Fig.10 This is a schematic diagram of the structure of the example three of the inverter program online upgrade architecture for the multi-controller scenario in this application.

[0028] Fig.11 The figure is a schematic diagram of the overall workflow of the inverter program online upgrade method in this application.

[0029] In the figure: PV unit 110, DC / DC unit 120, energy storage unit 130, bidirectional DC / DC unit 140, DC / AC unit 150, relay group 160, power grid 200, load 300, host computer 410, controller 420, reset pull-down device 430, protection unit 440, first AND gate unit 450, delay circuit 460, latch unit 470, third AND gate unit 480. DETAILED DESCRIPTION

[0030] Below, the present application is further described in conjunction with specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.

[0031] In the description of the present application, it should be noted that directional words, such as the terms "center", "lateral", "longitudinal", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc., indicating directions and positional relationships are based on the directions or positional relationships shown in the accompanying drawings, which are only for the convenience of narrating the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and cannot be understood as limiting the specific scope of protection of the present application.

[0032] It should be noted that the terms "first", "second", etc. in the description and claims of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0033] The terms "including" and "having" and any variations thereof in the specification and claims of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0034] In order to facilitate the understanding of the following solutions, the structure of the traditional inverter system can be briefly described first. The inverter system can include a power generation system, an energy storage system, and a UPS system, etc.; that is, the technical solution of the present application can implement a pre-power generation system, an energy storage system, and a UPS system, etc.

[0035] For ease of understanding, this application will be described using a photovoltaic energy storage system. Figure 1 As shown, the conventional photovoltaic energy storage system mainly includes a PV unit 110, an energy storage unit 130, a DC / DC unit 120, a bidirectional DC / DC unit 140, and a DC / AC unit 150. The PV unit 110 and the energy storage unit 130 are respectively connected to the corresponding DC / DC unit 120 and the bidirectional DC / DC unit 140 and then connected in parallel to the input side bus of the DC / AC unit 150. The output end of the DC / AC unit 150 is connected to the power grid 200 through a control switch, and the load 300 is also connected in parallel to the output side of the DC / AC unit 150 through a control switch.

[0036] In the art, relays are commonly used control switches, and the relays installed on the positive and negative busbars between the power grid 200 and the DC / AC unit 150 and the relays installed on the positive and negative busbars between the load 300 and the DC / AC unit 150 can respectively form corresponding relay groups 160. When the inverter system is connected to the grid, the inverter system can supply power to the load 300 by closing the relay group 160; when the inverter system is off-grid, if the load 300 wants to continue to work, the power grid 200 can continue to supply power to the load 300 by closing the relay group 160.

[0037] One aspect of the present application provides an inverter program online upgrade architecture, such as Figure 2 As shown, one preferred embodiment includes a host computer 410, a controller 420 and a latch unit 470. The host computer 410 is connected to the input side of the controller 420 for communication, and the host computer 410 can send an upgrade instruction to the controller 420. The output end of the controller 420 can output a relay control signal for controlling the relay group 160; the controller 420 can be connected to the input side of the latch unit 470 for communication, so that the relay control signal output by the controller 420 is output through the latch unit 470.

[0038] When the controller 420 is operating normally, the controller 420 can send a high-level relay control signal to the latch unit 470, and the latch unit 470 also outputs a corresponding high-level signal to the relay group 160, thereby controlling the relay group 160 to enter a closed high-level enabled state to ensure that the inverter system is connected to the grid.

[0039] When the controller 420 needs to be upgraded, the control signal output by the controller 420 is at a low level, but the latch unit 470 can latch the high level signal of the controller 420 at the moment before the upgrade according to the low level signal output by the controller 420, and then the latch unit 470 can continue to send a high level enable signal to the relay group 160 during the upgrade of the controller 420, so that the relay group 160 remains in a closed state to ensure that the load 300 can continue to work normally through the power supply of the power grid 200. Compared with the traditional method, the present application can realize uninterrupted power supply to the load 300 during the program upgrade process through a single controller 420, and the cost is low and the power density is high.

[0040] It should be known that the controller 420 is commonly used in the art as an MCU controller, and the specific structure and working principle are well-known technologies for those skilled in the art, so they will not be elaborated in detail here; common MCU controllers include DSP, etc. The upgrade instruction of the controller 420 can be implemented by the host computer 410, that is, the host computer 410 is connected to the controller 420 through a signal line; common signal lines include boot, reset and communication buses such as SCI, etc. When the controller 420 is working normally, the host computer 410 can send a high-level signal to the controller 420 through the signal lines boot and reset, so that the controller 420 can output the corresponding relay control signal relay_ctrl to the latch unit 470. The specific structure and working principle of the host computer 410 are also well-known technologies for those skilled in the art, and common host computers 410 include ARM, etc.

[0041] In this embodiment, in order to ensure the safety of the inverter program upgrade online architecture, Figure 2 As shown, the inverter program upgrade online architecture also includes a first AND gate unit 450 and a protection unit 440. The output side of the latch unit 470 is connected to the input end of the first AND gate unit 450 for communication, and the protection unit 440 is connected to the other input end of the first AND gate unit 450; the output end of the first AND gate unit 450 is connected to the relay group 160 for control. The protection unit 440 can continuously send a high-level blocking signal relay_block to the first AND gate unit 450; the latch unit 470 can send the relay control signal sent by the controller 420 to the first AND gate unit 450, and then the first AND gate unit 450 can perform corresponding enabling control on the relay group 160 according to the output level change of the latch unit 470.

[0042] It should be known that the specific structure and working principle of the first AND gate unit 450 are well-known technologies for those skilled in the art, so they will not be elaborated in detail here; the working logic of the AND gate unit is that it outputs a high level only when the input ends are all high levels. The protection unit 440 can be hardware protection or software protection; in this embodiment, hardware protection is preferably used. The specific structure and working principle of the protection unit 440 are well-known technologies for those skilled in the art, so they will not be elaborated in detail here.

[0043] In this embodiment, there are multiple specific structures of the latch unit 470 that can latch the output signal of the controller 420. For ease of understanding, one of the structures will be described in detail below. Figure 2As shown, the latch unit 470 adopts a D latch. The output side of the controller 420 can be respectively connected to the D port and the EN port of the latch unit 470 for communication; and then the controller 420 can output the relay control signal relay_ctrl and the clock signal clk to the D port and the EN port of the latch unit 470 respectively. The latch unit 470 can be connected to the input end of the first AND gate unit 450 through the Q port, and then the latch unit 470 can send the relay control signal relay_ctrl′ to the input end of the first AND gate unit 450 through the Q port. It should be noted that the relay control signal here is a representation of a group of signals, and can actually be a control signal of multiple different relays.

[0044] When the controller 420 is working normally, the relay control signal relay_ctrl and the clock signal clk sent by the controller 420 are both at high level. According to the working logic of the D latch, the relay control signal relay_ctrl′ output by the latch unit 470 is at high level. After the high-level relay control signal relay_ctrl′ and the high-level blocking signal relay_block sent by the protection unit 440 pass through the first AND gate unit 450, a high-level relay driving signal relay_drv can be output to drive the relay group 160 to close. The circuit for specifically driving the relay group 160 is the same as the conventional solution, so it will not be described in detail here.

[0045] After the host computer 410 sends an upgrade instruction to the controller 420, the controller 420 can enter the upgrade mode, and the relay control signal relay_ctrl and the clock signal clk sent by the controller 420 are both at low levels. According to the working logic of the D latch, the latch unit 470 will latch and maintain the high-level relay control signal relay_ctrl output by the controller 420 at the previous moment, and then the latch unit 470 can continue to output the high-level relay control signal relay_ctrl′; then the high-level relay control signal relay_ctrl′ and the high-level blocking signal relay_block sent by the protection unit 440 can continue to output the high-level relay drive signal relay_drv after passing through the first AND gate unit 450 to drive the relay group 160 to continue to remain closed to realize that the load 300 continues to work without power failure.

[0046] It should be known that after the controller 420 enters the upgrade state, the relay control signal relay_ctrl and the clock signal clk are pulled down to a low level by the reset pull-down device 430. The specific structure and working principle of the reset pull-down device 430 are well-known technologies for those skilled in the art, so they are not elaborated in detail here. After the controller 420 completes the upgrade, it can be reset. At this time, the relay control signal relay_ctrl and the clock signal clk can be powered on to a high level again, so that the controller 420 resumes control over the relay group 160, and the latch unit 470 can be out of the latch state.

[0047] Meanwhile, the specific structure and working principle of the D latch are well-known technologies to those skilled in the art, so they will not be elaborated in detail here. For the sake of easy understanding, the truth table of the D latch is as follows: Figure 3 As shown, when the EN port is high and the D port is low, the Q port will output a low level; when both the EN port and the D port are high, the Q port will output a high level; when the EN port is low, the Q port will maintain the level state of the previous moment.

[0048] It is understandable that, since there may be a time error in the communication of the port, when the controller 420 completes the level pull-up reset after the upgrade, it is necessary to ensure that the relay control signal relay_ctrl is set to a high level at the same time or before the clock signal clk, so as to ensure that the relay control signal relay_ctrl′ output by the D latch is continuously at a high level. Therefore, in this embodiment, the clock signal clk can be preferably delayed; a specific example, such as Figure 2 As shown, the inverter program online upgrade architecture also includes a delay circuit 460. The clock signal clk output by the controller 420 can be delayed by a set time through the delay circuit 460 and then sent to the EN port of the latch unit 470. For ease of understanding, the specific structure of the delay circuit 460 will be described in detail below.

[0049] Specifically, Figure 2 As shown, the delay circuit 460 includes a second AND gate unit, a resistor and a capacitor. One of the input terminals of the second AND gate unit is connected to the output side of the controller 420 through the resistor, and a grounded capacitor is connected between the resistor and the second AND gate unit. The remaining input terminals of the second AND gate unit are all set to a high level "1", and the output terminal of the second AND gate unit is connected to the EN port of the latch unit 470 for communication, so that the clock signal clk sent by the controller 420 can output the delayed clock signal clk' to the EN port of the latch unit 470 after passing through the delay circuit 460.

[0050] It is understandable that the entire upgrade process of the controller 420 can be divided into an upgrade preparation phase, an upgrade process phase, and an upgrade completion phase. For ease of understanding, the entire upgrade process of the controller 420 will be described in detail below.

[0051] 1. Upgrade preparation stage.

[0052] like Figure 4 As shown, the host computer 410 sends an upgrade preparation instruction to the controller 420 through communication. After receiving the program upgrade preparation instruction, the controller 420 immediately sets the clock signal clk to a low level. After passing through the delay circuit 460, the clock signal clk can be delayed by Δt time to output the clock signal clk′. As the level of the clock signal clk′ drops, the latch unit 470 triggers the latch mode, so that the latch unit 470 latches the current high level relay control signal relay_ctrl. After the controller 420 completes the preparation, the controller 420 can feedback the preparation completion information to the host computer 410 and start the upgrade process. It should be known that Figure 4 Part a in the figure shows the upgrade preparation instruction sent by the host computer 410 to the controller 420 , and part c shows the preparation completion information fed back by the controller 420 to the host computer 410 .

[0053] 2. Upgrade process stage.

[0054] like Figure 4 As shown, after receiving the preparation completion information fed back by the controller 420, the upper computer 410 can set the output of the signal lines boot and reset to a low level, so that the controller 420 enters the upgrade state. Specifically, the signal line boot outputs a low level about 10ms before the signal line reset. At this time, due to the pull-down of the output level of the controller 420 by the reset pull-down device 430, the relay control signal relay_ctrl and the clock signal clk are pulled down to a low level. Then the clock signal clk passes through the delay circuit 460 and the output clock signal clk′ is still at a low level. At this time, the latch unit 470 maintains the latch state of the upgrade preparation stage, that is, the relay control signal relay_ctrl′ output by the latch unit 470 remains at a high level. After the controller 420 enters the upgrade state and the reset is completed (at this time, the signal line reset returns to a high level), the upper computer 410 can send the upgrade program package to the controller 420 through communication and upgrade it. It should be known that Figure 4 Part b in the middle represents the process of the host computer 410 sending the upgrade program package to the controller 420.

[0055] 3. Upgrade completion stage.

[0056] like Figure 4As shown, after the upgrade package is sent, that is, after the controller 420 completes the upgrade, the controller 420 starts to execute the user program, and the relay control signal relay_ctrl and the clock signal clk output by the controller 420 can be reset to a high level. It should be noted that due to the existence of the delay circuit 460, the relay control signal relay_ctrl can be set to a high level before the clock signal clk or at the same time as the clock signal clk, but the clock signal clk is not allowed to be set to a high level first. After the clock signal clk is set to a high level, the clock signal clk′ output by the delay circuit 460 turns to a high level, and the latch unit 470 can release the latch state at this time, and the relay control signal relay_ctrl′ output by the latch unit 470 is the current high-level relay control signal relay_ctrl, thereby ensuring that the relay group 160 continues to maintain a closed working state to continue to maintain the load 300 without power failure.

[0057] It should be known that the above working process is the working process of the controller 420 in the upgraded state. When the program of the controller 420 is upgraded and reset, the control of the relay group 160 needs to be maintained. The controller 420 also includes working scenarios in the non-upgraded state, such as the power-on reset scenario of the controller 420 and the normal on-off control scenario of the relay group 160; for ease of understanding, the control of the relay group 160 in the non-upgraded state scenario of the controller 420 will be described in detail below.

[0058] For the power-on reset scenario of the controller 420, the controller 420 does not need to maintain the control of the relay group 160; the specific control process of the controller 420 on the relay group 160 is: Figure 5 As shown, when the controller 420 performs power-on reset, the initial states of the relay control signal relay_ctrl and the clock signal clk outputted by it are both low level; the clock signal clk′ outputted by the delay circuit 460 is also low level, and the relay control signal relay_ctrl′ outputted by the latch unit 470 is also low level. Until the power-on reset of the controller 420 is completed, the relay control signal relay_ctrl and the clock signal clk will be set to high level, and then the clock signal clk′ will turn to high level after passing through the delay circuit 460, and the relay control signal relay_ctrl′ outputted by the latch unit 470 is the level signal of the current relay control signal relay_ctrl, that is, high level, and then the relay group 160 is closed from the off state under the drive of the high level relay drive signal relay_drv outputted by the first AND gate unit 450.

[0059] For the normal on-off control scenario of the relay group 160, the specific control process of the controller 420 is as follows: Figure 6As shown, during the whole control process, the clock signal clk output keeps high level, and the clock signal clk′ output by the delay circuit 460 will also keep high level. At this time, the latch unit 470 is in a transparent state, so that the level of the relay control signal relay_ctrl′ output by the latch unit 470 is always consistent with the level of the relay control signal relay_ctrl. At this time, the relay driving signal relay_drv output by the first AND gate unit 450 is completely determined by the relay control signal relay_ctrl and the blocking signal relay_block, achieving the same effect as the conventional relay control scheme.

[0060] In this embodiment, the working scenario of the controller 420 includes not only the working scenario of a single controller 420, but also the working scenario of multiple controllers 420; a specific example is as follows: Figures 8 to 10 As shown, there are two controllers 420, one of which is used to control the DC / DC unit 120 and the bidirectional DC / DC unit 140, and the other controller 420 controls the DC / AC unit 150, but is not limited to such a layout. In addition, in the working scenario of multiple controllers 420, there are also many ways for multiple controllers 420 to control the relay group 160; for example, only one controller 420 among the multiple controllers 420 participates in the control of the relay group 160, and the remaining controllers 420 do not participate in the control of the relay group 160; for example, multiple controllers 420 participate in the control of the relay group 160 at the same time. For ease of understanding, three specific examples will be used for detailed description.

[0061] Example 1: Figure 8 As shown, there are multiple controllers 420, one of which participates in the control of the relay group 160, and the remaining controllers 420 do not participate in the control of the relay group 160. The controller 420 participating in the control of the relay group 160 is connected to the latch unit 470, and the remaining controllers 420 are connected to the controller 420 connected to the latch unit 470 or the host computer 410 for communication.

[0062] For ease of understanding, the working process of Example 1 will be described in detail below using two controllers 420 as an example. The two controllers 420 can be defined as controller DSP#1 and controller DSP#2 respectively; wherein, controller DSP#1 is used to control the DC / DC unit 120, the bidirectional DC / DC unit 140 and the relay group 160, and controller DSP#2 only controls the DC / AC unit 150 and does not participate in the control of the relay group 160. The host computer 410 communicates with the controller DSP#1, and the controller DSP#1 communicates with the controller DSP#2, such as I2C communication. Controller DSP#1 can control controller DSP#2 to upgrade through signal lines boot2 and reset2; of course, controller DSP#2 can also communicate directly with the host computer 410 through signal lines boot2 and reset2, so that the host computer 410 directly controls controller DSP#2 to upgrade. In this scenario, controller DSP#1 controls the relay group 160 through the hardware architecture described above, and controller DSP#2 does not participate in relay control.

[0063] Example 2: If Fig. 9 As shown, there are multiple controllers 420 and latch units 470, and the controllers 420 are connected to the corresponding latch units 470 to form a control branch. The controllers 420 as the input ends of each control branch are connected to each other, and one of the controllers 420 is connected to the host computer 410. The latch units 470 as the output ends of each control branch are all connected to the input end of the first AND gate unit 450; thus, the control of the relay group 160 will be jointly determined by multiple controllers 420.

[0064] For ease of understanding, the working process of Example 2 will be described in detail below using two controllers 420 as an example. The two controllers 420 can be defined as controller DSP#1 and controller DSP#2 respectively; wherein controller DSP#1 controls the DC / DC unit 120 and the bidirectional DC / DC unit 140, and controller DSP#2 controls the DC / AC unit 150; and the relay group 160 is controlled jointly by controller DSP#1 and controller DSP#2.

[0065] At the same time, the host computer 410 communicates with the controller DSP#1, and the controller DSP#1 communicates with the controller DSP#2, such as I2C communication; and the controller DSP#1 can upgrade the controller DSP#2 through the signal lines boot2 and reset2. It should be noted that in this scenario, the signal lines boot2 and reset2 need to be reset and pulled up to avoid the controller DSP#2 being reset due to the upgrade of the controller DSP#1.

[0066] Under this architecture, the controller DSP#1 outputs the relay control signal relay_ctrl_1 and the clock signal clk_1, and after being processed by the corresponding latch unit 470 and the delay circuit 460, the corresponding relay control signal relay_ctrl_1′ can be obtained. At the same time, the controller DSP#2 outputs the relay control signal relay_ctrl_2 and the clock signal clk_2, and after being processed by the corresponding latch unit 470 and the delay circuit 460, the corresponding relay control signal relay_ctrl_2′ can be obtained. The relay control signal relay_ctrl_1′, the relay control signal relay_ctrl_2′ and the blocking signal relay_block output by the protection unit 440 are passed through the first AND gate unit 450 to obtain the required relay drive signal relay_drv, thereby realizing the control of the relay group 160. It is worth mentioning that the relationship between the relay control signal relay_ctrl_1′ and the relay control signal relay_ctrl_2′ can be not only a logical AND relationship, but also other logical relationships, which can be selected according to actual application requirements.

[0067] It is understandable that under this architecture, if controller DSP#1 is upgraded, its upgrade process is the same as the upgrade process of the aforementioned single controller 420, so it will not be repeated here. If controller DSP#2 is upgraded, controller DSP#1 will be equivalent to the host computer 410, so that controller DSP#2 performs the same upgrade process as the aforementioned single controller 420. It should be noted that multiple controllers 420 cannot be upgraded simultaneously under this architecture.

[0068] Example 3: Fig.10 As shown, there are multiple controllers 420 and latch units 470, and the controllers 420 are connected to the corresponding latch units 470 to form a control branch. The controllers 420 as the input end of each control branch are all connected to the host computer 410 for communication; the latch units 470 as the output end of each control branch are all connected to the input end of the first AND gate unit 450; and the control of the relay group 160 will be jointly determined by the multiple controllers 420.

[0069] For ease of understanding, the working process of Example 2 will be described in detail below using two controllers 420 as an example. The two controllers 420 can be defined as controller DSP#1 and controller DSP#2, respectively; wherein, controller DSP#1 controls the DC / DC unit 120 and the bidirectional DC / DC unit 140, and controller DSP#2 controls the DC / AC unit 150; the relay group 160 is controlled jointly by controllers DSP#1 and DSP#2. At the same time, the host computer 410 communicates separately with controller DSP#1 and controller DSP#2, such as I2C communication; the host computer 410 can upgrade and control the controller DSP#1 through signal lines boot1 and reset1, and the host computer 410 can upgrade and control the controller DSP#2 through signal lines boot2 and reset2.

[0070] Under this architecture, the controller DSP#1 outputs the relay control signal relay_ctrl_1 and the clock signal clk_1, and after being processed by the corresponding latch unit 470 and the delay circuit 460, the corresponding relay control signal relay_ctrl_1′ can be obtained. At the same time, the controller DSP#2 outputs the relay control signal relay_ctrl_2 and the clock signal clk_2, and after being processed by the corresponding latch unit 470 and the delay circuit 460, the corresponding relay control signal relay_ctrl_2′ can be obtained. The relay control signal relay_ctrl_1′, the relay control signal relay_ctrl_2′ and the blocking signal relay_block output by the protection unit 440 are passed through the first AND gate unit 450 to obtain the required relay drive signal relay_drv, thereby realizing the control of the relay group 160. It is worth mentioning that the relationship between the relay control signal relay_ctrl_1′ and the relay control signal relay_ctrl_2′ can be not only a logical AND relationship, but also other logical relationships, which can be selected according to actual application requirements.

[0071] It can be understood that the program upgrades of controller DSP#1 and controller DSP#2 under this architecture are independent of each other, so they can be upgraded simultaneously; the specific upgrade process of controller DSP#1 and controller DSP#2 is the same as the upgrade process of the aforementioned single controller 420, so it will not be repeated here.

[0072] It should be known that many controllers 420 need to have a software protection function, so a software protection circuit with a software protection function needs to be set in the inverter program online upgrade architecture of this embodiment. Figure 2 The scenario of a single controller 420 is shown for detailed description.

[0073] Specifically, Figure 7 As shown, the software protection circuit includes a third AND gate unit 480, and the input end of the third AND gate unit 480 is connected to the controller 420, so that the controller 420 can generate a software protection signal relay_block_s and a relay control signal relay_ctrl to the input end of the third AND gate unit 480. The output end of the third AND gate unit 480 is connected to the D port of the latch unit 470, so that the working state of the latch unit 470 will be affected by the level signal of the software protection signal relay_block_s, thereby realizing the software protection function of the circuit. For the scenario of multiple controllers 420, it is only necessary to add the corresponding software protection circuit to the corresponding control branch.

[0074] Another aspect of the present application provides an inverter program online upgrade method using the above inverter program online upgrade architecture, such as Fig.11 As shown, one preferred embodiment includes a preparation phase, an upgrade phase, and an upgrade completion phase of the program upgrade; specifically includes the following processes:

[0075] (1) Upgrade preparation stage: When an online program upgrade is required, the host computer 410 may send a program upgrade preparation instruction to the controller 420; after receiving the instruction, the controller 420 controls the current working mode of the inverter.

[0076] If the inverter is in the grid-connected mode, the inverter will execute the relay maintenance control mode through the above inverter program online upgrade architecture. If the inverter is in the off-grid mode, it will further determine whether the inverter meets the grid-connected requirements; for the inverter that meets the grid-connected requirements, it will switch to the grid-connected mode and then execute the relay maintenance control mode through the above inverter program online upgrade architecture; for the inverter that does not meet the grid-connected requirements, it will remain in the off-grid mode.

[0077] It should be noted that the relay maintenance control mode is that the relay maintains the state of the previous moment, and the control instruction of the controller 420 at the next moment no longer affects the opening and closing of the relay; that is, when the controller 420 is preparing to upgrade and pulls down the relay control signal relay_ctrl to a low level, the relay group 160 maintains a high-level enable state in the latched state of the latch unit 470 to keep it closed, and the level signal of the controller 420 at the next moment of upgrading is latched by the latch unit 470 and will no longer control the relay group 160. Specifically, when executing the relay maintenance control mode, it is necessary to set the output clock signal clk to a low level when the relay control signal relay_ctrl maintains a high level at the previous moment to realize the latching of the relay control signal relay_ctrl by the latch unit 470.

[0078] (2) Upgrade phase: When the inverter switches to the relay maintenance control mode, the controller 420 can feedback to the host computer 410 that the preparation phase of the program upgrade has been completed. After receiving the upgrade preparation completion information feedback from the controller 420, the host computer 410 starts the program upgrade. First, the host computer 410 pulls down the signals output by the signal lines boot and reset respectively, so that the controller 420 enters the program upgrade mode; then the controller 420 can receive the upgrade program package transmitted by the host computer 410 through the signal line SCI to complete the upgrade.

[0079] (3) Upgrade completion stage: After the program upgrade of the controller 420 is completed, the relay control signal relay_ctrl output by the controller 420 needs to be set to a high level no later than the clock signal clk, and then the controller 420 starts normal control work.

[0080] The above describes the basic principles, main features and advantages of the present application. Those skilled in the art should understand that the present application is not limited by the above embodiments, and the above embodiments and the specification only describe the principles of the present application. The present application may have various changes and improvements without departing from the spirit and scope of the present application, and these changes and improvements fall within the scope of the present application for which protection is sought. The scope of protection claimed by the present application is defined by the attached claims and their equivalents.

Claims

1. An inverter program online upgrade architecture, characterized in that: include: Host computer; the host computer is suitable for issuing upgrade instructions; Controller; The controller is communicatively connected with the host computer, and the controller is suitable for controlling the relay group; as well as Latch unit; The controller is communicatively connected with the latch unit, and the latch unit is used to output the relay control signal of the controller; the latch unit is suitable for latching the high-level relay control signal at the previous moment when the controller is upgraded, and then continuing to perform high-level enabling control on the relay group.

2. The inverter program online upgrade architecture according to claim 1, characterized in that: The latch unit adopts a D latch; the controller is suitable for outputting a relay control signal and a clock signal to the D port and the EN port of the latch unit respectively; When the controller works normally, the relay control signal and the clock signal are both at high level; when the controller is upgraded, the clock signal is at low level, and then the latch unit maintains the high level output.

3. The inverter program online upgrade architecture according to claim 2, characterized in that: The inverter program online upgrade architecture also includes a delay circuit, and the clock signal output by the controller is delayed by a set time through the delay circuit and then sent to the EN port of the latch unit.

4. The inverter program online upgrade architecture according to claim 3, characterized in that: The delay circuit includes a second AND gate unit, one of the input ends of the second AND gate unit is used to receive the clock signal sent by the controller, the other input ends of the second AND gate unit are all set high, and the output end of the second AND gate unit is communicatively connected to the EN port of the latch unit.

5. The inverter program online upgrade architecture according to claim 2, characterized in that: The inverter program online upgrade architecture also includes a software protection circuit with a software protection function; The software protection circuit comprises a third AND gate unit, an input end of the third AND gate unit is communicatively connected to the controller, and an output end of the third AND gate unit is communicatively connected to the D port of the latch unit; The controller sends the relay control signal and the software protection signal to the input end of the third AND gate unit respectively.

6. The inverter program online upgrade architecture according to any one of claims 1 to 5, characterized in that: The inverter program online upgrade architecture also includes a first AND gate unit and a protection unit; The protection unit and the latch unit are respectively connected to the input end of the first AND gate unit, and the output end of the first AND gate unit is control-connected to the relay group; The first AND gate unit is adapted to send a relay driving signal to the relay group according to the relay control signal output by the latch unit and the high-level blocking signal output by the protection unit.

7. The inverter program online upgrade architecture according to claim 6, characterized in that: There are multiple controllers, one of which participates in the control of the relay group, and the other controllers do not participate in the control of the relay group; The controller participating in the control of the relay group is connected to the latch unit, and the other controllers are communicatively connected to the controller connected to the latch unit or the host computer.

8. The inverter program online upgrade architecture according to claim 6, characterized in that: There are a plurality of the controller and the latch unit, and the controller is connected with the corresponding latch unit to form a control branch; The controllers serving as input ends of the control branches are connected to each other in communication, or are connected to the host computer in communication; the latch units serving as output ends of the control branches are connected to the input ends of the first AND gate units.

9. An inverter program online upgrade method using the inverter program online upgrade architecture according to any one of claims 1 to 8, characterized in that: The steps include: The host computer sends a program upgrade preparation instruction to the controller; After receiving the instruction, the controller controls the current working mode of the inverter so that the inverter can work in the grid-connected mode and execute the relay maintenance control mode; After the inverter completes the switching of the relay maintenance mode, the controller feeds back to the host computer that the program upgrade is ready; After receiving the preparation completion information, the host computer sends an upgrade package to the controller to enter a program upgrade mode; After the control upgrade is completed, a high level is sent to the latch unit to perform normal operation.

10. The inverter program online upgrade method according to claim 9, characterized in that: The working mode control of the inverter includes the following processes: Determine the current working mode of the inverter; If the inverter is in grid-connected mode, the inverter directly executes the relay maintenance control mode; If the inverter is in off-grid mode, further determine whether the inverter meets the grid-connected requirements; For the inverters that meet the grid connection requirements, they are switched to the grid connection mode and then the relay maintenance control mode is executed. For the inverters that do not meet the grid connection requirements, they are kept in the off-grid mode. Among them, the relay maintenance control mode is that the relay maintains the state of the previous moment, and the control instruction of the controller at the next moment no longer affects the opening and closing of the relay.

Citation Information

Patent Citations

  • Circuit for keeping input / output end at stable state during initializing of terminal communication device

    CN104298640A

  • Intelligent equipment control circuit with function of state maintenance

    CN105259813A

  • Charging pile controller

    CN113060032A

  • Firmware upgrading method, electronic equipment, storage medium and signal latch circuit

    CN113821240A

  • Firmware upgrading method and device, chip and computer storage medium

    CN115729573A