Internet of Things edge computing gateway system with extensible architecture and method
By adopting microservice architecture and container technology in the IoT gateway, flexible connection and edge computing processing of different terminal devices and cloud platforms are realized, which solves the problems of poor scalability and tight coupling of software and hardware in the existing technology, and realizes Broad applicability and dynamic deployment capabilities.
Patent Information
- Application Number
- CN202410745338.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-11
AI Technical Summary
When faced with the diversity of terminal devices, processor architectures, cloud platforms, and edge computing business logic, existing IoT gateways have problems such as poor scalability, tight coupling of software and hardware, and inconvenient configuration and deployment, which leads to The scenario is single and it is difficult to dynamically adapt to different terminal devices and cloud platforms.
Adopt an IoT edge computing gateway system with a scalable architecture, including gateway software system and hardware system, using microservice architecture and container technology, and layered design into network access layer, device abstraction layer, custom logic layer and cloud connection layer , realize flexible connection and edge computing processing of different terminal devices and cloud platforms through container technology, and support dynamic deployment and configuration.
It achieves the wide applicability of the gateway and can connect devices with a variety of different communication protocols. It is suitable for smart factories, smart homes and other scenarios. It is scalable, supports dynamic configuration and modular deployment, and improves implementation efficiency and security. .
Smart Images

Figure CN118764340A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things application technology, and in particular to an Internet of Things edge computing gateway system and method with an extensible architecture. Background Art
[0002] The Internet of Things (IoT) refers to the connection of various physical devices, sensors, actuators, smart terminals, etc. (hereinafter referred to as terminal devices) through the Internet, wireless communication networks and other means to achieve information exchange, sharing and intelligent management. At present, IoT technology has been widely used in industry, agriculture, logistics, consumption and other fields. The National "14th Five-Year Plan" outline proposes to promote the comprehensive development of the Internet of Things, incorporate the Internet of Things into the seven major digital economy key industries, and make arrangements for the access capabilities of the Internet of Things and key field applications. According to the "The mobileeconomy 2020" report released by GSMA (Global System for Mobile Communications Association), the number of terminal devices connected to the Internet of Things in the world reached 12 billion in 2019. It is estimated that by 2025, the total number of connected terminal devices in the Internet of Things will reach 24.6 billion, with an annual compound growth rate of up to 13%.
[0003] However, not all terminal devices have the ability to connect to the Internet. For terminal devices that cannot access the Internet, they need to be transferred through an IoT gateway with Internet access capabilities. As a bridge, the IoT gateway receives data according to the terminal device's own communication protocol, and then uploads it to the cloud platform or server according to the access protocol of the cloud platform or remote server after protocol conversion. Or it receives instructions issued by the cloud platform, parses them, and sends them to the terminal device. In actual applications, the IoT gateway needs to face problems such as the diversity of terminal devices, the diversity of processor architectures and board-level resources used by the gateway, the diversity of IoT cloud platforms, and the diversity of edge computing business logic.
[0004] Microservice architecture and container technology have been widely used in the field of cloud computing, and also have good application prospects in the edge computing scenario of the Internet of Things. The microservice architecture splits the previous monolithic application into a series of independent services or modules. Each service represents a relatively independent business unit, and services communicate with each other and exchange data through predefined rules. In the microservice architecture, each software module can be developed, built, tested and deployed separately, and the modules are loosely coupled. Containers are lightweight virtualization tools that can package applications and their dependent resources in a unified manner. Containers have system resource space isolated from other applications on the host. Compared with traditional virtual machines, containers are more lightweight, occupy less resources, and are quick to deploy.
[0005] Currently, the IoT gateways on the market can only support the access of specific types of devices in terms of hardware. In terms of software, they are usually used as a converter for a specific protocol, developed for a specific data protocol, and can only upload data to a cloud platform. The applicable scenarios are single and do not support dynamic deployment of business logic. If the terminal device, protocol or business scenario changes, the gateway hardware, communication interface, gateway program, etc. need to be redeveloped and deployed, which has the disadvantages of long cycle, high difficulty and high cost. Summary of the invention
[0006] In view of the problems existing in the current Internet of Things gateways, such as poor scalability, tight coupling of software and hardware, and inconvenient configuration and deployment, the present invention proposes a gateway system and method with a scalable architecture.
[0007] The IoT edge computing gateway system with an extensible architecture described in the present invention includes a gateway software system and a gateway hardware system; the gateway hardware system includes a SoC chip and a plurality of communication interfaces connected to the SoC chip; the gateway software system runs on the SoC chip, and the terminal device is connected to the communication interface;
[0008] The gateway software system includes a network access layer, a device abstraction layer, a custom logic layer, a cloud connection layer, a message bus, and a database.
[0009] The network access layer encapsulates the application program interface that interacts with the hardware driver or communication protocol stack in the communication interface; the device abstraction layer realizes the connection and read and write operations with the terminal device by calling the application program interface of the network access layer;
[0010] The device abstraction layer, custom logic layer, and cloud connection layer are all composed of several different containers. Different containers of the device abstraction layer correspond to different terminal devices. Different containers of the custom logic layer are pre-set with different edge computing logics. Different containers of the cloud connection layer correspond to different cloud platforms, private servers or ports.
[0011] The container of the device abstraction layer is used to send the information generated by the corresponding terminal device to the message bus, and the information generated by the terminal device is one or more of the attributes, events and actions of the terminal device; the container of the custom logic layer is used to complete the edge computing processing of the messages in the message bus according to the set edge computing logic; the container of the cloud connection layer is used to upload the data processed by the custom logic layer to the corresponding cloud platform, private server or port, and is also used to receive the commands or requests issued by the corresponding cloud platform, private server or port and further issue them, and the further issued commands or requests are processed in the container of the device abstraction layer or the custom logic layer;
[0012] The message bus is used to implement communication between containers of different layers, and the database is used to store data processed by the custom logic layer.
[0013] Preferably, the communication interface includes an RS485 interface, a CAN interface, an Ethernet interface, a USB slot and a UART slot; the specific connection method of the terminal device connecting to the communication interface is: the terminal device using a wired communication method is connected to the RS485 interface, the CAN interface or the Ethernet interface, and the terminal device using a wireless communication protocol is connected to the USB slot or the UART slot through a wireless communication adapter.
[0014] Preferably, the messages on the message bus all have an MQTT topic, and the MQTT topic is uniformly composed of five fields in sequence: container name, channel name, device name, function description, and function identifier. The channel name indicates the communication protocol used by the device, and the function description indicates that the current message is an attribute, event or action of the terminal device. If the current message is an attribute of the terminal device, the function identifier indicates that the current message is a report or setting of the attribute. If the current message is an event or action of the terminal device, the function identifier indicates the name of the event or action.
[0015] Preferably, the containers in the gateway software system are all created through images, and the containers are bound to configuration files during creation, so that the containers created by the same image have different operating parameters; the configuration files are created through configuration file templates, and each terminal device connected to the gateway corresponds to a configuration file. Terminal devices using the same communication protocol use a common configuration file template, and the configuration file template contains configuration items for communication protocol parameters, and also contains configuration items for attribute, event or action variable sets, and the attribute, event or action variable set is a variable set that stores the attribute, event or action data of the terminal device; by modifying the specific values of the configuration items in the configuration file template, configuration files for different devices are created.
[0016] Based on the above-mentioned IoT edge computing gateway system with scalable architecture, the present invention further proposes a communication method, including:
[0017] Connect the terminal device to the communication interface; the container of the device abstraction layer obtains the information of the terminal device through the application program interface of the network access layer and sends it to the message bus; the container of the custom logic layer obtains the required terminal device information from the message bus according to the pre-set edge computing logic and performs edge computing processing; the processed data is stored in the database; the container of the cloud connection layer retrieves the processed data from the database and uploads it to the corresponding cloud platform, private server or port; at the same time, the container of the cloud connection layer also receives the commands or requests issued by the corresponding cloud platform, private server or port and sends them to the message bus; the container of the device abstraction layer or the custom logic layer receives and processes the messages in the message bus about the commands or requests issued by the cloud platform, private server or port.
[0018] Compared with the prior art, the technical effects of the present invention are:
[0019] 1. The gateway of the present invention has wide applicability and can connect devices with multiple different communication protocols to upload data to different cloud platforms. It can be applied to various application scenarios such as smart factories, smart homes, and smart agriculture, and realize end-to-end capabilities from data collection to processing to uploading.
[0020] 2. The gateway of the present invention is scalable. When connecting to a terminal device, the gateway can flexibly and dynamically configure the number of channels, and can adapt to different terminal devices and connect to different cloud platforms or remote servers without modifying the gateway program. By using container technology and microservice architecture, the gateway software can be partially added, deleted, and upgraded. Unlike traditional monolithic applications, the coupling between functional modules is very serious, and the calling logic between modules is fixed at the beginning of program writing, and when adding a new module, the entire system needs to be shut down, and then a new system program with new functions added is deployed and re-run to complete a functional expansion. Under the microservice architecture, the call between modules no longer uses the traditional function call method, but uses a lightweight communication protocol for service requests, so that the call logic between modules is not fixed. When adding a new service module to the system, the new service module only needs to support the communication protocol of the internal module, and then the module is deployed to the system without restarting the system.
[0021] 3. The container in the software system of the gateway of the present invention can be reused in many different application scenarios. After the developer builds the application image, multiple users can create containers with different operating parameters on this image. Build once and deliver multiple times. This improves implementation efficiency and reduces development workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the hardware system design of an embodiment of the present invention;
[0023] Figure 2 This is a schematic diagram of the microservice software architecture of the present invention;
[0024] Figure 3 It is a schematic diagram of an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will now be further described in detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the structures related to the present invention. The one or more embodiments of the present invention described below are merely one or more of the specific ways in which the technical solution of the present invention can be implemented, and are not exhaustive. It should be understood that other ways belonging to a general inventive concept can be used to implement the technical solution of the present invention, and should not be limited by the exemplary embodiments described. Based on one or more embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.
[0026] In view of the problems of poor scalability, tight coupling of software and hardware, and inconvenient configuration and deployment in the current IoT gateway, the present invention proposes a gateway system and method with an extensible architecture, which specifically includes three technical solutions, namely, a hardware system solution, a software system solution, and a configuration management system solution. The hardware system solution provides a design idea for a gateway core circuit board. The software system solution includes a microservice software architecture solution and an inter-service communication solution. The configuration management system solution enables users to configure and manage parameters of microservices running on the gateway.
[0027] (1) Gateway Hardware System Solution
[0028] The gateway hardware system solution can provide a unified access environment for various IoT devices. The gateway hardware design is divided into three parts: the main control processor minimum system, communication interface and auxiliary components.
[0029] The minimum system of the main control processor is a SoC chip that can run the Linux system (hereinafter referred to as the main control chip), as well as necessary storage modules and power modules. Currently, the commonly used communication protocols on the market are divided into two categories: wired and wireless. Wired communication mainly includes various field bus protocols and industrial Ethernet protocols, while wireless communication is diverse. In order to deal with the problem of diverse communication methods of terminal equipment, the following solutions are adopted:
[0030] For devices that use wired communication, the corresponding electrical interface is reserved on the gateway core board. After investigation, the three interfaces of RS485, CAN and Ethernet can support most mainstream wired communication protocols on the market at the physical layer. For example, the RS485 bus can be mounted with devices using protocols such as ModbusRTU (industry), ProfibusDP (industry), BACnet MS / TP (building), DALI (lighting), etc. The CAN bus can be mounted with devices using protocols such as CAN (automotive) and DeviceNet (industry), and Ethernet can be used as the underlying technology for communication protocols such as EtherNet / IP, Profinet, OPC UA, ModbusTCP, etc.
[0031] For devices that use wireless communication, the gateway hardware does not include specific wireless communication modules, but reserves a unified slot. After investigation, most wireless communication modules can be adapted to the host by bringing out the UART or USB interface. Therefore, multiple serial port slots and USB slots are reserved on the gateway core board. The main control chip uses the serial port or USB interface to connect to the corresponding wireless communication adapter, and then connects to the device using the wireless communication protocol through the adapter. In this way, users can select and insert different types of communication adapters as needed, so as to flexibly build a communication network. It also avoids the problem of mutual interference caused by the simultaneous existence of many wireless communication modules on the core board.
[0032] The auxiliary components are mainly serial port expansion chips, USB expansion chips and Ethernet switch chips. The above chips can increase the number of serial ports, USB ports and Ethernet ports to meet the simultaneous connection of multiple devices.
[0033] In summary, the hardware design of the gateway uses a unified interface and an optional communication adapter to achieve the connection problem of terminal devices with different communication protocols.
[0034] (2) Software system design plan
[0035] The software system adopts the design concept of microservices and uses container technology to manage and deploy applications. The microservice software architecture adopts a layered design, dividing gateway functions such as data collection, data processing, data storage, and data upload into different microservices, and each microservice is implemented by a container.
[0036] The bottom layer of the gateway software architecture is based on the Linux operating system and the container engine running on the system. It is divided into the network access layer, device abstraction layer, custom logic layer and cloud connection layer according to the functional level. In addition to these four layers, the gateway software architecture also includes message bus and database, such as Figure 2As shown. The message bus and database are each implemented by a container. The network access layer encapsulates the interface for interacting with the hardware driver or the underlying protocol stack, namely the API (Application Programming Interface), for upper-level applications to call. The device abstraction layer calls the API provided by the network access layer to implement operations such as connection, reading and writing with the terminal device. Each terminal device has a corresponding container in this layer. The function of a device can be described using three types of information: attributes, events, and actions. The meanings are shown in Table 1 below. Each container encapsulates one or more of the attributes, events, and actions of the device, and can convert the information into an MQTT message and publish it to the MQTT message bus. An MQTT message contains only one of the attributes, events, and actions.
[0037] Table 1: Meaning of attributes, events, and actions
[0038]
[0039] In the custom logic layer, users can receive messages from the device abstraction layer and complete the processing of terminal device attributes, events, and actions, such as data analysis, rule engines, data storage, data visualization, and other applications. The original data processed by the custom business logic can also be published to the message bus according to the specifications of attributes, events, and actions, so that other businesses can receive and process them, thus forming a data processing flow. Each business also corresponds to a container, so each business is isolated from each other and does not affect each other, and business logic can be dynamically added or deleted.
[0040] The cloud connection layer is responsible for uploading the final data processed by the custom logic layer to a port of the cloud platform or remote server according to the cloud platform's access protocol, and receiving commands and requests issued by the cloud platform. The access protocols of different cloud platforms are included in the corresponding pre-developed containers.
[0041] The communication between microservices uses the MQTT message bus that is independent of all applications. The messages on the MQTT message bus have MQTT topics. A microservice only needs to publish and subscribe to the topics it is interested in, and other microservices that have subscribed to the same topic can receive the message. In the solution described in this article, the design of the MQTT topic has a unified namespace inside the gateway. The unified namespace is a common naming hierarchy for MQTT topics. Each MQTT message sent to the message bus is unified into this structure, which enables devices and application services to communicate with each other without considering their original naming, location or protocol. It provides a consistent and standardized way to access data across multiple applications. The general naming hierarchy of MQTT topics is explained in Table 2 below, including five fields: container name, channel name, device name, function description, and function identifier. Each field is separated by " / ", for example, Device1 / ModBus / HumiditySensor / property / post, where Device1 is the container name, indicating that the message comes from the container Device1, ModBus indicates that the device uses the ModBus protocol, HumiditySensor is the device name, property indicates that this message is the property of the device, and post indicates that this message is for the device to report the property. A unique container is located by the container name, a unique terminal device is located by the channel name and device name, and a function of the device is located by the function description and function identifier.
[0042] Table 2: Explanation of the common naming hierarchy of MQTT topics
[0043]
[0044] According to the above hierarchical system, users can create microservices for data collection, data processing, data upload, etc. Each microservice consists of a container, and the flexible combination of many microservices completes the gateway's protocol conversion and edge computing functions. When new requirements arise, you only need to add the corresponding microservices and mount them to the message bus according to the communication specifications.
[0045] The gateway of the present invention has stronger reliability in software, and the application programs are isolated from each other and do not interfere with each other. This isolation can improve the security and stability of the application programs and prevent problems in one application from affecting other applications.
[0046] This software system does not rely on a specific language. For example, C language has high operating efficiency and can be used to develop data acquisition modules with high real-time requirements. For machine learning data analysis functions, Java, Python, etc. can be used for development. Each application is in its own independent operating space and only needs to communicate with each other based on a unified interface.
[0047] The software and hardware of the gateway are loosely coupled, and the gateway software is portable and can be easily ported to any processor running the Linux system and the Docker container engine, allowing developers to avoid repeated development work for different processor architectures.
[0048] (3) Configuration management system design
[0049] The configuration management system is responsible for configuring and managing the microservices running in the gateway. It can be divided into two aspects.
[0050] First, create, start, stop, update and other operations on microservices, and monitor the running status of microservices. The present invention uses the portainer container orchestration tool, which is divided into a host and a slave. The slave is installed on the gateway side, and the host can be installed in the cloud. Portainer provides a set of Web management pages to facilitate the management of containers.
[0051] The second is the configuration of microservice operating parameters. Microservices are implemented in the form of containers, which are created by images. The same image can create containers with different operating parameters. For example, for the access of the ModBusRTU protocol, developers only need to build an image. The image does not specify parameters such as serial port baud rate, device address, data type, etc. Instead, different operating parameters are achieved by binding configuration files when creating containers. For microservices that are already running, you can also modify the configuration files to modify the program functions.
[0052] Taking the smart home scenario as an example, the above solution is implemented as follows.
[0053] According to the hardware system architecture described above, select the appropriate chip to design the hardware system such as Figure 1 As shown. The main control chip is STM32MP157, which has a 32-bit dual-core ARM Cortex-A7 and a single-core Cortex-M4, a main frequency of 800MHz, and a built-in CAN controller and Ethernet MAC layer. The serial port expansion chip selects VK3224, which is connected to the main control chip through the SPI interface to expand one SPI port to 4 serial ports. The USB expansion chip selects FE2.1, which can expand one USB interface to 7. The Ethernet switching chip uses LAN9303, which is connected to the STM32MP157 MAC layer through the RMII interface, and can expand two Ethernet interfaces. The RS485 level converter selects SP3485, which is directly connected to the main control chip through the serial port. The CAN transceiver chip selects TJA1042, which is connected to the CAN controller interface of the main control chip. The schematic diagram is as follows Figure 1 shown.
[0054] Transplant the Linux Debian operating system on the main control chip, and download and install Docker. Then pull the Docker container image from the Docker remote repository. Taking the smart home scenario as an example, assume that the terminal devices are a humidity sensor and a humidifier, which are connected to the gateway through the ModBus protocol and low-power Bluetooth (BLE) respectively. The humidity sensor continuously collects environmental humidity information and uploads it to the cloud platform. When the humidity value is less than 20%, the humidifier needs to be turned on. You need to pull the following container images:
[0055] (1) Modbus device docking image, with a json type configuration file.
[0056] (2) BLE device docking image, with a .json type configuration file.
[0057] (3) The Alibaba Cloud platform docking image has a .txt type and a .json type configuration file.
[0058] (4) Official image of eKuiper rule engine.
[0059] (5)Official image of Influxdb time series database.
[0060] (6)Eclipse-mossquitto official image, which is the MQTT bus.
[0061] (7)Potainer official image, used for container management and monitoring.
[0062] Terminal equipment connection, connect the Modbus humidity sensor to the RS485 interface on the gateway with a wire. Then insert any USB WiFi adapter and USB Bluetooth adapter that supports the Linux system through the USB interface, connect to the router through the WiFi adapter, the router provides network connection for the gateway, and establish Bluetooth pairing and connection with the humidifier through the Bluetooth adapter.
[0063] After the hardware system is connected, create the software system. First, create a configuration management system using the Potainer official image. Then create containers corresponding to the MQTT bus and time series database on the management page.
[0064] Then, create a container of the device abstraction layer through the image. Two terminal devices correspond to two containers. Taking the humidity sensor as an example, it is created by the Modbus device docking image, and the configuration file is bound when it is created. The configuration file is modified from the configuration file template of the Modbus protocol. All configuration items in the configuration file are described in Table 3 below.
[0065] Table 3: Configuration file description of humidity sensor corresponding to container
[0066]
[0067]
[0068] The created container is named "Device1". By running the container, the humidity value of the sensor can be collected every 5 seconds and published to the MQTT message bus.
[0069] Next, create a custom logic layer container, including a rule engine. Created by the eKuiper official image, named RuleEngine. Create a rule in the rule engine to subscribe to the topic published by the humidity sensor corresponding container, obtain the humidity value information, and upload the humidity value to the time series database to determine whether the humidity value is less than 20%. If so, publish a message to the MQTT bus.
[0070] Finally, create a container for the cloud connection layer. Created by docking the Alibaba Cloud platform image, it is named cloud. It retrieves data from the time series database and uploads it to the Alibaba Cloud platform. The container has two configuration files, one txt file is responsible for querying data from the database according to the rules, and the other json file is responsible for providing parameters for connecting to the cloud platform.
[0071] After creating and configuring the above containers, the gateway can realize the requirements of the smart home scene. Figure 3 shown.
[0072] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. For ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. An IoT edge computing gateway system with a scalable architecture, It is characterized in that The gateway system is used to realize end-to-end communication between the terminal device and the cloud platform, private server or port, and the gateway system includes a gateway software system and a gateway hardware system; the gateway hardware system includes a SoC chip and several communication interfaces connected to the SoC chip; the gateway software system runs on the SoC chip, and the terminal device is connected to the communication interface; The gateway software system includes a network access layer, a device abstraction layer, a custom logic layer, a cloud connection layer, a message bus, and a database. The network access layer encapsulates the application program interface that interacts with the hardware driver or communication protocol stack in the communication interface; the device abstraction layer realizes the connection and read and write operations with the terminal device by calling the application program interface of the network access layer; The device abstraction layer, custom logic layer, and cloud connection layer are all composed of several different containers. Different containers of the device abstraction layer correspond to different terminal devices. Different containers of the custom logic layer are pre-set with different edge computing logics. Different containers of the cloud connection layer correspond to different cloud platforms, private servers or ports. The container of the device abstraction layer is used to send the information generated by the corresponding terminal device to the message bus, and the information generated by the terminal device is one or more of the attributes, events and actions of the terminal device; the container of the custom logic layer is used to complete the edge computing processing of the messages in the message bus according to the set edge computing logic; the container of the cloud connection layer is used to upload the data processed by the custom logic layer to the corresponding cloud platform, private server or port, and is also used to receive commands or requests issued by the cloud platform, private server or port and further issue them, and the further issued commands or requests are processed in the container of the device abstraction layer or the custom logic layer; The message bus is used to implement communication between containers of different layers, and the database is used to store data processed by the custom logic layer.
2. The IoT edge computing gateway system with scalable architecture according to claim 1, It is characterized in that The SoC chip is a SoC chip capable of running a Linux system.
3. The IoT edge computing gateway system with scalable architecture according to claim 1, It is characterized in that The communication interface includes an RS485 interface, a CAN interface, an Ethernet interface, a USB slot and a UART slot; the specific connection method of the terminal device connecting to the communication interface is: the terminal device using a wired communication method is connected to the RS485 interface, the CAN interface or the Ethernet interface, and the terminal device using a wireless communication protocol is connected to the USB slot or the UART slot through a wireless communication adapter.
4. The IoT edge computing gateway system with scalable architecture according to claim 1, It is characterized in that The gateway hardware system also includes auxiliary components, and the auxiliary components are used to implement the expansion of communication interfaces, thereby increasing the number of communication interfaces.
5. The IoT edge computing gateway system with scalable architecture according to claim 1, It is characterized in that The attributes of the terminal device are the operating status and collected data of the terminal device, the events of the terminal device are the information that the terminal device needs to be perceived and processed externally, and the actions of the terminal device are instructions for the terminal device to call externally.
6. The IoT edge computing gateway system with scalable architecture according to claim 1, It is characterized in that The container of the cloud connection layer adopts the access protocol of the corresponding cloud platform, private server or port according to the cloud platform, private server or port; the message bus adopts the MQTT protocol.
7. The IoT edge computing gateway system according to claim 1, It is characterized in that The messages on the message bus all have an MQTT topic, which is composed of five fields in sequence: container name, channel name, device name, function description, and function identifier. The channel name indicates the communication protocol used by the device, and the function description indicates that the current message is an attribute, event, or action of the terminal device. If the current message is an attribute of the terminal device, the function identifier indicates that the current message is a report or setting of the attribute. If the current message is an event or action of the terminal device, the function identifier indicates the name of the event or action.
8. The IoT edge computing gateway system with scalable architecture according to claim 1 or 7, It is characterized in that The sending of the information generated by the corresponding terminal device to the message bus specifically includes converting one or more of the attributes, events and actions of the terminal device into messages with MQTT topics and sending them to the message bus.
9. The IoT edge computing gateway system with scalable architecture according to claim 1, It is characterized in that The containers in the gateway software system are all created through images. When creating, the containers are bound to configuration files, so that the containers created by the same image have different operating parameters; the configuration files are created through configuration file templates, and each terminal device connected to the gateway corresponds to a configuration file. Terminal devices using the same communication protocol use a common configuration file template. The configuration file template contains configuration items of communication protocol parameters and configuration items of attribute, event or action variable sets. The attribute, event or action variable set is a variable set that stores the attribute, event or action data of the terminal device; by modifying the specific values of the configuration items in the configuration file template, configuration files for different devices are created.
10. A communication method based on the IoT edge computing gateway system with scalable architecture as claimed in claim 1, It is characterized in that The communication method comprises: Connect the terminal device to the communication interface; the container of the device abstraction layer obtains the information of the terminal device through the application program interface of the network access layer and sends it to the message bus; the container of the custom logic layer obtains the required terminal device information from the message bus according to the pre-set edge computing logic and performs edge computing processing; the processed data is stored in the database; the container of the cloud connection layer retrieves the processed data from the database and uploads it to the corresponding cloud platform, private server or port; at the same time, the container of the cloud connection layer also receives the commands or requests issued by the corresponding cloud platform, private server or port and sends them to the message bus; the container of the device abstraction layer or the custom logic layer receives and processes the messages in the message bus about the commands or requests issued by the cloud platform, private server or port.
Citation Information
Patent Citations
Edge computing gateway virtualization method based on Docker
CN111459605A
Universal method and device for accessing browser to peripheral
CN114253878A
Industrial object model based on middleware of Internet of Things and implementation method of industrial object model
CN114510219A
Application management method and device based on cloud native
CN115525396A
Internet-of-things equipment access method and system based on multi-protocol communication
CN116016717A
