A method and device for converting power system protocol data

By configuring the MQTT protocol message topic and the IEC61850 online model, the problem of the existing technology being unable to convert non-standard IEC61850 protocol data is solved, the standardized data conversion of devices running in the power grid is achieved, and downstream data processing is simplified.

CN115695575BActive Publication Date: 2025-09-09SHENZHEN POWER SUPPLY BUREAU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211478318.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2025-09-09
Estimated Expiration
2042-11-23

AI Technical Summary

Technical Problem

Existing technologies cannot effectively convert non-standard IEC61850 proprietary protocol data into IoT MQTT protocol data, and are not suitable for devices running on the power grid.

Method used

Configure the MQTT protocol message topic and standardized message content corresponding to the measurement category, call the online model of the IEC61850 protocol device, save the connection information, configure the data object correspondence, and generate JSON message content, which is sent to the MQTT protocol topic according to the measurement category.

Benefits of technology

It realizes the conversion of non-standardized data objects into standardized data objects without affecting the existing network operation devices, simplifies downstream data processing, and improves operability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695575B_ABST
    Figure CN115695575B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for converting protocol data of an electric power system, wherein the method comprises: step S1, configuring message topics and standardized message contents of the Internet of Things MQTT protocol corresponding to various measurement categories; step S2, calling an online model of a device supporting the IEC61850 protocol, and saving relevant connection information and the online model to a local model file; step S3, configuring the correspondence between data objects in the local model file and standardized data objects; step S4, generating JSON message content according to the correspondence, and sending it to the message topic corresponding to the MQTT protocol according to the measurement category. The present invention converts the original electric power system IEC61850 proprietary protocol data into Internet of Things MQTT protocol data, and can convert non-standardized data objects into standardized data objects without affecting the existing network operation devices, thereby having good operability and flexibility, and facilitating downstream data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power systems, and in particular relates to a power system protocol data conversion method and device. Background Art

[0002] The IEC61850 proprietary protocol for power systems is the only globally accepted standard for power system automation. This protocol models most common real-world devices and components, defining common data formats, identifiers, behaviors, and controls for substation and feeder equipment (such as circuit breakers, voltage regulators, and protective relays). Adhering to the IEC61850 proprietary protocol standardizes the engineering operations of smart substations, making their implementation standardized, unified, and transparent. IEC61850 also enables substation automation equipment to have self-describing, self-diagnostic, and plug-and-play features, greatly facilitating system integration and reducing substation automation system engineering costs.

[0003] The IoT MQTT (Message Queuing Telemetry Transport) protocol is a message protocol based on the publish-subscribe paradigm under the ISO standard (ISO / IEC PRF 20922). This message protocol uses a message forwarding center to implement message communication between message publishers and message subscribers.

[0004] Although some existing technologies have achieved the conversion of IEC61850 proprietary protocol data into IoT MQTT protocol data, they only convert data objects defined in the IEC61850-7-2 standard and do not process non-standard data objects. Moreover, the solution is implemented on the device and is not applicable to devices running on the power grid. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a method and device for converting power system protocol data to achieve system layered design and simplify downstream data processing.

[0006] To solve the above technical problems, the present invention provides a power system protocol data conversion method, comprising:

[0007] Step S1: Configure the message topics and standardized message contents of the IoT MQTT protocol corresponding to various measurement categories;

[0008] Step S2, calling the online model of the device supporting the IEC61850 protocol, and saving the relevant connection information and the online model to a local model file;

[0009] Step S3, configuring the correspondence between the data objects in the local model file and the standardized data objects;

[0010] Step S4: Generate JSON message content according to the corresponding relationship and send it to the message topic corresponding to the MQTT protocol according to the measurement category.

[0011] Furthermore, the online model of the device supporting the IEC61850 protocol includes a data set, a list of logical devices and logical nodes, and a report control block list; the connection information includes the IP address, port, and description information of the device supporting the IEC61850 protocol.

[0012] Furthermore, the device supporting the IEC61850 protocol is a device operating in a power grid.

[0013] Furthermore, step S4 specifically includes: connecting the device supporting the IEC61850 protocol according to the configured connection information, enabling the report control block corresponding to the device supporting the IEC61850 protocol, and after receiving the report control block data sent by the device supporting the IEC61850 protocol, generating JSON message content according to the correspondence between the data object of the device and the standardized data object and sending it to the corresponding topic of the MQTT protocol according to the measurement category.

[0014] Furthermore, when converting IEC61850 data to JSON, specifically, int8, int16, and enumeration are converted to integer data, and float is converted to string data.

[0015] The present invention also provides a power system protocol data conversion device, comprising:

[0016] The first configuration module is used to configure the message topics and standardized message contents of the IoT MQTT protocol corresponding to various measurement categories;

[0017] A calling module, used to call the online model of the device supporting the IEC61850 protocol and save the relevant connection information and the online model to a local model file;

[0018] The second configuration module configures the correspondence between the data objects in the local model file and the standardized data objects;

[0019] The processing module is used to generate JSON message content according to the corresponding relationship and send it to the message topic corresponding to the MQTT protocol according to the measurement category.

[0020] Furthermore, the online model of the device supporting the IEC61850 protocol includes a data set, a list of logical devices and logical nodes, and a report control block list; the connection information includes the IP address, port, and description information of the device supporting the IEC61850 protocol.

[0021] Furthermore, the device supporting the IEC61850 protocol is a device operating in a power grid.

[0022] Furthermore, the processing module is specifically used to: connect to the device supporting the IEC61850 protocol according to the configured connection information, enable the report control block corresponding to the device supporting the IEC61850 protocol, and after receiving the report control block data sent by the device supporting the IEC61850 protocol, generate JSON message content according to the correspondence between the data object of the device and the standardized data object and send it to the corresponding topic of the MQTT protocol according to the measurement category.

[0023] Furthermore, when converting IEC61850 data to JSON, specifically, int8, int16, and enumeration are converted to integer data, and float is converted to string data.

[0024] The implementation of the present invention has the following beneficial effects: the original power system IEC61850 proprietary protocol data is converted into the Internet of Things MQTT protocol data, and non-standardized data objects can be converted into standardized data objects without affecting the existing network operation devices. Only the IEC61850 proprietary protocol is supported at the data access layer, and the downstream data processing program only needs to support the MQTT protocol to receive the corresponding data, thereby having good operability and flexibility, and facilitating downstream data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0026] Figure 1 The present invention is a flowchart of a method for converting power system protocol data according to an embodiment of the present invention.

[0027] Figure 2 This is a schematic diagram of the data processing flow after receiving the report control block data sent by the device supporting the IEC61850 protocol in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following descriptions of the embodiments refer to the accompanying drawings to illustrate specific embodiments in which the present invention may be implemented.

[0029] Please refer to Figure 1 As shown, a first embodiment of the present invention provides a method for converting power system protocol data, including:

[0030] Step S1: Configure the message topics and standardized message contents of the IoT MQTT protocol corresponding to various measurement categories;

[0031] Step S2, calling the online model of the device supporting the IEC61850 protocol, and saving the relevant connection information and the online model to a local model file;

[0032] Step S3, configuring the correspondence between the data objects in the local model file and the standardized data objects;

[0033] Step S4: Generate JSON message content according to the corresponding relationship and send it to the message topic corresponding to the MQTT protocol according to the measurement category.

[0034] Specifically, first, step S1 configures the message topics of the IoT MQTT protocol corresponding to various measurement categories and the standardized message content of the corresponding messages. For example, the message topic of the oil chromatograph status quantity is: / transformer / SIML / SIML_Alarm; the message topic of the quantity measurement is: / transformer / SIML / SIML_Measure. The format of the message content of both is {"measurement item 1": value 1,... "measurement item n": value n}).

[0035] Then, step S2 calls the online model of the device supporting the IEC 61850 protocol (such as a data set, a list of logical devices and logical nodes, a list of report control blocks, etc.) according to the IEC 61850 protocol, and saves the relevant connection information (such as the device's IP address, port, description information, etc.) and the online model of the device supporting the IEC 61850 protocol to a local model file. It is understood that the device supporting the IEC 61850 protocol is a device currently operating on the power grid.

[0036] Step S3 configures the correspondence between the data objects in the local model file and the standardized data objects. The data objects of devices currently operating on the power grid may not correspond to pre-configured message fields. For example, if a device's oil chromatogram has a measurement item named "coppm" (coppm), while the standardized measurement item is "CO," then the correspondence for this measurement item needs to be configured as "CO."

[0037] Finally, step S4 runs the IEC61850 frontend, connecting to the IEC61850-supported device according to the configured connection information, enabling the corresponding report control block of the IEC61850-supported device, and after receiving the report control block data sent by the IEC61850-supported device, generates JSON message content based on the correspondence between the device's data objects and standardized data objects, and sends it to the corresponding MQTT protocol topic according to the measurement category. The IEC61850 protocol defines data types such as bool, int8, int16, enumeration, float, and string. Therefore, when converting IEC61850 data to JSON, these data types must be converted to data types supported by JSON, such as converting int8, int16, and enumeration to integer data and converting float to string data.

[0038] The data processing flow after receiving the report control block data sent by the device supporting the IEC61850 protocol is as follows: Figure 2 As shown, it is first determined whether the data object has a corresponding relationship. If so, the corresponding relationship is obtained, and the data is filled in according to the corresponding relationship, and then sent to the corresponding topic according to the data category.

[0039] Corresponding to the power system protocol data conversion method described in the first embodiment of the present invention, the second embodiment of the present invention further provides a power system protocol data conversion device, including:

[0040] The first configuration module is used to configure the message topics and standardized message contents of the IoT MQTT protocol corresponding to various measurement categories;

[0041] A calling module, used to call the online model of the device supporting the IEC61850 protocol and save the relevant connection information and the online model to a local model file;

[0042] The second configuration module configures the correspondence between the data objects in the local model file and the standardized data objects;

[0043] The processing module is used to generate JSON message content according to the corresponding relationship and send it to the message topic corresponding to the MQTT protocol according to the measurement category.

[0044] Furthermore, the online model of the device supporting the IEC61850 protocol includes a data set, a list of logical devices and logical nodes, and a report control block list; the connection information includes the IP address, port, and description information of the device supporting the IEC61850 protocol.

[0045] Furthermore, the device supporting the IEC61850 protocol is a device operating in a power grid.

[0046] Furthermore, the processing module is specifically used to: connect to the device supporting the IEC61850 protocol according to the configured connection information, enable the report control block corresponding to the device supporting the IEC61850 protocol, and after receiving the report control block data sent by the device supporting the IEC61850 protocol, generate JSON message content according to the correspondence between the data object of the device and the standardized data object and send it to the corresponding topic of the MQTT protocol according to the measurement category.

[0047] Furthermore, when converting IEC61850 data to JSON, specifically, int8, int16, and enumeration are converted to integer data, and float is converted to string data.

[0048] For the working principle and process of this embodiment, please refer to the description of the first embodiment of the present invention, which will not be repeated here.

[0049] From the above description, it can be seen that compared with the existing technology, the beneficial effects of the present invention are: converting the original power system IEC61850 proprietary protocol data into the Internet of Things MQTT protocol data, and converting non-standardized data objects into standardized data objects without affecting the existing network operation device. Only the IEC61850 proprietary protocol is supported at the data access layer, and the downstream data processing program only needs to support the MQTT protocol to receive the corresponding data, thereby having good operability and flexibility, and easy downstream data processing.

[0050] The above disclosure is merely a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for converting power system protocol data, characterized in that: include: Step S1: Configure the message topics and standardized message contents of the IoT MQTT protocol corresponding to various measurement categories; Step S2: calling an online model of a device supporting the IEC61850 protocol, and saving relevant connection information and the online model to a local model file; the online model of the device supporting the IEC61850 protocol includes a data set, a list of logical devices and logical nodes, and a list of report control blocks; the connection information includes the IP address, port, and description information of the device supporting the IEC61850 protocol; Step S3, configuring the correspondence between the data objects in the local model file and the standardized data objects; Step S4: Generate JSON message content according to the corresponding relationship and send it to the message topic corresponding to the MQTT protocol according to the measurement category.

2. The power system protocol data conversion method according to claim 1, characterized in that: The device supporting the IEC61850 protocol is a device currently operating in a power grid.

3. The power system protocol data conversion method according to claim 1, characterized in that: Step S4 specifically includes: connecting to the device supporting the IEC61850 protocol according to the configured connection information, enabling the report control block corresponding to the device supporting the IEC61850 protocol, and after receiving the report control block data sent by the device supporting the IEC61850 protocol, generating JSON message content based on the correspondence between the device's data objects and the standardized data objects, and sending the JSON message content to the corresponding topic of the MQTT protocol according to the measurement category.

4. The power system protocol data conversion method according to claim 3, characterized in that: When converting IEC61850 data to JSON, specifically convert int8, int16, and enumerations to integer data, and convert float to string data.

5. A power system protocol data conversion device, characterized in that: include: The first configuration module is used to configure the message topics and standardized message contents of the IoT MQTT protocol corresponding to various measurement categories; A calling module is used to call the online model of the device supporting the IEC61850 protocol and save the relevant connection information and the online model to a local model file; the online model of the device supporting the IEC61850 protocol includes a data set, a list of logical devices and logical nodes, and a list of report control blocks; the connection information includes the IP address, port, and description information of the device supporting the IEC61850 protocol; The second configuration module configures the correspondence between the data objects in the local model file and the standardized data objects; The processing module is used to generate JSON message content according to the corresponding relationship and send it to the message topic corresponding to the MQTT protocol according to the measurement category.

6. The power system protocol data conversion device according to claim 5, characterized in that: The device supporting the IEC61850 protocol is a device currently operating in a power grid.

7. The power system protocol data conversion method according to claim 5, characterized in that: The processing module is specifically configured to connect to the device supporting the IEC61850 protocol according to the configured connection information, enable the report control block corresponding to the device supporting the IEC61850 protocol, and after receiving the report control block data sent by the device supporting the IEC61850 protocol, generate JSON message content based on the correspondence between the device's data objects and the standardized data objects, and send the JSON message to the corresponding topic of the MQTT protocol according to the measurement category.

8. The power system protocol data conversion device according to claim 7, characterized in that: When converting IEC61850 data to JSON, specifically convert int8, int16, and enumerations to integer data, and convert float to string data.

Citation Information

Patent Citations

  • Power transformation equipment state monitoring system based on ubiquitous power internet of things

    CN211043537U

  • Cloud based IEC61850 information processing method

    KR102345082B1