Integrated conversion method and system for distributed photovoltaic multi-source heterogeneous protocol
By identifying and converting the communication protocol of photovoltaic inverters, the communication incompatibility problem between equipment from different manufacturers is solved, seamless connection and efficient data exchange between photovoltaic inverters and power grid systems are achieved, and the adaptability and stability of the system are improved.
Patent Information
- Application Number
- CN202511041556.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-28
- Publication Date
- 2025-10-17
AI Technical Summary
Due to incompatible communication protocols between photovoltaic inverter devices produced by different manufacturers, it is difficult to achieve effective communication and collaborative control between devices in low-voltage distributed photovoltaic systems, which increases the difficulty of data sharing and remote control.
An integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols is designed. By receiving messages from the power grid master station, identifying the inverter protocol type, generating corresponding communication messages, and introducing automatic protocol identification function and anti-collision mechanism, seamless connection and data interoperability between inverters from different manufacturers and the power grid system are achieved.
It has achieved effective data exchange between 28 different types of photovoltaic inverter equipment and the power grid master station, improved the interoperability and compatibility of system devices, reduced the workload of system configuration and maintenance, and ensured the integrity of data transmission and the stability of communication.
Smart Images

Figure CN120812141A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power systems, in particular to an integrated conversion method and system for a distributed photovoltaic multi-source heterogeneous protocol. BACKGROUND
[0002] With the vigorous promotion of the construction of new energy-based new power system, the application of low-voltage distributed photovoltaic power generation system has developed rapidly. Photovoltaic inverters, as the core equipment connecting photovoltaic power generation equipment and power grid systems, play a crucial role. However, although photovoltaic inverter equipment has been widely used in the market, the communication protocols used by photovoltaic inverters produced by different manufacturers differ greatly. Currently, most mainstream manufacturers follow the Modbus protocol, but there are significant differences in specific implementation and protocol format, and they are not compatible with the electric energy meter acquisition protocol (DL / T698.45) used by the power grid system, making it difficult to achieve effective communication and collaborative control between devices. This protocol inconsistency has become a major obstacle to promoting large-scale application and efficient integration of low-voltage distributed photovoltaic systems.
[0003] The scheme described in the patent "A low-voltage grid-connected distributed photovoltaic observation and control method and device (CN113972746A)" uses a collection terminal and a photovoltaic protocol converter to work together to achieve data reading and control of the inverter. This scheme involves multiple devices, increasing the complexity of the system and reducing the efficiency of data transmission. When faced with high-frequency collection scenarios, the communication reliability between devices will be challenged. The scheme described in the patent "Protocol adaptive method between photovoltaic protocol converter and photovoltaic inverter (CN116320062A)" uses the data content stored in a number of continuous registers specific to each photovoltaic inverter as a judgment mark to identify the photovoltaic inverter communication protocol. However, this method results in different meanings of inverter reply messages, requiring different analysis functions to determine the legality of the reply message. When new inverter types are added, the software program of existing devices needs to be upgraded to be compatible, which brings great inconvenience to field use.
[0004] The scheme described in the patent "Photovoltaic protocol conversion module and application device (CN118612304A)" establishes five basic identification templates by abstracting common features, typical features, and fuzzy feature information to adapt to the communication protocol of conventional inverters. For the remaining types of inverters, the device program still needs to be updated to add identification templates to realize the protocol adaptive function. SUMMARY
[0005] The application aims to provide a distributed photovoltaic multi-source heterogeneous protocol integrated conversion method and system to solve the communication protocol incompatibility problem of photovoltaic inverter equipment caused by manufacturer differences in the current low-voltage distributed photovoltaic system.
[0006] To achieve the above-mentioned purpose, the application adopts the following technical solutions: In the first aspect, the application provides a distributed photovoltaic multi-source heterogeneous protocol integrated conversion method, comprising: Receiving a first protocol message issued by a power grid master station, analyzing the message structure, and extracting the control parameters in the message; Sending a register query message to the inverter address polling, if the response content conforms to the expected function of the preset protocol, then binding the inverter with the matching protocol number in the protocol library, and identifying the target photovoltaic inverter execution protocol type; Based on the identified target photovoltaic inverter execution protocol type, combined with the extracted control parameters, matching the target data item in the preset inverter configuration library, based on the matching result, converting the first protocol message into the protocol format supported by the target inverter, generating a downlink communication message containing the register address, gain value and function code; Sending the generated downlink message to the photovoltaic inverter, receiving the returned state data, verifying the returned state data, encapsulating the verified data in the first protocol format, and returning to the power grid master station, completing the bidirectional protocol conversion and data interaction between the distributed photovoltaic equipment and the power grid master station.
[0007] Further, the receiving of the first protocol message issued by the power grid master station, the analysis of the message structure, and the extraction of the control parameters in the message, comprises: The master station sends a first protocol message, analyzes the received first protocol message, extracts the object address OAD and data field in the message by analyzing the identification information and protocol format in the message, and extracts the control parameters of the collection command, control command and state information according to the analysis result.
[0008] Further, the object address OAD field identifies the target data line or target action, the extracted control parameters are verified in data format, the extracted command and parameters are passed to the downstream protocol conversion module for protocol conversion and data processing after the data verification is passed.
[0009] Further, the sending of the register query message to the inverter address polling, if the response content conforms to the expected function of the preset protocol, then binding the inverter with the matching protocol number in the protocol library, and identifying the target photovoltaic inverter execution protocol type, comprises: The Modbus communication message is sent to the register address of the inverter device, the return message obtained by inquiring the special register address is used to identify the specific protocol type of the inverter, when the inverter device receives the communication message, a response frame is returned according to the implemented protocol, if the protocol used by the inverter matches the preset protocol of the system device and no abnormality occurs in the response process, it is considered that the response frame is valid and correct, the response content of the inverter is verified for data rationality, the protocol type is successfully identified, switched to the corresponding protocol analysis mode, and a file is automatically generated, the inverter is bound to the number of the protocol in the protocol library, if the identification fails, other registers are continued to be polled or an alternative scheme is used for further verification until the device protocol is successfully identified or determined to be unable to match.
[0010] Further, the data rationality verification of the response content of the inverter specifically includes: checking whether the data value in the response frame is within a reasonable range and whether it meets the expected function of the register, if the response content meets the expectation and the data value is consistent with the state or function of the device, it is determined that the protocol identification of the inverter device is successful.
[0011] Further, the generated downlink communication message containing the register address, the gain value and the function code includes: A configuration library is established to store the configuration information of various inverters, in the configuration file of each type of inverter, the specific address of the register, the corresponding function code and the data type are contained, in the protocol conversion process, the OAD in the uplink protocol is used to find and match the corresponding configuration in the inverter configuration library, when the OAD in the uplink protocol is received, the corresponding inverter register configuration is retrieved from the configuration library according to the address, the configuration includes the register address, the gain value and the function code.
[0012] Further, the completion of the bidirectional protocol conversion and data interaction between the distributed photovoltaic device and the power grid master station includes: The generated message meeting the communication protocol requirements of the inverter is sent to the photovoltaic inverter, data reading or control operation is performed, and the returned response message is received, the register address is inversely analyzed, the data range is verified and the CRC is checked, the real-time state and the monitoring parameter of the inverter are extracted, and the data passing the verification is encapsulated in the first protocol format and then returned to the power grid master station.
[0013] In a second aspect, the application provides an integrated conversion system for distributed photovoltaic multi-source heterogeneous protocols, which includes: A data receiving module is used to receive the first protocol message issued by the power grid master station, analyze the message structure, and extract the control parameter in the message. The identification module is used for sending a register query message to the inverter address polling, and if the response content conforms to the expected function of the preset protocol, then the inverter is bound with a matching protocol number in the protocol library, and the target photovoltaic inverter is identified to execute a protocol type; The conversion module is used for matching a target data item in a preset inverter configuration library based on the identified target photovoltaic inverter execution protocol type and the extracted control parameter, converting the first protocol message into a protocol format supported by the target inverter based on the matching result, and generating a downlink communication message containing a register address, a gain value and a function code; The verification module is used for sending the generated downlink message to the photovoltaic inverter, receiving returned state data, verifying the returned state data, encapsulating the verified data in the first protocol format, and returning to the power grid master station, so as to complete the bidirectional protocol conversion and data interaction between the distributed photovoltaic equipment and the power grid master station.
[0014] In a third aspect, the present application provides a computer device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the integrated conversion method of the distributed photovoltaic multi-source heterogeneous protocol when executing the computer program.
[0015] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the integrated conversion method of the distributed photovoltaic multi-source heterogeneous protocol when executed by a processor.
[0016] Compared with the prior art, the present application has the following technical effects: The present application successfully realizes the data interaction between photovoltaic inverter devices of different manufacturers and the power grid system by designing an integrated conversion mechanism for the distributed photovoltaic multi-source heterogeneous protocol. Specifically, the system device involved in the present application automatically identifies the communication protocol used by the inverter device through a protocol identification unit, and solves the conversion problem between different protocols in uplink and downlink through a protocol conversion unit. Experiments show that the conversion method in the present application can ensure that 28 different models of photovoltaic inverter devices can effectively exchange data and be scheduled by the power grid master station through a unified device platform, thereby significantly improving the interoperability and compatibility of the system device.
[0017] Another significant advantage of the present application is the flexibility and scalability of the system device. Traditional protocol adaptation methods usually rely on manual configuration of the corresponding communication protocol of the downlink inverter, and are limited in supporting different manufacturer devices, making it difficult to cope with diverse device types and protocol versions. The present application abstracts a set of inverter protocol configuration file templates, which only need to be modified and downloaded to the device to realize the adaptation of new models of inverters, without the need to upgrade the device software. The introduced protocol automatic recognition function can automatically identify the protocol type used by different manufacturer devices when the inverter device is connected, and automatically switch the protocol parsing mode according to the identification result, greatly improving the adaptability of the system device. In the experiment, the system device can adapt to the existing 28 kinds of inverter devices within 5 minutes, reducing the workload of system configuration and maintenance.
[0018] The present application ensures the integrity and accuracy of data in the transmission process through specific data format conversion and register mapping. Especially in the design of the protocol conversion unit, the system device stores the register address, data type, gain, etc. of different manufacturer devices in the configuration file, ensuring accurate matching in the data conversion process. Through this mechanism, real-time scheduling and data acquisition of photovoltaic inverters and grid master stations can be better supported.
[0019] Protocol incompatibility not only leads to data transmission difficulties, but also easily causes communication conflicts, affecting system stability. In order to solve this problem, the present application introduces a conflict prevention mechanism to ensure that the requests of multiple devices do not conflict during uplink and downlink communication. Specifically, the system device effectively coordinates the data transmission of multiple devices through time window management, device identification, and data queue control methods, avoiding program crashes or communication failures caused by data conflicts. Experiments show that under high load conditions, the conflict prevention mechanism of the present application can effectively avoid data loss and communication interruption, improving the overall stability and reliability of the system device, achieving a one-time reading success rate of the grid master station reading inverter data ≥ 99%, and a total error rate of the grid master station reading inverter data ≤ 0.1%. BRIEF DESCRIPTION OF DRAWINGS
[0020] Figure 1 The system device architecture for the application.
[0021] Figure 2 The system device program flowchart for the implementation of the present application.
[0022] Figure 3 The protocol self-adaptive program flowchart for the present application. DETAILED DESCRIPTION
[0023] The present application is further described below in conjunction with the accompanying drawings: Example 1, please refer toFigure 2 The application provides an integrated conversion method for a distributed photovoltaic multi-source heterogeneous protocol, comprising: receiving a first protocol message issued by a power grid master station, parsing the message structure, and extracting control parameters in the message; sending a register query message to the inverter address polling, if the response content conforms to the expected function of the preset protocol, then binding the inverter with the matching protocol number in the protocol library, identifying the target photovoltaic inverter to execute the protocol type; based on the identified target photovoltaic inverter execution protocol type, combining the extracted control parameters, matching the target data item in the preset inverter configuration library, based on the matching result, converting the first protocol message into a protocol format supported by the target inverter, generating a downlink communication message containing the register address, gain value and function code; sending the generated downlink message to the photovoltaic inverter, receiving the returned state data, verifying the returned state data, encapsulating the verified data in the first protocol format, and returning to the power grid master station, completing the bidirectional protocol conversion and data interaction between the distributed photovoltaic equipment and the power grid master station.
[0024] The application aims to provide an integrated conversion method for a distributed photovoltaic multi-source heterogeneous protocol, aiming to solve the communication protocol incompatibility problem caused by the difference between photovoltaic inverter devices of different manufacturers in the current low-voltage distributed photovoltaic system. With the construction of a new power system dominated by new energy by the State Grid, photovoltaic power generation, as an important part of green and clean energy, has become the key to energy structure transformation. However, due to the long development time of existing photovoltaic inverters, the multiple manufacturers, the various types and the use of different communication protocols, the interoperability between inverter devices is poor, data sharing and remote control are difficult, which causes great obstacles in the interfacing process between photovoltaic inverters and power grid master stations.
[0025] Therefore, another object of the application is to realize seamless connection and data intercommunication between photovoltaic inverter devices produced by different manufacturers and the power grid master station by designing a flexible protocol conversion mechanism. By providing a standardized protocol interface, the application can overcome the differences between different protocols, reduce the communication resistance between devices, and ensure that photovoltaic inverters, control systems and power terminals can efficiently and stably collect data and cooperatively control.
[0026] In addition, considering the automation and intelligence requirements of future power systems, the application also improves the adaptability and flexibility of the photovoltaic inverter in complex and variable power system environments by introducing protocol automatic identification functions and anti-collision mechanisms. RS485, HPLC, BLE and other uplink channels are provided, and multiple photovoltaic inverters can be connected simultaneously. These innovations not only effectively improve data transmission efficiency and control accuracy, but also reduce maintenance difficulty and cost of the power system while ensuring communication stability.
[0027] In summary, the purpose of the application is to solve the pain points of protocol incompatibility between photovoltaic inverters and existing power grid systems, and between photovoltaic inverter devices, aiming to improve the integration efficiency of low-voltage distributed photovoltaic systems and provide reliable technical support for the construction of new energy-based new power systems.
[0028] Please refer to Figure 1 and Figure 3 , embodiment 2, the application provides an integration conversion method for distributed photovoltaic multi-source heterogeneous protocols, comprising: The solution of the application is based on software architecture, mainly including four core units: uplink control end conversion unit, downlink control end conversion unit, protocol conversion unit and protocol identification unit. These units work together to realize the mutual conversion of protocols between photovoltaic inverters and power grid master stations and the effective transmission of data.
[0029] The main function of the uplink control end conversion unit is to analyze the first protocol message issued from the master station. The first protocol is the power meter acquisition protocol used by the power grid system, which has certain structure specification and data format requirements. The uplink control end conversion unit extracts the acquisition command, control command, state information and other control parameters issued by the master station by analyzing the characteristic identifier and related data in the first protocol message. This unit ensures that communication with the power grid master station can proceed smoothly, providing accurate raw data for subsequent protocol conversion and data processing.
[0030] The main task of the downlink control end conversion unit (also known as the information acquisition unit) is to receive messages returned by photovoltaic inverter devices through the second protocol to the Nth protocol. Photovoltaic inverter devices from different manufacturers use these protocols to communicate with the monitoring system, mainly for remote monitoring, power grid scheduling and data acquisition. This unit receives second protocol to Nth protocol messages returned by the inverter through RS485 serial port or other communication interfaces and parses them to extract the required control information or real-time data. The information acquisition unit not only realizes the data reading function of the inverter, but also provides the target data that needs to be converted for the protocol conversion unit.
[0031] The protocol automatic identification function is another important innovation of the application, which can automatically identify the protocol type used by different inverter devices, and ensure that the system device can correctly process the messages from different manufacturer devices. In actual application, photovoltaic inverters of different manufacturers may use different versions or customized protocols according to the characteristics of their own devices. In order to realize seamless connection between different devices, the protocol conversion module is equipped with an automatic protocol identification function, which can automatically identify the protocol type used according to the characteristics of the data packet when receiving data, and select the appropriate parsing and conversion mode.
[0032] Since the inverter uses 2-byte or 4-byte to represent the remaining data items except the serial number and other special data items, by reading the values of specific registers in different inverters, the fixed-length return value can be parsed in the identification unit parsing program, and compared with the value range set in the configuration library. When the return value meets the value range, it is determined that the identification is successful, otherwise it is considered that the identification fails. This setting can adapt to the existing inverter protocol to the greatest extent.
[0033] The protocol conversion unit is the core part of the application, which is responsible for realizing the mutual conversion between the first protocol of the uplink channel and the second protocol to the Nth protocol of the downlink channel. The unit first determines which protocol parsing function to use for processing according to the received data (whether it is the first protocol message received from the main station or the second protocol to the Nth protocol message received from the inverter), and the protocol number identified by the identification unit according to the data type and protocol characteristics. The protocol identification unit contains a set of dynamic parsing algorithms inside, which dynamically selects the appropriate parsing method according to the protocol type and data structure.
[0034] Conversion between the first protocol of the uplink channel and the second protocol to the Nth protocol of the downlink channel: This process involves converting the first protocol control command issued by the power grid master station into the second protocol to the Nth protocol command that the inverter can recognize and execute. The protocol conversion unit completes the data format conversion, register address mapping, and data verification according to the existing protocol library and data mapping rules.
[0035] Conversion from the second protocol to the Nth protocol to the first protocol: After the inverter returns data through the second protocol to the Nth protocol, the protocol conversion unit converts it into the first protocol format required by the power grid master station. Through this module, the system device can convert the state information or data acquisition results fed back by the inverter into the first protocol format, and transmit it to the power grid master station for subsequent processing.
[0036] The inverter protocol configuration library is the basis for the protocol automatic identification unit and the protocol conversion unit to work, and clearly indicates the data items that need to be copied and controlled by the uplink power grid master station. Based on a rule-based algorithm, the data item register addresses, data characteristics and associated logical characteristics supported in the existing inverter communication protocols are summarized, classified and abstracted to form an inverter configuration file template. The inverter protocol expansion interface is output, and the compatibility of new types of inverters can be realized by adding data according to the template without updating the device program.
[0037] The above five modules work together through data transmission and protocol conversion to ensure seamless data connection between the photovoltaic inverter and the power grid master station. The uplink control end conversion unit and the downlink control end conversion unit process the communication between the master station and the inverter, respectively, while the protocol conversion module undertakes the heavy task of protocol adaptation. Through flexible protocol analysis and data conversion, it breaks down the barriers between different protocol standards and realizes the compatibility of inverter devices from different manufacturers with the power grid system.
[0038] The anti-collision mechanism is mainly used to solve the data conflict problem that may occur when the uplink and downlink multi-channel 485 buses communicate at the same time. The control ends of the photovoltaic inverter and the power grid master station may initiate multiple data requests at the same time. If multiple devices send data at the same time, it may cause data conflict or loss, affecting the communication stability of the system device. Therefore, the anti-collision mechanism is adopted, which ensures the effective coordination of data transmission between multiple devices through time window management, device identification and data queue control. Specifically, when the system device detects multiple devices requesting at the same time, it will use time slicing technology to allocate a specific time period for each device, and the device will exclusively occupy the bus resources during that time period, thereby avoiding data conflict. In addition, the system device also schedules the downlink data to ensure the orderly sending of data packets, ensuring that each device can correctly receive and process data.
[0039] Figure 1 The system device architecture diagram for the application is shown in the figure. The uplink control end conversion unit receives the collection commands, control commands, status information and other control parameters issued by the uplink master station or collector through RS485, HPLC and other methods.
[0040] The information acquisition unit receives the data returned by the photovoltaic inverter device through RS485, which is mainly used for remote monitoring, power grid scheduling and data collection.
[0041] The protocol conversion unit is the core part of the application, which is responsible for realizing the mutual conversion between the first protocol of the uplink channel and the second protocol to the Nth protocol of the downlink channel.
[0042] Implementation steps The master station sends a first protocol message to the uplink control end conversion unit. The message complies with the power grid system DL / T698.45 (first protocol) and has specific structure and data format requirements. The uplink control end conversion unit receives the first protocol message from the master station through the communication interface. The uplink control end conversion unit first parses the received first protocol message. By analyzing the identification information and protocol format in the message, the key information in the message is extracted, especially the OAD (object address) and related data fields. According to the parsing result, the acquisition command, control command, state information and other control parameters in the message are extracted. The OAD field identifies the target data line or target action, and combined with this information, the system device can clearly understand the specific command and parameters issued by the master station. The extracted control command, state information and other parameters are verified for data format. Ensure that the data meets the format requirements specified in the first protocol, and check the integrity and correctness of the data. Once the data verification is passed, the system device prepares to pass the extracted command and parameter to the downstream protocol conversion module for protocol conversion and data processing. This step ensures that the communication between the master station and the downstream device can proceed smoothly, and provides accurate raw data for subsequent protocol conversion. The processed data is passed to the subsequent protocol conversion module or other related modules to ensure correct processing and transmission of data during protocol conversion, and to complete effective communication with the power grid master station.
[0043] The main task of the downlink control end conversion unit (information acquisition unit) is to receive the message returned by the photovoltaic inverter device through the second protocol to the Nth protocol and parse it. The information acquisition unit receives the message returned by the inverter through the serial port or other communication interface, and the message carries the state information, real-time data and other monitoring parameters of the photovoltaic inverter. After receiving the message, the system device first parses its format to ensure that the structure and data format of the message meet the protocol requirements.
[0044] During the parsing process, the system device needs to strictly check the legality of the Modbus message to ensure the validity of the data. The check items include: whether the inverter address is within the valid range, whether the function code conforms to the expected operation type (such as reading or writing register), whether the register address is legal, whether the return value is within a reasonable data range, and whether the CRC check value of the message is correct, to ensure that the data is not damaged or lost during transmission.
[0045] After the legality verification is passed, the information acquisition unit extracts the real-time data, control information and other related monitoring parameters of the photovoltaic inverter. These data include the running state, basic information, output parameters and other key monitoring indicators of the device. The extracted data will be verified for integrity to ensure that it meets the format and data range specified in the protocol. The verified data will be passed to the protocol conversion unit to provide accurate input for subsequent protocol conversion and data processing.
[0046] Through this process, the information acquisition unit not only realizes the remote data reading function of the photovoltaic inverter, but also provides the required real-time data support for grid dispatching and remote monitoring, ensuring the stable and efficient communication between the photovoltaic inverter and the grid master station.
[0047] Since the communication protocol of the inverter device has a certain uniformity, that is, the message format is roughly the same, but the register address, gain, function code and data type of each manufacturer are different, therefore, the system device establishes a configuration library to store the configuration information of various inverters for these differences. In the inverter configuration file of each model, the specific address of the register, the corresponding function code and the data type and other key information are included. When a new model of inverter needs to be adapted, modify the corresponding data according to the template, download the configuration file of the new inverter corresponding to the system device through the inverter protocol expansion interface, and the new inverter can be successfully adapted.
[0048] The protocol automatic recognition function aims to solve the problem of different versions or customized protocols used by photovoltaic inverter devices of different manufacturers. Each inverter manufacturer may customize based on the Modbus protocol, resulting in different specific implementations even if the protocol family is the same. In order to solve this problem, the application designs an automatic protocol recognition method based on special register address polling and response verification. The specific steps are as follows: Inverter address polling: According to the provisions in the Modbus protocol universally followed by inverters, the inverter address is a certain digit in 1~247, so it is identified by polling in an address incremental manner.
[0049] Register data query: The information acquisition unit sends a Modbus communication message to a certain special register address of the inverter device. This register address is usually different in devices of different manufacturers, but the function of this register is similar in devices of different manufacturers, such as reading the current time. Therefore, by querying this special register address, the system device can try to identify the specific protocol type of the inverter.
[0050] Inverter response verification: When the inverter device receives the communication message, it will return a response frame according to the implemented protocol. If the protocol used by the inverter matches the protocol preset by the system device, and the device does not have abnormality in the response process (such as timeout, format error or frame that cannot be parsed), it is considered that the response frame is valid and correct.
[0051] Verification of response content: Further, the response content of the inverter is verified for data rationality. For example, the system device checks whether the data value in the response frame is within a reasonable range and whether it conforms to the expected function of the register. If the response content is as expected and the data value is consistent with the state or function of the device, it is determined that the protocol identification of the inverter device is successful.
[0052] Protocol identification and switching: Once the protocol type is successfully identified, the system device automatically switches to the corresponding protocol analysis mode and autonomously generates a profile, binding the inverter to the number of the protocol in the protocol library. At this time, the system device will use the analysis algorithm matching the protocol of the inverter device to perform subsequent data analysis and communication processing. If identification fails, the system device will continue to poll other registers or use alternative solutions for further verification until successful identification or determination that the device protocol cannot be matched.
[0053] This method can automatically identify the protocol type of devices from different manufacturers by polling special register addresses of inverters and verifying the validity of responses. Compared with traditional manual configuration or preset protocol methods, this automatic protocol identification function greatly improves the flexibility and compatibility of the system device, while reducing the workload of configuration and maintenance. The system device can quickly adapt to different protocols when the device is connected, realizing seamless connection between photovoltaic inverters and power grid systems.
[0054] The implementation idea of the protocol conversion unit is based on the differences between explicit data requirements in the uplink protocol and the downlink inverter protocol for efficient conversion. In the uplink protocol, the specific data items required to be read or controlled can be identified by analyzing the OAD (object address), so as to accurately know which data item needs to be read or controlled. For example, the power grid system can know whether to obtain the running state, power output, or other control information of the device through the OAD.
[0055] In the protocol conversion process, the system device will find and match the corresponding configuration in the inverter configuration library according to the OAD in the uplink protocol. Specifically, when receiving the OAD in the uplink protocol, the protocol conversion unit will retrieve the corresponding inverter register configuration from the configuration library according to the address. These configurations include register addresses, gain values, function codes, and other parameters, thereby ensuring correct data analysis and conversion.
[0056] Based on these configurations, the protocol conversion unit will generate messages that meet the requirements of the inverter communication protocol. The generation of messages not only involves the mapping of register addresses, but also requires the construction of the correct message format according to the different requirements of the inverter (such as function codes, data types, etc.). The system device then sends the generated messages to the inverter for data reading or control operation. Through this process, the system device ensures that each communication command is accurately delivered to the target device, and the inverter can correctly execute and return the expected results.
[0057] This process effectively solves the conversion problem between different protocols, while ensuring the accuracy and real-time performance of the data. Whether it is a control command from the uplink power grid master station to the downlink inverter, or state information from the downlink inverter to the power grid master station, the protocol conversion unit can complete efficient and accurate protocol identification and data transmission.
[0058] In another embodiment of the present application, an integrated conversion system for distributed photovoltaic multi-source heterogeneous protocols is provided, which can be used to implement the above-mentioned integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols. Specifically, the system comprises: The data receiving module is configured to receive the first protocol message issued by the power grid master station, analyze the message structure, and extract the control parameters in the message. The identification module is configured to send a register query message to the inverter address, and if the response content meets the expected function of the preset protocol, the inverter is bound to the matching protocol number in the protocol library, and the target photovoltaic inverter is identified to execute the protocol type. The conversion module is configured to match the target data item in the preset inverter configuration library based on the identified target photovoltaic inverter execution protocol type and the extracted control parameters, convert the first protocol message into a protocol format supported by the target inverter based on the matching result, and generate a downlink communication message containing the register address, gain value and function code. The verification module is configured to send the generated downlink message to the photovoltaic inverter, receive the returned state data, verify the returned state data, encapsulate the data that passes the verification according to the first protocol format, and return it to the power grid master station, thereby completing the bidirectional protocol conversion and data interaction between the distributed photovoltaic device and the power grid master station.
[0059] The division of modules in the embodiments of the present application is illustrative, and is only a logical functional division. In actual implementation, another division method can be used. In addition, each functional module in each embodiment of the present application can be integrated in one processor, or can be physically separated, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0060] In still another embodiment of the present application, a computer device is provided, which comprises a processor and a memory, the memory being configured to store a computer program, the computer program comprising program instructions, and the processor being configured to execute the program instructions stored in the computer storage medium. The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, etc., which are the computing core and control core of the terminal, and are suitable for implementing one or more instructions, and are particularly suitable for loading and executing one or more instructions in the computer storage medium to implement a corresponding method flow or a corresponding function; the processor in the embodiments of the present application can be used for the operation of the integrated conversion method of the distributed photovoltaic multi-source heterogeneous protocol.
[0061] In still another embodiment of the present application, the present application further provides a storage medium, specifically a computer readable storage medium (Memory), which is a memory device in a computer device, and is configured to store programs and data. It can be understood that the computer readable storage medium herein can include an internal storage medium in the computer device, and of course can also include an expansion storage medium supported by the computer device. The computer readable storage medium provides a storage space, and the storage space stores an operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and the instructions can be one or more computer programs (including program codes). It should be noted that the computer readable storage medium herein can be a high-speed RAM memory, or a non-volatile memory such as at least one disk memory. One or more instructions stored in the computer readable storage medium can be loaded and executed by the processor to implement the corresponding steps of the integrated conversion method of the distributed photovoltaic multi-source heterogeneous protocol in the above embodiments.
[0062] Those skilled in the art will appreciate that embodiments of the application can be devised for a method, a system, or a computer program product. Accordingly, the present application can be embodied in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.
[0063] The present application is described in reference to the flowchart and / or block diagrams of the method, apparatus (system) and computer program product according to embodiments of the application. It will be understood that each block of the flowchart and / or block diagrams, and combinations of blocks in the flowchart 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 processing device 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, create means for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks.
[0064] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks.
[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks.
[0066] Finally, it should be noted that the above-mentioned embodiments are merely intended for describing the technical solutions of the present application, but not for limiting it. Although the present application is described in detail with reference to the above embodiments, those skilled in the field should understand that the specific embodiments of the present application can be modified or replaced equivalently without departing from the spirit and scope of the present application, and any modification or equivalent replacement without departing from the spirit and scope of the present application should be covered in the protection scope of the claims of the present application.
Claims
1. An integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols, characterized in that: include: Receive the first protocol message sent by the power grid master station, parse the message structure, and extract the control parameters in the message; Send register query messages to the inverter address polling. If the response content meets the expected function of the preset protocol, bind the inverter with the matching protocol number in the protocol library to identify the protocol type executed by the target PV inverter. Based on the identified target PV inverter execution protocol type and the extracted control parameters, the target data item is matched in a preset inverter configuration library. Based on the matching result, the first protocol message is converted into a protocol format supported by the target inverter, and a downlink communication message including a register address, gain value, and function code is generated. The generated downlink message is sent to the photovoltaic inverter, the returned status data is received, the returned status data is verified, the verified data is encapsulated according to the first protocol format, and transmitted back to the power grid master station, completing the two-way protocol conversion and data interaction between the distributed photovoltaic equipment and the power grid master station.
2. The integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols according to claim 1, characterized in that: The receiving the first protocol message sent by the power grid master station, parsing the message structure, and extracting the control parameters in the message includes: The master station sends a first protocol message, parses the received first protocol message, extracts the object address OAD and data field in the message by analyzing the identification information and protocol format in the message, and extracts the acquisition command, control command, and control parameters of the status information in the message based on the parsing result.
3. The integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols according to claim 2, characterized in that: The object address OAD field identifies the target data line or target action, and verifies the data format of the extracted control parameters. If the data verification passes, the extracted commands and parameters are passed to the downstream protocol conversion module for protocol conversion and data processing.
4. The integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols according to claim 1, characterized in that: The polling sends a register query message to the inverter address. If the response content meets the expected function of the preset protocol, the inverter is bound to the matching protocol number in the protocol library to identify the protocol type executed by the target photovoltaic inverter, including: A Modbus communication message is sent to the register address of the inverter device, and the specific protocol type of the inverter is identified by querying the return message obtained from the special register address. When the inverter device receives the communication message, it will return a response frame according to the protocol it implements. If the protocol used by the inverter matches the protocol preset by the system device and no abnormality occurs in the device during the response process, the response frame is considered valid and correct. The data rationality of the inverter's response content is verified. If the protocol type is successfully identified, the corresponding protocol parsing mode is switched to, and a file is generated autonomously to bind the inverter to the number of this protocol in the protocol library. If the identification fails, continue to poll other registers or use alternative solutions for further verification until successful identification or determination that the device protocol cannot be matched.
5. The integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols according to claim 4, characterized in that: The data rationality verification of the inverter's response content specifically includes: checking whether the data value in the response frame is within a reasonable range and whether it meets the expected function of the register. If the response content meets expectations and the data value is consistent with the status or function of the device, it is determined that the protocol recognition of the inverter device is successful.
6. The integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols according to claim 1, characterized in that: The generating of the downlink communication message including the register address, the gain value and the function code comprises: A configuration library is established to store the configuration information of various inverters. The configuration file of each inverter model contains the specific address of the register, the corresponding function code and the data type. During the protocol conversion process, the corresponding configuration in the inverter configuration library is searched and matched according to the OAD in the upstream protocol. When the OAD in the upstream protocol is received, the corresponding inverter register configuration is retrieved from the configuration library according to the address. The configuration includes the register address, gain value and function code.
7. The integrated conversion method for distributed photovoltaic multi-source heterogeneous protocols according to claim 1, characterized in that: The completion of bidirectional protocol conversion and data interaction between distributed photovoltaic equipment and the power grid master station includes: A message that meets the inverter communication protocol requirements is generated and sent to the photovoltaic inverter for data reading or control operations. The response message returned by the inverter is received, and the register address, data range verification and CRC check are performed on the returned message to extract the real-time status and monitoring parameters of the inverter. The verified data is encapsulated in the first protocol format and then transmitted back to the power grid master station.
8. An integrated conversion system for distributed photovoltaic multi-source heterogeneous protocols, characterized in that: include: A data receiving module is used to receive the first protocol message sent by the power grid master station, parse the message structure, and extract the control parameters in the message; The identification module is used to poll the inverter address and send a register query message. If the response content meets the expected function of the preset protocol, the module binds the inverter with the matching protocol number in the protocol library to identify the protocol type executed by the target PV inverter. a conversion module configured to match target data items in a preset inverter configuration library based on the identified target PV inverter execution protocol type and the extracted control parameters; and based on the matching result, convert the first protocol message into a protocol format supported by the target inverter, and generate a downlink communication message including a register address, a gain value, and a function code; The verification module is used to send the generated downlink message to the photovoltaic inverter, receive the returned status data, verify the returned status data, encapsulate the verified data according to the first protocol format, and transmit it back to the power grid master station, completing the two-way protocol conversion and data interaction between the distributed photovoltaic equipment and the power grid master station.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the integrated conversion method of the distributed photovoltaic multi-source heterogeneous protocol as claimed in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the integrated conversion method of the distributed photovoltaic multi-source heterogeneous protocol as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Low-voltage grid-connected distributed photovoltaic observation control method and device
CN113972746A
Protocol adaptive method between photovoltaic protocol converter and photovoltaic inverter
CN116320062A
Photovoltaic protocol conversion module and application equipment
CN118612304A
Cited By
Photovoltaic inverter protocol conversion method
CN121907939A
A photovoltaic inverter protocol conversion method
CN121907939B