Industrial ethernet and wireless network data exchange method and apparatus

By receiving PROFIBUSDP messages, converting them into PROFINET PDU data, and then encapsulating them layer by layer into 5G data packets, the problems of long transmission paths and complex dependencies are solved, and efficient wireless communication between PLC controllers is realized.

CN120017739BActive Publication Date: 2025-12-12CHINA TELECOM CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510162769.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-12-12
Estimated Expiration
2045-02-13

AI Technical Summary

Technical Problem

In existing technologies, the conversion between PROFIBUSDP and PROFINET protocols requires the introduction of protocol adapters or converters, resulting in lengthy transmission paths, complex dependencies, and difficulty in adapting to wireless deployments and rapid expansion, leading to low conversion efficiency.

Method used

The controller receives PROFIBUSDP messages from the processor and core control unit, parses and converts them into PROFINET PDU data, and then encapsulates them into 5G data packets layer by layer by the 5G communication unit for wireless transmission, thus realizing the conversion between PROFIBUSDP and PROFINET protocols.

Benefits of technology

It enables interconnection and interoperability of heterogeneous protocols, establishes wireless communication channels between PLC controllers, improves communication reliability and real-time performance, and supports the wireless transformation of industrial automation systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017739B_ABST
    Figure CN120017739B_ABST
Patent Text Reader

Abstract

The application provides an industrial Ethernet and wireless network data exchange method and device, the method comprising: a control processor and a core control unit analyze a PROFIBUS DP message to obtain an analyzed PROFIBUS DP message; a control industrial protocol conversion unit converts the analyzed PROFIBUS DP message between a PROFIBUS DP protocol and a PROFINET protocol to obtain PROFINET PDU data; a control 5G communication unit encapsulates the PROFINET PDU data layer by layer according to a 5G protocol stack to obtain a 5G data packet; and the 5G data packet is wirelessly transmitted in a 5G network. The application solves the problem of long transmission path and complex dependency relationship in the prior art that a protocol adapter or a protocol converter needs to be introduced to realize PROFIBUS protocol and PROFINET protocol conversion.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of protocol conversion, in particular to an industrial Ethernet and wireless network data exchange method, an industrial Ethernet and wireless network data exchange device, a computer readable storage medium and a protocol adaptation system. BACKGROUND

[0002] The rapid development of 5G communication technology opens up new paths for industrial automation. Its high-speed uplink and downlink rates, determinism and high-precision positioning capabilities empower remote monitoring, real-time control and efficient data transmission. Integrating 5G communication technology with industrial multi-modal devices provides strong technical support for the collaborative operation of cyber physical systems (CPS).

[0003] In current industrial automation control systems, information transmission paths are characterized by diversity. When converting between PROFIBUS DP and PROFINET protocols, differences in communication mechanisms between protocols require the addition of a protocol conversion gateway device on the transmission link. This measure results in data needing to pass through more relay nodes in the transmission process, thereby causing a decline in transmission efficiency. PROFINET is an industrial communication standard based on Ethernet, while PROFIBUS DP is a communication protocol based on fieldbus. PROFIBUS DP occupies an important position in process control due to its high real-time performance and reliability, and PROFINET Ethernet technology is widely used in industrial applications due to its high bandwidth and flexibility. In actual industrial environments, due to the support of different communication protocols by terminal devices, adapters and converters must be introduced, resulting in long transmission paths and complex dependency relationships. Therefore, internal communication between devices, data mapping and how to transmit PN configuration information through Ethernet communication are current difficulties.

[0004] Patent document CN 105245424 B provides a DP communication protocol micro control unit that checks and transmits DP configuration information, maintains PROFIBUS DP bus communication, and an Ethernet communication protocol micro control unit that maintains PROFINET communication and exchanges data with the DP end through shared memory. However, this method has the following disadvantages:

[0005] 1. Limited flexibility: PROFIBUS DP and PROFINET network communication is mainly achieved through wired connections, which is not suitable for some industrial scenarios that require high flexibility and wireless deployment.

[0006] 2. Poor scalability: The protocol conversion method in this patent is difficult to quickly adapt and integrate wireless protocol standards, and the maintainability of the system is weak.

[0007] 3. Low conversion efficiency: The protocol conversion in this patent mainly relies on static data mapping and fixed conversion rules, which may lead to low conversion efficiency or data loss / error problems in certain specific situations.

[0008] In actual industrial application scenarios, due to the high complexity of the data path topology involved in the conversion between PROFINET and PROFIBUS DP protocols, introducing an adapter or converter will not only cause additional conversion latency and queuing delay, but also generate additional overhead due to the increase in packet headers. In addition, due to the incompatibility between traditional industrial control protocols and 5G mobile network protocols, directly carrying fieldbus protocols over wireless networks increases the complexity of system design and may induce data loss or delay problems due to real-time mismatch. SUMMARY

[0009] The main purpose of the present application is to provide an industrial Ethernet and wireless network data exchange method, an industrial Ethernet and wireless network data exchange device, a computer readable storage medium and a protocol adaptation system to at least solve the problem of long transmission path and complex dependency relationship in the prior art that requires the introduction of a protocol adapter or protocol converter to realize the conversion between PROFIBUS protocol and PROFINET protocol.

[0010] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an industrial Ethernet and wireless network data exchange method is provided, comprising: a control processor and a core control unit receiving a PROFIBUS DP message sent by a PLC controller and analyzing the PROFIBUS DP message to obtain an analyzed PROFIBUS DP message, the processor and the core control unit being used to implement overall system control and scheduling, manage and configure an industrial protocol conversion unit and a 5G communication unit, the PROFIBUS DP message being a message generated by using a PROFIBUS DP protocol; controlling the industrial protocol conversion unit to obtain the analyzed PROFIBUS DP message and performing protocol conversion between the PROFIBUS DP protocol and a PROFINET protocol on the analyzed PROFIBUS DP message to obtain PROFINET PDU data, the industrial protocol conversion unit supporting conversion between the PROFINET protocol and the PROFIBUS DP protocol, the PROFIBUS DP PDU data being PDU data generated by using the PROFINET protocol; controlling the 5G communication unit to obtain the PROFINET PDU data from a memory of the industrial protocol conversion unit and perform layer-by-layer encapsulation on the PROFINET PDU data according to a 5G protocol stack to obtain a 5G data packet, the 5G communication unit being responsible for encapsulating a message in the form of the PROFINET protocol into a 5G data packet and performing 5G wireless transmission; and controlling the 5G data packet to be wirelessly transmitted in a 5G network.

[0011] Optionally, before the control processor and the core control unit receive the PROFIBUS DP message sent by the PLC controller, the method further comprises: the PLC controller sending the PROFIBUS DP message to an I / O interface of the processor and the core control unit through an I / O interface of the PLC controller according to a sending period of a control instruction, the control instruction being an instruction for the industrial protocol conversion system to perform protocol conversion of data and implement 5G wireless transmission.

[0012] Optionally, before the PLC controller sends the PROFIBUS DP message to the I / O interface of the processor and core control unit through the I / O interface of the PLC controller according to the sending period of the control instruction, the method further comprises: establishing a network topology and a logical connection relationship for each PLC controller deployed in the industrial field according to the industrial application requirements, and determining the control attributes of each PLC controller, the control attributes being divided into master stations and slave stations; establishing an address mapping table according to the network topology, the logical connection relationship and the control attributes of each PLC controller, the address mapping table being a one-to-one mapping relationship between the address of each PLC controller and the address of the corresponding connected 5G communication module; determining the PROFIBUS DP protocol version, and establishing a wireless connection relationship between the 5G communication unit and the 5G base station.

[0013] Optionally, the control processor and core control unit receive the PROFIBUS DP message sent by the PLC controller and analyze the PROFIBUS DP message to obtain an analyzed PROFIBUS DP message, comprising: controlling the processor and core control unit to determine the validity of the PROFIBUS DP message according to the PROFIBUS DP protocol version; buffering the valid PROFIBUS DP message to the memory of the processor and core control unit, and discarding the invalid PROFIBUS DP message; controlling the processor and core control unit to analyze the valid PROFIBUS DP message in the memory in the storage order to obtain the analyzed PROFIBUS DP message according to the corresponding PROFIBUS DP protocol version, the analyzed PROFIBUS DP message at least including an address code, a protocol data unit and a check code, the protocol data unit including a function code, PLC application data and a data field protocol.

[0014] Optionally, the analyzed PROFIBUS DP message is protocol-converted between the PROFIBUS DP protocol and the PROFINET protocol to obtain PROFINET PDU data, comprising: controlling the PROFIBUS DP micro-control unit in the industrial protocol conversion unit to obtain the analyzed PROFIBUS DP message from the memory of the processor and core control unit for structural analysis and data extraction to obtain preliminary analysis data; removing the address code, the protocol data unit and the check code in the preliminary analysis data to obtain PROFIBUS DP PDU data; controlling the PROFINET micro-control unit in the industrial protocol conversion unit to perform frame structure construction and data encapsulation of the PROFIBUS DP PDU data from the PROFIBUS DP protocol to the PROFINET protocol to obtain the PROFINET PDU data.

[0015] Optionally, the PROFINET micro control unit in the industrial protocol conversion unit is controlled to perform frame structure construction and data encapsulation of the PROFIBUS DP protocol to the PROFINET protocol, to obtain the PROFINET PDU data, including: mapping a data stream of the PROFIBUS DP PDU data to a stream label of the PROFINET protocol; mapping a device address of the PROFIBUS DP PDU data to an IP address of the PROFINET protocol; converting a frame format of the PROFIBUS DP PDU data from the PROFIBUS DP protocol to a frame format under the PROFINET protocol, to obtain the PROFINET PDU data.

[0016] Optionally, the 5G communication unit is controlled to obtain the PROFINET PDU data from a memory of the industrial protocol conversion unit, and to encapsulate the PROFINET PDU data layer by layer according to a 5G protocol stack, to obtain a 5G data packet, including: controlling a service data adaptation protocol layer in the 5G communication unit to perform service adaptation on the PROFINET PDU data, to complete mapping to a wireless bearer in a form of a stream, to obtain SDAP PDU data; controlling a packet data convergence protocol layer in the 5G communication unit to perform, on the PDU data, header compression, data encryption and integrity protection processing in sequence, to obtain PDCP PDU data; controlling a radio link control layer in the 5G communication unit to process the received PDCP PDU data, and to perform data processing on the PDCP PDU data according to a configured working mode, to generate RLC PDU data, and to wait for a transmission indication of a medium access control layer, the working mode including an acknowledgement mode, a non-acknowledgement mode and a transparent mode, the data processing including at least transmission of an upper layer PDU data, error correction through an automatic repeat request and reordering of data PDU, and the transmission indication being transmission of the RLC PDU data to the medium access control layer; controlling the medium access control layer in the 5G communication unit to instruct the radio link control layer to transmit the RLC PDU data to the medium access control layer, the medium access control layer encapsulating the RLC PDU data as MAC PDU data; and controlling a physical layer in the 5G communication unit to convert the MAC PDU data into a signal for transmission on a target wireless channel, to obtain the 5G data packet.

[0017] According to another aspect of the present application, there is provided a device comprising: a first control unit configured to control a processor and a core control unit to receive a PROFIBUS DP message sent by a PLC controller and to parse the PROFIBUS DP message to obtain a parsed PROFIBUS DP message, the processor and the core control unit being configured to implement overall control and scheduling and to manage and configure an industrial protocol conversion unit and a 5G communication unit, the PROFIBUS DP message being a message generated using a PROFIBUS DP protocol; a second control unit configured to control the industrial protocol conversion unit to obtain the parsed PROFIBUS DP message and to convert the parsed PROFIBUS DP message between the PROFIBUS DP protocol and a PROFINET protocol to obtain PROFINET PDU data, the industrial protocol conversion unit supporting conversion between the PROFINET protocol and the PROFIBUS DP protocol, the PROFINET PDU data being PDU data generated using the PROFINET protocol; a third control unit configured to control the 5G communication unit to obtain the PROFINET PDU data from a memory of the industrial protocol conversion unit and to encapsulate the PROFINET PDU data layer by layer according to a 5G protocol stack to obtain a 5G data packet, the 5G communication unit being responsible for encapsulating a message in the form of the PROFINET protocol into a 5G data packet and performing 5G wireless transmission; and a fourth control unit configured to control wireless transmission of the 5G data packet in a 5G network.

[0018] According to still another aspect of the present application, there is provided a computer-readable storage medium comprising a stored program, wherein the program, when executed, controls a device in which the computer-readable storage medium is located to perform any of the methods.

[0019] According to yet another aspect of the present application, there is provided a protocol adaptation system comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs comprise instructions for performing any of the methods.

[0020] According to the technical scheme, in the industrial Ethernet and wireless network data exchange method, first, the control processor and the core control unit receive the PROFIBUS DP message sent by the PLC controller, and analyze the PROFIBUS DP message to obtain the analyzed PROFIBUS DP message, the processor and the core control unit are used for realizing the overall control and scheduling of the system, and are used for managing and configuring the industrial protocol conversion unit and the 5G communication unit, the PROFIBUS DP message is a message generated by using the PROFIBUS DP protocol; then, the industrial protocol conversion unit is controlled to obtain the analyzed PROFIBUS DP message, and the analyzed PROFIBUS DP message is converted between the PROFIBUS DP protocol and the PROFINET protocol to obtain the PROFINET PDU data, the industrial protocol conversion unit supports the conversion between the PROFINET protocol and the PROFIBUS DP protocol, and the PROFIBUS DP PDU data is PDU data generated by using the PROFINET protocol; then, the 5G communication unit is controlled to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and the PROFINET PDU data is encapsulated layer by layer according to the 5G protocol stack to obtain the 5G data packet, and the 5G communication unit is responsible for encapsulating the message in the form of the PROFINET protocol into the 5G data packet and performing 5G wireless transmission; finally, the 5G data packet is controlled to be wirelessly transmitted in the 5G network. The application sends the PROFIBUS message to the processor and the core control unit through the PLC controller; the processor and the core control unit receive the PROFIBUS message sent by the PLC controller, and analyze the PROFIBUS message; the industrial protocol conversion unit obtains the analyzed PROFIBUS message, and converts the PROFIBUS protocol and the PROFINET protocol to obtain the PROFINET PDU data; the 5G communication unit obtains the PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulates the PROFINET PDU data according to the 5G protocol to generate the 5G data packet, and the 5G data packet is wirelessly transmitted in the 5G LAN network. Through the above protocol adaptation process, the conversion of the 5G protocol data and the PROFINET\PROFIBUS protocol data is completed, and the interconnection of heterogeneous protocols is realized. A wireless communication channel is built between the PLC controllers, and super-reliable and real-time communication between the PLC controllers is realized. The application solves the problem that in the prior art, a protocol adapter or a protocol converter needs to be introduced to realize the conversion of the PROFIBUS protocol and the PROFINET protocol, and the transmission path is long and the dependency relationship is complex. BRIEF DESCRIPTION OF DRAWINGS

[0021] Figure 1A hardware structure block diagram of a mobile terminal for performing an industrial Ethernet and wireless network data exchange method is shown according to an embodiment of the present application;

[0022] Figure 2 A flowchart of an industrial Ethernet and wireless network data exchange method is shown according to an embodiment of the present application;

[0023] Figure 3 A structure diagram of a protocol adaptation system is shown according to an embodiment of the present application;

[0024] Figure 4 A flowchart of a specific industrial Ethernet and wireless network data exchange method is shown according to an embodiment of the present application;

[0025] Figure 5 A comparison diagram of PROFINET and PROFIBUS DP processing data differences is shown according to an embodiment of the present application;

[0026] Figure 6 A process diagram of PROFINET DP PDU encapsulation into a 5G data packet and wireless transmission is shown according to an embodiment of the present application;

[0027] Figure 7 A structure block diagram of an industrial Ethernet and wireless network data exchange device is shown according to an embodiment of the present application.

[0028] Among the above figures, the following reference signs are included:

[0029] 102, processor; 104, memory; 106, transmission device; 108, input and output device. DETAILED DESCRIPTION

[0030] It should be noted that the embodiments and features in the present application can be combined with each other without conflict. The technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and in the above drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] For ease of description, the following describes some nouns or terms related to the embodiments of the present application:

[0034] Industrial Ethernet is an industrial network based on Ethernet technology and TCP / IP technology, with the advantages of fast speed, high stability, strong anti-noise ability, etc. It is widely used in industrial automation control, remote monitoring and maintenance, data acquisition and processing, Internet of Things applications and industrial Internet applications, etc. Industrial Ethernet integrates the traditional information management layer, process monitoring layer and field device layer of enterprises into one, making data transmission faster and more real-time, and can be seamlessly integrated with Internet;

[0035] PROFIBUS DP is a fieldbus communication protocol used in the field of industrial automation, mainly used for high-speed data transmission at the device level, and is part of the international industrial fieldbus protocol standard IEC61158. PROFIBUS DP protocol has the feature of plug and play, and can realize efficient device connection and data exchange, suitable for high-speed data transmission requirements in factory automation. Among them, PROFIBUS DP can be subdivided into PROFIBUS DP-DP, PROFIBUS DP-PA and PROFIBUS DP-FMS to configure different protocol versions;

[0036] PROFINET is an automation bus standard based on industrial Ethernet technology, which is a high-performance, high-reliability and high-real-time communication protocol widely used in industrial automation field. PROFINET adopts TCP / IP and IT standards, which can realize continuous communication of data from business management layer to field layer, and has flexible network topology structure, such as linear, star, tree and ring topology.

[0037] As described in the background section, in existing industrial environments, due to the different communication protocols supported by terminal devices, adapters / converters must be introduced, resulting in long transmission paths and complex dependencies. To address the problem of long transmission paths and complex dependencies in existing technologies that require the introduction of protocol adapters or protocol converters to achieve PROFIBUS and PROFINET protocol conversion, embodiments of this application provide an industrial Ethernet and wireless network data exchange method, an industrial Ethernet and wireless network data exchange device, a computer-readable storage medium, and a protocol adaptation system.

[0038] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0039] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for an industrial Ethernet and wireless network data exchange method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0040] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the industrial Ethernet and wireless network data exchange method in the embodiments of the present application. The processor 102 performs various functional applications and data processing, i.e., implements the above method, by running the computer programs stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to the mobile terminal through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The specific examples of the above network can include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.

[0041] In the embodiments, an industrial Ethernet and wireless network data exchange method running on a mobile terminal, a computer terminal, or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0042] Figure 2 is a flowchart of the industrial Ethernet and wireless network data exchange method according to the embodiments of the present application. As shown in Figure 2 , the method includes the following steps:

[0043] In step S201, a control processor and a core control unit receive a PROFIBUS DP message sent by a PLC controller, and parse the PROFIBUS DP message to obtain a parsed PROFIBUS DP message. The processor and the core control unit are used to implement overall system control and scheduling, and manage and configure an industrial protocol conversion unit and a 5G communication unit. The PROFIBUS DP message is a message generated by using a PROFIBUS DP protocol.

[0044] Specifically, Figure 3A structural block diagram of a protocol adaptation system is shown, which includes a processor and core control unit, an industrial protocol conversion unit, a 5G communication unit, a network interface, a power supply unit, and a heat dissipation unit. The protocol adaptation system is connected with the I / O interface of the PLC controller through the I / O interface in the network interface, wherein the PLC controller adopts PROFIBUSDP protocol for communication and networking, and can be configured as a master station or a slave station. 1, the processor and core control unit, which is the main body of the core control unit with a high-performance ARM architecture multi-core processor, is used to process the industrial protocol conversion task and wireless network data transmission between PROFINET and PROFIBUSDP protocols. The processor and core control unit is responsible for the overall control and scheduling of the device, covering the management and configuration of the industrial protocol conversion unit and the 5G communication unit, including: 1) receiving the PROFIBUSDP message controlled by the PLC controller through the I / O network interface, determining the PROFIBUSDP protocol version, and judging the validity of the message according to the PROFIBUSDP protocol version. For valid PROFIBUSDP messages, cache to the memory; for invalid PROFIBUSDP messages, discard and do not perform the next step operation; 2) establish the mapping relationship between the 5G communication unit address of the current protocol adaptation device and the PLC controller address connected thereto, to form an address mapping table corresponding to the multiple protocol adaptation devices and the multiple PLC controllers; 3) and through the industrial protocol conversion unit to analyze and convert the message; 4) encapsulate the 5G protocol and connect it with the 5G base station wirelessly through the 5G communication unit.

[0045] In addition, the network interface includes a wired interface, a wireless interface, and an expansion interface, specifically as follows: 1) the wired interface is a PN network interface with an RJ45 interface and a DP interface based on the RS485 bus protocol, which is adapted to multiple wire terminals and has a built-in terminal resistance, supporting wired connection and data transmission of industrial equipment. 2) Wireless interface: supports Wi-Fi 6E standard, provides high-speed wireless LAN connection, meets the wireless communication needs of industrial field. 3) Expansion interface: covers USB interface, serial port, GPIO interface, supports user expansion and customization according to actual needs.

[0046] The power supply unit adopts a wide voltage input switching power supply design to realize efficient interface power management and ensure stable operation of the device in different environments.

[0047] The heat dissipation system includes two heat dissipation fans and a heat sink welded on the back of the core PCB board to reduce the heat generated during device operation and improve the reliability and service life of the device.

[0048] Step S202, the control industrial protocol conversion unit obtains the above-mentioned parsed PROFIBUSDP message, and converts the above-mentioned parsed PROFIBUSDP message between the above-mentioned PROFIBUSDP protocol and the PROFINET protocol to obtain the PROFINET PDU data, the above-mentioned industrial protocol conversion unit supports the conversion between the PROFINET protocol and the PROFIBUSDP protocol, and the above-mentioned PROFIBUSDP PDU data is PDU data generated by using the PROFINET protocol.

[0049] Specifically, as shown in Figure 3 The above-mentioned industrial protocol conversion unit is composed of a protocol adaptation microchip as the main body, and further includes a PROFIBUS protocol micro-control unit and a PROFINET protocol micro-control unit, supports the conversion of the PROFINET and the PROFIBUSDP industrial communication protocol, such as flow label mapping, address mapping, frame format conversion, etc., realizes the data exchange and communication between different devices, and the specific implementation of the protocol conversion includes: 1) parsing the valid PROFIBUSDP message stored in the memory of the processor and the core control unit, obtaining the address code, PDU and check code according to the PROFIBUSDP protocol version, and then removing the address code, check code and other information to obtain the PROFIBUSDP PDU data, wherein the PDU includes function code, PLC application data and data field protocol field; 2) the protocol adaptation microchip performs protocol conversion on the above-mentioned PROFIBUSDP PDU data by calling a communication data mapping relationship table, according to the communication data relationship mapping table to confirm what kind of data protocol head adjustment, address conversion and protocol function mapping are required by the PROFIBUSDP communication request this time, to obtain the above-mentioned PROFINET PDU data, and the data content of the above-mentioned communication data relationship mapping table includes: basic PLC information, master station DP configuration information, master station communication state, slave station DP configuration information, slave station communication state, slave station control, etc. The protocol header contains source address, target address, data length, checksum, etc. In the protocol conversion process, the header field is added, deleted or modified according to the industrial bus protocol. 3) cache the valid converted PROFINET PDU data to the memory.

[0050] Step S203, the control 5G communication unit obtains the above-mentioned PROFINET PDU data from the memory of the above-mentioned industrial protocol conversion unit, and encapsulates the above-mentioned PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet, and the above-mentioned 5G communication unit is responsible for encapsulating the message in the form of the PROFINET protocol into a 5G data packet and performing 5G wireless transmission.

[0051] Specifically, as shown in Figure 3As shown, the above-mentioned 5G communication unit is mainly composed of a 5G baseband chip supporting the 5G NR standard, and is connected with components such as a radio frequency front end (RF Front-End), a power amplifier (PA), a low noise amplifier (LNA), a filter, a 5G cellular baseband processor, a small board power supply module, a memory, and a multi-antenna technology (MIMO) antenna array, etc. It is responsible for encapsulating PROFINET messages into 5G data packets and performing 5G wireless transmission, including the following steps: 1) obtaining the PROFINET PDU data of the industrial protocol conversion unit; 2) taking the received PROFINET PDU data as the service data unit of the 5G protocol application layer, and encapsulating it layer by layer according to the 5G protocol stack, that is, adding, deleting or modifying the header and tail fields in turn. The 5G protocol header contains some information that is not in the PROFINET protocol header, such as the quality of service indicator. These fields are added during the conversion process, and finally a 5G data packet is formed. 3) According to the address mapping table in the processor and the core control unit memory, send a transmission request to the base station that opens the 5G LAN license function, access the 5G LAN network through the 5G base station scheduling, and establish an end-to-end connection with the base station to transmit the 5G data packet in the wireless network.

[0052] It should be noted that the PROFINET protocol requires high real-time and low-latency communication to ensure accurate control and synchronous operation in industrial automation processes. With the development of Release-16 to Release-18, the functions and performance of 5G LAN are continuously enhanced, including group member traffic characteristics and performance monitoring, cross-SMF management VN Group, cross-VN Group communication, group management and group state reporting enhancement, etc. These improvements enable 5G LAN to better meet the needs of various industrial scenarios. Furthermore, 5G LAN technology is highly adapted to PROFINET and other industrial Ethernet protocols due to its low latency, high reliability, Ethernet compatibility, layer-2 networking capabilities, and support for multiple protocols, providing an efficient, secure, flexible, and cost-effective network solution for industrial automation.

[0053] Step S204, control the wireless transmission of the above-mentioned 5G data packet in the 5G network.

[0054] Specifically, 5G data packets are transmitted wirelessly in a 5G LAN network. The addition of the 5G LAN breaks the correspondence between the configuration view of the factory automation system and the underlying network view. Instead of building a local area network through several switches, terminal devices are interconnected with devices in the factory wired network through CPE, base stations, UPF (User Port Function), and other devices in the 5G network. The 5G base station and its backend core network elements schedule devices based on information such as industrial terminal devices, service status, channel status, and receiving address, and the 5G communication module accesses the 5G LAN network. Specifically, it includes:

[0055] Industrial terminal grouping: By modifying the data in the Unified Data Management (UDM) database, the specified industrial terminal numbers are subscribed to services and grouped into the same or different Virtual Network (VN) groups.

[0056] 5G PDU session establishment request: UE initiates a request to establish a PDU session to the SMF (Service Management Function), carrying slice information, DNN (Data Network Name) information, PDU session ID, etc.

[0057] User authentication: UE carries user information and requests to reach SMF, which will be forwarded to PCF (Policy Control Function) through UPF, and then PCF will be forwarded to UDM. Identity authentication is performed based on the user information stored in the database.

[0058] Policy decision and resource allocation: After authentication, PCF tells SMF the corresponding transmission policy, and SMF commands UPF and access network to open data connection for corresponding services.

[0059] Local area network communication management: When a 5G LAN group member initiates a PDU session, SMF downloads the user's group subscription information from UDM and manages the corresponding access UPF based on group subscription to manage local area network communication.

[0060] Data forwarding: When multiple UPFs serve the same 5G VN group, UPFs can forward data through N19 interface sessions.

[0061] The application completes the conversion of 5G protocol data and PROFINET\PROFIBUS DP protocol data through the above protocol adaptation process, and realizes the interconnection and intercommunication of heterogeneous protocols. By integrating the protocol adaptation device and method of the application for the PLC controller, the PDU data is processed and encapsulated at each level to ensure that the data can be efficiently and reliably transmitted in the 5GLAN network wireless channel, a wireless communication channel is built between the PLC controllers, and the ultra-reliable strong real-time communication between the PLC controllers is realized. Through the wireless of the PLC controller, the wireless transformation of the factory is promoted under the premise of protecting the existing PLC controller assets, and the intelligent factory is helped to be established.

[0062] In this embodiment, first, the processor and core control unit receives the PROFIBUS DP message sent by the PLC controller, analyzes the PROFIBUS DP message, and obtains the analyzed PROFIBUS DP message. The processor and core control unit is used to realize the overall control and scheduling of the system, and manages and configures the industrial protocol conversion unit and the 5G communication unit. The PROFIBUS DP message is a message generated by using the PROFIBUS DP protocol. Then, the industrial protocol conversion unit obtains the analyzed PROFIBUS DP message, and converts the analyzed PROFIBUS DP message between the PROFIBUS DP protocol and the PROFINET protocol to obtain the PROFINET PDU data. The industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIBUS DP protocol. The PROFIBUS DP PDU data is PDU data generated by using the PROFINET protocol. Then, the 5G communication unit obtains the PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulates the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet. The 5G communication unit is responsible for encapsulating the message in the form of the PROFINET protocol into a 5G data packet and performing 5G wireless transmission. Finally, the 5G data packet is wirelessly transmitted in the 5G network. The application sends the PROFIBUS message to the processor and core control unit through the PLC controller. The processor and core control unit receives the PROFIBUS message sent by the PLC controller, analyzes the PROFIBUS message, and obtains the analyzed PROFIBUS message. The industrial protocol conversion unit obtains the analyzed PROFIBUS message, converts the PROFIBUS protocol and the PROFINET protocol, and obtains the PROFINET PDU data. The 5G communication unit obtains the PROFINET PDU data from the memory of the industrial protocol conversion unit, encapsulates the PROFINET PDU data according to the 5G protocol, generates a 5G data packet, and wirelessly transmits the 5G data packet in the 5G LAN network. Through the above protocol adaptation process, the conversion between the 5G protocol data and the PROFINET\PROFIBUS protocol data is completed, and the interconnection of heterogeneous protocols is realized. A wireless communication channel is built between the PLC controllers, and super-reliable and strong real-time communication between the PLC controllers is realized. The application solves the problem that in the prior art, a protocol adapter or a protocol converter needs to be introduced to realize conversion between the PROFIBUS protocol and the PROFINET protocol, and the transmission path is long and the dependency relationship is complex.

[0063] In order for those skilled in the art to more clearly understand the technical solutions of the present application, the implementation process of the industrial Ethernet and wireless network data exchange method of the present application will be described in detail below in conjunction with specific embodiments.

[0064] In order to improve the wireless conversion of the protocol, in an alternative embodiment, before step S201, the method further comprises:

[0065] In step S301, the PLC controller sends the PROFIBUS DP message to the I / O interface of the processor and core control unit through the I / O interface of the PLC controller according to the sending period of the control instruction. The control instruction is an instruction for controlling the protocol conversion system to perform data protocol conversion and realize 5G wireless transmission.

[0066] In the above embodiment, the PLC controller sends the PROFIBUS DP message to the I / O interface of the processor and core control unit through the I / O interface of the PLC controller according to the sending period of the control instruction. The PLC controller uses the PROFIBUS DP protocol for communication and networking, and can be configured as a PROFIBUS master station or a PROFIBUS slave station, as shown in Figure 3 The PLC controller sends the PROFIBUS DP message to the processor and core control unit according to the predetermined periodic control instruction. The periodic sending of the control instruction ensures the real-time and continuity of industrial control, which is crucial for industrial automation systems that require accurate control and real-time monitoring. The PLC controller sends the PROFIBUS DP message, which is the starting point of the entire data conversion and transmission process, starting the data conversion process from the industrial Ethernet to the wireless network. Through this step, data begins to flow in the system, thereby activating the subsequent protocol analysis, conversion and encapsulation mechanism, realizing the wireless of the PLC controller and supporting industrial wireless control.

[0067] In order to improve the communication efficiency, flexibility and scalability of the industrial automation system, in an alternative embodiment, before step S301, the method further comprises:

[0068] In step S401, a network topology and a logical connection relationship are established for each PLC controller deployed in the industrial field according to the industrial application requirements, and the control attributes of each PLC controller are determined. The control attributes are divided into master stations and slave stations.

[0069] In step S402, an address mapping table is established according to the network topology, the logical connection relationship and the control attributes of each PLC controller. The address mapping table is a one-to-one mapping relationship between the address of each PLC controller and the address of the corresponding connected 5G communication module.

[0070] Step S403, establish the PROFIBUS DP protocol version, and establish the wireless connection relationship between the 5G communication unit and the 5G base station.

[0071] In the above embodiment, as shown in Figure 4 The system initialization includes the following steps: 1) Establish an address mapping table. Engineers establish a network topology and logical connection for PLC controllers deployed in industrial sites according to industrial application needs, determine control master stations and slave stations. On this basis, a one-to-one mapping relationship between the address of each PLC controller and the address of the 5G communication module connected thereto is established to form an address mapping table and stored in the protocol conversion module of each protocol adaptation system. 2) Establish the PROFIBUS protocol version. Engineers configure different protocol versions for PROFIBUS-DP, PROFIBUS-PA and PROFIBUS-FMS according to needs. This embodiment takes the most widely used PROFIBUS-DP as an example to illustrate. 3) Establish 5G wireless network connection relationship. After the system is powered on and operated, all PLC controllers and protocol adaptation devices complete initialization. All protocol adaptation systems in the industrial system establish wireless connection relationship with the 5G base station through the 5G communication module. The above processes jointly act on the construction of a complete data transmission link from the industrial site device to the 5G wireless network, realizing the seamless connection of industrial Ethernet data and wireless network, improving the communication efficiency, flexibility and expansibility of the industrial automation system. It is a key technical support for the development of industrial wireless and intelligent.

[0072] In order to avoid the analysis and processing of invalid data, in an optional embodiment, the above step S201 includes:

[0073] Step S2011, control the processor and the core control unit to determine the validity of the PROFIBUS DP message according to the PROFIBUS DP protocol version;

[0074] Step S2012, cache the valid PROFIBUS DP message to the memory of the processor and the core control unit, and discard the invalid PROFIBUS DP message;

[0075] Step S2013, control the processor and the core control unit to analyze the valid PROFIBUS DP message in the memory according to the storage order, so as to obtain the analyzed PROFIBUS DP message according to the corresponding PROFIBUS DP protocol version. The analyzed PROFIBUS DP message at least includes address code, protocol data unit and check code, and the protocol data unit includes function code, PLC application data and data field protocol.

[0076] In the above embodiment, the processor and the core control unit receive the PROFIBUS message sent by the PLC controller through the I / O interface, and determine the validity of the data according to the PROFIBUS protocol version. For valid data, it is cached to the memory; for invalid data, it is discarded and no longer operated. By verifying whether the message conforms to a specific PROFIBUS DP protocol version, the integrity and correct format of the data can be ensured, and communication failure caused by data format error can be avoided. Taking PROFIBUS-DP as an example, the physical layer uses RS485 communication, and each character is composed of 1 start bit, 8 data bits, 1 even parity bit and 1 end bit. When the baud rate is 1.5 Mbps, the time of each bit is 0.6667 μs, and when the check does not meet, it is judged that the received message is incomplete, the message is discarded, and the memory data is cleared. 2) The processor and the core control unit sequentially analyze the cached valid PROFIBUS message, and according to different PROFIBUS protocol versions, obtain address code, protocol data unit (PDU) and check code and other information. Avoiding the analysis and processing of invalid data, the working burden of the processor and the core control unit is reduced, and the overall response speed of the system is improved. Figure 5 The difference between PROFINET and PROFIBUS DP in processing data is shown, and the information added, deleted or modified by each layer of protocol conversion is shown, such as Figure 5 As shown, when processing data, only the physical layer and the data link layer of the PROFIBUS DP protocol process the message analysis and processing to obtain the final analysis PROFIBUS DP message. Only valid messages are processed subsequently, reducing the waste of invalid data and improving the data processing efficiency of the processor and the core control unit.

[0077] In order to enhance the interoperability of heterogeneous devices and service extensibility of industrial network, in an optional implementation, the above step S202 includes:

[0078] Step S2021, control the PROFIBUS DP micro control unit in the above industrial protocol conversion unit to obtain the above analysis PROFIBUS DP message from the memory of the above processor and core control unit for structural analysis and data extraction, and obtain preliminary analysis data;

[0079] Step S2022, remove the address code, protocol data unit and check code in the above preliminary analysis data to obtain PROFIBUS DP PDU data;

[0080] In step S2023, the PROFINET micro control unit in the industrial protocol conversion unit performs the PROFIBUS DP protocol conversion to the frame structure construction and data encapsulation of the PROFINET protocol on the PROFIBUS DP PDU data to obtain the PROFINET PDU data.

[0081] In the above embodiment, the PROFIBUS DP micro control unit in the industrial protocol conversion unit obtains the parsed PROFIBUS DP message from the processor and the memory of the core control unit, performs the structure parsing and data extraction on the PROFIBUS DP data frame, and obtains the address code, PDU and check code according to the determined version of the PROFIBUS DP protocol. The PDU includes the function code, PLC application data and data field protocol field. Then, the address code, check code and other information are removed to obtain the PROFIBUS DP PDU data. The preliminary data after parsing removes the address code and check code and other fields in the message, reduces the redundant information in the subsequent transmission, improves the transmission efficiency, prepares the data field for the data encapsulation of the PROFINET protocol, and ensures that the converted data meets the format requirements of the PROFINET protocol. 2) The PROFINET micro control unit in the industrial protocol conversion unit implements the frame structure construction and data encapsulation of the PROFIBUS DP to the PROFINET protocol, including the flow label mapping, address mapping and frame format conversion. The converted data is encapsulated to meet the data communication requirements of the PROFINET protocol, including adding the IP header, TCP / UDP header and possibly other service layer headers. 3) The parsed and converted PROFINET PDU data is stored in the memory of the industrial protocol conversion unit. In summary, through the parsing, simplification and encapsulation of data, the conversion from the PROFIBUS DP to the PROFINET protocol is realized, which provides necessary technical preparation for the wireless transmission of industrial data. This series of operations not only improves the efficiency and reliability of data transmission, but also enhances the interoperability and service extensibility of heterogeneous devices in industrial networks, which is a key link in the data transmission in the process of industrial automation and intelligent manufacturing.

[0082] In order to accurately perform protocol conversion, in an optional embodiment, the above step S2023 includes:

[0083] In step S20231, the data stream of the PROFIBUS DP PDU data is mapped to the flow label of the PROFINET protocol.

[0084] In step S20232, the device address of the PROFIBUS DP PDU data is mapped to the IP address of the PROFINET protocol.

[0085] Step S20233, converting the frame format of the PROFIBUS DP PDU data from the PROFIBUS DP protocol to the frame format under the PROFINET protocol, to obtain the PROFINET PDU data.

[0086] In the above embodiment, the data stream of the PROFIBUS DP PDU data is mapped to the stream label of the PROFINET through the VCR ID, ensuring the uniqueness and correctness of the data stream. The VCR ID is the unique identifier of the virtual communication relationship, which is used to realize the communication of different processes in the application layer. The device address of the PROFIBUS DP PDU data is mapped to the IP address of the PROFINET. An address mapping table is needed to maintain this mapping relationship and to look up and replace in the conversion process; by calling the data mapping relationship table of the processor and the core control unit, the header adjustment of the data protocol, address conversion, protocol function mapping are confirmed according to the data mapping table to obtain the data protocol of this PROFIBUS DP communication request, including the basic PLC information, the master station DP configuration information, the master station communication state, the slave station DP configuration information, the slave station communication state, the slave station control, etc. In the PROFIBUS DP to PROFINET protocol frame format conversion process, the PROFINET supports multiple communication modes, including TCP / IP, UDP, etc., while the PROFIBUS DP is based on the master-slave communication mode. Specifically, the physical layer performs protocol adaptation; the data link layer converts the frame structure of the DP to the Ethernet frame structure of the PROFINET; the network layer adds the IP header, including the source IP and target IP addresses; the transport layer adds the TCP / UDP header, ensuring end-to-end data transmission; the application layer encapsulates the data according to the application layer protocol of the PROFINET, and adds the IO, alarm, record and other service information supported by the PROFINET, such as Figure 5 as shown.

[0087] In order to ensure the efficient and secure transmission of industrial data in the 5G wireless network, in an optional implementation, the above step S203 includes:

[0088] Step S2031, controlling the service adaptation protocol layer in the 5G communication unit to perform service adaptation on the PROFINET PDU data, to complete the mapping to the wireless bearer in the form of a stream, to obtain the SDAP PDU data;

[0089] Step S2032, controlling the packet data convergence protocol layer in the 5G communication unit to perform header compression, data encryption and integrity protection processing on the PDU data in sequence, to obtain the PDCP PDU data;

[0090] Step S2033, control the radio link control layer in the above-mentioned 5G communication unit to process the received PDCP PDU data, and perform data processing on the PDCP PDU data according to the configured working mode to generate RLC PDU data, and wait for the transmission instruction of the medium access control layer, the working mode includes the confirmation mode, the non-confirmation mode and the transparent mode, the data processing at least includes the transmission of the upper layer PDU data, the error correction through the automatic retransmission request and the reordering of the data PDU, and the transmission instruction is to transmit the RLC PDU data to the medium access control layer;

[0091] Step S2034, control the medium access control layer in the above-mentioned 5G communication unit to instruct the radio link control layer to transmit the RLC PDU data to the medium access control layer, and the medium access control layer encapsulates the RLC PDU data into MAC PDU data;

[0092] Step S2035, control the physical layer in the above-mentioned 5G communication unit to convert the MAC PDU data into a signal for transmission on the target wireless channel to obtain the 5G data packet.

[0093] In the above-mentioned embodiment, Figure 6 The process diagram of encapsulating the PROFINET DP PDU into the 5G data packet and wirelessly transmitting according to the embodiment of the application is shown, as Figure 6As shown, first, the Service Data Adaptation Protocol Layer (SDAP) processing, the PROFINET PDU data is adapted to the service, to complete the mapping to the wireless bearer in the form of flow, to ensure that the data can be correctly mapped to the wireless transmission link. Then, the Packet Data Convergence Protocol Layer (PDCP) layer processing, responsible for the header compression of PDU data, data encryption, integrity protection, and provides 5G RLC with the order delivery of upper layer PDU. Header compression reduces the size of the header, improves transmission efficiency, reduces the overhead of wireless transmission; data encryption protects the transmission security of data in the wireless network, prevents data from being eavesdropped or tampered with; through the integrity check, it is ensured that the data is not changed in the transmission process, and the reliability of data transmission is improved. After that, the Radio Link Control Layer (RLC) layer processing, the RLC layer receives the data of the PDCP layer, and processes according to the configured Acknowledged Mode (AM), Unacknowledged Mode (UM) and Transparent Mode (TM), including the transmission of upper layer PDU, error correction through Automatic Repeat-reQuest (ARQ) (only for AM data transmission), data PDU reordering (only for UM and AM data transmission), etc. In 5G NR, the RLC layer can immediately generate RLC PDU and save it in the transmission warehouse, waiting for the transmission instruction of the MAC layer. After that, the Medium Access Control Layer (MAC) layer processing, responsible for the scheduling of wireless resources, allocating resources on the physical shared channel (PDSCH / PUSCH) for UE, and selecting the appropriate Modulation and Coding Scheme (MCS) for data transmission. The MAC layer instructs the RLC layer to have a transmission opportunity and specifies the amount of data that can be transmitted, and the RLC layer delivers the RLC PDU to the MAC layer according to the instruction. Finally, the Physical Layer (PHY) layer processing, the MAC layer further encapsulates the RLC PDU into MAC PDU and adds the MAC header, and then delivers it to the physical layer. The physical layer converts the MAC PDU into a signal suitable for wireless channel transmission and sends it out through the antenna. The encapsulation process from the PROFINET protocol data unit (PDU) to the 5G data packet is described in detail in the above embodiment, and this series of operations ensures that industrial data can be transmitted efficiently and securely in the 5G wireless network.In summary, the encapsulation process from PROFINET PDU data to 5G data packets covers data stream adaptation, compression, encryption, error correction, reordering, resource scheduling, encapsulation, and signal conversion, etc. This series of operations not only ensures the efficient and secure transmission of industrial data in the 5G wireless network, but also meets the strict requirements of real-time, reliability and security in industrial control scenarios. The entire process fully utilizes the low latency, high bandwidth and high reliability characteristics of the 5G network, providing key technical support for industrial wireless.

[0094] It should be noted that the present application has the following advantages:

[0095] 1. Rapid networking of industrial equipment: The wireless of the controller quickly adapts to environmental changes, enabling remote data acquisition, monitoring and control services, and achieving rapid networking of industrial equipment. It not only protects the asset investment of existing PLC controllers, but also promotes the wireless transformation and intelligent construction of factories. It seamlessly integrates with existing PLC controllers, significantly improving the flexibility and efficiency of industrial networking.

[0096] 2. Heterogeneous device interconnection and message transmission optimization: The present application handles different types of industrial protocol messages, enabling seamless communication between heterogeneous devices. By simplifying the network architecture and reducing the need for protocol conversion, it improves the efficiency of message transmission, highly adapts to multi-device, multi-protocol business scenarios, and promotes the collaborative work and data exchange between industrial devices.

[0097] 3. 5G LAN network realizes industrial protocol wireless transmission: A new method of industrial protocol transmission using the wireless transmission capabilities of 5G LAN network, with the technical advantages of high reliability, low latency, wide coverage, high bandwidth and high security, as well as flexible networking, internal and external network integration, easy coverage and cost reduction, etc. It provides strong support for the wireless and digital transformation of industrial scenarios, and improves production efficiency and safety.

[0098] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0099] The embodiment of the present application further provides an industrial Ethernet and wireless network data exchange device. It should be noted that the industrial Ethernet and wireless network data exchange device of the embodiment of the present application can be used to execute the industrial Ethernet and wireless network data exchange method provided by the embodiment of the present application. The device is used to realize the above-mentioned embodiment and preferred embodiment, and the description has been made and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiment is preferably realized in software, the realization of hardware, or the combination of software and hardware is also possible and conceived.

[0100] The industrial Ethernet and wireless network data exchange device provided by the embodiment of the present application is introduced below.

[0101] Figure 7 is a structural block diagram of the industrial Ethernet and wireless network data exchange device according to the embodiment of the present application. As shown in Figure 7 , the device comprises:

[0102] The first control unit 10 is used to control the processor and the core control unit to receive the PROFIBUS DP message sent by the PLC controller, and to analyze the PROFIBUS DP message to obtain the analyzed PROFIBUS DP message. The processor and the core control unit are used to realize the overall control and scheduling of the system, and to manage and configure the industrial protocol conversion unit and the 5G communication unit. The PROFIBUS DP message is a message generated by using the PROFIBUS DP protocol.

[0103] Specifically, Figure 3A structural block diagram of a protocol adaptation system is shown, which includes a processor and core control unit, an industrial protocol conversion unit, a 5G communication unit, a network interface, a power supply unit, and a heat dissipation unit. The protocol adaptation system is connected with the I / O interface of the PLC controller through the I / O interface in the network interface, wherein the PLC controller uses PROFIBUSDP protocol for communication and networking, and can be configured as a master station or a slave station. 1. The processor and core control unit, which takes a high-performance ARM architecture multi-core processor as the main body of the core control unit, processes the industrial protocol conversion task and wireless network data transmission between PROFINET and PROFIBUSDP protocols. The processor and core control unit are responsible for the overall control and scheduling of the device, including the management and configuration of the industrial protocol conversion unit and the 5G communication unit, including: 1) receiving the PROFIBUSDP message controlled by the PLC controller through the I / O network interface, determining the PROFIBUSDP protocol version, and judging the validity of the message according to the PROFIBUSDP protocol version. For valid PROFIBUSDP messages, cache to memory; for invalid PROFIBUSDP messages, discard and do not perform the next step of operation; 2) establish the mapping relationship between the 5G communication unit address of the current protocol adaptation device and the address of the PLC controller connected thereto, to form an address mapping table corresponding to multiple protocol adaptation devices and multiple PLC controllers; 3) and through the industrial protocol conversion unit to analyze and convert the message; 4) encapsulate the 5G protocol and connect it with the 5G base station through the 5G communication unit.

[0104] The second control unit 20 is used to control the industrial protocol conversion unit to obtain the parsed PROFIBUSDP message, and to convert the parsed PROFIBUSDP message between the PROFIBUSDP protocol and the PROFINET protocol to obtain the PROFINET PDU data. The industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIBUSDP protocol, and the PROFIBUSDP PDU data is PDU data generated by using the PROFINET protocol.

[0105] Specifically, as Figure 3As shown, the industrial protocol conversion unit is composed of a protocol adaptation microchip, and further includes a PROFIBUS protocol micro-control unit and a PROFINET protocol micro-control unit. The industrial protocol conversion unit supports conversion between the PROFINET and PROFIBUS DP industrial communication protocols, such as flow label mapping, address mapping, frame format conversion, etc., to realize data exchange and communication between different devices. The specific implementation of the protocol conversion includes: 1) analyzing the valid PROFIBUS DP message stored in the memory of the processor and the core control unit, obtaining the address code, PDU and check code according to the PROFIBUS DP protocol version, and then removing the address code, check code and other information to obtain the PROFIBUS DP PDU data, wherein the PDU includes a function code, PLC application data and a data field protocol; 2) the protocol adaptation microchip performs protocol conversion on the PROFIBUS DP PDU data by calling a communication data mapping relationship table, according to the communication data relationship mapping table to confirm what kind of data protocol header adjustment, address conversion and protocol function mapping the PROFIBUS DP communication request hopes to obtain, and obtains the PROFINET PDU data. The data content of the communication data relationship mapping table includes: basic PLC information, master station DP configuration information, master station communication state, slave station DP configuration information, slave station communication state, slave station control, etc. The protocol header includes source address, target address, data length, checksum, etc. In the protocol conversion process, the header field is added, deleted or modified according to the industrial bus protocol; and 3) the valid converted PROFINET PDU data is cached to the memory.

[0106] The third control unit 30 is configured to control the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and to encapsulate the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet. The 5G communication unit is responsible for encapsulating the message in the form of the PROFINET protocol into a 5G data packet and performing 5G wireless transmission.

[0107] Specifically, as shown in FIG. 4, the third control unit 30 is configured to control the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and to encapsulate the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet. The 5G communication unit is responsible for encapsulating the message in the form of the PROFINET protocol into a 5G data packet and performing 5G wireless transmission. Figure 3As shown, the above-mentioned 5G communication unit is mainly composed of a 5G baseband chip supporting the 5G NR standard, and is connected with components such as RF front-end, power amplifier (PA), low noise amplifier (LNA), filter, 5G cellular baseband processor, small board power supply module, memory and multi-antenna technology (MIMO) antenna array, etc. It is responsible for encapsulating PROFINET messages into 5G data packets and performing 5G wireless transmission, including the following steps: 1) obtaining the PROFINET PDU data of the industrial protocol conversion unit; 2) taking the received PROFINET PDU data as the service data unit of the 5G protocol application layer, and encapsulating it layer by layer according to the 5G protocol stack, that is, adding, deleting or modifying the header and tail fields in turn. The 5G protocol header contains some information that is not in the PROFINET protocol header, such as the quality of service indicator. These fields are added in the conversion process, and finally a 5G data packet is formed. 3) According to the address mapping table in the processor and core control unit memory, send a transmission request to the base station that opens the 5G LAN license function, access the 5G LAN network through the 5G base station scheduling, and establish an end-to-end connection with the base station to transmit the 5G data packet in the wireless network.

[0108] It should be noted that the PROFINET protocol requires high real-time and low delay communication to ensure accurate control and synchronous operation in industrial automation. With the development of Release-16 to Release-18, the functions and performance of 5G LAN are continuously enhanced, including group member traffic characteristics and performance monitoring, cross-SMF management VN Group, cross-VN Group communication, group management and group state reporting enhancement, etc. These improvements enable 5G LAN to better meet the needs of various industrial scenarios. Furthermore, 5G LAN technology is highly adapted to PROFINET and other industrial Ethernet protocols due to its low latency, high reliability, Ethernet compatibility, layer 2 networking capability, and support for multiple protocols, providing an efficient, secure, flexible and cost-effective network solution for industrial automation.

[0109] The fourth control unit 40 is used to control the wireless transmission of the above-mentioned 5G data packet in the 5G network.

[0110] Specifically, 5G data packets are transmitted wirelessly in a 5G LAN network. The addition of the 5G LAN breaks the correspondence between the configuration view of the factory automation system and the underlying network view. Instead of building a local area network through several switches, terminal devices are interconnected with devices in the factory wired network through CPE, base stations, UPF (User Port Function), and other devices in the 5G network. The 5G base station and its backend core network elements schedule devices based on information such as industrial terminal devices, service status, channel status, and receiving address, and the 5G communication module accesses the 5G LAN network. Specifically, it includes:

[0111] Industrial terminal grouping: By modifying the data in the Unified Data Management (UDM) database, the specified industrial terminal numbers are subscribed to services and grouped into the same or different Virtual Network (VN) groups.

[0112] 5G PDU session establishment request: UE initiates a request to establish a PDU session to the SMF (Service Management Function), carrying slice information, DNN (Data Network Name) information, PDU session ID, etc.

[0113] User authentication: UE carries user information and requests to reach SMF, which will be forwarded to PCF (Policy Control Function) through UPF, and then PCF will be forwarded to UDM. Identity authentication is performed based on the user information stored in the database.

[0114] Policy decision and resource allocation: After authentication, PCF tells SMF the corresponding transmission policy, and SMF commands UPF and access network to open data connections for corresponding services.

[0115] Local area network communication management: When a 5G LAN group member initiates a PDU session, SMF downloads the user's group subscription information from UDM and manages the corresponding access UPF based on group subscription to manage local area network communication.

[0116] Data forwarding: When multiple UPFs serve the same 5G VN group, UPFs can forward data through N19 interface sessions.

[0117] The application completes the conversion of 5G protocol data and PROFINET\PROFIBUSDP protocol data through the above protocol adaptation process, and realizes the interconnection and intercommunication of heterogeneous protocols. By integrating the protocol adaptation device and method of the application for the PLC controller, the PDU data is processed and encapsulated at each level to ensure that the data can be efficiently and reliably transmitted in the 5GLAN network wireless channel, a wireless communication channel is built between the PLC controllers, and the ultra-reliable strong real-time communication between the PLC controllers is realized. By wireless of the PLC controller, the wireless transformation of the factory is promoted under the premise of protecting the existing PLC controller assets, and the intelligent factory is helped to be established.

[0118] In the embodiment, the industrial Ethernet and wireless network data exchange device sends a PROFIBUS message to the processor and core control unit through the PLC controller; the processor and core control unit receive the PROFIBUS message sent by the PLC controller, and analyze the PROFIBUS message; the industrial protocol conversion unit obtains the analyzed PROFIBUS message, converts the PROFIBUS protocol and the PROFINET protocol, and obtains PROFINET PDU data; the 5G communication unit obtains the PROFINET PDU data from the memory of the industrial protocol conversion unit, encapsulates the PROFINET PDU data into 5G protocol data, generates a 5G data packet, and the 5G data packet is wirelessly transmitted in the 5G LAN network. Through the above protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection and intercommunication of heterogeneous protocols are realized. A wireless communication channel is built between the PLC controllers, and the ultra-reliable strong real-time communication between the PLC controllers is realized. The application solves the problem of long transmission path and complex dependency relationship in the prior art that a protocol adapter or a protocol converter needs to be introduced to realize the conversion of the PROFIBUS protocol and the PROFINET protocol.

[0119] In order to improve the wireless of protocol conversion, in an alternative embodiment, the device further comprises:

[0120] The sending unit is configured to send the PROFIBUSDP message to the I / O interface of the processor and core control unit through the I / O interface of the PLC controller according to the sending period of the control instruction before the processor and core control unit receive the PROFIBUSDP message sent by the PLC controller, and the control instruction is an instruction for controlling the protocol conversion system to perform protocol conversion of data and realize 5G wireless transmission.

[0121] In the above embodiment, the PLC controller sends the PROFIBUS DP message to the I / O interface of the processor and core control unit through the I / O interface of the PLC controller according to the sending period of the control instruction. Among them, the PLC controller uses the PROFIBUS DP protocol for communication and networking, and can be configured as a PROFIBUS master station or a PROFIBUS slave station, as shown in Figure 3 The PLC controller sends the PROFIBUS DP message to the processor and core control unit according to the predetermined periodic control instruction. The periodic sending of the control instruction ensures the real-time and continuity of industrial control, which is crucial for industrial automation systems that require precise control and real-time monitoring. The PLC controller sending the PROFIBUS DP message is the starting point of the entire data conversion and transmission process, starting the data conversion process from the industrial Ethernet to the wireless network. Through this step, data begins to flow in the system, thereby activating the subsequent protocol analysis, conversion and encapsulation mechanism, realizing the wireless of the PLC controller and supporting industrial wireless control.

[0122] In order to improve the communication efficiency, flexibility and expansibility of the industrial automation system, in an alternative embodiment, the device further comprises:

[0123] A first establishment unit is configured to establish a network topology and a logical connection relationship for each PLC controller deployed in the industrial field according to industrial application requirements before the PLC controller sends the PROFIBUS DP message to the I / O interface of the processor and core control unit through the I / O interface of the PLC controller according to the sending period of the control instruction, and determine the control attribute of each PLC controller. The control attribute is divided into master station and slave station;

[0124] A second establishment unit is configured to establish an address mapping table according to the network topology, the logical connection relationship and the control attribute of each PLC controller. The address mapping table is a one-to-one mapping relationship between the address of each PLC controller and the address of the corresponding connected 5G communication module;

[0125] A determination unit is configured to determine the PROFIBUS DP protocol version and establish a wireless connection relationship between the 5G communication unit and the 5G base station.

[0126] In the above embodiment, as Figure 4As shown, the system initialization includes the following steps: 1) Establish an address mapping table. Engineers establish a network topology and logical connection for PLC controllers deployed in an industrial site according to the needs of industrial applications, determine the control master station and slave station. On this basis, a one-to-one mapping relationship between the address of each PLC controller and the address of the 5G communication module connected thereto is established to form an address mapping table and stored in the protocol conversion module of each protocol adaptation system. 2) Establish the PROFIBUS protocol version. Engineers configure different protocol versions according to the needs of PROFIBUS-DP, PROFIBUS-PA and PROFIBUS-FMS. This embodiment takes the most widely used PROFIBUS-DP as an example to develop the description. 3) Establish a 5G wireless network connection relationship. After the system is powered on and operated, all PLC controllers and protocol adaptation devices complete initialization. All protocol adaptation systems in the industrial system establish a wireless connection relationship with the 5G base station through the 5G communication module. The above processes jointly act on the construction of a complete data transmission link from the industrial field device to the 5G wireless network, realizing the seamless connection of industrial Ethernet data and wireless network, improving the communication efficiency, flexibility and expansibility of the industrial automation system, and is a key technical support for the development of industrial wireless and intelligent.

[0127] In order to avoid the analysis and processing of invalid data, in an optional implementation, the first control unit includes:

[0128] The first control module is configured to control the processor and the core control unit to determine the validity of the PROFIBUS-DP message according to the PROFIBUS-DP protocol version.

[0129] The cache module is configured to cache the valid PROFIBUS-DP message to the memory of the processor and the core control unit, and discard the invalid PROFIBUS-DP message.

[0130] The analysis module is configured to control the processor and the core control unit to analyze the valid PROFIBUS-DP message in the memory in the storage order, to obtain the analyzed PROFIBUS-DP message according to the corresponding PROFIBUS-DP protocol version, the analyzed PROFIBUS-DP message at least including an address code, a protocol data unit and a check code, the protocol data unit including a function code, PLC application data and a data field protocol.

[0131] In the above embodiment, the processor and the core control unit receive the PROFIBUS message sent by the PLC controller through the I / O interface, and determine the validity of the data according to the PROFIBUS protocol version. For valid data, it is cached to the memory; for invalid data, it is discarded and no longer operated. By verifying whether the message conforms to a specific PROFIBUS DP protocol version, the integrity and correct format of the data can be ensured, and communication failure caused by data format error can be avoided. Taking PROFIBUS-DP as an example, the physical layer uses RS485 communication, and each character is composed of 1 start bit, 8 data bits, 1 even parity bit and 1 end bit. When the baud rate is 1.5 Mbps, the time of each bit is 0.6667μs, and when the check does not meet, it is judged that the received message is incomplete, the message is discarded, and the memory data is cleared. 2) The processor and the core control unit sequentially parse the cached valid PROFIBUS message, and according to different PROFIBUS protocol versions, obtain address code, protocol data unit (PDU) and check code and other information. Avoid parsing and processing invalid data, reduce the work burden of the processor and the core control unit, and improve the overall response speed of the system. Figure 5 The difference between PROFINET and PROFIBUS DP in processing data is shown, and the information added, deleted or modified by each layer of protocol conversion is shown, such as Figure 5 As shown in the figure, when processing data, only the physical layer and the data link layer of the PROFIBUS DP protocol perform message parsing and processing to obtain the final parsed PROFIBUS DP message. Only valid messages are processed subsequently, reducing the waste of invalid data and improving the data processing efficiency of the processor and the core control unit.

[0132] In order to enhance the interoperability of heterogeneous devices and service extensibility of industrial network, in an alternative embodiment, the second control unit comprises:

[0133] A second control module is configured to control the PROFIBUS DP micro control unit in the industrial protocol conversion unit to obtain the parsed PROFIBUS DP message from the memory of the processor and the core control unit for structural analysis and data extraction, and obtain preliminary analysis data.

[0134] A removal module is configured to remove the address code, protocol data unit and check code in the preliminary analysis data to obtain PROFIBUS DP PDU data.

[0135] The third control module controls the PROFINET micro control unit in the industrial protocol conversion unit to perform frame structure construction and data encapsulation of the PROFIBUS DP PDU data in the PROFIBUS DP protocol to the frame structure of the PROFINET protocol, to obtain the PROFINET PDU data.

[0136] In the above embodiment, the PROFIBUS DP micro control unit in the industrial protocol conversion unit obtains the parsed PROFIBUS DP message from the processor and the memory of the core control unit, performs structure parsing and data extraction on the PROFIBUS DP data frame, and obtains the address code, PDU and check code according to the determined version of the PROFIBUS DP protocol; the PDU includes the function code, PLC application data and data field protocol field. Then, the address code, check code and other information are removed to obtain the PROFIBUS DP PDU data. The preliminary data after parsing removes the address code and check code and other fields in the message, reduces the redundant information in subsequent transmission, improves the transmission efficiency, prepares the data field for data encapsulation of the PROFINET protocol, and ensures that the converted data meets the format requirements of the PROFINET protocol. 2) The PROFINET micro control unit in the industrial protocol conversion unit implements frame structure construction and data encapsulation of the PROFIBUS DP to the PROFINET protocol, including flow label mapping, address mapping and frame format conversion. The converted data is encapsulated to meet the data communication requirements of the PROFINET protocol, including adding IP header, TCP / UDP header and possibly other service layer headers. 3) The parsed and converted PROFINET PDU data is stored in the memory of the industrial protocol conversion unit. In summary, by parsing, simplifying and encapsulating data, the conversion from PROFIBUS DP to PROFINET protocol is realized, which provides necessary technical preparation for wireless transmission of industrial data. This series of operations not only improves the efficiency and reliability of data transmission, but also enhances the interoperability of heterogeneous devices and service extensibility of industrial networks, which is a key link in the realization of data transmission in industrial automation and intelligent manufacturing process.

[0137] In order to accurately perform protocol conversion, in an optional embodiment, the third control module includes:

[0138] The first mapping submodule is configured to map the data stream of the PROFIBUS DP PDU data to the flow label of the PROFINET protocol;

[0139] The second mapping submodule is configured to map the device address of the PROFIBUS DP PDU data to the IP address of the PROFINET protocol;

[0140] The frame format conversion submodule is configured to convert the frame format of the PROFIBUS DP PDU data from the PROFIBUS DP protocol to the frame format under the PROFINET protocol, to obtain the PROFINET PDU data.

[0141] In the above embodiment, the data stream of the PROFIBUS DP PDU data is mapped to the stream label of the PROFINET through the VCR ID, to ensure the uniqueness and correctness of the data stream. The VCR ID is a unique identifier of a virtual communication relationship, and is used to realize the communication between different processes of the application layer. The device address of the PROFIBUS DP PDU data is mapped to the IP address of the PROFINET. An address mapping table is required to maintain the mapping relationship and to perform lookup and replacement in the conversion process. The data mapping table is called by the processor to communicate with the core control unit, to confirm the header adjustment, address conversion, protocol function mapping of the data protocol required by the PROFIBUS DP communication request, and to perform protocol conversion. The data content includes the basic PLC information, the master station DP configuration information, the master station communication state, the slave station DP configuration information, the slave station communication state, and the slave station control. In the PROFIBUS DP to PROFINET protocol frame format conversion process, the PROFINET supports multiple communication modes, including TCP / IP and UDP, while the PROFIBUS DP is based on the master-slave communication mode. Specifically, the physical layer performs protocol adaptation; the data link layer converts the frame structure of the DP to the Ethernet frame structure of the PROFINET; the network layer adds the IP header, including the source IP and target IP addresses; the transport layer adds the TCP / UDP header, to ensure the end-to-end data transmission; and the application layer encapsulates the data according to the application layer protocol of the PROFINET, and adds the IO, alarm, record and other service information supported by the PROFINET, such as Figure 5 as shown.

[0142] In order to ensure the efficient and secure transmission of industrial data in the 5G wireless network, in an optional implementation, the third control unit includes:

[0143] The fourth control module is configured to control the service adaptation protocol layer in the 5G communication unit to perform service adaptation on the PROFINET PDU data, to complete the mapping to the wireless bearer in the form of a stream, to obtain the SDAP PDU data.

[0144] The fifth control module is configured to control the packet data convergence protocol layer in the 5G communication unit to perform header compression, data encryption and integrity protection processing on the PDU data in sequence, to obtain the PDCP PDU data.

[0145] A sixth control module is configured to control a radio link control layer in the 5G communication unit to process received PDCP PDU data, perform data processing on the PDCP PDU data according to a configured working mode, generate RLC PDU data, and wait for a transmission instruction from a medium access control layer, wherein the working mode includes an acknowledgement mode, a non-acknowledgement mode, and a transparent mode, and the data processing at least includes transmission of upper layer PDU data, error correction through automatic repeat request, and reordering of data PDU, and the transmission instruction is to transmit the RLC PDU data to the medium access control layer.

[0146] A seventh control module is configured to control the medium access control layer in the 5G communication unit to instruct the radio link control layer to transmit the RLC PDU data to the medium access control layer, and the medium access control layer encapsulates the RLC PDU data into MAC PDU data.

[0147] An eighth control module is configured to control a physical layer in the 5G communication unit to convert the MAC PDU data into a signal for transmission on a target wireless channel, to obtain the 5G data packet.

[0148] In the above embodiments, Figure 6 A process diagram of encapsulating PROFINET DP PDU into a 5G data packet and wirelessly transmitting the 5G data packet is shown, as shown in FIG. 6. Figure 6As shown, first, the Service Data Adaptation Protocol Layer (SDAP) processing, the PROFINET PDU data is adapted to the service, to complete the mapping to the wireless bearer in the form of flow, to ensure that the data can be correctly mapped to the wireless transmission link. Then, the Packet Data Convergence Protocol Layer (PDCP) layer processing, responsible for the header compression of PDU data, data encryption, integrity protection, and provides 5G RLC with the order delivery of upper layer PDU. Header compression reduces the size of the header, improves transmission efficiency, reduces the overhead of wireless transmission; data encryption protects the transmission security of data in the wireless network, prevents data from being eavesdropped or tampered with; through the integrity check, it is ensured that the data is not changed in the transmission process, and the reliability of data transmission is improved. After that, the Radio Link Control Layer (RLC) layer processing, the RLC layer receives the data of the PDCP layer, and processes according to the configured Acknowledged Mode (AM), Unacknowledged Mode (UM) and Transparent Mode (TM), including the transmission of upper layer PDU, error correction through Automatic Repeat-reQuest (ARQ) (only for AM data transmission), data PDU reordering (only for UM and AM data transmission), etc. In 5G NR, the RLC layer can immediately generate RLC PDU and save it in the transmission warehouse, waiting for the transmission instruction of the MAC layer. After that, the Medium Access Control Layer (MAC) layer processing, responsible for the scheduling of wireless resources, allocating resources on the physical shared channel (PDSCH / PUSCH) for UE, and selecting the appropriate Modulation and Coding Scheme (MCS) for data transmission. The MAC layer instructs the RLC layer to have a transmission opportunity and specifies the amount of data that can be transmitted, and the RLC layer delivers the RLC PDU to the MAC layer according to the instruction. Finally, the Physical Layer (PHY) layer processing, the MAC layer further encapsulates the RLC PDU into MAC PDU and adds the MAC header, and then delivers it to the physical layer. The physical layer converts the MAC PDU into a signal suitable for wireless channel transmission and sends it out through the antenna. The encapsulation process from the PROFINET protocol data unit (PDU) to the 5G data packet is described in detail in the above embodiment, and this series of operations ensures that industrial data can be transmitted efficiently and securely in the 5G wireless network.In summary, the encapsulation process from PROFINET PDU data to 5G data packets covers data stream adaptation, compression, encryption, error correction, reordering, resource scheduling, encapsulation, and signal conversion, etc. This series of operations not only ensures the efficient and secure transmission of industrial data in the 5G wireless network, but also meets the strict requirements of real-time, reliability and security in industrial control scenarios. The entire process fully utilizes the low latency, high bandwidth and high reliability characteristics of the 5G network, providing key technical support for industrial wireless.

[0149] The industrial Ethernet and wireless network data exchange device includes a processor and a memory, and the first control unit, the second control unit and the third control unit are stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions. The modules are located in the same processor; or, each module is located in a different processor in any combination.

[0150] The processor includes a core, and the core retrieves the corresponding program unit from the memory. The core can be set to one or more, and the problem of long transmission path and complex dependency relationship in the prior art that requires the introduction of a protocol adapter or a protocol converter to realize the conversion between PROFIBUS protocol and PROFINET protocol can be solved by adjusting the core parameters.

[0151] The memory can include non-permanent memory in a computer readable medium, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.

[0152] The embodiment of the application provides a computer readable storage medium, and the computer readable storage medium includes a stored program, wherein the computer readable storage medium controls the device where the computer readable storage medium is located to execute the industrial Ethernet and wireless network data exchange method when the program runs.

[0153] The embodiment of the application provides a processor, and the processor is used to run a program, wherein the processor executes the industrial Ethernet and wireless network data exchange method when the program runs.

[0154] The embodiment of the application provides a protocol adaptation system, and the protocol adaptation system includes a processor, a memory and a program stored in the memory and executable on the processor, and the processor executes the program to realize at least the following steps:

[0155] Step S201, the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and analyze the PROFIBUSDP message to obtain an analyzed PROFIBUSDP message, the processor and the core control unit are used to realize the overall control and scheduling of the system, manage and configure the industrial protocol conversion unit and the 5G communication unit, and the PROFIBUSDP message is a message generated by using the PROFIBUSDP protocol;

[0156] Step S202, the control industrial protocol conversion unit acquires the analyzed PROFIBUSDP message, and converts the analyzed PROFIBUSDP message between the PROFIBUSDP protocol and the PROFINET protocol to obtain PROFINET PDU data, the industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIBUSDP protocol, and the PROFIBUSDP PDU data is PDU data generated by using the PROFINET protocol;

[0157] Step S203, the control 5G communication unit acquires the PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulates the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet, and the 5G communication unit is responsible for encapsulating the message in the form of the PROFINET protocol into a 5G data packet and performing 5G wireless transmission;

[0158] Step S204, control the 5G data packet to be wirelessly transmitted in the 5G network.

[0159] The application also provides a computer program product adapted to execute the program of at least the following method steps when executed on a data processing device:

[0160] Step S201, the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and analyze the PROFIBUSDP message to obtain an analyzed PROFIBUSDP message, the processor and the core control unit are used to realize the overall control and scheduling of the system, manage and configure the industrial protocol conversion unit and the 5G communication unit, and the PROFIBUSDP message is a message generated by using the PROFIBUSDP protocol;

[0161] Step S202, the control industrial protocol conversion unit acquires the above-mentioned parsing PROFIBUSDP message, and converts the above-mentioned parsing PROFIBUSDP message between the above-mentioned PROFIBUSDP protocol and the PROFINET protocol, obtains the PROFINET PDU data, the above-mentioned industrial protocol conversion unit supports the conversion between the PROFINET protocol and the PROFIBUSDP protocol, and the above-mentioned PROFIBUSDP PDU data is the PDU data generated by using the PROFINET protocol;

[0162] Step S203, the control 5G communication unit acquires the above-mentioned PROFINET PDU data from the memory of the above-mentioned industrial protocol conversion unit, and encapsulates the above-mentioned PROFINET PDU data layer by layer according to the 5G protocol stack, obtains the 5G data packet, and the above-mentioned 5G communication unit is responsible for encapsulating the message in the form of the PROFINET protocol into the 5G data packet and performing 5G wireless transmission;

[0163] Step S204, the control above-mentioned 5G data packet in 5G network wireless transmission.

[0164] Obviously, those skilled in the art should understand that the modules or steps of the present application can be realized by a general computing device, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, which can be realized by program codes executable by a computing device, so that they can be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific hardware and software combination.

[0165] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer usable storage media containing computer usable program codes (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.).

[0166] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in one or more flow or blocks

[0167] 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 function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in one or more flow or blocks

[0168] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 Figure 1 means for functionally implementing the steps in one or more flow or blocks

[0169] In one typical configuration, the computing device includes one or more processors (CPU's), input / output interfaces, network interfaces, and memory.

[0170] The memory can include non-persistent memory and / or persistent memory, for example, read only memory (ROM) and / or flash memory, for example, in the form of a computer readable storage medium. The memory is an example of computer readable media.

[0171] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0172] It should also be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0173] From the above description, it can be seen that the above-mentioned embodiments of the present application achieve the following technical effects:

[0174] 1), The industrial Ethernet and wireless network data exchange method of the application, the PLC controller sends PROFIBUS message to the processor and core control unit; the processor and core control unit receive the PROFIBUS message sent by the PLC controller, analyze the PROFIBUS message; the industrial protocol conversion unit obtains the parsed PROFIBUS message, converts the PROFIBUS protocol and the PROFINET protocol, obtains the PROFINET PDU data; the 5G communication unit obtains the PROFINET PDU data from the memory of the industrial protocol conversion unit, encapsulates the PROFINET PDU data into 5G protocol data, generates 5G data packet, and the 5G data packet is wirelessly transmitted in 5G LAN network. Through the above protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection of heterogeneous protocols is realized. A wireless communication channel is built between the PLC controllers, and super-reliable and strong real-time communication between the PLC controllers is realized. The application solves the problem that in the prior art, in order to realize the conversion of PROFIBUS protocol and PROFINET protocol, a protocol adapter or a protocol converter needs to be introduced, which causes long transmission path and complex dependency.

[0175] 2), The industrial Ethernet and wireless network data exchange device of the application, the PLC controller sends PROFIBUS message to the processor and core control unit; the processor and core control unit receive the PROFIBUS message sent by the PLC controller, analyze the PROFIBUS message; the industrial protocol conversion unit obtains the parsed PROFIBUS message, converts the PROFIBUS protocol and the PROFINET protocol, and obtains the PROFINET PDU data; the 5G communication unit obtains the PROFINET PDU data from the memory of the industrial protocol conversion unit, encapsulates the PROFINET PDU data into 5G protocol data, generates 5G data packet, and the 5G data packet is wirelessly transmitted in 5G LAN network. Through the above protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection of heterogeneous protocols is realized. A wireless communication channel is built between the PLC controllers, and super-reliable and strong real-time communication between the PLC controllers is realized. The application solves the problem that in the prior art, in order to realize the conversion of PROFIBUS protocol and PROFINET protocol, a protocol adapter or a protocol converter needs to be introduced, which causes long transmission path and complex dependency.

[0176] The above descriptions are only the preferred embodiments of the present application, and are not intended to limit the present application. The present application can have various modifications and changes for those skilled in the art. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for data exchange between industrial Ethernet and wireless networks, characterized in that, include: The control processor and core control unit receive PROFIBUS DP messages sent by the PLC controller and parse the PROFIBUS DP messages to obtain parsed PROFIBUS DP messages. The processor and core control unit are used to realize the overall control and scheduling of the system, and to manage and configure the industrial protocol conversion unit and the 5G communication unit. The PROFIBUS DP messages are messages generated using the PROFIBUS DP protocol. The industrial protocol conversion unit acquires the parsed PROFIBUS DP message and performs protocol conversion between the PROFIBUS DP protocol and the PROFINET protocol to obtain PROFINET PDU data. The industrial protocol conversion unit supports the conversion between the PROFINET protocol and the PROFIBUS DP protocol. The PROFINET PDU data is PDU data generated using the PROFINET protocol. The 5G communication unit controls the acquisition of PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulates the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain 5G data packets. The 5G communication unit is responsible for encapsulating PROFINET protocol messages into 5G data packets and transmitting them wirelessly via 5G. Controlling the wireless transmission of the 5G data packets in the 5G network, The process of parsing the PROFIBUS DP message and converting it between the PROFIBUS DP protocol and the PROFINET protocol to obtain PROFINET PDU data includes: controlling the PROFIBUS DP microcontroller unit in the industrial protocol conversion unit to retrieve the parsed PROFIBUS DP message from the memory of the processor and core control unit, performing structural parsing and data extraction to obtain preliminary parsed data; removing the address code, protocol data unit, and checksum from the preliminary parsed data to obtain PROFIBUS DP PDU data; and controlling the PROFINET microcontroller unit in the industrial protocol conversion unit to construct the frame structure and encapsulate the PROFIBUS DP PDU data from the PROFIBUS DP protocol to the PROFINET protocol to obtain the PROFINET PDU data. The PROFINET microcontroller unit in the industrial protocol conversion unit performs frame structure construction and data encapsulation from the PROFIBUS DP protocol to the PROFINET protocol to obtain the PROFINET PDU data. This includes: mapping the data stream of the PROFIBUS DP PDU data to the flow tag of the PROFINET protocol; mapping the device address of the PROFIBUS DP PDU data to the IP address of the PROFINET protocol; and converting the frame format of the PROFIBUS DP PDU data from the PROFIBUS DP protocol to the frame format under the PROFINET protocol to obtain the PROFINET PDU data.

2. The method according to claim 1, characterized in that, Before the control processor and core control unit receive the PROFIBUS DP message sent by the PLC controller, the method further includes: The PLC controller sends the PROFIBUS DP message to the I / O interface of the processor and the core control unit through the I / O interface of the PLC controller according to the control command sending cycle. The control command is the instruction for the control protocol conversion system to perform data protocol conversion and realize 5G wireless transmission.

3. The method according to claim 1, characterized in that, Before the PLC controller sends the PROFIBUSDP message to the I / O interface of the processor and core control unit through the PLC controller's I / O interface according to the control command sending cycle, the method further includes: Based on the industrial application requirements, establish network topology and logical connection relationships for each PLC controller deployed in the industrial field, and determine the control attributes of each PLC controller, which are divided into master station and slave station. An address mapping table is established based on the network topology, logical connection relationship and control attributes of each PLC controller. The address mapping table is a one-to-one mapping relationship between the address of each PLC controller and the address of the corresponding connected 5G communication module. Establish the PROFIBUS DP protocol version and establish a wireless connection between the 5G communication unit and the 5G base station.

4. The method according to claim 1, characterized in that, The control processor and core control unit receive PROFIBUS DP messages sent by the PLC controller and parse the PROFIBUS DP messages to obtain parsed PROFIBUS DP messages, including: The processor and core control unit determine the validity of the PROFIBUS DP message according to the PROFIBUS DP protocol version. Valid PROFIBUS DP messages are cached in the memory of the processor and core control unit, and invalid PROFIBUS DP messages are discarded. The processor and core control unit are controlled to parse the valid PROFIBUS DP messages in the memory in the storage order, so as to obtain the parsed PROFIBUS DP message according to the corresponding PROFIBUS DP protocol version. The parsed PROFIBUS DP message includes at least an address code, a protocol data unit and a check code. The protocol data unit includes a function code, PLC application data and a data field protocol field.

5. The method according to claim 1, characterized in that, The control 5G communication unit retrieves the PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulates the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet, including: The service data adaptation protocol layer in the 5G communication unit is controlled to perform service adaptation on the PROFINET PDU data, and the mapping to the radio bearer is completed in the form of a stream to obtain SDAP PDU data. The packet data aggregation protocol layer in the 5G communication unit is controlled to sequentially perform header compression, data encryption and integrity protection processing on PDU data to obtain PDCP PDU data. The radio link control layer in the 5G communication unit processes the received PDCP PDU data, performs data processing on the PDCP PDU data according to the configured working mode, generates RLC PDU data, and waits for the transmission instruction from the media access control layer. The working mode includes acknowledged mode, unacknowledged mode, and transparent mode. The data processing includes at least the transmission of upper-layer PDU data, error correction through automatic retransmission requests, and reordering of data PDUs. The transmission instruction is to transmit the RLC PDU data to the media access control layer. The Media Access Control (MAC) layer in the 5G communication unit instructs the Radio Link Control (RANC) layer to transmit the RLC PDU data to the MAC layer, and the MAC layer encapsulates the RLC PDU data into MAC PDU data. The physical layer transmission in the 5G communication unit is controlled to convert the MAC PDU data into a signal transmitted through the target wireless channel, thereby obtaining the 5G data packet.

6. An industrial Ethernet and wireless network data switching device, characterized in that, The device includes: The first control unit is used to control the processor and the core control unit to receive PROFIBUS DP messages sent by the PLC controller and parse the PROFIBUS DP messages to obtain parsed PROFIBUS DP messages. The processor and the core control unit are used to realize overall control and scheduling, and to manage and configure the industrial protocol conversion unit and the 5G communication unit. The PROFIBUS DP message is a message generated using the PROFIBUS DP protocol. The second control unit is used to control the industrial protocol conversion unit to acquire the parsed PROFIBUS DP message and convert the parsed PROFIBUS DP message between the PROFIBUS DP protocol and the PROFINET protocol to obtain PROFINET PDU data. The industrial protocol conversion unit supports the conversion between the PROFINET protocol and the PROFIBUS DP protocol. The PROFINET PDU data is PDU data generated using the PROFINET protocol. The third control unit is used to control the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and to encapsulate the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain 5G data packets. The 5G communication unit is responsible for encapsulating the PROFINET protocol message into a 5G data packet and transmitting it wirelessly via 5G. The fourth control unit is used to control the wireless transmission of the 5G data packets in the 5G network. The second control unit includes: a second control module, used to control the PROFIBUS DP microcontroller in the industrial protocol conversion unit to retrieve the parsed PROFIBUS USDP message from the memory of the processor and core control unit for structural parsing and data extraction to obtain preliminary parsed data; a removal module, used to remove address codes, protocol data units, and check codes from the preliminary parsed data to obtain PROFIBUS DP PDU data; and a third control module, used to control the PROFINET microcontroller in the industrial protocol conversion unit to perform frame structure construction and data encapsulation of the PROFIBUS DP PDU data to convert the PROFIBUS DP protocol to the PROFINET protocol to obtain PROFINET PDU data. The third control module includes: a first mapping submodule, used to map the data stream of the PROFIBUS DP PDU data to the stream label of the PROFINET protocol; a second mapping submodule, used to map the device address of the PROFIBUS DP PDU data to the IP address of the PROFINET protocol; and a frame format conversion submodule, used to convert the frame format of the PROFIBUS DP PDU data from the PROFIBUS DP protocol to the frame format under the PROFINET protocol, to obtain the PROFINET PDU data.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 5.

8. A protocol adaptation system, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of claims 1 to 5.

Citation Information

Patent Citations

  • Interconnection method between PROFIBUS DP and PROFINET communication networks via shared memory

    CN105245424B

  • Interconnection method for PROFIBUS DP and PROFINET communication networks through sharing storage unit

    CN105245424A

  • Conversion apparatus and control system

    WO2018188070A1