Inverter program online upgrading architecture and method

Through the online upgrade of the architecture of the inverter program, the coded signal and logic level signal conversion are used to solve the relay disconnection problem caused by MCU reset, and the uninterrupted load power supply and cost reduction are achieved. It is suitable for multi-controller scenarios.

CN119002972AActive Publication Date: 2024-11-22NINGBO GINLONG TECH
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing optical storage inverter software upgrade solution is the relay disconnected due to the reset of the MCU controller during program upgrade, resulting in the interruption of load power supply. The existing solution increases costs and there is still a problem of power supply discontinuity in multiple MCU scenarios.

Method used

The inverter program online upgrade architecture is adopted, through the coordinated work of the upper computer, controller, encoding identification module and latch unit, and the encoding signal and logic level signal conversion are used to ensure that the relay group remains closed during the MCU upgrade process, realizing the Uninterrupted load power supply.

Benefits of technology

It realizes uninterrupted load power supply during program upgrade process under a single controller, reduces costs, increases power density, and is suitable for multi-controller scenarios, improving the reliability of power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002972A_ABST
    Figure CN119002972A_ABST
Patent Text Reader

Abstract

The invention discloses an inverter program online upgrading architecture and method. The architecture comprises a controller, a code identification module and a latch unit, the controller is suitable for controlling the relay group through a control signal; the output side of the controller is in communication connection with the code identification module, and the code identification module is suitable for converting a control signal sent by the controller into a logic level signal; and the latch unit outputs a level signal to a control signal sent by the controller according to the received logic level signal, or latches a high level signal before the controller is upgraded. According to the method, the on-line upgrading control of the inverter program is carried out by utilizing the framework. The method has the advantages that uninterrupted load power supply in the program upgrading process is achieved through the single controller, the cost is low, and the power density is high; and moreover, an IO interface does not need to be additionally added, so that the resource occupation of the controller is small. And the method can also be applied to a scene of multi-controller models, and uninterrupted load power supply during simultaneous program upgrading of multiple controllers is realized.
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 the above-mentioned purpose, the technical solution adopted in the present application is: an inverter program online upgrade architecture, including a host computer, a controller, a coding identification module and a latch unit; the host computer is suitable for issuing upgrade instructions, the controller is communicatively connected with the host computer, and the controller is suitable for controlling the relay group through a control signal, which is a coded signal; the output side of the controller is communicatively connected with the coding identification module, and the coding identification module is suitable for converting the control signal issued by the controller into a corresponding logic level signal; the latch unit is communicatively connected with the output end of the coding identification module, and the latch unit is suitable for outputting a level signal of the control signal issued by the controller according to the received logic level signal, or latching the high level signal before the controller is upgraded, thereby continuing to enable the relay group to be closed.

[0007] Preferably, the coding identification module includes two output ends, and the latch unit adopts a D latch; the inverter program online upgrade architecture also includes a latch data generating unit and a clock signal generating unit; the output ends of the latch data generating unit and the clock signal generating unit are respectively communicatively connected to the D port and EN port of the latch unit; one of the output ends of the coding identification module and the control signal output by the controller are both communicatively connected to the input end of the latch data generating unit; the other output end of the coding identification module is communicatively connected to the input end of the clock signal generating unit.

[0008] Preferably, the coding identification module includes a duty cycle conversion unit, a voltage interval identification unit and an output signal generating unit which are communicatively connected in sequence; the duty cycle conversion unit is suitable for converting the duty cycle information of the control signal issued by the controller into voltage information; the voltage interval identification unit is suitable for comparing the voltage information with a set threshold; and the output signal generating unit is suitable for outputting a corresponding level signal according to the comparison result.

[0009] Preferably, the two output ends of the output signal generating unit send level signals EN1 and EN2 to the latch data generating unit and the clock signal generating unit respectively; the voltage interval identifying unit includes two comparators, one of the input ends of the two comparators receives the voltage information v sent by the duty cycle conversion unit, and the other input ends of the two comparators respectively input the set threshold value v th1 and v th2 , and v th1 <v th2 ; If the controller is operating normally, it sends a high level to control the relay group; when v>v th2 When v<v th1When the level signal EN1 is 0, the level signal EN2 is 1; when v th1 <v<v th2 When v>v th2 When v<v th1 When the level signals EN1 and EN2 are both 0; when v th1 <v<v th2 When , the level signal EN1 is 0 and the level signal EN2 is 1.

[0010] Preferably, if the controller is operating normally, a high level is sent to control the relay group; corresponding to the threshold value v th2 The output of the comparator is directly used as the output level signal EN2 of the output signal generating unit; the output signal generating unit also includes a second AND gate unit, the two input ends of the second AND gate unit are respectively communicated with the output ends of the two comparators, and the second AND gate unit outputs the level signal EN1.

[0011] Preferably, if the controller is operating normally, a low duty cycle signal is sent to control the relay group; corresponding to the threshold value v th2 The output of the comparator is directly used as the output level signal EN1 of the output signal generating unit; the output signal generating unit also includes a NOT gate unit and a second AND gate unit, the input end of the NOT gate unit is communicatively connected to the level signal EN1, the output end of the NOT gate unit and the output end of another comparator are connected to the input end of the second AND gate unit, and the AND gate unit outputs a level signal EN2.

[0012] Preferably, if the controller is operating normally, a high level is sent to control the relay group; the clock signal generating unit includes an inverter and a delay unit that are communicatively connected in sequence; the inverter is suitable for receiving the level signal EN2 and sending it to the delay unit after flipping the level state; the delay unit is suitable for delaying the flipped level signal for a set time and sending it to the EN port of the latch unit; if the controller is operating normally, a low duty cycle signal is sent to control the relay group; the clock signal generating unit includes a delay unit, and the delay unit is suitable for receiving the level signal EN2 and sending it to the EN port of the latch unit after delaying the set time.

[0013] Preferably, the inverter program online upgrade architecture also includes a software protection unit, and the software protection unit adopts 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 input end of the coding identification module; the controller sends a control signal and a software protection signal to the input end of the third AND gate unit respectively.

[0014] 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 communicatively connected to the coding recognition module, and the remaining controllers are communicatively connected to the controller connected to the coding recognition module or the host computer.

[0015] Preferably, there are multiple controllers, code recognition modules and latch units, and the controller is connected to the corresponding code recognition modules and latch units to form a control branch; the controllers serving as input ends of each control branch are communicatively connected to each other, or are communicatively connected to the host computer; the latch units serving as output ends of each control branch simultaneously output level control signals for controlling the relay group.

[0016] An inverter program online upgrade method using the above-mentioned 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 and performs the upgrade; after the control upgrade is completed, the corresponding control signal is output to control the relay group to work normally; wherein, before and after receiving the upgrade instruction, the controller executes the relay maintenance mode through different coding wave transmission modes.

[0017] 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.

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

[0019] This application can achieve uninterrupted load power supply during program upgrades through a single controller, with low cost and high power density; and no additional IO interface is required, which occupies less controller resources. 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

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

[0021] Figure 2 This is a structural diagram of a specific example of an inverter program online upgrade architecture for a single controller scenario in this application.

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

[0023] Figure 4 For this application Figure 2 The structure diagram of the coding identification module in the inverter program online upgrade architecture is shown.

[0024] Figure 5 For this application Figure 4 The illustrated recognition diagram shows that the duty cycle of the coding recognition module changes from 100% to 50%.

[0025] Figure 6 For this application Figure 4 The illustrated schematic diagram shows the recognition of a code recognition module whose duty cycle changes from 100% to 0%.

[0026] Figure 7 This is a structural diagram of specific example 2 of the inverter program online upgrade architecture for a single controller scenario in this application.

[0027] Figure 8 For this application Figure 7 The structure diagram of the coding identification module in the inverter program online upgrade architecture is shown.

[0028] Fig. 9 For this application Figure 8 The illustrated recognition diagram shows that the duty cycle of the coding recognition module changes from 50% to 100%.

[0029] Fig.10 This is a schematic diagram of the structure of the inverter program online upgrade architecture with software protection function in this application.

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

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

[0032] Fig.13 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.

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

[0034] Fig.15 This is a timing diagram of the inverter during program upgrade in this application.

[0035] Fig.16 This is a timing diagram of the controller performing power-on reset in this application.

[0036] Fig.17 This is a relay on-off timing diagram during normal operation of the inverter in this application.

[0037] 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, software protection unit 421, reset pull-down device 430, protection unit 440, first AND gate unit 450, encoding recognition module 460, duty cycle conversion unit 461, voltage interval recognition unit 462, output signal generating unit 463, latch unit 470, latch data generating unit 480, clock signal generating unit 490. DETAILED DESCRIPTION

[0038] 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.

[0039] 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.

[0040] 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.

[0041] 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.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] One aspect of the present application provides an inverter program online upgrade architecture, such as Figure 2 and Figure 7As shown, one preferred embodiment includes a host computer 410, a controller 420, a coding identification module 460 and a latch unit 470. The host computer 410 and the controller 420 are connected in communication, and the host computer 410 can send a program upgrade instruction to the controller 420. The controller 420 can output a coded control signal to the relay group 160 for control; the controller 420 is connected in communication with the input side of the coding identification module 460, and the output end of the coding identification module 460 is connected in communication with the input side of the latch unit 470, so that the control signal output by the controller 420 can be converted into a logic level signal after being encoded by the coding identification module 460, and then output through the latch unit 470.

[0046] When the controller 420 is operating normally, the controller 420 can send a control signal of a constant level to the coding identification module 460. At this time, the coding identification module 460 can output a corresponding logic level signal according to the control signal sent by the controller 420 and send it to the latch unit 470. Then, the latch unit 470 also outputs a corresponding level signal to the relay group 160 according to the received logic level signal, thereby controlling the relay group 160 to be in a closed enabling state to ensure normal grid-connected operation of the inverter system.

[0047] When the controller 420 needs to be upgraded, the controller 420 can send a coded control signal to the coding recognition module 460, and the coding recognition module 460 can convert the control signal sent by the controller 420 into a corresponding level signal and send it to the latch unit 470; the latch unit 470 can latch the level signal of the controller 420 before the upgrade according to the received logic level signal, and then the latch unit 470 can continue to send a corresponding 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. And there is no need to increase the IO interface of the controller 420, and the resource occupation of the controller 420 is small.

[0048] 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 corresponding level signals 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 coding identification module 460. The relay control signal relay_ctrl is a coding signal, which is a constant level signal when the controller 420 is working normally, and a pulse signal with a constant duty cycle during the upgrade process of the controller 420; there are many common relay control signals relay_ctrl, such as PWM signals, etc. 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.

[0049] 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 constant high-level blocking signal to the first AND gate unit 450; the latch unit 470 can send the level signal converted by 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.

[0050] 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; hardware protection is preferably used in this embodiment. 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.

[0051] 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 2 and Figure 7 As shown, the code identification module 460 includes two output terminals, and the latch unit 470 adopts a D latch; the inverter program online upgrade architecture also includes a latch data generation unit 480 and a clock signal generation unit 490. The input terminal of the latch data generation unit 480 is respectively connected to one of the output terminals of the code identification module 460 and the output terminal of the controller 420; so that the controller 420 can send a relay control signal relay_ctrl to the latch data generation unit 480, and the code identification module 460 can send a level signal EN1 to the latch data generation unit 480. The output terminal of the latch data generation unit 480 is connected to the D port of the latch unit 470, so that the latch data generation unit 480 can send a relay control signal relay_ctrl′ to the D port of the latch unit 470. The input terminal of the clock signal generation unit 490 is connected to the other output terminal of the code identification module 460, so that the code identification module 460 can send a level signal EN2 to the clock signal generation unit 490. The output end of the clock signal generating unit 490 is communicatively connected to the EN port of the latch unit 470, so that the clock signal generating unit 490 can send the clock signal clk to the EN port of the latch unit 470. The Q port of the latch unit 470 is communicatively connected to the input end of the first AND gate unit 450, so that the latch unit 470 can send the relay control signal relay_ctrl" for controlling the relay group 160 to the first AND gate unit 450; it should be noted that the relay control signal relay_ctrl" here is a representation of a group of signals, and can actually be a control signal of multiple different relays.

[0052] When the controller 420 is working normally, the constant level relay control signal relay_ctrl sent by the controller 420 can form corresponding level signals EN1 and EN2 through the encoding recognition module 460, and the latch output generating unit 480 and the clock signal generating unit 490 respectively send the relay control signal relay_ctrl′ and the clock signal clk to the latch unit 470 according to the corresponding level signals, and the latch unit 470 can output the corresponding relay control signal relay_ctrl". After the relay control signal relay_ctrl" output by the latch unit 470 and the high level blocking signal relay_block sent by the protection unit 440 pass through the first AND gate unit 450, a relay drive signal relay_drv with the same level as the relay control signal relay_ctrl can be output to drive the relay group 160. The circuit for specifically driving the relay group 160 is the same as the conventional scheme, so it will not be described in detail here.

[0053] After the host computer 410 sends an upgrade instruction to the controller 420, the controller 420 may enter the upgrade mode, and at this time, the controller 420 may send a relay control signal relay_ctrl with a constant duty cycle to the code recognition module 460. Then, the code recognition module 460 may convert the pulse signal of the relay control signal relay_ctrl into a corresponding level signal and send it to the latch signal generating unit 480 and the clock signal generating unit 490. The latch signal generating unit 480 may send the relay control signal relay_ctrl′ to the latch unit 470 according to the received level signal, and the clock signal generating unit 490 may send the clock signal clk to the latch unit 470 according to the received level signal. According to the working logic of the D latch, the latch unit 470 latches and maintains the relay control signal relay_ctrl′ corresponding to the 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 relay control signal relay_ctrl" at the previous moment; the first AND gate unit 450 can also continue to output the relay drive signal relay_drv at the previous moment to drive the relay group 160 to continue to remain closed to achieve the load 300 to continue to work without power failure.

[0054] It should be known that 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 ease of understanding, the truth table of the D latch is as follows: Figure 3 As shown, when the EN port is at a high level, the Q port can output the level signal of the D port; when the EN port is at a low level, the Q port will maintain the level state of the previous moment.

[0055] It is understandable that, since there may be a time error in the communication of the port, when the controller 420 completes the level 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 meets the normal working requirements of the relay group 160. Therefore, in this embodiment, the clock signal clk can be preferably delayed; that is, the role of the clock signal generating unit 490 is to generate a clock signal clk delayed by the setting time of the relay control signal relay_ctrl′.

[0056] In this embodiment, Figure 2 , Figure 4 , Figure 7 and Figure 8 As shown, the coding recognition module 460 includes a duty cycle conversion unit 461, a voltage interval recognition unit 462, and an output signal generating unit 463 which are sequentially connected in communication. The duty cycle conversion unit 461, as the input end of the coding recognition module 460, can be connected in communication with the controller 420, and then the duty cycle conversion unit 461 can receive the relay control signal relay_ctrl sent by the controller 420, and convert it into voltage information according to its duty cycle information d. The voltage interval recognition unit 462 can receive the voltage information sent by the duty cycle conversion unit 461 and compare it with the set threshold. The output signal generating unit 463 can receive the comparison result of the voltage interval recognition unit 462 and output the corresponding level signals EN1 and EN2 to the latch data generating unit 480 and the clock signal generating unit 490.

[0057] It can be understood that the duty cycle conversion unit 461 has various structures. In this embodiment, an RC circuit is preferably used, that is, a resistor R is connected in series between the controller 420 and the voltage interval identification unit 462, and a capacitor C connects the resistor R in parallel to the ground. There are also various specific structures of the voltage interval identification unit 462. In this embodiment, two comparators are preferably used, one of the input ends of the two comparators receives the voltage information v sent by the duty cycle conversion unit 461, and the other input ends of the two comparators respectively input the set threshold value v th1 and v th2 , and v th1 <v th2 The output signal generating unit 463 can generate a signal based on the voltage information v and the threshold v th1 and v th2 The specific structure of the output signal generating unit 463 is related to the level control state of the relay group 160 by the controller 420.

[0058] It should be known that, generally speaking, the controller 420 can send a high level to control the relay group 160 during normal operation; that is, the controller 420 can use a high duty cycle PWM control before upgrading, and a lower duty cycle PWM control can be used in the program upgrade preparation stage. However, in some scenarios, the relay group 160 can also be controlled by a lower duty cycle PWM control when the controller 420 is operating normally, and a high duty cycle PWM control can be used in the program upgrade preparation stage. It should be known that in the above two scenarios, the latch unit 470 always outputs a high-level relay control signal relay_ctrl" to participate in the control of the relay group 160; that is, the closing of the relay group 160 is still a high-level control; and the function of the output signal generating unit 463 is to output corresponding level signals EN1 and EN2 according to different control scenarios to ensure the normal operation of the latch unit 470. For ease of understanding, the following will be described in detail with specific examples for the two control scenarios of the controller 420.

[0059] Specific example 1:

[0060] The controller 420 sends a high level to control the relay group 160 during normal operation. Figure 2 and Figures 4 to 6 As shown, the corresponding threshold v th2 The output terminal of the comparator can be directly connected to the input terminal of the clock signal generating unit 490, that is, the corresponding threshold value v th2 The output of the comparator can be directly used as the output level signal EN2 of the output signal generating unit 463. The output signal generating unit 463 also includes a second AND gate unit, the two input ends of the second AND gate unit are respectively connected to the output ends of the two comparators, the output end of the second AND gate unit is connected to the input end of the latch data generating unit 480, and then the second AND gate unit can send the level signal EN1 to the latch data generating unit 480. The specific structure and working principle of the second AND gate unit are well-known technologies for those skilled in the art, so they will not be elaborated in detail here; the working logic of the second AND gate unit is that it outputs a high level only when the input ends are all high levels.

[0061] Meanwhile, the latch data generating unit 480 has various structures, for example, an OR gate unit can be used; one input end of the latch data generating unit 480 is used to receive the level signal EN1, and the other input end is used to receive the relay control signal relay_ctrl. The clock signal generating unit 490 includes an inverter and a delay unit which are sequentially connected in communication. There are various types of inverters, generally a NOT gate unit is used; the inverter can receive the level signal EN2 and send it to the delay unit after flipping the level state; the delay unit can delay the flipped level signal for a set time and send it to the EN port of the latch unit 470. The specific structure and working principle of the OR gate unit and the NOT gate unit are well-known technologies for those skilled in the art, so they will not be elaborated in detail here; the working logic of the OR gate unit is that the low level is output only when the input ends are all low level; the working logic of the NOT gate unit is that the output is opposite to the input level.

[0062] In this scenario, we can set v>v th2 When v<v th1 When the level signal EN1 is 0, the level signal EN2 is 1; when v th1 <v<v th2 When the level signals EN1 and EN2 are both 1, it can be understood that the threshold value v th1 and v th2 The specific value of can be set according to actual needs. For example, the threshold v th1 Corresponding to a 30% duty cycle, the threshold value v th2 Corresponding to a 70% duty cycle. It should be known that the values ​​0 and 1 of the level signals EN1 and EN2 represent a low level and a high level, respectively. For ease of understanding, the normal operation, upgrade, and shutdown process of the controller 420 will be described in detail below. For the upgrade process of the controller 420, the output duty cycle information d will be reduced from 100% to 50% as an example; for the shutdown control of the controller 420, the duty cycle information d will be reduced from 100% to 0% as an example for detailed description.

[0063] Initially, if Figure 5 and Figure 6 As shown, the duty cycle information d of the relay control signal relay_ctrl output by the controller 420 is 100%. At this time, the value of the voltage information v obtained by the duty cycle conversion unit 461 through duty cycle conversion is greater than the threshold value v th2, so that the level signals EN1 and EN2 are both 0. At this time, the latch data generating unit 480 can output the relay control signal relay_ctrl′ corresponding to the level of the relay control signal relay_ctrl; at the same time, the clock signal generating unit 490 flips the level signal EN2 to a high level through an inverter and then outputs the clock signal clk after delaying the setting time through the delay unit. Further, according to the working logic of the latch unit 470, the latch unit 470 can send a high-level relay control signal relay_ctrl" to participate in the high-level enable control of the relay group 160.

[0064] like Figure 5 As shown, when the controller 420 needs to upgrade the program to reduce the duty cycle information d of the output relay control signal relay_ctrl from 100% to 50%, the value of the voltage information v obtained by the duty cycle conversion unit 461 starts to decrease. When the voltage information v decreases to the threshold value v th2 When Figure 5 The voltage interval identification unit 462 can flip the comparator within the duty cycle identification time, that is, Figure 5 After passing through the output signal generating unit 463, the high-level level signals EN1 and EN2 can be output simultaneously. At this time, the latch data generating unit 480 will continue to output the high-level relay control signal relay_ctrl′ according to the level signal EN1; at the same time, the clock signal generating unit 490 can delay the set time to output the low-level clock signal clk under the action of the inverter and the delay unit; the delay time corresponds to Figure 5 At this time, the latch unit 470 can work in the latch mode according to its own logic relationship, and latch the high-level relay control signal relay_ctrl′ of the previous moment. Then the latch unit 470 can continue to output the corresponding high-level relay control signal relay_ctrl" to participate in the high-level enable control of the relay group 160, ensuring that the relay group 160 continues to maintain normal closing operation.

[0065] like Figure 6 As shown, when the controller 420 turns off the relay group 160 and reduces the duty cycle information d of the output relay control signal relay_ctrl from 100% to 0%, the value of the voltage information v obtained by the duty cycle conversion unit 461 decreases rapidly. When the voltage information v decreases to the threshold value v th2 When Figure 6 The comparator in the voltage interval identification unit 462 is flipped, and after passing through the output signal generation unit 463, high-level level signals EN1 and EN2 can be output simultaneously. But soon the voltage signal v will drop to the threshold value v th1,Right now Figure 6 The comparator in the voltage interval identification unit 462 will be flipped again, outputting a low level signal EN1 and a high level signal EN2.

[0066] During this process, the relay control signal relay_ctrl′ output by the latch data generating unit 480 first turns to a high level and then quickly turns to a low level. At the same time, the clock signal generating unit 490 can delay the set time to output the low-level clock signal clk under the action of the inverter and the delay unit. At this time, the latch unit 470 can latch the low-level relay control signal relay_ctrl′ according to its own logical relationship, that is, the relay control signal relay_ctrl" output by the latch unit 470 is a low level, and then participates in the control of the relay group 160 to realize the shutdown of the relay group 160. Therefore, it is only necessary to reasonably set the delay time of the clock signal generating unit 490, that is Figure 6 In the middle c area, it can be ensured that the latch unit 470 latches the required value without false latching due to the transition state, such as the duty cycle information d of 50% between 100% and 0% will not affect the latching. That is, the low-level clock signal clk is generated from the first flip of the voltage interval identification unit 462, and when the latch unit 470 receives the clock signal clk, the latch unit 470 has received the level signal generated by the second flip of the voltage interval identification unit 462.

[0067] It is understandable that in order to avoid comparator mis-flipping, the RC time constant corresponding to the duty cycle conversion unit 461 can be appropriately increased, or a hysteresis comparator can be used to eliminate the disturbance effect. At the same time, based on the description of the above content, for the upgrade process of the controller 420, it is necessary to keep the voltage information v corresponding to the duty cycle information d output by it within the threshold value v th1 and v th2 The specific structure and working principle of the delay unit are well-known to those skilled in the art, so they will not be elaborated in detail here.

[0068] Specific example 2:

[0069] The controller 420 sends a low duty cycle signal during normal operation to control the relay group 160. Figures 7 to 9 As shown, the corresponding threshold v th2 The output end of the comparator directly sends the level signal EN1 to the latch data generating unit 480. The output signal generating unit 463 also includes a NOT gate unit and a second AND gate unit, the input end of the NOT gate unit is communicatively connected to the level signal EN1, the output end of the NOT gate unit and the output end of another comparator are connected to the input end of the second AND gate unit, and the AND gate unit can output the level signal EN2.

[0070] At the same time, the latch data generating unit 480 adopts an OR gate unit; one input end of the latch data generating unit 480 is used to receive the level signal EN1, and the other input end is used to receive the relay control signal relay_ctrl. The clock signal generating unit 490 includes a delay unit, which can receive the level signal EN2 and delay the set time to send it to the EN port of the latch unit 470.

[0071] In this scenario, we can set v>v th2 When v<v th1 When the level signals EN1 and EN2 are both 0; when v th1 <v<v th2 When the level signal EN1 is 0, the level signal EN2 is 1. For ease of understanding, the following will use the threshold value v th1 Corresponding to a 30% duty cycle, the threshold value v th2 The upgrade process of the controller 420 corresponding to the 70% duty cycle is described in detail. For the upgrade process of the controller 420, the output duty cycle information d is increased from 50% to 100% as an example; for the normal control and shutdown control of the controller 420, the above example 1 can be referred to, and only the level inversion is required.

[0072] like Fig. 9 As shown, when the controller 420 needs to upgrade the program to increase the duty cycle information d of the output relay control signal relay_ctrl from 50% to 100%, the value of the voltage information v obtained by the duty cycle conversion unit 461 will start to increase. When the voltage information v rises to the threshold value v th2 When Fig. 9 The voltage interval identification unit 462 can flip the comparator within the duty cycle identification time, that is, Fig. 9 After passing through the output signal generating unit 463, a high level signal EN1 and a low level signal EN2 can be output simultaneously.

[0073] At this time, the latch data generating unit 480 outputs a high-level relay control signal relay_ctrl′ according to the level signal EN1; at the same time, the clock signal generating unit 490 can output a low-level clock signal clk according to the delay time set by the level signal EN2; the delay time corresponds to Fig. 9At this time, the latch unit 470 can work in the latch mode according to its own logic relationship, and latch the high-level relay control signal relay_ctrl′ of the previous moment. Then the latch unit 470 can continue to output the corresponding high-level relay control signal relay_ctrl" to participate in the high-level enable control of the relay group 160, ensuring that the relay group 160 continues to maintain normal closing operation.

[0074] It can be understood that both of the above two examples can meet the needs of this application, and technical personnel in this field can make their own choices according to actual needs; in order to facilitate the description of subsequent content, the subsequent content will be described using the above example 1 as an example.

[0075] In this embodiment, Figure 2 As shown, after the controller 420 enters the upgrade state, the relay control signal relay_ctrl is pulled down to a low level by resetting the 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 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.

[0076] 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. For easy understanding, the specific structure of the software protection circuit is described below.

[0077] Specifically, Fig.10 As shown, the software protection circuit includes a software protection unit 421, and the software protection unit 421 adopts a third AND gate unit. The input end of the third AND gate unit is connected to the controller 420, so that the controller 420 can send a software protection signal relay_block_s and a relay control signal relay_ctrl to the input end of the third AND gate unit. The output end of the third AND gate unit is connected to the input end of the coding recognition module 460, 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.

[0078] 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 11 to 13As 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.

[0079] Example 1: Fig.11 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 code recognition module 460 for communication, and the remaining controllers 420 are connected to the controller 420 connected to the code recognition module 460 or the host computer 410 for communication.

[0080] 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.

[0081] Example 2: If Fig.12As shown, there are multiple controllers 420, code recognition modules 460, latch units 470, etc., and the controllers 420 are connected to the corresponding code recognition modules 460 and latch units 470 to form a control branch. The controllers 420 as the input ends of each control branch are connected to each other in communication, and one of the controllers 420 is connected to the host computer 410 in communication. 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; and thus the control of the relay group 160 will be jointly determined by the multiple controllers 420.

[0082] 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.

[0083] 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.

[0084] Under this architecture, the controller DSP#1 outputs the relay control signal relay_ctrl_1, which passes through the corresponding control branch to obtain the relay control signal relay_ctrl_1". At the same time, the controller DSP#2 outputs the relay control signal relay_ctrl_2, which passes through the corresponding control branch to obtain the relay control signal relay_ctrl_2". 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 pass 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.

[0085] 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.

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

[0087] 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 jointly controlled 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 SCI 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. The control process under this architecture is the same as that of Example 2 above, so it will not be repeated here.

[0088] 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.

[0089] Another aspect of the present application provides an inverter program online upgrade method using the above inverter program online upgrade architecture, such as Fig.14 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:

[0090] (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.

[0091] 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.

[0092] 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′ at the previous moment maintains a high level to realize the latching of the relay control signal relay_ctrl′ by the latch unit 470.

[0093] (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.

[0094] (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.

[0095] It should be noted that the way to execute the relay maintenance mode in this embodiment is: before the controller 420 executes the program upgrade preparation instruction, the relay control signal relay_ctrl adopts a coding wave mode, such as a constant level wave mode; after executing the program upgrade preparation instruction, the relay control signal relay_ctrl adopts another coding wave mode, such as a 50% duty cycle pulse wave mode. The external circuit performs relay maintenance control by identifying two different codes.

[0096] For ease of understanding, the following will focus on Figure 2 The scenario of the high-level control relay group 160 in the single controller 420 scenario is shown to describe in detail the entire upgrade process of the controller 420. The upgrade process of the controller 420 can be divided into an upgrade preparation phase, an upgrade process phase, and an upgrade completion phase.

[0097] 1. Upgrade preparation stage.

[0098] like Fig.15 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 converts the relay control signal relay_ctrl from a constant high level to a PWM signal; at this time, the duty cycle of the PWM signal is constant, and the intervention threshold v th1 and v th2 Then the relay control signal relay_ctrl can output high-level level signals EN1 and EN2 after passing through the encoding recognition module 460. The level signal EN1 and the relay control signal relay_ctrl can output a high-level relay control signal relay_ctrl′ after passing through the latch data generating unit 480, and the level signal EN2 generates a low-level clock signal clk with a delay of Δt time through the clock signal generating unit 490. The falling edge of the clock signal clk triggers the latching function of the latch unit 470, 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 upper computer 410 and start the upgrade process stage. It should be known that Figure 4 Part A represents the upgrade preparation instruction sent by the host computer 410 to the controller 420 , and part C represents the preparation completion information fed back by the controller 420 to the host computer 410 .

[0099] 2. Upgrade process stage.

[0100] like Fig.15As shown, after receiving the preparation completion information fed back by the controller 420, the host 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 is pulled down to a low level. Then, after passing through the encoding recognition module 460, a low-level level signal EN1 and a high-level level signal EN2 can be output. After the level signal EN1 and the relay control signal relay_ctrl pass through the latch data generation unit 480, a low-level relay control signal relay_ctrl′ can be output; the level signal EN2 passes through the clock signal generation unit 49 and still generates a low-level clock signal clk delayed by Δt time. 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 host computer 410 can send the upgrade program package to the controller 420 through communication and perform the upgrade. It should be known that Fig.15 Part b in the middle represents the process of the host computer 410 sending the upgrade program package to the controller 420.

[0101] 3. Upgrade completion stage.

[0102] like Fig.15As 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 output by the controller 420 is 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 relay control signal relay_ctrl is reset to a high level, the low-level level signals EN1 and EN2 can be output through the encoding recognition module 460. The level signal EN1 and the relay control signal relay_ctrl can output a high-level relay control signal relay_ctrl′ after the latch data generation unit 480. After passing through the clock signal generating unit 490, the level signal EN2 can generate a high level clock signal clk delayed by Δt, so that the latch unit 470 releases the latch state, 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 the closed working state to continue to maintain the non-power-off operation of the load 300.

[0103] 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.

[0104] 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: Fig.16As shown, when the controller 420 performs power-on reset, the relay control signal relay_ctrl outputted by the controller 420 is initially low level; after passing through the coding recognition module 460, the low level level signal EN1 and the high level level signal EN2 can be outputted. After the level signal EN1 and the relay control signal relay_ctrl pass through the latch data generation unit 480, the low level relay control signal relay_ctrl' is outputted. After the level signal EN2 passes through the clock signal generation unit 490, the low level clock signal clk is outputted, and the latch unit 470 latches the current low level relay control signal relay_ctrl'. Until the power-on reset of the controller 420 is completed, the relay control signal relay_ctrl will be set to a high level, and then after passing through the coding recognition module 460, the low level level signals EN1 and EN2 are outputted. After the level signal EN1 and the relay control signal relay_ctrl pass through the latch data generation unit 480, the high level relay control signal relay_ctrl' can be outputted. After passing through the clock signal generating unit 490, the level signal EN2 can generate a high level clock signal clk delayed by Δt time, so that the latch unit 470 releases the latch state, and the relay control signal relay_ctrl" output by the latch unit 470 is the current high level relay control signal relay_ctrl.

[0105] For the normal on-off control scenario of the relay group 160, the specific control process of the controller 420 is as follows: Fig.17 As shown, the controller 420 outputs a low-level relay control signal relay_ctrl, and outputs a low-level level signal EN1 and a high-level level signal EN2 after passing through the code recognition module 460. The level signal EN1 and the relay control signal relay_ctrl pass through the latch data generation unit 480 to output a low-level relay control signal relay_ctrl′. The level signal EN2 passes through the clock signal generation unit 490 to obtain a low-level clock signal clk; at this time, the latch unit 470 latches the current low-level relay control signal relay_ctrl′.

[0106] When the relay control signal relay_ctrl output by the controller 420 is reset to a high level, the encoding recognition module 460 outputs low-level level signals EN1 and EN2 after the recognition delay time. The level signal EN1 and the relay control signal rela y_ctrl can output a high-level relay control signal relay_ctrl′ after passing through the latch data generation unit 480. The level signal EN2 can generate a high-level clock signal clk delayed by Δt time after passing through the clock signal generation unit 490, so that the latch unit 470 releases the latch state, and the relay control signal relay_ctrl" output by the latch unit 470 is the current high-level relay control signal relay_ctrl.

[0107] 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 in communication connection with the host computer, and the controller is suitable for controlling the relay group through a control signal, and the control signal is a coded signal; A coding recognition module; the controller is in communication connection with the coding recognition module, and the coding recognition module is suitable for converting the control signal sent by the controller into a corresponding logic level signal; as well as Latch unit; the latch unit is communicatively connected to the output end of the coding identification module, and the latch unit is suitable for outputting a level signal of the control signal sent by the controller according to the received logic level signal, or latching the high level signal before the controller is upgraded.

2. The inverter program online upgrade architecture according to claim 1, characterized in that: The coding recognition module includes two output terminals, and the latch unit adopts a D latch; The inverter program online upgrade architecture also includes: A latch data generating unit; an output end of the latch data generating unit is communicatively connected to a D port of the latch unit, and one output end of the encoding recognition module and a control signal output by the controller are both communicatively connected to an input end of the latch data generating unit; and A clock signal generating unit; an output end of the clock signal generating unit is communicatively connected to an EN port of the latch unit; another output end of the encoding recognition module is communicatively connected to an input end of the clock signal generating unit.

3. The inverter program online upgrade architecture according to claim 2, characterized in that: The coding recognition module includes a duty cycle conversion unit, a voltage interval recognition unit and an output signal generation unit which are communicatively connected in sequence; The duty cycle conversion unit is adapted to convert the duty cycle information of the control signal sent by the controller into voltage information; The voltage interval identification unit is adapted to compare the voltage information with a set threshold value; The output signal generating unit is adapted to output a corresponding level signal according to the comparison result.

4. The inverter program online upgrade architecture according to claim 3, characterized in that: The output signal generating unit sends level signals EN1 and EN2 to the latch data generating unit and the clock signal generating unit respectively; The voltage interval identification unit includes two comparators, one of the input ends of the two comparators receives the voltage information v sent by the duty cycle conversion unit, and the other input ends of the two comparators respectively input the set threshold value v th1 and v th2 , and v th1 <v th2 ; If the controller is operating normally, it sends a high level to control the relay group; when v>v th2 When v<v th1 When the level signal EN1 is 0, the level signal EN2 is 1; when v th1 <v<v th2 When , the level signals EN1 and EN2 are both 1; If the controller is operating normally, it sends a low duty cycle signal to control the relay group; when v>v th2 When v<v th1 When the level signals EN1 and EN2 are both 0; when v th1 <v<v th2 When , the level signal EN1 is 0 and the level signal EN2 is 1.

5. The inverter program online upgrade architecture according to claim 4, characterized in that: If the controller is operating normally, it sends a high level to control the relay group; the corresponding threshold value v th2 The output of the comparator is directly used as the output level signal EN2 of the output signal generating unit; The output signal generating unit further includes a second AND gate unit, two input terminals of the second AND gate unit are respectively connected to the output terminals of the two comparators for communication, and the second AND gate unit outputs a level signal EN1.

6. The inverter program online upgrade architecture according to claim 4, characterized in that: If the controller is operating normally, it sends a low duty cycle signal to control the relay group; corresponding to the threshold value v th2 The output of the comparator is directly used as the output level signal EN1 of the output signal generating unit; The output signal generating unit also includes a NOT gate unit and a second AND gate unit, the input end of the NOT gate unit is communicatively connected to the level signal EN1, the output end of the NOT gate unit and the output end of another comparator are connected to the input end of the second AND gate unit, and the AND gate unit outputs a level signal EN2.

7. The inverter program online upgrade architecture according to any one of claims 4 to 6, characterized in that: If the controller is operating normally, a high level is sent to control the relay group; the clock signal generating unit includes an inverter and a delay unit that are sequentially connected in communication; the inverter is suitable for receiving the level signal EN2 and sending it to the delay unit after flipping the level state; the delay unit is suitable for delaying the flipped level signal for a set time and sending it to the EN port of the latch unit; If the controller is operating normally, a low duty cycle signal is sent to control the relay group; the clock signal generating unit includes a delay unit, which is suitable for receiving the level signal EN2 and delaying the set time to send it to the EN port of the latch unit.

8. The inverter program online upgrade architecture according to claim 1, 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 communicatively connected to the coding recognition module, and the other controllers are communicatively connected to the controller connected to the coding recognition module or the host computer.

9. The inverter program online upgrade architecture according to claim 1, characterized in that: There are multiple controllers, code recognition modules and latch units, and the controller is connected with corresponding code recognition modules and latch units to form a control branch; The controllers serving as input ends of the control branches are connected to each other for communication, or are connected to the host computer for communication; the latch units serving as output ends of the control branches simultaneously output level control signals for controlling the relay groups.

10. An inverter program online upgrade method using the inverter program online upgrade architecture according to any one of claims 1 to 9, 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 and performs the upgrade; After the control upgrade is completed, a high level is sent to the latch unit to perform normal operation.

Citation Information

Patent Citations

  • Frequency conversion power source based on digital signal processor controlling

    CN101295933A

  • Remote intelligent update device for lightening detection and realization method thereof

    CN101545933A

  • Modulation method and implementation circuit for unit vector to carrying out time-delay superimposition of multi-level space vector

    CN101741274A

  • Radar operation data acquisition platform based on programmable logic

    CN116699607A

  • Control circuit for inverter load side relay

    CN117559659A