Photovoltaic protocol self-adaption method for distributed power supply access unit
By adopting the distributed power access unit photovoltaic protocol adaptive method in inverter protocol matching, the problem of difficulty in matching inverter protocols in the prior art is solved, the matching success rate and accuracy are improved, and the time cost in the matching process is optimized.
Patent Information
- Application Number
- CN202411769368.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-12-04
AI Technical Summary
The existing inverter protocol matching scheme is difficult to correctly identify unconventional address devices, and as the protocol library increases, the adaptive time increases exponentially, making it impossible to effectively deal with the special baud rate and shared register position problems of some manufacturers.
The distributed power access unit photovoltaic protocol adaptation method is adopted. Through the protocol comparison module, address matching module, baud rate matching module and name maintenance module, priority matching address fields and baud rate are formed, address adaptation and baud rate adaptation are performed in advance, and the accuracy of protocol identification is ensured through feature data comparison.
The success rate of protocol matching is improved, the time cost during the matching process is optimized, the accuracy of protocol identification is ensured, and the changes in the inverter protocol are identified and adapted to the changes in the inverter protocol through periodic self-maintenance.
Smart Images

Figure CN119520492A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of inverter adaptive protocol matching, and in particular to a distributed power supply access unit photovoltaic protocol adaptive method. Background Art
[0002] In the current photovoltaic inverter market, inverters are generally designed in accordance with the modbus protocol. The host address range of modbus is 0x00~0xFF, and the storage data content and data format are flexible and free, without relevant industry regulations. Therefore, different manufacturers have different inverter communication protocols.
[0003] The currently commonly used protocol matching solution is to traverse and verify the protocols of various manufacturers to achieve protocol adaptation, but this method has the following disadvantages: only the protocol adaptation algorithm is used, and it is impossible to correctly identify the devices with unconventional addresses on the market; adding the address adaptation algorithm, together with the protocol adaptation, the adaptation time increases exponentially with the increase of the protocol library; some manufacturers' inverters use special baud rates, and there is no baud rate adaptation process, which will cause the protocol to fail to be successfully identified. In addition, there are some manufacturers' inverter protocols that share register positions, but the meanings are different, which increases the difficulty of protocol matching. Summary of the invention
[0004] The present invention aims to solve the above problems and provides a distributed power supply access unit photovoltaic protocol self-adaptation method, which adopts the following technical solutions: A photovoltaic protocol self-adaptation method for a distributed power access unit includes a protocol comparison module, an address matching module, a baud rate matching module and a roll call maintenance module, including the following steps: S1. Collect inverter communication protocols from existing manufacturers to form a protocol library; S2. Calculate the proportion of supply from different manufacturers in the protocol library to form a comparison library; S3. According to the order of the proportion of manufacturers in the comparison library from high to low, set the address field and baud rate to be matched first, as well as the matching order of the address field and baud rate; S4. Pre-address adaptation and baud rate adaptation are performed in accordance with the matching order of the address field and the baud rate; S5. The protocol comparison module reads and compares the constant fixed value data, matches the protocol to be compared with the existing protocols in the protocol library in sequence, and identifies the inverter information; S6. If no match is successful after step S5, the address matching module changes the address field in the order of address field matching, and then repeats step S5 until the address fields in the comparison library are traversed in a round-robin manner or the protocol match is completed; S7. If there is no match after step S6, the baud rate matching module changes the baud rate in the baud rate matching order, and repeats steps S5 and S6 until the baud rate field in the comparison library is traversed in an incremental manner or the protocol match is completed; S8. If the protocol matching is completed, after the preset equipment operation cycle, the roll call maintenance module will match the protocol that successfully matched in the previous cycle with the currently connected inverter. If the match is successful, the equipment continues to operate. If the match is unsuccessful, repeat steps S5 to S7 and re-match the protocol.
[0005] On the basis of the above scheme, the protocol comparison module presets a data acceptance range, and the data acceptance range is ±102.5% of the rated value.
[0006] Based on the above scheme, the workflow of the protocol comparison module includes the following steps: A1. Read all protocols in the protocol library; A2. Determine whether the comparison of all manufacturer protocols in the protocol library is completed. If it is completed but the protocol match is not achieved, the comparison is determined to have failed. If it is not completed, proceed to step A3; A3. Get the characteristic word of the current inverter manufacturer's protocol; A4. Framing based on the acquired feature words; A5. The access unit sends the framed content in step A4 to the inverter using a downlink channel; A6. The access unit determines whether the inverter has data reply. If no data reply is received, the protocol match is determined to have failed, and the process is repeated from step A2. If data reply is received, the process proceeds to step A7. A7. Determine whether the reply data is within the data acceptance range. If not, the protocol match fails and the process is repeated from step A2. If it is within the data acceptance range, the protocol match succeeds. A8. Store the protocol information of the successfully matched inverter.
[0007] Preferably, the workflow of the roll call maintenance module includes the following steps: B1. The access unit reads the inverter information saved in the last equipment operation cycle; B2. If the reading is not successful, it indicates that the protocol comparison has failed and the matching process is repeated; if the reading is successful, proceed to step B3; B3. Use the read inverter information to perform framing; B4. The access unit sends the framed content to the currently connected inverter using a downlink channel; B5. The access unit determines whether the current inverter has data reply. If no data reply is received, the result of protocol comparison failure is output; if data reply is received, proceed to step B6; B6. Determine whether the reply data is within the acceptable data range. If not, output the result of protocol matching failure; if within the acceptable data range, it indicates that the protocol matching is successful.
[0008] Preferably, the constant fixed value data is grid frequency or voltage.
[0009] The beneficial effects of the present invention are: 1.Add address matching module and baud rate matching module, which can also identify the protocol with modified address and baud rate in the existing protocol normally, thus improving the success rate of protocol matching; 2. Sort the matching order of address adaptation and baud rate adaptation according to the proportion of manufacturers, and give priority to the address fields and baud rates of manufacturers with a larger proportion, so as to increase the probability of successful matching and reduce the time cost in the matching process; 3. The protocol comparison module not only sets the rated value of the data for comparison, but also gives the data acceptance range. The characteristic data is used for comparison during the protocol adaptation process. During the comparison process, not only the inverter is required to have data response, but also the response data is required to be within the acceptance range, so as to ensure the accuracy of protocol recognition. 4. The equipment will perform self-maintenance periodically during operation to identify and determine whether an inverter with a different protocol has been replaced during operation. During maintenance, the protocol that has been matched in the previous cycle will be used for comparison to shorten the maintenance time. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 : Overall flow chart of the adaptive method of the present invention; Figure 2 : Workflow diagram of the protocol comparison module of the present invention; Figure 3 : Workflow diagram of the address matching module of the present invention; Figure 4 : The baud rate matching module workflow diagram of the present invention; Figure 5 : Workflow diagram of roll call maintenance module of the present invention. DETAILED DESCRIPTION
[0011] The present invention will be further described below in conjunction with the accompanying drawings and embodiments: like Figures 1 to 5 As shown, a distributed power access unit photovoltaic protocol self-adaptation method includes a protocol comparison module, an address matching module, a baud rate matching module and a roll call maintenance module, including the following steps: S1. Collect inverter communication protocols from existing manufacturers to form a protocol library; S2. Calculate the proportion of supply from different manufacturers in the protocol library to form a comparison library; S3. According to the order of the proportion of manufacturers in the comparison library from high to low, set the address field and baud rate to be matched first, as well as the matching order of the address field and baud rate; S4. Pre-address adaptation and baud rate adaptation are performed in accordance with the matching order of the address field and the baud rate; S5. The protocol comparison module reads and compares the constant fixed value data, matches the protocol to be compared with the existing protocols in the protocol library in sequence, and identifies the inverter information; the constant fixed value data is the grid frequency or voltage, and can also be other characteristic parameters; S6. If no match is successful after step S5, the address matching module changes the address field in the order of address field matching, and then repeats step S5 until the address fields in the comparison library are traversed in a round-robin manner or the protocol match is completed; S7. If there is no match after step S6, the baud rate matching module changes the baud rate in the baud rate matching order, and repeats steps S5 and S6 until the baud rate field in the comparison library is traversed in an incremental manner or the protocol match is completed; S8. If the protocol matching is completed, after the preset equipment operation cycle, the roll call maintenance module will match the protocol that successfully matched in the previous cycle with the currently connected inverter. If the match is successful, the equipment continues to operate. If the match is unsuccessful, repeat steps S5 to S7 and re-match the protocol.
[0012] The protocol comparison module presets a data acceptance range, and the data acceptance range is ±102.5% of the rated value.
[0013] The workflow of the protocol comparison module includes the following steps: A1. Read all protocols in the protocol library; A2. Determine whether the comparison of all manufacturer protocols in the protocol library is completed. If it is completed but the protocol match is not achieved, the comparison is determined to have failed. If it is not completed, proceed to step A3; A3. Get the characteristic word of the current inverter manufacturer's protocol; A4. Framing based on the acquired feature words; A5. The access unit sends the framed content in step A4 to the inverter using a downlink channel; A6. The access unit determines whether the inverter has data reply. If no data reply is received, the protocol match is determined to have failed, and the process is repeated from step A2. If data reply is received, the process proceeds to step A7. A7. Determine whether the reply data is within the data acceptance range. If not, the protocol match fails and the process is repeated from step A2. If it is within the data acceptance range, the protocol match succeeds. A8. Store the protocol information of the successfully matched inverter.
[0014] The workflow of the roll call maintenance module includes the following steps: B1. The access unit reads the inverter information saved in the last equipment operation cycle; B2. If the reading is not successful, it indicates that the protocol comparison has failed, and the matching process starts again from step S1; if the reading is successful, proceed to step B3; B3. Use the read inverter information to perform framing; B4. The access unit sends the framed content to the currently connected inverter using a downlink channel; B5. The access unit determines whether the current inverter has data reply. If no data reply is received, the result of protocol comparison failure is output; if data reply is received, proceed to step B6; B6. Determine whether the reply data is within the acceptable data range. If not, output the result of protocol matching failure; if within the acceptable data range, it indicates that the protocol matching is successful.
[0015] The present invention is described above by way of examples, but the present invention is not limited to the above specific embodiments, and any changes or modifications made based on the present invention belong to the scope of protection claimed by the present invention.
Claims
1. A distributed power supply access unit photovoltaic protocol adaptive method, characterized in that: It includes a protocol comparison module, an address matching module, a baud rate matching module and a roll call maintenance module, and includes the following steps: S1. Collect inverter communication protocols from existing manufacturers to form a protocol library; S2. Calculate the proportion of supply from different manufacturers in the protocol library to form a comparison library; S3. According to the order of the proportion of manufacturers in the comparison library from high to low, set the address field and baud rate to be matched first, as well as the matching order of the address field and baud rate; S4. Pre-address adaptation and baud rate adaptation are performed in accordance with the matching order of the address field and the baud rate; S5. The protocol comparison module reads and compares the constant fixed value data, matches the protocol to be compared with the existing protocols in the protocol library in sequence, and identifies the inverter information; S6. If no match is successful after step S5, the address matching module changes the address field in the order of address field matching, and then repeats step S5 until the address fields in the comparison library are traversed in a round-robin manner or the protocol match is completed; S7. If there is no match after step S6, the baud rate matching module changes the baud rate in the baud rate matching order, and repeats steps S5 and S6 until the baud rate field in the comparison library is traversed in an incremental manner or the protocol match is completed; S8. If the protocol matching is completed, after the preset equipment operation cycle, the roll call maintenance module will match the protocol that successfully matched in the previous cycle with the currently connected inverter. If the match is successful, the equipment continues to operate. If the match is unsuccessful, repeat steps S5 to S7 and re-match the protocol.
2. A distributed power access unit photovoltaic protocol adaptive method according to claim 1, characterized in that: The protocol comparison module presets a data acceptance range, and the data acceptance range is ±102.5% of the rated value.
3. A distributed power access unit photovoltaic protocol adaptive method according to claim 2, characterized in that: The workflow of the protocol comparison module includes the following steps: A1. Read all protocols in the protocol library; A2. Determine whether the comparison of all manufacturer protocols in the protocol library is completed. If it is completed but the protocol match is not achieved, the comparison is determined to have failed. If it is not completed, proceed to step A3; A3. Get the characteristic word of the current inverter manufacturer's protocol; A4. Framing based on the acquired feature words; A5. The access unit sends the framed content in step A4 to the inverter using a downlink channel; A6. The access unit determines whether the inverter has data reply. If no data reply is received, the protocol match is determined to have failed, and the process is repeated from step A2. If data reply is received, the process proceeds to step A7. A7. Determine whether the reply data is within the data acceptance range. If not, the protocol match fails and the process is repeated from step A2. If it is within the data acceptance range, the protocol match succeeds. A8. Store the protocol information of the successfully matched inverter.
4. A distributed power access unit photovoltaic protocol adaptive method according to claim 2, characterized in that: The workflow of the roll call maintenance module includes the following steps: B1. The access unit reads the inverter information saved in the last equipment operation cycle; B2. If the reading is not successful, it indicates that the protocol comparison has failed and the matching process is repeated; if the reading is successful, proceed to step B3; B3. Use the read inverter information to perform framing; B4. The access unit sends the framed content to the currently connected inverter using a downlink channel; B5. The access unit determines whether the current inverter has data reply. If no data reply is received, the result of protocol comparison failure is output; if data reply is received, proceed to step B6; B6. Determine whether the reply data is within the acceptable data range. If not, output the result of protocol matching failure; if within the acceptable data range, it indicates that the protocol matching is successful.
5. A distributed power access unit photovoltaic protocol adaptive method according to claim 1, characterized in that: The constant fixed value data is grid frequency or voltage.
Citation Information
Patent Citations
Network protocol address-regional information matching method and system
CN107124480A
Method and system for accessing smart device
CN108235801A
Distributed photovoltaic anti-islanding system and method
CN117439266A
Photovoltaic equipment communication protocol self-adaption method
CN117749900A
Photovoltaic inverter identification and working method
CN117880380A
Cited By
Four-fusible terminal protocol self-identification system and method
CN119946159A
Universal inverter copying and reading method based on distributed power supply access unit
CN120299222A
Photovoltaic inverter protocol intelligent identification method and system, electronic equipment and storage medium
CN120812158A
Photovoltaic inverter protocol intelligent identification method and system, electronic device, and storage medium
CN120812158B