Containerized plug-and-play method and system for edge internet-of-things device
Through the method of plug -in and played by the edge IoT device, integrate the northern direction module, message bus module, data center module, and management center module, solving the limited data processing capacity, high transmission delay, low resource utilization efficiency in the network architecture of traditional substations, low transmission delay, low resource utilization efficiency efficiency efficiency The problem has achieved more efficient, safer and smarter data processing and management.
Patent Information
- Application Number
- CN202411424676.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-01-28
AI Technical Summary
Traditional substation network architectures have problems such as limited data processing capabilities, high transmission delays, and low resource utilization efficiency, which cannot meet the real-time monitoring and control needs of modern power systems.
Adopt the method of plug -in and played by the edge of the edge device, and set the edge computing, data collection and transmission, identity and containerization technology by setting up the north -direction module module, message bus module, data center module, and management center module. Dependence on cloud resources.
Improve data processing efficiency and real -time nature, reduce data transmission delays, enhance data security, and optimize the efficiency of resource utilization, realize more efficient, safer, and more intelligent data processing and management methods.
Smart Images

Figure CN119383178A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system automation, and in particular to a containerized plug-and-play method and system for an edge IoT device. Background Art
[0002] The traditional substation network architecture adopts a centralized data acquisition and control solution. Substation equipment sends data to a centralized gateway device through a communication protocol, which is responsible for receiving, processing and forwarding data, and then executing corresponding control commands. The processed data is transmitted to the monitoring system or dispatching master station through the communication network.
[0003] However, there is room for improvement in the traditional solution. First, the data processing capacity of the gateway device is limited and cannot meet the needs of processing massive data. Second, the data needs to be transmitted and processed multiple times, resulting in high transmission delays, affecting real-time monitoring and control, and placing relatively high demands on communication algorithms. At the same time, in the traditional solution, all data is transmitted to a centralized gateway device for processing and storage, resulting in inefficient resource utilization. Summary of the invention
[0004] The purpose of the present invention is to solve at least one technical problem in the background technology and provide a containerized plug-and-play method and system for edge IoT devices.
[0005] To achieve the above object, the present invention provides a containerized plug-and-play method for edge IoT devices, comprising: deploying a northbound protocol module, a message bus module, a data center module, and a management center module;
[0006] The northbound protocol module is deployed on the edge gateway and communicates with the edge cluster through the northbound communication protocol to realize the management and control of the edge gateway by the edge cluster, and at the same time realize the function of the edge gateway transmitting information to the edge cluster;
[0007] The message bus module uses the MQTT message bus to communicate with applications in the container to implement data subscription and publishing;
[0008] The data center module stores important information such as real-time data, historical data, and model data, and interacts the data between the edge cluster and the edge device;
[0009] The management center module is deployed on the host and is responsible for container and application management.
[0010] According to one aspect of the present invention, the northbound protocol module always monitors the configured port and receives the handshake request from the client;
[0011] The northbound protocol module receives and parses the edge cluster message;
[0012] The northbound protocol module and the management center module perform data interaction;
[0013] The northbound protocol module implements file data interaction between the edge cluster and the management center module;
[0014] The northbound protocol module obtains the real-time status of the container and the application in the container and controls them.
[0015] According to one aspect of the present invention, the northbound protocol module includes a main thread, a listening thread, a heartbeat thread and a task processing thread;
[0016] The task of the main thread is to initialize the program, including processing startup parameters, reading configuration files, and then creating channels according to the configuration;
[0017] The listening thread checks the listening status every 15 seconds. The listening thread is started after the program environment is initialized, and the polling interval is 1 second;
[0018] The heartbeat thread processes tasks that need to be timed in the channel. Each channel opens a heartbeat thread. The tasks completed by the heartbeat thread include sending heartbeat messages, delaying system upgrades, and delaying application installation. The heartbeat thread is opened after the channel is initialized, and the polling interval is 1s;
[0019] The task processing thread processes each ASDU task sent by the edge cluster. Each channel starts a task processing thread. The task processing thread is started after the channel initialization is completed. The polling time is 5ms.
[0020] According to one aspect of the present invention, the use of the MQTT message bus to communicate with the application to implement data subscription and publishing includes:
[0021] After the MQTT message bus agent receives the message published by the application, it will route the message to the corresponding subscribing client according to the subscription relationship;
[0022] The message is routed to the subscribing client, the MQTT message bus agent passes the message to the client, and the client processes the received message;
[0023] When the client no longer needs to communicate with the MQTT message bus broker, it sends a disconnect request to end the connection with the MQTT message bus broker.
[0024] According to one aspect of the present invention, each application queries the data center module for required data model data through the message bus module;
[0025] The data center module is responsible for maintaining the current value of the device's measurement data and providing a query service for the current value;
[0026] The data center module is responsible for maintaining the current value of the device's status data and providing query services for the current value and historical change records;
[0027] The data center module receives the control message of the service channel and the control return message of the application to realize data interaction;
[0028] The data center module stores the current value of the collected data and provides corresponding query services.
[0029] According to one aspect of the present invention, storing important information of real-time data, historical data, and model data, and interacting data of edge clusters with edge devices, includes:
[0030] The data center module receives the registered device information of the application, parses the model file, generates the corresponding device in its memory in real time, and sends a message of adding a sub-device to the business channel; conversely, if the application's unregistered device information is received, the corresponding configuration library and memory instance are deleted;
[0031] The data center module receives a message from a service channel or application to query device information, and retrieves data from the memory and returns it;
[0032] The data center module receives the real-time message from the application, updates the data to the memory, and determines whether a sudden change needs to be sent up and whether the dead zone requirements are met. If so, the message is forwarded to the service channel;
[0033] The data center module receives the historical data storage message of the application and saves the data into the historical data table. If a historical data reading message is received, the data is read from the historical data table and returned to the service channel;
[0034] The data center receives the control message of the service channel and forwards the message to the application;
[0035] When the data center receives all device data of a service under the subscription model of the business channel, it sets the subscription item of the model device in the memory to 1, updates the corresponding subscription requirements, updates all devices using the model at the same time, and updates the configuration library;
[0036] The data center module receives a fixed value query command from the business channel, forwards it to the application, and after receiving a fixed value message replied by the application, forwards it to the business channel, and simultaneously updates the fixed value table in the configuration library.
[0037] According to one aspect of the present invention, the management center module includes:
[0038] The communication module implements the communication function of the message bus module, receives requests from the message bus module, parses them and sends them to other modules for processing, and sends the returned result packages to the message bus module;
[0039] The file management module is responsible for the maintenance of log file paths and message lists;
[0040] The data management module maintains the database and adds, deletes, modifies, and checks the data in the container and application configuration tables.
[0041] Resource monitoring module, which monitors the resource usage of edge devices, containers, and applications and generates corresponding alarms and recovery signals;
[0042] The device management module implements edge device management requests, including device upgrade, device control, device information query, device configuration query and modification;
[0043] The container management module implements container management requests, including container installation, container control, container configuration query, device configuration query and modification, and container resource usage query;
[0044] The application management module implements the requirements of application management, including application installation, application control, application configuration query and modification, and application resource usage query.
[0045] According to one aspect of the present invention, the management center module is deployed on a host machine and is responsible for managing containers and applications, including:
[0046] After the program of the management center module is started, an application object is first created, and then the application object searches for the number of containers and creates a container object;
[0047] The container object searches for the number of applications and creates the application object. The application information in the unstarted container cannot be obtained, and the application object is temporarily set to empty;
[0048] Read the sqlite3 database and update the configuration according to the corresponding data table. If the data table does not exist or the content is empty, the default configuration is used;
[0049] Establish communication between the management center module and the MQTT message bus, and subscribe to topic messages sent to the management center module;
[0050] When the communication module receives a message from the MQTT message bus, it parses the JSON message to generate a corresponding request, and sends it to the corresponding management module for processing according to the request type;
[0051] After the corresponding management module completes the processing, it returns the result to the communication module, and the communication module sends the JSON message to the bus;
[0052] After the program is started, the resource monitoring module scans the edge devices. When all containers and all applications are initialized, the resource usage of all containers and all applications is also scanned. Once the resource usage is abnormal, it is sent to the MQTT message bus through the communication module.
[0053] To achieve the above object, the present invention also provides a containerized plug-and-play system for edge IoT devices, comprising:
[0054] The northbound protocol module is deployed on the edge gateway and communicates with the edge cluster through the northbound communication protocol to realize the management and control of the edge gateway by the edge cluster, and at the same time realize the function of the edge gateway transmitting information to the edge cluster;
[0055] The message bus module uses the MQTT message bus to communicate with applications to implement data subscription and publishing;
[0056] The data center module stores important information such as real-time data, historical data, and model data, and interacts the data between the edge cluster and the edge device;
[0057] The management center module is deployed on the host and is responsible for container and application management.
[0058] According to the solution of the present invention, firstly, edge computing sinks the data processing and analysis functions to the edge devices, reduces the dependence on cloud resources, and improves the efficiency and real-time performance of data processing. Secondly, data collection and transmission technology ensures that data is collected from the local power grid and safely transmitted to the edge cluster, identity authentication technology ensures the secure connection of devices, model interaction technology promotes data exchange between devices, and device discovery technology realizes automatic identification and connection of devices. The introduction of containerization technology enables edge devices to have plug-and-play characteristics, simplifies deployment and management processes, improves system flexibility and portability, and provides more efficient solutions for real-time data processing and management.
[0059] The present invention covers key technical fields such as the Internet of Things, edge computing, and data communications, and combines the advantages of containerization technology to bring new opportunities and challenges to the development of power system automation technology. By organically integrating various technologies, this method can effectively improve the performance and efficiency of edge IoT devices, promote the construction of smart grids, achieve higher levels of data collection, processing, and management, and inject new vitality and momentum into the development of the energy sector.
[0060] The present invention solves the shortcomings of existing new energy substations in terms of data processing, delay, security and resource utilization. By introducing the plug-and-play method of containerizing edge IoT devices, intelligent edge gateway devices can be deployed in new energy substations to realize local data processing and decision-making, thereby reducing data transmission delays and improving the real-time and response speed of the system. At the same time, the containerized design of edge IoT devices also enhances data security, and data can be encrypted and stored locally to reduce the risk of data being attacked during transmission. In addition, the containerization method of edge IoT devices also optimizes resource utilization efficiency. By pre-processing and screening data locally, it saves bandwidth and cloud resource utilization, and improves system efficiency and performance. Therefore, this invention brings more efficient, safer and smarter data processing and management methods to existing new energy substations, making up for the shortcomings of traditional gateways in many aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 A schematic diagram showing a principle block diagram of a containerized plug-and-play method for an edge IoT device according to an embodiment of the present invention;
[0062] Figure 2 A schematic diagram showing a northbound protocol program structure according to an embodiment of the present invention;
[0063] Figure 3 A schematic diagram of a main thread structure of a northbound protocol according to an embodiment of the present invention is shown;
[0064] Figure 4 A schematic diagram of a northbound protocol listening thread structure according to an embodiment of the present invention is shown;
[0065] Figure 5 A schematic diagram of an MQTT message bus structure according to an embodiment of the present invention is shown;
[0066] Figure 6 A diagram schematically showing a data center program structure according to an embodiment of the present invention;
[0067] Figure 7 The following is a schematic diagram showing a program structure of a management center according to an embodiment of the present invention. DETAILED DESCRIPTION
[0068] The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are only to enable those skilled in the art to better understand and thus implement the present invention, rather than implying any limitation on the scope of the present invention.
[0069] As used herein, the term “including” and variations thereof are to be interpreted as open-ended terms meaning “including, but not limited to.” The term “based on” is to be interpreted as “based, at least in part, on.” The terms “one embodiment” and “an embodiment” are to be interpreted as “at least one embodiment.”
[0070] Figure 1 The schematic diagram shows a principle block diagram of a containerized plug-and-play method for edge IoT devices according to an embodiment of the present invention. Figure 1 As shown, in this embodiment, the containerized plug-and-play method of the edge IoT device includes: deploying a northbound protocol module, a message bus module, a data center module, and a management center module;
[0071] The northbound protocol module is deployed on the edge gateway and communicates with the edge cluster through the northbound communication protocol to realize the management and control of the edge gateway by the edge cluster, and at the same time realize the function of the edge gateway transmitting information to the edge cluster;
[0072] The message bus module uses the MQTT message bus to communicate with the application (App) in the container (i.e., the Docker container that runs applications such as communication protocols) to implement data subscription and publishing;
[0073] The data center module stores important information such as real-time data, historical data, and model data, and interacts the data between the edge cluster and the edge device;
[0074] The management center module is deployed on the host and is responsible for container and application management.
[0075] Further, according to an embodiment of the present invention, the northbound protocol module always listens to the configured port and receives the handshake request from the client;
[0076] The northbound protocol module receives and parses edge cluster messages;
[0077] Data exchange is performed between the northbound protocol module and the management center module;
[0078] The northbound protocol module implements file data interaction between the edge cluster and the management center module;
[0079] The northbound protocol module obtains the real-time status of the container and the application in the container and controls them.
[0080] Furthermore, if Figure 2 As shown, according to one embodiment of the present invention, the northbound protocol module includes a main thread, a listening thread, a heartbeat thread and a task processing thread;
[0081] The task of the main thread is to initialize the program, including processing startup parameters, reading configuration files, and then creating channels according to the configuration. The flow chart is as follows Figure 3 As shown;
[0082] The listening thread checks the listening status every 15 seconds. The listening thread is started after the program environment is initialized. The polling interval is 1 second. The flow chart is as follows Figure 4 As shown;
[0083] The heartbeat thread processes tasks that need to be timed in the channel. Each channel starts a heartbeat thread. The tasks completed by the heartbeat thread include sending heartbeat messages, delaying system upgrades, and delaying application installation. The heartbeat thread is started after the channel is initialized, and the polling interval is 1s.
[0084] The task processing thread processes each ASDU task sent by the edge cluster. A task processing thread is started for each channel. The task processing thread is started after the channel initialization is completed, and the polling time is 5ms.
[0085] Furthermore, if Figure 5 As shown, according to one embodiment of the present invention, the MQTT message bus is used to communicate with the application to implement data subscription and publishing, including:
[0086] After receiving the published message, the MQTT message bus agent will route the message to the corresponding subscribing client according to the subscription relationship;
[0087] The message is routed to the subscribing client, the MQTT message bus agent passes the message to the client, and the client processes the received message;
[0088] When the client no longer needs to communicate with the MQTT message bus broker, it sends a disconnect request to end the connection with the MQTT message bus broker.
[0089] Further, according to an embodiment of the present invention, each application queries the data center module for required data model data through the message bus module;
[0090] The data center module is responsible for maintaining the current value of the device's measurement data and providing query services for the current value;
[0091] The data center module is responsible for maintaining the current value of the device's status data and providing query services for the current value and historical change records;
[0092] The data center module receives control messages from the service channel and control return messages from the application to achieve data interaction;
[0093] The data center module stores the current value of the collected data and provides corresponding query services.
[0094] Furthermore, if Figure 6 As shown, according to an embodiment of the present invention, real-time data, historical data, and important information of model data are stored, and the data of the edge cluster and the edge device are interacted, including:
[0095] The data center module receives the registered device information of the application, parses the model file, generates the corresponding device in real time in its memory, and sends a message to add a sub-device to the business channel (the business channel application is deployed on the host machine. The business channel belongs to the northbound communication service and is used to obtain data and models from the data center and upload them to the edge cluster. At the same time, it forwards commands such as control and maintenance of the edge cluster. The northbound protocol is divided into management channel and business channel, which are distinguished by port numbers.) On the contrary, if the application's unregistered device information is received, the corresponding configuration library and memory instance are deleted;
[0096] The data center module receives a message from the service channel or application to query device information, and retrieves the data from the memory and returns it;
[0097] The data center module receives real-time messages from applications, updates the data to the memory, and determines whether a sudden change needs to be sent up and whether the dead zone requirements are met. If so, the message is forwarded to the business channel.
[0098] The data center module receives the historical data storage message from the application and saves the data in the historical data table. If it receives the historical data reading message, it reads the data from the historical data table and returns it to the business channel.
[0099] The data center receives the control message of the service channel and forwards the message to the application;
[0100] When the data center receives all device data of a service under the subscription model of the business channel, it sets the subscription item of the model device in the memory to 1, updates the corresponding subscription requirements, updates all devices using the model, and updates the configuration library;
[0101] The data center module receives the fixed value query command from the business channel and forwards it to the application. After receiving the fixed value message replied by the application, it forwards it to the business channel and updates the fixed value table in the configuration library at the same time.
[0102] Further, according to an embodiment of the present invention, the management center module includes:
[0103] The communication module implements the communication function of the message bus module, receives requests from the message bus module, parses them and sends them to other modules for processing, and sends the returned result packages to the message bus module;
[0104] The file management module is responsible for the maintenance of log file paths and message lists;
[0105] The data management module maintains the database and adds, deletes, modifies, and checks the data in the container and application configuration tables.
[0106] Resource monitoring module, which monitors the resource usage of edge devices, containers, and applications and generates corresponding alarms and recovery signals;
[0107] The device management module implements edge device management requests, including device upgrade, device control, device information query, device configuration query and modification;
[0108] The container management module implements container management requests, including container installation, container control, container configuration query, device configuration query and modification, and container resource usage query;
[0109] The application management module implements the requirements of application management, including application installation, application control, application configuration query and modification, and application resource usage query.
[0110] Furthermore, if Figure 7 As shown, according to one embodiment of the present invention, the management center module is deployed on the host machine and is responsible for container and application management, including:
[0111] After the program of the management center module is started, an application object is first created, and then the application object searches for the number of containers and creates a container object;
[0112] The container object searches for the number of applications and creates the application object. The application information in the unstarted container cannot be obtained, and the application object is temporarily set to empty;
[0113] Read the sqlite3 database and update the configuration according to the corresponding data table. If the data table does not exist or the content is empty, the default configuration is used;
[0114] Establish communication between the management center module and the MQTT message bus, and subscribe to topic messages sent to the management center module;
[0115] When the communication module receives a message from the MQTT message bus, it parses the JSON message to generate a corresponding request, and sends it to the corresponding management module for processing according to the request type;
[0116] After the corresponding management module completes the processing, it returns the result to the communication module, and the communication module sends the JSON message to the bus;
[0117] After the program is started, the resource monitoring module scans the edge devices. When all containers and all applications are initialized, the resource usage of all containers and all applications is also scanned. Once the resource usage is abnormal, it is sent to the MQTT message bus through the communication module.
[0118] According to the above scheme of the present invention, firstly, edge computing sinks the data processing and analysis functions to the edge devices, reduces the dependence on cloud resources, and improves the efficiency and real-time performance of data processing. Secondly, data collection and transmission technology ensures that data is collected from the local power grid and safely transmitted to the edge cluster, identity authentication technology ensures the secure connection of devices, model interaction technology promotes data exchange between devices, and device discovery technology realizes automatic identification and connection of devices. The introduction of containerization technology enables edge devices to have plug-and-play characteristics, simplifies deployment and management processes, improves system flexibility and portability, and provides more efficient solutions for real-time data processing and management.
[0119] The present invention covers key technical fields such as the Internet of Things, edge computing, and data communications, and combines the advantages of containerization technology to bring new opportunities and challenges to the development of power system automation technology. By organically integrating various technologies, this method can effectively improve the performance and efficiency of edge IoT devices, promote the construction of smart grids, achieve higher levels of data collection, processing, and management, and inject new vitality and momentum into the development of the energy sector.
[0120] The present invention solves the shortcomings of existing new energy substations in terms of data processing, delay, security and resource utilization. By introducing the plug-and-play method of containerizing edge IoT devices, intelligent edge gateway devices can be deployed in new energy substations to realize local data processing and decision-making, thereby reducing data transmission delays and improving the real-time and response speed of the system. At the same time, the containerized design of edge IoT devices also enhances data security, and data can be encrypted and stored locally to reduce the risk of data being attacked during transmission. In addition, the containerization method of edge IoT devices also optimizes resource utilization efficiency. By pre-processing and screening data locally, it saves bandwidth and cloud resource utilization, and improves system efficiency and performance. Therefore, this invention brings more efficient, safer and smarter data processing and management methods to existing new energy substations, making up for the shortcomings of traditional gateways in many aspects.
[0121] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a containerized plug-and-play system for edge IoT devices, comprising:
[0122] The northbound protocol module is deployed on the edge gateway and communicates with the edge cluster through the northbound communication protocol to realize the management and control of the edge gateway by the edge cluster, and at the same time realize the function of the edge gateway transmitting information to the edge cluster;
[0123] The message bus module uses the MQTT message bus to communicate with applications to implement data subscription and publishing;
[0124] The data center module stores important information such as real-time data, historical data, and model data, and interacts the data between the edge cluster and the edge device;
[0125] The management center module is deployed on the host and is responsible for container and application management.
[0126] The edge IoT device containerized plug-and-play system of the present invention can implement the above-mentioned edge IoT device containerized plug-and-play method. The specific steps are the same as described above and will not be repeated here.
[0127] Finally, it should be noted that the above preferred embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail through the above preferred embodiments, those skilled in the art should understand that various changes can be made in form and details without departing from the scope defined by the claims of the present invention.
Claims
1. A containerized plug-and-play method for edge IoT devices, characterized in that: include: Deploy northbound protocol module, message bus module, data center module and management center module; The northbound protocol module is deployed on the edge gateway and communicates with the edge cluster through the northbound communication protocol to realize the management and control of the edge gateway by the edge cluster, and at the same time realize the function of the edge gateway transmitting information to the edge cluster; The message bus module uses the MQTT message bus to communicate with applications in the container to implement data subscription and publishing; The data center module stores important information such as real-time data, historical data, and model data, and interacts the data between the edge cluster and the edge device; The management center module is deployed on the host and is responsible for container and application management.
2. The containerized plug-and-play method for edge IoT devices according to claim 1, characterized in that: The northbound protocol module always monitors the configured port and receives the handshake request from the client; The northbound protocol module receives and parses the edge cluster message; The northbound protocol module and the management center module perform data interaction; The northbound protocol module implements file data interaction between the edge cluster and the management center module; The northbound protocol module obtains the real-time status of the container and the application in the container and controls them.
3. The containerized plug-and-play method for edge IoT devices according to claim 2, characterized in that: The northbound protocol module includes a main thread, a listening thread, a heartbeat thread and a task processing thread; The task of the main thread is to initialize the program, including processing startup parameters, reading configuration files, and then creating channels according to the configuration; The listening thread checks the listening status every 15 seconds. The listening thread is started after the program environment is initialized, and the polling interval is 1 second; The heartbeat thread processes tasks that need to be timed in the channel. Each channel opens a heartbeat thread. The tasks completed by the heartbeat thread include sending heartbeat messages, delaying system upgrades, and delaying application installation. The heartbeat thread is opened after the channel is initialized, and the polling interval is 1s; The task processing thread processes each ASDU task sent by the edge cluster. Each channel starts a task processing thread. The task processing thread is started after the channel initialization is completed. The polling time is 5ms.
4. The containerized plug-and-play method for edge IoT devices according to claim 1, characterized in that: The MQTT message bus is used to communicate with the application to implement data subscription and publishing, including: After the MQTT message bus agent receives the message published by the application, it will route the message to the corresponding subscribing client according to the subscription relationship; The message is routed to the subscribing client, the MQTT message bus agent passes the message to the client, and the client processes the received message; When the client no longer needs to communicate with the MQTT message bus broker, it sends a disconnect request to end the connection with the MQTT message bus broker.
5. The containerized plug-and-play method for edge IoT devices according to claim 1, characterized in that: Each application queries the data center module for required data model data through the message bus module; The data center module is responsible for maintaining the current value of the device's measurement data and providing a query service for the current value; The data center module is responsible for maintaining the current value of the device's status data and providing query services for the current value and historical change records; The data center module receives the control message of the service channel and the control return message of the application to realize data interaction; The data center module stores the current value of the collected data and provides corresponding query services.
6. The containerized plug-and-play method for edge IoT devices according to claim 5, characterized in that: The storage of real-time data, historical data, and model data, and the interaction of edge cluster and edge device data, include: The data center module receives the registered device information of the application, parses the model file, generates the corresponding device in its memory in real time, and sends a message of adding a sub-device to the business channel; conversely, if the application's unregistered device information is received, the corresponding configuration library and memory instance are deleted; The data center module receives a message from a service channel or application to query device information, and retrieves data from the memory and returns it; The data center module receives the real-time message from the application, updates the data to the memory, and determines whether a sudden change needs to be sent up and whether the dead zone requirements are met. If so, the message is forwarded to the service channel; The data center module receives the historical data storage message of the application and saves the data into the historical data table. If a historical data reading message is received, the data is read from the historical data table and returned to the service channel; The data center receives the control message of the service channel and forwards the message to the application; When the data center receives all device data of a service under the subscription model of the business channel, it sets the subscription item of the model device in the memory to 1, updates the corresponding subscription requirements, updates all devices using the model at the same time, and updates the configuration library; The data center module receives a fixed value query command from the business channel, forwards it to the application, and after receiving a fixed value message replied by the application, forwards it to the business channel, and simultaneously updates the fixed value table in the configuration library.
7. The containerized plug-and-play method for edge IoT devices according to claim 1, characterized in that: The management center module includes: The communication module implements the communication function of the message bus module, receives requests from the message bus module, parses them and sends them to other modules for processing, and sends the returned result packages to the message bus module; The file management module is responsible for the maintenance of log file paths and message lists; The data management module maintains the database and adds, deletes, modifies, and checks the data in the container and application configuration tables. Resource monitoring module, which monitors the resource usage of edge devices, containers, and applications and generates corresponding alarms and recovery signals; The device management module implements edge device management requests, including device upgrade, device control, device information query, device configuration query and modification; The container management module implements container management requests, including container installation, container control, container configuration query, device configuration query and modification, and container resource usage query; The application management module implements the requirements of application management, including application installation, application control, application configuration query and modification, and application resource usage query.
8. The containerized plug-and-play method for edge IoT devices according to claim 7, characterized in that: The management center module is deployed on the host machine and is responsible for container and application management, including: After the program of the management center module is started, an application object is first created, and then the application object searches for the number of containers and creates a container object; The container object searches for the number of applications and creates the application object. The application information in the unstarted container cannot be obtained, and the application object is temporarily set to empty; Read the sqlite3 database and update the configuration according to the corresponding data table. If the data table does not exist or the content is empty, the default configuration is used; Establish communication between the management center module and the MQTT message bus, and subscribe to topic messages sent to the management center module; When the communication module receives a message from the MQTT message bus, it parses the JSON message to generate a corresponding request, and sends it to the corresponding management module for processing according to the request type; After the corresponding management module completes the processing, it returns the result to the communication module, and the communication module sends the JSON message to the bus; After the program is started, the resource monitoring module scans the edge devices. When all containers and all applications are initialized, the resource usage of all containers and all applications is also scanned. Once the resource usage is abnormal, it is sent to the MQTT message bus through the communication module.
9. A containerized plug-and-play system for edge IoT devices, characterized in that: include: The northbound protocol module is deployed on the edge gateway and communicates with the edge cluster through the northbound communication protocol to realize the management and control of the edge gateway by the edge cluster, and at the same time realize the function of the edge gateway transmitting information to the edge cluster; The message bus module uses the MQTT message bus to communicate with applications in the container to implement data subscription and publishing; The data center module stores important information such as real-time data, historical data, and model data, and interacts the data between the edge cluster and the edge device; The management center module is deployed on the host and is responsible for container and application management.
Citation Information
Cited By
Multi-container communication method and system based on MQTT protocol
CN120416322A
Message interaction system suitable for contained deployment in regulation and control system
CN120692264A