Unified protocol conversion and early warning analysis method and system based on edge agent
By using edge agents in the power Internet of Things system for data analysis and conversion, the problem of inconsistent sensor protocols and inconsistent early warning specifications is solved, achieving more efficient data processing and early warning accuracy.
Patent Information
- Application Number
- CN202310010690.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2043-01-05
AI Technical Summary
In the existing power Internet of Things systems, the output of various types of sensor protocols is not unified, which leads to difficulty in processing the platform level; at the same time, the early warning specifications are not unified, resulting in early warning misjudgment.
Through edge agents, power transmission, substation and cable monitoring data are obtained, analyzed using corresponding analytical models, and converted into standardized data for the Internet of Things model. The early warning information is determined by threshold judgment, appended to the normative data, and finally uploaded to the property management platform.
It solves the platform layer processing difficulties caused by the inconsistent output of various types of sensor protocols, and the problem of early warning misjudgment caused by inconsistent early warning specifications, and improves the platform layer's unified analysis ability of data.
Smart Images

Figure CN116016707B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things, and in particular to a method and system for unified protocol conversion and early warning analysis based on edge agents. Background Art
[0002] In order to promote the transformation of the power grid to the goal of energy interconnection, sharing and mutual assistance, the concept of power Internet of Things is proposed. The power Internet of Things is composed of the perception layer, network layer, platform layer and application layer. The edge agent is an important bridge connecting the perception layer and the platform layer of the Internet of Things. On the one hand, the sensor protocol types are mixed. On the other hand, with the increase in computing APPs, the APP transmission format is different, and there is no unified rule for early warning and judgment. Each manufacturer parses its own sensor protocol and sends it to the edge agent bus and reports it to the platform, resulting in a mixed data format sent to the platform layer, which is not conducive to the integration and analysis of platform layer data. Summary of the invention
[0003] Based on this, an embodiment of the present invention provides a method and system for unified protocol conversion and early warning analysis based on edge agent to solve the problem of platform layer processing difficulties caused by inconsistent protocol outputs of various types of sensors and early warning misjudgment caused by inconsistent early warning specifications.
[0004] To achieve the above object, the present invention provides the following solutions:
[0005] A method for unified protocol conversion and early warning analysis based on edge agent, comprising:
[0006] Obtain the transmission monitoring data, substation monitoring data and cable monitoring data of the target power grid;
[0007] Determine the analytical models corresponding to the power transmission monitoring data, the substation monitoring data and the cable monitoring data respectively; different analytical models correspond to different protocol type formats;
[0008] The power transmission monitoring data, the substation monitoring data and the cable monitoring data are respectively analyzed using corresponding analytical models to obtain power transmission analytical data, substation analytical data and cable analytical data;
[0009] According to the set Internet of Things protocol transmission requirements, the power transmission parsing data, the substation parsing data and the cable parsing data are placed in a set general model, and the set general model is converted into standard data of the Internet of Things model using the JSONObject tool class to obtain the power transmission standard data, the substation standard data and the cable standard data;
[0010] Determine the power transmission warning information of the power transmission monitoring data, the power transformation warning information of the power transformation monitoring data, and the cable warning information of the cable monitoring data by using a threshold judgment method;
[0011] Appending the power transmission warning information to the power transmission specification data to generate power transmission data, appending the substation warning information to the substation specification data to generate substation transmission data, and appending the cable warning information to the cable specification data to generate cable transmission data;
[0012] The power transmission data, the substation transmission data and the cable transmission data are uploaded to the property management platform.
[0013] Optionally, the acquiring of the transmission monitoring data, substation monitoring data and cable monitoring data of the target power grid specifically includes:
[0014] The TCP protocol is used to obtain the transmission monitoring data collected by the transmission status monitoring sensor on the target power grid;
[0015] The TCP protocol is used to obtain the substation monitoring data collected by the substation status monitoring sensor on the target power grid;
[0016] The TCP protocol is used to obtain the cable monitoring data collected by the cable status monitoring sensor on the target power grid.
[0017] Optionally, the power transmission monitoring data, the substation monitoring data and the cable monitoring data are respectively parsed using corresponding parsing models to obtain power transmission parsing data, substation parsing data and cable parsing data, specifically including:
[0018] Adopting the parsing model corresponding to the power transmission monitoring data, intercepting the original hexadecimal power transmission message data of the power transmission monitoring data, and using the tool class corresponding to the parsing model to convert the original hexadecimal power transmission message data to obtain the power transmission parsing data;
[0019] Adopting the parsing model corresponding to the substation monitoring data, intercepting the original hexadecimal substation message data of the substation monitoring data, and using the tool class corresponding to the parsing model to convert the original hexadecimal substation message data to obtain the substation parsing data;
[0020] The original hexadecimal cable message data of the cable monitoring data is intercepted by using the parsing model corresponding to the cable monitoring data, and the original hexadecimal cable message data is converted into hexadecimal by using the tool class corresponding to the parsing model to obtain the cable parsing data.
[0021] Optionally, the determining of the power transmission warning information of the power transmission monitoring data, the power transformation warning information of the power transformation monitoring data, and the cable warning information of the cable monitoring data by means of threshold judgment specifically includes:
[0022] Determine whether the power transmission monitoring data, the substation monitoring data, and the cable monitoring data exceed a set warning range, and obtain a determination result;
[0023] Power transmission warning information, substation warning information and cable warning information are generated according to the judgment result.
[0024] Optionally, uploading the power transmission data, the substation transmission data and the cable transmission data to a property management platform specifically includes:
[0025] The MQTT protocol is used to upload the power transmission data, the substation transmission data and the cable transmission data to the property management platform via the data transmission bus.
[0026] The present invention also provides a unified protocol conversion and early warning analysis system based on edge agent, including: a state monitoring sensor, a docker container of the edge agent and a property management platform;
[0027] The docker container of the edge proxy includes: a unified processing module and a data transmission bus;
[0028] The state monitoring sensor is connected to the unified processing module; the unified processing module is connected to the data transmission bus; the data transmission bus is connected to the property management platform;
[0029] The condition monitoring sensor is used to:
[0030] Collect transmission monitoring data, substation monitoring data and cable monitoring data of the target power grid;
[0031] The unified processing module includes:
[0032] A buffer pool, used to store parsing models corresponding to the power transmission monitoring data, the substation monitoring data and the cable monitoring data; different parsing models correspond to different protocol type formats;
[0033] A data analysis module, used to analyze the power transmission monitoring data, the substation monitoring data and the cable monitoring data using corresponding analysis models to obtain power transmission analysis data, substation analysis data and cable analysis data;
[0034] A unified protocol module, which is used to put the power transmission parsing data, the substation parsing data and the cable parsing data into a set general model according to the set Internet of Things protocol transmission requirements, and use the JSONObject tool class to convert the set general model into standard data of the Internet of Things model to obtain power transmission standard data, substation standard data and cable standard data;
[0035] A threshold judgment module, used to determine the power transmission warning information of the power transmission monitoring data, the power transformation warning information of the power transformation monitoring data, and the cable warning information of the cable monitoring data by means of threshold judgment;
[0036] A data appending module, used to append the power transmission warning information to the power transmission specification data to generate power transmission data, append the substation warning information to the substation specification data to generate substation transmission data, and append the cable warning information to the cable specification data to generate cable transmission data;
[0037] The data transmission bus is used for:
[0038] The power transmission data, the substation transmission data and the cable transmission data are uploaded to the property management platform.
[0039] Optionally, the status monitoring sensor is connected to the unified processing module via a TCP protocol.
[0040] Optionally, the unified processing module is connected to the data transmission bus via the MQTT protocol.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The embodiment of the present invention proposes a method and system for unified protocol conversion and early warning analysis based on edge agent, which respectively parses each monitoring data with a corresponding parsing model, and puts each parsed data into a set general model according to the set Internet of Things protocol transmission requirements, and uses the JSONObject tool class to convert the set general model into standard data of the Internet of Things model, thereby solving the problem of difficulty in platform layer processing caused by the inconsistent protocol outputs of various types of sensors; the early warning information of each monitoring data is determined by threshold judgment, and the early warning information is appended to the corresponding standard data, and finally the appended standard data is uploaded to the property management platform, thereby solving the problem of early warning misjudgment caused by inconsistent early warning specifications. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. 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 creative labor.
[0044] Figure 1 A flow chart of a method for unified protocol conversion and early warning analysis based on edge proxy provided in an embodiment of the present invention;
[0045] Figure 2A schematic diagram of a specific implementation process of the method for unified protocol conversion and early warning analysis based on edge proxy provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0048] Figure 1 Flow chart of the method for unified protocol conversion and early warning analysis based on edge proxy provided by the embodiment of the present invention. Figure 1 , the method of this embodiment includes:
[0049] Step 101: Acquire transmission monitoring data, substation monitoring data and cable monitoring data of a target power grid.
[0050] Step 102: respectively determining the analytical models corresponding to the power transmission monitoring data, the substation monitoring data and the cable monitoring data; different analytical models correspond to different protocol type formats.
[0051] Step 103: The power transmission monitoring data, the substation monitoring data and the cable monitoring data are analyzed using corresponding analytical models to obtain power transmission analytical data, substation analytical data and cable analytical data.
[0052] Step 104: According to the set IoT protocol transmission requirements, the power transmission analysis data, the substation analysis data and the cable analysis data are placed in a set general model, and the set general model is converted into standard data of the IoT model using the JSONObject tool class to obtain power transmission standard data, substation standard data and cable standard data.
[0053] Step 105: Determine the power transmission warning information of the power transmission monitoring data, the power transformation warning information of the power transformation monitoring data, and the cable warning information of the cable monitoring data by using a threshold judgment method.
[0054] Step 106: append the power transmission warning information to the power transmission specification data to generate power transmission data, append the substation warning information to the substation specification data to generate substation transmission data, append the cable warning information to the cable specification data to generate cable transmission data.
[0055] Step 107: Upload the power transmission data, the substation transmission data and the cable transmission data to the property management platform.
[0056] Wherein, step 101 specifically includes:
[0057] The TCP protocol is used to obtain the transmission monitoring data collected by the transmission status monitoring sensor on the target power grid; the TCP protocol is used to obtain the substation monitoring data collected by the substation status monitoring sensor on the target power grid; the TCP protocol is used to obtain the cable monitoring data collected by the cable status monitoring sensor on the target power grid.
[0058] Wherein, step 103 specifically includes:
[0059] The analysis model corresponding to the power transmission monitoring data is adopted to intercept the original hexadecimal power transmission message data of the power transmission monitoring data, and the tool class corresponding to the analysis model is adopted to perform base conversion on the original hexadecimal power transmission message data to obtain the power transmission analysis data.
[0060] The parsing model corresponding to the substation monitoring data is used to intercept the original hexadecimal substation message data of the substation monitoring data, and the tool class corresponding to the parsing model is used to convert the original hexadecimal substation message data to obtain the substation parsing data.
[0061] The original hexadecimal cable message data of the cable monitoring data is intercepted by using the parsing model corresponding to the cable monitoring data, and the original hexadecimal cable message data is converted into hexadecimal by using the tool class corresponding to the parsing model to obtain the cable parsing data.
[0062] Wherein, step 105 specifically includes:
[0063] It is determined whether the power transmission monitoring data, the substation monitoring data and the cable monitoring data exceed a set warning range to obtain a determination result.
[0064] Power transmission warning information, substation warning information and cable warning information are generated according to the judgment result.
[0065] Among them, step 107, uploading the power transmission data, the substation transmission data and the cable transmission data to the property management platform, specifically includes:
[0066] The MQTT protocol is used to upload the power transmission data, the substation transmission data and the cable transmission data to the property management platform via the data transmission bus.
[0067] The unified protocol conversion and early warning analysis method based on edge agent in this embodiment solves the problem of mixed output results of transmission, substation and cable monitoring sensors. It receives data from different monitoring sensors in a unified manner, performs early warning analysis according to thresholds and marks them uniformly. After conversion to a unified protocol that conforms to the IoT object model, it is uniformly reported to the platform layer and complies with the edge agent framework APP development specifications.
[0068] See also Figure 2 In practical applications, a specific implementation process of the above-mentioned unified protocol conversion and early warning analysis method based on edge agent is as follows:
[0069] Step 1: The power transmission, substation, and cable status monitoring sensors are connected to the edge agent's docker container through the TCP protocol. After the connection, the edge agent's docker container puts all device TCP connections into the connection pool for connection pool management, and puts the collection tasks into the task scheduling management, and regularly recalls sensor data through the TCP connection in the connection pool; at the same time, the protocol configuration management synchronizes the configured parsing model to the cache pool to implement cache management.
[0070] Step 2: After receiving the data, the task scheduler parses the data according to different parsing models in the cache pool, intercepts certain original hexadecimal message data, converts the data into different bases through a unified tool class, and obtains the corresponding parsed data results.
[0071] Step 3: Parse the results according to the IoT protocol transmission requirements, put the data into a common model, and use the JSONObject tool class to convert the common model into standard data of the IoT model.
[0072] Step 4: At this point, a threshold is used to determine whether each type of monitoring data exceeds the alarm / warning range, and the alarm / warning information is appended to the specification data.
[0073] Step 5: The unified standard data is then transmitted to the data transmission bus of the edge agent's Docker container through the MQTT protocol, and then sent to the property management platform through the unified interface of the edge agent's Docker container.
[0074] The edge agent-based unified protocol conversion and early warning analysis method of this specific example uniformly receives the data of power transmission, substation, and cable status monitoring sensors, parses different protocols according to the protocol type format issued by the protocol configuration module, and then converts the parsed results into standard data of the Internet of Things model in accordance with the Internet of Things protocol transmission requirements, and uniformly issues early warnings by pre-setting thresholds, and then transmits the unified standard data to the data transmission bus of the edge framework, and finally sends it to the property management platform through a unified interface.
[0075] The present invention has the following advantages: it solves the problem of difficulty in platform layer processing caused by inconsistent protocol outputs of various types of sensors; it solves the problem of misjudgment of warnings caused by the lack of unified warning specifications for sensors; and it improves the ability of the platform layer to conduct unified analysis and deep mining of data.
[0076] The present invention also provides a unified protocol conversion and early warning analysis system based on edge agent, including: a state monitoring sensor, a docker container of the edge agent and a property management platform.
[0077] The docker container of the edge proxy includes: a unified processing module and a data transmission bus.
[0078] The status monitoring sensor is connected to the unified processing module; the unified processing module is connected to the data transmission bus; and the data transmission bus is connected to the property management platform.
[0079] The condition monitoring sensor is used to:
[0080] Collect transmission monitoring data, substation monitoring data and cable monitoring data of the target power grid.
[0081] The unified processing module includes:
[0082] A cache pool is used to store parsing models corresponding to the power transmission monitoring data, the substation monitoring data and the cable monitoring data; different parsing models correspond to different protocol type formats.
[0083] The data analysis module is used to analyze the power transmission monitoring data, the substation monitoring data and the cable monitoring data using corresponding analysis models to obtain power transmission analysis data, substation analysis data and cable analysis data.
[0084] The unified protocol module is used to put the power transmission analysis data, the substation analysis data and the cable analysis data into a set general model according to the set Internet of Things protocol transmission requirements, and use the JSONObject tool class to convert the set general model into the standard data of the Internet of Things model to obtain the power transmission standard data, the substation standard data and the cable standard data.
[0085] The threshold judgment module is used to determine the power transmission warning information of the power transmission monitoring data, the substation warning information of the substation monitoring data and the cable warning information of the cable monitoring data by means of threshold judgment.
[0086] The data appending module is used to append the power transmission warning information to the power transmission specification data to generate power transmission data, append the substation warning information to the substation specification data to generate substation transmission data, and append the cable warning information to the cable specification data to generate cable transmission data.
[0087] The data transmission bus is used for:
[0088] The power transmission data, the substation transmission data and the cable transmission data are uploaded to the property management platform.
[0089] In one example, the condition monitoring sensor is connected to the unified processing module via a TCP protocol.
[0090] In one example, the unified processing module is connected to the data transmission bus via the MQTT protocol.
[0091] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0092] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for unified protocol conversion and early warning analysis based on edge agent, characterized in that: include: Obtain the transmission monitoring data, substation monitoring data and cable monitoring data of the target power grid; Determine the analytical models corresponding to the power transmission monitoring data, the substation monitoring data and the cable monitoring data respectively; different analytical models correspond to different protocol type formats; The power transmission monitoring data, the substation monitoring data and the cable monitoring data are respectively analyzed using corresponding analytical models to obtain power transmission analytical data, substation analytical data and cable analytical data; According to the set Internet of Things protocol transmission requirements, the power transmission parsing data, the substation parsing data and the cable parsing data are placed in a set general model, and the set general model is converted into standard data of the Internet of Things model using the JSONObject tool class to obtain the power transmission standard data, the substation standard data and the cable standard data; Determine the power transmission warning information of the power transmission monitoring data, the power transformation warning information of the power transformation monitoring data, and the cable warning information of the cable monitoring data by using a threshold judgment method; Appending the power transmission warning information to the power transmission specification data to generate power transmission data, appending the substation warning information to the substation specification data to generate substation transmission data, and appending the cable warning information to the cable specification data to generate cable transmission data; Uploading the power transmission data, the substation transmission data and the cable transmission data to the property management platform; The power transmission monitoring data, the substation monitoring data and the cable monitoring data are respectively analyzed using corresponding analytical models to obtain power transmission analytical data, substation analytical data and cable analytical data, specifically including: Adopting the parsing model corresponding to the power transmission monitoring data, intercepting the original hexadecimal power transmission message data of the power transmission monitoring data, and using the tool class corresponding to the parsing model to convert the original hexadecimal power transmission message data to obtain the power transmission parsing data; Adopting the parsing model corresponding to the substation monitoring data, intercepting the original hexadecimal substation message data of the substation monitoring data, and using the tool class corresponding to the parsing model to convert the original hexadecimal substation message data to obtain the substation parsing data; The original hexadecimal cable message data of the cable monitoring data is intercepted by using the parsing model corresponding to the cable monitoring data, and the original hexadecimal cable message data is converted into hexadecimal by using the tool class corresponding to the parsing model to obtain the cable parsing data.
2. According to claim 1, a method for unified protocol conversion and early warning analysis based on edge agent is characterized in that: The acquisition of the transmission monitoring data, substation monitoring data and cable monitoring data of the target power grid specifically includes: The TCP protocol is used to obtain the transmission monitoring data collected by the transmission status monitoring sensor on the target power grid; The TCP protocol is used to obtain the substation monitoring data collected by the substation status monitoring sensor on the target power grid; The TCP protocol is used to obtain the cable monitoring data collected by the cable status monitoring sensor on the target power grid.
3. According to claim 1, a method for unified protocol conversion and early warning analysis based on edge agent, characterized in that: The method of using threshold judgment to determine the power transmission warning information of the power transmission monitoring data, the power transformation warning information of the power transformation monitoring data, and the cable warning information of the cable monitoring data specifically includes: Determine whether the power transmission monitoring data, the substation monitoring data, and the cable monitoring data exceed a set warning range, and obtain a determination result; Power transmission warning information, substation warning information and cable warning information are generated according to the judgment result.
4. According to the method of unified protocol conversion and early warning analysis based on edge agent in claim 1, it is characterized in that: The uploading of the power transmission data, the substation transmission data and the cable transmission data to the property management platform specifically includes: The MQTT protocol is used to upload the power transmission data, the substation transmission data and the cable transmission data to the property management platform via the data transmission bus.
5. A unified protocol conversion and early warning system based on edge agent, characterized in that: include: Condition monitoring sensors, edge agent docker containers and property management platform; The docker container of the edge proxy includes: a unified processing module and a data transmission bus; The state monitoring sensor is connected to the unified processing module; the unified processing module is connected to the data transmission bus; the data transmission bus is connected to the property management platform; The condition monitoring sensor is used to: Collect transmission monitoring data, substation monitoring data and cable monitoring data of the target power grid; The unified processing module includes: A buffer pool, used to store parsing models corresponding to the power transmission monitoring data, the substation monitoring data and the cable monitoring data; different parsing models correspond to different protocol type formats; A data analysis module, used to analyze the power transmission monitoring data, the substation monitoring data and the cable monitoring data using corresponding analysis models to obtain power transmission analysis data, substation analysis data and cable analysis data; A unified protocol module, which is used to put the power transmission parsing data, the substation parsing data and the cable parsing data into a set general model according to the set Internet of Things protocol transmission requirements, and use the JSONObject tool class to convert the set general model into standard data of the Internet of Things model to obtain power transmission standard data, substation standard data and cable standard data; A threshold judgment module, used to determine the power transmission warning information of the power transmission monitoring data, the power transformation warning information of the power transformation monitoring data, and the cable warning information of the cable monitoring data by means of threshold judgment; A data appending module, used to append the power transmission warning information to the power transmission specification data to generate power transmission data, append the substation warning information to the substation specification data to generate substation transmission data, and append the cable warning information to the cable specification data to generate cable transmission data; The data transmission bus is used for: Uploading the power transmission data, the substation transmission data and the cable transmission data to the property management platform; The power transmission monitoring data, the substation monitoring data and the cable monitoring data are respectively analyzed using corresponding analytical models to obtain power transmission analytical data, substation analytical data and cable analytical data, specifically including: Adopting the parsing model corresponding to the power transmission monitoring data, intercepting the original hexadecimal power transmission message data of the power transmission monitoring data, and using the tool class corresponding to the parsing model to convert the original hexadecimal power transmission message data to obtain the power transmission parsing data; Adopting the parsing model corresponding to the substation monitoring data, intercepting the original hexadecimal substation message data of the substation monitoring data, and using the tool class corresponding to the parsing model to convert the original hexadecimal substation message data to obtain the substation parsing data; The original hexadecimal cable message data of the cable monitoring data is intercepted by using the parsing model corresponding to the cable monitoring data, and the original hexadecimal cable message data is converted into hexadecimal by using the tool class corresponding to the parsing model to obtain the cable parsing data.
6. According to claim 5, a unified protocol conversion and early warning analysis system based on edge agent is characterized in that: The state monitoring sensor is connected to the unified processing module via the TCP protocol.
7. According to claim 5, a unified protocol conversion and early warning analysis system based on edge agent is characterized in that: The unified processing module is connected to the data transmission bus via the MQTT protocol.
Citation Information
Patent Citations
Edge intelligent gateway management method and edge intelligent gateway
CN114827293A
Edge computing-based internet-of-things proxy apparatus and data decision method
WO2022002075A1