Protocol conversion adaptation method and device, industrial fusion gateway and data transmission method
By designing a 5G-based industrial convergence gateway, and using P4 language to realize dynamic analysis and unified formatting of industrial protocol data packets, the compatibility problem between industrial protocol and 5G network fusion is solved, efficient and low-latency data transmission is achieved, and costs are reduced.
Patent Information
- Application Number
- CN202411949419.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-27
AI Technical Summary
The existing technology is difficult to achieve the deep integration of mainstream industrial protocols and 5G networks, resulting in the inability to meet the needs of industrial control applications for high real-time and deterministic communications, and the deployment and maintenance costs are high.
Design an industrial convergence gateway based on 5G to realize dynamic analysis, unified formatting and efficient transmission of industrial protocol data packets through P4 language, solve the compatibility problems between heterogeneous protocols, and give full play to the real-time advantages of 5G.
It realizes efficient analysis and forwarding of mainstream industrial protocols, supports dynamic analysis and expansion of multi-protocols, significantly improves data transmission speed and overall system performance, and reduces development and maintenance costs.
Smart Images

Figure CN119743539A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network protocol conversion, and in particular to a protocol conversion adaptation method and device, an industrial fusion gateway and a data transmission method. Background Art
[0002] In the industrial Internet scenario, existing industrial control networks usually use wired methods to transmit various data on industrial sites, such as process monitoring data and control instructions, etc. These control business data often require the industrial control network to ensure high real-time and high reliability and achieve deterministic communication.
[0003] However, industrial wired control networks have problems such as high deployment cost, difficult maintenance, and poor flexibility, so there is an urgent need for 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 have been proposed: enhanced bandwidth mobile communication, massive machine communication, and ultra-reliable low-latency communication (URLLC), which can meet various types of needs. Among them, 5G URLLC supports a latency of 1 millisecond and a reliability of 99.999%, which can meet the requirements of most industrial control applications. Therefore, 5G URLLC is regarded 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 protocol compatibility and communication mapping issues. On the other hand, the characteristics and data formats of different industrial protocols vary greatly, and 5G networks need to have a flexible adaptation mechanism and optimize protocol conversion, data packaging, and transmission priority control to support the smooth operation of multiple protocols.
[0005] In the existing technical solutions, a 5G converged communication gateway design based on OpenWRT supports wireless gateways for industrial protocols, but generally lacks the ability to dynamically adapt to heterogeneous protocols, and the use of 5G is limited to simple network transmission functions, failing to fully tap the ultra-low latency characteristics of 5G, and failing to use the 5G network to perform two-way adaptation and optimization according to the transmission characteristics of industrial protocols, including adaptation and optimization on the network side and terminal module side. Based on the design and application of 5G+AI smart water conservancy converged gateway, it discloses the use of edge computing combined with 5G, and the edge node processes industrial protocol data and then transmits it through 5G. This solution has high flexibility, supports real-time processing, and fully utilizes the low latency characteristics of 5G, but the deployment cost is high and the hardware requirements are large. The design of the 5G converged communication gateway based on OpenWRT uses the industrial Internet of Things platform, the unified protocol stack and the cloud platform to realize the interconnection of industrial equipment through 5G. This solution is convenient for remote management and large-scale data analysis, but the transmission process is complicated, which may increase latency and is not suitable 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 integration requirements of multiple industrial protocols. The lack of dynamic adaptation capabilities makes it difficult to cope with heterogeneous protocol environments and changing industrial scenarios. Some solutions (such as industrial Internet of Things platforms) have delays in data transmission and cannot meet the requirements of industrial applications for high real-time and deterministic communications. Some traditional gateways are slow in processing industrial protocols and are difficult to match the low latency advantage of 5G. Solutions such as edge computing and the combination of TSN and 5G require additional hardware and complex configurations, resulting in high deployment and maintenance costs. Summary of the invention
[0007] The purpose of the present invention is to provide a protocol conversion adaptation method and system, and an industrial fusion gateway to solve at least one technical problem existing in the above-mentioned background technology. A gateway that can support the access of multiple industrial devices is realized, which can meet the physical interface access of various devices in the industrial field and support the conversion of various transmission protocols; it can realize the integration of mainstream industrial protocols and 5G networks, establish a protocol conversion channel, and realize seamless, stable and complete docking of 5G and industrial protocols; it can solve the high real-time and high reliability requirements of industrial wireless networks, and the adaptation difficulties caused by the large differences in the characteristics of different industrial protocols.
[0008] In order to achieve the above object, the present invention adopts the following technical solutions:
[0009] In a first aspect, the present invention provides a protocol conversion adaptation method, comprising:
[0010] Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0011] Extract key fields from received industrial protocol data packets, including source address, destination address, function code, register address and data content;
[0012] Using a programmable platform and language, the parsed data is converted into a unified 5G data packet format, including source address, destination address, protocol type, timestamp, and priority fields.
[0013] As a further limitation of the first aspect of the present invention, the specific steps of converting the parsed data into a unified 5G data packet format using a programmable platform and language include:
[0014] (1) Receiving and parsing data packets. In the Parser module of the P4 language, data packets transmitted from various interfaces in the physical interface module are received, and key fields such as source address, destination address, protocol identifier, priority, etc. are extracted. Based on the protocol identifier, the industrial protocol type of the payload (such as ModbusTCP, PROFINET, EtherCAT, etc.) is determined.
[0015] (2) Header address and field mapping. In the Ingress Processing module of the P4 language, the device address (such as PLC address) in the industrial protocol is mapped to a unified 5G network IP address according to the address mapping table, and the mapped IP address is filled into the source address and destination address fields of the data packet. At the same time, through the match-action rules, the key fields of the industrial protocol header (such as function code, device address, data content, etc.) are mapped to a unified 5G data packet header information format, including protocol type and priority fields, etc.
[0016] (3) Processing and encapsulating payloads. In the Ingress Processing module of the P4 language, the payload data in the industrial protocol (such as Modbus register data and PROFINET frame data) is extracted and filled into the payload area of the 5G data packet to ensure that the data content is complete and meets the protocol requirements.
[0017] (4) Packet encapsulation. In the Deparser module of the P4 language, according to the requirements of the 5G protocol stack (such as PDCP, RLC, MAC, and PHY layers), the complete data packet is gradually encapsulated and the protocol header information required by each layer is added to ensure that the data packet complies with the 5G protocol specifications and can be smoothly transmitted over the network.
[0018] (5) Output a unified 5G data packet format. The encapsulated data packets are output in a unified 5G format for subsequent processing and transmission.
[0019] As a further limitation of the first aspect of the present invention, extracting the key fields in the received industrial protocol data packet includes the following specific steps:
[0020] (1) Parsing 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, and payload.
[0021] (2) Restoring the device address. In the Ingress Processing module of the P4 language, the IP address of the 5G network is restored to the device address (such as the PLC address) using the address mapping table based on the source address and destination 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 for subsequent industrial protocol processing.
[0022] (3) Identify the industrial protocol class. In the Ingress Processing module of the P4 language, the industrial protocol type (such as ModbusTCP, PROFINET, EtherCAT, etc.) carried by the 5G data packet is determined based on the protocol type and priority field in the 5G data packet header. The format and processing method of the payload are determined based on the industrial protocol type.
[0023] (4) Extracting 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).
[0024] In a second aspect, the present invention provides a protocol conversion adaptation module based on the method described in the first aspect, comprising:
[0025] A receiving unit, used to receive status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0026] An extraction unit, used to extract key fields in the received industrial protocol data packet, including source address, destination address, function code, register address and data content;
[0027] The conversion unit is used to convert the parsed data into a unified 5G data packet format using a programmable platform and language, including a source address, a destination address, a protocol type, a timestamp, and a priority field.
[0028] In a third aspect, the present invention provides an industrial convergence gateway, comprising:
[0029] Physical interface module, protocol conversion and adaptation module, data processing module and 5G communication module;
[0030] The physical interface module is used to connect with the industrial equipment, realize data transmission with the industrial equipment, and receive status data regularly sent by the industrial equipment through the industrial protocol or industrial protocol data packets returned in response to query requests;
[0031] The protocol conversion adapter module is used to perform protocol conversion on various industrial protocol data packets received from the physical interface module, convert them into 5G data packets in a unified format, and send them to the data processing module;
[0032] 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 address of the 5G communication module 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;
[0033] The 5G communication module is used to encapsulate the data packets 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.
[0034] In a fourth aspect, the present invention provides a data transmission method based on the industrial convergence gateway as described in the third aspect, comprising:
[0035] Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0036] Perform protocol conversion on various industrial protocol data packets received from the physical interface module and convert them into 5G data packets in a unified format;
[0037] An address mapping table is established according to the one-to-one mapping relationship between the PLC controller address and the address of the 5G communication module connected thereto, and the destination address in the 5G data packet is modified according to the address mapping table;
[0038] The 5G data packet with the modified destination address is encapsulated layer by layer according to the 5G protocol stack and sent through the antenna in the wireless channel.
[0039] In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the data transmission method as described in the fourth aspect.
[0040] In a sixth aspect, the present invention provides a computer device comprising a memory and a processor, wherein 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 as described in the fourth aspect.
[0041] In the seventh aspect, the present invention provides an electronic device, comprising: a processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the protocol conversion adaptation method as described in the first aspect.
[0042] In an eighth aspect, the present invention provides a computer device comprising a memory and a processor, wherein 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 as described in the first aspect.
[0043] Terminology explanation:
[0044] P4 (Programming Protocol-independent Packet Processors): is a specific language in the field of network equipment, 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 controls industrial equipment and production processes through programmed logic.
[0047] Ultra-Reliable Low-Latency Communication (URLLC): One of the three major application scenarios of the fifth-generation mobile communication (5G) technology. 5G URLLC supports 1 millisecond latency and 99.999% reliability.
[0048] The beneficial effects of the present invention are as follows: efficient parsing and forwarding of mainstream industrial protocols (such as ModbusTCP, PROFINET, and EtherCAT) are achieved, and data transmission under the low-latency characteristics of 5G networks is realized; dynamic parsing and expansion of multiple protocols are supported, and new protocols only need to update the P4 code without replacing hardware, which greatly improves flexibility and adaptability; efficient conversion and encapsulation are achieved in a protocol-independent manner, significantly improving data transmission speed and overall system performance; at the same time, it has flexible traffic scheduling capabilities to meet the needs of complex industrial scenarios; the reprogrammability of the P4 code makes system upgrades and maintenance more convenient, and only software updates are required to adapt to new protocols or optimization strategies, reducing development and maintenance costs, and having higher performance and cost-effectiveness.
[0049] Additional advantages of the present invention will be more clearly given in the following description or learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0051] Figure 1 This is a schematic diagram of the structure of the 5G-based industrial convergence gateway described in an embodiment of the present invention.
[0052] Figure 2 This is a schematic diagram of the 5G-based industrial convergence gateway networking described in an embodiment of the present invention.
[0053] Figure 3 It is a data transmission flow chart based on the protocol conversion adaptation method described in an embodiment of the present invention.
[0054] Figure 4 It is a specific flow chart of the protocol conversion adaptation method described in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below by the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0056] It should be understood by those skilled in the art that unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this invention belongs.
[0057] It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have a meaning consistent with that in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless as defined herein.
[0058] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements and / or groups thereof.
[0059] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. Different embodiments or examples described in this specification and features of different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
[0060] To facilitate understanding of the present invention, the present invention is further explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the specific embodiments do not constitute a limitation on the embodiments of the present invention.
[0061] Those skilled in the art should understand that the drawings are merely schematic diagrams of embodiments, and the components in the drawings are not necessarily necessary for implementing the present invention.
[0062] The present invention provides a protocol conversion adaptation method and system, and an industrial integration gateway to solve the deep integration of mainstream industrial protocols and 5G networks. By designing a 5G-based industrial integration gateway, dynamic parsing, unified formatting and efficient transmission of industrial protocol data packets are realized, the compatibility problem between heterogeneous protocols is solved, and the real-time advantage of 5G is fully utilized.
[0063] Example 1
[0064] In this embodiment 1, a protocol conversion adaptation module is first provided, which includes: a receiving unit, used to receive status data periodically sent by industrial equipment through an industrial protocol or an industrial protocol data packet returned in response to a query request; an extraction unit, used to extract 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; a conversion unit, used to convert the parsed data into a unified 5G data packet format using a programmable platform and language, including a source address, a destination address, a protocol type, a timestamp and a priority field.
[0065] In this embodiment, using the above-mentioned module, a protocol conversion adaptation method can be implemented, including: receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests; extracting 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, destination 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 a programmable platform and language include:
[0067] (1) Receiving and parsing data packets. In the Parser module of the P4 language, data packets transmitted from various interfaces in the physical interface module are received, and key fields such as source address, destination address, protocol identifier, priority, etc. are extracted. Based on the protocol identifier, the industrial protocol type of the payload (such as ModbusTCP, PROFINET, EtherCAT, etc.) is determined.
[0068] (2) Header address and field mapping. In the Ingress Processing module of the P4 language, the device address (such as PLC address) in the industrial protocol is mapped to a unified 5G network IP address according to the address mapping table, and the mapped IP address is filled into the source address and destination address fields of the data packet. At the same time, through the match-action rules, the key fields of the industrial protocol header (such as function code, device address, data content, etc.) are mapped to a unified 5G data packet header information format, including protocol type and priority fields, etc.
[0069] (3) Processing and encapsulating payloads. In the Ingress Processing module of the P4 language, the payload data in the industrial protocol (such as Modbus register data and PROFINET frame data) is extracted and filled into the payload area of the 5G data packet to ensure that the data content is complete and meets the protocol requirements.
[0070] (4) Packet encapsulation. In the Deparser module of the P4 language, according to the requirements of the 5G protocol stack (such as PDCP, RLC, MAC, and PHY layers), the complete data packet is gradually encapsulated and the protocol header information required by each layer is added to ensure that the data packet complies with the 5G protocol specifications and can be smoothly transmitted over the network.
[0071] (5) Output a unified 5G data packet format. The encapsulated data packets are output in a unified 5G format for subsequent processing and transmission.
[0072] Specifically, in this embodiment, extracting key fields from the received industrial protocol data packet includes:
[0073] (1) Parsing 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, and payload.
[0074] (2) Restoring the device address. In the Ingress Processing module of the P4 language, the IP address of the 5G network is restored to the device address (such as the PLC address) using the address mapping table based on the source address and destination 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 for subsequent industrial protocol processing.
[0075] (3) Identify the industrial protocol class. In the Ingress Processing module of the P4 language, the industrial protocol type (such as ModbusTCP, PROFINET, EtherCAT, etc.) carried by the 5G data packet is determined based on the protocol type and priority field in the 5G data packet header. The format and processing method of the payload are determined based on the industrial protocol type.
[0076] (4) Extracting 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] Example 2
[0078] In this embodiment 2, an industrial convergence gateway is provided, including: 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 and receive status data regularly sent by the industrial equipment through the industrial protocol or industrial protocol data packets returned in response to query requests; the protocol conversion adaptation module is used to perform protocol conversion on various industrial protocol data packets received from the physical interface module, convert them 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 address of the 5G communication module 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-mentioned industrial convergence gateway is used to implement a data transmission method, which includes: receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests; performing protocol conversion on various industrial protocol data packets received from the physical interface module and converting them into 5G data packets in a unified format; establishing an address mapping table based on a one-to-one mapping relationship between the PLC controller address and the address of the 5G communication module connected to it, 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 sending it through the antenna in the wireless channel.
[0080] In this embodiment 2, the above-mentioned 5G-based industrial fusion gateway and the protocol conversion adaptation module for implementing the protocol conversion adaptation method provide solutions to the deep integration problem of mainstream industrial protocols and 5G networks. The 5G-based industrial fusion gateway realizes dynamic parsing, unified formatting and efficient transmission of industrial protocol data packets, solves the compatibility problems between heterogeneous protocols, and gives full play to the real-time advantages of 5G. Based on the research on the fusion technology and standards of mainstream industrial protocols and 5G uRLLC, a 5G industrial fusion gateway with high adaptability and strong versatility is realized. This product is designed as an embedded industrial gateway device, which can realize efficient parsing and forwarding of mainstream industrial protocols (such as ModbusTCP, PROFINET, EtherCAT) through the P4 language, and use the low latency characteristics of the 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 this embodiment may include a variety of physical communication interfaces, including: RJ45 Ethernet interface, RS485 interface, CAN interface, USB2.0 serial port, etc., to support the connection of various different industrial field devices. The protocol conversion adapter 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 based on the one-to-one mapping relationship between the PLC controller address and the address of the 5G communication module connected to it, 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 a domestic 5G module, encapsulates the data packet sent from the data processing module layer by layer according to the 5G protocol stack, adds packet header, packet tail and other information in turn, and finally completes the transmission through the antenna in the wireless channel.
[0082] The physical interface module has multiple interface types: RJ45 Ethernet interface supports Ethernet / IP, ModbusTCP, Profinet and other Ethernet-based protocols; RS485 interface is used for Modbus RTU, Profibus and other serial protocols; CAN interface is used to support CANopen, J1939 and other protocols; USB2.0 serial port is used to connect with different devices, supports AT command mode and other serial communication protocols. These interfaces can support different types of field equipment access, ensure seamless connection between devices, and fully adapt to the diversity of equipment in industrial environments.
[0083] The protocol conversion adaptation module realizes dynamic parsing and conversion of the protocol 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 repackaging and other operations, it converts 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: an address mapping table is established based on the one-to-one mapping relationship between the PLC controller address and the address of the 5G communication module connected to it. After the data packet undergoes protocol conversion, the data processing module modifies the target address in the data packet according to the address mapping table to ensure that the data packet can be accurately delivered to the destination.
[0085] The 5G communication module is responsible for encapsulating the processed data packets according to the 5G protocol stack and finally transmitting the signals through the antenna, ensuring that the data can be remotely transmitted to other devices or systems.
[0086] In actual use, the data transmission method for realizing protocol conversion adaptation using the above-mentioned 5G-based industrial convergence gateway includes the following steps:
[0087] S1: After the gateway is powered on, it establishes a wireless connection with the 5G base station through the 5G communication module, obtains the 5G address assigned to the gateway, and reads the information of all physical interfaces: the former is stored in the data processing module, waiting for the establishment of the address mapping table; the latter is transmitted to the protocol conversion module, waiting for the 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 equipment data into 5G data packets in a unified format through a programmable platform and language, and transmits them to the data processing module;
[0089] S3: The data processing module establishes a mapping relationship between the address of the PLC controller or other industrial equipment parsed according to the protocol of each data packet and the 5G address of the gateway to form an address mapping table, and modifies the 5G data packet in a unified format accordingly, and then transmits it to the 5G communication module;
[0090] S4: The 5G communication module is encapsulated layer by layer according to the 5G protocol stack through the 5G communication module to perform 5G wireless transmission.
[0091] The mapping table in step S3 needs to be matched at both the receiving end and the sending end, that is, the gateways at both ends need to have a unified address mapping table.
[0092] Example 3
[0093] In this embodiment 3, the 5G-based industrial convergence gateway provided is as follows Figure 1 As shown, it includes a physical interface module, a protocol conversion module, a data processing module, and a 5G communication module. The 5G industrial convergence gateway designed in this embodiment communicates and networks with the PLC controller as shown in FIG. Figure 2 As shown, 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 convergence gateway can implement a protocol conversion adaptation method, including the following steps: (1) device connection and initialization; (2) the sending end PLC controller sends the 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; (8) the receiving end PLC controller receives the industrial protocol message.
[0095] The overall process of protocol conversion adaptation is as follows Figure 3 shown.
[0096] (1) The device connection and initialization process is as follows:
[0097] 1) Physical connection: Connect the industrial field equipment to the interface in the gateway physical interface module, and ensure that the 5G communication module of the industrial convergence gateway is connected to the 5G base station through the antenna to complete the establishment of the 5G wireless connection relationship.
[0098] 2) Initial configuration: Configure the gateway device IP address and subnet mask in the gateway management interface, set the 5G module configuration such as APN, frequency band and other parameters, and ensure that the gateway can access external servers through the 5G network.
[0099] 3) Initialization completed: Ensure that the gateway can successfully receive the heartbeat packet or status information of the device, and test the connection status between the gateway and the 5G network.
[0100] (2) The protocol conversion module performs protocol parsing and unified formatting as follows:
[0101] 1) Data acquisition: Industrial equipment (such as PLC) regularly sends status data or responds to query requests through industrial protocols. The protocol conversion module of the gateway monitors each physical interface and receives industrial protocol data packets.
[0102] 2) Protocol parsing: Extract key fields from the received industrial protocol data packets, such as source and destination addresses, function codes, register addresses, data contents, etc.
[0103] 3) Unified format: Use programmable platforms and languages to convert parsed data into a unified 5G data packet format, including fields such as source address (IPv4), destination address (IPv4), protocol type, timestamp, priority, etc.
[0104] (3) The data processing module performs data processing and 5G packaging 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 equipment) parsed in each data packet and the 5G address of this gateway.
[0106] 2) Data packet modification: According to the address mapping table, the data processing module replaces the destination address in the unified format of the 5G data packet.
[0107] 3) 5G encapsulation: The 5G communication module uses a 5G module to encapsulate data packets layer by layer according to the 5G protocol stack, add necessary network layer and link layer headers, and send the data packets to the receiving gateway through the 5G wireless channel.
[0108] The 5G protocol message encapsulation and parsing process in the above two modules is as follows: Figure 4 shown.
[0109] Example 4
[0110] This embodiment 4 provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, the protocol conversion adaptation method as described above is implemented. The method includes:
[0111] Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0112] Extract key fields from received industrial protocol data packets, including source address, destination address, function code, register address and data content;
[0113] Using a programmable platform and language, the parsed data is converted into a unified 5G data packet format, including source address, destination address, protocol type, timestamp, and priority fields.
[0114] Example 5
[0115] This embodiment 5 provides a computer device, including a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions executable by the processor, the processor calls the program instructions to execute the above-mentioned protocol conversion adaptation method, the method comprising:
[0116] Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0117] Extract key fields from received industrial protocol data packets, including source address, destination address, function code, register address and data content;
[0118] Using a programmable platform and language, the parsed data is converted into a unified 5G data packet format, including source address, destination address, protocol type, timestamp, and priority fields.
[0119] Example 6
[0120] This embodiment 6 provides an electronic device, including: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes instructions for implementing the above-mentioned protocol conversion adaptation method, the method including:
[0121] Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0122] Extract key fields from received industrial protocol data packets, including source address, destination address, function code, register address and data content;
[0123] Using a programmable platform and language, the parsed data is converted into a unified 5G data packet format, including source address, destination address, protocol type, timestamp, and priority fields.
[0124] Example 7
[0125] This embodiment 7 provides an electronic device, including: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to enable the electronic device to execute instructions for implementing a data transmission method, the method including:
[0126] Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0127] Perform protocol conversion on various industrial protocol data packets received from the physical interface module and convert them into 5G data packets in a unified format;
[0128] An address mapping table is established according to the one-to-one mapping relationship between the PLC controller address and the address of the 5G communication module connected thereto, and the destination address in the 5G data packet is modified according to the address mapping table;
[0129] The 5G data packet with the modified destination address is encapsulated layer by layer according to the 5G protocol stack and sent through the antenna in the wireless channel.
[0130] Example 8
[0131] In this embodiment 8, a computer device is provided, including a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions executable by the processor, the processor calls the program instructions to execute a data transmission method, the method comprising:
[0132] Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests;
[0133] Perform protocol conversion on various industrial protocol data packets received from the physical interface module and convert them into 5G data packets in a unified format;
[0134] An address mapping table is established according to the one-to-one mapping relationship between the PLC controller address and the address of the 5G communication module 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 sent through the antenna in the wireless channel.
[0136] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may 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-ROM, optical storage, etc.) containing computer-usable program code.
[0137] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device, and a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0140] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative work on the basis of the technical solution disclosed in the present invention should be included in the scope of protection of the present invention.
Claims
1. A protocol conversion adaptation method, characterized in that: include: Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests; Extract key fields from received industrial protocol data packets, including source address, destination address, function code, register address and data content; Using a programmable platform and language, the parsed data is converted into a unified 5G data packet format, including source address, destination address, protocol type, timestamp, and priority fields.
2. The protocol conversion adaptation method according to claim 1, characterized in that: Using programmable platforms and languages, the parsed data is converted into a unified 5G data packet format, including: Extract the key fields in the data packet, and determine the industrial protocol type of the payload based on the protocol identifier; map the device address in the industrial protocol to a unified 5G network IP address according to the address mapping table, and fill the mapped IP address into the source address and destination address fields of the data packet; at the same time, through the match-action rule, map the key fields of the industrial protocol header to a unified 5G data packet header information format, including the protocol type and priority fields; extract the payload data in the industrial protocol, and fill the payload into the payload area of the 5G data packet to ensure that the data content is complete and meets 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, ensure that the data packet complies with the 5G protocol specifications, and can be smoothly transmitted over the network.
3. The protocol conversion adaptation method according to claim 1, characterized in that: The key fields extracted from the received industrial protocol data packets include: Receive 5G data packets and parse their headers to extract key field information, including: source address and destination address, protocol identifier, priority and payload; use the address mapping table to restore the IP address of the 5G network to the device address based on the source address and destination address extracted from the 5G data packet header, and fill the restored device address into the header of the original industrial protocol data packet; determine the type of industrial protocol it carries based on the protocol type and priority field in the 5G data packet header, and determine the format and processing method of the payload based on the industrial protocol type; extract part of 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.
4. A protocol conversion adaptation module based on the method according to any one of claims 1 to 3, characterized in that: include: A receiving unit, used to receive status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests; An extraction unit, used to extract key fields in the received industrial protocol data packet, including source address, destination address, function code, register address and data content; The conversion unit is used to convert the parsed data into a unified 5G data packet format using a programmable platform and language, including a source address, a destination address, a protocol type, a timestamp, and a priority field.
5. An industrial integration gateway, characterized in that: include: Physical interface module, protocol conversion and adaptation module, data processing module and 5G communication module; The physical interface module is used to connect with the industrial equipment, realize data transmission with the industrial equipment, and receive status data regularly sent by the industrial equipment through the industrial protocol or industrial protocol data packets returned in response to query requests; The protocol conversion adapter module is used to perform protocol conversion on various industrial protocol data packets received from the physical interface module, convert them 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 address of the 5G communication module 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 packets 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.
6. A data transmission method based on the industrial convergence gateway as claimed in claim 5, characterized in that: include: Receiving status data periodically sent by industrial equipment through industrial protocols or industrial protocol data packets returned in response to query requests; Perform protocol conversion on various industrial protocol data packets received from the physical interface module and convert them into 5G data packets in a unified format; An address mapping table is established according to the one-to-one mapping relationship between the PLC controller address and the address of the 5G communication module connected thereto, and the destination address in the 5G data packet is modified according to the address mapping table; The 5G data packet with the modified destination address is encapsulated layer by layer according to the 5G protocol stack and sent through the antenna in the wireless channel.
7. An electronic device, characterized in that: include: A processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the data transmission method as described in claim 6.
8. A computer device, characterized in that: It comprises a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the data transmission method as claimed in claim 6.
9. An electronic device, characterized in that: include: A processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the protocol conversion adaptation method as described in any one of claims 1-3.
10. A computer device, characterized in that: It includes a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the protocol conversion adaptation method as described in any one of claims 1-3.
Citation Information
Patent Citations
5G and Modbus protocol adaptation device and method
CN114827294A
5G-based industrial heterogeneous network edge gateway
CN115226100A
Protocol conversion method for fusion of 5G network and industrial field network
CN117834749A
Cited By
Multi-source access scheduling method and system
CN120011027A
Data communication method, device and equipment based on line concentration equipment
CN120639847A
Communication method, device, storage medium, program product and converged gateway system
CN121037323A
Communication method and device based on industrial protocol data conversion, main controller, communication system and medium
CN121125865A
Industrial field bus communication protocol unified adaptation method and device, medium and equipment
CN121193820A