A visual programming method suitable for power distribution internet of things

The visual programming method solves the problems of high coding threshold and poor reusability in the development of power distribution Internet of Things, realizes an efficient and visual programming process, and improves development efficiency and flexibility.

CN115525266BActive Publication Date: 2026-03-31SHANDONG ELECTRICAL ENG & EQUIP GRP +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

The current development of power distribution IoT has high code development threshold, involves multiple platforms, is complicated by cross-compilation, and lacks a mechanism for rapid reuse of functional modules, resulting in low development efficiency.

Method used

A visual programming approach is adopted, which enables drag-and-drop programming by configuring a case resource library, polling devices, collecting CoAP protocol information, analyzing power distribution services, and compiling modules. This satisfies the information flow and logical rules between modules, generates executable programs, and distributes them to edge computing terminals.

Benefits of technology

It enables visualization of programming work, reduces the burden on developers, improves work efficiency, supports remote deployment and iterative upgrades of programs, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115525266B_ABST
    Figure CN115525266B_ABST
Patent Text Reader

Abstract

The application discloses a visual programming method suitable for power distribution Internet of Things. The visual programming language takes the programming idea of "what you see is what you get" as a principle, and tries to realize the visualization of programming work, that is, the result can be seen at any time, and the adjustment of the program and the result is synchronous. A drag-and-drop programming mode is adopted to realize the one-key issuing of the completed business process to the end and the side operation, so that the burden of the developer is reduced, and the work efficiency is greatly improved. The designer can complete the design of the application program without writing or only writing a small amount of program code, so that the work efficiency of the designer is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of visualization technology for power distribution networks, and more particularly to a visualization programming method suitable for the Internet of Things (IoT) in power distribution. Background Technology

[0002] The construction of distribution automation systems has significant practical engineering application value, with its primary significance being the realization of visualized dispatching and automatic FA (fault location, fault isolation, and power restoration). The distribution transformer monitoring unit (TTU) is a crucial terminal product in distribution automation systems, serving as a distribution measurement and control device that communicates with the power grid master station via a communication network.

[0003] With the development of power distribution network terminal technology, the development and deployment of edge and terminal software face many challenges: Edge and terminal devices need to fulfill specific business scenarios, requiring developers to not only understand software programming but also hardware knowledge, resulting in a high barrier to entry for code development. The diversity of platforms, instruction sets, and operating systems inevitably leads to complex and error-prone cross-compilation processes. Furthermore, application development on edge and terminal devices often involves code-level reuse, lacking functional module encapsulation standards and tools for module composition and orchestration. This hinders the convenient and quick reuse of existing code assets, resulting in wasted development manpower and long development cycles. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention proposes a visual programming method suitable for power distribution IoT, which solves the problems of high code development threshold, multiple platforms involved, complex cross-compilation, and lack of rapid reuse mechanism for functional modules in existing power distribution IoT development.

[0005] To solve the aforementioned technical problem, the technical solution adopted by the present invention is: a visual programming method suitable for power distribution Internet of Things, comprising the following steps:

[0006] S01) Configure a resource library of common terminal devices for power distribution IoT. When a new terminal device is connected, first obtain and save the terminal device information, then determine if there is a connection example. If it is not a new requirement, directly use a visual programming tool to open the configuration file corresponding to the existing requirement and directly combine and compile it with other modules. If it is a new requirement, proceed to step S02.

[0007] S02) In the device polling trigger module, parameters are set in a fill-in-the-blank or multiple-choice manner to obtain the device parameter information for this polling. The device is checked for online status by adding a debug node. If the device is online, proceed to step S03. If the device is offline, continue to poll the device to obtain parameters.

[0008] S03) In the CoAP protocol information acquisition construction module, parameter settings are performed. After the parameter settings are completed, CoAP query parameters are constructed. Combined with the CoAP request data module, data parsing is performed to generate a JSON data string from the acquired information. Then, telemetry data and teleindication data are obtained from the generated JSON object, and then proceed to step S04).

[0009] S04) The data is processed in the power distribution business analysis module. The ultimate goal is to implement common functions in the power distribution business analysis module: transformer operation status monitoring, transformer area security linkage, low-voltage reactive power compensation comprehensive analysis, low-voltage transformer area segmented line loss monitoring and analysis, low-voltage fault comprehensive judgment, household leakage current adaptive management, power quality monitoring and analysis, and power outage event real-time judgment. After the data processing is completed, the data is stored, and then the communication channel is selected. After passing through the MQQT data forwarding module, the module is combined and compiled, and then proceeds to step S05).

[0010] S05) During the compilation of the above modules, it is necessary to determine whether the logic or syntax meets the specifications. If it meets the specifications, proceed to step S06. If it does not meet the specifications, the process needs to be terminated.

[0011] S06) After meeting the compilation specifications, an executable program is generated and distributed to the edge computing terminal. This visual programming work is completed. Repeat the above steps to complete the access of the next terminal device.

[0012] Furthermore, the cases stored in the case resource library mentioned in step S01) include initial commonly used cases and cases added after completing customized requirements. They are stored in the case library and centrally managed in an open-source manner for use in the next customized development.

[0013] Furthermore, visual programming is presented in the form of functional module diagrams. Each functional module represents a computing unit, and functional modules are connected by lines. When configuring parameters, the content between the connecting lines is read, and programming is achieved by dragging and dropping. Each dragged functional module meets the syntax and logic rules within the module. Based on the use of each module, the compilation focuses on compiling the information flow between modules and reviewing the relevant specifications of the power distribution Internet of Things.

[0014] Furthermore, in step S04), the data is subjected to threshold processing in the power distribution business analysis module.

[0015] Furthermore, in step S02), the online status of the device is verified by adding the msg.payload node.

[0016] Furthermore, there is a resource library of cases where commonly used edge devices in the Internet of Things (IoT) connect to edge computing terminals via the RS485 protocol.

[0017] The beneficial effects of this invention are as follows: This invention proposes a visual programming method suitable for power distribution Internet of Things. The visual programming language is based on the "what you see is what you get" programming philosophy, and strives to realize the visualization of programming work, that is, the results can be seen at any time, the program and the results are adjusted synchronously, and a drag-and-drop programming method is adopted to realize the one-click deployment of the completed business process of development, testing and approval to the end and edge for operation, thereby reducing the burden of developers and greatly improving work efficiency.

[0018] The biggest advantage of visual programming is that designers can complete the design of applications without writing or with very little programming code, which greatly improves the efficiency of designers.

[0019] Supports remote deployment and iterative upgrades of the program. Attached Figure Description

[0020] Figure 1 This is a flowchart of the method;

[0021] Figure 2 This is a schematic diagram of a visual programming system suitable for power distribution IoT. Detailed Implementation

[0022] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0023] Example 1

[0024] This embodiment uses a smart terminal TTU in a power distribution substation as an example to disclose a visual programming method suitable for the Internet of Things in power distribution, such as... Figure 1 As shown, it includes the following steps:

[0025] S1: A resource library of case studies on power distribution IoT that includes commonly used end devices connected to edge computing terminals via the RS485 protocol.

[0026] When there is an access chip terminal device, first obtain and save the terminal device information, then determine whether there is an access example. If it is not a new requirement, you can directly use a visual programming tool to open the configuration file corresponding to the existing requirement and directly combine and compile it with other modules; if it is a new requirement, you need to proceed to step 2.

[0027] S2: In the device polling trigger module, parameters are set in a fill-in-the-blank or multiple-choice format to obtain the device parameter information for this polling. A msg.payload node can be added to verify whether the device is online. If it is online, proceed to step 3. If it is offline, continue to poll the device to obtain parameters.

[0028] S3: In the CoAP protocol information acquisition construction module, set the parameters. After the parameters are set, construct the CoAP query parameters and combine them with the CoAP request data module to parse the data and generate a JSON data string from the acquired information. Then, obtain the telemetry data and teleindication data from the generated JSON object, and then proceed to step 4.

[0029] S4: Data is processed in the distribution business analysis module (threshold processing, etc.). The ultimate goal is to implement common functions in the distribution business analysis module: transformer operation status monitoring, transformer area security linkage, low-voltage reactive power compensation comprehensive analysis, low-voltage transformer area segmented line loss monitoring and analysis, low-voltage fault comprehensive judgment, household leakage current adaptive management, power quality monitoring and analysis, and real-time power outage event judgment. After data processing, the data is stored (including IP information), and then a 4G channel is selected. After passing through the MQQT data forwarding module, the module is combined and compiled, proceeding to step 5.

[0030] S5: During the compilation of the above modules, it is necessary to determine whether the logic or syntax meets the specifications. If the specifications are met, proceed to step 6; otherwise, the process needs to be terminated.

[0031] S6: After meeting the compilation specifications, an executable program is generated and distributed to the edge computing terminal. This visual programming work is completed. Repeat the above steps to complete the access of the next station-end device.

[0032] Step S01) The case library stores cases including initial commonly used cases and cases added after completing customized requirements. These cases are stored in the case library and centrally managed using open-source methods for future customized development. In the specific configuration of this invention, the initial resources of the case library can be enriched to meet the needs of most customers. Generally, developers can select cases based on their needs. If customer-supplied cases are required, developers can add them to the case library for selection.

[0033] The visual programming process is presented in the form of a functional module diagram, where each functional module represents a computing unit, and the modules are connected by lines. During parameter configuration, the content between the connecting lines is read, and programming is achieved through drag-and-drop. Each dragged-and-drop cloud orchestration functional module already conforms to the module's internal syntax and logic rules. Combined compilation requires prioritizing the compilation of information flow between modules, based on the usage of each module, and reviewing relevant power distribution IoT specifications.

[0034] Visual programming systems suitable for power distribution IoT, such as Figure 2As shown, the system in this embodiment mainly consists of visualization components, component program generation and system call interfaces, kernel modules, hardware abstraction, and hardware devices. The visualization components primarily include a distribution network service APP, a CoAP protocol component, an MQTT component, and general-purpose components for visualization programming. The distribution network service APP, centered around the main needs of the distribution IoT business, includes online power quality monitoring and analysis, comprehensive analysis of low-voltage reactive power compensation, segmented line loss monitoring and analysis of low-voltage distribution areas, distribution transformer operation status monitoring, comprehensive low-voltage fault assessment, and adaptive management of leakage current in individual households. It serves as the main business component for implementing the visualization programming functions of the distribution IoT. The CoAP protocol and MQTT components primarily utilize the distribution IoT CoAP and MQTT protocols, implementing protocol frame construction, data transmission, and parsing functions. The general-purpose components for visualization programming extract necessary functional requirements based on the distribution IoT visualization programming process, implementing general functions such as remote signaling and telemetry data analysis, providing basic component support for adapting to the functional upgrades of the distribution IoT.

[0035] The above description is merely the basic principle and preferred embodiment of the present invention. Improvements and substitutions made by those skilled in the art based on the present invention are within the scope of protection of the present invention.

Claims

1. A visual programming method suitable for power distribution Internet of Things, characterized in that: Comprise the following steps: S01), configure the case resource library for the commonly used end device of power distribution Internet of Things, when a new end device is accessed, first acquire the information of the end device and save it, then judge whether there is an access sample, if it is not a new demand, directly use the visual programming tool to open the configuration file corresponding to the existing demand, directly combine and compile with other modules; if it is a new demand, it is necessary to enter step S02); S02), trigger the device polling module to set the parameters in the form of fill-in-the-blank or multiple-choice questions, acquire the device parameter information of this polling, and verify whether the device is online by adding a debugging node, if it is online, enter step S03), if it is not online, continue to acquire parameters by device polling; S03), in the CoAP protocol information collection and construction module, set the parameters, construct the CoAP query parameters after the parameter setting is completed, combine the CoAP request data module to analyze the data, and parse the collected information to generate a Json data string; then acquire the telemetry data and telesign data of the generated Json object, and then enter step S04); S04), process the data in the power distribution business analysis module, the final goal is to realize the common functions in the power distribution business analysis module: transformer operation state monitoring, substation security linkage, low-voltage reactive power compensation comprehensive analysis, low-voltage substation section line loss monitoring and analysis, low-voltage fault comprehensive analysis, household leakage adaptive management, power quality monitoring and analysis, real-time analysis of power failure events, after data processing, store the data, then select the communication channel, after passing through the MQTT data forwarding module, combine and compile the modules, enter step S05); S05), in the process of combining and compiling the above modules, it is necessary to judge whether the logic or syntax meets the specification, if it meets the specification, enter step S06), if it does not meet the specification, end the process; S06), after meeting the compilation specification, an executable program is generated, and the executable program is issued to the edge computing terminal, the visual programming work is completed, and the above steps are repeated to complete the access of the next end device.

2. The visual programming method suitable for power distribution Internet of Things according to claim 1, characterized in that: The case stored in the case resource library of step S01 includes initial common cases and newly added cases after completing customization requirements, which are saved in the case library and managed in an open code manner for next time demand customization development.

3. The visual programming method suitable for power distribution IoT of claim 1, wherein: The visual programming is displayed in the form of a functional module diagram, each functional module represents an operation unit, and the functional modules are connected by connection lines. When configuring parameters, read the content between the connection lines, realize programming by dragging, and each functional module dragged meets the internal syntax and logic rules of the module. The combination and compilation focuses on the information flow between modules and audits the related specifications of power distribution Internet of Things.

4. The visual programming method suitable for power distribution IoT of claim 1, wherein: In step S04), the data is threshold processed in the power distribution business analysis module.

5. The method for visual programming suitable for power distribution IoT of claim 1, wherein: In step S02, whether the device is online is audited by adding a msg.payload node.

6. The method for visual programming suitable for power distribution IoT of claim 1, wherein: The commonly used end device of power distribution Internet of Things is connected to the case resource library of the edge computing terminal through the RS485 protocol.

Citation Information

Patent Citations

  • Systems, methods, and devices for an enterprise internet-of-things application development platform

    CA3001304A1

  • An NB-IOT terminal software development method in a visual environment based on a mobile terminal

    CN109683882A