Protocol conversion method for distributed power supply access unit and power grid access system
By using a protocol conversion method for distributed power supply access units, and leveraging binary configuration files and formulaic operations, the complexity of conversion caused by differences in the protocols of inverters from multiple manufacturers is resolved. This achieves efficient and flexible protocol conversion and equipment compatibility, ensuring the stability and reliability of the power grid system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZHONGCHEN MICROELECTRONICS CO LTD
- Filing Date
- 2025-05-20
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, the Modbus protocols of distributed power access units and inverters differ significantly, making the conversion between grid protocols and inverter Modbus protocols complex and difficult to unify. This increases operation and maintenance costs and complexity, and affects the stability and reliability of the power grid system.
A protocol conversion method for distributed power access units is provided. This method receives a binary configuration file from the power grid system, which contains protocol conversion rules and formula sequences, dynamic configuration files and formulaic operations, supports protocol conversion for inverters from multiple manufacturers, and includes data extraction, calculation and result assembly, and signature verification to ensure file security.
It enables flexible protocol conversion, reduces operation and maintenance costs, improves equipment compatibility and power grid system stability, supports the access of new equipment, and enhances protocol conversion efficiency and scalability.
Smart Images

Figure CN120455559B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system communication technology, and in particular to a protocol conversion method for a distributed power source access unit and a power grid access system. Background Technology
[0002] A distributed power supply unit (DPSU) is a "metering, acquisition, and control device" used to support inverters connecting to the power grid system. The interaction between the power grid system and the DPSU uses power grid protocols (such as HPLC power line carrier protocol, DL / T698 protocol, and DL / T645 protocol), while the interaction between the DPSU and the inverter uses the Modbus protocol. The power grid protocol and the inverter's Modbus protocol have a one-to-many conversion relationship.
[0003] Currently, numerous inverter manufacturers offer a variety of different inverter models. These devices use significantly different Modbus protocols, and manufacturers are constantly developing new models and expanding their protocols. This makes the conversion between the grid protocol and the inverter's Modbus protocol complex and difficult to standardize. Each time a new model is added or the protocol is updated, the conversion system needs to be reconfigured or upgraded, significantly increasing operation and maintenance costs and complexity. Furthermore, compatibility issues between different inverter devices frequently occur, affecting the stability and reliability of the power grid system. Summary of the Invention
[0004] Based on the above-mentioned situation of the prior art, the purpose of this embodiment of the invention is to provide a protocol conversion method for a distributed power access unit and a power grid access system. This protocol conversion method can adapt to multiple Modbus protocols and is easy to expand and upgrade.
[0005] To achieve the above objectives, according to one aspect of the present invention, a protocol conversion method for a distributed power access unit is provided, applied to a distributed power access unit, comprising the following steps:
[0006] Receive a binary configuration file sent by the power grid system. The binary configuration file includes several protocol conversion rules, and each protocol conversion rule includes the power grid protocol operation type and the corresponding formula sequence.
[0007] Identify the operation type of protocol conversion based on the protocol conversion request message from the power grid system;
[0008] Match the 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 rules.
[0010] Furthermore, the operation types include data acquisition, parameter setting, and action execution.
[0011] Furthermore, the corresponding formula sequence is transformed according to the matched protocol transformation rules, including the following steps:
[0012] Based on the formula sequence corresponding to the protocol conversion rules, extract the data types involved in the formula sequence;
[0013] Extract the raw 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 the input parameter of the formula sequence.
[0015] Furthermore, the conversion of the corresponding formula sequence according to the matched protocol conversion rules also includes the following steps:
[0016] Modbus protocol commands are generated through read and write operations to communicate with the target inverter.
[0017] Perform arithmetic or bitwise operations to process the data in the intermediate data format;
[0018] The calculation results are cached as intermediate data for use in subsequent formula sequences.
[0019] Furthermore, the method also includes the following steps:
[0020] Based on the number of result items defined in the formula sequence, the calculation results are assembled and executed according to the Modbus protocol;
[0021] Return the result data to the power grid system.
[0022] Furthermore, the method also includes the step of:
[0023] Check if there is any valid cached intermediate data;
[0024] If valid intermediate data exists in the cache, the result data is returned to the power grid system; if valid intermediate data does not exist in the cache, a query is performed to determine if a converted formula sequence exists.
[0025] If a converted formula sequence exists, execute the converted formula sequence and return the result data to the power grid system; if no converted formula sequence exists, convert the corresponding formula sequence according to the matched protocol conversion rules.
[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 also includes the step of:
[0028] The signature of the binary configuration file is verified.
[0029] Furthermore, the protocol conversion rules are used to convert the power grid protocol into the Modbus protocol, which includes the HPLC protocol, DL / T698 protocol, and DL / T645 protocol.
[0030] According to another aspect of the present invention, a grid connection system for inverters is provided, the system comprising a distributed power supply access unit and a plurality of inverters;
[0031] The inverters are respectively communicatively connected to the distributed power access unit;
[0032] The distributed power access unit is communicatively connected to the external power grid system and is used to perform protocol conversion based on the binary configuration file issued by the power grid system so that the inverters can be connected to the power grid system.
[0033] The protocol conversion is performed using the protocol conversion method described in the first aspect of this invention.
[0034] In summary, this invention provides a protocol conversion method and grid access system for a distributed power source access unit. The method includes the following steps: receiving a binary configuration file issued by the grid system, the binary configuration file including several protocol conversion rules, each protocol conversion rule including a grid protocol operation type and a corresponding formula sequence; identifying the operation type of the protocol conversion based on the protocol conversion request message from the 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 this invention effectively solves the technical problems of large differences in protocols among inverters from multiple manufacturers, poor compatibility, high upgrade costs, and low execution efficiency through dynamic configuration files and formulaic operations. It also possesses flexibility and scalability, adapting to the access requirements of new equipment, and providing technical support for the efficient access of distributed power sources and the stable operation of the grid system. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the overall structure of the power grid access system provided in an embodiment of the present invention;
[0036] Figure 2 This is a flowchart of the protocol conversion method for the distributed power access unit provided in an embodiment of the present invention;
[0037] Figure 3This is a schematic diagram illustrating the generation of the original configuration file in an embodiment of the present invention;
[0038] Figure 4 This is a schematic diagram illustrating the generation of the binary configuration file in an embodiment of the present invention;
[0039] Figure 5 This is a schematic diagram illustrating the use of a signature tool to sign a binary configuration file according to an embodiment of the present invention;
[0040] Figure 6 This is a schematic diagram illustrating how the distributed power access unit of this invention verifies and enables the signature of the received binary configuration file.
[0041] Figure 7 This is a schematic diagram illustrating the overall implementation process of the protocol conversion method according to an embodiment of the present invention. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments and the accompanying drawings. It should be understood that these descriptions are merely exemplary and not intended to limit the scope of the invention. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.
[0043] It should be noted that, unless otherwise defined, the technical or scientific terms used in one or more embodiments of the present invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in one or more embodiments of the present invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the element or object listed following the word and its equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.
[0044] The technical solution of the present invention will be 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 source access unit, which is a "metering, data acquisition, and control device" used to support inverter access to the power grid system. Figure 1 The diagram shows the overall structure of the power grid connection system, such as... Figure 1As shown, the grid connection system includes a distributed power source access unit (DPSU) and several inverters. Each inverter is communicatively connected to a DPSU, and the interaction between the DPSU and the inverters uses the Modbus protocol. The DPSU communicates with an external power grid system and performs protocol conversion based on a binary configuration file issued by the power grid system to enable the inverters to connect to the power grid. The interaction between the power grid system and the DPSU uses a power grid protocol (e.g., HPLC power line carrier protocol, DL / T698 protocol, and DL / T645 protocol). The DPSU 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 an embodiment of the present invention is shown below, as follows: Figure 2 As shown, the method includes the following steps:
[0045] S202. Receive the binary configuration file issued by the power grid system. This binary configuration file includes several protocol conversion rules, each including the power grid protocol operation type and the corresponding formula sequence. A raw configuration file can be pre-generated based on inverter documentation provided by different manufacturers. This raw configuration file includes the formula sequence for converting the power grid protocol to the inverter's Modbus protocol. A binary configuration file can be generated from this raw configuration file using a specific configuration file generation tool. Figure 3 The diagram shows a schematic of the original configuration file generation. Figure 4 The diagram illustrates the generation of a binary configuration file. In this embodiment of the invention, the configuration file is generated, for example, using the following code.
[0046] Classify and encode power grid protocol requests:
[0047]
[0048] Define formula operations for handling the Modbus protocol on demand:
[0049]
[0050] Table 1 illustrates some of the parameters and calculation results in the optional formula sequences. The independent variable x in the formula sequence represents the relevant data in the Modbus protocol, and the result is the calculation result or operation result of the formula sequence.
[0051] Table 1 shows the parameters and calculation results in the formula sequence.
[0052]
[0053]
[0054] To generate a binary configuration file from the original configuration file, the following optional method is provided in this embodiment of the invention to convert the sequence formulas in Table 1 into a data structure and write it into the binary configuration file.
[0055] Data structure of parameters or results:
[0056]
[0057] Data structure of protocol conversion rules:
[0058]
[0059] The generated binary configuration file stores a series of struct DLT698ToModbusConvRule entries.
[0060] In this step, the power grid system packages the decomposition and conversion formula sequence from the grid protocol to the inverter's Modbus protocol into a binary configuration file. The distributed access unit receives this binary configuration file and enables it. Upon receiving a protocol conversion request message from the power grid system, it executes the conversion according to the rules in the binary configuration file. The protocol conversion rules in this binary configuration file can be modified according to the inverter model. When the inverter's Modbus protocol changes, only a new binary configuration file needs to be issued, thus solving the technical problem in existing technologies where the conversion system needs to be reconfigured or upgraded when new models of equipment are added or the protocol is updated.
[0061] According to certain optional embodiments, the generated binary configuration file is signed by the power grid system and then distributed to the distributed power source access unit. Figure 5 The diagram illustrates the use of a signing tool to sign a binary configuration file. The method further includes the following steps:
[0062] S203. Verify the signature of the binary configuration file. If the verification passes, enable the binary configuration file. To prevent potential tampering of the configuration file, it can be protected by a signature. When the binary configuration file is distributed to the distributed power access unit, the device of the distributed power access unit needs to verify the signature. Only after the signature verification passes can the configuration file be used, thus avoiding the potential destructive consequences if the configuration file is tampered with and downloaded.
[0063] Figure 6 The diagram illustrates how a distributed power access unit verifies and enables 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. The operation type includes, but is not limited to, data acquisition, parameter setting, and action execution.
[0065] S206. Match the corresponding protocol conversion rule from the binary configuration file according to the operation type. When the power grid system is running, upon receiving a protocol conversion request message from the power grid system, the distributed access unit decomposes the data according to the formula sequence in the binary configuration file, interacts with the inverter equipment sequentially according to the formula sequence, and returns the final result data to the power grid system.
[0066] S208. Convert the corresponding formula sequence according to the matched protocol conversion rules. Based on the formula sequence corresponding to the protocol conversion rules, extract the data types involved in the formula sequence; extract the original data from the protocol conversion request message; convert the original data into an intermediate data format according to the data types, and this intermediate data format serves as the input parameters for the formula sequence. The distributed power access unit caches the converted formula sequence to improve 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 conversions and improving the efficiency of protocol conversion. Figure 7 The diagram illustrates the overall implementation process of the protocol conversion method according to an embodiment of the present invention.
[0067] According to some optional embodiments, the method further includes the following steps: generating Modbus protocol instructions through read and write operations to communicate with the target inverter; performing arithmetic or bitwise operations to process intermediate data formats; and caching the calculation results as intermediate data for use in subsequent formula sequences. Regarding the calculation results, some formula sequence results are real-time data and cannot be cached, while others can be cached. Some calculation results in the formula sequence are marked as cacheable, and the distributed power access unit caches them.
[0068] When the transformed formula is executed, if the formula includes a flag indicating that the result can be cached, the obtained data is cached, and the cached data is used directly the next time the formula is executed.
[0069] According to some optional embodiments, the method further includes the following steps: 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 operation formulas can be added to extract and reassemble the read Modbus data bit by bit into the final result, which can solve the problem of needing to extract and reassemble bits from the results of multiple Modbus interactions to obtain the data requested by the power grid protocol.
[0070] According to some optional embodiments, the method further includes the following steps: querying whether there is cached valid intermediate data; if there is cached valid intermediate data, returning the result data to the power grid system; if there is no cached valid 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] Embodiments of the present invention also provide a grid connection system for inverters, the system comprising a distributed power supply access unit and a plurality of inverters. Figure 1 The diagram shows the overall structure of the grid access system. The distributed power supply access unit communicates with the external grid system and performs protocol conversion based on a binary configuration file issued by the grid system, enabling several inverters to connect to the grid system. This protocol conversion uses the protocol conversion method provided in the above embodiments of the present invention, and its repeated description will be omitted here.
[0072] In summary, this invention relates to a protocol conversion method and grid access system for a distributed power supply access unit. The method includes the following steps: receiving a binary configuration file issued by the grid system, the binary configuration file including several protocol conversion rules, each protocol conversion rule including a grid protocol operation type and a corresponding formula sequence; identifying the operation type of the protocol conversion based on the protocol conversion request message from the 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 this invention, without upgrading the distributed access unit firmware, can update the conversion rules to the configuration file according to the continuously evolving protocols of the inverter manufacturer, and then issue the configuration file to the distributed access unit to support new protocols, thereby reducing development and maintenance costs. The configuration file is signed by the publisher, and the signature is verified on the device side to confirm the publisher's identity, preventing impersonation or tampering. The distributed access unit caches conversion rules and intermediate data during operation, which can reduce repeated access and improve efficiency. Through highly scalable conversion formulas, it supports conversion from grid protocols to the manufacturer's irregular Modbus protocol, exhibiting 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 invention (including the claims) is limited to these examples. Within the framework of this invention, technical features of the above embodiments or different embodiments can also be combined, steps can be implemented in any order, and many other variations exist regarding different aspects of one or more embodiments of the invention as described above, which are not provided in the details for the sake of brevity. The specific embodiments described above are merely illustrative or explanatory of the principles of the invention and do not constitute a limitation thereof. Therefore, any modifications, equivalent substitutions, improvements, etc., made without departing from the spirit and scope of the invention should be included within the protection scope of the invention. Furthermore, the appended claims are intended to cover all variations and modifications falling within the scope and boundaries of the appended claims, or equivalent forms of such scope and boundaries.
Claims
1. A protocol conversion method of a distributed power source access unit, characterized by, Applied to distributed power supply access units, the process includes the following steps: Receive a binary configuration file sent by the power grid system. The binary configuration file includes several protocol conversion rules, and each protocol conversion rule includes the power grid protocol operation type and the corresponding formula sequence. Identify the operation type of protocol conversion based on the protocol conversion request message from the power grid system; Match the 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 rules.
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 transformed according to the matched protocol transformation rules, including the following steps: Based on the formula sequence corresponding to the protocol conversion rules, extract the data types involved in the formula sequence; Extract the raw 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 the input parameter of the formula sequence.
4. The method according to claim 3, characterized in that, The process of converting the corresponding formula sequence according to the matched protocol conversion rules also includes the following steps: Modbus protocol commands are generated through read and write operations to communicate with the target inverter. Perform arithmetic or bitwise operations to process the data in the intermediate data format; The calculation results are cached as intermediate data for use in subsequent formula sequences.
5. The method according to claim 4, characterized in that, The method further includes the following steps: Based on the number of result items defined in the formula sequence, the calculation 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 includes the following steps: Check if there is any valid cached intermediate data; If valid intermediate data exists in the cache, the result data is returned to the power grid system; if valid intermediate data does not exist in the cache, a query is performed to determine if a converted formula sequence exists. If a converted formula sequence exists, execute the converted formula sequence and return the result data to the power grid system; if no converted formula sequence exists, convert the corresponding formula sequence according to the matched protocol conversion rules.
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 includes the following steps: The signature of the binary configuration file is verified.
9. The method according to claim 1, characterized in that, The protocol conversion rules are used to convert power grid protocols to Modbus protocols, including HPLC, DL / T698, and DL / T645 protocols.
10. A grid connection system for an inverter, characterized in that, The system includes a distributed power access unit and several inverters; The inverters are respectively communicatively connected to the distributed power access unit; The distributed power access unit is communicatively connected to the external power grid system and is used to perform protocol conversion based on the binary configuration file issued by the power grid system so that the inverters can be connected to the power grid system. The protocol conversion is performed using the protocol conversion method described in any one of claims 1-9.