Method and device for determining host inverter, inverter system and medium

Through automatic determination and comparison of equipment identification codes, a new host inverter is quickly determined and selected, which solves the shutdown problem caused by host failure in traditional systems, ensures the stability and efficiency of the energy storage system, and reduces configuration complexity. and hardware costs.

CN118539587APending Publication Date: 2024-08-23HUIZHOU HUINENG JINGDIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410593354.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the traditional parallel inverter system, when the host inverter fails, the entire energy storage system will shut down, affecting work efficiency and system stability, and the host inverter needs to be quickly replaced to resume operation.

Method used

By setting the flag bit in the inverter system, it can automatically determine whether there is a host inverter, and when there is no host, quickly determine and select a new host inverter through device identification code comparison to ensure system stability, and No manual software configuration or additional hardware is required.

Benefits of technology

It enables the host inverter to be quickly determined and replaced when the host fails, ensuring system stability and reducing system configuration complexity and hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118539587A
    Figure CN118539587A
Patent Text Reader

Abstract

The invention discloses a host inverter determination method and device, an inverter system and a medium. The method is applied to an inverter system, the inverter system comprises at least two inverters, the at least two inverters are connected through a bus, and the method comprises the following steps: in response to determining that a target inverter does not exist in the at least two inverters, receiving phase information of each inverter; for each inverter, generating an equipment identification code of the inverter based on the phase information and the data code of the inverter under the current communication protocol; determining current phase information; and in response to the fact that the current phase information is the preset phase, determining the host inverter based on each equipment identification code. By automatically judging whether the host exists or not and comparing through the equipment identification code when the host does not exist, the host is determined in time, the phase of the host is limited through the preset phase, the stability of the system is ensured, manual software configuration or hardware configuration increase is not needed, and the complexity of system configuration and the hardware cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of inverter technology, and in particular to a method and device for determining a host inverter, an inverter system and a medium. Background Art

[0002] In the parallel inverter system, the host inverter is the main body for generating and sending synchronization signals, so the selection and rotation of the host inverter must be reliable, fast and stable.

[0003] In the prior art, in a traditional parallel inverter system, when a host device fails, the entire energy storage system will shut down, and the energy storage system can only operate again after the host fault is eliminated. This mode will affect the working efficiency of the energy storage system and the stability of the system operation. Therefore, how to quickly replace the host inverter when the host inverter fails has become an urgent problem to be solved. Summary of the invention

[0004] The present invention provides a method and device for determining a host inverter, an inverter system and a medium, so as to realize rapid determination of the host inverter.

[0005] According to a first aspect of the present invention, a method for determining a host inverter is provided, which is applied to an inverter system, wherein the inverter system includes at least two inverters, and the at least two inverters are connected via a bus, comprising:

[0006] In response to determining that the target inverter does not exist in at least two of the inverters, receiving phase information of each of the inverters;

[0007] For each of the inverters, based on the phase information and the data encoding of the inverter under the current communication protocol, generate a device identification code of the inverter;

[0008] Based on each of the device identification codes, determining current phase information of each of the inverters;

[0009] In response to the current phase information being a preset phase, a host inverter is determined based on each of the device identification codes.

[0010] According to a second aspect of the present invention, a host inverter determination device is provided, characterized in that it is applied to an inverter system, the inverter system includes at least two inverters, and the at least two inverters are connected via a bus, and the device includes:

[0011] An information receiving module, configured to receive phase information of each of the inverters in response to determining that the target inverter does not exist in at least two of the inverters;

[0012] An identification code generating module, configured to generate, for each of the inverters, a device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol;

[0013] An information determination module, configured to determine current phase information of each inverter based on each device identification code;

[0014] The inverter determination module is used to determine the host inverter based on each of the device identification codes in response to the current phase information being a preset phase.

[0015] According to a third aspect of the present invention, there is provided an inverter system, the inverter system comprising: at least two inverters, the at least two inverters being connected via a bus;

[0016] Also includes at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for determining the host inverter described in any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the host inverter determination method described in any embodiment of the present invention when executed.

[0020] The technical solution of the embodiment of the present invention is applied to an inverter system, wherein the inverter system includes at least two inverters, and the at least two inverters are connected through a bus, including: in response to determining that the target inverter does not exist in at least two inverters, receiving the phase information of each inverter; for each inverter, generating the device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol; determining the current phase information of each inverter based on each device identification code; in response to the current phase information being a preset phase, determining the host inverter based on each device identification code. By automatically determining whether there is a host in the system, comparing the device identification code when there is no host, and generating a new host in a short time, timely determination of the host inverter is achieved, and the phase of the host is limited by the preset host phase condition, thereby ensuring the stability of the system, without the need for manual software configuration or additional hardware configuration, and reducing the complexity of system configuration and hardware cost.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a flow chart of a method for determining a host inverter provided according to Embodiment 1 of the present invention;

[0024] Figure 2 is a flow chart of a method for determining a host inverter provided in accordance with a second embodiment of the present invention;

[0025] Figure 3 is an example flow chart of a method for determining a host inverter provided according to Embodiment 2 of the present invention;

[0026] Figure 4 is a structural schematic diagram of a host inverter determination device provided according to Embodiment 3 of the present invention;

[0027] Figure 5 It is a schematic diagram of the structure of an inverter implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] In the parallel inverter system, the host inverter is the main body for generating and sending synchronization signals, so the selection and rotation of the host inverter must be reliable, fast and stable. In the prior art, in the traditional parallel inverter system, when the host device fails, the entire energy storage system will shut down, and the energy storage system can only operate again after the host fault is eliminated. This mode will affect the working efficiency of the energy storage system and the stability of the system operation. Therefore, how to quickly replace the host inverter when the host inverter fails has become an urgent problem to be solved.

[0031] The present invention characterizes the state of each inverter by setting flags with different characterization functions, and realizes automatic determination of whether a host exists by polling the flags of the inverter used to characterize the host. When there is no host, the device identification code of each inverter is compared, and the host inverter is selected according to the comparison result. The host inverter is determined in time, and the phase of the host is limited by the preset phase, which ensures the stability of the system, does not require manual software configuration or additional hardware configuration, and reduces the complexity of system configuration and hardware cost.

[0032] Embodiment 1

[0033] Figure 1 A flowchart of a method for determining a host inverter is provided for the first embodiment of the present invention. This embodiment is applicable to a situation where the parallel inverter system includes at least two inverters, and the at least two inverters are connected via a bus. The method is applied to the inverter system, and the inverter system includes at least two inverters, and the at least two inverters are connected via a bus. The method can be executed by a host inverter determination device, and the host inverter determination device can be implemented in the form of hardware and / or software, and the host inverter determination device can be configured in the inverter system. Figure 1 As shown, the method includes:

[0034] S110 . In response to determining that the target inverter does not exist in the at least two inverters, receive phase information of each inverter.

[0035] In this embodiment, the target inverter can be understood as an inverter that serves as a host in the inverter system. The inverter can be understood as an inverter connected in the inverter system, or as an inverter outside the parallel inverter system that needs to be connected to the parallel system. The phase information can be understood as information used to characterize the phase of each inverter itself.

[0036] Specifically, there will be a target inverter as a host inverter in the inverter system. When the target inverter goes offline, the inverter system can poll the inverter. When it is determined through corresponding identification and other methods that the target inverter does not exist among at least two inverters, the inverter system can receive the phase information sent by each inverter through the bus to determine the phase of each inverter.

[0037] S120 . For each inverter, generate a device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol.

[0038] In this embodiment, the device identification code can be understood as an identifier used to transmit its own operating conditions and information to other inverters and inverter systems other than itself, such as including: phase flag, information category flag and data encoding. The phase flag can be understood as a flag used to characterize the phase corresponding to the inverter. The information category flag can be understood as a flag used to characterize the category of transmitted information. The current communication protocol can be understood as the protocol used by each inverter for communication at the current moment, such as a bus protocol. The data encoding can be understood as the encoding form used to transmit data under the current communication protocol, such as the bus protocol corresponds to a data encoding form, and other protocols correspond to b data encoding form.

[0039] Specifically, for each inverter, the corresponding unique ID is recorded in the inverter chip. The inverter system can perform data encoding according to the data encoding method under the current communication protocol based on the phase information and unique ID of the inverter to generate a device identification code for the inverter.

[0040] In this embodiment, the historical device counting result can be understood as the counting result of the devices that meet the preset host phase condition when the inverter information was received last time. The historical host flag bit can be understood as an information identifier used to indicate whether a host already exists in the system.

[0041] S130. Determine current phase information of each inverter based on the identification code of each device.

[0042] In this embodiment, the current phase information may be understood as the phase of the inverter at the current moment.

[0043] Specifically, the inverter system may determine the current phase information of the inverter at the current moment based on the phase mark in the device identification code.

[0044] The local inverter can determine whether all devices that can serve as the host have been polled based on the current counting results. When the polling is completed, the local inverter can determine whether the local inverter can serve as the host based on other ID numbers and the local ID number, and determine whether there is a host in the current system based on the current host flag. If there is, the host is not determined. If not, the host inverter in the parallel inverter system is determined based on other ID numbers and the local ID number.

[0045] S140: In response to the current phase information being a preset phase, determine a host inverter based on identification codes of each device.

[0046] It is understandable that the host inverter needs to be generated in a single phase or in a phase A device. If it is generated in phase B or C, when the system is in a three-phase group, if the host is shut down at this time, the new host will rotate to phase A, causing a 120° sudden change in phase, which will affect the stability of the system. Therefore, a preset host phase condition is set to ensure that the host will only be generated in a single phase or phase A, so that the host will not switch back and forth between the three phases of ABC.

[0047] In this embodiment, the preset phase can be understood as a phase used to determine whether it can be used as a host. For example, if the host is only generated in a single phase or phase A, the preset phase is single phase or phase A. The host inverter can be understood as an inverter used as a host in the inverter system.

[0048] Specifically, for each device identification code received, the inverter system can poll each device identification code, and can compare the current phase information currently polled with the preset phase. When it is the preset phase, the inverter system can count the number of polling times, and compare the flag bit used for host determination in each device identification code to determine the comparison result, and when polling all devices, determine the host inverter through the comparison result. When it is not the preset phase, continue to poll the next device identification code.

[0049] The technical solution of the embodiment of the present invention is applied to an inverter system, wherein the inverter system includes at least two inverters, and the at least two inverters are connected through a bus, including: in response to determining that the target inverter does not exist in at least two inverters, receiving the phase information of each inverter; for each inverter, generating the device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol; determining the current phase information of each inverter based on each device identification code; in response to the current phase information being a preset phase, determining the host inverter based on each device identification code. By automatically determining whether there is a host in the system, comparing the device identification code when there is no host, and generating a new host in a short time, timely determination of the host inverter is achieved, and the phase of the host is limited by the preset host phase condition, thereby ensuring the stability of the system, without the need for manual software configuration or additional hardware configuration, and reducing the complexity of system configuration and hardware cost.

[0050] Embodiment 2

[0051] Figure 2 This is a flow chart of a method for determining a host inverter provided in Embodiment 2 of the present invention. This embodiment is a further refinement of the above embodiment. Figure 2 As shown, the method includes:

[0052] S201. In response to determining that there is no target inverter among at least two inverters, receive phase information of each inverter.

[0053] S202: For each inverter, obtain a unique identification code of the inverter and a type of information transmitted.

[0054] In this embodiment, the unique identification code can be understood as a mark used to identify the inverter, and each inverter corresponds to a unique identification code. The information type can be understood as a type used to indicate the type of information transmitted by the inverter, such as the transmission current data type and voltage data type.

[0055] Specifically, the control chip of the inverter has a unique identification code. The inverter system can read this unique identification code and obtain the information type corresponding to the information transmitted by the inverter. The inverter reads this unique identification code and puts it in the variable Uid_unique to generate an ID number. Each other ID number corresponds to each inverter one by one.

[0056] S203: Determine a phase value corresponding to the phase information based on a preset phase mapping table.

[0057] In this embodiment, the preset phase mapping table can be understood as a table for representing the mapping relationship between phase and phase value. The phase value can be understood as a form of value converted to a readable value under the communication protocol, used to represent the phase in the form of a numerical value or symbol.

[0058] Specifically, the inverter system may search in a preset phase mapping table based on the phase information to determine a corresponding phase value.

[0059] Exemplarily, the phase information may include single phase, A phase, B phase or C phase, and the preset mapping table may be 00 for single phase, 01 for A phase, 02 for B phase and 03 for C phase.

[0060] S204: Determine a type value corresponding to the information type based on a preset type mapping table.

[0061] In this embodiment, the preset type mapping table can be understood as a table for representing the mapping relationship between types and type values. The type value can be understood as a form of value that can be read under the communication protocol, used to represent the information transmission type in the form of numerical value or symbol.

[0062] Specifically, the inverter system may search in a preset phase mapping table based on the information type to determine the corresponding type value. For example, the information types of the transmission current and the transmission voltage are different, and they correspond to different serial numbers for distinction.

[0063] S205: Perform data encoding according to the phase value, the type value and the unique identification code to generate a device identification code of the inverter.

[0064] Specifically, the inverter system may determine the data encoding format under the current communication protocol, and perform data encoding on the phase value, type value and unique identification code according to the format to generate a device identification code of the inverter.

[0065] Exemplarily, the current communication protocol may be a CAN bus, and the encoding format of CAN communication adopts an extended mode, which requires a total of 29 bits; two of which are phase values ​​(including single phase, A phase, B phase, and C phase), for example, 00 for single phase, 01 for A phase, 02 for B phase, and 03 for C phase. Four of them are type values, which can generate 16 different pieces of information, making it easier to distinguish the transmission of different data and functions of the inverter, and the remaining 23 bits are used as unique identification codes for different inverters. The probability of repetition of the device identification code determined by this data encoding method is: 1 / (1 / 2 23 *1 / 2 23 )=1.42*10 -14 , the probability of repetition is extremely low, almost 0.

[0066] S206. Determine current phase information of each inverter based on the identification code of each device.

[0067] S207 . In response to the current phase information being a preset phase, obtaining historical device counting results, historical host flags, and device flags of each inverter.

[0068] In this embodiment, the historical device counting result can be understood as the system's last counting result of the devices in the preset phase. The historical host flag bit can be understood as an information identifier used to indicate whether a host already exists in the system. The device flag bit can be understood as a flag bit used to indicate whether the inverter is the host.

[0069] Specifically, the inverter system can obtain the historical device counting result and historical host flag bit obtained from the last polling in the corresponding storage medium, and can also obtain the device flag bit corresponding to the inverter whose current phase information is the preset phase.

[0070] S208. Update the historical device counting results and the historical host flags based on the flags of each device to obtain the current counting results and the current host flags.

[0071] In this embodiment, the current counting result can be understood as the result after the inverter information is updated and can be represented by MasterCnt. The current host flag can be understood as the flag of whether there is a host in the current system after the inverter information is received. The host flag can be represented by HadMasterFlag. If the flag is set to 1, there is a host in the current system, and if it is set to 0, there is no host.

[0072] Specifically, the inverter system can determine whether there is an inverter as the target inverter based on the flag of each device, and then update the current host flag. When there is no target inverter, the historical device counting result and the historical host flag are updated by the number of devices whose current phase information is the preset phase to obtain the current counting result and the current host flag.

[0073] Exemplarily, the preset phase is single-phase or A-phase, the phase flag of other inverter 1 is A-phase, and the device flag is 0 (indicating that it is not the host), the phase flag of other inverter 2 is A-phase, and the device flag is 1 (indicating that it is the host), the phase flag of other inverter 3 is C-phase, and the other device flag is 0 (indicating that it is not the host). Other inverter 1 and other inverter 2 meet the preset phase, and the historical device counting result can be added by +2 to obtain the current counting result. Since other inverter 2 is the host, the current host flag is 1, indicating that there is a host in the current system, and HadMasterFlag is set to 1.

[0074] Further, based on the above embodiment, the steps of updating the historical device counting results and the historical host flags based on the flags of each device to obtain the current counting results and the current host flags can be refined as follows:

[0075] Based on the identification code of each device, the historical device counting results are accumulated to obtain the current counting result; if there is a host identification in the device flag, the historical host flag is modified to the existing host flag to obtain the current host flag; otherwise, the historical host flag is modified to have no host flag to obtain the current host flag.

[0076] In this embodiment, the host identifier can be understood as a symbol indicating whether it is a host, such as a value of 1 can be used to indicate that it is a host. The existing host flag can be understood as a symbol indicating that a host already exists in the current system, such as a value of 1 can also be used to indicate that it is a host. The non-host flag can be understood as a symbol used to indicate whether it is a host, such as a value of 1 can be used to indicate that it is a host.

[0077] Specifically, the inverter system can accumulate the historical device counting results based on the number of device identification codes to obtain the current counting result. For example, when there are n device identification codes for the preset phase, add n to the historical device counting result to obtain the current counting result. The inverter system can poll the symbols of the device flag bits. When the symbols of other device flag bits polled are host identifiers, the historical host flag bits are modified to the existing host flags to obtain the current host flag bits. If there is no host identifier in the symbols of all received device flag bits, such as all 0, there is no host in the current system. The inverter system can modify the historical host flag bit to have no host flag (such as 0, that is, set HadMasterFlag = 0) to obtain the current host flag bit.

[0078] Exemplarily, other device flags may be represented by MasterFlag. When MasterFlag=1, 1 corresponds to the host identifier, and the historical host flag HadMasterFlag is modified to 1, that is, HadMasterFlag=1.

[0079] S209: poll each device identification code, compare the current device identification code with other device identification codes, and obtain a comparison result.

[0080] In this embodiment, the current device identification code can be understood as the device identification code corresponding to the current inverter polled. Other device identification codes can be understood as identification codes for other inverters at preset phases other than the current device identification code. The comparison result can be understood as a result used to indicate the size relationship.

[0081] Specifically, the inverter system may poll each device identification code in sequence, and compare the current device identification code of the polling with other device identification codes to determine whether the current device identification code is the minimum value therein, and obtain a comparison result.

[0082] S210, determining the host inverter according to each comparison result, the current counting result and the current host flag.

[0083] Specifically, the inverter system can determine the inverter with the minimum value based on the comparison result, and when the current technical result is characterized as polling all devices, the inverter with the minimum value is used as the host inverter, and the current host flag is set to indicate that the host inverter has been selected in the system.

[0084] Further, based on the above embodiment, the steps of determining the host inverter according to each comparison result, the current counting result and the current host flag bit can be refined as follows:

[0085] The comparison result flag of the corresponding inverter is set based on each comparison result; when the current counting result is greater than the preset maximum number of parallel devices, the current device flag of each inverter is determined according to each comparison result flag and the current host flag; the inverter with the host identification in the current device flag is used as the host inverter.

[0086] In this embodiment, the preset maximum number of parallel devices can be understood as a preset upper limit value for indicating the number of devices that can be connected in parallel in the system. The current device flag bit can be understood as a flag bit for indicating whether the local inverter is a host.

[0087] Specifically, when the device counting result is greater than the preset maximum number of parallel devices, all inverter devices under the preset phases have been polled, and the inverter system can determine whether the local machine can serve as a host based on the comparison result flag and the current host flag, and set the current device flag of the current device based on whether it can serve as a host. The inverter system can use the inverter identified as a host in the current device flag as a host inverter.

[0088] Among them, the step of setting the comparison result flag bit of the corresponding inverter based on each comparison result can be further optimized to include:

[0089] If the comparison result shows that all other device identification codes are greater than the current device identification code, the comparison result flag position of the corresponding inverter is set to the value corresponding to the candidate host; otherwise, the comparison result flag position is set to the value corresponding to the non-candidate host.

[0090] In this embodiment, the value corresponding to the candidate host indicates a value that can be used as a host, for example, it may be 0. Correspondingly, the value corresponding to the non-candidate host indicates a value that cannot be used as a host, for example, it may be 1.

[0091] Specifically, if the comparison result is that the other device identification codes are all greater than the current device identification code, that is, the current device identification code is the minimum value, then the inverter system can set the comparison result flag to the value corresponding to the candidate host, and obtain the current local ID comparison result flag (that is, set IDNumBig=0); otherwise, that is, the current device identification code is not the minimum number in the system, then the inverter system can set the comparison result flag to the value corresponding to the non-candidate host.

[0092] Among them, the step of determining the current device flag of each inverter according to each comparison result flag and the current host flag can be further optimized to include:

[0093] If the comparison result flag is the value corresponding to the candidate host, then when the current host flag is no host flag, the current device flag is set to the host flag; otherwise, when the current host flag is no host flag, the current device flag is set to the non-host flag.

[0094] Specifically, if the comparison result flag is a value corresponding to the candidate host (such as IDNumBig=0), that is, the current inverter can be used as the host, then when the current host flag is no host flag (HadMasterFlag=0), that is, when there is no host in the current system, the current inverter can be used as the host, and the current device flag is set to the host flag (MasterFlag=1), and the current device flag is set. If the comparison result flag is a value corresponding to a non-candidate host (such as IDNumBig=1), that is, the current inverter cannot be used as the host, then when the current host flag is no host flag (HadMasterFlag=0), the current device flag is set to the non-host flag (MasterFlag=0), and the current device flag is set. Regardless of the value of the comparison result flag, when the current host flag is a host flag, it corresponds to that there is no need to select a host at present, and the inverter system can set the comparison result flag and the current host flag to the initial value, and return to the phase information receiving step for the next polling.

[0095] The technical solution of the embodiment of the present invention is to filter the inverter information by presetting the host phase condition, filter out other inverters that meet the phase condition and then make other judgments. The host will only be generated in single phase or phase A, so that the host will not switch back and forth between the three phases ABC, causing the standard phase of the system to change back and forth, affecting the stability of the system. The current counting result is determined by the number of inverter information that meets the conditions, and when it is greater than the preset maximum number of parallel devices, the host is selected to ensure that each inverter device is polled to avoid missing determination. Determine whether the current inverter can be used as a host by comparing the result flag. And when the current host flag is no host flag, determine whether the local machine can be used as a host based on the current local ID comparison result flag, and use the current device flag to characterize whether the local machine is the selected host. All inverters in the system are judged in this way, thereby filtering out the host inverter. The host generated in the system is unique. Even if a new machine is added or an old machine is removed in the middle, the host will always be the host as long as the power is not turned off. If the host loses power, this method will generate a new host in a very short time, the time is the interruption period multiplied by the maximum number of machines that can be connected in parallel in the system, so as to realize the timely determination of the host inverter, reduce the time of host determination, and do not need to increase hardware configuration, reduce the complexity of system configuration and hardware cost.

[0096] For the sake of illustrative purposes, a specific example is used to illustrate the present invention. Figure 3 This is an example flow chart of a method for determining a host inverter provided in the second embodiment of the present invention. The preset host phase condition can be whether it is single-phase or A-phase. The host flag bit HadMasterFlag=1 indicates that there is a host, HadMasterFlag=0 indicates that there is no host, the current device flag bit MasterFlag=1 indicates that the local device is the host, the current device flag bit MasterFlag=0 indicates that the local device is not the host, the local ID comparison result flag bit IDNumBigID=0 indicates that it can be used as a host, and IDNumBigID=1 indicates that it cannot be used as a host. Figure 3 As shown, the steps may be:

[0097] S301, receiving the phase information of the inverter, and obtaining the historical device counting result MasterCnt and the historical master flag HadMasterFlag;

[0098] S302: Is the phase information single-phase or phase A? If yes, jump to step S303; if no, jump to step S301;

[0099] S303, MasterCnt plus 1;

[0100] S304: Is there a host identifier in the device flag? If yes, jump to step S306; if no, jump to step S307;

[0101] S305: Are all other device identification codes greater than the current device identification code? If yes, jump to step S308; if not, jump to step S309;

[0102] S306, HadMasterFlag = 1;

[0103] S307, HadMasterFlag = 0;

[0104] S308, comparison result flag IDNumBig=0;

[0105] S309, IDNumBig=1;

[0106] S310, MasterCnt>=preset maximum number of parallel devices Max? If yes, jump to step S311, if no, jump to step S301;

[0107] S311, IDNumBig=0? If yes, jump to step S312, if no, jump to step S313;

[0108] S312, HadMasterFlag = 0? If yes, jump to step S316, if no, jump to step S314;

[0109] S313, HadMasterFlag = 0? If yes, jump to step S315, if no, jump to step S314;

[0110] S314, HadMasterFlag = 0 (initial value), IDNumBig = 0 (initial value);

[0111] S315, current device flag MasterFlag = 0;

[0112] S316. The current device flag MasterFlag=1.

[0113] Embodiment 3

[0114] Figure 4 This is a schematic diagram of the structure of a device for determining parallel host inverters provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: an information receiving module 41, an identification code generating module 42, an information determining module 43 and an inverter determining module 44.

[0115] An information receiving module 41, configured to receive phase information of each of the inverters in response to determining that the target inverter does not exist in at least two of the inverters;

[0116] An identification code generating module 42, configured to generate, for each of the inverters, a device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol;

[0117] An information determination module 43, configured to determine the current phase information of each inverter based on each device identification code;

[0118] The inverter determination module 44 is configured to determine a host inverter based on each of the device identification codes in response to the current phase information being a preset phase.

[0119] The technical solution of the embodiment of the present invention is applied to an inverter system, wherein the inverter system includes at least two inverters, and the at least two inverters are connected through a bus, including: in response to determining that the target inverter does not exist in at least two inverters, receiving the phase information of each inverter; for each inverter, generating the device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol; determining the current phase information of each inverter based on each device identification code; in response to the current phase information being a preset phase, determining the host inverter based on each device identification code. By automatically determining whether there is a host in the system, comparing the device identification code when there is no host, and generating a new host in a short time, timely determination of the host inverter is achieved, and the phase of the host is limited by the preset host phase condition, thereby ensuring the stability of the system, without the need for manual software configuration or additional hardware configuration, and reducing the complexity of system configuration and hardware cost.

[0120] Furthermore, the identification code generating module 42 is specifically used for:

[0121] Obtaining a unique identification code of the inverter and the type of information transmitted;

[0122] Determining a phase value corresponding to the phase information based on a preset phase mapping table;

[0123] Determine the type value corresponding to the information type based on a preset type mapping table;

[0124] Data encoding is performed according to the phase value, the type value and the unique identification code to generate a device identification code of the inverter.

[0125] Further, the inverter determination module 44 includes:

[0126] An information acquisition unit, used to acquire historical device counting results, historical host flags and device flags of each inverter;

[0127] An information updating unit, configured to update the historical device counting result and the historical host flag bit based on each of the device flag bits to obtain a current counting result and a current host flag bit;

[0128] A result determination unit, used to poll each of the device identification codes, compare the current device identification code with other device identification codes, and obtain a comparison result;

[0129] The host determination unit is used to determine the host inverter according to each of the comparison results, the current counting result and the current host flag.

[0130] The information updating unit is specifically used for:

[0131] Based on each of the device identification codes, the historical device counting results are accumulated to obtain a current counting result;

[0132] If a host identifier exists in the device flag, the historical host flag is modified to an existing host flag to obtain a current host flag;

[0133] Otherwise, the historical host flag is modified to have no host flag, and the current host flag is obtained.

[0134] Wherein, the host determination unit includes:

[0135] A setting subunit, used for setting a comparison result flag of a corresponding inverter based on each of the comparison results;

[0136] A first determination subunit, configured to determine a current device flag of each inverter according to each comparison result flag and the current host flag when the current counting result is greater than a preset maximum number of parallel devices;

[0137] The second determining subunit is used to use the inverter with the host identifier in the current device flag as the host inverter.

[0138] The setting subunit is specifically used for:

[0139] If the comparison result is that all the other device identification codes are greater than the current device identification code, the comparison result flag position of the corresponding inverter is set to the value corresponding to the candidate host;

[0140] Otherwise, the comparison result flag is set to a value corresponding to the non-candidate host.

[0141] Wherein, the first determining subunit is specifically used for:

[0142] If the comparison result flag is a value corresponding to the candidate host, then when the current host flag is no host flag, the current device flag is set as the host identifier;

[0143] Otherwise, when the current host flag bit is no host flag, the current device flag bit is set to a non-host flag.

[0144] The apparatus for determining parallel host inverters provided in the embodiment of the present invention can execute the method for determining the host inverter provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0145] Embodiment 4

[0146] Figure 5 The schematic diagram of the structure of an inverter system 50 that can be used to implement an embodiment of the present invention is shown. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0147] like Figure 5 As shown, the inverter system 50 includes at least one processor 51, and a memory connected to the at least one processor 51 in communication, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 to the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the inverter system 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other through a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.

[0148] Multiple components in the inverter system 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the inverter system 50 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0149] The processor 51 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as the determination method of the host inverter.

[0150] In some embodiments, the host inverter determination method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on the inverter system 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the host inverter determination method described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to execute the host inverter determination method in any other appropriate manner (e.g., by means of firmware).

[0151] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0152] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0153] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0154] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0155] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0156] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0157] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0158] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for determining a host inverter, characterized in that: Applied to an inverter system, the inverter system includes at least two inverters, at least two of the inverters are connected via a bus, including: In response to determining that the target inverter does not exist in at least two of the inverters, receiving phase information of each of the inverters; For each of the inverters, based on the phase information and the data encoding of the inverter under the current communication protocol, generate a device identification code of the inverter; Based on each of the device identification codes, determining current phase information of each of the inverters; In response to the current phase information being a preset phase, a host inverter is determined based on each of the device identification codes.

2. The method according to claim 1, characterized in that: The generating of the device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol includes: Obtaining a unique identification code of the inverter and the type of information transmitted; Determining a phase value corresponding to the phase information based on a preset phase mapping table; Determine the type value corresponding to the information type based on a preset type mapping table; Data encoding is performed according to the phase value, the type value and the unique identification code to generate a device identification code of the inverter.

3. The method according to claim 1, characterized in that The determining the host inverter based on each of the device identification codes includes: Obtain historical device counting results, historical host flags, and device flags of each of the inverters; Based on each of the device flags, the historical device counting result and the historical host flag are updated to obtain a current counting result and a current host flag; Polling each of the device identification codes, comparing the current device identification code with other device identification codes, and obtaining a comparison result; The host inverter is determined according to each of the comparison results, the current counting result and the current host flag.

4. The method according to claim 3, characterized in that The updating of the historical device counting result and the historical host flag bit based on each of the device flag bits to obtain the current counting result and the current host flag bit includes: Based on each of the device identification codes, the historical device counting results are accumulated to obtain a current counting result; If a host identifier exists in the device flag, the historical host flag is modified to an existing host flag to obtain a current host flag; Otherwise, the historical host flag is modified to have no host flag, and the current host flag is obtained.

5. The method according to claim 3, characterized in that: The determining of the host inverter according to each of the comparison results, the current counting result and the current host flag bit includes: Setting a comparison result flag of a corresponding inverter based on each of the comparison results; When the current counting result is greater than the preset maximum number of parallel devices, the current device flag of each inverter is determined according to each comparison result flag and the current host flag; The inverter with the host identifier in the current device flag is used as the host inverter.

6. The method according to claim 5, characterized in that The step of setting a comparison result flag bit of a corresponding inverter based on each comparison result includes: If the comparison result is that all the other device identification codes are greater than the current device identification code, the comparison result flag position of the corresponding inverter is set to the value corresponding to the candidate host; Otherwise, the comparison result flag is set to a value corresponding to the non-candidate host.

7. The method according to claim 5, characterized in that The step of determining the current device flag of each inverter according to each comparison result flag and the current host flag includes: If the comparison result flag is a value corresponding to the candidate host, then when the current host flag is no host flag, the current device flag is set as the host identifier; Otherwise, when the current host flag bit is no host flag, the current device flag bit is set to a non-host flag.

8. A host inverter determination device, characterized in that: Applied to an inverter system, the inverter system includes at least two inverters, at least two of the inverters are connected via a bus, and the device includes: An information receiving module, configured to receive phase information of each of the inverters in response to determining that the target inverter does not exist in at least two of the inverters; An identification code generating module, configured to generate, for each of the inverters, a device identification code of the inverter based on the phase information and the data encoding of the inverter under the current communication protocol; An information determination module, configured to determine current phase information of each inverter based on each device identification code; The inverter determination module is used to determine the host inverter based on each of the device identification codes in response to the current phase information being a preset phase.

9. An inverter system, characterized in that: The inverter system comprises: At least two inverters, at least two of the inverters are connected via a bus; Also includes at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the host inverter determination method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining a host inverter according to any one of claims 1 to 7 when executed.