Protocol conversion method of distributed power supply access unit and power grid access system

By receiving binary configuration files and formula sequences issued by the power grid system, the conversion complexity problem caused by the differences in inverter protocols of multiple manufacturers is solved, flexible protocol conversion and efficient equipment access are realized, and the stability and reliability of the power grid system are ensured.

CN120455559AActive Publication Date: 2025-08-08BEIJING ZHONGCHEN MICROELECTRONICS CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510650330.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-08-08
Estimated Expiration
2045-05-20

AI Technical Summary

Technical Problem

In the prior art, the Modbus protocols of multi-manufacturers have large differences, resulting in complex conversion between the power grid protocol and the inverter Modbus protocol, high upgrade cost, poor compatibility, and affecting the stability and reliability of the power grid system.

Method used

By receiving binary configuration files issued by the power grid system, including protocol conversion rules and formula sequences, identifying operation types and converting them, supporting a variety of Modbus protocols, dynamic configuration files and formulaic operations, supporting new device access, and signature verification is tamper-proof.

Benefits of technology

Flexible protocol conversion is realized, reducing upgrade and maintenance costs, improving compatibility and execution efficiency, and ensuring stable operation of the power grid system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455559A_ABST
    Figure CN120455559A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a protocol conversion method of a distributed power supply access unit and a power grid access system.The method comprises the steps that a binary configuration file issued by a power grid system is received, and the binary configuration file comprises a plurality of protocol conversion rules; each protocol conversion rule comprises a power grid protocol operation type and a corresponding formula sequence; identifying an operation type of protocol conversion based on the protocol conversion request message of the power grid system; matching a corresponding protocol conversion rule from the binary configuration file according to the operation type; and converting the corresponding formula sequence according to the matched protocol conversion rule. According to the technical scheme provided by the embodiment of the invention, the technical problems of large protocol difference, poor compatibility, high upgrading cost, low execution efficiency and the like of inverters of multiple manufacturers are effectively solved through dynamic file configuration and formulation operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of power system communication technology, and in particular to a protocol conversion method for a distributed power supply access unit and a power grid access system. Background Art

[0002] A distributed generation access unit (DGAU) is a metering, data collection, and control device used to connect inverters to the power grid. The grid system and DGAU interact using grid protocols (such as the HPLC power carrier protocol, DL / T698, and DL / T645). The DGAU interacts with the inverter using the Modbus protocol, creating a one-to-many conversion relationship between the grid protocol and the inverter Modbus protocol.

[0003] Currently, numerous inverter manufacturers offer a wide variety of inverter models. These devices utilize Modbus protocols that vary significantly, and each manufacturer continually develops new models and expands the protocol. This makes the conversion between the grid protocol and the inverter Modbus protocol complex and difficult to standardize. Each time a new device model is added or the protocol is updated, the conversion system must be reconfigured or upgraded, significantly increasing operational and maintenance costs and complexity. Furthermore, compatibility issues between different inverter devices frequently occur, impacting the stability and reliability of the power grid system. Summary of the Invention

[0004] Based on the above situation of the prior art, the purpose of the embodiments of the present invention is to provide a protocol conversion method for a distributed power access unit and a power grid access system. The protocol conversion method can adapt to multiple Modbus protocols and is easy to expand and upgrade.

[0005] To achieve the above object, according to one aspect of the present invention, a protocol conversion method for a distributed power access unit is provided, which is applied to the distributed power access unit and includes the following steps:

[0006] Receive a binary configuration file issued by the power grid system, wherein the binary configuration file includes a plurality of protocol conversion rules, each protocol conversion rule including a power grid protocol operation type and a corresponding formula sequence;

[0007] Based on the protocol conversion request message of the power grid system, identify the operation type of the protocol conversion;

[0008] Matching a corresponding protocol conversion rule from the binary configuration file according to the operation type;

[0009] The corresponding formula sequence is converted according to the matched protocol conversion rule.

[0010] Furthermore, the operation types include data acquisition, parameter setting and action execution.

[0011] Furthermore, the corresponding formula sequence is converted according to the matched protocol conversion rule, including the steps of:

[0012] Extracting the data types involved in the formula sequence according to the formula sequence corresponding to the protocol conversion rule;

[0013] Extracting original data from the protocol conversion request message;

[0014] The original data is converted into an intermediate data format according to the data type, and the data in the intermediate data format is an input parameter of the formula sequence.

[0015] Furthermore, converting the corresponding formula sequence according to the matched protocol conversion rule also includes the following steps:

[0016] Generate Modbus protocol instructions through read and write operations to communicate with the target inverter;

[0017] Performing arithmetic operations or bit operations to process the data in the intermediate data format;

[0018] Cache the calculation results as intermediate data for use in subsequent formula sequences.

[0019] Furthermore, the method further comprises the steps of:

[0020] According to the number of result items defined in the formula sequence, the operation results are assembled and executed according to the Modbus protocol;

[0021] Return the result data to the power grid system.

[0022] Furthermore, the method further comprises the steps of:

[0023] Check whether there is valid intermediate data in the cache;

[0024] If there is valid intermediate data in the cache, the result data is returned to the power grid system; if there is no valid intermediate data in the cache, it is checked whether there is a converted formula sequence;

[0025] If there is a converted formula sequence, the converted formula sequence is executed and the result data is returned to the power grid system; if there is no converted formula sequence, the corresponding formula sequence is converted according to the matched protocol conversion rule.

[0026] Furthermore, the protocol conversion rules of the binary configuration file can be modified according to the inverter model.

[0027] Furthermore, the binary configuration file is signed by the power grid system; the method further comprises the steps of:

[0028] The signature of the binary configuration file is verified.

[0029] Furthermore, the protocol conversion rule is used to convert the power grid protocol into the Modbus protocol, and the power grid protocol includes the HPLC protocol, the DL / T698 protocol and the DL / T645 protocol.

[0030] According to another aspect of the present invention, there is provided a grid access system for an inverter, the system comprising a distributed power supply access unit and a plurality of inverters;

[0031] The plurality of inverters are respectively communicatively connected to the distributed power supply access unit;

[0032] The distributed power supply access unit is communicatively connected to an external power grid system and is configured to perform protocol conversion based on a binary configuration file issued by the power grid system, so that the plurality of inverters are connected to the power grid system;

[0033] The protocol conversion adopts the protocol conversion method described in the first aspect of the present invention.

[0034] In summary, an embodiment of the present invention provides a protocol conversion method for a distributed power access unit and a power grid access system, the method comprising the steps of: receiving a binary configuration file issued by the power grid system, the binary configuration file comprising a number of protocol conversion rules, each protocol conversion rule comprising a power grid protocol operation type and a corresponding formula sequence; identifying the operation type of the protocol conversion based on the protocol conversion request message of the power grid system; matching the corresponding protocol conversion rule from the binary configuration file according to the operation type; and converting the corresponding formula sequence according to the matched protocol conversion rule. The technical solution provided by the embodiment of the present invention effectively solves the technical problems of large differences in inverter protocols of multiple manufacturers, poor compatibility, high upgrade costs, and low execution efficiency through dynamic configuration files and formulaic operations. At the same time, it is flexible and scalable, can adapt to the access requirements of new equipment, and provides technical guarantees for the efficient access of distributed power sources and the stable operation of the power grid system. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a schematic diagram of the overall structure of the power grid access system provided by an embodiment of the present invention;

[0036] Figure 2 This is a flow chart of a protocol conversion method for a distributed power supply access unit provided by an embodiment of the present invention;

[0037] Figure 3This is a schematic diagram of generating an original configuration file according to an embodiment of the present invention;

[0038] Figure 4 This is a schematic diagram of generating a binary configuration file according to an embodiment of the present invention;

[0039] Figure 5 is a schematic diagram of using a signature tool to sign a binary configuration file according to an embodiment of the present invention;

[0040] Figure 6 Schematic diagram of a distributed power access unit in an embodiment of the present invention verifying and enabling the signature of a received binary configuration file;

[0041] Figure 7 It is a schematic diagram of the overall implementation process of the protocol conversion method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] To make the objectives, technical solutions, and advantages of the present invention more clearly understood, the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present invention.

[0043] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present invention should have the usual meanings understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in one or more embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

[0044] The technical solution of the present invention is described in detail below with reference to the accompanying drawings. An embodiment of the present invention provides a protocol conversion method for a distributed power access unit, which is applied to a distributed power access unit. The distributed power access unit is a "metering, collection and control device" used to support the inverter to access the power grid system. Figure 1 The overall structure diagram of the grid access system is shown in FIG. Figure 1As shown, the grid access system includes a distributed power access unit and several inverters. Among them, several inverters are respectively connected to the distributed power access unit for communication, and the interaction between the distributed power access unit and the inverter uses the Modbus protocol; the distributed power access unit is connected to the external power grid system for performing protocol conversion based on the binary configuration file issued by the power grid system, so that the several inverters can be connected to the power grid system, and the interaction between the power grid system and the distributed power access unit uses the power grid protocol (such as HPLC power carrier protocol, DL / T698 protocol, and DL / T645 protocol, etc.). The distributed power access unit performs protocol conversion based on the binary configuration file issued by the power grid system. Figure 2 The flowchart of the protocol conversion method according to the embodiment of the present invention is shown in FIG. Figure 2 As shown, the method includes the following steps:

[0045] S202. Receive a binary configuration file issued by the power grid system. The binary configuration file includes several protocol conversion rules, each of which includes a power grid protocol operation type and a corresponding formula sequence. An original configuration file can be generated in advance based on inverter documents provided by different manufacturers. The original configuration file includes a formula sequence for converting the power grid protocol to the inverter Modbus protocol. The original configuration file is converted into a binary configuration file. A specific configuration file generation tool can be used to generate the binary configuration file from the original configuration file. Figure 3 A schematic diagram of the original configuration file generation is shown in Figure 4 A schematic diagram of generating a binary configuration file is shown in FIG. In the embodiment of the present invention, for example, the following code is used to realize the generation of the configuration file.

[0046] Classify and encode the grid protocol request:

[0047]

[0048] Define the formula operation for processing Modbus protocol as needed:

[0049]

[0050] Table 1 illustrates some optional parameters and calculation results in the formula sequence, where the independent variable x in the formula sequence represents relevant data in the Modbus protocol, and the result obtained is the calculation result or operation result of the formula sequence.

[0051] Table 1 Parameters and calculation results in the formula sequence

[0052]

[0053]

[0054] The original configuration file is generated into a binary configuration file. In the embodiment of the present invention, the following optional method is provided to convert the sequence formula in Table 1 into a data structure and write it into the binary configuration file.

[0055] Data structure of parameters or results:

[0056]

[0057] The data structure of the protocol conversion rule:

[0058]

[0059] The generated binary configuration file stores a series of struct DLT698ToModbusConvRule items.

[0060] In this step, the grid system packages the sequence of conversion formulas for decomposing and converting the grid protocol to the inverter Modbus protocol into a binary configuration file. The distributed access unit receives this binary configuration file and is enabled. Upon receiving a protocol conversion request message from the grid system, the unit decomposes and executes the conversion rules in the binary configuration file. The protocol conversion rules in this binary configuration file can be modified based on the inverter model. When the inverter Modbus protocol changes, only a new binary configuration file needs to be issued. This solves the technical problem in existing technologies where the addition of new device models or protocol updates require reconfiguration or upgrades of the conversion system.

[0061] According to some optional embodiments, the generated binary configuration file is signed by the power grid system and then sent to the distributed power access unit. Figure 5 FIG. 4 shows a schematic diagram of using a signature tool to sign a binary configuration file, wherein the method further comprises the steps of:

[0062] S203. Verify the signature of the binary configuration file. If the verification passes, enable the binary configuration file. To prevent the configuration file from being tampered with, the configuration file can be signature-protected. When the binary configuration file is sent to the distributed power access unit, the distributed power access unit device needs to verify the signature. Only when the signature verification passes can the configuration file be used. This avoids the problem of destructive consequences after the configuration file is tampered with.

[0063] Figure 6 FIG. 4 shows a schematic diagram of a distributed power access unit verifying and enabling the signature of a received binary configuration file.

[0064] S204: Based on the protocol conversion request message of the power grid system, identify the operation type of the protocol conversion, which includes but is not limited to data acquisition, parameter setting, and action execution.

[0065] S206. Match the corresponding protocol conversion rules from the binary configuration file based on the operation type. When the power grid system is operating, upon receiving a protocol conversion request message from the power grid system, the distributed access unit decomposes the message according to the formula sequence in the binary configuration file, interacts with the inverter devices in sequence according to the formula sequence, and obtains the final result data and returns it to the power grid system.

[0066] S208. Convert the corresponding formula sequence according to the matched protocol conversion rule. According to the formula sequence corresponding to the protocol conversion rule, extract the data type involved in the formula sequence; extract the original data in the protocol conversion request message; convert the original data into an intermediate data format according to the data type, and the data in the intermediate data format is the input parameter of the formula sequence. The distributed power access unit caches the converted formula sequence, thereby improving the subsequent execution efficiency. After converting the protocol conversion request message into a Modbus formula sequence according to the binary configuration file, the converted formula sequence is cached. When the same protocol conversion request message arrives again, the cached formula sequence can be used for execution, thereby avoiding repeated conversion and improving the efficiency of the protocol conversion. Figure 7 FIG. 4 shows a schematic diagram of the overall implementation process of the protocol conversion method according to an embodiment of the present invention.

[0067] According to certain optional embodiments, the following steps are further included: generating Modbus protocol instructions through read and write operations to communicate with the target inverter; performing arithmetic operations or bit operations to process data in an intermediate data format; and caching the operation results as intermediate data for use in subsequent formula sequences. Regarding the operation results, the operation results of some formula sequences are real-time data that cannot be cached, while some results can be cached. In the formula sequence, some operation results have a cacheable flag, and the distributed power access unit caches them.

[0068] When executing the converted formula, if the formula has the result cacheable flag, the obtained data will be cached and the cached data will be used directly the next time the formula is executed.

[0069] According to certain optional embodiments, the steps of: assembling and executing the calculation results according to the Modbus protocol based on the number of result items defined in the formula sequence; and returning the result data to the power grid system. Furthermore, bit-based calculation formulas can be added to extract and reassemble the final result from the read Modbus data bit by bit, thus resolving the problem of needing to extract bits from the results of multiple Modbus interactions and reassemble them to obtain the data requested by the power grid protocol.

[0070] According to certain optional embodiments, the following steps are also included: querying whether there is valid cached intermediate data; if there is valid cached intermediate data, returning the result data to the power grid system; if there is no valid cached intermediate data, querying whether there is a converted formula sequence; if there is a converted formula sequence, executing the converted formula sequence and returning the result data to the power grid system; if there is no converted formula sequence, converting the corresponding formula sequence according to the matched protocol conversion rules.

[0071] An embodiment of the present invention further provides a grid access system for an inverter, the system comprising a distributed power supply access unit and a plurality of inverters. Figure 1 The overall structure of the grid access system is shown in FIG. The distributed power access unit is connected to the external grid system and is configured to perform protocol conversion based on a binary configuration file issued by the grid system to enable multiple inverters to access the grid system. This protocol conversion adopts the protocol conversion method provided in the above-mentioned embodiments of the present invention, and its repeated description will be omitted here.

[0072] In summary, embodiments of the present invention relate to a protocol conversion method for a distributed power access unit and a power grid access system. The method comprises the following steps: receiving a binary configuration file issued by a power grid system, the binary configuration file comprising several protocol conversion rules, each of which includes a power grid protocol operation type and a corresponding formula sequence; identifying the protocol conversion operation type based on a protocol conversion request message from the power grid system; matching the corresponding protocol conversion rule from the binary configuration file based on the operation type; and converting the corresponding formula sequence based on the matched protocol conversion rule. The technical solution provided by embodiments of the present invention allows for updating conversion rules to configuration files based on the evolving protocols of inverter manufacturers without upgrading the firmware of the distributed access unit, and then distributing the configuration files to the distributed access units to support the new protocols, thereby reducing development and maintenance costs. The configuration files are signed by the publisher, and the signature is verified on the device side to verify the publisher's identity and prevent counterfeiting or tampering. During operation, the distributed access unit caches conversion rules and intermediate data to reduce repeated accesses and improve efficiency. Highly scalable conversion formulas support conversion from power grid protocols to manufacturer-specific Modbus protocols, offering high scalability.

[0073] It should be understood that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the present invention (including the claims) is limited to these examples; under the thinking of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present invention as described above, which are not provided in detail for the sake of simplicity. The above specific embodiments of the present invention are merely used to illustrate or explain the principles of the present invention and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the scope of protection of the present invention. In addition, the claims appended to the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.

Claims

1. A protocol conversion method for a distributed power supply access unit, characterized in that: Applied to a distributed power access unit, including the following steps: Receive a binary configuration file issued by the power grid system, wherein the binary configuration file includes a plurality of protocol conversion rules, each protocol conversion rule including a power grid protocol operation type and a corresponding formula sequence; Based on the protocol conversion request message of the power grid system, identify the operation type of the protocol conversion; Matching a corresponding protocol conversion rule from the binary configuration file according to the operation type; The corresponding formula sequence is converted according to the matched protocol conversion rule.

2. The method according to claim 1, characterized in that The operation types include data acquisition, parameter setting and action execution.

3. The method according to claim 1, characterized in that The corresponding formula sequence is converted according to the matched protocol conversion rule, including the following steps: Extracting the data types involved in the formula sequence according to the formula sequence corresponding to the protocol conversion rule; Extracting original data from the protocol conversion request message; The original data is converted into an intermediate data format according to the data type, and the data in the intermediate data format is an input parameter of the formula sequence.

4. The method according to claim 3, characterized in that Converting the corresponding formula sequence according to the matched protocol conversion rule also includes the steps of: Generate Modbus protocol instructions through read and write operations to communicate with the target inverter; Performing arithmetic operations or bit operations to process the data in the intermediate data format; Cache the calculation results as intermediate data for use in subsequent formula sequences.

5. The method according to claim 4, characterized in that The method further comprises the steps of: According to the number of result items defined in the formula sequence, the operation results are assembled and executed according to the Modbus protocol; Return the result data to the power grid system.

6. The method according to claim 1, characterized in that The method further comprises the steps of: Check whether there is valid intermediate data in the cache; If there is valid intermediate data in the cache, the result data is returned to the power grid system; if there is no valid intermediate data in the cache, it is checked whether there is a converted formula sequence; If there is a converted formula sequence, the converted formula sequence is executed and the result data is returned to the power grid system; if there is no converted formula sequence, the corresponding formula sequence is converted according to the matched protocol conversion rule.

7. The method according to claim 1, characterized in that The protocol conversion rules of the binary configuration file can be modified according to the inverter model.

8. The method according to claim 1, characterized in that The binary configuration file is signed by the power grid system; the method further comprises the steps of: The signature of the binary configuration file is verified.

9. The method according to claim 1, characterized in that The protocol conversion rule is used to convert the power grid protocol into the Modbus protocol, and the power grid protocol includes the HPLC protocol, the DL / T698 protocol and the DL / T645 protocol.

10. A grid access system for an inverter, characterized in that: The system includes a distributed power access unit and several inverters; The plurality of inverters are respectively communicatively connected to the distributed power supply access unit; The distributed power supply access unit is communicatively connected to an external power grid system and is configured to perform protocol conversion based on a binary configuration file issued by the power grid system, so that the plurality of inverters are connected to the power grid system; The protocol conversion adopts the protocol conversion method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • OpenAPI conversion system and method based on multi-Modbus bus protocol

    CN110049014A

  • Data conversion method and system based on knx protocol

    CN113489686A

  • Modbus edge computing gateway implementation method, device and system

    CN115643315A

  • Interface protocol conversion method and device, storage medium and electronic equipment

    CN116185476A

  • Multi-protocol protocol conversion method and system based on micro service

    CN116346948A