IoT edge computing virtual smart box processing system and processing method

By introducing a virtual smart box processing system into the IoT edge computing smart box, including the virtual smart box core module, MQTT bus module, edge computing module, data reporting module and protocol configuration module, the performance limitations of the IoT edge computing smart box are solved. and difficult access problems, realizing fast matching and standardized services for multi-vendor access and data processing.

CN116016716BActive Publication Date: 2024-10-11KAITUO INFORMATION SYST
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211571950.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2024-10-11
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

The performance of existing IoT edge computing smart boxes is limited by device hardware, the types of devices that can be connected are limited, and the device access and data formats of different manufacturers are not unified, resulting in inconvenient connections between boxes and between boxes and the cloud, and cannot be expanded or updated. Multiple vendors, single scenarios, and difficult deployment.

Method used

Provides an Internet of Things edge computing virtual smart box processing system, including a virtual smart box core module, an MQTT bus module, an edge computing module, a data reporting module, a data configuration module and a protocol configuration module. It realizes multiple functions through system configuration files and protocol configuration files. Vendor access and data processing, support multiple message servers and communication methods, dynamic deployment and expansion.

Benefits of technology

It achieves rapid matching of multi-vendor access, data processing and message uploading, provides standardized network services, supports seamless connection of more business scenarios and edge deployment environments, and solves the access problem of new manufacturers and new equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016716B_ABST
    Figure CN116016716B_ABST
Patent Text Reader

Abstract

The present application discloses a method and system for realizing a virtual smart box for edge computing of the Internet of Things, which relates to the technical field of the Internet of Things. The core module of the virtual smart box is the main program entry of the system, which is used to load the system configuration file and schedule the operation of the remaining modules; the MQTT bus module is used to provide data bus services to the system and mount the message server; the data configuration module is used for system data loading and edge computing module to process edge data; the edge computing module is used to process edge data for the data sent down from the cloud and the collected instance data; the data reporting module is used to upload the data in the MQTT bus to the corresponding target server; the protocol configuration module encapsulates all protocol data of the smart box system support and collection embodiment; the instance collection module is used to schedule the edge device collection task according to the collection instance data of the system configuration file. The solution can be dynamically deployed and expanded according to the collection instance, solving the access problem of new manufacturers and new equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet of Things technology, and in particular to an Internet of Things edge computing virtual smart box processing system and processing method. Background Art

[0002] With the rapid development of social economy and the comprehensive application of information technology, IoT devices and applications are gradually integrated into all aspects of life. A large number of IoT devices are installed and used, and access-oriented data collection and edge computing technologies are developing rapidly, with devices changing with each passing day. There are various IoT edge computing virtual smart boxes on the market, including algorithm boxes, video boxes or directional access boxes. These smart boxes are used as IoT edge computing boxes to solve the functional subscription needs of different users.

[0003] However, in related technologies, the performance of most smart boxes is limited by device hardware, the types of devices that can be connected are restricted by protocols, different manufacturers require different access devices, and the format of collected and reported data is not unified. These problems lead to inconvenience in access between boxes and between boxes and the cloud. Moreover, under the limitations of the protocol, it is impossible to expand to more manufacturers, the scenario is single, and it is not easy to deploy. Summary of the invention

[0004] The embodiments of the present application provide an IoT edge computing virtual smart box processing system and method to solve the problems that conventional smart boxes cannot expand manufacturers, have a single scenario, and are difficult to deploy.

[0005] On the one hand, an Internet of Things edge computing virtual smart box processing system is provided, including a virtual smart box core module, an MQTT bus module, an edge computing module, a data reporting module, a data configuration module, a protocol configuration module and an instance collection module;

[0006] The virtual smart box core module is the main program entry of the system, which is used to load system configuration files and schedule the operation of other modules;

[0007] The MQTT bus module is used to provide data bus services to the system and mount several message servers;

[0008] The data configuration module has the system configuration file and the configuration information of the virtual smart box built in, which is used for system data loading and edge data processing by the edge computing module;

[0009] The edge computing module is used to perform edge data processing on the data sent from the cloud and the instance data collected; the data reporting module is used to establish a communication connection with the cloud server and upload the data in the MQTT bus to the corresponding target server according to the system configuration information;

[0010] The protocol configuration module encapsulates all protocol data of the smart box system support and collection implementation example; the instance collection module is used to schedule edge device collection tasks according to the collection instance data of the system configuration file.

[0011] Specifically, the virtual smart box core module is electrically connected to the data configuration module and the protocol configuration module, and runs in a virtual machine or a sandbox container, and reads the system configuration file in the data configuration module and the protocol data in the protocol configuration module when the system is running;

[0012] The system configuration file adopts a key-value pair or YAML format, and includes at least one of a virtual smart box unique identification ID, a virtual smart box scenario ID, an edge computing module configuration, a collection instance configuration, and a message server configuration; wherein the collection instance configuration includes at least one collection channel protocol configuration and one device protocol configuration.

[0013] Specifically, the MQTT bus module is electrically connected to the edge computing module, the instance collection module and the data reporting module respectively, and at least one of the activeMQ, rocketMQ and rabbitMQ services is mounted.

[0014] Specifically, the protocol configuration module includes a channel protocol package and a device protocol package; the channel protocol package encapsulates all manufacturer platforms and version information supported by the system, as well as the corresponding docking protocol; the device protocol package is attached to the channel protocol package, encapsulating a set of device protocols supported by the corresponding channel protocol, and a channel protocol is used to describe the corresponding platform version of the corresponding manufacturer.

[0015] Specifically, the data reporting module includes three communication modes: http, https, and mqtt. According to the configuration information set in the system configuration file, the data to be reported in the MQTT bus is sent to the target server.

[0016] On the other hand, a method for processing an edge computing virtual smart box of an Internet of Things is provided, the method comprising:

[0017] Start the smart box and run the virtual smart box core module in a virtual machine or sandbox container;

[0018] The virtual smart box core module reads and loads the system configuration file from the data configuration module;

[0019] Initialize the MQTT bus module, edge computing module and instance collection module, and start the corresponding MQTT bus service according to the system configuration file;

[0020] The instance collection module initializes one or more collection instances according to the collection instance configuration list, and each collection instance independently schedules the edge device corresponding to the channel protocol and device protocol to perform the collection task, writes the collected data to the MQTT bus, and performs protocol specification conversion;

[0021] The edge computing module receives the data converted by the protocol specification, performs edge computing processing, the processing rules are determined based on the data computing rules of the system configuration file, and writes the expected computing results into the MQTT bus;

[0022] The data reporting module subscribes to the data content to be reported from the MQTT bus, and sends it to the target server according to the corresponding target server and the specified reporting method.

[0023] Specifically, the MQTT bus module is mounted as activeMQ service by default.

[0024] Specifically, the collection instance configuration list of the system configuration file includes all supported collection instances, and each collection instance includes at least one collection channel protocol configuration and one device protocol configuration. The MQTT bus module, the edge computing module and the data configuration module perform data processing according to the selected collection instance and its corresponding device protocol package and channel protocol package.

[0025] The beneficial effects brought about by the technical solution provided by the present application include at least: adding a protocol configuration module and a data configuration module, which respectively have built-in protocol data and system configuration files of configured multi-vendor channels, so that when the instance acquisition module performs a specific acquisition task, it uses the configuration information according to the protocols of each module in the data configuration module to implement data processing, edge computing, message uploading and other tasks, and achieve fast matching access and provide standardized network services. In addition, the MQTT bus supports mounting multiple types of message servers, which can expand more business usage scenarios and edge deployment environments, and seamlessly connect to other manufacturers' edge computing boxes or platforms of the Internet of Things. The protocol data and configuration information of the protocol configuration module and the data configuration module can be dynamically deployed and expanded according to the acquisition instance to solve the access problem of new manufacturers and new equipment, thereby expanding more business usage scenarios and edge deployment environments, and seamlessly connecting to other manufacturers' edge computing boxes or platforms of the Internet of Things. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a structural diagram of the IoT edge computing virtual smart box processing system;

[0027] Figure 2 It is a flow chart of the processing method of the virtual smart box for edge computing of the Internet of Things;

[0028] Figure 3This is a flowchart of a virtual smart box provided by another embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0030] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0031] MQTT (Message Queuing Telemetry Transport) is a lightweight communication protocol based on the Publish / Subscribe model. The biggest advantage of MQTT is that it can provide real-time and reliable message services to remote devices with very little code and limited bandwidth. As an instant messaging protocol with low overhead and low bandwidth usage, MQTT is widely used in the Internet of Things, small devices, mobile applications, etc.

[0032] like Figure 1 The figure shows the structure diagram of the IoT edge computing virtual smart box processing system. It includes a virtual smart box core module, an MQTT bus module, an edge computing module, a data reporting module, a data configuration module, a protocol configuration module, and an instance acquisition module. The virtual smart box core module is the central processing unit module, which is the master control module of the smart box. The MQTT bus module is the core communication module of the smart box to realize the publish / subscribe message function between edge devices and IoT devices.

[0033] The virtual smart box core module is the main program entry of the smart box system. It supports running in a virtual machine or sandbox container, such as Docker. The task process is generally started automatically when the virtual machine or container is started. It initializes other system modules according to the loaded system configuration file and schedules the operation of other modules of the entire smart box. The system configuration file is read by the virtual smart box core module from the data configuration module. The virtual smart box core module is electrically connected to the data configuration module, the protocol configuration module, and the edge computing module, and initializes and schedules the operation process at startup.

[0034] The system configuration file is stored in key-value pairs or YAML format, including the virtual smart box unique identification ID, virtual smart box scenario ID, edge computing module configuration, collection instance configuration list, message server configuration, etc., and the system configuration file is updateable and configurable, and is updated when the virtual smart box needs to be expanded or connected to a new manufacturer.

[0035] The configuration of the edge computing module includes the model and processing algorithm used, processor model specifications, and some parameter configurations. The collection instance configuration list stores all the collection instances supported by the system, and each collection instance corresponds to a collection channel protocol configuration and a device protocol configuration. That is, it can perform specific tasks with specific edge devices, such as collecting data, receiving instructions, and notification subscriptions. The collection channel protocol configuration and device protocol configuration are configuration files for the protocol configuration package.

[0036] Considering that the existing smart boxes in the field of the Internet of Things are all single-instance collection instances, that is, they only execute single instance tasks, so there are no multi-channel and multi-vendor situations, so this solution adds a protocol configuration module, which is subdivided into channel protocol packages and device protocol packages. The channel protocol package encapsulates all the vendor platforms and version information supported by the system, as well as the corresponding docking protocol, while the device protocol package is attached to the channel protocol package, encapsulating the device protocol set supported by the corresponding channel protocol, and a channel protocol is used to describe the corresponding platform version of the corresponding vendor. In other words, the smart box also has built-in protocol information of multiple vendors and channels. The protocol information is used for normal communication between instance collection and the corresponding cloud server. The device protocol package is for specific collection devices. Different edge devices may perform different functions, and because the manufacturer's design follows specific protocol data, it is necessary to build a device protocol package in the protocol data module, so as to select the corresponding channel protocol and device protocol according to the configuration information in the collection instance configuration list to control the collection work of the edge device. In this way, when the instance collection module executes different collection instances, it can automatically complete the port communication with the corresponding target server according to the relevant configuration information and protocol information, and one collection instance can only correspond to one channel protocol, which is generally used to describe a platform instance of a certain vendor. When multiple collection instances are running, the system uses asynchronous parallel initialization for all collection instances. Each collection task in the collection instance is initialized in an independent thread and runs according to the configuration rules.

[0037] The MQTT bus module provides data bus services to the system and mounts message servers. The MQTT bus in this solution at least supports mounting services such as activeMQ, rocketMQ, and rabbitMQ, that is, mounting message servers of multiple vendor channels. The system initializes and mounts the activeMQ service by default to implement the client's message subscription and transmission services. For the specific collection instance tasks of the instance collection module, the device collection tasks of the corresponding channel (vendor platform) are independently scheduled, and the collected data is written to the MQTT bus, which performs protocol specification conversion based on the protocol package and configuration information.

[0038] The edge computing module is used to collect and analyze device data after protocol specification conversion. Its rule engine can perform operations according to the data calculation rules specified in the configuration file and write the expected calculation results to the MQTT bus. This step will sink some or all cloud tasks to the smart box. The box system will perform data processing tasks and feed back the processed data to the MQTT bus to facilitate the data upload module to send it to the target server.

[0039] like Figure 2 As shown, it is a flow chart of the method for processing the virtual smart box of IoT edge computing, which specifically includes the following steps:

[0040] S1, start the smart box and run the virtual smart box core module in a virtual machine or sandbox container.

[0041] S2, the virtual smart box core module reads and loads the system configuration file from the data configuration module.

[0042] S3, initialize the MQTT bus module, edge computing module and instance collection module to start the corresponding MQTT bus service according to the system configuration file.

[0043] S4, the instance collection module initializes one or more collection instances according to the collection instance configuration list, and each collection instance independently schedules the edge device corresponding to the channel protocol and device protocol to perform the collection task, writes the collected data to the MQTT bus, and performs protocol specification conversion.

[0044] This process is based on the instance started by the collection instance module. If the collection instance is not started, the edge computing module will not be started.

[0045] S5, the edge computing module receives the data converted according to the protocol specification and performs edge computing processing. The processing rules are based on the data calculation rules of the system configuration file to determine whether the expected calculation results will be written into the MQTT bus.

[0046] S6, the data reporting module subscribes to the data content to be reported from the MQTT bus, and sends it to the target server according to the corresponding target server and the specified reporting method.

[0047] After determining the collection instance, the system's message server (target server and its port) and message mounting method are also determined. After the edge processing module completes data processing, it is obtained and reported from the MQTT bus through the data reporting module. In addition, it also includes message communications that do not involve the edge processing module, including operations such as message subscription. The data that needs to be reported subscribed to from the MQTT bus is reported in a specified manner according to the message server configuration, including but not limited to supporting http, https, mqtt and other methods. When it is necessary to add manufacturer channels and expand the capacity of the smart box, it is only necessary to determine the manufacturer channel information of the additional collection instance, the supported protocol information, message server information and edge device protocol, etc., and associate them into the system configuration module and the protocol configuration module to achieve targeted data reporting and message subscription.

[0048] In summary, this solution adds a protocol configuration module and a data configuration module, which respectively have built-in protocol data and system configuration files of configured multi-vendor channels; the vendor platform, version information and docking protocol encapsulated in the specific channel protocol package, and the device protocol set supported by the corresponding channel protocol encapsulated in the device protocol package, so that when the instance acquisition module performs a specific acquisition task, it can perform data acquisition, data processing, edge computing and message upload tasks according to the acquisition channel configuration, device protocol configuration, edge computing module configuration and message server configuration in the data configuration module, so as to achieve rapid access and provide standardized services. When a new acquisition instance needs to be added, it is only necessary to add the channel protocol and device protocol package, as well as the message server and edge computing module configuration to the data configuration module and the protocol configuration module to realize the dynamic deployment of the box and solve the access problem of new manufacturers and new devices. In addition, the MQTT bus supports mounting multiple types of message servers, which can expand more business usage scenarios and edge deployment environments, and seamlessly connect to other manufacturers' IoT edge computing boxes or platforms.

[0049] The preferred embodiments of the present invention are described above; it should be understood that the present invention is not limited to the above-mentioned specific embodiments, and the devices and structures not described in detail should be understood to be implemented in a common manner in the art; any technician familiar with the art can make many possible changes and modifications without departing from the technical solution of the present invention, or modify them into equivalent embodiments with equivalent changes, which does not affect the essential content of the present invention; therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of protection of the technical solution of the present invention.

Claims

1. An IoT edge computing virtual smart box processing system, characterized in that: It includes virtual smart box core module, MQTT bus module, edge computing module, data reporting module, data configuration module, protocol configuration module and instance collection module; The virtual smart box core module is the main program entry of the system, which is used to load system configuration files and schedule the operation of other modules; The MQTT bus module is used to provide data bus services to the system and mount several message servers; The data configuration module has the system configuration file and the configuration information of the virtual smart box built in, which is used for system data loading and edge data processing by the edge computing module; The edge computing module is used to perform edge data processing on the data sent from the cloud and the instance data collected; the data reporting module is used to establish a communication connection with the cloud server and upload the data in the MQTT bus to the corresponding target server according to the system configuration information; The protocol configuration module encapsulates all protocol data supported by the smart box system and the collected instances; the instance collection module is used to schedule edge device collection tasks according to the collected instance data of the system configuration file; The virtual smart box core module is electrically connected to the data configuration module and the protocol configuration module, and runs in a virtual machine or a sandbox container, and reads the system configuration file in the data configuration module and the protocol data in the protocol configuration module when the system is running; The system configuration file adopts a key-value pair or YAML format, and includes at least one of a virtual smart box unique identification ID, a virtual smart box scenario ID, an edge computing module configuration, a collection instance configuration list, and a message server configuration; wherein the collection instance configuration list includes at least one collection channel protocol configuration and one device protocol configuration; The protocol configuration module includes a channel protocol package and a device protocol package; the channel protocol package encapsulates all manufacturer platforms and version information supported by the system, as well as the corresponding docking protocol; the device protocol package is attached to the channel protocol package, encapsulating a set of device protocols supported by the corresponding channel protocol, and a channel protocol is used to describe the corresponding platform version of the corresponding manufacturer.

2. The intelligent box processing system according to claim 1, characterized in that: The MQTT bus module is electrically connected to the edge computing module, the instance collection module and the data reporting module respectively, and is mounted with at least one of activeMQ, rocketMQ and rabbitMQ services.

3. The intelligent box processing system according to claim 1, characterized in that: The data reporting module includes three communication modes: http, https, and mqtt. According to the configuration information set in the system configuration file, the data that needs to be reported in the MQTT bus is sent to the target server.

4. A method for processing a virtual smart box for edge computing of the Internet of Things, applied to the smart box processing system described in any one of claims 1 to 3, characterized in that: The method comprises: Start the smart box and run the virtual smart box core module in a virtual machine or sandbox container; The virtual smart box core module reads and loads the system configuration file from the data configuration module; Initialize the MQTT bus module, edge computing module and instance collection module, and start the corresponding MQTT bus service according to the system configuration file; The instance collection module initializes one or more collection instances according to the collection instance configuration list, and each collection instance independently schedules the edge device corresponding to the channel protocol and device protocol to perform the collection task, writes the collected data to the MQTT bus, and performs protocol specification conversion; The edge computing module receives the data converted by the protocol specification, performs edge computing processing, the processing rules are determined based on the data computing rules of the system configuration file, and writes the expected computing results into the MQTT bus; The data reporting module subscribes to the data content to be reported from the MQTT bus, and sends it to the target server according to the corresponding target server and the specified reporting method; The MQTT bus module is mounted as activeMQ service by default; The collection instance configuration list of the system configuration file includes all supported collection instances, and each collection instance includes at least one collection channel protocol configuration and one device protocol configuration. The MQTT bus module, the edge computing module and the data configuration module perform data processing according to the selected collection instance and its corresponding device protocol package and channel protocol package.

Citation Information

Patent Citations

  • Edge Internet of Things proxy method applied to electric power Internet of Things

    CN112261080A

  • Edge computing message synchronization method and device, electronic equipment and storage medium

    CN112769897A

  • Blockchain payment channels with trusted execution environments

    US20190095879A1

  • Intelligent device communication platform based on MQTT message protocol

    WO2019205907A1