Distributed photovoltaic communication protocol self-identification interaction device and method
The device and method efficiently and accurately identify photovoltaic inverter communication protocols, addressing inefficiencies and errors in existing methods by using a communication interface and protocol self-identification module, enhancing power grid control and safety.
Patent Information
- Application Number
- CN202411591896.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for identifying photovoltaic inverter communication protocols are time-consuming, labor-intensive, and prone to errors due to varying communication protocols among different brands and models, leading to inefficiencies and increased debugging costs, and do not account for environmental factors like electromagnetic interference.
A distributed photovoltaic communication protocol self-identification interaction device and method that uses a communication interface module, brand protocol feature library, and protocol self-identification module to accurately and quickly identify photovoltaic inverter protocols by analyzing response messages, ensuring reliability through continuous feedback judgment.
Enables rapid and reliable identification of photovoltaic inverter protocols, improving the controllability and safety of the power grid by uniformly uploading electrical data for centralized analysis, reducing engineering difficulties and costs.
Smart Images

Figure CN119093601A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distributed photovoltaic power generation grid-connected control, and in particular to a distributed photovoltaic communication protocol self-identification interaction device and method. Background Art
[0002] With the rapid and large-scale promotion of photovoltaic power generation in the whole county, the large number of household distributed photovoltaic power generation has caused many problems. Photovoltaic power generation is greatly affected by weather changes, resulting in fluctuations in output power, which in turn causes fluctuations in grid voltage; a large number of distributed photovoltaic power generation is installed in rural distribution stations. Users have low electricity demand, and the distributed photovoltaic power generation is too large, resulting in the inability to consume electricity locally. A large amount of electricity is sent back to the grid, causing voltage to exceed the limit, and even the transformer capacity may be too small to cause the distribution transformer to burn out, causing safety problems.
[0003] Compared with traditional equipment, distributed photovoltaic inverters can provide continuously adjustable capacitive and inductive reactive power, and can solve the problem of voltage over-limit through flexible reactive power regulation. However, the brands of photovoltaic users in low-voltage areas are different, and the communication protocols are different. Even for the same brand, there are multiple versions of communication protocols for different models of inverters. The default communication address, register address, naming, control accuracy, message response time, etc. of the four remote information are quite different. Even if the communication protocol conversion module is used, it cannot avoid the large configuration workload in the actual engineering application and promotion, the difficulty of engineering debugging, and the increase of debugging costs. At present, for photovoltaic inverters of different brands, construction personnel need to use data acquisition sticks with different interfaces, and then manually find the corresponding communication protocol according to the brand model. However, some brand inverters cooperate with other manufacturers, which increases the workload of finding communication protocols. Therefore, construction personnel need to adjust the communication protocol with the photovoltaic inverter on the spot, which also increases the difficulty of controlling the photovoltaic inverter in the future, which is time-consuming and laborious.
[0004] Existing patent document CN116320062A discloses a protocol adaptation method between a photovoltaic protocol converter and a photovoltaic inverter. This method uses the data content stored in several continuous registers unique to each photovoltaic inverter as a judgment mark to identify the photovoltaic inverter communication protocol. However, this method has a long judgment time and a slow response speed. In addition, this method does not take into account the communication interruption, electromagnetic interference and other situations that may occur in the actual field, which may lead to self-identification failures. Therefore, the recognition reliability and accuracy cannot be guaranteed in practical applications. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a distributed photovoltaic communication protocol self-identification interaction device and method, which can accurately and quickly self-identify the distributed photovoltaic communication protocol.
[0006] The technical solution adopted by the present invention to solve the technical problem is: to provide a distributed photovoltaic communication protocol self-identification interaction device, comprising: A communication interface module, used to connect to the photovoltaic inverter to be identified, and realize communication connection with the photovoltaic inverter to be identified; Brand protocol feature library, used to store various communication protocols of different brands of photovoltaic inverters; A protocol self-identification module, used to identify the communication protocol of the photovoltaic inverter to be identified according to the received response message, wherein the response message is a message returned by the photovoltaic inverter to be identified after receiving a request message for reading special address data; The control module is used to control the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified according to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library.
[0007] The control module comprises: A brand determination unit, used to determine the brand of the photovoltaic inverter to be identified; A screening unit, used to select a communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library; A first control sending unit, used to control the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified using the selected communication protocol; A receiving unit, used to receive the identification result of the protocol self-identification module; A cyclic sending unit is used to select the next communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library by the screening unit to send a request message when the identification result of the protocol self-identification module is identification failure, until the identification result of the protocol self-identification module is identification success.
[0008] The protocol self-identification module includes: A parsing unit, used for parsing the response message to obtain a function code and a data code; A function code judging unit, used to judge whether the content of the function code is error information; A first determining unit, configured to determine that the recognition fails when the content of the function code is error information; A data code judging unit, used for judging whether the content of the data code is within a defined data range when the content of the function code is non-error information; A second determination unit, configured to determine that the recognition fails when the content of the data code is not within a defined data range; The third determination unit is used to determine that the recognition is successful when the content of the data code is within a defined data range.
[0009] The protocol self-identification module also includes: A success judgment unit, used to judge whether the number of successful recognitions exceeds a preset number; A request unit, configured to send a request to the control module to send a request message for reading special address data again using the current communication protocol when the number of successful identifications does not exceed a preset number; The result sending module is used to send a recognition result of successful recognition to the control module when the number of successful recognitions exceeds a preset number; and to send a recognition result of failed recognition to the control module when the number of successful recognitions fails.
[0010] The control module is also connected to the power grid terminal; the control module also includes: A second control and sending unit, used for controlling the communication interface module to send a read data message to the photovoltaic inverter to be identified with the selected slave address; An address determination unit, configured to use the selected slave address as an identification document (ID) of the photovoltaic inverter to be identified when the communication interface module receives a read data response message; A repeated sending unit, configured to select a next slave address to send a read data message to the photovoltaic inverter to be identified when the communication interface module does not receive a read data response message, until a read data response message is received; The uploading unit is used to upload the ID of the photovoltaic inverter to be identified to the power grid terminal.
[0011] The control module also includes: A third control sending unit, used for controlling the communication interface module to send a data extraction request message for reading an electrical data address to the photovoltaic inverter to be identified using a communication protocol that has been successfully identified; A data range determination unit, used to determine whether the data range of the electrical data in the returned data extraction response message is normal; A data uploading unit, configured to upload the electrical data to the power grid terminal when the data range of the electrical data in the returned data extraction response message is normal; An adjustment instruction sending unit is used to control the communication interface module to send an adjustment instruction to the photovoltaic inverter to be identified by identifying a successful communication protocol; the adjustment instruction is an instruction obtained by the power grid terminal after sorting and analyzing the electrical data of the entire substation or multiple photovoltaic inverters.
[0012] The control module also includes: A re-control sending unit is used to control the communication interface module to re-send a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified by using a communication protocol that has been successfully identified when the data range of the electrical data in the returned data extraction response message is abnormal; The re-identification control unit is used to control the communication interface module, the brand protocol feature library and the protocol self-identification module to re-identify the communication protocol of the photovoltaic inverter to be identified when continuous abnormalities occur in the data range of the electrical data in the returned data extraction response message.
[0013] The technical solution adopted by the present invention to solve the technical problem is: to provide a distributed photovoltaic communication protocol self-identification interaction method, using the above-mentioned distributed photovoltaic communication protocol self-identification interaction device, including the following steps: Connecting the distributed photovoltaic communication protocol self-identification interaction device to the photovoltaic inverter to be identified through the communication interface module; According to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library, controlling the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified; The communication protocol of the photovoltaic inverter to be identified is identified according to the received response message; wherein the response message is a message returned by the photovoltaic inverter to be identified after receiving a request message for reading special address data.
[0014] According to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library, controlling the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified specifically includes: Determining the brand of the photovoltaic inverter to be identified; Selecting a communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library; Controlling the communication interface module to use the selected communication protocol to send a request message for reading special address data to the photovoltaic inverter to be identified; Receiving the identification result of the protocol self-identification module; If the recognition result of the protocol self-identification module is recognition failure, the next communication protocol corresponding to the brand of the photovoltaic inverter to be identified is selected from the brand protocol feature library to send a request message until the recognition result of the protocol self-identification module is recognition success.
[0015] The step of identifying the communication protocol of the photovoltaic inverter to be identified according to the received response message specifically includes: Parsing the response message to obtain a function code and a data code; Determine whether the content of the function code is an error message; If the content of the function code is an error message, it is determined that the recognition has failed; If the content of the function code is non-error information, determining whether the content of the data code is within a defined data range; If the content of the data code is not within the defined data range, it is determined that the recognition has failed; If the content of the data code is within the defined data range, it is determined that the recognition is successful.
[0016] When the communication protocol of the photovoltaic inverter to be identified is identified according to the received response message, it also includes: Determine whether the number of successful recognitions exceeds a preset number; If the number of successful identifications does not exceed the preset number, a request is sent to the control module to send a request message for reading the special address data again using the current communication protocol; If the number of successful identifications exceeds a preset number, a recognition result of successful identification is sent to the control module; If the recognition fails, a recognition result indicating the recognition failure is sent to the control module.
[0017] Before controlling the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified according to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library, the method further includes: Controlling the communication interface module to send a read data message to the photovoltaic inverter to be identified using the selected slave address; If the communication interface module receives a read data response message, the selected slave address is used as the ID of the photovoltaic inverter to be identified; If the communication interface module does not receive a read data response message, select the next slave address to send a read data message to the photovoltaic inverter to be identified until a read data response message is received; The ID of the photovoltaic inverter to be identified is uploaded to the grid terminal.
[0018] After the communication protocol of the photovoltaic inverter to be identified is successfully identified, the method further includes: Controlling the communication interface module to send a data extraction request message for reading an electrical data address to the photovoltaic inverter to be identified using a communication protocol that has been successfully identified; Determine whether the data range of the electrical data in the returned data extraction response message is normal; If the data range of the electrical data in the returned data extraction response message is normal, uploading the electrical data to the power grid terminal; The communication interface module is controlled to send an adjustment instruction to the photovoltaic inverter to be identified by using a communication protocol that has been successfully identified; the adjustment instruction is an instruction obtained by the power grid terminal after sorting and analyzing the electrical data of the entire substation or multiple photovoltaic inverters.
[0019] After the communication protocol of the photovoltaic inverter to be identified is successfully identified, the method further includes: If the data range of the electrical data in the returned data extraction response message is abnormal, controlling the communication interface module to resend a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified using the communication protocol that has been successfully identified; If continuous anomalies occur in the data range of the electrical data in the returned data extraction response message, the communication interface module, the brand protocol feature library and the protocol self-identification module are controlled to re-identify the communication protocol of the photovoltaic inverter to be identified.
[0020] Beneficial Effects
[0021] Due to the adoption of the above-mentioned technical solution, the present invention has the following advantages and positive effects compared with the prior art: the present invention completes the identification of the photovoltaic inverter communication protocol by sending a request message for reading special address data to the photovoltaic inverter to be identified, and completes the identification of the photovoltaic inverter communication protocol according to the content of the received response message. Since the special address bits and communication protocols of photovoltaic inverters of different brands are different, the distributed photovoltaic communication protocol can be accurately and quickly self-identified through the content of the received response message. Taking into account the changes in communication protocols and environmental influences such as electromagnetic interference and signal attenuation, the present invention also ensures the reliability of identification through continuous feedback judgment. After completing the identification, the present invention uniformly uploads the collected electrical data of the photovoltaic inverter, which is convenient for the power grid terminal to centrally analyze and process the data, increases the controllability of the photovoltaic inverter in the distribution area, and improves the safety and reliability of the overall power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a structural block diagram of a distributed photovoltaic communication protocol self-identification interaction device according to an embodiment of the present invention; Figure 2 is a flow chart for identifying a communication protocol using an embodiment of the present invention; Figure 3 is a flow chart of the photovoltaic inverter device ID polling in an embodiment of the present invention; Figure 4 is a flow chart of identifying the communication protocol corresponding to the photovoltaic inverter in an embodiment of the present invention; Figure 5 It is a flow chart of photovoltaic inverter data extraction and control in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.
[0024] The embodiment of the present invention relates to a distributed photovoltaic communication protocol self-identification interaction device, such as Figure 1 As shown, it includes a communication interface module, a brand protocol feature library, a protocol self-identification module and a control module. The device can meet the power supply demand with only 5V voltage. The communication interface module in the device is used to connect with the photovoltaic inverter to be identified to achieve communication connection with the photovoltaic inverter to be identified; the brand protocol feature library is used to store various communication protocols of each brand of photovoltaic inverter; the control module is used to control the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified according to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library; the protocol self-identification module is used to identify the communication protocol of the photovoltaic inverter to be identified according to the received response message, wherein the response message is a message returned by the photovoltaic inverter to be identified after receiving the request message for reading special address data.
[0025] like Figure 2 As shown, the process of using the distributed photovoltaic communication protocol self-identification interaction device of this embodiment to identify the communication protocol of the photovoltaic inverter includes the following steps: Step 1, connect the distributed photovoltaic communication protocol self-identification interaction device to the photovoltaic inverter to be identified through the communication interface module. In this step, the control module of the distributed photovoltaic communication protocol self-identification interaction device can also be connected to the data acquisition stick of the photovoltaic inverter. The control module in this embodiment is also integrated with a long-range radio (Long Range Radio, LoRa) unit, through which the distributed photovoltaic communication protocol self-identification interaction device can be connected to the power grid terminal, so that the power grid terminal can monitor the various data of the photovoltaic inverter in real time and control the working status of the photovoltaic inverter through the distributed photovoltaic communication protocol self-identification interaction device of this embodiment.
[0026] Step 2: polling the ID of the photovoltaic inverter to obtain the ID of the photovoltaic inverter to be identified.
[0027] The control module in this embodiment includes: a second control sending unit, used to control the communication interface module to send a read data message to the photovoltaic inverter to be identified with the selected slave address, wherein each photovoltaic inverter is configured with a slave address corresponding to its ID; an address determination unit, used to use the selected slave address as the ID of the photovoltaic inverter to be identified when the communication interface module receives a read data response message; a repeated sending unit, used to select the next slave address to send a read data message to the photovoltaic inverter to be identified when the communication interface module does not receive a read data response message, until a read data response message is received; an uploading unit, used to upload the ID of the photovoltaic inverter to be identified to the power grid terminal.
[0028] It can be seen that the polling of the ID of the photovoltaic inverter in this step can be achieved through the control module. Since the Modbus protocol stipulates that the slave address range is 1-247, when the device of this embodiment is connected for the first time, if the ID of the photovoltaic inverter has not yet been known, it can be polled from 1 to 247 by sending a read data message with the same instruction to the photovoltaic inverter and changing the slave device ID in each read data message in turn until the photovoltaic inverter responds and returns a read data response message. At this time, the slave device ID of the photovoltaic inverter can be obtained. Figure 3 As shown, specifically including: Select "1" as the current slave address from the slave address range specified by the Modbus protocol; The control module controls the communication interface module to send a read data message to the photovoltaic inverter to be identified with the selected current slave address "1"; If the communication interface module receives the data read response message, the selected current slave address "1" is used as the ID of the photovoltaic inverter to be identified; If the communication interface module does not receive a read data response message, then one is added to the current slave address, and the communication interface module is controlled to send a read data message to the photovoltaic inverter to be identified with the slave address "2"; If a read data response message is received, the current slave address is used as the ID of the photovoltaic inverter to be identified; otherwise, return to the previous step until a read data response message is received; After obtaining the ID of the photovoltaic inverter, the control module uploads it to the grid terminal, so that the grid terminal can monitor and control it in real time after identifying the communication protocol of the photovoltaic inverter.
[0029] Step 3: According to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library, control the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified.
[0030] The control module in this embodiment includes: a brand determination unit, which is used to determine the brand of the photovoltaic inverter to be identified; a screening unit, which is used to select a communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library; a first control sending unit, which is used to control the communication interface module to use the selected communication protocol to send a request message for reading special address data to the photovoltaic inverter to be identified; a receiving unit, which is used to receive the identification result of the protocol self-identification module; and a cyclic sending unit, which is used to select the next communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library by the screening unit to send a request message when the identification result of the protocol self-identification module is identification failure, until the identification result of the protocol self-identification module is identification success.
[0031] Since the special address bits and communication protocols of photovoltaic inverters of different brands are different, the addresses defined in the registers of the photovoltaic inverters are also different, and the defined address ranges are also different. Therefore, when a request to read data is sent to a defined address, the photovoltaic inverter will return a message for reading data. At this time, the corresponding communication protocol can be identified based on the content of the returned message.
[0032] This step is to send a request message to read special address data, which can be completed through the collaboration of the control module, communication interface module and brand protocol feature library, as follows: First, the control module determines the brand of the photovoltaic inverter to be identified. In this step, a brand-number correspondence table can be established in advance. By querying the brand-number correspondence table, when the distributed photovoltaic communication protocol self-identification interaction device is connected to the photovoltaic inverter to be identified, the number corresponding to the brand is input into the control module, and the control module determines the brand of the photovoltaic inverter to be identified according to the received number; Next, the control module calls the brand protocol feature library and selects a first communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library; Then, the control module controls the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified by using the selected first communication protocol; Afterwards, enter waiting mode and receive the identification result of the protocol self-identification module; If the recognition result of the protocol self-identification module is recognition failure, the next communication protocol corresponding to the brand of the photovoltaic inverter to be identified is selected from the brand protocol feature library to send a request message, and then identification is performed until the recognition result of the protocol self-identification module is recognition success.
[0033] Step 4, identifying the communication protocol of the photovoltaic inverter to be identified according to the received response message; wherein the response message is a message returned by the photovoltaic inverter to be identified after receiving the request message for reading special address data.
[0034] The communication protocol of the photovoltaic inverter in this embodiment is implemented by a protocol self-identification module, which includes: a parsing unit, used to parse the response message to obtain a function code and a data code; a function code judgment unit, used to judge whether the content of the function code is an error message; a first determination unit, used to determine that the recognition fails when the content of the function code is an error message; a data code judgment unit, used to determine whether the content of the data code is within a defined data range when the content of the function code is not an error message; a second determination unit, used to determine that the recognition fails when the content of the data code is not within a defined data range; a third determination unit, used to determine that the recognition is successful when the content of the data code is within a defined data range.
[0035] This implementation method uses the content in the returned response message to realize the recognition of the communication protocol of the photovoltaic inverter. Since the register addresses defined in the communication protocols of different brands are highly overlapped, it is not possible to verify only by error reporting, and a corresponding verification strategy needs to be added. This implementation method defines data with different meanings for inverters of different brands based on the same address bit, and the numerical size range of the data is different. Therefore, after obtaining the response message, if no error message occurs and detailed data is returned, it is further determined whether the data is within the defined data range. Only when the returned data meets the defined data range requirements can the communication protocol be correctly identified. When the returned data exceeds the defined data range, the identification fails. This method avoids the misjudgment of the communication protocol due to the shared register address and improves the accuracy of self-identification.
[0036] The process of communication protocol identification by the protocol self-identification module in this step is as follows: First, the received response message is parsed to obtain the function code and the data code; then, it is determined whether the content of the function code is an error message; if the content of the function code is an error message, it is determined that the identification has failed; if the content of the function code is not an error message, it is further determined whether the content of the data code is within the defined data range; if the content of the data code is not within the defined data range, it is determined that the identification has failed; if the content of the data code is within the defined data range, it is determined that the identification is successful, which means that the communication protocol of the photovoltaic inverter to be identified is the communication protocol selected by the current control module from the brand protocol feature library.
[0037] It is worth mentioning that the protocol self-identification module in this embodiment also includes: a success judgment unit, used to judge whether the number of successful identifications exceeds a preset number; a request unit, used to send a request to the control module to send a request message for reading special address data again with the current communication protocol when the number of successful identifications does not exceed the preset number; a result sending module, used to send an identification result of successful identification to the control module when the number of successful identifications exceeds the preset number; when the identification fails, send an identification result of failed identification to the control module.
[0038] like Figure 4 As shown in the figure, the overall process of communication protocol identification is as follows: the corresponding protocol identification process in the brand protocol feature library is executed, and multiple judgments are performed after successful identification, that is, the request message for reading the corresponding special address bit data is sent again with the communication protocol when the identification is successful. Only after the protocol self-identification module judges that the identification is successful for more than three consecutive times, the identification result of successful identification is sent to the control module, indicating that the communication protocol to which the photovoltaic inverter belongs has been identified; if the identification fails, the identification process is re-entered.
[0039] Assuming that after multiple communication protocol identifications, if the protocol self-identification module still fails to identify the correct communication protocol, the relevant data of the photovoltaic inverter is uploaded to the grid terminal, and a request is made to supplement the brand protocol feature library to improve the communication protocol in the brand protocol feature library.
[0040] Step 5, after successfully identifying the communication protocol of the photovoltaic inverter to be identified, the control module also controls the communication interface module to send a request message for reading relevant electrical data with the communication protocol that has been successfully identified, and after obtaining the response message returned by the photovoltaic inverter, extracts the relevant data bytes in the response message to obtain the relevant electrical data. The power grid terminal controls the photovoltaic inverter according to the overall operation of the distribution station area, and the control module controls the communication interface module to send the adjustment instruction to the corresponding photovoltaic inverter with the communication protocol that has been successfully identified, so as to realize the control of the photovoltaic inverter.
[0041] The reading of the electrical data of the photovoltaic inverter in this embodiment is implemented by the control module, and the control module in this embodiment also includes: a third control sending unit, used to control the communication interface module to send a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified by identifying the successful communication protocol; a data range judgment unit, used to judge whether the data range of the electrical data in the returned data extraction response message is normal; a data uploading unit, used to upload the electrical data to the power grid terminal when the data range of the electrical data in the returned data extraction response message is normal; an adjustment instruction sending unit, used to control the communication interface module to send a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified by identifying the successful communication protocol; a data range judgment unit, used to judge whether the data range of the electrical data in the returned data extraction response message is normal; a data uploading unit, used to upload the electrical data to the power grid terminal when the data range of the electrical data in the returned data extraction response message is normal; a data uploading unit, used to control the communication interface module to send a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified by identifying the successful communication protocol The device sends an adjustment instruction; the adjustment instruction is an instruction obtained by the power grid terminal after sorting and analyzing the electrical data of the entire substation or multiple photovoltaic inverters; a re-control sending unit is used to control the communication interface module to re-send a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified with a successful communication protocol when the data range of the electrical data in the returned data extraction response message is abnormal; a re-identification control unit is used to control the communication interface module, the brand protocol feature library and the protocol self-identification module to re-identify the communication protocol of the photovoltaic inverter to be identified when continuous abnormalities occur in the data range of the electrical data in the returned data extraction response message.
[0042] like Figure 5 As shown, the control module of this embodiment can control the communication interface module to send a request message to the photovoltaic inverter to read the address where the electrical data is stored in order to identify the successful communication protocol. After receiving the response message returned by the photovoltaic inverter, the relevant electrical data in the response message is extracted. After successfully extracting the relevant electrical data of the photovoltaic inverter, it is determined whether there is an abnormality in the data range of the electrical data. If there is an abnormality, it may be caused by data extraction failure, and the data extraction step is repeated. If there are continuous abnormalities in the extracted electrical data, it may be caused by an error in communication protocol identification, so the photovoltaic inverter communication protocol self-identification step needs to be repeated. After successfully extracting the relevant electrical data of the photovoltaic inverter and the data range of the electrical data is normal, the obtained electrical data is uploaded to the power grid terminal. The power grid terminal organizes and analyzes the electrical data of the entire substation or multiple photovoltaic inverters, determines the operating status of the photovoltaic inverter, and then sends the adjustment instruction of the working status of the photovoltaic inverter to the control module. After receiving the adjustment instruction, the control module controls the communication interface module to send the message of the adjustment instruction to the photovoltaic inverter to be identified using the communication protocol that has been successfully identified, and determines whether the working state of the photovoltaic inverter is successfully adjusted according to the response message returned by the photovoltaic inverter, thereby completing the entire control process.
[0043] It is not difficult to find that the present invention can accurately and quickly self-identify the distributed photovoltaic communication protocol by judging the data content in the special address bits of the communication protocol of photovoltaic inverters of different brands and models. Taking into account the changes in the communication protocol and environmental influences such as electromagnetic interference and signal attenuation, the present invention also ensures the reliability of identification through continuous feedback judgment. After completing the identification, the present invention will uniformly upload the collected electrical data of the photovoltaic inverter, which is convenient for the power grid terminal to centrally analyze and process the data, increase the controllability of the photovoltaic inverter in the distribution station area, and improve the safety and reliability of the overall power grid.
Claims
1. A distributed photovoltaic communication protocol self-identification interaction device, characterized in that: include: A communication interface module, used to connect to the photovoltaic inverter to be identified, and realize communication connection with the photovoltaic inverter to be identified; Brand protocol feature library, used to store various communication protocols of each brand of photovoltaic inverter; A protocol self-identification module, used to identify the communication protocol of the photovoltaic inverter to be identified according to the received response message, wherein the response message is a message returned by the photovoltaic inverter to be identified after receiving a request message for reading special address data; The control module is used to control the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified according to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library.
2. The distributed photovoltaic communication protocol self-identification interaction device according to claim 1, characterized in that: The control module comprises: A brand determination unit, used to determine the brand of the photovoltaic inverter to be identified; A screening unit, used to select a communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library; A first control sending unit, used to control the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified using the selected communication protocol; A receiving unit, used to receive the identification result of the protocol self-identification module; A cyclic sending unit is used to select the next communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library by the screening unit to send a request message when the identification result of the protocol self-identification module is identification failure, until the identification result of the protocol self-identification module is identification success.
3. The distributed photovoltaic communication protocol self-identification interaction device according to claim 1, characterized in that: The protocol self-identification module includes: A parsing unit, used for parsing the response message to obtain a function code and a data code; A function code judging unit, used to judge whether the content of the function code is error information; A first determining unit, configured to determine that the recognition fails when the content of the function code is error information; A data code judging unit, used for judging whether the content of the data code is within a defined data range when the content of the function code is non-error information; A second determination unit, configured to determine that the recognition fails when the content of the data code is not within a defined data range; The third determination unit is used to determine that the recognition is successful when the content of the data code is within a defined data range.
4. The distributed photovoltaic communication protocol self-identification interaction device according to claim 3, characterized in that: The protocol self-identification module also includes: A success judgment unit, used to judge whether the number of successful recognitions exceeds a preset number; A request unit, configured to send a request to the control module to send a request message for reading special address data again using the current communication protocol when the number of successful identifications does not exceed a preset number; The result sending module is used to send a recognition result of successful recognition to the control module when the number of successful recognitions exceeds a preset number; and to send a recognition result of failed recognition to the control module when the number of successful recognitions fails.
5. The distributed photovoltaic communication protocol self-identification interaction device according to claim 1, characterized in that: The control module is also connected to the power grid terminal; the control module also includes: A second control sending unit, used to control the communication interface module to send a read data message to the photovoltaic inverter to be identified with the selected slave address; wherein each photovoltaic inverter is configured with a slave address corresponding to its ID; An address determination unit, configured to use the selected slave address as the ID of the photovoltaic inverter to be identified when the communication interface module receives a read data response message; A repeated sending unit, configured to select a next slave address to send a read data message to the photovoltaic inverter to be identified when the communication interface module does not receive a read data response message, until a read data response message is received; The uploading unit is used to upload the ID of the photovoltaic inverter to be identified to the power grid terminal.
6. The distributed photovoltaic communication protocol self-identification interaction device according to claim 5, characterized in that: The control module also includes: A third control sending unit, used for controlling the communication interface module to send a data extraction request message for reading an electrical data address to the photovoltaic inverter to be identified using a communication protocol that has been successfully identified; A data range determination unit, used to determine whether the data range of the electrical data in the returned data extraction response message is normal; A data uploading unit, configured to upload the electrical data to the power grid terminal when the data range of the electrical data in the returned data extraction response message is normal; An adjustment instruction sending unit is used to control the communication interface module to send an adjustment instruction to the photovoltaic inverter to be identified by identifying a successful communication protocol; the adjustment instruction is an instruction obtained by the power grid terminal after sorting and analyzing the electrical data of the entire substation or multiple photovoltaic inverters.
7. The distributed photovoltaic communication protocol self-identification interaction device according to claim 6, characterized in that: The control module also includes: A re-control sending unit is used to control the communication interface module to re-send a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified by using a communication protocol that has been successfully identified when the data range of the electrical data in the returned data extraction response message is abnormal; The re-identification control unit is used to control the communication interface module, the brand protocol feature library and the protocol self-identification module to re-identify the communication protocol of the photovoltaic inverter to be identified when continuous abnormalities occur in the data range of the electrical data in the returned data extraction response message.
8. A distributed photovoltaic communication protocol self-identification interaction method, characterized in that: The distributed photovoltaic communication protocol self-identification interaction device as claimed in any one of claims 1 to 7 comprises the following steps: Connecting the distributed photovoltaic communication protocol self-identification interaction device to the photovoltaic inverter to be identified through the communication interface module; According to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library, controlling the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified; The communication protocol of the photovoltaic inverter to be identified is identified according to the received response message; wherein the response message is a message returned by the photovoltaic inverter to be identified after receiving a request message for reading special address data.
9. The distributed photovoltaic communication protocol self-identification interaction method according to claim 8, characterized in that: According to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library, controlling the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified specifically includes: Determining the brand of the photovoltaic inverter to be identified; Selecting a communication protocol corresponding to the brand of the photovoltaic inverter to be identified from the brand protocol feature library; Controlling the communication interface module to use the selected communication protocol to send a request message for reading special address data to the photovoltaic inverter to be identified; Receiving the identification result of the protocol self-identification module; If the recognition result of the protocol self-identification module is recognition failure, the next communication protocol corresponding to the brand of the photovoltaic inverter to be identified is selected from the brand protocol feature library to send a request message until the recognition result of the protocol self-identification module is recognition success.
10. The distributed photovoltaic communication protocol self-identification interaction method according to claim 8, characterized in that: The step of identifying the communication protocol of the photovoltaic inverter to be identified according to the received response message specifically includes: Parsing the response message to obtain a function code and a data code; Determine whether the content of the function code is an error message; If the content of the function code is an error message, it is determined that the recognition has failed; If the content of the function code is non-error information, determining whether the content of the data code is within a defined data range; If the content of the data code is not within the defined data range, it is determined that the recognition has failed; If the content of the data code is within the defined data range, it is determined that the recognition is successful.
11. The distributed photovoltaic communication protocol self-identification interaction method according to claim 10, characterized in that: When the communication protocol of the photovoltaic inverter to be identified is identified according to the received response message, it also includes: Determine whether the number of successful recognitions exceeds a preset number; If the number of successful identifications does not exceed the preset number, a request is sent to the control module to send a request message for reading the special address data again using the current communication protocol; If the number of successful identifications exceeds a preset number, a recognition result of successful identification is sent to the control module; If the recognition fails, a recognition result indicating the recognition failure is sent to the control module.
12. The distributed photovoltaic communication protocol self-identification interaction method according to claim 8, characterized in that: Before controlling the communication interface module to send a request message for reading special address data to the photovoltaic inverter to be identified according to the communication protocol corresponding to the brand of the photovoltaic inverter to be identified in the brand protocol feature library, the method further includes: Controlling the communication interface module to send a read data message to the photovoltaic inverter to be identified using the selected slave address; If the communication interface module receives a read data response message, the selected slave address is used as the ID of the photovoltaic inverter to be identified; If the communication interface module does not receive a read data response message, select the next slave address to send a read data message to the photovoltaic inverter to be identified until a read data response message is received; The ID of the photovoltaic inverter to be identified is uploaded to the grid terminal.
13. The distributed photovoltaic communication protocol self-identification interaction method according to claim 12, characterized in that: After the communication protocol of the photovoltaic inverter to be identified is successfully identified, the method further includes: Controlling the communication interface module to send a data extraction request message for reading an electrical data address to the photovoltaic inverter to be identified using a communication protocol that has been successfully identified; Determine whether the data range of the electrical data in the returned data extraction response message is normal; If the data range of the electrical data in the returned data extraction response message is normal, uploading the electrical data to the power grid terminal; The communication interface module is controlled to send an adjustment instruction to the photovoltaic inverter to be identified by using a communication protocol that has been successfully identified; the adjustment instruction is an instruction obtained by the power grid terminal after sorting and analyzing the electrical data of the entire substation or multiple photovoltaic inverters.
14. The distributed photovoltaic communication protocol self-identification interaction method according to claim 13, characterized in that: After the communication protocol of the photovoltaic inverter to be identified is successfully identified, the method further includes: If the data range of the electrical data in the returned data extraction response message is abnormal, controlling the communication interface module to resend a data extraction request message for reading the electrical data address to the photovoltaic inverter to be identified using the communication protocol that has been successfully identified; If continuous anomalies occur in the data range of the electrical data in the returned data extraction response message, the communication interface module, the brand protocol feature library and the protocol self-identification module are controlled to re-identify the communication protocol of the photovoltaic inverter to be identified.
Citation Information
Patent Citations
Protocol adaptive method between photovoltaic protocol converter and photovoltaic inverter
CN116320062A
Self-adaptive communication protocol method and a weighing sensor
CN111404945A
Multi-protocol automatic identification and conversion method and intelligent gateway
CN112104654A
Power distribution Internet of Things side end interaction method and system based on protocol and model matching
CN113572257A
Modbus protocol conversion method and device, computer equipment and readable storage medium
CN116455695A
Cited By
Photovoltaic inverter identification method and device, computer equipment and storage medium
CN119298401A
Photovoltaic Inverter Identification Method, Device, Computer Equipment and Storage Medium
CN119298401B
Protocol identification method and device for accessing distributed power supply to power grid, medium and terminal
CN119341959A
Intelligent distributed power supply access device and data processing method thereof
CN119891354A
Photovoltaic inverter protocol intelligent identification method and system, electronic equipment and storage medium
CN120812158A
