Electric power multi-protocol data conversion method and system based on object model dynamic mapping

By adopting a power multi-protocol data conversion method based on dynamic mapping of object models, the problem of power grid terminal protocol fragmentation is solved, realizing the automated and standardized conversion of power multi-protocol terminal data, improving data interaction efficiency and accuracy, reducing operation and maintenance costs, and supporting the rapid iteration of power grid business and standardized terminal access.

CN121750756APending Publication Date: 2026-03-27STATE GRID INFO TELECOM GREAT POWER SCI & TECH
View PDF 0 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

The current power grid terminal protocols are highly fragmented, forming serious 'protocol silos'. This results in different field names, units, array structures, and precision expressions for the same type of physical quantity in different protocols, making it difficult to directly map and reuse them. Existing technologies are unable to meet real-time response requirements and lack a unified and scalable physical model standard, leading to errors in manual mapping, poor model consistency, inconsistent asset data across systems, and high operation and maintenance costs.

Method used

A power multi-protocol data conversion method based on dynamic mapping of object models is adopted. Through protocol parsing, dynamic matching of object models, configurable mapping rules, standard JSON encapsulation and MQTT reporting with national cryptographic SSL encryption, the conversion and access of power multi-protocol terminal data to a unified object model is realized in an automated, standardized, secure and scalable manner.

Benefits of technology

It has achieved automated and standardized conversion of power multi-protocol terminal data, shortened the protocol expansion cycle, reduced operation and maintenance costs, improved data interaction efficiency and accuracy, met the real-time requirements of power grid business, and supported rapid iteration of multiple business domains and standardized terminal access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121750756A_ABST
    Figure CN121750756A_ABST
Patent Text Reader

Abstract

The invention discloses an electric power multi-protocol data conversion method and system based on object model dynamic mapping, and the method comprises the steps: receiving an original protocol message, recognizing a protocol type, extracting a logic name as a unique identifier of equipment, extracting an object identifier as a measurement point identifier, and extracting an electric energy array as a measurement point value; according to the protocol type and the equipment unique identifier, matching a corresponding object model template from a unified object model library; mapping the equipment unique identifier, the measuring point identifier, the measuring point numerical value and the acquisition timestamp obtained by analysis to corresponding fields in a template; and generating an object model data object conforming to a standard format, packaging the object into a message, executing an encryption authentication mechanism of a network layer and a transmission layer through the power Internet of Things security access gateway, and sending the message to an Internet of Things management platform. According to the invention, standardized, automatic and secure access of different protocol terminals is realized through protocol analysis and the unified object model library.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power multi-protocol data conversion, and in particular to a power multi-protocol data conversion method and system based on dynamic mapping of a physical model. BACKGROUND

[0002] In 2019, State Grid Corporation of China launched the construction of a smart Internet of Things system, clearly proposed the goal of "terminal unified online management and control, standardized collection of sensing data", and issued the "Framework Design of Digital Technology Support System for New Power System", which requires to break through the "terminal-platform-application" data flow, and to realize the global coverage and collaborative sensing of terminals on the power supply side, load side, energy storage side and customer side.

[0003] However, the current power grid terminal protocol is highly fragmented, forming a serious "protocol island". Marketing side widely uses DL / T 698.45 protocol (based on object identification and logical name), dispatching automation relies on IEC 104 protocol (based on information body address and type identification), and distribution and new energy scenarios introduce CoAP, MQTT and other lightweight protocols. The differences between different protocols in data structure, semantic definition, coding method, service mechanism (such as 698.45 ServiceID 05H represents read request, 08H represents report response) are significant. This heterogeneity results in different field names, units, array structures, and precision expressions for the same type of physical quantity (such as "active energy") in different protocols, making it difficult to directly map and reuse.

[0004] Existing technical means have been difficult to cope with this challenge: traditional conversion schemes mostly use static configuration tables or hard-coded parsing, and the addition of a new protocol requires the development of an adaptation module, which has poor scalability and long delivery cycle; batch ETL processing has high latency and cannot meet the requirements of distribution repair, abnormal load identification and other scenarios for millisecond to second-level real-time response; the lack of unified and extensible physical model standards (such as device function description based on JSON Schema) leads to errors in manual mapping, poor model consistency, and inconsistent asset data across systems; at the same time, operation and maintenance highly rely on manual intervention, and a provincial company needs to maintain mapping rules for each protocol, significantly increasing the burden on the grassroots and total cost of ownership (TCO).

[0005] Therefore, it is urgent to build a dynamic, automatic, standardized and high real-time protocol analysis and data conversion technology system for the power Internet of Things system, to break through the protocol barrier, eliminate data islands, and reduce access costs, and truly support the core goals of "terminal standardized access" and "data value deep mining". SUMMARY

[0006] In order to solve the above problems, the application provides a power multi-protocol data conversion method based on dynamic mapping of a thing model, which realizes automatic, standardized, secure and expandable conversion and access of power multi-protocol terminal data to a unified thing model through protocol analysis, dynamic matching of a thing model, configurable mapping rules, standard JSON encapsulation and MQTT reporting of national encryption SSL.

[0007] In one aspect, the power multi-protocol data conversion method based on dynamic mapping of a thing model comprises:

[0008] S1, receiving an original protocol message from a power Internet of Things terminal through a southbound interface;

[0009] S2, calling a protocol analysis APP corresponding to the original protocol message to analyze the original protocol message, extracting key data fields and semantic information in the protocol, wherein the key data fields include a protocol type and a device identifier;

[0010] S3, obtaining a corresponding target unified thing model from a preset unified thing model library according to the protocol type and the device identifier obtained by analysis; the target unified thing model is a standardized data model defined based on JSON Schema;

[0011] S4, dynamically mapping the key data fields to attribute fields defined in the target unified thing model based on a preset thing model mapping rule, to generate a thing model mapping result containing standardized attribute fields and data values;

[0012] S5, encapsulating data as a standard thing model data object conforming to a JSON format according to the generated thing model mapping result;

[0013] S6, encapsulating the obtained standard thing model data object as an MQTT protocol message including a topic Topic through an MQTT assembly APP, wherein the Topic is structured and organized according to a power grid business domain;

[0014] S7, sending the encapsulated MQTT protocol message to a thing connection management platform through a northbound interface, to complete conversion and reporting of multi-source protocol data to a unified thing model format.

[0015] Further, the power special communication protocol format of the original protocol message comprises a DL / T698.45 protocol, an IEC104 protocol and a Q / GDW1376.1 protocol.

[0016] Further, the analysis process of the original protocol message specifically comprises:

[0017] read the ServiceID field value in the original protocol message, judge the protocol type based on the ServiceID field value, if the protocol type is DL / T698.45 protocol, parse the 2 bytes data next to the ServiceID, take the 2 bytes data as the object identifier, extract the string value of the logical name field in the original protocol message, take the string value as the device unique identifier, extract the electric energy float value array carried by the electric energy array field in the original protocol message, and take the electric energy float value array as the measurement point value, then take the hexadecimal string value of the object identifier as the measurement point identifier, and construct the key data field based on the device unique identifier, the measurement point value and the measurement point identifier.

[0018] Further, the object identifier includes a first object identifier, a second object identifier and a third object identifier, the first object identifier corresponds to the combined active electric energy, the second object identifier corresponds to the combined reactive electric energy, and the third object identifier corresponds to the forward active total electric energy.

[0019] Further, the unified thing model library is preset with templates for different types of electric power equipment, each template is a definition of device manufacturer, model and possessed measurement point definition, and the measurement point definition includes field name, field type and value interval size.

[0020] Further, the thing model mapping rule adopts a configurable templating design, and the protocol version is adapted and extended by updating the mapping rule template, the mapping rule template is defined based on YAML / JSON format, and the mapping rule template includes the mapping relationship between the protocol field and the thing model attribute, the data conversion rule and the conditional mapping logic.

[0021] The mapping relationship is used to define the static corresponding relationship between the original protocol field and the target thing model attribute.

[0022] The data conversion rule acts on the mapping process, and formats the source data to ensure that the data value meets the specification of the target attribute.

[0023] The conditional mapping is used as a control layer to dynamically select the applicable mapping relationship and data conversion rule based on the runtime context.

[0024] Further, in S6, the Topic structure of the MQTT protocol message is divided according to business domains, and the business domains include power distribution, marketing, device management and integrated energy.

[0025] Further, the encapsulated MQTT message is sent to the Internet of Things management platform through the northbound interface, which specifically includes:

[0026] The northbound interface sends an MQTT connection establishment message after performing the encryption and authentication mechanism of the network layer and the transport layer through the power Internet of Things security access gateway, the MQTT connection establishment message carries a string of client identification and gateway device serial number, and a secure communication channel is established with the Internet of Things management platform; after the secure communication channel is established, the northbound interface sends an MQTT publishing message, the payload of the MQTT publishing message is a standard object model data object conforming to the JSON format, and the payload of the MQTT publishing message is encrypted through the national encryption SSL protocol at the transport layer, and after the encryption is completed, the MQTT message is sent to the Internet of Things management platform.

[0027] Further, the protocol analysis APP and the MQTT assembly APP are deployed in the form of independent software, and support dynamic loading, running and management.

[0028] On the other hand, the power multi-protocol data conversion system based on object model dynamic mapping comprises:

[0029] The message acquisition module is configured to receive the original protocol message from the power Internet of Things terminal through the southbound interface;

[0030] The analysis module is configured to call the protocol analysis APP corresponding to the original protocol message to analyze the original protocol message, and extract the key data fields and semantic information in the protocol, wherein the key data fields include the protocol type and the device identification;

[0031] The object model extraction module is configured to query and obtain the corresponding target unified object model from the pre-set unified object model library according to the analyzed protocol type and device identification; the target unified object model is a standardized data model defined based on JSON Schema;

[0032] The mapping module is configured to dynamically map the key data fields to the attribute fields defined in the target unified object model based on the pre-set object model mapping rule, and generate an object model mapping result containing standardized attribute fields and data values;

[0033] The data object encapsulation module is configured to encapsulate the data into a standard object model data object conforming to the JSON format according to the generated object model mapping result;

[0034] The MQTT protocol message encapsulation module is configured to encapsulate the obtained JSON object into an MQTT protocol message through the MQTT assembly APP, wherein the Topic of the MQTT protocol message is structured and organized according to the power grid business domain;

[0035] The reporting module is configured to send the encapsulated MQTT protocol message to the Internet of Things management platform through the northbound interface, and complete the conversion and reporting of multi-source protocol data to the unified object model format.

[0036] The present invention adopts the above technical solution and has the following beneficial effects:

[0037] (1) This invention extracts semantic key fields by dynamically parsing power proprietary protocols such as DL / T698.45 and IEC104, and achieves accurate mapping based on the JSON Schema unified object model;

[0038] (2) The present invention adopts a defined configurable mapping rule template, which supports hot updates of mapping relationships, data conversion logic and conditional branches. It can adapt to new protocols, new equipment or business changes without modifying the code, greatly shortening the protocol extension cycle and supporting on-demand customization and rapid iteration of multiple business domains such as power distribution and marketing.

[0039] (3) This invention performs network layer and transport layer encryption authentication through the power Internet of Things security access gateway, uses the client identifier and gateway device serial number as the core authentication elements of the MQTT connection establishment message, and implements national cryptographic SSL protocol encryption and encapsulation for reporting the generated standard JSON object model data payload in the security channel. This achieves reliable, authenticable, and encrypted northbound data reporting that meets the security protection requirements of the power monitoring system, and ensures the confidentiality, integrity and authenticity of multi-protocol terminal data throughout the entire process of accessing the Internet of Things management platform. Attached Figure Description

[0040] Figure 1 This is a flowchart of the power multi-protocol data conversion method based on dynamic mapping of object models according to an embodiment of the present invention;

[0041] Figure 2 This is an application architecture diagram of an embodiment of the present invention;

[0042] Figure 3 This is a data architecture diagram of an embodiment of the present invention;

[0043] Figure 4 This is a diagram of a power multi-protocol data conversion system based on dynamic mapping of object models, according to an embodiment of the present invention. Detailed Implementation

[0044] The present invention will be further described in detail below with reference to the embodiments and accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0045] like Figure 1 As shown, the present invention provides a power multi-protocol data conversion method based on dynamic mapping of object models, comprising:

[0046] S1 receives raw protocol messages from power IoT terminals via the southbound interface.

[0047] Specifically, in S1, the power-specific communication protocol format of the original protocol message includes: DL / T698.45 protocol, IEC104 protocol and Q / GDW1376.1 protocol.

[0048] S2, invoke the protocol parsing APP corresponding to the original protocol message to parse the original protocol message, extract the key data fields and their semantic information in the protocol, the key data fields include protocol type and device identifier.

[0049] Specifically, in S2, the parsing process of the original protocol message includes:

[0050] Read the ServiceID field value from the original protocol message, determine the protocol type based on the ServiceID field value. If the protocol type is DL / T698.45, parse the two bytes of data immediately following ServiceID and use them as the object identifier. Extract the string value of the logical name field from the original protocol message and use it as the unique identifier of the device. Extract the array of floating-point values ​​of electrical energy carried by the electrical energy array field from the original protocol message and use it as the measurement point value. Then, use the hexadecimal string value of the object identifier as the measurement point identifier. Construct key data fields based on the unique identifier of the device, the measurement point value, and the measurement point identifier. Among them, the object identifier 01000000 corresponds to the combined active energy, 02000000 corresponds to the combined reactive energy, and 03000000 corresponds to the total positive active energy.

[0051] Specifically, the parsing process of the original protocol message relies on a pre-built power protocol library to achieve accurate and efficient protocol identification and data extraction. First, the system reads the ServiceID field value from the original protocol message and dynamically determines the protocol type based on predefined protocol type mapping rules in the power protocol library (e.g., the ServiceID range for the DL / T698.45 protocol is 05H-08H, and the type identifier for the IEC104 protocol is 1-45). If the protocol type is the DL / T698.45 protocol, the system further parses the two bytes immediately following the ServiceID as an object identifier. For example, 01000000 represents "combined active energy," 02000000 represents "combined reactive energy," and 03000000 represents "total positive active energy." Simultaneously, the string value of the logical name field is extracted from the message as a unique identifier for the device, ensuring the uniqueness of the terminal's identity; the floating-point value array carried by the energy array field is extracted as the measurement point value and converted into a standardized data format (e.g., IEEE 754 floating-point number or integer value). Furthermore, the hexadecimal string value of the object identifier is converted into a measurement point identifier for precise location of data attributes in the physical model. During the parsing process, the power protocol library also provides data validation rules (such as field length and numerical range validation) and semantic mapping tables (such as the correspondence between object identifiers and physical quantities) to ensure that the extracted key data fields (unique equipment identifier, measurement point value, measurement point identifier, and acquisition timestamp) conform to the unified physical model data specifications. Finally, the parsing result will serve as input for dynamic mapping, supporting subsequent matching of physical model templates and data encapsulation.

[0052] S3, based on the parsed protocol type and device identifier, queries and retrieves the corresponding target unified object model from the pre-built unified object model library; the target unified object model is a standardized data model defined based on JSON Schema.

[0053] Specifically, in S3, the unified physical model library has pre-set templates for different types of power equipment. Each template defines the equipment manufacturer, model and the measurement points it has. The measurement point definition includes field name, field type and range of values.

[0054] Specifically, the unified physical model library is built on JSON Schema and pre-configures power equipment templates covering business domains such as power transmission and transformation, power distribution, customer-side, and integrated energy. Each template strictly adheres to the State Grid IoT system data standards. The template structure includes: basic equipment information (such as manufacturer, model, and version number), functional definitions (such as data acquisition, remote control, and event reporting), and measurement point definitions. In the measurement point definitions, field names use camelCase naming (e.g., "activePower" represents active power) to ensure semantic uniqueness; field types support integer, floating-point, string, boolean, and enumeration types, and data types are constrained based on power business requirements (e.g., electrical energy is floating-point, and switch status is boolean); the range of values ​​defines the valid range of data (e.g., voltage range is 0-1000V, and temperature range is -40℃ to +85℃). In addition, the template also includes attributes such as data units (e.g., kW, kWh), acquisition frequency, and data quality identifiers (e.g., whether it is readable, writable, and reportable). The object model library supports dynamic template updates through a version management mechanism. When a new device type or protocol version is added, the template can be extended through configuration without modifying the code. For example, for photovoltaic inverter devices, the template will define measurement points such as "PV_Voltage" (photovoltaic voltage) and "PV_Current" (photovoltaic current) and associate them with the DL / T698.45 or IEC104 rules in the protocol library to ensure seamless data mapping from the protocol layer to the object model layer.

[0055] Specifically, the object model mapping rules adopt a configurable, template-based design, enabling rapid adaptation to protocol versions and flexible expansion to meet business needs by updating the mapping rule templates. The mapping rule templates are defined based on YAML / JSON format and include the following core components: the mapping relationship between protocol fields and object model attributes (e.g., mapping the "electrical energy array" of DL / T698.45 to the "energyValue" field of the object model), data conversion rules (e.g., byte order conversion, unit conversion, precision adjustment), and conditional mapping logic (e.g., dynamically selecting the mapping path based on device type or data quality). For example, when adding a new IEC104 protocol version, only the correspondence between its type identifier and object model attributes needs to be extended in the mapping rule template; no modification to the parsing code is required. The mapping engine dynamically loads the template at runtime, parses key data fields, matches the target object model attributes based on field semantics (e.g., device identifier, measurement point identifier), and performs data cleaning and format conversion. Simultaneously, the rule templates support canary releases and A / B testing, and configurations can be dynamically distributed through the IoT management platform, reducing system downtime. Furthermore, the mapping rules work in conjunction with the power protocol library, which provides metadata for the protocol versions (such as field structure and encoding methods). The mapping rules then generate standardized data based on this metadata, ensuring consistency and accuracy during cross-protocol conversion. This design significantly improves the method's scalability, adapting to the rapid protocol iteration needs of the State Grid IoT system.

[0056] Specifically, in this embodiment, the unified IoT model is constructed based on a standard data model defined by JSON Schema, covering common attributes of the power grid (such as device ID, acquisition time, and numerical units). "The unified IoT information model is used to parse and transform various types of collected and sensed data," mapping the "logical name (ele_logic)" of the 698.45 specification to the "deviceId" field of the IoT model, and mapping the "electrical energy array (ele_array)" to a "energyValue" list. The IoT model library has pre-set templates; the IoT model is a JSON description of the device's function, including field names, types, and value ranges (such as the defined range for a temperature sensor). During protocol parsing, the protocol fields are dynamically matched with the IoT model attributes to ensure semantic consistency.

[0057] S4, based on preset object model mapping rules, dynamically maps key data fields to attribute fields defined in the target unified object model, generating object model mapping results containing standardized attribute fields and data values.

[0058] Specifically, in S4, the object model mapping rules adopt a configurable templated design. The protocol version is adapted and extended by updating the mapping rule template. The updated mapping rule template is defined based on YAML / JSON format and includes the mapping relationship between protocol fields and object model attributes, data conversion rules and conditional mapping logic.

[0059] The mapping relationship is used to define the static correspondence between the original protocol fields and the target object model attributes;

[0060] Data transformation rules are applied to the mapping process to format the source data to ensure that the data values ​​conform to the specifications of the target attributes;

[0061] Conditional mapping serves as a control layer, used to dynamically select applicable mapping relationships and data transformation rules based on the runtime context.

[0062] Specifically, in this embodiment, the mapping process uses a dynamic mapping engine, which works by employing a rule engine to automatically convert protocol data to the object model. The "protocol parsing APP parses messages based on rule templates." The "information body address (Data_address)" of the IEC104 protocol is mapped to the object model's "pointId," and protocol values ​​(such as normalized measurement values) are converted to standard floating-point numbers using conversion rules. The mapping rules are configurable and support protocol version iterations. After parsing the "read request (ServiceID 05H)" of the 698.45 protocol, data fields (such as ele_array) are reassembled according to the object model template. While JSON-LD is used for semantic mapping in publicly available object model technologies, this invention is specifically optimized for power protocols. The data encapsulation and forwarding principle involves encapsulating the converted data into MQTT protocol messages and uploading them through the IoT platform's Agent SDK interface. The "MQTT assembly APP re-encapsulates the parsed messages into MQTT protocol messages." The Topic structure is divided according to business domains (such as marketing and equipment), and the data is pushed to the message queue after mapping to ensure real-time performance. For example, the data from the power distribution terminal is converted and published in JSON format to the "Power Distribution / Measurement" Topic.

[0063] S5 encapsulates the data into a standard object model data object conforming to JSON format based on the generated object model mapping results.

[0064] S6 uses MQTT to assemble the JSON object obtained by the APP into an MQTT protocol message. The MQTT protocol message topic is structured according to the power grid business domain.

[0065] Specifically, in S6, the Topic structure of MQTT protocol messages is divided according to business domains, which include power distribution, marketing, equipment management and integrated energy.

[0066] S7 sends the encapsulated MQTT protocol message to the IoT management platform through the northbound interface, completing the conversion and reporting of multi-source protocol data to a unified object model format.

[0067] Specifically, in S7, sending the encapsulated MQTT message to the IoT management platform via the northbound interface includes:

[0068] After the northbound interface performs network layer and transport layer encryption and authentication mechanisms through the power IoT security access gateway, it sends an MQTT connection establishment message. The MQTT connection establishment message carries a string of client identifier and gateway device serial number to establish a secure communication channel with the IoT management platform. After the secure communication channel is established, the northbound interface sends an MQTT publish message. The payload of the MQTT publish message is a standard object model data object conforming to the JSON format. The payload of the MQTT publish message is encrypted at the transport layer using the national cryptographic SSL protocol. After encryption, the MQTT message is sent to the IoT management platform.

[0069] Specifically, such as Figure 2 As shown in the application architecture diagram, this diagram clearly presents the overall technical architecture and module collaboration relationships of this patent: the left side is the southbound access layer, which includes a power protocol library (covering protocols such as DL / T698.45, IEC104, and Q / GDW1376.1) and various power terminal devices; the middle is the core processing layer, which consists of a protocol parsing APP, a physical model construction module, a unified physical model library, and a physical model mapping engine. The physical model library defines standardized device templates using JSON Schema, and the mapping engine is responsible for dynamically binding the parsed protocol fields (such as object identifiers, logical names, and energy arrays in 698.45) to the corresponding physical model attributes; the right side is the northbound output layer. The MQTT assembly APP generates structured topics based on business domains such as power distribution and marketing, and encapsulates the standard JSON physical model data generated by mapping, and then reports it to the IoT management platform through a secure access gateway, reflecting the end-to-end data conversion process of "protocol parsing - dynamic mapping of physical models - standard encapsulation - secure reporting".

[0070] Specifically, such as Figure 3The diagram illustrates the data architecture flow of this invention: data items uploaded from different power terminal devices using protocols such as 104, 698, 1076.1, and Modbus are uniformly aggregated to the "protocol parsing cloud gateway" for processing. Simultaneously, user organizational data is accessed through the business middleware, with usernames and passwords securely accessed after ISC-SSO single sign-on authentication. After parsing, mapping, and standardizing the multi-source heterogeneous protocol data, the cloud gateway pushes the structured data to the property management platform via the MQTT protocol, achieving unified access and efficient flow of data across protocols and systems, supporting centralized management and intelligent analysis of power grid services.

[0071] Specifically, in this embodiment, taking the conversion of power distribution terminal data as an example, it can be summarized into the following steps:

[0072] Step 1: The terminal reports electrical energy data (such as the field ele_array) through the 698.45 protocol.

[0073] Step 2: Protocol parsing. The APP parses the original message and extracts key fields (such as logical name and numerical array).

[0074] Step 3: The object model engine calls the mapping rules to convert ele_array into the object model standard format (such as {"deviceId":"XXX", "energyKwh":10.5}).

[0075] Step 4: The MQTT assembly app is packaged into a JSON message and reported to the platform through a unified topic.

[0076] The entire process latency is controlled within 300ms, supporting real-time business. The solution addresses the integration pain points caused by heterogeneous protocols through a configurable object model library and dynamic rule engine, meeting the document's requirement of "achieving standardized data access." Existing technologies rely on custom mappings for each system, leading to model inconsistencies. "Different professional measurement data standards are not unified." This invention achieves automatic alignment of multi-protocol data fields through a unified object model (such as JSON Schema). For example, it unifies the "electrical energy" of the 698.45 protocol and the "measured value" of IEC104 into the "energyValue" field, improving data sharing efficiency. This model consistency enables direct data interoperability across business applications (such as power distribution and marketing), reducing integration development workload by more than 50%. Improved conversion efficiency ensures real-time performance.

[0077] Furthermore, traditional ETL batch processing latency can reach the minute level. This invention employs a streaming mapping engine, with the document's goal of "data access latency below 300ms." Its advantages include a dynamic rule engine that avoids manual parsing delays, supports millisecond-level responses, and meets real-time scenarios such as power grid fault detection. Compared to the existing system described in the document as having "long data processing links," this invention shortens the link, improving business decision-making speed. It boasts strong scalability, reducing operation and maintenance costs; existing protocol changes require code rewriting. This invention's object model rules are configurable; adding new protocols (such as the new energy CoAP protocol) only requires adding a mapping template. "The model can be flexibly configured and edited." Advantages include reducing protocol adaptation time by over 70%, supporting the goal of "avoiding repeated modifications." For example, when upgrading terminals, only the object model library is updated, not the entire system is rebuilt. It has a low error rate, improving data quality: manual mapping is prone to errors, leading to data anomalies. This invention uses automated verification (such as field type and value range checks), as mentioned in the document regarding "data quality identification and error correction." Advantages include a mapping accuracy exceeding 95%, reducing business risks caused by data errors, and meeting the document's requirement to "improve data accuracy." Resource optimization supports large-scale deployment. Traditional methods require deploying independent parsers for each protocol. This invention uses a unified engine for containerized deployment, resulting in high resource reuse. It supports millions of concurrent terminals. Advantages include a 30% reduction in server resource consumption, perfectly meeting the needs of massive terminal access in power grids.

[0078] In summary, the advantages of this invention directly address the pain points of power grid protocol integration, not only improving technical indicators but also bringing management benefits (such as reducing the burden on grassroots staff), thus achieving the goal of "reducing costs and increasing efficiency".

[0079] In summary, this invention primarily addresses the core issues of data integration difficulties and low sharing efficiency caused by heterogeneous terminal protocols in the power Internet of Things (IoT). The smart IoT system needs to achieve "unified online management and control of terminals and standardized collection and sensing data," but the current power grid contains various heterogeneous protocols (such as DL / T698.45, IEC104, Q / GDW1376.1, etc.), with inconsistent data models, making direct interoperability difficult. Specific technical problems include: data silos caused by protocol differences: different professional terminals (such as marketing-side data acquisition equipment and distribution-side monitoring devices) use proprietary protocols, resulting in inconsistent data formats and semantics. Existing systems "fail to meet the requirements in terms of power grid equipment model correspondence and measurement data access standards," leading to data silos that cannot be shared across services. Low model conversion efficiency: traditional data integration relies on manual configuration of mapping rules, which is time-consuming and error-prone. Terminal access requires "preliminary conversion of multi-source data models," but existing technologies cannot achieve automated mapping, affecting real-time performance. Insufficient standardization: IoT management platforms require data to be accessed using a unified object model (such as JSON format), but the structures of native data from heterogeneous protocols (such as the "electric energy object" in the 698.45 protocol and the "measurement value short floating-point number" in the 104 protocol) differ significantly, making direct conversion difficult. The lack of a unified model leads to a "long data application chain," increasing development costs. By constructing a unified object model mapping framework, multi-source protocol data is automatically converted into a standardized object model format (such as JSON-based Topic data), supporting the IoT management platform in "achieving data resource sharing and utilization." Its technical challenges focus on: Dynamic mapping from protocol to model: resolving the association between different protocol data fields and platform standard attributes; Real-time conversion guarantee: meeting the millisecond-level data processing requirements of power grid operations; Scalability: seamlessly integrating new protocols (such as new energy terminal protocols). This invention reduces protocol adaptation costs, improves data interaction efficiency, and directly "promotes standardized terminal access" and "data value mining."

[0080] like Figure 4 As shown, this embodiment also discloses a power multi-protocol data conversion system based on dynamic mapping of object models, including:

[0081] The message acquisition module 41 is used to receive raw protocol messages from the power Internet of Things terminal through the southbound interface;

[0082] Parsing module 42 is used to call the protocol parsing APP corresponding to the original protocol message to parse the original protocol message and extract the key data fields and their semantic information in the protocol. The key data fields include the protocol type and device identifier.

[0083] The object model extraction module 43 is used to query and obtain the corresponding target unified object model from the pre-set unified object model library based on the parsed protocol type and device identifier; the target unified object model is a standardized data model defined based on JSON Schema.

[0084] The mapping module 44 is used to dynamically map key data fields to attribute fields defined in the target unified object model based on preset object model mapping rules, and generate an object model mapping result containing standardized attribute fields and data values.

[0085] The data object encapsulation module 45 is used to encapsulate the data into a standard object model data object conforming to the JSON format based on the generated object model mapping results.

[0086] The MQTT protocol message encapsulation module 46 is used to encapsulate the JSON object obtained by the APP into an MQTT protocol message through MQTT assembly. The MQTT protocol message topic is organized in a structured manner according to the power grid business domain.

[0087] The reporting module 47 is used to send the encapsulated MQTT protocol message to the IoT management platform through the northbound interface, completing the conversion and reporting of multi-source protocol data to a unified object model format.

[0088] The specific implementation of the power multi-protocol data conversion system based on dynamic mapping of object models is the same as that of the power multi-protocol data conversion method based on dynamic mapping of object models, and will not be described again in this embodiment.

[0089] Although the invention has been specifically shown and described in conjunction with preferred embodiments, those skilled in the art should understand that various changes in form and detail may be made to the invention without departing from the spirit and scope of the invention as defined in the appended claims, all of which shall be within the scope of protection of the invention.

Claims

1. A power multi-protocol data conversion method based on dynamic mapping of object models, characterized in that, Includes the following steps: S1 receives raw protocol messages from power IoT terminals via the southbound interface; S2, call the protocol parsing APP corresponding to the original protocol message to parse the original protocol message and extract the key data fields and their semantic information in the protocol. The key data fields include the protocol type and device identifier. S3. Based on the parsed protocol type and device identifier, obtain the corresponding target unified object model from the pre-set unified object model library; the target unified object model is a standardized data model defined based on JSON Schema. S4, based on the preset object model mapping rules, dynamically maps key data fields to attribute fields defined in the target unified object model, generating an object model mapping result containing standardized attribute fields and data values; S5, based on the generated object model mapping results, encapsulates the data into a standard object model data object conforming to the JSON format; S6 uses MQTT to assemble the standard physical model data object obtained by the APP into an MQTT protocol message including a Topic, where the Topic is organized in a structured manner according to the power grid business domain; S7 sends the encapsulated MQTT protocol message to the IoT management platform through the northbound interface, completing the conversion and reporting of multi-source protocol data to a unified object model format.

2. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 1, characterized in that, In S1, the power-specific communication protocol formats of the original protocol messages include: DL / T698.45 protocol, IEC104 protocol and Q / GDW1376.1 protocol.

3. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 2, characterized in that, In S2, the parsing process of the original protocol message specifically includes: Read the ServiceID field value from the original protocol message, determine the protocol type based on the ServiceID field value. If the protocol type is DL / T698.45, parse the 2 bytes of data immediately following ServiceID and use them as the object identifier. Extract the string value of the logical name field from the original protocol message and use it as the device's unique identifier. Extract the floating-point value array of electrical energy carried by the electrical energy array field from the original protocol message and use it as the measurement point value. Then, use the hexadecimal string value of the object identifier as the measurement point identifier. Construct key data fields based on the device's unique identifier, the measurement point value, and the measurement point identifier.

4. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 3, characterized in that, The object identifier includes a first object identifier, a second object identifier, and a third object identifier. The first object identifier corresponds to the combined active energy, the second object identifier corresponds to the combined reactive energy, and the third object identifier corresponds to the total positive active energy.

5. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 1, characterized in that, In S3, the unified physical model library has pre-set templates for different types of power equipment. Each template defines the equipment manufacturer, model and the measurement points it has. The measurement point definition includes field name, field type and range of values.

6. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 1, characterized in that, In S4, the object model mapping rules adopt a configurable templated design. The protocol version can be adapted and extended by updating the mapping rule template. The updated mapping rule template is defined based on YAML / JSON format and includes the mapping relationship between protocol fields and object model attributes, data conversion rules and conditional mapping logic. The mapping relationship is used to define the static correspondence between the original protocol fields and the target object model attributes; Data transformation rules are applied to the mapping process to format the source data to ensure that the data values ​​conform to the specifications of the target attributes; Conditional mapping serves as a control layer, used to dynamically select applicable mapping relationships and data transformation rules based on the runtime context.

7. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 1, characterized in that, In S6, the Topic structure of MQTT protocol messages is divided according to business domains, which include power distribution, marketing, equipment management and integrated energy.

8. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 1, characterized in that, In S7, sending the encapsulated MQTT message to the IoT management platform via the northbound interface specifically includes: After the northbound interface performs network layer and transport layer encryption and authentication mechanisms through the power IoT security access gateway, it sends an MQTT connection establishment message. The MQTT connection establishment message carries a string of client identifier and gateway device serial number to establish a secure communication channel with the IoT management platform. After the secure communication channel is established, the northbound interface sends an MQTT publish message. The payload of the MQTT publish message is a standard object model data object conforming to the JSON format. The payload of the MQTT publish message is encrypted at the transport layer using the national cryptographic SSL protocol. After encryption, the MQTT message is sent to the IoT management platform.

9. The power multi-protocol data conversion method based on dynamic mapping of object models according to claim 1, characterized in that, The protocol parsing app and the MQTT assembly app are deployed as independent software, supporting dynamic loading, running and management.

10. A power multi-protocol data conversion system based on dynamic mapping of object models, characterized in that, include: The message acquisition module is used to receive raw protocol messages from power Internet of Things terminals through the southbound interface; The parsing module is used to call the protocol parsing APP corresponding to the original protocol message to parse the original protocol message and extract the key data fields and their semantic information in the protocol. The key data fields include the protocol type and device identifier. The object model extraction module is used to query and obtain the corresponding target unified object model from the pre-built unified object model library based on the parsed protocol type and device identifier; the target unified object model is a standardized data model defined based on JSON Schema. The mapping module is used to dynamically map key data fields to attribute fields defined in the target unified object model based on preset object model mapping rules, and generate object model mapping results containing standardized attribute fields and data values. The data object encapsulation module is used to encapsulate the generated object model mapping results into standard object model data objects that conform to the JSON format. The MQTT protocol message encapsulation module is used to encapsulate the JSON object obtained by the APP into an MQTT protocol message through MQTT assembly. The MQTT protocol message topic is organized in a structured manner according to the power grid business domain. The reporting module is used to send the encapsulated MQTT protocol messages to the IoT management platform through the northbound interface, completing the conversion and reporting of multi-source protocol data to a unified object model format.

Citation Information

Cited By

  • Unified access data conversion method and system for multi-protocol Internet of Things equipment

    CN122053724A

  • Electric power data acquisition method, readable storage medium and device

    CN122120366A