Industrial Internet of Things gateway implementation method and system supporting message separation

By adopting message separation technology in the industrial Internet of Things gateway, using the distinction between control and data message channels and the processing of virtual device modules, the communication blockage problem is solved, ensuring the normal operation of industrial production and data processing efficiency.

CN119299257APending Publication Date: 2025-01-10ANHUI UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411347938.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

When existing industrial IoT gateways process large amounts of heterogeneous data and remote control instructions, they can easily lead to communication blockage, resulting in failure alarms and control messages that cannot be transmitted in time, affecting industrial production.

Method used

Using message separation method, the control class processing channel and data class message channel are processed, and control class messages are transmitted first, ensuring the timely transmission of fault alarms and remote control messages, and the classification of messages is realized through the virtual device module and the message cache module. Cache processing.

Benefits of technology

It improves data processing efficiency, ensures timely delivery of control messages, avoids communication blockage, and ensures the normal operation of industrial production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299257A_ABST
    Figure CN119299257A_ABST
Patent Text Reader

Abstract

The invention provides an industrial Internet of Things gateway implementation method and system supporting message separation, and the method comprises the steps: receiving a message of a transmitting end, and recognizing the message as a control type message or a data type message; transmitting the message to a control type processing channel or a data type message channel for processing; the processing process of the control type processing channel or the data type message channel comprises the steps that the virtual device module writes a message into the message cache module, and the virtual device module or the APP communication module reads the message in the message cache module and sends the message to a destination end; the processing process of the data type message channel further comprises the following steps: in the process of sending the message to the destination end, judging whether the control type processing channel has the message to be sent at the same time, if so, waiting for the completion of the message transmission of the control type processing channel, and then transmitting the message of the channel. According to the scheme, data processing can be performed through two channels, and the data processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial gateways, and in particular to an industrial Internet of Things gateway implementation method and system supporting message separation. Background Art

[0002] Currently, more and more industrial equipment are endowed with IoT connectivity. By connecting to the IIoT, industrial production efficiency and intelligence are improved. Various industrial equipment are connected to the IIoT via IIoT gateways to achieve communication with industrial cloud apps remotely deployed in the network. The communication content between industrial equipment and industrial cloud apps mainly includes: perception data collected by various sensors of industrial equipment, fault alarms in industrial equipment, and remote control commands of industrial cloud apps to industrial equipment.

[0003] With the widespread application of new-generation information technologies such as cloud computing, big data, and artificial intelligence, and the need for high-quality industrial development, the industry has placed greater emphasis on human-machine collaboration, sustainability, and personalized production methods. The Industrial Internet of Things presents the following development characteristics: (1) The number of industrial equipment connected is increasing, and each device is equipped with more and more sensors, which means that the amount of data that the Industrial Internet of Things gateway needs to process is also increasing. (2) Industrial application software is increasingly deployed in the cloud, and remote control is essential. (3) With the promotion of personalized manufacturing, industrial equipment will frequently receive remote control commands. These development characteristics require the Industrial Internet of Things gateway to collect and report massive amounts of heterogeneous data on the one hand, and to be able to report faults and issue a large number of remote control commands in real time and quickly on the other.

[0004] However, although the existing industrial IoT gateway can achieve unified access and data exchange for a variety of heterogeneous industrial equipment, the communication between industrial equipment and industrial cloud apps still uses a single communication channel to complete the message exchange and serial processing of the communication content. With the rapid increase in the amount of communication data between industrial equipment and industrial cloud apps, the massive amount of perception data can almost occupy the entire communication channel and even cause communication congestion. This will cause fault alarms and remote control control messages to fail to be delivered in a timely manner, and industrial production cannot proceed normally. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides an industrial Internet of Things gateway implementation method that supports message separation to eliminate or improve one or more defects existing in the prior art.

[0006] One aspect of the present invention provides an industrial Internet of Things gateway implementation method supporting message separation, the method comprising the steps of:

[0007] Receive a message from a sender, and identify the message through a message classification module to identify the message as a control message or a data message;

[0008] Transmitting the message to a control processing channel or a data message channel for processing;

[0009] The processing process of the control processing channel or the data message channel includes:

[0010] The virtual device module writes the message into the message cache module, the virtual device module or the APP communication module reads the message in the message cache module, and sends the message to the destination end;

[0011] The processing process of the data message channel also includes, in the process of sending a message to the destination, determining whether there is a message to be sent on the control processing channel at the same time, and if so, waiting for the message of the control processing channel to be transmitted before transmitting the message of this channel.

[0012] The above scheme is adopted. This scheme is different from the traditional method of completing the message exchange of communication content through a single communication channel. A control processing channel or a data message channel is set up, and data processing can be performed through dual channels to improve data processing efficiency. On the other hand, in the processing process of the data message channel of this scheme, by determining whether there are messages to be sent on the control processing channel at the same time, the control messages are sent first, thereby ensuring the timely transmission of control messages such as fault alarms and remote control, and ensuring the normal progress of industrial production.

[0013] In some embodiments of the present invention, if the sending end is an industrial cloud APP and the receiving end is an industrial device, then in the step of receiving the message from the sending end and identifying the message through the message classification module to identify the message as a control message or a data message, the message of the industrial cloud APP is received through the APP communication module, and the message is identified through the message classification module to identify the message as a control message or a data message; if the sending end is an industrial device and the receiving end is an industrial cloud APP, then in the step of receiving the message from the sending end and identifying the message through the message classification module to identify the message as a control message or a data message, the message of the industrial cloud APP is received through the virtual device module, and the message is identified through the message classification module to identify the message as a control message or a data message.

[0014] In some embodiments of the present invention, in the steps of receiving a message of the industrial cloud APP through the APP communication module and identifying the message through the message classification module or receiving a message of the industrial cloud APP through the virtual device module and identifying the message, a message tag in the message is identified, and the message is identified based on the message tag.

[0015] In some embodiments of the present invention, if the sending end is an industrial cloud APP and the receiving end is an industrial device, in the step of transmitting the message to a control processing channel or a data message channel for processing:

[0016] The APP communication module sends the message to the virtual device module and writes the message into the cache;

[0017] The virtual device module reads the cached message and sends it to the industrial device.

[0018] In some embodiments of the present invention, if the sending end is an industrial device and the receiving end is an industrial cloud APP, in the step of transmitting the message to a control processing channel or a data message channel for processing:

[0019] The virtual device module writes the message into the cache;

[0020] The APP communication module reads the cached messages and sends them to the industrial cloud APP.

[0021] In some embodiments of the present invention, in the step where the APP communication module sends a message to the virtual device module and writes the message into the cache or the virtual device module writes the message into the cache, the message is converted into a message format and then written into the cache.

[0022] In some embodiments of the present invention, the steps of the method include: based on a preset instruction prediction module, the instruction prediction module collects multiple historical control messages for the same industrial equipment, matches the message code corresponding to each control message, combines multiple message codes, and inputs them into a pre-trained prediction model to obtain a predicted message code, and caches the control message corresponding to the predicted message code as a preliminary instruction in the message cache module.

[0023] In some embodiments of the present invention, if the sending end is an industrial cloud APP and the receiving end is an industrial device, during the processing of the control processing channel, if the APP communication module identifies the message as a control message, the control message is matched with the preliminary instructions. If the match is successful, the virtual device module directly reads the cached preliminary instructions and sends them to the industrial device.

[0024] A second aspect of the present invention further provides an industrial Internet of Things gateway system supporting message separation, the system comprising an APP communication module, a virtual device module and a message cache module;

[0025] The APP communication module or the virtual device module receives the message from the sender, and identifies the message through the message classification module to identify the message as a control message or a data message;

[0026] Transmitting the message to a control processing channel or a data message channel for processing;

[0027] The processing process of the control processing channel or the data message channel includes:

[0028] The virtual device module writes the message into the message cache module, the virtual device module or the APP communication module reads the message in the message cache module, and sends the message to the destination end;

[0029] The processing process of the data message channel also includes, in the process of sending a message to the destination, determining whether there is a message to be sent on the control processing channel at the same time, and if so, waiting for the message of the control processing channel to be transmitted before transmitting the message of this channel.

[0030] In some embodiments of the present invention, the system also includes an instruction prediction module, which collects multiple historical control messages for the same industrial equipment, matches the message code corresponding to each control message, combines multiple message codes, and inputs them into a pre-trained prediction model to obtain a predicted message code, and caches the control message corresponding to the predicted message code as a preliminary instruction in the message cache module; if the sending end is an industrial cloud APP and the receiving end is an industrial device, during the processing of the control processing channel, if the APP communication module identifies the message as a control message, the control message is matched with the preliminary instruction. If the match is successful, the virtual device module directly reads the cached preliminary instruction and sends it to the industrial device.

[0031] The third aspect of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps implemented by the aforementioned method for implementing an industrial Internet of Things gateway that supports message separation.

[0032] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention can be specifically pointed out and obtained in the specification and the accompanying drawings.

[0033] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.

[0035] Figure 1 A schematic diagram of an implementation method of an industrial Internet of Things gateway supporting message separation according to the present invention;

[0036] Figure 2 It is a schematic diagram of the architecture of the present invention;

[0037] Figure 3 This is a schematic diagram of the implementation of the present invention when the sending end is an industrial device and the receiving end is an industrial cloud APP;

[0038] Figure 4 This is a schematic diagram of an implementation of the present invention when the sending end is an industrial cloud APP and the receiving end is an industrial device. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0040] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0041] like Figure 1 and 2 As shown, the present invention proposes an industrial Internet of Things gateway implementation method supporting message separation, the steps of the method comprising:

[0042] Step S100, receiving a message from a sender, and identifying the message through a message classification module to identify the message as a control message or a data message;

[0043] During the specific implementation process, the message classification module is responsible for managing the message configuration files corresponding to each industrial device and defining the message types.

[0044] In the specific implementation process, the message classification module realizes the following functions:

[0045] (1) Manage the message configuration files of all connected industrial devices, including adding, deleting, modifying and searching configuration files.

[0046] (2) The message configuration file of each industrial device defines the category of each message and the message format requirements of different industrial cloud apps. Each line of data in the file represents the configuration of a message, including device identification, message identification, and message type. Among them, the message type indicates whether the message is control-type or data-type. For example, for a robotic arm device, the motor temperature message sent by the robotic arm can be marked as a data-type message, the position parameter messages of each axis received by the robotic arm can be marked as control-type messages, and the fault message sent by the robotic arm can be marked as control-type information. It supports setting the default message type. The setting principle is that all messages sent by industrial devices to the gateway are marked as data-type, and all messages sent by the gateway to industrial devices are marked as control-type.

[0047] Step S200, transmitting the message to a control processing channel or a data message channel for processing;

[0048] The processing process of the control processing channel or the data message channel includes:

[0049] Step S300: The virtual device module writes the message into the message cache module, and the virtual device module or the APP communication module reads the message in the message cache module and sends the message to the destination end;

[0050] During the specific implementation process, the virtual device management module is responsible for managing the virtual device modules that correspond one-to-one to the real industrial equipment. It is the main module for realizing message exchange with industrial equipment, completing operations such as message reception, message classification, communication protocol parsing and conversion, and message sending.

[0051] The virtual device module includes functions such as industrial device docking, message format conversion, control message cache, and data message cache. The industrial device docking function realizes the communication between the gateway and industrial equipment, supports the development toolkits based on various industrial communication protocols to realize the parsing of mainstream industrial communication protocols such as modbus protocol, OPC UA protocol and Siemens S7 protocol, supports the reception of various messages, and supports the sending of control messages according to priority. The message format conversion function supports the conversion of the data format of the message to other formats, such as converting the message data format under the modbus protocol on the industrial equipment side to the corresponding data format of the OPC UA protocol. The control message cache function and the data cache function can store the control messages and data messages that have been received but not yet sent in the message format on the industrial equipment side.

[0052] The virtual device management module implements the following functions:

[0053] (1) Manage all virtual devices. One virtual device corresponds to one real industrial device. Adding and deleting virtual devices is supported.

[0054] (2) To add a virtual device, you need to complete the following operations, including:

[0055] (2-1) Setting the industrial communication protocol and communication parameters and writing them into the virtual device configuration file, such as the protocol type, communication link type, IP address and port, etc., and writing them into the virtual device configuration file;

[0056] (2-2) Set the data format used by the virtual device message when it is transmitted between the industrial gateway and the industrial cloud APP, and write it into the virtual device configuration file. If no format conversion is performed, set it to transparent transmission; if format conversion is performed, set the converted format, such as OPC UA.

[0057] (2-3) Add a message configuration file associated with the virtual device in the message classification module, and write the file name and path into the virtual device configuration file.

[0058] (2-4) Add control and data message communication addresses related to the virtual device in the APP communication module and write them into the virtual device configuration file.

[0059] (2-4) Initialize the virtual device module corresponding to the virtual device, establish control and data message cache space, establish the connection between the virtual device module and the real industrial equipment, and start the service process related to the virtual device module.

[0060] (3) Deleting a virtual device requires completing the following operations, including:

[0061] (3-1) Stop the connection with the real industrial equipment and stop the communication connection related to the virtual equipment in the APP communication module;

[0062] (3-2) Delete the message configuration file corresponding to the message classification module and delete the virtual device configuration file;

[0063] (3-3) Stop the service process related to the virtual device module corresponding to the virtual device.

[0064] The virtual device module implements the following functions:

[0065] (1) The virtual device module includes industrial equipment docking, message format conversion, control message caching, and data message caching functions.

[0066] (2) The industrial equipment docking function implements the reception and transmission of messages between real industrial equipment according to the industrial communication protocol. It supports the classification of received messages according to the message classification profile. It supports the priority sending of control messages to industrial equipment.

[0067] (3) The message format conversion function converts messages from real industrial devices into the specified data format according to the message format specified in the virtual device configuration file, and converts messages with the specified format from the APP communication module into the data format required by the real industrial device.

[0068] (4) The control message cache function is responsible for storing the control messages to be sent from real industrial devices in the message data format specified in the virtual device configuration file, and storing the control messages to be sent from each industrial cloud APP in the real industrial device message data format.

[0069] The following describes the two core processes of the gateway, which include: industrial equipment sending messages to each industrial cloud app via the gateway, and each industrial cloud app sending messages to industrial equipment via the gateway.

[0070] In some embodiments of the present invention, the processing process of the data message channel also includes, in the process of sending a message to the destination, determining whether there is a message to be sent on the control processing channel at the same time. If so, waiting for the message on the control processing channel to be transmitted before transmitting the message of this channel.

[0071] In the specific implementation process, this solution is applied to the industrial Internet of Things gateway, which is connected to the industrial cloud APP and industrial equipment, forwards the messages transmitted between the industrial cloud APP and industrial equipment, and supports the communication between industrial equipment and the industrial cloud APP. The industrial Internet of Things gateway used in this solution supports docking with devices using different industrial communication protocols, including modbus protocol, OPC UA protocol and Siemens S7 protocol. The gateway and the industrial cloud APP are usually interconnected based on a wide area network, and support communication through protocols such as MQTT and HTTP REST.

[0072] This solution divides the communication between industrial equipment and industrial cloud APP into data message plane and control message plane. Based on the software-defined idea, virtual data message channel and control message channel are established on the basis of physical communication channel. Through differentiated processing of data messages and control messages, different communication requirements of different types of messages in terms of communication timeliness and security are met.

[0073] The above scheme is adopted. This scheme is different from the traditional method of completing the message exchange of communication content through a single communication channel. A control processing channel or a data message channel is set up, and data processing can be performed through dual channels to improve data processing efficiency. On the other hand, in the processing process of the data message channel of this scheme, by determining whether there are messages to be sent on the control processing channel at the same time, the control messages are sent first, thereby ensuring the timely transmission of control messages such as fault alarms and remote control, and ensuring the normal progress of industrial production.

[0074] The communication messages between industrial equipment and industrial cloud APP in this solution include various types of industrial equipment side monitoring data reporting and industrial cloud APP side remote control command issuance. Different messages have different characteristics, and the requirements for message transmission throughput, real-time, and security are also different. This solution divides the messages between industrial equipment and industrial cloud APP into two categories: control and data. Most of the data messages are monitoring data information sent by industrial equipment to industrial cloud APP, such as data collected by industrial equipment sensors. The data volume is large, and the message transmission throughput requirements are high, but the real-time and security requirements for message transmission are relatively low. Most of the control messages are remote control information sent by industrial cloud APP to industrial equipment. The data volume is small, and the message transmission throughput requirements are low, but the real-time and security requirements for message transmission are relatively high. The core design idea of ​​this solution is to achieve differentiated communication through independent reception, conversion, and sending processing of control and data messages. The advantage of this design is that it can avoid the high-throughput data message transmission that causes the control message to be unable to be transmitted in time, and can meet the different transmission requirements of the two types of messages.

[0075] like Figure 3 and 4 As shown, in some embodiments of the present invention, if the sending end is an industrial cloud APP and the receiving end is an industrial device, then in the step of receiving the message from the sending end and identifying the message through the message classification module, identifying the message as a control message or a data message, the message of the industrial cloud APP is received through the APP communication module, and the message is identified through the message classification module, and the message is identified as a control message or a data message; if the sending end is an industrial device and the receiving end is an industrial cloud APP, then in the step of receiving the message from the sending end and identifying the message through the message classification module, identifying the message as a control message or a data message, the message of the industrial cloud APP is received through the virtual device module, and the message is identified through the message classification module, and the message is identified as a control message or a data message.

[0076] In some embodiments of the present invention, in the steps of receiving a message of the industrial cloud APP through the APP communication module and identifying the message through the message classification module or receiving a message of the industrial cloud APP through the virtual device module and identifying the message, a message tag in the message is identified, and the message is identified based on the message tag.

[0077] In some embodiments of the present invention, the message tag is set at a predetermined position in the message, and the predetermined position may be the head or the tail.

[0078] During the specific implementation process, the APP communication module is responsible for managing the communication with each industrial cloud APP. It uses the control and data message communication channels to forward the two types of messages from each industrial cloud APP to each virtual device module according to the device identification, and forwards the two types of messages from each virtual device module to each industrial cloud APP.

[0079] The APP communication module implements the following functions:

[0080] (1) Set the control and data message communication protocols and parameters, and write them into the industrial cloud APP communication configuration file. Support default settings. Under the default settings, both control and data message communications use the MQTT protocol. To ensure the reliability and security of control message transmission, the MQTT QoS level used by control messages is QoS2, that is, a mechanism that ensures that the message is received once. To ensure the throughput of data message transmission, the MQTT QoS level used by data messages defaults to QoS0, that is, a mechanism that sends messages at most once.

[0081] (2) According to the industrial cloud APP communication configuration file, initialize the control and data message receiving service processes. If the communication protocol is the MQTT protocol, initialize the MQTT client to subscribe to messages from each industrial cloud APP. If the communication protocol is the HTTP rest protocol, initialize the HTTP service to receive messages from each industrial cloud APP, and initialize the HTTP rest message sender to send messages to the industrial cloud APP according to the different HTTP rest protocol message receiving addresses of each industrial cloud APP.

[0082] (3) When the newly added industrial cloud APP adopts the HTTP rest protocol to receive messages, the industrial cloud APP identifier and communication parameters are written into the configuration file, and the HTTP rest message sender is initialized.

[0083] (4) When the industrial cloud APP cancels the use of the HTTP rest protocol to receive messages, the relevant configuration information of the industrial cloud APP is removed from the configuration file, and the corresponding HTTP rest message sender is closed.

[0084] (5) Use an independent thread to cyclically read the messages to be sent in the control message cache of all virtual device modules in a polling manner, and send the messages to each industrial cloud APP.

[0085] (6) Using an independent thread, in a polling manner, cyclically read the messages to be sent in the data message cache of all virtual device modules, and send the messages to each industrial cloud APP.

[0086] (7) The messages received by the control communication channel are sent to the control message caches of different virtual device modules according to the device identifiers.

[0087] (8) The messages received by the data communication channel are sent to the data message caches of different virtual device modules according to the device identifiers.

[0088] like Figure 4 As shown, in some embodiments of the present invention, if the sending end is an industrial cloud APP and the receiving end is an industrial device, in the step of transmitting the message to a control processing channel or a data message channel for processing:

[0089] The APP communication module sends the message to the virtual device module and writes the message into the cache;

[0090] The virtual device module reads the cached message and sends it to the industrial device.

[0091] like Figure 3 As shown, in some embodiments of the present invention, if the sending end is an industrial device and the receiving end is an industrial cloud APP, in the step of transmitting the message to a control processing channel or a data message channel for processing:

[0092] The virtual device module writes the message into the cache;

[0093] The APP communication module reads the cached messages and sends them to the industrial cloud APP.

[0094] In a specific implementation process, the APP communication module uses an independent thread to detect in a polling manner that there are messages to be sent in the data message cache of the virtual device module and then reads the messages.

[0095] In some embodiments of the present invention, in the step where the APP communication module sends a message to the virtual device module and writes the message into the cache or the virtual device module writes the message into the cache, the message is converted into a message format and then written into the cache.

[0096] In the specific implementation process, if the configuration file is transparent, there is no need to convert the message format.

[0097] In some embodiments of the present invention, the steps of the method include: based on a preset instruction prediction module, the instruction prediction module collects multiple historical control messages for the same industrial equipment, matches the message code corresponding to each control message, combines multiple message codes, and inputs them into a pre-trained prediction model to obtain a predicted message code, and caches the control message corresponding to the predicted message code as a preliminary instruction in the message cache module.

[0098] In the specific implementation process, the message code corresponds to the control message one by one, and the message code can be an array composed of numbers. In the step of combining multiple message codes and inputting them into the pre-trained prediction model, the multiple message codes are combined into an input vector and input into the pre-trained prediction model.

[0099] In a specific implementation process, the prediction model may be a pre-trained neural network model, and the neural network model is a classification model, and the corresponding message code is determined through the final classification layer.

[0100] In some embodiments of the present invention, if the sending end is an industrial cloud APP and the receiving end is an industrial device, during the processing of the control processing channel, if the APP communication module identifies the message as a control message, the control message is matched with the preliminary instructions. If the match is successful, the virtual device module directly reads the cached preliminary instructions and sends them to the industrial device.

[0101] In a specific implementation process, if the control message matches the preparatory instruction successfully, the preparatory instruction is used as the control message to be sent.

[0102] The above scheme is adopted. This scheme combines the previous n control messages sent by this control message and predicts the next control message. Since the operation of industrial equipment often has certain rules, such as when the robot arm rotates to the extreme angle, the next control message will rotate in another direction. This scheme can predict the next control message and use the control message as a preparatory instruction in advance. When the actual control message arrives, it can quickly match and determine whether the two correspond. If the correspondence is successful, there is no need to cache and read the control message, and it can be sent directly, thereby improving the processing efficiency of control messages and the response speed of industrial equipment.

[0103] A second aspect of the present invention further provides an industrial Internet of Things gateway system supporting message separation, the system comprising an APP communication module, a virtual device module, a message classification module and a message cache module;

[0104] The APP communication module or the virtual device module receives the message from the sender, and identifies the message through the message classification module to identify the message as a control message or a data message;

[0105] Transmitting the message to a control processing channel or a data message channel for processing;

[0106] The processing process of the control processing channel or the data message channel includes:

[0107] The virtual device module writes the message into the message cache module, the virtual device module or the APP communication module reads the message in the message cache module, and sends the message to the destination end;

[0108] The processing process of the data message channel also includes, in the process of sending a message to the destination, determining whether there is a message to be sent on the control processing channel at the same time, and if so, waiting for the message of the control processing channel to be transmitted before transmitting the message of this channel.

[0109] In some embodiments of the present invention, the system also includes an instruction prediction module, which collects multiple historical control messages for the same industrial equipment, matches the message code corresponding to each control message, combines multiple message codes, and inputs them into a pre-trained prediction model to obtain a predicted message code, and caches the control message corresponding to the predicted message code as a preliminary instruction in the message cache module; if the sending end is an industrial cloud APP and the receiving end is an industrial device, during the processing of the control processing channel, if the APP communication module identifies the message as a control message, the control message is matched with the preliminary instruction. If the match is successful, the virtual device module directly reads the cached preliminary instruction and sends it to the industrial device.

[0110] An embodiment of the present invention also provides an industrial Internet of Things gateway device that supports message separation, the device includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, when the computer instructions are executed by the processor, the system implements the steps implemented by the method described above.

[0111] Specifically, the gateway of this solution is based on an ARM development board, Linux is installed, and the software of this gateway is deployed.

[0112] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps implemented by the aforementioned industrial Internet of Things gateway implementation method supporting message separation are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0113] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0114] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0115] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for implementing an industrial Internet of Things gateway supporting message separation, characterized in that: The steps of the method include: Receive a message from a sender, and identify the message through a message classification module to identify the message as a control message or a data message; Transmitting the message to a control processing channel or a data message channel for processing; The processing process of the control processing channel or the data message channel includes: The virtual device module writes the message into the message cache module, the virtual device module or the APP communication module reads the message in the message cache module, and sends the message to the destination end; The processing process of the data message channel also includes, in the process of sending a message to the destination, determining whether there is a message to be sent on the control processing channel at the same time, and if so, waiting for the message of the control processing channel to be transmitted before transmitting the message of this channel.

2. The method for implementing an industrial Internet of Things gateway supporting message separation according to claim 1, characterized in that: If the sending end is an industrial cloud APP and the receiving end is an industrial device, then in the step of receiving the message from the sending end and identifying the message through the message classification module to identify the message as a control message or a data message, the message of the industrial cloud APP is received through the APP communication module, and the message is identified through the message classification module to identify the message as a control message or a data message; if the sending end is an industrial device and the receiving end is an industrial cloud APP, then in the step of receiving the message from the sending end and identifying the message through the message classification module to identify the message as a control message or a data message, the message of the industrial cloud APP is received through the virtual device module, and the message is identified through the message classification module to identify the message as a control message or a data message.

3. The method for implementing an industrial Internet of Things gateway supporting message separation according to claim 2 is characterized in that: In the steps of receiving messages from the industrial cloud APP through the APP communication module and identifying the messages through the message classification module or receiving messages from the industrial cloud APP through the virtual device module and identifying the messages, the message tag in the message is identified and the message is identified based on the message tag.

4. The method for implementing an industrial Internet of Things gateway supporting message separation according to claim 1, characterized in that: If the sending end is an industrial cloud APP and the receiving end is an industrial device, in the step of transmitting the message to a control processing channel or a data message channel for processing: The APP communication module sends the message to the virtual device module and writes the message into the cache; The virtual device module reads the cached message and sends it to the industrial device.

5. The method for implementing an industrial Internet of Things gateway supporting message separation according to claim 4 is characterized in that: If the sending end is an industrial device and the receiving end is an industrial cloud APP, in the step of transmitting the message to a control processing channel or a data message channel for processing: The virtual device module writes the message into the cache; The APP communication module reads the cached messages and sends them to the industrial cloud APP.

6. The method for implementing an industrial Internet of Things gateway supporting message separation according to claim 5 is characterized in that: In the step where the APP communication module sends the message to the virtual device module and writes the message into the cache or the virtual device module writes the message into the cache, the message is converted into a message format and then written into the cache.

7. The method for implementing an industrial Internet of Things gateway supporting message separation according to any one of claims 1 to 6, characterized in that: The steps of the method include: based on a preset instruction prediction module, the instruction prediction module collects multiple historical control messages for the same industrial equipment, matches the message code corresponding to each control message, combines multiple message codes, and inputs them into a pre-trained prediction model to obtain a predicted message code, and caches the control message corresponding to the predicted message code as a preliminary instruction in the message cache module.

8. The method for implementing an industrial Internet of Things gateway supporting message separation according to claim 7, characterized in that: If the sending end is an industrial cloud APP and the receiving end is an industrial device, during the processing of the control processing channel, if the APP communication module identifies the message as a control message, the control message is matched with the preliminary instructions. If the match is successful, the virtual device module directly reads the cached preliminary instructions and sends them to the industrial device.

9. An industrial Internet of Things gateway system supporting message separation, characterized in that: The system includes an APP communication module, a virtual device module and a message cache module; The APP communication module or the virtual device module receives the message from the sender, and identifies the message through the message classification module to identify the message as a control message or a data message; Transmitting the message to a control processing channel or a data message channel for processing; The processing process of the control processing channel or the data message channel includes: The virtual device module writes the message into the message cache module, the virtual device module or the APP communication module reads the message in the message cache module, and sends the message to the destination end; The processing process of the data message channel also includes, in the process of sending a message to the destination, determining whether there is a message to be sent on the control processing channel at the same time, and if so, waiting for the message of the control processing channel to be transmitted before transmitting the message of this channel.

10. The industrial Internet of Things gateway system supporting message separation according to claim 9, characterized in that: The system also includes an instruction prediction module, which collects multiple historical control messages for the same industrial equipment, matches the message code corresponding to each control message, combines the multiple message codes, and inputs them into a pre-trained prediction model to obtain a predicted message code, and caches the control message corresponding to the predicted message code as a preliminary instruction in the message cache module; If the sending end is an industrial cloud APP and the receiving end is an industrial device, during the processing of the control processing channel, if the APP communication module identifies the message as a control message, the control message is matched with the preliminary instructions. If the match is successful, the virtual device module directly reads the cached preliminary instructions and sends them to the industrial device.