Protocol conversion adaptation method and device, industrial convergence gateway and data transmission method

By using the P4 language and programmable platform to convert industrial protocol data packets into a unified 5G data packet format, the adaptation difficulties in the integration of industrial protocols and 5G networks are resolved, and efficient and flexible data transmission and system performance improvement are achieved.

CN119743539BActive Publication Date: 2025-10-24BEIJING JIAOTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411949419.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-10-24
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

Existing industrial protocol gateways lack dynamic adaptation capabilities, making it difficult to meet the integration needs of multiple industrial protocols and unable to fully utilize the low latency characteristics of 5G networks, resulting in deficiencies in the real-time and reliability of industrial control networks.

Method used

Using the P4 language and programmable platform, it parses industrial protocol data packets, maps them into a unified 5G data packet format, and encapsulates them layer by layer to achieve seamless integration of industrial protocols and 5G networks, supporting dynamic parsing and efficient transmission of multiple protocols.

Benefits of technology

It achieves efficient parsing and forwarding of mainstream industrial protocols, improves data transmission speed and system performance, reduces development and maintenance costs, and has flexible traffic scheduling capabilities to adapt to the needs of complex industrial scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743539B_ABST
    Figure CN119743539B_ABST
Patent Text Reader

Abstract

The application provides a protocol conversion adaptation method and device, an industrial fusion gateway and a data transmission method, and belongs to the technical field of network protocol conversion. Industrial protocol data packets periodically sent by industrial equipment according to an industrial protocol are received. Key fields in the received industrial protocol data packets are extracted, including a source address, a destination address, a function code, a register address and data content. The parsed data is converted into a unified 5G data packet format, including a source address, a target address, a protocol type, a timestamp and a priority field, by using a programmable platform and language. The application realizes efficient parsing and forwarding of mainstream industrial protocols, realizes data transmission under the low latency characteristics of a 5G network, supports dynamic parsing and extension of multiple protocols, and only needs to update P4 code to add new protocols without changing hardware, thereby improving flexibility and adaptation capability. Efficient conversion and encapsulation are realized, and the data transmission speed and overall system performance are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network protocol conversion, and in particular to a protocol conversion adaptation method and device, an industrial convergence gateway, and a data transmission method. BACKGROUND

[0002] In the industrial internet scenario, existing industrial control networks usually use wired transmission to transmit various data of industrial sites, such as process monitoring data and control instructions. These control service data often need to be guaranteed by industrial control networks for high real-time performance and high reliability to achieve deterministic communication.

[0003] However, industrial wired control networks have problems such as high deployment cost, difficult maintenance, and poor flexibility, and therefore urgently need wireless network support with high real-time performance and high reliability. With the rapid development of the fifth generation mobile communication (5G) technology, three application scenarios of enhanced bandwidth mobile communication, massive machine communication, and ultra-reliable low-latency communication (URLLC) are proposed, which can meet various types of requirements. Among them, 5G URLLC supports 1 millisecond latency and 99.999% reliability, which can meet the requirements of most industrial control applications. Therefore, 5G URLLC is considered as one of the key technologies for industrial wireless control networks.

[0004] However, the integration of mainstream industrial protocols and 5G networks still faces some challenges. On the one hand, the protocols widely used in the industrial control field have strict communication delay and data integrity requirements, and 5G networks need to consider the compatibility and communication mapping of the protocols. On the other hand, the characteristics and data formats of different industrial protocols differ greatly, and 5G networks need to have a flexible adaptation mechanism to optimize protocol conversion, data packaging, and transmission priority control, etc., to support the smooth operation of multiple protocols.

[0005] In the prior art, a 5G converged communication gateway design based on OpenWRT supports wireless gateways of industrial protocols, but generally lacks dynamic adaptation capability for heterogeneous protocols, and the use of 5G is limited to simple network transmission functions, failing to fully exploit the ultra-low latency characteristics of 5G. It cannot utilize the 5G network to adapt and optimize according to the transmission characteristics of industrial protocols, including network side and terminal module side adaptation and optimization. The design and application of a 5G+AI intelligent water conservancy converged gateway discloses the use of edge computing combined with 5G, and the edge node processes industrial protocol data and transmits it through 5G. This solution has high flexibility, supports real-time processing, and fully utilizes the low latency characteristics of 5G, but has high deployment costs and high hardware requirements. The 5G converged communication gateway design based on OpenWRT uses an industrial Internet of Things platform, a unified protocol stack, and a cloud platform to realize industrial device interconnection through 5G. This solution is convenient for remote management and large-scale data analysis, but the transmission process is complex and may increase the delay, making it unsuitable for local real-time control.

[0006] In summary, most existing solutions (such as industrial protocol gateways and dedicated protocol adapters) only support specific protocols and cannot meet the fusion needs of multiple industrial protocols. They lack dynamic adaptation capabilities and are difficult to adapt to heterogeneous protocol environments and changing industrial scenarios. Some solutions (such as industrial Internet of Things platforms) have delays in data transmission, which cannot meet the high real-time and deterministic communication requirements of industrial applications. Traditional gateways are slow in processing industrial protocols, making it difficult to take advantage of the low latency of 5G. Edge computing, TSN, and 5G combination solutions require additional hardware and complex configurations, resulting in high deployment and maintenance costs. SUMMARY

[0007] The present application aims to provide a protocol conversion adaptation method and system, as well as an industrial converged gateway, to solve at least one of the technical problems in the background art. It realizes a gateway that can support multiple industrial device access, meets the physical interface access of various devices in industrial sites, and supports the conversion of various transmission protocols. It can realize the fusion of mainstream industrial protocols and 5G networks, establish a protocol conversion channel, and achieve seamless, stable, and complete connection of 5G and industrial protocols. It solves the high real-time and high reliability requirements of industrial wireless networks and the adaptation difficulties caused by the large differences in industrial protocol characteristics.

[0008] To achieve the above-mentioned purposes, the present application adopts the following technical solutions:

[0009] In a first aspect, the present application provides a protocol conversion adaptation method, comprising:

[0010] receiving industrial protocol data packets returned according to the state data periodically sent by industrial equipment through industrial protocols or in response to query requests;

[0011] extracting key fields in the received industrial protocol data packet, including source address, destination address, function code, register address and data content;

[0012] Converting the parsed data into a unified 5G data packet format using programmable platforms and languages, including source address, target address, protocol type, timestamp and priority field.

[0013] As a further limitation of the first aspect of the application, the specific steps of converting the parsed data into a unified 5G data packet format using programmable platforms and languages include:

[0014] (1) Receive and parse data packet. In the Parser module of P4 language, receive data packets transmitted from various interfaces in the physical interface module, extract key fields such as source address, target address, protocol identifier, priority, etc., and determine the industrial protocol type of the payload (such as Modbus TCP, PROFINET, EtherCAT, etc.) according to the protocol identifier.

[0015] (2) Header address and field mapping. In the Ingress Processing module of P4 language, according to the address mapping table, map the device address (such as PLC address) in the industrial protocol to the unified 5G network IP address, and fill the mapped IP address into the source address and target address fields of the data packet. At the same time, through match-action rules, map the key fields of the industrial protocol header (such as function code, device address, data content, etc.) to the unified 5G data packet header information format, including protocol type and priority field, etc.

[0016] (3) Processing and encapsulating payload. In the Ingress Processing module of P4 language, extract the payload data in the industrial protocol (such as Modbus register data, PROFINET frame data), fill the payload into the payload area of the 5G data packet, and ensure the integrity of the data content and compliance with the protocol requirements.

[0017] (4) Data packet encapsulation. In the Deparser module of P4 language, encapsulate the complete data packet step by step according to the requirements of 5G protocol stack (such as PDCP, RLC, MAC, PHY layer), add the required protocol header information of each layer, ensure that the data packet conforms to the 5G protocol specification, and can be successfully transmitted over the network.

[0018] (5) Output unified 5G data packet format. The encapsulated data packet is output in a unified 5G format for subsequent processing and transmission.

[0019] As a further limitation of the first aspect of the application, the extraction of the key fields in the received industrial protocol data packet includes the following specific steps:

[0020] (1) Analyze the 5G data packet header. In the Parser module of the P4 language, the 5G data packet is received and its header is parsed to extract key field information such as source address and destination address, protocol identifier, priority, payload, etc.

[0021] (2) Restore the device address. In the Ingress Processing module of the P4 language, according to the source address and destination address extracted from the 5G data packet header, the IP address of the 5G network is restored to the device address (such as PLC address) using the address mapping table, and the restored device address is filled into the header of the original industrial protocol data packet for subsequent industrial protocol processing.

[0022] (3) Identify the industrial protocol type. In the Ingress Processing module of the P4 language, according to the protocol type and priority fields in the 5G data packet header, the type of industrial protocol carried (such as Modbus TCP, PROFINET, EtherCAT, etc.) is determined, and the format and processing method of the payload are determined according to the type of industrial protocol.

[0023] (4) Extract industrial protocol data. In the Ingress Processing module of the P4 language, the payload data is extracted, the header and tail information in the 5G data packet is removed, and the payload is restored to the corresponding industrial protocol data packet format (such as Modbus register data or PROFINET frame data).

[0024] In a second aspect, the application provides a protocol conversion and adaptation module based on the method of the first aspect, comprising:

[0025] a receiving unit for receiving industrial protocol data packets returned by industrial devices through industrial protocols periodically or in response to query requests;

[0026] an extraction unit for extracting key fields in the received industrial protocol data packet, including source address, destination address, function code, register address and data content;

[0027] a conversion unit for converting the parsed data into a unified 5G data packet format using a programmable platform and language, including source address, destination address, protocol type, timestamp and priority field.

[0028] In a third aspect, the application provides an industrial fusion gateway, comprising:

[0029] The physical interface module is configured to be connected with the industrial equipment, to realize data transmission between the industrial equipment, and to receive industrial protocol data packets periodically transmitted by the industrial equipment according to the industrial protocol or returned in response to a query request.

[0030] The physical interface module is configured to be connected with the industrial equipment, to realize data transmission between the industrial equipment, and to receive industrial protocol data packets periodically transmitted by the industrial equipment according to the industrial protocol or returned in response to a query request.

[0031] The protocol conversion and adaptation module is configured to convert various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format, and send the 5G data packets to the data processing module.

[0032] The data processing module is configured to establish an address mapping table according to a one-to-one mapping relationship between a PLC controller address and a 5G communication module address connected thereto, and modify a destination address in a data packet sent from the protocol conversion and adaptation module according to the address mapping table, and send the data packet to the 5G communication module.

[0033] The 5G communication module is configured to encapsulate the data packet sent from the data processing module layer by layer according to a 5G protocol stack, and complete transmission through an antenna in a wireless channel.

[0034] In a fourth aspect, the present application provides a data transmission method based on the industrial fusion gateway as described in the third aspect, comprising:

[0035] Receiving industrial protocol data packets periodically transmitted by the industrial equipment according to the industrial protocol or returned in response to a query request;

[0036] Converting various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format;

[0037] Establishing an address mapping table according to a one-to-one mapping relationship between a PLC controller address and a 5G communication module address connected thereto, and modifying a destination address in a 5G data packet according to the address mapping table;

[0038] Encapsulating the 5G data packet with the modified destination address layer by layer according to a 5G protocol stack, and completing transmission through an antenna in a wireless channel.

[0039] In a fifth aspect, the present application provides an electronic device, comprising a processor, a memory and a computer program; wherein the processor is connected with the memory, and the computer program is stored in the memory; when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes instructions for realizing the data transmission method as described in the fourth aspect.

[0040] In a sixth aspect, the present application provides a computer device comprising a memory and a processor, the processor and the memory being in communication with each other, the memory storing program instructions executable by the processor, and the processor invoking the program instructions to execute the data transmission method according to the fourth aspect.

[0041] In a seventh aspect, the present application provides an electronic device comprising a processor, a memory and a computer program; wherein the processor is connected with the memory, and the computer program is stored in the memory; when the electronic device is running, the processor executes the computer program stored in the memory, so as to make the electronic device execute instructions for realizing the protocol conversion adaptation method according to the first aspect.

[0042] In an eighth aspect, the present application provides a computer device comprising a memory and a processor, the processor and the memory being in communication with each other, the memory storing program instructions executable by the processor, and the processor invoking the program instructions to execute the protocol conversion adaptation method according to the first aspect.

[0043] Term explanation:

[0044] P4 (Programming Protocol-independent Packet Processors): a specific language in the field of network devices, used to specify how data plane devices (switches, network cards, routers, filters, etc.) process data packets.

[0045] BMV2 (Behavioral Model Version 2) switch: a programmable software switch that can run packet processing logic described in P4 and customize packet processing logic.

[0046] PLC (Programmable Logic Controller): PLC is a digital electronic device used for industrial automation control, which realizes the control of industrial equipment and production process through programmed logic.

[0047] URLLC (Ultra-Reliable Low-Latency Communication): one of the three application scenarios of 5G technology, 5G URLLC supports 1ms latency and 99.999% reliability.

[0048] The application has the advantages that efficient analysis and forwarding of mainstream industrial protocols (such as Modbus TCP, PROFINET, EtherCAT) are realized, data transmission under the low latency characteristics of a 5G network is realized, dynamic analysis and expansion of multiple protocols are supported, a new protocol only needs to update P4 code, hardware does not need to be replaced, flexibility and adaptation capability are greatly improved, efficient conversion and packaging are realized in a protocol-independent manner, data transmission speed and overall system performance are significantly improved, flexible traffic scheduling capability is simultaneously provided, the needs of complex industrial scenarios can be met, reprogrammability of P4 code makes system upgrading and maintenance more convenient, new protocols or optimization strategies can be adapted by only software updating, development and maintenance costs are reduced, and higher performance and cost-effectiveness are provided.

[0049] The advantages of the additional aspects of the application will be more apparent from the following description section or will be understood through the practice of the application. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.

[0051] Figure 1 The figure is a schematic diagram of an industrial fusion gateway structure based on 5G according to the embodiments of the application.

[0052] Figure 2 The figure is a networking schematic diagram of an industrial fusion gateway based on 5G according to the embodiments of the application.

[0053] Figure 3 The figure is a data transmission flowchart of a protocol conversion and adaptation method according to the embodiments of the application.

[0054] Figure 4 The figure is a specific flowchart of a protocol conversion and adaptation method according to the embodiments of the application. DETAILED DESCRIPTION

[0055] The embodiments of the application will be described in detail below, and examples of the embodiments are shown in the drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with the drawings are exemplary and are only used to explain the application, and cannot be interpreted as a limitation on the application.

[0056] Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art in the field of the application.

[0057] It should also be understood that terms such as those defined in a dictionary are to be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and can not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

[0058] As will be understood by persons skilled in the art, the singular forms "a," "an," "said" and "the" include plural referents unless the context clearly dictates otherwise. It should be further understood that the terms "comprise," "comprises," and "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0059] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. The person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples, without contradiction.

[0060] In order to facilitate the understanding of the present application, the present application will be further explained and described in specific embodiments in conjunction with the accompanying drawings, and the specific embodiments do not constitute a limitation on the embodiments of the present application.

[0061] Those skilled in the art should understand that the drawings are only schematic views of the embodiments, and the components in the drawings are not necessarily necessary for the implementation of the present application.

[0062] The present application provides a protocol conversion adaptation method and system, and an industrial fusion gateway, to solve the deep fusion of mainstream industrial protocols and 5G networks. By designing an industrial fusion gateway based on 5G, dynamic analysis, unified formatting and efficient transmission of industrial protocol data packets are realized, compatibility problems between heterogeneous protocols are solved, and the real-time advantage of 5G is fully utilized.

[0063] Embodiment 1

[0064] In this embodiment 1, first provide a protocol conversion adaptation module, the module comprises: a receiving unit for receiving the state data periodically sent by industrial equipment according to industrial protocol or returned by responding to query request industrial protocol data packet; extraction unit for extracting the key field in the received industrial protocol data packet, including source address, destination address, function code, register address and data content; conversion unit for converting the parsed data into a unified 5G data packet format using programmable platform and language, including source address, target address, protocol type, timestamp and priority field.

[0065] In this embodiment, using the above module, a protocol conversion adaptation method can be implemented, comprising: receiving the state data periodically sent by industrial equipment according to industrial protocol or returned by responding to query request industrial protocol data packet; extracting the key field in the received industrial protocol data packet, including source address, destination address, function code, register address and data content; converting the parsed data into a unified 5G data packet format using programmable platform and language, including source address, target address, protocol type, timestamp and priority field.

[0066] Specifically, in this embodiment, the specific steps of converting the parsed data into a unified 5G data packet format using programmable platform and language include:

[0067] (1) Receive and parse data packet. In the P4 language Parser module, receive the data packet transmitted from various interfaces in the physical interface module, extract the key fields such as source address, target address, protocol identifier, priority, etc., and determine the industrial protocol type of the payload (such as ModbusTCP, PROFINET, EtherCAT, etc.) according to the protocol identifier.

[0068] (2) Header address and field mapping. In the P4 language Ingress Processing module, according to the address mapping table, map the device address (such as PLC address) in the industrial protocol to the unified 5G network IP address, and fill the mapped IP address into the source address and target address fields of the data packet. At the same time, through match-action rules, map the key fields (such as function code, device address, data content, etc.) in the industrial protocol header to the unified 5G data packet header information format, including protocol type and priority field, etc.

[0069] (3) Process and encapsulate payload. In the P4 language Ingress Processing module, extract the payload data (such as Modbus register data, PROFINET frame data) in the industrial protocol, fill the payload into the payload area of the 5G data packet, and ensure the completeness of the data content and compliance with the protocol requirements.

[0070] (4) Data packet encapsulation. In the Deparser module of the P4 language, encapsulate the complete data packet step by step according to the requirements of the 5G protocol stack (such as PDCP, RLC, MAC, and PHY layers), add the required protocol header information of each layer, ensure that the data packet meets the 5G protocol specification, and can be smoothly transmitted over the network.

[0071] (5) Output unified 5G data packet format. The encapsulated data packet is output in a unified 5G format for subsequent processing and transmission.

[0072] Specifically, in the present embodiment, the key fields in the received industrial protocol data packet include:

[0073] (1) Analyze the 5G data packet header. In the Parser module of the P4 language, receive the 5G data packet and analyze its header to extract key field information such as source and destination addresses, protocol identifier, priority, and payload.

[0074] (2) Restore device address. In the Ingress Processing module of the P4 language, according to the source and destination addresses extracted from the 5G data packet header, use the address mapping table to restore the IP address of the 5G network to the device address (such as PLC address), and fill the restored device address into the header of the original industrial protocol data packet for subsequent industrial protocol processing.

[0075] (3) Identify industrial protocol type. In the Ingress Processing module of the P4 language, according to the protocol type and priority fields in the 5G data packet header, determine the type of industrial protocol carried (such as Modbus TCP, PROFINET, EtherCAT, etc.), and according to the type of industrial protocol, determine the format and processing method of the payload.

[0076] (4) Extract industrial protocol data. In the Ingress Processing module of the P4 language, extract the payload data, remove the header and tail information in the 5G data packet, and restore the payload to the corresponding industrial protocol data packet format (such as Modbus register data or PROFINET frame data).

[0077] Embodiment 2

[0078] In this embodiment 2, an industrial fusion gateway is provided, comprising: a physical interface module, a protocol conversion adaptation module, a data processing module, and a 5G communication module; the physical interface module is used to connect with industrial equipment, realize data transmission between the industrial equipment, receive state data periodically sent by the industrial equipment according to the industrial protocol or industrial protocol data packets returned in response to query requests; the protocol conversion adaptation module is used to convert various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format, and send them to the data processing module; the data processing module is used to establish an address mapping table according to the one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, and modify the destination address in the data packet sent from the protocol conversion adaptation module according to the address mapping table and send it to the 5G communication module; the 5G communication module is used to encapsulate the data packet sent from the data processing module layer by layer according to the 5G protocol stack, and complete the transmission through the antenna in the wireless channel.

[0079] In this embodiment 2, the above industrial fusion gateway is used to realize a data transmission method, which includes: receiving state data periodically sent by industrial equipment according to industrial protocols or industrial protocol data packets returned in response to query requests; converting various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format; establishing an address mapping table according to the one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, and modifying the destination address in the 5G data packet according to the address mapping table; encapsulating the 5G data packet with the modified destination address layer by layer according to the 5G protocol stack, and completing the transmission through the antenna in the wireless channel.

[0080] In this embodiment 2, the above industrial fusion gateway based on 5G and the protocol conversion adaptation module implementing the protocol conversion adaptation method solve the problem of deep integration of mainstream industrial protocols and 5G networks. The industrial fusion gateway based on 5G realizes dynamic analysis, unified formatting and efficient transmission of industrial protocol data packets, solves the compatibility problem between heterogeneous protocols, and fully utilizes the real-time advantage of 5G. The research on the fusion technology and standard of mainstream industrial protocols and 5G uRLLC realizes a 5G industrial fusion gateway with high adaptability and strong universality. The product is designed as an embedded industrial gateway device, which can realize efficient analysis and forwarding of mainstream industrial protocols (such as ModbusTCP, PROFINET, EtherCAT) through P4 language, and utilize the low latency characteristics of 5G network for data transmission. The gateway can provide flexible protocol processing and traffic scheduling capabilities to meet the needs of different industrial scenarios.

[0081] Specifically, the physical interface module described in the embodiment can include various physical communication interfaces, including: an RJ45 Ethernet interface, an RS485 interface, a CAN interface, a USB2.0 serial port, etc., to support connection of various different industrial field devices. The protocol conversion adaptation module performs protocol conversion on various industrial protocol data packets received from the physical interface module through a programmable platform and a protocol-independent data packet processing programming language, converts them into 5G data packets in a unified format, and sends them to the data processing module. The data processing module establishes an address mapping table according to the one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, and modifies the destination address in the data packet sent from the protocol conversion module according to the address mapping table, and then sends it to the 5G communication module. The 5G communication module uses domestic 5G modules to encapsulate the data packet sent from the data processing module layer by layer according to the 5G protocol stack, sequentially adds header, trailer and other information, and finally completes transmission through the antenna in the wireless channel.

[0082] The physical interface module has multiple interface types: the RJ45 Ethernet interface supports Ethernet / IP, ModbusTCP, Profinet and other Ethernet-based protocols; the RS485 interface is used for Modbus RTU, Profibus and other serial protocols; the CAN interface is used to support CANopen, J1939 and other protocols; and the USB2.0 serial port is used to connect with different devices, supporting AT command mode and other serial communication protocols. These interfaces can support access of different types of field devices, ensuring seamless connection between devices and fully adapting to the diversity of devices in industrial environments.

[0083] The protocol conversion adaptation module realizes dynamic analysis and conversion of protocols through a programmable platform and a data packet processing programming language P4: by identifying the protocol identifier in the data packet header, performing protocol unpacking, field mapping, data re-encapsulation and other operations, and converting it into a unified data format suitable for 5G transmission.

[0084] The data processing module is mainly responsible for data processing and address mapping between the protocol conversion module and the 5G communication module: according to the one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, an address mapping table is established, and after the data packet is converted, the data processing module modifies the target address in the data packet according to the address mapping table, ensuring that the data packet can be accurately delivered to the destination.

[0085] The 5G communication module is responsible for encapsulating the processed data packet according to the 5G protocol stack and finally transmitting the signal through the antenna, ensuring that the data can be transmitted remotely to other devices or systems.

[0086] In actual use, the data transmission method for realizing protocol conversion and adaptation of the 5G-based industrial fusion gateway adopts the following steps:

[0087] S1: After the gateway is powered on, a wireless connection is established between the gateway and a 5G base station through a 5G communication module, a 5G address allocated to the gateway is obtained, and information of all physical interfaces is read: the former is stored in a data processing module and waits for an address mapping table to be established; and the latter is transmitted to a protocol conversion module and waits for a message to be parsed and converted into a unified 5G protocol format;

[0088] S2: The protocol conversion module receives data packets from the physical interface module, parses different industrial protocols, converts industrial field device data into a unified format of 5G data packets through a programmable platform and language, and transmits the 5G data packets to the data processing module;

[0089] S3: The data processing module establishes a mapping relationship between the 5G address of the gateway and the address of the PLC controller or other industrial equipment parsed from the protocol of each data packet, forms an address mapping table, and modifies the unified format of 5G data packets according to the address mapping table, and then transmits the 5G data packets to the 5G communication module;

[0090] S4: The 5G communication module encapsulates layer by layer according to a 5G protocol stack through a 5G communication module to perform 5G wireless transmission.

[0091] In step S3, the mapping table needs to be matched at the receiving end and the sending end, that is, the gateways at both ends need to have a unified address mapping table.

[0092] Embodiment 3

[0093] In this embodiment 3, a 5G-based industrial fusion gateway is provided as shown in Figure 1 , which includes a physical interface module, a protocol conversion module, a data processing module, and a 5G communication module. The 5G industrial fusion gateway designed in this embodiment communicates with a PLC controller and forms a network as shown in Figure 2 . The gateway is connected to the I / O interface of the PLC controller through the I / O interface of the physical interface module, and the PLC controller can be configured as a master station or a slave station.

[0094] In this embodiment, the 5G-based industrial fusion gateway can realize a protocol conversion and adaptation method, which includes the following steps: (1) device connection and initialization; (2) the sending end PLC controller sends an industrial protocol message; (3) the sending end gateway performs protocol parsing and unified formatting; (4) the sending end gateway performs data processing and 5G encapsulation; (5) 5G wireless transmission; (6) the receiving end gateway performs 5G protocol decapsulation and data processing; (7) the receiving end gateway performs protocol parsing; and (8) the receiving end PLC controller receives an industrial protocol message.

[0095] The overall process of protocol conversion adaptation is as shown in Figure 3

[0096] (1) The device connection and initialization process is as follows:

[0097] 1) Physical connection: Connect the industrial field device to the interface in the gateway physical interface module, while ensuring that the 5G communication module of the industrial convergence gateway is connected to the 5G base station through the antenna, and the 5G wireless connection relationship is established.

[0098] 2) Initialization configuration: Configure the gateway device IP address and subnet mask in the gateway management interface, set the APN, frequency band, and other 5G module configurations, and ensure that the gateway can access external servers through the 5G network.

[0099] 3) Initialization completion: Ensure that the gateway can successfully receive the heartbeat packet or status information of the device, and test the connection status of the gateway and the 5G network.

[0100] (2) The protocol conversion module performs protocol analysis and unified formatting process as follows:

[0101] 1) Data acquisition: Industrial devices (such as PLC) periodically send status data or respond to query requests through industrial protocols. The protocol conversion module of the gateway listens to each physical interface and receives industrial protocol data packets.

[0102] 2) Protocol analysis: Extract key fields from the received industrial protocol data packets, such as source and destination addresses, function codes, register addresses, and data content.

[0103] 3) Format unification: Use programmable platforms and languages to convert the parsed data into a unified 5G data packet format, including source address (IPv4), target address (IPv4), protocol type, timestamp, priority, and other fields.

[0104] (3) The data processing module performs data processing and 5G encapsulation process as follows:

[0105] 1) Address mapping table generation: The data processing module establishes a mapping relationship between the PLC controller address (or the address of other industrial devices) parsed from each data packet and the 5G address of the gateway.

[0106] 2) Data packet modification: According to the address mapping table, the data processing module replaces the destination address in the unified format 5G data packet.

[0107] 3) 5G encapsulation: The 5G communication module uses the 5G module to encapsulate the data packet layer by layer according to the 5G protocol stack, adds necessary network layer and link layer headers, and sends the data packet to the receiving end gateway through the 5G wireless channel.

[0108] ​The 5G protocol packet encapsulation and analysis process in the above two modules is as shown in Figure 4

[0109] Embodiment 4

[0110] The embodiment 4 provides a non-transitory computer readable storage medium for storing computer instructions, when the computer instructions are executed by a processor, a protocol conversion adaptation method as described above is realized, and the method comprises the following steps of:

[0111] receiving an industrial protocol data packet returned according to state data periodically sent by an industrial device through an industrial protocol or a response query request;

[0112] extracting key fields in the received industrial protocol data packet, including a source address, a destination address, a function code, a register address and data content;

[0113] using a programmable platform and language, converting the parsed data into a unified 5G data packet format, including a source address, a target address, a protocol type, a timestamp and a priority field.

[0114] Embodiment 5

[0115] The embodiment 5 provides a computer device, comprising a memory and a processor, the processor and the memory are in communication with each other, the memory stores program instructions executable by the processor, and the processor invokes the program instructions to execute a protocol conversion adaptation method as described above, and the method comprises the following steps of:

[0116] receiving an industrial protocol data packet returned according to state data periodically sent by an industrial device through an industrial protocol or a response query request;

[0117] extracting key fields in the received industrial protocol data packet, including a source address, a destination address, a function code, a register address and data content;

[0118] using a programmable platform and language, converting the parsed data into a unified 5G data packet format, including a source address, a target address, a protocol type, a timestamp and a priority field.

[0119] Embodiment 6

[0120] The embodiment 6 provides an electronic device, comprising a processor, a memory and a computer program; wherein the processor is connected with the memory, and the computer program is stored in the memory; when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes instructions for realizing a protocol conversion adaptation method as described above, and the method comprises the following steps of:

[0121] ​receiving industrial protocol data packets returned according to state data periodically sent by industrial equipment through an industrial protocol or responding to a query request;

[0122] extracting key fields in the received industrial protocol data packets, including source address, destination address, function code, register address and data content;

[0123] Converting the parsed data into a unified 5G data packet format using a programmable platform and language, including source address, target address, protocol type, timestamp and priority field.

[0124] Embodiment 7

[0125] The embodiment 7 provides an electronic device, comprising a processor, a memory and a computer program; wherein the processor is connected with the memory, and the computer program is stored in the memory; when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes instructions for realizing a data transmission method, the method comprising:

[0126] receiving industrial protocol data packets returned according to state data periodically sent by industrial equipment through an industrial protocol or responding to a query request;

[0127] Converting various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format;

[0128] establishing an address mapping table according to a one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, and modifying the destination address in the 5G data packet according to the address mapping table;

[0129] Encapsulating the 5G data packet with the modified destination address layer by layer according to the 5G protocol stack, and sending through the antenna in the wireless channel.

[0130] Embodiment 8

[0131] In the embodiment 8, a computer device is provided, comprising a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute a data transmission method, the method comprising:

[0132] receiving industrial protocol data packets returned according to state data periodically sent by industrial equipment through an industrial protocol or responding to a query request;

[0133] Converting various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format;

[0134] An address mapping table is established according to a one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, and the destination address in the 5G data packet is modified according to the address mapping table;

[0135] The 5G data packet with the modified destination address is encapsulated layer by layer according to the 5G protocol stack, and is transmitted through an antenna on a wireless channel.

[0136] Those skilled in the art will understand that embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.

[0137] The present application is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions that are executed by the processor of the computer or other programmable data processing apparatus generate an apparatus that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 means for performing the function specified by one or more blocks

[0138] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction means, which implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 one or more blocks

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to perform a series of operation steps to produce a computer-implemented process, so that the instructions executed on the computer or other programmable data processing apparatus provide a process for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 one or more blocks

[0140] The above describes the specific embodiments of the present application in combination with the drawings, but is not a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications or variations made by those skilled in the art on the basis of the disclosed technical solutions of the present application, without creative labor, should be covered in the protection scope of the present application.

Claims

1. A protocol conversion adaptation method, characterized by, Comprising: receiving industrial protocol data packets returned according to the state data periodically sent by the industrial equipment through the industrial protocol or the response query request; extracting the key fields in the received industrial protocol data packets, including source address, destination address, function code, register address and data content; using a programmable platform and language, converting the parsed data into a unified 5G data packet format, including source address, target address, protocol type, timestamp and priority field; wherein converting the parsed data into a unified 5G data packet format comprises: extracting the key fields in the data packet, determining the industrial protocol type of the payload according to the protocol identifier; according to the address mapping table, mapping the device address in the industrial protocol to the unified 5G network IP address, and filling the mapped IP address into the source address and target address fields of the data packet; at the same time, through the match-action rule, the key fields in the industrial protocol header are mapped to the unified 5G data packet header information format, including the protocol type and the priority field; extract the payload data in the industrial protocol, fill the payload into the payload area of the 5G data packet, ensure the completeness of the data content and meet the protocol requirements; according to the requirements of the 5G protocol stack, gradually encapsulate the complete data packet, add the protocol header information required by each layer, and ensure that the data packet meets the 5G protocol specification; Also including: receiving 5G data packets and parsing their headers, extracting key field information, including: source address and target address, protocol identifier, priority and payload; according to the source address and target address extracted from the 5G data packet header, use the address mapping table to restore the IP address of the 5G network to the device address, and fill the restored device address into the header of the original industrial protocol data packet; according to the protocol type and priority field in the 5G data packet header, judge the industrial protocol type carried by it, according to the industrial protocol type, determine the format and processing method of the payload; extract the payload data, remove the header and tail information in the 5G data packet, and restore the payload to the corresponding industrial protocol data packet format.

2. A protocol conversion adaptation module based on the method of claim 1, characterized by Comprising: a receiving unit configured to receive industrial protocol data packets returned according to the state data periodically sent by the industrial equipment through the industrial protocol or the response query request; an extracting unit configured to extract the key fields in the received industrial protocol data packets, including source address, destination address, function code, register address and data content; a converting unit configured to use a programmable platform and language to convert the parsed data into a unified 5G data packet format, including source address, target address, protocol type, timestamp and priority field.

3. An industrial convergence gateway, characterized by, Comprising: a physical interface module, a protocol conversion adaptation module, a data processing module and a 5G communication module; the physical interface module is configured to connect with the industrial equipment, realize data transmission between the industrial equipment, receive industrial protocol data packets returned according to the state data periodically sent by the industrial equipment through the industrial protocol or the response query request; The protocol conversion adaptation module is configured to convert various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format through protocol conversion, and send the 5G data packets to the data processing module; wherein, the conversion of the parsed data into the unified 5G data packet format comprises: extracting key fields in the data packet, determining the industrial protocol type of the payload according to the protocol identifier; mapping the device address in the industrial protocol to a unified 5G network IP address according to an address mapping table, and filling the mapped IP address into the source address and target address fields of the data packet; at the same time, mapping the key fields in the industrial protocol header to the unified 5G data packet header information format including the protocol type and priority field through a match-action rule; extracting the payload data in the industrial protocol, and filling the payload into the payload area of the 5G data packet to ensure the completeness of the data content and compliance with the protocol requirements; encapsulating the complete data packet gradually according to the requirements of the 5G protocol stack, adding the protocol header information required by each layer to ensure that the data packet complies with the 5G protocol specification; wherein, the 5G data packet is received and its header is parsed to extract key field information including: source address and target address, protocol identifier, priority and payload; the IP address of the 5G network is restored to the device address using the address mapping table according to the source address and target address extracted from the 5G data packet header, and the restored device address is filled into the header of the original industrial protocol data packet; the industrial protocol type carried by the 5G data packet is determined according to the protocol type and priority field in the 5G data packet header, and the format and processing method of the payload are determined according to the industrial protocol type; the payload part data is extracted, and the header and tail information in the 5G data packet are removed to restore the payload to the corresponding industrial protocol data packet format; The data processing module is configured to establish an address mapping table according to a one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, and modify the destination address in the data packet sent from the protocol conversion adaptation module according to the address mapping table and send the data packet to the 5G communication module; The 5G communication module is configured to encapsulate the data packet sent from the data processing module layer by layer according to the 5G protocol stack, and complete the transmission through the antenna in the wireless channel.

4. A data transmission method based on the industrial convergence gateway according to claim 3, characterized by, It comprises: receiving industrial protocol data packets returned by industrial equipment through periodic transmission of state data or response to query requests according to industrial protocols; converting various industrial protocol data packets received from the physical interface module into 5G data packets in a unified format through protocol conversion; establishing an address mapping table according to a one-to-one mapping relationship between the PLC controller address and the 5G communication module address connected thereto, and modifying the destination address in the 5G data packet according to the address mapping table; encapsulating the 5G data packet with the modified destination address layer by layer according to the 5G protocol stack, and completing the transmission through the antenna in the wireless channel.

5. An electronic device, comprising: It comprises: A processor, a memory and a computer program; wherein the processor is connected with the memory, and the computer program is stored in the memory; when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes the instructions for realizing the data transmission method according to claim 4.

6. A computer device, comprising: A memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the data transmission method according to claim 4.

7. An electronic device, comprising: It comprises: A processor, a memory and a computer program; wherein the processor is connected with the memory, and the computer program is stored in the memory; when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes the instructions for realizing the protocol conversion adaptation method according to claim 1.

8. A computer device, comprising: A memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the protocol conversion adaptation method according to claim 1.

Citation Information

Patent Citations

  • 5G and Modbus protocol adaptation device and method

    CN114827294A

  • 5G-based industrial heterogeneous network edge gateway

    CN115226100A