Photovoltaic inverter protocol intelligent identification method and system, electronic device, and storage medium
By listening to inverter interaction messages and using baud rate parsing and feature matching, the photovoltaic inverter protocol can be quickly and accurately identified, solving the problems of slow identification speed and low accuracy in existing technologies, and supporting the identification of new protocols and database expansion.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-12
- Publication Date
- 2026-03-24
AI Technical Summary
Existing photovoltaic inverter protocol identification methods suffer from slow identification speed, poor accuracy, and inability to identify new protocols. This is especially true when inverters are diverse, as manually configuring protocol profile information is time-consuming and costly.
By monitoring the interaction messages between the inverter collector and the inverter, parsing and verifying them using different baud rates, extracting message features and matching them with the protocol identification feature library, and combining this with collection command verification, an unknown protocol identification mechanism is adopted to quickly and accurately identify the inverter protocol.
It achieves rapid and highly accurate identification of inverter protocols, avoids communication interference, reduces manual configuration costs, and supports the identification of new protocols and database expansion.
Smart Images

Figure CN120812158B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of protocol self-identification technology, and in particular to a method and system for intelligent identification of photovoltaic inverter protocols, electronic equipment, and computer-readable storage medium. Background Technology
[0002] Currently, to achieve observable, measurable, adjustable, and controllable distributed photovoltaic (PV) power generation projects, thereby enhancing the grid's carrying capacity and regulation capabilities, information exchange between PV inverters and the grid management system is necessary. However, because the communication protocols of PV inverters differ from the unified communication protocol of the grid system, and because inverters can collect data in real time through their own data collectors (i.e., inverter data collectors), grid companies have designed distributed power access units or smart IoT meters between the inverters and inverter data collectors. These distributed power access units facilitate relay communication between the inverters and inverter data collectors. However, due to the variety of existing PV inverter protocols, and the different protocols used by different inverter manufacturers, the distributed power access units or smart IoT meters require manual configuration of the connected PV inverter's protocol profile during on-site installation to achieve information exchange between the PV inverter and the grid system, resulting in high labor costs. In addition, existing technologies have proposed some methods for self-identifying inverter protocols. These methods employ a polling approach, sending stored protocol messages one by one to the inverter. When the inverter responds to a received protocol message, the device type corresponding to that message is identified as the identification result. For example, patents CN116320062A and CN119093601A both use this polling method to achieve self-identification of inverter protocols. However, this polling identification method has the following drawbacks:
[0003] 1) When there are a large number of stored protocol messages, the protocol self-identification takes a long time and the identification speed is slow;
[0004] 2) The method of relying on sending characteristic messages and judging reply messages is easily interfered with, resulting in poor identification accuracy;
[0005] 3) It cannot recognize new inverter protocols. Summary of the Invention
[0006] This invention provides a method and system for intelligent identification of photovoltaic inverter protocols, an electronic device, and a computer-readable storage medium, which can simultaneously improve the speed and accuracy of inverter protocol identification.
[0007] According to one aspect of the present invention, a method for intelligent identification of photovoltaic inverter protocols is provided, comprising the following:
[0008] The system monitors the interaction messages between the inverter collector and the inverter, parses the interaction messages using different baud rates to obtain different parsed messages, and verifies the parsed messages to determine the correct baud rate and parsed message. The correct parsed message includes sending a parsed message and returning a parsed message.
[0009] Extract the current message features from the correctly parsed message and match them with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol identification is successful.
[0010] Furthermore, the message features include first-level features and / or second-level features. The first-level features include address, function code, register start address, number of registers, check bit, and frame length. The second-level features include register start address patterns, transmission cycle patterns, and length patterns.
[0011] Furthermore, after successful protocol identification, the following content is also included:
[0012] Based on the characteristics of the successfully matched message, the corresponding inverter protocol is extracted, and a collection command is generated according to the inverter protocol. The collected inverter data is compared with the data collected by the distributed power access unit / smart IoT meter. If the deviation between the two is within the preset range, the protocol is verified to be correct.
[0013] Furthermore, if protocol identification fails, the following will also be included:
[0014] Infer the inverter protocol based on the correct parsed messages to identify unknown protocols.
[0015] Furthermore, the process of inferring the inverter protocol based on correct parsed messages includes the following:
[0016] The sent and returned parsing messages are classified and processed, and sent and returned parsing messages with the same function code and corresponding to the same register are grouped into the same type of parsing message;
[0017] Determine whether the sent parsing message and the returned parsing message in the same type of parsing message are consistent. If they are consistent, determine that the function code is a control function code. If they are inconsistent, determine that the function code is a read function code.
[0018] For read function codes, determine the data type of the electrical quantity stored in each register; for control function codes, determine the type of control data item.
[0019] Furthermore, the process of determining the data type of the electrical quantity stored in each register includes the following:
[0020] Obtain the electrical quantity data from the return parsing message corresponding to the same register start address, and compare it with various monitoring data from the distributed power access unit / smart IoT meter one by one. If the deviation between all electrical quantity data and a certain monitoring data always remains within a preset range, then determine that the electrical quantity data type stored in the register is the monitoring data.
[0021] Furthermore, the process of determining the data type of the electrical quantity stored in each register includes the following:
[0022] Obtain electrical quantity data from the return parsing message corresponding to the same register start address, generate electrical quantity data curves, calculate the similarity between the electrical quantity data curves and various monitoring data curves of the distributed power access unit / smart IoT meter, and take the monitoring data with the highest similarity as the electrical quantity data type corresponding to the register start address.
[0023] In addition, the present invention also provides a photovoltaic inverter protocol intelligent identification system, comprising:
[0024] The message parsing module is used to listen to the interaction messages between the inverter collector and the inverter. It parses the interaction messages using different baud rates to obtain different parsed messages, and verifies the parsed messages to determine the correct baud rate and parsed message. The correct parsed message includes sending the parsed message and returning the parsed message.
[0025] The feature matching module is used to extract the current message features from the correct parsed message and match the current message features with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol identification is successful.
[0026] In addition, the present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the method described above by calling the computer program stored in the memory.
[0027] In addition, the present invention also provides a computer-readable storage medium for storing a computer program for intelligent identification of photovoltaic inverter protocols, wherein the computer program executes the steps of the method described above when running on a computer.
[0028] The present invention has the following beneficial effects:
[0029] The photovoltaic inverter protocol intelligent identification method of the present invention first listens to the interaction messages between the inverter collector and the inverter, and parses and verifies them at different baud rates to ensure that the correct parsed messages are obtained. Then, the message features extracted from the correct parsed messages are matched with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol is successfully identified. Compared with the existing traversal polling mechanism, the inverter protocol can be quickly identified after the device is powered on, which greatly improves the identification speed. Moreover, the interaction messages between the inverter collector and the inverter are essentially communication signals. By parsing the communication signals and extracting communication features for identification, external interference during the communication process is effectively avoided, and the accuracy of protocol identification is improved.
[0030] In addition, the photovoltaic inverter protocol intelligent identification system of the present invention also has the above-mentioned advantages.
[0031] In addition to the objectives, features, and advantages described above, the present invention has other objectives, features, and advantages. The invention will now be described in further detail with reference to the figures. Attached Figure Description
[0032] The accompanying drawings, which form part of this application, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings:
[0033] Figure 1 This is a flowchart illustrating the photovoltaic inverter protocol intelligent identification method according to a preferred embodiment of this application;
[0034] Figure 2 This is another flowchart illustrating the photovoltaic inverter protocol intelligent identification method according to a preferred embodiment of this application;
[0035] Figure 3 This is another flowchart illustrating the photovoltaic inverter protocol intelligent identification method according to a preferred embodiment of this application;
[0036] Figure 4 yes Figure 3 A schematic diagram of the sub-process of step S4;
[0037] Figure 5 This is a schematic diagram of the module structure of a photovoltaic inverter protocol intelligent identification system according to another embodiment of this application. Detailed Implementation
[0038] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0039] Reference Figure 1A preferred embodiment of this application provides a method for intelligent identification of photovoltaic inverter protocols, including the following:
[0040] Step S1: Listen to the interaction messages between the inverter collector and the inverter, parse the interaction messages using different baud rates to obtain different parsed messages, and verify the parsed messages to determine the correct baud rate and parsed messages. The correct parsed messages include sending parsed messages and returning parsed messages.
[0041] Step S2: Extract the current message features from the correct parsed message, and match the current message features with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol identification is successful.
[0042] It is understood that the photovoltaic inverter protocol intelligent identification method in this embodiment first listens to the interaction messages between the inverter collector and the inverter, and parses and verifies them at different baud rates to ensure that the correct parsed messages are obtained. Then, the message features extracted from the correct parsed messages are matched with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol is successfully identified. Compared with the existing traversal polling mechanism, the inverter protocol can be quickly identified after the device is powered on, which greatly improves the identification speed. Moreover, the interaction messages between the inverter collector and the inverter are essentially communication signals. By parsing the communication signals and extracting communication features for identification, external interference during the communication process is effectively avoided, and the accuracy of protocol identification is improved.
[0043] In step S1, when the distributed power access unit or smart IoT meter is powered on, it connects to the communication interface of the inverter and the inverter collector. The transmission messages of the inverter collector are forwarded to the inverter through the relay of the distributed power access unit / smart IoT meter, and the return messages of the inverter are also forwarded to the inverter collector through the relay of the distributed power access unit or smart IoT meter. Therefore, the interaction messages between the inverter collector and the inverter can be monitored through the distributed power access unit or smart IoT meter. The interaction messages include transmission messages and return messages. The transmission messages are sent by the inverter collector, and the return messages are sent by the inverter. The interaction messages between the inverter data acquisition unit and the inverter are essentially communication signals. Therefore, this application uses different baud rates to parse the interaction messages, obtaining different parsed messages. For example, the baud rate is increased by a factor of 2 starting from 1200bps. Then, for each parsed message, a CRC reverse check is performed to verify whether the last two bits match the CRC calculation result. If they match, the parsed message is determined to be a correct parsed message, and its corresponding baud rate is correct. Alternatively, other existing verification methods can also be used to verify the correctness of the parsed message and baud rate. It can be understood that the final correctly parsed message includes at least one sent parsed message and at least one returned parsed message.
[0044] Additionally, in step S2, current message features are extracted from the correct parsed message, and these extracted features are matched with pre-stored message features in the protocol identification feature library. The pre-stored message features correspond to a specific inverter protocol; a successful match indicates successful protocol identification. The message features include first-layer features and / or second-layer features. The first-layer features include address, function code, register start address, number of registers, checksum, and frame length. The second-layer features include patterns in register start address, transmission cycle, and length. For example, first-layer features such as address, function code, register start address, number of registers, checksum, and frame length are extracted from a single parsed message and compared with pre-stored first-layer features in the protocol identification feature library; a match indicates successful protocol identification. Alternatively, from a group of parsed messages [A1, A2, A3...A...], the first-layer features are extracted. n Extract second-layer features such as register start address patterns, transmission cycle patterns, and length patterns from a set of return parsing messages. Compare these features with pre-stored second-layer features in the protocol identification feature library. If a match is found, protocol identification is successful. Alternatively, extract first-layer features such as address, function code, register start address, number of registers, checksum, and frame length from a set of return parsing messages. Compare these features with pre-stored first-layer features in the protocol identification feature library. If a match is found, protocol identification is successful. Alternatively, extract first-layer features such as address, function code, register start address, number of registers, checksum, and frame length from a set of return parsing messages [B1, B2, B3...B ... nThe system extracts second-layer features such as register start address patterns, transmission cycle patterns, and length patterns. These are then compared with pre-stored second-layer features in the protocol identification feature library. If a match is found, the protocol identification is successful. In practical applications, at least one of sending and returning parsing messages can be selected, along with at least one of extracting first-layer and second-layer features, depending on actual needs. Of course, simultaneously sending and returning parsing messages and extracting both first-layer and second-layer features simultaneously yields the highest accuracy, but the matching efficiency will decrease slightly.
[0045] Optional, such as Figure 2 As shown, the photovoltaic inverter protocol intelligent identification method further includes the following after successful protocol identification:
[0046] Step S3: Extract the corresponding inverter protocol based on the characteristics of the successfully matched message, generate a collection command according to the inverter protocol, compare the collected inverter data with the data collected by the distributed power access unit / smart IoT meter, and verify that the protocol is correct if the deviation between the two is within the preset range.
[0047] Specifically, to further verify the protocol identification results, this application also extracts the corresponding inverter protocol from the protocol database based on the characteristics of successfully matched messages, and generates acquisition commands for electrical quantities such as voltage, current, and power to collect inverter data. Then, the collected inverter data is compared and analyzed with the cross-collection data from the distributed power access unit / smart IoT meter. If the deviation between the two is within a preset range, for example, the deviation between the inverter voltage data and the cross-collection voltage data is within 20%, the identified inverter protocol is verified to be correct, further improving the accuracy of inverter protocol identification. Of course, if the deviation exceeds the preset range, the protocol identification result is determined to be inaccurate, and steps S1 and S2 are executed again.
[0048] It is understood that this application also generates acquisition commands based on the identified inverter protocol, and further verifies whether the protocol identification is correct by comparing the acquired inverter data with the cross-acquisition data of the distributed power access unit / smart IoT meter, thereby further improving the accuracy of inverter protocol identification.
[0049] Furthermore, if the feature-matching method in step S2 fails to identify the protocol, an existing traversal polling mechanism can be used to retrieve the inverter protocol from the protocol database. Feature frames are sent via polling, and the returned message address, function code, and checksum are checked for correctness. If a correct response is received, a match is found, indicating successful protocol identification. The specific traversal polling process is existing technology and will not be elaborated upon here. The protocol database and the protocol identification feature library can be integrated into one database or used as two separate databases.
[0050] Optional, such as Figure 3 As shown, if protocol identification fails, the photovoltaic inverter protocol intelligent identification method further includes the following:
[0051] Step S4: Infer the inverter protocol based on the correct parsed message to identify unknown protocols.
[0052] Specifically, if the inverter protocol still cannot be identified through the above feature matching mechanism and traversal polling mechanism, it means that the inverter protocol is an unknown protocol. At this time, this application proposes an unknown protocol identification mechanism for the first time, that is, to infer the inverter protocol by parsing the message.
[0053] Among them, such as Figure 4 As shown, the process of inferring the inverter protocol based on correct parsed messages includes the following:
[0054] Step S41: Classify and process the sent parsing messages and the returned parsing messages, and group the sent parsing messages and the returned parsing messages with the same function code and corresponding to the same register into the same type of parsing message;
[0055] Step S42: Determine whether the sent parsing message and the returned parsing message in the same type of parsing message are consistent. If they are consistent, determine that the function code is a control function code. If they are inconsistent, determine that the function code is a read function code.
[0056] Step S43: For read function codes, determine the data type of electrical quantity stored in each register; for control function codes, determine the type of control data item.
[0057] It is understandable that the format of the interaction messages is uniform for all inverter protocols. For example, for the sending message 01 04 0B B7 00 01 83 C8, 01 represents the device address, 04 represents the function code, 0B B7 represents the register start address, 00 01 represents the number of registers, and 83 C8 represents the parity bit. For the return message 01 04 02 00 DC F8C1, 01 represents the address, 04 represents the function code, 02 represents the number of bytes, 00 DC represents the electrical quantity data, and F8 C1 represents the parity bit. For unknown inverter protocols, the device address can be directly parsed, and the parity bit does not need to be identified. However, the definition of the function code is unknown, and the correspondence between registers and data items (i.e., which data item each register corresponds to) is also unclear. Therefore, the unknown protocol identification mechanism of this application only needs to identify the function code definition and the correspondence between registers and data items to identify the unknown inverter protocol.
[0058] Specifically, for the multiple transmitted and returned parsed messages obtained from the analysis, since the interaction between the inverter data collector and the inverter is unidirectional—meaning the inverter only returns a message after the data collector sends one—the correspondence between each transmitted and returned parsed message is clear. That is, after the inverter data collector sends a transmitted message, the returned message received within a preset time corresponds to that transmitted message. In other words, the correspondence between the electrical quantity data and registers in each returned parsed message is clear. However, the specific data type of the electrical quantity is unclear; that is, it's unclear whether the register corresponds to voltage, current, or power data. For example, a transmitted parsed message might be 01 04 0B B7 00 01 83 C8, and its corresponding returned parsed message might be 01 0402 00 DC F8 C1. This indicates that the electrical quantity data 00 DC in the returned parsed message corresponds to register 0B B7, but the specific data type of the electrical quantity data 00 DC is unclear.
[0059] Therefore, this application first classifies the multiple parsed send and return parsed messages, and groups send and return parsed messages with the same function code and corresponding to the same register into the same type of parsed message.
[0060] Then, it is determined whether the sent parsing message and the returned parsing message in the same type of parsing message are consistent. If they are consistent, the function code is determined to be a control function code. If they are inconsistent, the function code is determined to be a read function code. For example, if the sent parsing message is 01 06 0B B7 00 32 7A 05, and the returned parsing message is also 01 06 0B B7 00 32 7A 05, they are consistent, so the function code 06 is defined as a control function code, and the control function code performs a write operation. For example, if the sent parsing message is 01 04 0B B7 00 01 83 C8, and the returned parsing message is 01 04 02 00 DC F8 C1, they are inconsistent, so the function code 06 is defined as a read function code, and the read function code performs a read operation.
[0061] The above process has identified the function code definitions in the unknown protocol. The next step is to identify which data item each register corresponds to. One function code may correspond to multiple registers; for example, some registers store voltage data, some store current data, and some store power data. However, all can be accessed by reading the function code to read voltage, current, or power data. Therefore, for reading function codes, it is necessary to determine the data type of the electrical quantity stored in each register, while for control function codes, it is necessary to determine the type of control data item.
[0062] The process of determining the data type of electrical quantity stored in each register includes the following:
[0063] Obtain the electrical quantity data from the return parsing message corresponding to the same register start address, and compare it with various monitoring data from the distributed power access unit / smart IoT meter one by one. If the deviation between all electrical quantity data and a certain monitoring data always remains within a preset range, then determine that the electrical quantity data type stored in the register is the monitoring data.
[0064] Specifically, for reading function codes, the sent message does not contain electrical quantity data; only the returned message contains electrical quantity data. The distributed power access unit / smart IoT meter obtains the electrical quantity data from the returned parsing message corresponding to the same register start address. For example, it obtains the electrical quantity data corresponding to register start address 0BB7. At this time, only the value of the electrical quantity data is known, not its type. It compares it with various monitoring data (such as voltage, current, or power) from the distributed power access unit / smart IoT meter one by one. If the deviation between all electrical quantity data and a certain monitoring data always remains within a preset range, for example, the deviation range from voltage monitoring data is 220±20% or 380±20%, then the electrical quantity data type is determined to be voltage data, and thus the data item corresponding to the register start address can be determined to be voltage.
[0065] It is understood that this application can quickly identify the data type of electrical quantity corresponding to each register by comparing and analyzing the electrical quantity data of the same register with the monitoring data of the distributed power access unit / smart IoT meter, so as to quickly identify unknown protocols.
[0066] In addition, the process of determining the data type of electrical quantity stored in each register includes the following:
[0067] Obtain electrical quantity data from the return parsing message corresponding to the same register start address, generate electrical quantity data curves, calculate the similarity between the electrical quantity data curves and various monitoring data curves of the distributed power access unit / smart IoT meter, and take the monitoring data with the highest similarity as the electrical quantity data type corresponding to the register start address.
[0068] Specifically, an electrical quantity data curve is generated based on the electrical quantity data corresponding to the same register start address. Simultaneously, multiple monitoring data curves are generated based on various monitoring data from distributed power access units / smart IoT meters, such as voltage, current, or power curves. Then, the similarity between the electrical quantity data curve and each monitoring data curve is calculated. The monitoring data with the highest similarity is taken as the electrical quantity data type corresponding to the register start address. For example, if the electrical quantity data curve has the highest similarity to the current curve, then the electrical quantity data type corresponding to the register start address is determined to be current data. The specific similarity calculation method can employ existing algorithms such as Euclidean distance, cosine similarity, and DTW distance.
[0069] It is understood that this application determines the electrical quantity data type corresponding to the starting address of each register based on data curve similarity analysis, which can accurately identify the electrical quantity data type corresponding to each register and improve the identification accuracy of unknown protocols.
[0070] In addition, for control function codes, the process of determining the type of control data item includes the following:
[0071] Based on the control function code, a control message is generated and sent to the inverter at preset intervals. The control data items of multiple control messages are reduced in sequence to monitor the changes in the inverter's active and reactive power, and the control data item type is determined based on the monitoring results.
[0072] For example, a control message is generated every 30 minutes based on the control function code and sent to the inverter. The control data items of multiple control messages are reduced by 10% in stages. For example, the first control message reduces by 10%, the second control message reduces by another 10%, and the third control message reduces by another 10%. The changes in the active power and reactive power of the inverter are monitored in real time by the distributed power access unit / smart IoT meter. If both the active power and reactive power of the inverter change and maintain a fixed ratio, the control data item is determined to be the power factor. If only the reactive power of the inverter decreases to within the deviation range of the set value (e.g., ±2%) or decreases below the set value, the control data item is determined to be reactive power. If only the active power of the inverter decreases to within the deviation range of the set value (e.g., ±2%) or decreases below the set value, the control data item is determined to be active power.
[0073] It is understood that this application controls the inverter operation by generating multiple progressively decreasing control messages based on the control function code, and monitors the changes in the inverter's active and reactive power in real time. Based on the changes in active and reactive power, it can determine which of the following control data item types—power factor, reactive power, and active power—is being used, thereby accurately determining the control data item type corresponding to the control function code. This allows for the determination of the control data item type corresponding to each register (the message containing the control function code).
[0074] It is understood that the unknown protocol identification mechanism of this application can parse unknown protocols by identifying the function code definition and the data item type stored in each register, thus enabling fast and accurate identification of unknown protocols. Furthermore, after identifying an unknown protocol, it can be added to the protocol database to expand the database.
[0075] In addition, such as Figure 5 As shown, another embodiment of the present invention also provides a photovoltaic inverter protocol intelligent identification system, preferably employing the photovoltaic inverter protocol intelligent identification method described above, including:
[0076] The message parsing module is used to listen to the interaction messages between the inverter collector and the inverter. It parses the interaction messages using different baud rates to obtain different parsed messages, and verifies the parsed messages to determine the correct baud rate and parsed message. The correct parsed message includes sending the parsed message and returning the parsed message.
[0077] The feature matching module is used to extract the current message features from the correct parsed message and match the current message features with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol identification is successful.
[0078] As can be understood, the photovoltaic inverter protocol intelligent identification system in this embodiment first listens to the interaction messages between the inverter collector and the inverter, and parses and verifies them at different baud rates to ensure that the correct parsed messages are obtained. Then, it extracts message features from the correct parsed messages and matches them with message features pre-stored in the protocol identification feature library. If the match is successful, the protocol is successfully identified. Compared with the existing traversal polling mechanism, the inverter protocol can be quickly identified after the device is powered on, which greatly improves the identification speed. Moreover, the interaction messages between the inverter collector and the inverter are essentially communication signals. By parsing the communication signals and extracting communication features for identification, external interference during the communication process is effectively avoided, and the accuracy of protocol identification is improved.
[0079] In addition, the photovoltaic inverter protocol intelligent identification system also includes:
[0080] The protocol verification module is used to extract the corresponding inverter protocol based on the characteristics of the successfully matched message, generate a collection command according to the inverter protocol, and compare the collected inverter data with the data collected by the distributed power access unit / smart IoT meter. If the deviation between the two is within a preset range, the protocol is verified to be correct.
[0081] In addition, the photovoltaic inverter protocol intelligent identification system also includes:
[0082] The unknown protocol inference module is used to infer the inverter protocol based on the correct parsed message in order to identify unknown protocols.
[0083] It is understood that each module of this system embodiment corresponds one-to-one with each step of the above method embodiment. Therefore, the specific working process and principle of each module will not be repeated here. Please refer to the corresponding steps of the above method embodiment.
[0084] In addition, another embodiment of the present invention provides an electronic device including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the method described above by calling the computer program stored in the memory.
[0085] In addition, another embodiment of the present invention provides a computer-readable storage medium for storing a computer program for intelligent identification of photovoltaic inverter protocols, wherein the computer program executes the steps of the method described above when running on a computer.
[0086] Common computer-readable storage media include: floppy disks, flexible disks, hard disks, magnetic tapes, any other magnetic media, CD-ROMs, any other optical media, punch cards, paper tape, any other physical media with perforated patterns, random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), flash erasable programmable read-only memory (FLASH-EPROM), any other memory chips or cartridges, or any other media readable by a computer. Instructions may further be transmitted or received by a transmission medium. The term transmission medium can include any tangible or intangible medium used to store, encode, or carry instructions for execution by a machine, and includes digital or analog carrier communication signals or intangible media that facilitate communication of such instructions. Transmission media include coaxial cables, copper wires, and optical fibers, which contain conductors for transmitting a bus of computer data signals.
[0087] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of this application can be implemented in various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0088] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0089] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0090] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0091] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0092] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
[0093] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for intelligent identification of photovoltaic inverter protocols, characterized in that, Includes the following: The system monitors the interaction messages between the inverter collector and the inverter, parses the interaction messages using different baud rates to obtain different parsed messages, and verifies the parsed messages to determine the correct baud rate and parsed message. The correct parsed message includes sending a parsed message and returning a parsed message. Extract the current message features from the correctly parsed message and match the current message features with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol identification is successful. If protocol recognition fails, the following content will also be included: Inferring the inverter protocol based on correctly parsed messages is crucial for identifying unknown protocols. The process of inferring the inverter protocol based on correctly parsed messages includes the following: The sent and returned parsing messages are classified and processed, and sent and returned parsing messages with the same function code and corresponding to the same register are grouped into the same type of parsing message; Determine whether the sent parsing message and the returned parsing message in the same type of parsing message are consistent. If they are consistent, determine that the function code is a control function code. If they are inconsistent, determine that the function code is a read function code. For read function codes, determine the data type of the electrical quantity stored in each register; for control function codes, determine the type of control data item.
2. The photovoltaic inverter protocol intelligent identification method as described in claim 1, characterized in that, The message features include first-level features and / or second-level features. The first-level features include address, function code, register start address, number of registers, check bit and frame length. The second-level features include register start address pattern, transmission period pattern and length pattern.
3. The photovoltaic inverter protocol intelligent identification method as described in claim 1, characterized in that, After successful protocol recognition, the following content is also included: Based on the characteristics of the successfully matched message, the corresponding inverter protocol is extracted, and a collection command is generated according to the inverter protocol. The collected inverter data is compared with the data collected by the distributed power access unit / smart IoT meter. If the deviation between the two is within the preset range, the protocol is verified to be correct.
4. The photovoltaic inverter protocol intelligent identification method as described in claim 1, characterized in that, The process of determining the data type of the electrical quantity stored in each register includes the following: Obtain the electrical quantity data from the return parsing message corresponding to the same register start address, and compare it with various monitoring data from the distributed power access unit / smart IoT meter one by one. If the deviation between all electrical quantity data and a certain monitoring data always remains within a preset range, then determine that the electrical quantity data type stored in the register is the monitoring data.
5. The photovoltaic inverter protocol intelligent identification method as described in claim 1, characterized in that, The process of determining the data type of the electrical quantity stored in each register includes the following: Obtain electrical quantity data from the return parsing message corresponding to the same register start address, generate electrical quantity data curves, calculate the similarity between the electrical quantity data curves and various monitoring data curves of the distributed power access unit / smart IoT meter, and take the monitoring data with the highest similarity as the electrical quantity data type corresponding to the register start address.
6. A photovoltaic inverter protocol intelligent identification system, employing the photovoltaic inverter protocol intelligent identification method as described in any one of claims 1 to 5, characterized in that, include: The message parsing module is used to listen to the interaction messages between the inverter collector and the inverter. It parses the interaction messages using different baud rates to obtain different parsed messages, and verifies the parsed messages to determine the correct baud rate and parsed message. The correct parsed message includes sending the parsed message and returning the parsed message. The feature matching module is used to extract the current message features from the correct parsed message and match the current message features with the message features pre-stored in the protocol identification feature library. If the match is successful, the protocol identification is successful.
7. An electronic device, characterized in that, The method includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the method as described in any one of claims 1 to 5 by calling the computer program stored in the memory.
8. A computer-readable storage medium for storing a computer program for intelligent identification of photovoltaic inverter protocols, characterized in that, The computer program, when run on a computer, performs the steps of the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Protocol adaptive method between photovoltaic protocol converter and photovoltaic inverter
CN116320062A
Distributed photovoltaic communication protocol self-identification interaction device and method
CN119093601A
Photovoltaic equipment communication protocol self-adaption method
CN117749900A
Photovoltaic protocol self-adaption method for distributed power supply access unit
CN119520492A