A graphical programming method for intelligent gateway data processing and flow control

By using a graphical programming method for smart gateways, the problem of inconsistent protocols among IoT devices is solved, enabling efficient data sharing and process control between devices, simplifying programming, and improving device compatibility and the integrity of the industry chain.

CN115248684BActive Publication Date: 2026-02-10王腾
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210967081.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-12
Publication Date
2026-02-10
Estimated Expiration
2042-08-12

AI Technical Summary

Technical Problem

The lack of standardized communication protocols and interface rules among IoT devices makes communication between them difficult, requiring programmers to perform specific programming interfaces, which increases workload and costs, and complicates data sharing and linkage between devices.

Method used

A graphical programming approach for intelligent gateway data processing and process control is adopted. By constructing physical interface models, data packet models, and parser models, a drag-and-drop graphical interface is used to establish data flow channels and automatically generate executable code, thereby realizing data sharing and process control between devices.

Benefits of technology

It simplifies the interface connection and data processing between devices, improves device compatibility, meets diverse application needs, saves manpower and resources, and enhances the integrity of the Internet of Things industry chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115248684B_ABST
    Figure CN115248684B_ABST
Patent Text Reader

Abstract

The application discloses a kind of graphical programming method of intelligent gateway data processing and process control, comprising the following steps: constructing physical interface model and data packet model, parser model;Create data interface label of data packet model, parser model, realize data interface abstract design;Build system global data sharing node model, and data interface label is connected with node to realize data system flow internal sharing.This application only needs to be dragged and edited by simple element through graphical interactive interface, and gateway program design can be completed, interface docking and data edge computing between devices, between platforms and the like are established, solve the problems such as low matching degree, great difficulty and poor effect between devices, improve the compatibility of equipment, save a lot of manpower and material resources for developers, improve the integrity of Internet of Things industry chain system, and accelerate the overall development of Internet of Things field in various industries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial data and Internet of Things (IoT) data processing technology, and more specifically, to a graphical programming method for intelligent gateway data processing and process control. Background Technology

[0002] With the development and widespread application of IoT technology, the volume and frequency of communication between things are growing rapidly. IoT technology has been relatively maturely applied in areas such as security monitoring, intelligent transportation, smart grids, smart logistics, and smart factories, with a promising market prospect. However, this has also created some industry pain points and challenges.

[0003] The Internet of Things (IoT) technology has led to a surge in demand for networked industrial equipment and various sensors, resulting in a proliferation of IoT device and sensor manufacturers. These manufacturers typically possess their own communication protocols and interface rules, and there is a lack of unified data formats and industry standards across different devices and platforms. When using existing tools and technologies, communication between different devices and protocols requires programmers to develop interface programs. These programs are often singular and specific, making it difficult to adapt to diverse application needs, and specific gateways often have limited functionality. Adding a new device or data protocol to the system necessitates specific research into its interface technology and its programming implementation, significantly increasing the workload for technical personnel. Data coordination and sharing between device controllers, enterprise departments, and system platforms are challenging. The cost of data sharing and linkage between different IoT models and systems is also gradually increasing, and the interface and data interaction requirements between different devices are becoming increasingly complex, highlighting the growing challenges of data protocol parsing and IoT edge computing.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] In view of the above-mentioned technical problems in related technologies, the present invention proposes a graphical programming method for intelligent gateway data processing and process control, which can overcome the above-mentioned shortcomings of the prior art.

[0006] To achieve the above-mentioned technical objectives, the technical solution of the present invention is implemented as follows:

[0007] A graphical programming method for data processing and process control of an intelligent gateway includes the following steps:

[0008] S1 constructs the physical interface model, data packet model, and parser model;

[0009] S2 creates data interface tags for the data packet model and parser model, realizing the abstract design of the data interface;

[0010] S3 constructs a global data sharing node model for the system, and connects data interface tags with nodes to achieve data sharing within the system process;

[0011] S4 constructs a data packet sending mechanism to achieve sequential and logical execution of data packet assembly, sending, or submission;

[0012] S5 constructs a data packet parsing process mechanism to realize parsing condition judgment, data extraction, action or task execution condition judgment and execution, and realizes programmable configuration from abstract model to specific instance through graphical interface;

[0013] S6 constructs a multi-level response mechanism model to handle cascaded sequential and logical responses, as well as task events without a response;

[0014] S7 uses a drag-and-drop graphical programming interface to establish data flow channels and task associations between models. It instantiates the above abstract models according to different application scenario requirements, completes the configuration required by the process controller, and automatically generates code that can be executed by the smart gateway executor by the translation program.

[0015] The S8 smart gateway actuator performs port configuration, data processing, and process control based on the code generated by the translation program.

[0016] Furthermore, the data packet model includes a header module, a data content module, a data interface module, and a physical interface module.

[0017] Furthermore, the data content module includes the content of the data packet and the data interface tag, and verifies the validity of the data for different data types.

[0018] Furthermore, the packet parser model includes a header module, a parsing condition judgment module, a parsing rule module, a data interface module, an action module, and an exception handling module.

[0019] Furthermore, the parsing rule module is used by users to create, edit, and delete parsing rules through the programming configuration area.

[0020] Furthermore, the parsing rules include variable names, judgment conditions, reference values, and executable actions.

[0021] Furthermore, the parsing exception handling module is used to handle the execution logic and tasks of abnormal state data.

[0022] Furthermore, the intelligent gateway actuator includes a listening actuator, a data packet actuator, and a process controller.

[0023] Furthermore, the listener executor is used to listen for data received on the interface, cache the received data, and provide a data source for the parser.

[0024] Furthermore, the process controller is used to parse and execute translated code, control data packet sending, parsing, data packet reassembly, task execution and alarms, and select and execute processes based on the results of logical judgments to achieve process management at the system level.

[0025] The beneficial effects of this invention are as follows: This invention only requires simple element drag-and-drop and parameter editing through a graphical interactive interface to complete tasks such as gateway program design, establishing interface connections between devices and platforms, and edge computing. It accurately and efficiently completes data exchange and processing between things, greatly simplifying tedious code programming, device debugging, data acquisition, and system maintenance. It solves problems such as low compatibility between devices, high difficulty, and poor results, improves device compatibility, meets the flexible market demand and application diversification, saves developers a lot of manpower and resources, improves the integrity of the Internet of Things industry chain, and accelerates the overall development of Internet of Things applications in various industries. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a flowchart illustrating the graphical programming method for data processing and flow control of a smart gateway according to an embodiment of the present invention.

[0028] Figure 2 This is a schematic diagram of a data packet model for a graphical programming method for intelligent gateway data processing and flow control according to an embodiment of the present invention.

[0029] Figure 3 This is a schematic diagram of a parser model for a graphical programming method for data processing and flow control of an intelligent gateway according to an embodiment of the present invention.

[0030] Figure 4 This is a schematic diagram of the module and process relationship of the graphical programming method for intelligent gateway data processing and process control according to an embodiment of the present invention;

[0031] Figure 5 This is an operation flowchart of the graphical programming method for intelligent gateway data processing and process control according to an embodiment of the present invention, which includes the addition of a model.

[0032] Figure 6This is a flowchart of the configuration data packet model for the graphical programming method of intelligent gateway data processing and flow control according to an embodiment of the present invention.

[0033] Figure 7 This is a flowchart of the configuration parser model for the graphical programming method of intelligent gateway data processing and flow control according to an embodiment of the present invention;

[0034] Figure 8 This is a schematic diagram of the data packet parsing module rules of the graphical programming method for intelligent gateway data processing and flow control according to an embodiment of the present invention;

[0035] Figure 9 This is an operation flowchart of the module docking of the graphical programming method for intelligent gateway data processing and process control according to an embodiment of the present invention. Detailed Implementation

[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of protection of the present invention.

[0037] like Figure 1-9 As shown in the figure, a graphical programming method for data processing and flow control of an intelligent gateway according to an embodiment of the present invention includes the following steps:

[0038] 1. Construct the basic models of the physical interface, data packets, and data packet parser.

[0039] 2. Create data interface tags for the data packet and parser model to implement the data interface abstract design.

[0040] 3. Construct a system-wide data sharing node model that allows data interface tags to interface with nodes, enabling data sharing within the system process, including reading and storage.

[0041] 4. Construct a data packet sending mechanism to implement sequential and logical execution of data packet assembly, sending, or submission.

[0042] 5. Construct a data packet parsing process mechanism to realize data extraction, parsing condition judgment, task execution, and exception handling; and realize programmable configuration from abstract model to concrete instance through a graphical interface.

[0043] 6. Construct a multi-level response mechanism model to handle cascading sequential and logical responses, as well as task events without a response.

[0044] 7. Using a graphical programming interface such as drag and drop, establish data flow channels and task associations between models. Instantiate the above abstract models according to different application scenario requirements, complete the configuration required by the process controller, and have the translation program automatically generate code that can be executed by the smart gateway executor.

[0045] 8. The actuator of the smart gateway completes port configuration, data processing and flow control according to the program, thus forming a graphical programming method that can be configured quickly.

[0046] To facilitate understanding of the above technical solutions of the present invention, the following detailed description of the above technical solutions of the present invention will be provided through specific usage methods.

[0047] In practical use, the graphical programming method for intelligent gateway data processing and flow control according to the present invention includes the following steps:

[0048] 1. Construct a graphical user interface. This interface consists of four main parts. The left side displays a list of models and tasks, showcasing the various data packets and parsers supported by the gateway device, as well as the model types for executable tasks. Users can select the appropriate model based on their device integration needs, such as serial port data packets, serial port data packet parsers, socket data packets, socket parsers, MQTT data packets, MQTT data packet parsers, and various TCP protocol data packets. The middle section is a data flow editor. Users can select and drag models from the left side to this area to instantiate and configure the models. Data flow relationships are established through multiple connections between models. For example, connecting serial port data packet A and serial port data packet parser B indicates that serial port data packet parser B will be used to parse the data packet returned by the terminal device in response to data packet A. The right side is the programming configuration area, where users can configure more detailed parameters and logic for different attributes selected in the model. The top section is a management menu bar, containing basic functions such as save, reset, and download program.

[0049] 2. The main function of the data packet model is to construct different types of data packets, such as... Figure 2The model shown comprises four parts: a header module, a data content module, a data interface module, and a physical interface module. The header module stores and displays basic information about the data packet, such as its type, name, and remarks. The data content module is the main component of the data packet model, containing the packet's content and data interface tags. For different data types, the data packet model can verify the data's validity. The data interface module serves as the channel for parameter transmission between the data packet model and external systems. The data packet content supports inserting and using one or more data interface tags, enabling the data packet to reference externally shared data. The physical interface module specifies the physical interface used when sending the data packet, along with its parameters. Examples include the name, baud rate, parity bits, data bits, and stop bits of the selected serial port, or the name, IP address, and port number of the network interface.

[0050] 3. The main function of the packet parser model is to parse different types of data packets, such as... Figure 3 The model shown comprises six parts: a title module, a parsing condition judgment module, a parsing rule module, a data interface module, an action module, and an exception handling module. The title module stores and displays basic information about the parser, such as its type, name, and remarks. The parsing condition judgment module contains one or more preconditions for the parser to execute parsing. When the preconditions are met, the program executes according to the parsing rules; if the preconditions are not met, the parser will not execute parsing. The parsing rule module is the main component of the parser model. Users can create, edit, and delete parsing rules through the programming configuration area. Parsing rules are the crucial basis for the parser to parse data packets. A parsing rule consists of a variable name, judgment condition, reference value, and executable action. Through parsing rules, the parser can extract, store, and verify the completeness and correctness of data packets. The data interface module is the channel for the data packet parser to establish parameter transmission with external systems. The parser can transfer the extracted data according to the parsing rules to nodes through the data interface. The action module is a container for storing action programs in the data packet parser. The programs stored in this module describe logical judgments and are associated with the execution of specific actions. An action refers to a move or task that the process controller can control and execute. Users can add, edit, and delete actions through the programming configuration area. A packet parser can contain multiple actions to respond to different data received. The exception handling module is used to handle abnormal states. For example, if a data packet is not received within a specified time, an abnormal state is triggered, and the process controller is notified to resend the query command or report the exception through other ports.

[0051] 4. Data interfaces and nodes constitute the data sharing transmission channel. A data interface is the interface for interaction between the model's internal and external systems; a model can contain multiple data interfaces. Each data interface has a unique tag ID, serving as its identity identifier. The gateway executor uses the tag ID to query and locate data. The scope of a data tag is limited to within the model; data interaction between different models requires the coupling function of nodes. A node is a connector for data interfaces with bidirectional transmission capabilities; interfaces can assign values ​​to nodes and read data from nodes. A node can be connected to multiple interfaces; a new assignment operation on a node by an interface tag in the model will overwrite the original data on the node. For example, data interface A1 in model A and data interface B1 in model B are both connected to node 1. Data interface A1 assigns a value to node 1, and data interface B1 reads the value from node 1, thus realizing data transmission between the two models. Users can connect multi-modal data interfaces and nodes in the data flow editor to solve complex data transmission needs.

[0052] 5. The translation code implementation transforms the user's graphical operations into code that can be saved, interpreted, and executed by the machine. This automatically generated code contains all information, including the parameters set by the user and the logical flow. The translation program understands the user's actions and, based on different functional modules, implements the mapping relationship between variables and configuration parameters in the program, thus describing the machine's functional operation logic in code form. During the translation process, the translation program should adhere to the gateway executor's preset compilation rules, and the generated code can be parsed and executed by the intelligent gateway executor.

[0053] 6. The intelligent gateway executor, whose main function is to parse and translate code and execute programs, consists of three parts: a listener executor, a packet executor, and a process controller. The listener executor listens for data received on the interface and has the ability to cache data, providing a data source for the parser. The packet executor receives instructions from the process controller and sends specified data packets through the specified interface according to the instructions.

[0054] As the central control system of the intelligent gateway, the process controller can parse and execute translated code, control data packet sending and parsing, perform data packet reassembly, execute tasks and issue alarms, and select a specific process to execute based on logical judgments, thereby achieving overall process management at the system level. It comprises an action execution controller and a response mechanism controller: the action execution controller parses the program in the action module container and executes one or more actions when the execution conditions are met. The response mechanism controller monitors the parser's activity and provides feedback to the process controller by determining whether the parser has received a response from the terminal device within a preset time. Based on the information provided by the mechanism controller, the process controller can either resend data packets or proceed to the next process stage.

[0055] In summary, by utilizing the technical solutions described above, gateway program design, establishing interfaces between devices and platforms, and edge computing can be completed simply through a graphical user interface using drag-and-drop element manipulation and parameter editing. This enables precise and efficient data exchange and processing between objects, greatly simplifying tedious code programming, device debugging, data acquisition, and system maintenance. It also solves problems such as low compatibility, high difficulty, and poor performance between devices, improving device compatibility, meeting market demand for flexibility and application diversity, saving developers significant manpower and resources, enhancing the integrity of the IoT industry chain, and accelerating the overall development of IoT applications across various industries.

[0056] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A graphical programming method for data processing and process control of an intelligent gateway, characterized in that, Includes the following steps: S1 constructs the physical interface model, data packet model, and parser model; S2 creates data interface tags for the data packet model and parser model to realize the abstract design of the data interface. S3 constructs a global data sharing node model for the system, and connects data interface tags with nodes to achieve data sharing within the system process; S4 constructs a data packet sending mechanism to achieve sequential and logical execution of data packet assembly, sending, or submission. S5 constructs a data packet parsing process mechanism to realize parsing condition judgment, data extraction, action or task execution condition judgment and execution, and realizes programmable configuration from abstract model to specific instance through graphical interface; S6 constructs a multi-level response mechanism model to handle cascaded sequential and logical responses, as well as task events without a response; S7 uses a drag-and-drop graphical programming interface to establish data flow channels and task associations between models. It instantiates the abstract models according to different application scenarios, completes the configuration required by the process controller, and automatically generates executable code for the smart gateway executor through a translation program. This translation code compiles the user's graphical operations into code that can be saved, interpreted, and executed by the machine. This code includes the parameters set by the user and the logical flow. The translation program understands the user's operations and, based on different functional modules, maps variables in the program to configuration parameters, thereby describing the machine's functional operation logic in code form. The S8 smart gateway actuator performs port configuration, data processing, and process control based on the code generated by the translation program.

2. The graphical programming method for intelligent gateway data processing and flow control according to claim 1, characterized in that, The data packet model includes a header module, a data content module, a data interface module, and a physical interface module.

3. The graphical programming method for intelligent gateway data processing and flow control according to claim 2, characterized in that, The data content module includes the content of the data packet and the data interface tag, and verifies the validity of the data for different data types.

4. The graphical programming method for intelligent gateway data processing and process control according to claim 1, characterized in that, The packet parser model includes a header module, a parsing condition judgment module, a parsing rule module, a data interface module, an action module, and an exception handling module.

5. The graphical programming method for intelligent gateway data processing and flow control according to claim 4, characterized in that, The parsing rules module is used by users to create, edit, and delete parsing rules through the programming configuration area.

6. The graphical programming method for intelligent gateway data processing and flow control according to claim 5, characterized in that, The parsing rules include variable names, judgment conditions, reference values, and executable actions.

7. The graphical programming method for intelligent gateway data processing and flow control according to claim 4, characterized in that, The exception handling module is used to handle the execution logic and tasks of abnormal state data.

8. The graphical programming method for intelligent gateway data processing and flow control according to claim 1, characterized in that, The intelligent gateway actuator includes a listening actuator, a data packet actuator, and a process controller.

9. The graphical programming method for intelligent gateway data processing and flow control according to claim 8, characterized in that, The listener executor is used to listen for data received on the interface, cache the received data, and provide a data source for the parser.

10. The graphical programming method for intelligent gateway data processing and flow control according to claim 8, characterized in that, The process controller is used to parse and execute translated code, control data packet sending, parsing, data packet reassembly, task execution and alarms, and select and execute processes based on the results of logical judgments to achieve process management at the system level.

Citation Information

Patent Citations

  • Graphical codeless programming method, computer device, and storage medium

    WO2021168634A1