Inverter networking method and device

By automatically detecting faults and reassigning roles and addresses in the inverter networking system, the problem of system paralysis caused by host inverter failure is solved, and rapid recovery and efficient communication of the inverter networking system are achieved.

CN118869461APending Publication Date: 2024-10-29NINGBO AUX YONGNENG TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411194000.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the existing inverter networking system, when the host inverter fails, the entire system will be paralyzed, requiring manual intervention for repair, which increases cost and time.

Method used

By sending reading broadcast messages on the serial communication bus, receiving response messages, recording the response time and information of the inverter, establishing a current record table, automatically detecting faults and starting the election process, and reassigning communication addresses and roles to achieve inverter control. Automatic recovery of the converter network.

Benefits of technology

It improves the reliability and communication efficiency of the inverter networking system, reduces manual intervention, and achieves rapid recovery when a fault occurs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869461A_ABST
    Figure CN118869461A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an inverter networking method and device, and relates to the technical field of inverters. The method is applied to an edge device and comprises the following steps: sending a reading broadcast message on a serial communication bus; receiving a plurality of response messages returned to the serial communication bus, wherein each response message comprises information of one inverter; according to the receiving time of the plurality of response messages and the sending time of the reading broadcast message, respectively determining the response time of the plurality of inverters; storing the response time of the plurality of inverters and the information of the plurality of inverters as a current record table; and according to the current record table, communication networking is performed on the plurality of inverters, so that when each inverter has a condition, the accident inverter can be monitored and processed according to the current record table, communication between the inverter networking system and the preset external communication equipment can be quickly recovered, and the reliability and communication efficiency of the inverter networking system are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of inverters, and in particular to an inverter networking method and device. Background Art

[0002] An inverter is a device used to convert direct current to alternating current. It is usually composed of power electronic components, such as switches and capacitors, to achieve the inversion of electrical energy. The operating principle of the inverter is to convert the direct current input into a usable alternating current output for use in power equipment. Inverters usually have a built-in communication interface to communicate with preset external communication devices.

[0003] In the prior art, the inverter networking system first manually determines the master inverter and slave inverter among multiple inverters, and then the master inverter performs communication management and data transmission on the remaining multiple slave inverters according to a preset communication method (such as RS485 communication method), and then the host inverter communicates with a preset external communication device (such as a ZigBee wireless communication repeater).

[0004] However, since the communication efficiency of the inverter networking system mainly depends on the host inverter's management of each slave inverter, when the host inverter in the inverter networking system fails, the inverter networking system will be paralyzed, that is, the host inverter cannot communicate with other slave inverters, nor can it communicate with preset external communication equipment (such as ZigBee wireless communication repeaters). At this time, if the inverter networking system is to be repaired, manual intervention is required, which increases costs. Summary of the invention

[0005] The purpose of the present application includes, for example, providing an inverter networking method and device, which can communicate and network multiple inverters according to a current record table, so that when a problem occurs in each inverter, the faulty inverter can be monitored and processed according to the current record table, so as to quickly restore the communication between the inverter networking system and the preset external communication equipment, thereby improving the reliability and communication efficiency of the inverter networking system.

[0006] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, an embodiment of the present application provides an inverter networking method, which is applied to an edge device, and the method includes:

[0008] Sending reading broadcast message on serial communication bus;

[0009] receiving a plurality of response messages returned to the serial communication bus, each response message including: information of an inverter;

[0010] Determining the response time of the plurality of inverters respectively according to the reception time of the plurality of response messages and the sending time of the reading broadcast message;

[0011] storing the response times of the plurality of inverters and the information of the plurality of inverters as a current record table;

[0012] The multiple inverters are networked for communication according to the current record table.

[0013] Optionally, the information of each inverter includes: a communication address, status indication information and a serial number; the status indication information is used to indicate whether the inverter is a master or a slave;

[0014] The step of performing communication networking on the plurality of inverters according to the current record table includes:

[0015] Determine whether the original host inverter has a fault according to the current record table and the historical record table;

[0016] If the original master inverter fails, an election process is initiated to set a first target inverter among the multiple inverters as a new first master inverter, and to set a first other inverter among the multiple inverters as a new first slave inverter;

[0017] The plurality of inverters are networked for communication according to the first master inverter and the first slave inverter.

[0018] Optionally, determining whether the original host inverter is faulty according to the current record table and the historical record table includes:

[0019] Determine the serial number of the original host inverter according to the status indication information and the serial number in the historical record table;

[0020] Determine whether the information of the original host inverter exists in the current record table according to the information of the multiple inverters in the current record table and the serial number of the original host inverter;

[0021] If the information of the original host inverter does not exist in the current record table, it is determined that the original host inverter is faulty;

[0022] If there is status indication information of at least two inverters including the original host inverter in the current record table indicating that the at least two inverters are both host inverters, it is determined that the original host inverter has a fault.

[0023] Optionally, if the original host inverter fails, starting an election process includes:

[0024] If the original host inverter fails, point-to-point reading is performed on the original host inverter;

[0025] If the point-to-point reading fails, repeating the point-to-point reading for multiple times on the original host inverter;

[0026] If multiple consecutive attempts to copy and read fail, the election process will be initiated.

[0027] Optionally, setting a first target inverter among the multiple inverters as a new first master inverter, and setting a first other inverter among the multiple inverters as a new first slave inverter includes:

[0028] According to the current record table, determine the inverter with the smallest communication address among the multiple inverters as the first target inverter, and update the state indication information of the first target inverter in the historical record table to the host state indication information to indicate that the first target inverter is the new first host inverter;

[0029] updating the state indication information of the first other inverters other than the first target inverter among the plurality of inverters in the historical record table into slave state indication information to indicate that the other inverters are new first slave inverters;

[0030] The information of the original host inverter is deleted from the historical record table.

[0031] Optionally, before determining whether the original host inverter has a fault according to the current record table and the historical record table, the method further includes:

[0032] If the historical record table does not exist, reallocating communication addresses for the multiple inverters according to the response times of the multiple inverters in the current record table;

[0033] According to the reallocated communication addresses of the plurality of inverters, setting a second target inverter among the plurality of inverters as a new second master inverter, and setting a second other inverter among the plurality of inverters as a new second slave inverter;

[0034] The plurality of inverters are networked for communication according to the second master inverter and the second slave inverter.

[0035] Optionally, the reallocating communication addresses for the multiple inverters according to the response times of the multiple inverters in the current record table includes:

[0036] reallocating a plurality of different communication addresses from small to large to the plurality of inverters in order of response time from small to large;

[0037] The step of setting, according to the reallocated communication addresses of the plurality of inverters, a second target inverter among the plurality of inverters as a new second master inverter and setting a second other inverter among the plurality of inverters as a new second slave inverter comprises:

[0038] According to the reallocated communication addresses of the plurality of inverters, determining an inverter with the smallest communication address among the plurality of inverters as the second target inverter;

[0039] Updating the state indication information of the second target inverter in the current record table to the master state indication information, so as to indicate that the second target inverter is set as the new second master inverter, and updating the state indication information of the second other inverter in the current record table to the slave state indication information, so as to indicate that the second other inverter is set as the new second slave inverter;

[0040] The updated current record table is saved as a new history record table.

[0041] Optionally, the performing communication networking on the multiple inverters according to the current record table further includes:

[0042] According to the status indication information of the plurality of inverters in the current record table, determining whether there is a third target inverter in the current record table indicated by the status indication information as a new third host inverter;

[0043] If there is one third target inverter in the current record table, determining whether there are duplicate communication addresses of the plurality of third other inverters according to the communication addresses of the third other inverters among the plurality of inverters in the current record table;

[0044] If the communication addresses of the plurality of third other inverters in the current record table are repeated and the historical record table exists, then according to the current record table and the historical record table, the target serial number that exists in the current record table but does not exist in the historical record table is changed;

[0045] Updating the communication address of the inverter corresponding to the target serial number in the current record table so that the updated communication address is greater than the maximum communication address in the current record table;

[0046] The historical record table is updated according to the updated current record table.

[0047] Optionally, the performing communication networking on the multiple inverters according to the current record table further includes:

[0048] If there are duplicate communication addresses among the multiple third other inverters in the current record table, but they are not in the historical record table, according to the response time of the multiple third other inverters in the current record table, the communication address of the inverter with the longest response time in the current record table is updated so that the updated communication address is greater than the maximum communication address in the current record table; and the updated current record table is saved as a new historical record table.

[0049] In a second aspect, an embodiment of the present application provides an inverter networking device, which is applied to an edge device, and the device includes:

[0050] A sending module, used for sending a reading broadcast message on a serial communication bus;

[0051] A receiving module, used for receiving a plurality of response messages returned to the serial communication bus, each response message including: information of an inverter;

[0052] A determination module, configured to determine the response time of the plurality of inverters respectively according to the reception time of the plurality of response messages and the sending time of the reading broadcast message;

[0053] A storage module, used for storing the response time of the plurality of inverters and the information of the plurality of inverters as a current record table;

[0054] A networking module is used to perform communication networking for the multiple inverters according to the current record table.

[0055] The beneficial effects of the embodiments of the present application include, for example:

[0056] The embodiments of the present application provide an inverter networking method and device, which are applied to edge devices. The edge device sends a reading broadcast message to each inverter through a serial communication bus, so that the edge device sends a reading broadcast message to each inverter at the same time, and then each inverter responds to the edge device one by one according to the reading broadcast message. Since the edge device and each inverter are connected through a serial communication bus, according to the half-duplex communication feature among the key features of the serial communication bus, the reading broadcast message of the edge device and the response message replied by each inverter cannot be carried out at the same time, thereby avoiding data conflicts between the reading broadcast message and the response message; and according to the bus topology feature among the key features of the serial communication bus, when multiple inverters send response information at the same time, a bus contention problem occurs. Therefore, the time for each inverter to upload each inverter information to the edge device is different, that is, the time for the edge device to receive multiple response messages returned to the serial communication bus is different. The same can avoid the occurrence of bus contention problems, and then determine the response time of multiple inverters according to the reception time of multiple response messages and the sending time of the copied broadcast messages; and store the response time of multiple inverters and the information of multiple inverters in the current record table, so that according to the information and response time of multiple inverters in the current record table, when a certain inverter or multiple inverters fail, multiple inverters are networked for communication, so as to monitor and process the accident inverter, so as to quickly restore the communication between the inverter networking system and the preset external communication device, thereby improving the reliability and communication efficiency of the inverter networking system. In addition, the inverter networking method provided in the present application can process the accident inverter (such as automated communication networking) without manual intervention when a certain inverter or multiple inverters fail, thereby realizing the networking recovery of the accident inverter. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A schematic diagram of the structure of an inverter networking system provided in an embodiment of the present application;

[0059] Figure 2 A schematic diagram of the structure of an edge device provided in an embodiment of the present application;

[0060] Figure 3 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 1 ;

[0061] Figure 4 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 2 ;

[0062] Figure 5 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 3 ;

[0063] Figure 6 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 4 ;

[0064] Figure 7 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 5 ;

[0065] Figure 8 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 6 ;

[0066] Fig. 9 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 7 ;

[0067] Fig.10 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 8 ;

[0068] Fig.11 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 9 ;

[0069] Fig.12 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 10 ;

[0070] Fig.13 A schematic diagram of the structure of an inverter networking device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0072] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0073] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0074] In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does 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 therefore cannot be understood as a limitation on the present application.

[0075] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0076] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0077] In order to clearly describe an inverter networking method and device provided in an embodiment of the present application, the inverter networking system is first described in detail with reference to the accompanying drawings. Figure 1 The following is a schematic diagram of the structure of an inverter networking system provided in an embodiment of the present application. Figure 1 As shown, the inverter networking system 100 may include: an edge device 110 and a plurality of inverters 120 .

[0078] Among them, multiple inverters 120 can be connected to the edge device 110 through a preset serial communication bus, so that the edge device 110 can collect information of each inverter 120; and each inverter 120 can also exchange information through a preset serial communication bus; the edge device 110 is connected to a preset external communication device for communication with the preset external communication device according to the data uploaded by each inverter 120. The edge device 110 can be used to execute the inverter networking method. Among them, the preset external communication device can also be selected according to actual conditions. For example, the preset external communication device can be selected as a repeater for ZigBee wireless communication.

[0079] Among them, the preset serial communication bus can be selected according to actual conditions. For example, the preset serial communication bus can be selected as a serial communication bus based on the RS485 communication protocol. The key features of the RS485 communication protocol are: bus topology, that is, all devices connected through the RS485 communication protocol can be connected to the same twisted pair; half-duplex communication, that is, at the same time, devices connected through the RS485 communication protocol can send or receive data, but not at the same time. Devices connected through the RS485 communication protocol have a unique address so that they can communicate with other devices based on the unique address. In master-slave mode, one of the multiple devices can be set as a host device (Master) to control communication, and other devices can be set as slave devices (Slave) to respond to requests from the host device.

[0080] It should be noted that the inverter networking system provided in the embodiment of the present application is composed of an edge device 110 and multiple inverters 120, but in actual applications, the inverter networking system composed of an edge device 110 and multiple inverters 120 can be considered as a unit in the inverter networking system, that is, the inverter networking system in actual applications can be composed of at least one unit.

[0081] In a possible implementation, two edge devices 110 may be provided in a unit in the inverter networking system to avoid the situation where, when an edge device 110-A connected to multiple inverters 120 fails, the other edge device 110-B can continue to perform the function of the edge device 110-A. For example, if two edge devices 110 are provided in a unit, the edge device 110-A and the edge device 110-B are connected in communication, and then the edge device 110-A is connected in communication with multiple inverters 120, and both the edge device 110-A and the edge device 110-B can communicate with a preset external communication device (such as a repeater for ZigBee wireless communication). In this way, when the edge device 110-A fails, the edge device 110-B can copy the data information in the edge device 110-A, and then the edge device 110-B communicates with the preset external communication device (such as a repeater for ZigBee wireless communication) based on the copied information.

[0082] In another possible implementation, when the inverter networking system starts to operate, it can be considered that each inverter is successfully networked and starts to operate. Figure 1For example, the edge device 110 can first set the host mode or slave mode of each inverter 120 according to the actual situation. For example, inverter 120-A is first set as the host mode, and the remaining inverters 120 are all slave modes. Then the information data interaction during the operation of the inverter networking system is mainly the communication between the edge device 110 and the inverter 120-A. After the inverter 120-A collects the information of each inverter 120 in the slave mode, it is uploaded to the edge device 110 through the inverter 120-A, so that the edge device 110 analyzes the information data of each inverter 120 uploaded, and then enables the edge device 110 to communicate with the preset external communication device (such as the repeater of ZigBee wireless communication) according to the analyzed information data. Among them, if the inverter 120-A has a host failure, the edge device 110 can quickly detect the host failure and actively handle it (such as fault repair or automatic networking, etc.) to quickly restore network communication.

[0083] The inverter networking system provided by the embodiment of the present application includes: an edge device and multiple inverters, wherein the multiple inverters can be connected to the edge device through a preset serial communication bus, so that the edge device can collect information of each inverter; and each inverter can also exchange information through a preset serial communication bus; the edge device is connected to a preset external communication device for communication with the preset external communication device according to the data uploaded by each inverter. The edge device is used to execute the inverter networking method. Therefore, the present application provides an inverter networking system that can quickly monitor the fault of the host inverter through the edge device when the host inverter fails, and actively perform repair processing (such as through fault repair or automatic networking) when the host inverter fault is detected, so as to quickly restore the communication between the inverter networking system and the preset external communication device, thereby improving the reliability and communication efficiency of the inverter networking system.

[0084] Furthermore, in order to clearly describe the inverter networking system 100 provided in the above embodiment, the present application also provides a structural diagram of an edge device 110. Figure 2 A schematic diagram of the structure of an edge device provided in an embodiment of the present application. Figure 2 As shown, the edge device 110 may include: a processor 111 and a memory 112 .

[0085] The memory 112 stores machine executable instructions that can be executed by the processor 111, that is, when the edge device 110 is running, the machine readable instructions are executed, and the processor 111 communicates with the memory 112 via a bus. The processor 111 can execute the machine executable instructions to implement the inverter networking method.

[0086] The memory 112, the processor 111 and the bus components are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The mobile storage device includes at least one software function module that can be stored in the memory 112 in the form of software or firmware or solidified in the operating system (OS) of the electronic device. The processor 111 is used to execute the executable modules stored in the memory 112, such as the software function modules and computer programs included in the inverter networking method of the mobile storage medium.

[0087] Among them, the memory 112 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0088] The inverter networking method provided in the embodiment of the present application can be executed by the processor 111 in the edge device 110. The inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail in conjunction with the accompanying drawings as follows. Figure 3 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 1 .like Figure 3 As shown, the method may include:

[0089] S201, sending a reading broadcast message on a serial communication bus.

[0090] In one possible implementation, the edge device sends a reading broadcast message to each inverter in the inverter networking system through a serial communication bus (serial communication bus of RS485 communication protocol) at a preset fixed period to obtain the message of each inverter. The preset fixed period can be selected according to the actual situation, for example, the preset fixed period can be set to 30S.

[0091] It should be noted that the broadcast message reading is an instruction sent by the edge device to each inverter at the same time.

[0092] S202: Receive multiple response messages returned to the serial communication bus.

[0093] Each response message includes: information of an inverter.

[0094] In one possible implementation, each inverter can generate a preset random delay time according to its own attributes, such as the device number, production date, and production sequence number of each inverter. The preset random delay time can be used to characterize the reception time of multiple response messages. Then, each inverter sends information of each inverter to the edge device one by one according to the preset random delay time, and the edge device receives the response messages of multiple inverters returned to the serial communication bus. The preset random delay time can be selected according to actual conditions.

[0095] S203: Determine the response time of the plurality of inverters respectively according to the reception time of the plurality of response messages and the sending time of the copied broadcast message.

[0096] In a possible implementation, the edge device records the reception time of multiple inverter response messages and the transmission time of the broadcast message, and calculates the response time of each inverter according to the following formula (1).

[0097] Response time = receiving time - sending time formula (1)

[0098] S204: Store the response time of the plurality of inverters and the information of the plurality of inverters as a current record table.

[0099] In a possible implementation, the information of the multiple inverters received in step S202 and the response times of the multiple inverters calculated and determined in step S203 are stored in a current record table.

[0100] S205: According to the current record table, multiple inverters are networked for communication.

[0101] In one possible implementation, the edge device, based on the information and response time of multiple inverters in the current record table, communicates and networks multiple inverters when a certain inverter or multiple inverters fail, so as to monitor and process the faulty inverter, so as to quickly restore the communication between the inverter networking system and the preset external communication device, thereby improving the reliability and communication efficiency of the inverter networking system.

[0102] An embodiment of the present application provides an inverter networking method, in which an edge device sends a reading broadcast message to each inverter through a serial communication bus, so that the edge device sends the reading broadcast message to each inverter at the same time, and then each inverter responds to the edge device one by one according to the reading broadcast message. Since the edge device and each inverter are connected through a serial communication bus, according to the half-duplex communication feature among the key features of the serial communication bus, the reading broadcast message of the edge device and the response message replied by each inverter cannot be carried out at the same time, thereby avoiding data conflicts between the reading broadcast message and the response message; and according to the bus topology feature among the key features of the serial communication bus, when multiple inverters send response information at the same time, a bus contention problem occurs. Therefore, the time for each inverter to upload each inverter information to the edge device is different, that is, the time for the edge device to receive multiple response messages returned to the serial communication bus is different. The same can avoid the occurrence of bus contention problems, and then determine the response time of multiple inverters according to the reception time of multiple response messages and the sending time of the copied broadcast messages; and store the response time of multiple inverters and the information of multiple inverters in the current record table, so that according to the information and response time of multiple inverters in the current record table, when a certain inverter or multiple inverters fail, multiple inverters are networked for communication, so as to monitor and process the accident inverter, so as to quickly restore the communication between the inverter networking system and the preset external communication device, thereby improving the reliability and communication efficiency of the inverter networking system. In addition, the inverter networking method provided in the present application can process the accident inverter (such as automated communication networking) without manual intervention when a certain inverter or multiple inverters fail, thereby realizing the networking recovery of the accident inverter.

[0103] Optionally, in a possible implementation, the information of each inverter in the above method may include: communication address, status indication information and serial number. The status indication information is used to indicate whether the inverter is a master or a slave; the serial number is used to indicate a unique coding identifier of the inverter.

[0104] It should be noted that when the inverter networking system is just starting to network, the communication addresses of each inverter are the same, but because the serial number of each inverter is different, the time it takes for each inverter to reply to the edge device is different, that is, the response time between the edge device and each inverter is different. Therefore, the communication address of each inverter can be changed subsequently according to the response time of each inverter.

[0105] Optionally, the inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in combination with the accompanying drawings. Figure 4 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 2 .like Figure 4 As shown, in the above method, communication networking of multiple inverters according to the current record table may include:

[0106] S301. Determine whether the original host inverter has a fault according to the current record table and the historical record table.

[0107] The historical record table contains data from the moment before the current time.

[0108] In one possible implementation, the current record table and the historical record table are compared to determine whether the status indication information in the message of the host inverter in the historical record table and the corresponding inverter in the current record table is the same. If the status indication information in the message of the host inverter in the historical record table and the corresponding inverter in the current record table is different, the corresponding inverter in the current record table (i.e., the original host inverter) has a fault; if the status indication information in the message of the host inverter in the historical record table and the corresponding inverter in the current record table is the same, the original host inverter has no fault.

[0109] S302: If the original master inverter fails, start an election process to set a first target inverter among the multiple inverters as a new first master inverter, and set a first other inverter among the multiple inverters as a new first slave inverter.

[0110] In one possible implementation, when the original host inverter has a fault (such as a communication failure), that is, the original host inverter cannot communicate with the edge device, the edge device can monitor the fault in real time and actively initiate an election process to set the first target inverter among multiple inverters as the new first host inverter, and set the first other inverter among the multiple inverters as the new first slave inverter, and remove the faulty original host inverter from the current record table.

[0111] S303: Perform communication networking for multiple inverters according to the first master inverter and the first slave inverter.

[0112] In one possible implementation, the communication network between the edge device and the plurality of inverters is re-established based on the first master inverter and the first slave inverter.

[0113] The inverter networking method provided by the embodiment of the present application, wherein the information of each inverter includes: a communication address, status indication information and a serial number; the status indication information is used to indicate whether the inverter is a master or a slave; then the edge device determines whether the original master inverter has a fault according to the comparison between the current record table and the historical record table; if the original master inverter has a fault, the election process is started to set the first target inverter among the multiple inverters as the new first master inverter, and the first other inverter among the multiple inverters is set as the new first slave inverter; and according to the first master inverter The first host inverter and the first slave inverter are connected to establish a communication network between the edge device and the first host inverter and the first slave inverter, so that when it is confirmed that the original host inverter has a fault, the edge device can monitor the fault in real time and actively initiate an election process to set the first target inverter among multiple inverters as the new first host inverter, and set the first other inverter among multiple inverters as the new first slave inverter, and remove the faulty original host inverter from the current record table, thereby quickly restoring the communication between the edge device and each inverter, thereby improving the reliability of the inverter networking system.

[0114] The inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in conjunction with the accompanying drawings. Figure 5 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 3 .like Figure 5 As shown, in the above method, determining whether the original host inverter has a fault according to the current record table and the historical record table may include:

[0115] S401. Determine the serial number of the original host inverter according to the status indication information and the serial number in the historical record table.

[0116] In one possible implementation, based on the status indication information in the historical record table that is the inverter of the host, and based on the status indication information that is the inverter of the host, it is determined that the status indication information is the serial number of the inverter of the host, then the serial number is the serial number of the original host inverter in the historical record table.

[0117] S402: Determine whether the information of the original host inverter exists in the current record table according to the information of the multiple inverters in the current record table and the serial number of the original host inverter.

[0118] In one possible implementation, based on the serial number of the original host inverter in the historical record, it is determined whether the serial numbers in the information of multiple inverters in the current record table are the same, that is, it is determined whether the information of the original host inverter exists in the current record table. If not, step S403 is executed; if yes, step S404 is executed.

[0119] S403: If the information of the original host inverter does not exist in the current record table, it is determined that the original host inverter is faulty.

[0120] In one possible implementation, if the serial number of the original host inverter information in the historical record table is not found in the current record table, it can be determined that there is no information of the original host inverter in the current record table, and it can be determined that the original host inverter has a fault (such as a communication fault).

[0121] S404: If the current record table contains status indication information of at least two inverters including the original host inverter, indicating that the at least two inverters are both host inverters, it is determined that the original host inverter has a fault.

[0122] In one possible implementation, if information of the original host inverter exists in the current record table, but status indication information of at least two inverters is also found in the current record table indicating that at least two inverters are host inverters, that is, data of multiple host inverters exists in the current record table, then it can be determined that the original host inverter also has a fault.

[0123] The inverter networking method provided by the embodiment of the present application determines the serial number of the original host inverter in the historical record table according to the serial number of the host in the status indication information in the historical record table and the inverter for the host status indication information; then compares the information of multiple inverters in the current record table with the serial number of the original host inverter to determine whether the information of the original host inverter exists in the current record table; if the information of the original host inverter does not exist in the current record table, that is, there is no information of the host inverter in the current record table, it can be determined that the original host inverter has a communication fault; if there is status indication information of at least two inverters including the original host inverter in the current record table indicating that they are all host inverters, that is, there are multiple host inverters in the current record table, it can also be determined that the original host inverter has a communication fault. That is, the networking communication method provided by the present application can determine that the original host inverter has a communication fault when there is no host inverter or multiple host inverters in the current record table. On the one hand, it can improve the reliability of the inverter networking system. On the other hand, if there are multiple host inverters in the current record table, then due to the key characteristics of the serial communication bus, the serial communication bus will have bus contention problems. When the edge device determines that there are multiple host inverters in the current record table, it confirms that the original host inverter has a communication fault, which can avoid the bus contention problem and improve the communication efficiency of the inverter networking system.

[0124] The inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in conjunction with the accompanying drawings. Figure 6 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 4 .like Figure 6 As shown, in the above method, if the original host inverter fails, the election process is started, which may include:

[0125] S501: If the original host inverter fails, point-to-point reading is performed on the original host inverter.

[0126] In one possible implementation, if the original host inverter fails, that is, there is no information about the host inverter in the current record table or there is information about multiple host inverters, the edge device needs to perform point-to-point reading of the original host inverter, that is, the edge device performs one-to-one information reading with the original host inverter according to the communication address of the original host inverter.

[0127] S502: If the point-to-point reading fails, repeatedly perform point-to-point reading on the original host inverter for multiple times.

[0128] S503: If multiple point-to-point copying fails, the election process is started.

[0129] In one possible implementation, if the edge device does not receive information from the original host inverter when reading the original host inverter point-to-point, it means that the edge device has failed to read the original host inverter point-to-point this time, and the original host inverter can be repeatedly read point-to-point. In general, it can be set to repeat the point-to-point reading of the original host inverter three times after the point-to-point reading fails. If the three point-to-point readings all fail, it means that the original host inverter has a communication failure, and the election process needs to be started to re-select the status indication information of each inverter as the master, and set the inverter other than the master inverter whose initial status indication information is set as a slave inverter.

[0130] The inverter networking method provided by the embodiment of the present application, if the original host inverter has a fault, that is, there is no information of the host inverter in the current record table or there is information of multiple host inverters, it is necessary to perform point-to-point reading on the original host inverter to avoid the failure of receiving the original host inverter information due to the failure to receive the response message or the failure to receive the response message, so as to improve the reliability of the inverter networking system; if the point-to-point reading fails, the original host inverter is repeatedly point-to-point read to improve the reliability of the inverter networking system; if multiple consecutive point-to-multipoint readings fail, the election process is started to re-select the status indication information of each inverter as the host, and set the inverter other than the host inverter whose initial status indication information is set as a slave inverter, thereby quickly restoring the network communication of the inverter networking system.

[0131] The inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in conjunction with the accompanying drawings. Figure 7 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 5 .like Figure 7 As shown, in the above method, setting the first target inverter among the multiple inverters as a new first master inverter, and setting the first other inverter among the multiple inverters as a new first slave inverter may include:

[0132] S601. According to the current record table, determine that the inverter with the smallest communication address among multiple inverters is the first target inverter, and update the status indication information of the first target inverter in the history record table to the host status indication information to indicate that the first target inverter is the new first host inverter.

[0133] S602: Update the state indication information of a first other inverter other than the first target inverter in the plurality of inverters in the history record table to slave state indication information, so as to indicate that the other inverter is a new first slave inverter.

[0134] In one possible implementation, the edge device sets the inverter with the smallest communication address among multiple inverters as the first target inverter based on the current record table, and updates the status indication information of the corresponding first target inverter in the historical record table to host status indication information to indicate that the first target inverter is the new first host inverter, and updates the status indication information of the first other inverter other than the first target inverter among the multiple inverters in the historical record table to slave status indication information to indicate that the other inverters are the new first slave inverters.

[0135] S603: Delete the information of the original host inverter from the historical record table.

[0136] In one possible implementation, because the first target inverter among multiple inverters is reset as the new first host inverter, and the first other inverter other than the first target inverter among the multiple inverters is set as a slave inverter, the information of the original host inverter in the historical record table can be removed to avoid the occurrence of multiple host inverters and the subsequent failure of the original host inverter. Then, the host inverter election process can be initiated through the edge device to quickly restore the network communication of the inverter networking system when the original host inverter fails, thereby improving the reliability of the inverter networking system and improving the communication efficiency of the inverter networking system.

[0137] The inverter networking method provided by the embodiment of the present application can determine, based on the current record table, that the inverter with the smallest communication address among multiple inverters is the first target inverter, and update the status indication information of the first target inverter in the historical record table to the host status indication information to indicate that the target inverter is the new first host inverter; at the same time, update the status indication information of the first other inverter other than the first target inverter among the multiple inverters in the historical record table to the slave status indication information to indicate that the other inverters are the new first slave inverters, and then update the status indication information (i.e., the master-slave information) in the information of each inverter in the historical record table, and delete the information of the original host inverter from the historical record table to avoid the occurrence of multiple host inverters and then the failure of the original host inverter, and then initiate the host inverter election process through the edge device to quickly restore the network communication of the inverter networking system when the original host inverter fails, thereby improving the reliability of the inverter networking system and improving the communication efficiency of the inverter networking system.

[0138] The inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in conjunction with the accompanying drawings. Figure 8 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 6 .like Figure 8 As shown, in the above method, before determining whether the original host inverter has a fault according to the current record table and the historical record table, the method may also include:

[0139] S801. If the historical record table does not exist, reallocate communication addresses for the multiple inverters according to the response times of the multiple inverters in the current record table.

[0140] S802. According to the reallocated communication addresses of the multiple inverters, set a second target inverter among the multiple inverters as a new second master inverter, and set a second other inverter among the multiple inverters as a new second slave inverter.

[0141] In a possible implementation, if there is no history record table in the edge device, that is, each inverter may be offline at this time, then the communication address of each inverter can be reallocated according to the length of the response time of multiple inverters in the current record table. And according to the reallocated communication addresses of the multiple inverters, the second target inverter among the multiple inverters is set as the new second master inverter, and the second other inverter among the multiple inverters is set as the new second slave inverter.

[0142] S803: Perform communication networking for multiple inverters according to the second master inverter and the second slave inverter.

[0143] In one possible implementation, the edge device re-networks multiple inverters for communication based on the reset second master inverter and the second slave inverter without human intervention, which can save costs and improve the intelligence and convenience of the inverter networking system.

[0144] The inverter networking method provided by the embodiment of the present application can, if there is no historical record table in the edge device, reallocate communication addresses for multiple inverters according to the response time of multiple inverters in the current record table; and according to the reallocated communication addresses of the multiple inverters, set the second target inverter among the multiple inverters as a new second host inverter, and at the same time, set the second other inverter among the multiple inverters as a new second slave inverter; then, based on the second host inverter and the second slave inverter, perform communication networking for the multiple inverters. Compared with the prior art, the inverter networking system in the present application can automatically perform inverter communication networking without human intervention, which can save labor costs and improve the intelligence and convenience of the inverter networking system.

[0145] Optionally, in a possible implementation embodiment, in the above method, reallocating communication addresses for multiple inverters according to the response times of multiple inverters in the current record table may include:

[0146] According to the order of the response time of the multiple inverters from small to large, a plurality of different communication addresses from small to large are reallocated to the multiple inverters in sequence.

[0147] In one possible implementation, the edge device may reallocate multiple different communication addresses from small to large to multiple inverters in order of the response time of the multiple inverters from small to large, that is, the length of the response time. That is, the shorter the response time of the inverter, the higher the priority of allocating the communication address to the inverter when the address is reallocated to the inverter; on the contrary, the longer the response time of the inverter, the later the allocation of the communication address to the inverter when the address is reallocated to the inverter.

[0148] Optionally, the inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in combination with the accompanying drawings. Fig. 9 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 7 .like Fig. 9 As shown, in the above method, according to the reallocated communication addresses of the multiple inverters, setting the second target inverter among the multiple inverters as a new second master inverter and setting the second other inverter among the multiple inverters as a new second slave inverter may include:

[0149] S901. According to the reallocated communication addresses of the multiple inverters, determine an inverter with the smallest communication address among the multiple inverters as a second target inverter.

[0150] In one possible implementation, the edge device may set the inverter with the smallest communication address among the multiple inverters as the second target inverter based on the reallocated communication addresses of the multiple inverters, that is, set the smallest communication address for the inverter with the shortest response time, and set the inverter with the smallest communication address as the second target inverter.

[0151] S902. Update the status indication information of the second target inverter in the current record table to the host status indication information to indicate that the second target inverter is set as the new second host inverter, and update the status indication information of the second other inverter in the current record table to the slave status indication information to indicate that the second other inverter is set as the new second slave inverter.

[0152] S903: Save the updated current record table as a new historical record table.

[0153] In one possible implementation, the edge device may update the status indication information of the second target inverter in the current record table to the host status indication information to indicate that the second target inverter is set as the new second host inverter, and update the status indication information of the second other inverter in the current record table to the slave status indication information to indicate that the second other inverter is set as the new second slave inverter, so as to save the updated second host inverter and the second slave inverter in the current record table, and save the updated current record table as a new historical record table.

[0154] In the inverter networking method provided by the embodiment of the present application, the edge device can reallocate multiple different communication addresses from small to large to the multiple inverters in the order of the response time of the multiple inverters from small to large; and according to the communication addresses of the reallocated multiple inverters, set the inverter with the smallest communication address among the multiple inverters as the second target inverter; and update the status indication information of the second target inverter in the current record table to the host status indication information to indicate that the second target inverter is set as the new second host inverter, and at the same time, update the status indication information of the second other inverter in the current record table to the host status indication information. The new is the slave status indication information to indicate that the second other inverter is set as the new second slave inverter; then the second host inverter and the second slave inverter are saved in the current record table, with the updated current record table, and the updated current record table is saved as the new historical record table, and finally, according to the second host inverter and the second slave inverter, multiple inverters are communicated and networked. Compared with the prior art, the inverter networking system in the present application can automatically perform inverter communication networking without human participation, which can save labor costs and improve the intelligence and convenience of the inverter networking system.

[0155] The inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in conjunction with the accompanying drawings. Fig.10 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 8 .like Fig.10 As shown, in the above method, communication networking is performed on multiple inverters according to the current record table, and the method may also include:

[0156] S1001. Determine, based on status indication information of multiple inverters in a current record table, whether there is a third target inverter in the current record table whose status indication information indicates that it is a new third host inverter.

[0157] In one possible implementation, the edge device determines whether there is a third target inverter in the current record table whose status indication information indicates that it is a new third host inverter based on the status indication information of multiple inverters in the current record table. If yes, step S1002 is executed; if not, communication networking is continued based on the original host inverter.

[0158] S1002: If there is a third target inverter in the current record table, determine whether there are duplicate communication addresses of the plurality of third other inverters according to the communication addresses of the third other inverters in the plurality of inverters in the current record table.

[0159] In a possible implementation, if there is a third target inverter in the current record table, that is, there is a new third host inverter in the current record table, it can be considered that the third other inverter among the multiple inverters in the current record table is a new third slave inverter, and then according to the communication address of the third other inverter among the multiple inverters in the current record table, it is determined whether the multiple third other inverters have repeated communication addresses. If so, step S1003 is executed; if not, communication networking is directly performed according to the new third host inverter and the new third slave inverter.

[0160] S1003. If there are duplicate communication addresses of multiple third other inverters in the current record table and there is a historical record table, then according to the current record table and the historical record table, the target serial number that exists in the current record table but does not exist in the historical record table is changed.

[0161] In one possible implementation, if there are duplicate communication addresses for multiple third inverters in the current record table, and there is a historical record table in the edge device, then based on the comparison between the current record table and the historical record table, the target serial number that exists in the current record table but does not exist in the historical record table can be found, that is, the target serial number can be determined based on the comparison between the current record table and the historical record table.

[0162] S1004. Update the communication address of the inverter corresponding to the target serial number in the current record table so that the updated communication address is greater than the maximum communication address in the current record table.

[0163] In one possible implementation, according to the target serial number determined in step S1003, the communication address of the inverter corresponding to the target serial number in the current record table is updated so that the updated communication address of the inverter is greater than the maximum communication address in the current record table.

[0164] For example, if the maximum communication address of each encoder in the current record table is 2, after determining the target serial number, the communication address of the inverter corresponding to the target serial number in the current record table can be set to the maximum communication address (such as 2) + 1, that is, the communication address of the inverter corresponding to the target serial number in the current record table is 3.

[0165] S1005: Update the historical record table according to the updated current record table.

[0166] In a possible implementation, the edge device may update the historical record table according to the current record table after the communication address is updated, that is, save the current record table after the communication address is updated as a new historical record table.

[0167] In the inverter networking method provided by the embodiment of the present application, the edge device determines whether there is a third target inverter in the current record table whose status indication information indicates that it is a new third host inverter based on the status indication information of multiple inverters in the current record table; if there is a third target inverter in the current record table, based on the communication address of the third other inverter among the multiple inverters in the current record table, it is determined whether there are repeated communication addresses of multiple third other inverters; if there are repeated communication addresses of multiple third other inverters in the current record table, and there is a historical record table, then according to the current record table and the historical record table, the target serial number that exists in the current record table but does not exist in the historical record table; then the communication address of the inverter corresponding to the target serial number in the current record table is updated so that the updated communication address is greater than the current record table. the maximum communication address in the record table; according to the updated current record table, the historical record table is updated, that is, the current record table after the communication address is updated is saved as a new historical record table, so that when there is only one host inverter in the current record table, it is checked whether the communication address of the newly added slave inverter is repeated, so as to avoid the subsequent communication between the host inverter and the slave inverter. The information of the slave inverter received by the host inverter is wrong or missed due to the repeated communication address of the slave inverter. This not only improves the reliability of the inverter networking system, but also improves the communication efficiency between the host inverter and the slave inverter by screening the slave inverter with repeated communication addresses and updating the communication address of the slave inverter with repeated communication addresses, thereby improving the communication efficiency of the inverter networking system.

[0168] The inverter networking method provided in the above embodiment of the present application is explained and illustrated in detail as follows in conjunction with the accompanying drawings. Fig.11 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 9 .like Fig.11 As shown, in the above method, communication networking is performed on multiple inverters according to the current record table, and the method may also include:

[0169] S1101. If there are duplicate communication addresses of multiple third other inverters in the current record table, but they are not in the historical record table, according to the response time of multiple third other inverters in the current record table, the communication address of the inverter with the longest response time in the current record table is updated so that the updated communication address is greater than the maximum communication address in the current record table.

[0170] In one possible implementation, if there are repeated communication addresses of multiple third other inverters in the current record table but not in the historical record table, the communication address of the inverter with the longest response time among the multiple third other inverters in the current record table can be updated according to the length of the response time of the multiple third other inverters in the current record table. For example, if there are two third other inverters with the same communication addresses, the communication addresses of the two third other inverters can be changed according to the length of the response time of the two third other inverters, that is, the communication address of the inverter with the longest response time of the two third other inverters is set to be larger than the maximum communication address in the current record table, that is, the maximum communication address in the current record table is 4, for example, then the communication address of the inverter with the longest response time of the two third other inverters can be set to 5, that is, the updated communication address is larger than the maximum communication address in the current record table.

[0171] S1102: Save the updated current record table as a new historical record table.

[0172] In a possible implementation, the updated communication address of the inverter is saved in the current record table to obtain an updated current record table, and the updated current record table is saved as a new historical record table.

[0173] The inverter networking method provided by the embodiment of the present application, if there are repeated communication addresses of multiple third other inverters in the current record table, but not in the historical record table, according to the length of the response time of multiple third other inverters in the current record table, the communication address of the inverter with the longest response time in the current record table is updated, so that the updated communication address of the inverter with the longest response time is greater than the maximum communication address in the current record table, and the updated communication address is saved in the current record table to obtain an updated current record table; then the updated current record table is saved as a new historical record table. Avoid the problem of errors or omissions in the information of the slave inverter received by the host inverter due to the repeated communication address of the slave inverter during the subsequent communication process between the host inverter and the slave inverter, which not only improves the reliability of the inverter networking system, but also improves the communication efficiency between the host inverter and the slave inverter by screening the slave inverter with repeated communication addresses and updating the communication address of the slave inverter with repeated communication addresses, thereby improving the communication efficiency of the inverter networking system.

[0174] To facilitate understanding of the inverter networking method, the present application embodiment further provides an example of a process of the inverter networking method, which is described below in conjunction with the accompanying drawings. Fig.12 A schematic diagram of a method for networking an inverter provided in an embodiment of the present application Figure 10 .like Fig.12As shown, the inverter networking method may include:

[0175] S1201. The edge device sends a reading broadcast message at a preset fixed period to receive multiple response messages uploaded by each inverter.

[0176] The information of each inverter includes: a communication address, status indication information and a serial number; the status indication information is used to indicate whether the inverter is a master or a slave; the serial number is used to indicate a unique coding identifier of the inverter.

[0177] Specifically, the edge device sends a reading broadcast message to each inverter in the inverter networking system through a serial communication bus (serial communication bus of RS485 communication protocol) at a preset fixed period (such as 30S) to obtain the message of each inverter. Then each inverter can generate a preset random delay time according to its own attributes, such as the equipment number, production date and production sequence number of each inverter. The preset random delay time can be used to characterize the reception time of multiple response messages. Then each inverter sends the information of each inverter to the edge device one by one according to the preset random delay time, and the edge device receives the response messages of multiple inverters returned to the serial communication bus.

[0178] S1202. The edge device records the information and response time of each inverter and saves them in a current record table.

[0179] Specifically, the information of each inverter can be obtained through the above step S1201, and then the information of each inverter can be stored in the current record table; and the response time of each inverter can be calculated according to the reception time of the response messages of multiple inverters and the transmission time of the read broadcast message, that is, the above formula (1). Then the response time of each inverter is stored in the current record table.

[0180] S1203: Compare the historical record table and the current record table to determine whether there is a host inverter fault.

[0181] Specifically, the current record table and the historical record table are compared to determine whether the status indication information in the message of the host inverter in the historical record table and the corresponding inverter in the current record table is the same. If the status indication information in the message of the host inverter in the historical record table and the corresponding inverter in the current record table is different, the corresponding inverter in the current record table (i.e., the original host inverter) has a fault, and step S1204 is executed; if the status indication information in the message of the host inverter in the historical record table and the corresponding inverter in the current record table is the same, that is, the original host inverter does not have a fault, and step S1205 is executed.

[0182] S1204: If there is a host inverter failure, the election process is started.

[0183] Specifically, if there is a host inverter failure problem, a point-to-point reading is performed on the original host inverter, that is, the edge device performs a one-to-one information reading with the original host inverter according to the communication address of the original host inverter; if the point-to-point reading fails, the point-to-point reading is repeated at least 3 times on the original host inverter; if 3 consecutive point-to-multipoint readings fail, the election process is started.

[0184] The election process is as follows: according to the current record table, the inverter with the smallest communication address among multiple inverters is the first target inverter, and the status indication information of the first target inverter in the historical record table is updated to the host status indication information to indicate that the target inverter is the new first host inverter; and the status indication information of the first other inverter other than the first target inverter among the multiple inverters in the historical record table is updated to the slave status indication information to indicate that the other inverters are the new first slave inverters; finally, the information of the original host inverter is deleted from the historical record table.

[0185] S1204: If there is no host inverter failure, start the communication networking process.

[0186] Specifically, if there is no host inverter failure problem, first determine whether there are multiple host inverters or no host inverter in the edge device, that is, if the information of the original host inverter does not exist in the current record table, it can be determined that there is no host inverter in the current record table; if there is status indication information of at least two inverters including the original host inverter in the current record table, indicating that at least two inverters are host inverters, then there are at least two host inverters in the current record table.

[0187] If there are multiple master inverters or no master inverter, the communication address is reallocated and the status indication information of each inverter is set (ie, the master and slave are reset) according to the response time of each inverter.

[0188] If there are no multiple host inverters or no host inverter, it means that there is only one host inverter in the current record table, and it is necessary to determine whether the communication addresses of the slave inverters in the current record table are repeated. If so, check whether there is a historical record table. If there is a historical record table, retrieve the target serial number that exists in the current record table but does not exist in the historical record table from the historical record table, set the communication address of the inverter corresponding to this target serial number to the maximum address + 1, and update the current record table and the historical record table; if there is no historical record table, set the communication address of the inverter with a long response time to the maximum address + 1 according to the length of the response time, and save the updated current record table as a new historical record table.

[0189] If there is no duplication of communication addresses among the slave inverters in the current record table, communication networking can be performed based on one master inverter and multiple slave inverters.

[0190] The inverter networking method provided by the embodiment of the present application is that the edge device sends a reading broadcast message at a preset fixed period to receive multiple response messages uploaded by each inverter. Then, the edge device records the information and response time of each inverter and saves it in the current record table. Then, the historical record table and the current record table are compared to determine whether there is a host inverter fault problem. If there is a host inverter fault problem, the election process is started; if there is no host inverter fault problem, the communication networking process is started. Therefore, the inverter networking method provided by the present application, when a certain inverter or multiple inverters fail, multiple inverters are communicated and networked to monitor and process the fault inverter, so as to quickly restore the communication between the inverter networking system and the preset external communication device, thereby improving the reliability and communication efficiency of the inverter networking system.

[0191] Based on the same inventive concept, an inverter networking device is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the inverter networking method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0192] Fig.13 This is a schematic diagram of the structure of an inverter networking device provided in an embodiment of the present application. Fig.13 As shown, the inverter networking device 1300 may include:

[0193] The sending module 1301 is used to send a reading broadcast message on a serial communication bus;

[0194] The receiving module 1302 is used to receive multiple response messages returned to the serial communication bus, each response message including: information of an inverter;

[0195] A determination module 1303, configured to determine the response time of the plurality of inverters respectively according to the reception time of the plurality of response messages and the transmission time of the read broadcast message;

[0196] The storage module 1304 is used to store the response time of multiple inverters and the information of multiple inverters as a current record table;

[0197] The networking module 1305 is used to perform communication networking for multiple inverters according to the current record table.

[0198] In an optional embodiment, the information of each inverter includes: a communication address, status indication information and a serial number; the status indication information is used to indicate whether the inverter is a host or a slave; the networking module 1305 is specifically used to: determine whether the original host inverter has a fault based on the current record table and the historical record table; if the original host inverter has a fault, start the election process to set the first target inverter among the multiple inverters as the new first host inverter, and set the first other inverter among the multiple inverters as the new first slave inverter; based on the first host inverter and the first slave inverter, the multiple inverters are communicated and networked.

[0199] In an optional embodiment, the networking module 1305 is specifically used to: determine the serial number of the original host inverter based on the status indication information and the serial number in the historical record table; determine whether there is information about the original host inverter in the current record table based on the information of multiple inverters in the current record table and the serial number of the original host inverter; if there is no information about the original host inverter in the current record table, determine that there is a fault in the original host inverter; if there is status indication information of at least two inverters including the original host inverter in the current record table, indicating that at least two inverters are host inverters, determine that there is a fault in the original host inverter.

[0200] In an optional implementation, the networking module 1305 is specifically used to: if the original host inverter fails, perform point-to-point reading on the original host inverter; if the point-to-point reading fails, repeat the point-to-point reading on the original host inverter for multiple times; if multiple consecutive point-to-multipoint readings fail, start the election process.

[0201] In an optional embodiment, the networking module 1305 is specifically used to: determine, based on the current record table, the inverter with the smallest communication address among multiple inverters as the first target inverter, and update the status indication information of the first target inverter in the historical record table to the host status indication information to indicate that the target inverter is the new first host inverter; update the status indication information of the first other inverter other than the first target inverter among the multiple inverters in the historical record table to the slave status indication information to indicate that the other inverters are the new first slave inverters; delete the information of the original host inverter from the historical record table.

[0202] In an optional embodiment, the networking module 1305 is also used to: if there is no historical record table, reallocate communication addresses for multiple inverters according to the response time of the multiple inverters in the current record table; set the second target inverter among the multiple inverters as a new second host inverter and the second other inverter among the multiple inverters as a new second slave inverter according to the reallocated communication addresses of the multiple inverters; and perform communication networking for the multiple inverters according to the second host inverter and the second slave inverter.

[0203] In an optional implementation, the networking module 1305 is specifically used to: reallocate a plurality of different communication addresses from small to large to the plurality of inverters in order from small to large response times of the plurality of inverters.

[0204] In an optional embodiment, the networking module 1305 is specifically used to: determine the inverter with the smallest communication address among the multiple inverters as the second target inverter based on the reallocated communication addresses of the multiple inverters; update the status indication information of the second target inverter in the current record table to the host status indication information to indicate that the second target inverter is set as the new second host inverter, and update the status indication information of the second other inverter in the current record table to the slave status indication information to indicate that the second other inverter is set as the new second slave inverter; save the updated current record table as a new historical record table.

[0205] In an optional embodiment, the networking module 1305 is also used to: determine whether there is a third target inverter in the current record table whose status indication information indicates that it is a new third host inverter based on the status indication information of multiple inverters in the current record table; if there is a third target inverter in the current record table, determine whether there are duplicate communication addresses for multiple third other inverters based on the communication addresses of the third other inverters among the multiple inverters in the current record table; if there are duplicate communication addresses for multiple third other inverters in the current record table, and there is a historical record table, then based on the current record table and the historical record table, update the target serial number that exists in the current record table but does not exist in the historical record table; update the communication address of the inverter corresponding to the target serial number in the current record table, so that the updated communication address is greater than the maximum communication address in the current record table; and update the historical record table based on the updated current record table.

[0206] In an optional embodiment, the networking module 1305 is also used for: if there are duplicate communication addresses for multiple third other inverters in the current record table, but they are not in the historical record table, according to the response time of the multiple third other inverters in the current record table, the communication address of the inverter with the longest response time in the current record table is updated so that the updated communication address is greater than the maximum communication address in the current record table; and the updated current record table is saved as a new historical record table.

[0207] It should be noted that for details not disclosed in the inverter networking device of the embodiment of the present application, please refer to the details disclosed in the inverter networking method of the embodiment of the present application, and the details will not be repeated here.

[0208] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0209] Optionally, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor executes the steps of the inverter networking method of the mobile storage medium in the above embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0210] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0211] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0212] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0213] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0214] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An inverter networking method, characterized in that: Applied to an edge device, the method comprises: Sending reading broadcast message on serial communication bus; receiving a plurality of response messages returned to the serial communication bus, each response message including: information of an inverter; Determining the response time of the plurality of inverters respectively according to the reception time of the plurality of response messages and the sending time of the reading broadcast message; storing the response times of the plurality of inverters and the information of the plurality of inverters as a current record table; The multiple inverters are networked for communication according to the current record table.

2. The inverter networking method according to claim 1, characterized in that: The information of each inverter includes: a communication address, status indication information and a serial number; the status indication information is used to indicate whether the inverter is a master or a slave; The step of performing communication networking on the plurality of inverters according to the current record table includes: Determine whether the original host inverter has a fault according to the current record table and the historical record table; If the original master inverter fails, an election process is initiated to set a first target inverter among the multiple inverters as a new first master inverter, and to set a first other inverter among the multiple inverters as a new first slave inverter; The plurality of inverters are networked for communication according to the first master inverter and the first slave inverter.

3. The inverter networking method according to claim 2, characterized in that: The determining whether the original host inverter has a fault according to the current record table and the historical record table includes: Determine the serial number of the original host inverter according to the status indication information and the serial number in the historical record table; Determine whether the information of the original host inverter exists in the current record table according to the information of the multiple inverters in the current record table and the serial number of the original host inverter; If the information of the original host inverter does not exist in the current record table, it is determined that the original host inverter is faulty; If there is status indication information of at least two inverters including the original host inverter in the current record table indicating that the at least two inverters are both host inverters, it is determined that the original host inverter has a fault.

4. The inverter networking method according to claim 2, characterized in that: If the original host inverter fails, the election process is started, including: If the original host inverter fails, point-to-point reading is performed on the original host inverter; If the point-to-point reading fails, repeating the point-to-point reading for multiple times on the original host inverter; If multiple consecutive attempts to copy and read fail, the election process will be initiated.

5. The inverter networking method according to claim 2, characterized in that: The step of setting a first target inverter among the plurality of inverters as a new first master inverter and setting a first other inverter among the plurality of inverters as a new first slave inverter comprises: According to the current record table, determine the inverter with the smallest communication address among the multiple inverters as the first target inverter, and update the state indication information of the first target inverter in the historical record table to the host state indication information to indicate that the first target inverter is the new first host inverter; updating the state indication information of the first other inverters other than the first target inverter in the plurality of inverters in the history record table into slave state indication information to indicate that the other inverters are new first slave inverters; The information of the original host inverter is deleted from the historical record table.

6. The inverter networking method according to claim 2, characterized in that: Before determining whether the original host inverter has a fault according to the current record table and the historical record table, the method further includes: If the historical record table does not exist, reallocating communication addresses for the multiple inverters according to the response times of the multiple inverters in the current record table; According to the reallocated communication addresses of the plurality of inverters, setting a second target inverter among the plurality of inverters as a new second master inverter, and setting a second other inverter among the plurality of inverters as a new second slave inverter; The plurality of inverters are networked for communication according to the second master inverter and the second slave inverter.

7. The inverter networking method according to claim 6, characterized in that: The reallocating communication addresses for the multiple inverters according to the response times of the multiple inverters in the current record table includes: reallocating a plurality of different communication addresses from small to large to the plurality of inverters in order of response time from small to large; The step of setting, according to the reallocated communication addresses of the plurality of inverters, a second target inverter among the plurality of inverters as a new second master inverter and setting a second other inverter among the plurality of inverters as a new second slave inverter comprises: According to the reallocated communication addresses of the plurality of inverters, determining an inverter with the smallest communication address among the plurality of inverters as the second target inverter; Updating the state indication information of the second target inverter in the current record table to the master state indication information, so as to indicate that the second target inverter is set as the new second master inverter, and updating the state indication information of the second other inverter in the current record table to the slave state indication information, so as to indicate that the second other inverter is set as the new second slave inverter; The updated current record table is saved as a new history record table.

8. The inverter networking method according to claim 2, characterized in that: The communicating and networking the plurality of inverters according to the current record table further includes: According to the status indication information of the plurality of inverters in the current record table, determining whether there is a third target inverter in the current record table indicated by the status indication information as a new third host inverter; If there is one third target inverter in the current record table, determining whether there are duplicate communication addresses of the plurality of third other inverters according to the communication addresses of the third other inverters among the plurality of inverters in the current record table; If the communication addresses of the plurality of third other inverters in the current record table are repeated and the historical record table exists, then according to the current record table and the historical record table, the target serial number that exists in the current record table but does not exist in the historical record table is changed; Updating the communication address of the inverter corresponding to the target serial number in the current record table so that the updated communication address is greater than the maximum communication address in the current record table; The historical record table is updated according to the updated current record table.

9. The inverter networking method according to claim 8, characterized in that: The communicating and networking the plurality of inverters according to the current record table further includes: If the communication addresses of the multiple third other inverters in the current record table are repeated but not in the historical record table, the communication address of the inverter with the longest response time in the current record table is updated according to the response time of the multiple third other inverters in the current record table, so that the updated communication address is greater than the maximum communication address in the current record table; The updated current record table is saved as a new history record table.

10. An inverter networking device, characterized in that: Applied to edge devices, the device comprises: A sending module, used for sending a reading broadcast message on a serial communication bus; A receiving module, used for receiving a plurality of response messages returned to the serial communication bus, each response message including: information of an inverter; A determination module, configured to determine the response time of the plurality of inverters respectively according to the reception time of the plurality of response messages and the sending time of the reading broadcast message; A storage module, used for storing the response time of the plurality of inverters and the information of the plurality of inverters as a current record table; A networking module is used to perform communication networking for the multiple inverters according to the current record table.

Citation Information

Cited By

  • Energy storage system

    CN121441886A