Industrial Ethernet and wireless network data exchange method and device
By receiving and parsing PROFIBUSDP packets on the processor and core control unit, and performing PROFINET protocol conversion, combined with the packaging processing of 5G communication unit, the problem of lengthy protocol conversion path and complex dependencies in the prior art is solved, and efficient data exchange between industrial Ethernet and wireless network is realized.
Patent Information
- Application Number
- CN202510162769.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-13
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-02-13
AI Technical Summary
In the prior art, the conversion between the PROFIBUS protocol and the PROFINET protocol requires the introduction of a protocol adapter or a protocol converter, resulting in lengthy transmission paths, complex dependencies, and difficulty in achieving rapid adaptation and integration of wireless protocol standards.
The control processor and the core control unit receive PROFIBUSDP packets, parse and protocol conversion, and obtain PROFINET PDU data, and use the 5G communication unit to package the data layer by layer according to the 5G protocol stack to realize data exchange between industrial Ethernet and wireless network.
It realizes seamless interconnection between the PROFIBUS protocol and the PROFINET protocol, reduces the length of transmission paths and the complexity of dependencies, improves the flexibility and scalability of the system, and supports the rapid integration of wireless protocols.
Smart Images

Figure CN120017739A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of protocol conversion, and 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 Art
[0002] The rapid development of 5G communication technology has opened up a new path for industrial automation. Its high uplink and downlink rates, determinism, and high-precision positioning capabilities enable remote monitoring, real-time control, and efficient transmission of big data. It deeply integrates 5G communication technology with industrial multimodal equipment, providing strong technical support for the collaborative operation of cyber-physical systems (CPS).
[0003] In the current industrial automation control system, the information transmission path presents diversified characteristics. When it comes to the conversion between PROFIBUSDP and PROFINET protocols, due to the differences in the communication mechanism between the protocols, a protocol conversion gateway device must be added to the transmission link. This measure causes the data to pass through more relay nodes in the transmission process, which in turn causes the transmission efficiency to decay. PROFINET is an industrial communication standard based on Ethernet, while PROFIBUSDP is a communication protocol based on fieldbus. PROFIBUSDP occupies an important position in process control with its high real-time performance and reliability. The high bandwidth and flexibility of PROFINET Ethernet technology are widely used in industrial applications. In actual industrial environments, since terminal devices support different communication protocols, adapters\converters must be introduced, which have problems such as long transmission paths and complex dependencies. Therefore, internal communication between devices, data mapping, and how to transmit PN configuration information through Ethernet communication are currently difficult.
[0004] Patent document CN 105245424 B provides a DP communication protocol microcontroller unit that checks and transmits DP configuration information, maintains PROFIBUSDP bus communication, and an Ethernet communication protocol microcontroller unit that maintains PROFINET communication and transmits data to and from the DP end through a shared memory. However, this method has the following disadvantages:
[0005] 1. Limited flexibility: It mainly relies on wired connections to achieve communication between PROFIBUSDP and PROFINET networks, which is not applicable in 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 to and integrate wireless protocol standards, and the system maintainability 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 problems such as low conversion efficiency or data loss / error in certain specific situations.
[0008] In actual industrial application scenarios, given the high complexity of the data path topology involved in the conversion between PROFINET and PROFIBUSDP protocols, the introduction of adapters or converters will not only lead to additional conversion delays and queuing delays, but also generate additional overhead due to the increase in data 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 will increase the complexity of system design and may induce data loss or delays due to real-time mismatch. Summary of the invention
[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, so as to at least solve the problem that a protocol adapter or a protocol converter is required to realize the conversion between PROFIBUS protocol and PROFINET protocol in the prior art, and the transmission path is long and the dependency is complex.
[0010] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for exchanging data between an industrial Ethernet and a wireless network is provided, comprising: controlling a processor and a core control unit to receive a PROFIBUSDP message sent by a PLC controller, and parsing the PROFIBUSDP message to obtain a parsed PROFIBUSDP message, wherein the processor and the core control unit are used to realize overall system control and scheduling, manage and configure an industrial protocol conversion unit and a 5G communication unit, wherein the PROFIBUSDP message is a message generated by the PROFIBUSDP protocol; controlling the industrial protocol conversion unit to obtain the parsed PROFIBUSDP message, and performing protocol conversion between the PROFIBUSDP protocol and the PROFINET protocol on the parsed PROFIBUSDP message to obtain PROFINET PDU data, wherein 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 the PROFINET protocol; controlling the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and parsing the PROFINET The PDU data is encapsulated 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 PROFINET protocol into a 5G data packet and performing 5G wireless transmission; and controlling the wireless transmission of the 5G data packet in the 5G network.
[0011] Optionally, before the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, the method also includes: the PLC controller sends the PROFIBUSDP 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 sending cycle of the control instruction, and the control instruction is an instruction for the control protocol conversion system to perform data protocol conversion and realize 5G wireless transmission.
[0012] Optionally, before the PLC controller sends the PROFIBUSDP 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 sending cycle of the control instruction, the method also includes: establishing a network topology and a logical connection relationship for each of the PLC controllers deployed at the industrial site according to industrial application requirements, and determining the control attributes of each of the PLC controllers, and the control attributes are divided into a master station and a slave station; establishing an address mapping table according to the network topology, the logical connection relationship and the control attributes of each of the PLC controllers, and the address mapping table is a one-to-one mapping relationship between the address of each PLC controller and the corresponding connected 5G communication module address; establishing the PROFIBUSDP protocol version, and establishing a wireless connection relationship between the 5G communication unit and the 5G base station.
[0013] Optionally, controlling the processor and the core control unit to receive the PROFIBUSDP message sent by the PLC controller and parse the PROFIBUSDP message to obtain the parsed PROFIBUSDP message, including: controlling the processor and the core control unit to determine the validity of the PROFIBUSDP message according to the PROFIBUSDP protocol version; caching the valid PROFIBUSDP message to the memory of the processor and the core control unit, and discarding the invalid PROFIBUSDP message; controlling the processor and the core control unit to parse the valid PROFIBUSDP message in the memory in the storage order to obtain the parsed PROFIBUSDP message according to the corresponding PROFIBUSDP protocol version, the parsed PROFIBUSDP message at least including an address code, a protocol data unit and a check code, and the protocol data unit includes a function code, PLC application data and a data domain protocol field.
[0014] Optionally, the parsed PROFIBUSDP message is converted between the PROFIBUSDP protocol and the PROFINET protocol to obtain PROFINET PDU data, including: controlling the PROFIBUSDP 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 structure parsing and data extraction to obtain preliminary parsed data; removing the address code, protocol data unit and check code in the preliminary parsed data to obtain PROFIBUSDP PDU data; controlling the PROFINET micro-control unit in the industrial protocol conversion unit to convert the PROFIBUSDP protocol to the frame structure construction and data encapsulation of the PROFIBUSDP PDU data 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 from the PROFIBUSDP protocol to the PROFINET protocol to obtain the PROFINET PDU data, including: mapping the data stream of the PROFIBUSDP PDU data to the flow label of the PROFINET protocol; mapping the device address of the PROFIBUSDPPDU data to the IP address of the PROFINET protocol; converting the frame format of the PROFIBUS DP PDU data from the PROFIBUSDP protocol to the 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 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 a 5G data packet, including: controlling the service data adaptation protocol layer in the 5G communication unit to perform service adaptation on the PROFINET PDU data, completing the mapping to the wireless bearer in the form of a stream, and obtaining SDAP PDU data; controlling the packet data convergence protocol layer in the 5G communication unit to perform header compression, data encryption and integrity protection on the PDU data in sequence to obtain PDCP PDU data; controlling the wireless link control layer in the 5G communication unit to process and receive the PDCP PDU data, and performing data processing on the PDCP PDU data according to the configured working mode, generating RLC PDU data, and waiting for the transmission indication of the media access control layer, the working mode includes confirmation mode, non-confirmation mode and transparent mode, the data processing includes at least the transmission of upper layer PDU data, error correction through automatic retransmission request and reordering of data PDU, and the transmission indication is to convert the RLC The PDU data is transmitted to the media access control layer; the media access control layer in the 5G communication unit is controlled to instruct the wireless link control layer to transmit the RLC PDU data to the wireless link control layer, and the media access control layer encapsulates the RLC PDU data into MAC PDU data; the physical layer transmission in the 5G communication unit is controlled to convert the above MAC PDU data into a signal transmitted by the target wireless channel to obtain the 5G data packet.
[0017] According to another aspect of the present application, it is provided that the device includes: a first control unit, which is used to control the processor and the core control unit to receive the PROFIBUSDP message sent by the PLC controller, and parse the PROFIBUSDP message to obtain the parsed PROFIBUSDP message, the processor and the core control unit are used to realize overall control and scheduling, manage and configure the industrial protocol conversion unit and the 5G communication unit, and the PROFIBUSDP message is a message generated by the PROFIBUSDP protocol; a second control unit, which is used to control the industrial protocol conversion unit to obtain the parsed PROFIBUSDP message, and perform protocol conversion between the PROFIBUSDP protocol and the PROFINET protocol on the parsed PROFIBUSDP message to obtain PROFINET PDU data, the industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIBUSDP protocol, and the PROFINET PDU data is PDU data generated by the PROFINET protocol; a third control unit, which is used to control the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and perform protocol conversion on the PROFINET The PDU data is encapsulated 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 PROFINET protocol into a 5G data packet and performing 5G wireless transmission. The fourth control unit is used to control the wireless transmission of the 5G data packet in the 5G network.
[0018] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0019] According to another aspect of the present application, a protocol adaptation system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0020] By applying the technical solution of the present application, in a method for exchanging data between an industrial Ethernet and a wireless network, first, a control processor and a core control unit are controlled to receive a PROFIBUSDP message sent by a PLC controller, and the PROFIBUSDP message is parsed to obtain a parsed PROFIBUSDP message. The processor and the core control unit are used to realize overall control and scheduling of the system, manage and configure the industrial protocol conversion unit and the 5G communication unit. The PROFIBUSDP message is a message generated by the PROFIBUSDP protocol. Then, the industrial protocol conversion unit is controlled to obtain the parsed PROFIBUSDP message, and the parsed PROFIBUSDP message is converted 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. The PROFIBUSDP PDU data is PDU data generated by the PROFINET protocol. Afterwards, the 5G communication unit is controlled to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit. PDU data, and 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 PROFINET protocol into a 5G data packet and performing 5G wireless transmission; finally, the 5G data packet is controlled to be wirelessly transmitted in the 5G network. This application sends PROFIBUS messages to the processor and the core control unit through the PLC controller; the processor and the core control unit receive the PROFIBUS messages sent by the PLC controller and parse the PROFIBUS messages; the industrial protocol conversion unit obtains the parsed PROFIBUS messages, converts the PROFIBUS protocol and the PROFINET protocol, and obtains PROFINET PDU data; the 5G communication unit obtains PROFINET PDU data from the memory of the industrial protocol conversion unit, encapsulates the PROFINET PDU data with 5G protocol data, generates 5G data packets, and transmits the 5G data packets wirelessly in the 5G LAN network. Through the above-mentioned protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection and interoperability of heterogeneous protocols is realized. A wireless communication channel is built between PLC controllers, and ultra-reliable and strong real-time communication between PLC controllers is realized. The present application solves the problem in the prior art that a protocol adapter or a protocol converter is required to realize the conversion between PROFIBUS protocol and PROFINET protocol, which results in a long transmission path and complex dependencies. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1A hardware structure block diagram of a mobile terminal for executing a method for exchanging data between an industrial Ethernet and a wireless network provided in an embodiment of the present application is shown;
[0022] Figure 2 A schematic diagram of a process for exchanging data between an industrial Ethernet and a wireless network provided according to an embodiment of the present application is shown;
[0023] Figure 3 A schematic diagram of the structure of a protocol adaptation system provided according to an embodiment of the present application is shown;
[0024] Figure 4 A schematic diagram of a process of exchanging data between an industrial Ethernet and a wireless network according to an embodiment of the present application is shown;
[0025] Figure 5 A comparison diagram of the difference in data processing between PROFINET and PROFIBUSDP provided according to an embodiment of the present application is shown;
[0026] Figure 6 A schematic diagram of a process of encapsulating a PROFINET DP PDU into a 5G data packet and transmitting it wirelessly according to an embodiment of the present application is shown;
[0027] Figure 7 A structural block diagram of an industrial Ethernet and wireless network data exchange device provided according to an embodiment of the present application is shown.
[0028] The above drawings include the following reference numerals:
[0029] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. 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 solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within 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 the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0034] Industrial Ethernet is an industrial network based on Ethernet technology and TCP / IP technology, with the advantages of fast speed, high stability, and strong anti-noise ability. It is widely used in many fields such as industrial automation control, remote monitoring and maintenance, data acquisition and processing, Internet of Things applications and industrial Internet applications. Industrial Ethernet integrates the traditional information management layer, process monitoring layer, and field equipment layer of the enterprise into one, making the data transmission rate faster and more real-time, and can be seamlessly integrated with the Internet;
[0035] PROFIBUSDP is a fieldbus communication protocol used in the field of industrial automation. It is mainly used for high-speed data transmission at the device level and is part of the international industrial fieldbus protocol standard IEC61158. The PROFIBUSDP protocol has the characteristics of plug-and-play, which can achieve efficient device connection and data exchange and is suitable for high-speed data transmission requirements in factory automation. PROFIBUSDP can be subdivided into PROFIBUSDP-DP, PROFIBUSDP-PA and PROFIBUSDP-FMS with different protocol versions;
[0036] PROFINET is an automation bus standard based on industrial Ethernet technology. It is a high-performance, high-reliability and high-real-time communication protocol widely used in the field of industrial automation. PROFINET adopts TCP / IP and IT standards, can realize continuous data communication from the business management layer to the field layer, and has flexible network topology structures, such as linear, star, tree and ring topologies.
[0037] As introduced in the background technology, in the actual industrial environment of the prior art, since the terminal equipment supports different communication protocols, an adapter\converter must be introduced, and there are problems such as long transmission paths and complex dependencies. In order to solve the problem that a protocol adapter or a protocol converter needs to be introduced in the prior art to realize the conversion between PROFIBUS protocol and PROFINET protocol, and there are problems such as long transmission paths and complex dependencies, the embodiments of the present 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 in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0039] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of an industrial Ethernet and wireless network data exchange method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0040] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the industrial Ethernet and wireless network data exchange method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned 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 above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as 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 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0041] In this embodiment, a method for exchanging data between an industrial Ethernet and a wireless network 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 1 is a flow chart of a method for exchanging data between an industrial Ethernet and a wireless network according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0043] Step S201, the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and parse the above PROFIBUSDP message to obtain the parsed PROFIBUSDP message. The above 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. The above PROFIBUSDP message is a message generated by the PROFIBUSDP protocol.
[0044] Specifically, Figure 3The structural block diagram of the protocol adaptation system is shown, and the protocol adaptation system includes a processor and a 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 above-mentioned protocol adaptation system is connected to the I / O interface of the PLC controller through the I / O interface in the network interface, wherein the PLC controller adopts the PROFIBUSDP protocol for communication and networking, and can be configured as a master station or a slave station. 1. The above-mentioned processor and core control unit, with a high-performance ARM architecture multi-core processor as the main body of the core control unit, to handle the industrial protocol conversion task and wireless network data transmission between PROFINET and PROFIBUSDP protocols. The above-mentioned processor and core control unit are responsible for the overall control and scheduling inside 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. 1) Valid PROFIBUSDP messages are cached in the memory; invalid PROFIBUSDP messages are discarded and no further operation is performed; 2) A mapping relationship between the address of the 5G communication unit of the current protocol adapter device and the address of the PLC controller to which it is connected is established to form an address mapping table in which multiple protocol adapter devices correspond to multiple PLC controllers one by one; 3) Message parsing and protocol conversion are performed through the industrial protocol conversion unit; 4) The encapsulated 5G protocol is wirelessly connected to the 5G base station through the 5G communication unit.
[0045] In addition, the above network interfaces include wired interfaces, wireless interfaces and expansion interfaces, as follows: 1) Wired interface, which is a PN network interface with an RJ45 interface and a DP interface based on the RS485 bus protocol. It is compatible with a variety of crimping terminals and has built-in terminal resistors to support wired connections and data transmission of industrial equipment. 2) Wireless interface: supports the Wi-Fi 6E standard, provides high-speed wireless LAN connection, and meets the wireless communication needs of industrial sites. 3) Expansion interface: covers USB interface, serial port, and GPIO interface, supporting users to expand and customize according to actual needs.
[0046] The above power supply unit adopts a switching power supply design with a wide voltage input to achieve efficient interface power management, ensuring stable operation of the equipment in different environments.
[0047] The above-mentioned heat dissipation system includes two cooling fans and a heat sink is welded on the back of the core PCB base plate to reduce the heat generated when the equipment is running and improve the reliability and service life of the equipment.
[0048] Step S202, control the industrial protocol conversion unit to obtain the above-mentioned parsed PROFIB USDP message, and perform protocol conversion between the above-mentioned PROFIB USDP protocol and the PROFINET protocol on the above-mentioned parsed PROFIB USDP message to obtain PROFINET PDU data. The above-mentioned industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIB USDP protocol. The above-mentioned PROFIB USDP PDU data is PDU data generated using the PROFINET protocol.
[0049] Specifically, Figure 3 As shown, the above industrial protocol conversion unit is mainly composed of a protocol adapter microchip, and also includes a PROFIBUS protocol microcontroller unit and a PROFINET protocol microcontroller unit, which supports the conversion of PROFINET and PROFIBUSDP 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) 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 PROFIBUSDP PDU data, wherein the PDU includes a function code, PLC application data and a data domain protocol field; 2) the protocol adapter microchip calls the communication data mapping relationship table, and according to the communication data relationship mapping table, confirms which data protocol this PROFIBUSDP communication request hopes to obtain, and performs protocol conversion on the above PROFIBUSDP PDU data, such as header adjustment, address conversion and protocol function mapping, to obtain the above PROFINET PDU data, the data content of the above communication data relationship mapping table includes: basic PLC information, master station DP configuration information, master station communication status, slave station DP configuration information, slave station communication status, slave station control, etc. The protocol header contains the source address, destination address, data length, checksum, etc. During the protocol conversion process, add, delete or modify the header field according to the industrial bus protocol. 3) Cache the effectively converted PROFINET PDU data to the memory.
[0050] Step S203, control the 5G communication unit to obtain the above-mentioned PROFINET PDU data from the memory of the above-mentioned industrial protocol conversion unit, and encapsulate the above-mentioned PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet. The above-mentioned 5G communication unit is responsible for encapsulating the message in the form of PROFINET protocol into a 5G data packet and performing 5G wireless transmission.
[0051] Specifically, Figure 3As shown, the above-mentioned 5G communication unit is mainly composed of a 5G baseband chip supporting the 5G NR standard, connected to components such as the 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, and is responsible for encapsulating PROFINET messages into 5G data packets and performing 5G wireless transmission, including the following steps: 1) obtaining PROFINET PDU data from the industrial protocol conversion unit; 2) using 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 to eventually form a 5G data packet. 3) According to the address mapping table in the processor and the core control unit memory, a transmission request is sent to the base station with the 5G LAN license function enabled, the 5G LAN network is accessed through the 5G base station scheduling, and an end-to-end connection is established 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 precise control and synchronous operation in the industrial automation process. With the development from Release-16 to Release-18, the functions and performance of 5G LAN have been continuously enhanced, including group member traffic characteristics and performance monitoring, cross-SMF management of VN Group, cross-VN Group communication, group management and group status 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 industrial Ethernet protocols such as PROFINET 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, controlling the wireless transmission of the above 5G data packet in the 5G network.
[0054] Specifically, 5G data packets are transmitted wirelessly in the 5G LAN network. The addition of 5G LAN breaks the correspondence between the factory automation system configuration view and the underlying network view. Terminal devices no longer build LANs through several switches, but 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 back-end core network elements dispatch devices based on information such as industrial terminal equipment, 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 user database (Unified Data Management, UDM), the designated industrial terminal numbers are signed for services and divided into the same or different virtual network groups (Virtual Network, VN Group).
[0056] 5G PDU session establishment request, the 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 request to SMF, which will forward it to PCF (Policy Control Function) through UPF, and then PCF forwards it to UDM. Identity authentication is performed based on user information stored in the database.
[0058] Policy decision and resource allocation: After authentication, PCF tells SMF the corresponding transmission policy, and SMF instructs UPF and access network to open data connection for corresponding services.
[0059] LAN communication management: When a 5G LAN group member initiates a PDU session, SMF downloads the user's group contract information from UDM, and manages the corresponding access UPF based on the group contract to perform LAN communication management.
[0060] Data forwarding: When multiple UPFs serve the same 5G VN group, data can be forwarded between UPFs through the N19 interface session.
[0061] Through the above-mentioned protocol adaptation process, the present invention completes the conversion of 5G protocol data and PROFINET\PROFIBUSDP protocol data, and realizes the interconnection and interoperability of heterogeneous protocols. By integrating the protocol adaptation device and method of the present invention into the PLC controller, each layer performs corresponding processing and encapsulation on the PDU data to ensure that the data can be efficiently and reliably transmitted in the 5GLAN network wireless channel, and a wireless communication channel is built between PLC controllers, realizing ultra-reliable and strong real-time communication between PLC controllers. By making the PLC controller wireless, it will promote the wireless transformation of the factory and help build a smart factory while protecting the existing PLC controller asset investment.
[0062] In this embodiment, first, the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and parse the above PROFIBUSDP message to obtain the parsed PROFIBUSDP message. The above 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. The above PROFIBUSDP message is a message generated by the PROFIBUSDP protocol; then, the industrial protocol conversion unit is controlled to obtain the above parsed PROFIBUSDP message, and the above parsed PROFIBUSDP message is converted between the PROFIBUSDP protocol and the PROFINET protocol to obtain PROFINET PDU data. The above industrial protocol conversion unit supports the conversion between the PROFINET protocol and the PROFIBUSDP protocol. The above PROFIBUS DP PDU data is the PDU data generated by the PROFINET protocol; then, the 5G communication unit is controlled to obtain the above PROFINET PDU data from the memory of the above industrial protocol conversion unit, and The PDU data is encapsulated layer by layer according to the 5G protocol stack to obtain a 5G data packet. The above-mentioned 5G communication unit is responsible for encapsulating the message in the form of PROFINET protocol into a 5G data packet and performing 5G wireless transmission; finally, the above-mentioned 5G data packet is controlled to be wirelessly transmitted in the 5G network. This application sends a 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 parse the PROFIBUS message; the industrial protocol conversion unit obtains the parsed PROFIBUS message, performs PROFIBUS protocol and PROFINET protocol conversion, and obtains PROFINET PDU data; the 5G communication unit obtains PROFINET PDU data from the memory of the industrial protocol conversion unit, encapsulates the PROFINET PDU data with 5G protocol data, generates a 5G data packet, and the 5G data packet is wirelessly transmitted in the 5G LAN network. Through the above-mentioned protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection and interoperability of heterogeneous protocols is realized. A wireless communication channel is built between PLC controllers, and ultra-reliable and strong real-time communication between PLC controllers is realized. The present application solves the problem in the prior art that a protocol adapter or a protocol converter is required to realize the conversion between PROFIBUS protocol and PROFINET protocol, which results in a long transmission path and complex dependencies.
[0063] In order to enable those skilled in the art to more clearly understand the technical solution 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 nature of protocol conversion, in an optional implementation, before the above step S201, the method further includes:
[0065] Step S301, the PLC controller sends the PROFIBUSDP 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 sending cycle of the control instruction, and the control instruction is an instruction for the control protocol conversion system to perform data protocol conversion and realize 5G wireless transmission.
[0066] In the above embodiment, the PLC controller sends PROFIBUSDP messages 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 sending cycle of the control instruction. Among them, the PLC controller uses the PROFIBUSDP protocol for communication and networking, and can be configured as a PROFIBUS master station or a PROFIBUS slave station, such as Figure 3 As shown. The PLC controller sends PROFIBUSDP messages to the processor and core control unit according to the established periodic control instructions. The periodic sending of control instructions 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 sends PROFIBUSDP messages, which is the starting point of the entire data conversion and transmission process, and starts the data conversion process from industrial Ethernet to wireless network. Through this step, data begins to flow in the system, thereby activating the subsequent protocol parsing, conversion and encapsulation mechanisms, realizing the wirelessization of PLC controllers and supporting industrial wireless control.
[0067] In order to improve the communication efficiency, flexibility and scalability of the industrial automation system, in an optional implementation, before the above step S301, the method further includes:
[0068] Step S401, establishing a network topology and a logical connection relationship for each of the above-mentioned PLC controllers deployed at the industrial site according to industrial application requirements, and determining control attributes of each of the above-mentioned PLC controllers, wherein the above-mentioned control attributes are divided into a master station and a slave station;
[0069] Step S402, establishing an address mapping table according to the network topology, the logical connection relationship and the control attribute of each of the PLC controllers, wherein the address mapping table is a one-to-one mapping relationship between the address of each of the PLC controllers and the address of the corresponding connected 5G communication module;
[0070] Step S403, establish the PROFIBUSDP protocol version, and establish a wireless connection relationship between the 5G communication unit and the 5G base station.
[0071] In the above embodiment, if Figure 4 As shown, system initialization includes the following steps: 1) Establish an address mapping table. According to the needs of industrial applications, engineers establish network topology and logical connections for PLC controllers deployed at industrial sites, and determine the control master 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 to it is established to form an address mapping table, which is 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 as needed. This embodiment takes the most widely used PROFIBUS-DP as an example for explanation. 3) Establish a 5G wireless network connection relationship. After the system is powered on, all PLC controllers and protocol adapters are initialized respectively. 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 work together to build a complete data transmission link from industrial field equipment to 5G wireless networks, achieving seamless connection between industrial Ethernet data and wireless networks, improving the communication efficiency, flexibility and scalability of industrial automation systems, and providing key technical support for the development of industrial wireless and intelligent technologies.
[0072] In order to avoid parsing and processing invalid data, in an optional implementation manner, the above step S201 includes:
[0073] Step S2011, controlling the processor and the core control unit to determine the validity of the PROFIBUSDP message according to the PROFIBUSDP protocol version;
[0074] Step S2012, caching the valid PROFIBUSDP message into the memory of the processor and the core control unit, and discarding the invalid PROFIBUSDP message;
[0075] Step S2013, control the above-mentioned processor and the core control unit to parse the above-mentioned valid PROFIBUSDP message in the above-mentioned memory in the storage order, so as to obtain the above-mentioned parsed PROFIBUSDP message according to the corresponding PROFIBUSDP protocol version, and the above-mentioned parsed PROFIBUSDP message at least includes an address code, a protocol data unit and a check code, and the above-mentioned protocol data unit includes a function code, PLC application data and a data domain protocol field.
[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 judge the validity of the data according to the PROFIBUS protocol version. For valid data, it is cached in the memory; for invalid data, it is discarded and no longer operated. By verifying whether the message conforms to the specific PROFIBUSDP protocol version, the integrity and correct format of the data can be ensured, and communication failure caused by data format errors can be avoided. Taking PROFIBUS-DP as an example, its physical layer adopts RS485 communication, and each character consists of 1 start bit, 8 data bits, 1 even parity bit and 1 end bit. When the baud rate is 1.5Mbps, the time of each bit is 0.6667μs. When the check is not satisfied, 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 parse the cached valid PROFIBUS messages in sequence, and obtain information such as address code, protocol data unit (PDU) and check code according to different PROFIBUS protocol versions. Avoiding the parsing and processing of invalid data reduces the workload of the processor and core control unit and improves the overall response speed of the system. Figure 5 It shows the differences in data processing between PROFINET and PROFIBUSDP, and the information added, deleted or modified at each layer of protocol conversion, such as Figure 5 As shown in the figure, when the PROFIBUSDP protocol processes data, only the physical layer and the data link layer perform message parsing to obtain the final parsed PROFIBUSDP message. Only valid messages are subsequently processed, which reduces the waste of invalid data and improves the data processing efficiency of the processor and the core control unit.
[0077] In order to enhance the interoperability and service scalability of heterogeneous devices in the industrial network, in an optional implementation, the above step S202 includes:
[0078] Step S2021, controlling the PROFIBUSDP microcontroller unit in the industrial protocol conversion unit to obtain the parsed PROFIBUSDP message from the memory of the processor and the core control unit to perform structure parsing and data extraction to obtain preliminary parsed data;
[0079] Step S2022, removing the address code, protocol data unit and check code from the above-mentioned preliminary parsed data to obtain PROFIBUS DP PDU data;
[0080] Step S2023, controlling the PROFINET micro control unit in the industrial protocol conversion unit to convert the PROFIBUSDP protocol into the frame structure construction and data encapsulation of the PROFIBUSDP protocol on the PROFIBUSDPDU data to obtain the PROFINET PDU data.
[0081] In the above embodiment, the PROFIBUSDP microcontroller unit in the industrial protocol conversion unit obtains and parses the PROFIBUSDP message from the memory of the processor and the core control unit, performs structural analysis and data extraction on the PROFIBUSDP data frame, and obtains the address code, PDU and check code according to the determined version of the PROFIBUSDP protocol; the PDU includes the function code, PLC application data and the data domain protocol field. Then remove the address code, check code and other information to obtain the PROFIBUSDP PDU data. The preliminary data after parsing removes the address code and check code fields in the message, reduces the redundant information in the subsequent transmission, improves the transmission efficiency, prepares the data domain 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 microcontroller unit in the industrial protocol conversion unit implements the frame structure construction and data encapsulation from PROFIBUSDP to 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 headers, TCP / UDP headers and possible other service layer headers. 3) Store the parsed and converted PROFINET PDU data in the memory of the industrial protocol conversion unit. In summary, by parsing, streamlining and encapsulating data, the conversion from PROFIBUSDP to PROFINET protocol is realized, providing the 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 scalability of heterogeneous devices in industrial networks, and is a key link in realizing data transmission in industrial automation and intelligent manufacturing.
[0082] In order to accurately perform protocol conversion, in an optional implementation manner, the above step S2023 includes:
[0083] Step S20231, mapping the data flow of the PROFIBUSDP PDU data to the flow label of the PROFINET protocol;
[0084] Step S20232, mapping the device address of the PROFIBUSDP PDU data to the IP address of the PROFINET protocol;
[0085] Step S20233: convert the frame format of the PROFIBUSDP PDU data from the PROFIBUSDP protocol to the frame format under the PROFINET protocol to obtain the PROFINET PDU data.
[0086] In the above embodiment, the data stream of PROFIBUSDP PDU data is mapped to the stream label of PROFINET through VCR_ID to ensure the uniqueness and correctness of the data stream. Among them, 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 PROFIBUSDP PDU data is mapped to the IP address of PROFINET. An address mapping table is required to maintain this mapping relationship and perform search and replacement during the conversion process; by calling the data mapping relationship table of the communication data between the processor and the core control unit, the header adjustment, address conversion, and protocol function mapping of the data protocol that this PROFIBUSDP communication request hopes to obtain are confirmed according to the data mapping table for protocol conversion, and the data content included is basic PLC information, master station DP configuration information, master station communication status, slave station DP configuration information, slave station communication status, slave station control, etc. In the process of converting the PROFIBUSDP to PROFINET protocol frame format, PROFINET supports multiple communication modes, including TCP / IP, UDP, etc., while PROFIBUSDP is based on the master-slave communication mode. Specifically, the physical layer performs protocol adaptation; the data link layer converts the DP frame structure into the PROFINET Ethernet frame structure; the network layer adds an IP header, including the source IP and destination IP addresses; the transport layer adds a TCP / UDP header to ensure end-to-end data transmission; the application layer encapsulates data according to the PROFINET application layer protocol and adds IO, alarm, logging and other service information supported by PROFINET, such as Figure 5 shown.
[0087] In order to ensure 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 data adaptation protocol layer in the above-mentioned 5G communication unit to perform service adaptation on the above-mentioned PROFINET PDU data, completing the mapping to the radio bearer in the form of a stream, and obtaining the SDAP PDU data;
[0089] Step S2032, controlling the packet data convergence protocol layer in the above 5G communication unit to perform header compression, data encryption and integrity protection processing on the PDU data in sequence to obtain PDCP PDU data;
[0090] Step S2033, controlling the radio link control layer in the 5G communication unit to process the received PDCP PDU data, and performing data processing on the PDCP PDU data according to the configured working mode, generating RLC PDU data, and waiting for a transmission instruction from the media access control layer, wherein the working mode includes a confirmation mode, a non-confirmation mode, and a transparent mode, and the data processing includes at least transmission of upper layer PDU data, error correction through an automatic retransmission request, and reordering of data PDUs, and the transmission instruction is to transmit the RLC PDU data to the media access control layer;
[0091] Step S2034, controlling the media access control layer in the 5G communication unit to instruct the radio link control layer to transmit the RLC PDU data to the coal access control layer, and the media access control layer encapsulates the RLC PDU data into MAC PDU data;
[0092] Step S2035, controlling the physical layer transmission in the above-mentioned 5G communication unit to convert the above-mentioned MAC PDU data into a signal transmitted through the target wireless channel to obtain the above-mentioned 5G data packet.
[0093] In the above embodiment, Figure 6 FIG. 1 shows a schematic diagram of a process of encapsulating a PROFINET DP PDU into a 5G data packet and transmitting it wirelessly according to an embodiment of the present application, as shown in FIG. Figure 6As shown, first, the Service Data Adaptation Protocol Layer (SDAP) processes and performs service adaptation on the PROFINET PDU data, and completes the mapping to the wireless bearer in the form of a stream to ensure that the data can be correctly mapped to the wireless transmission link. Then, the Packet Data Convergence Protocol Layer (PDCP) is responsible for header compression, data encryption, and integrity protection of the PDU data, and provides sequential delivery of the upper layer PDU for 5G RLC. Header compression reduces the size of the header, improves transmission efficiency, and reduces the overhead of wireless transmission; data encryption protects the security of data transmission in the wireless network and prevents data from being eavesdropped or tampered with; integrity checks ensure that the data has not been changed during transmission, thereby improving the reliability of data transmission. After that, the Radio Link Control Layer (RLC) receives the data from the PDCP layer and processes it according to the configured Acknowledged Mode (AM), Unacknowledged Mode (UM) and Transparent Mode (TM), including the transmission of upper layer PDUs, error correction through Automatic Repeat-reQuest (ARQ) (only for AM data transmission), reordering of data PDUs (only for UM and AM data transmission), etc. In 5G NR, the RLC layer can generate RLC PDUs immediately and save them in the transmission warehouse, waiting for the transmission instruction from the MAC layer. After that, the Medium Access Control Layer (MAC) is responsible for the scheduling of wireless resources, allocating resources on the physical shared channel (PDSCH / PUSCH) to the UE, and selecting the appropriate Modulation and Coding Scheme (MCS) for data transmission. The MAC layer instructs the RLC layer that there is a transmission opportunity and specifies the amount of data that can be transmitted. The RLC layer passes the RLC PDU to the MAC layer according to the instruction. Finally, the physical layer (Physical Layer, PHY) layer processes it, and the MAC layer further encapsulates the RLC PDU into a MAC PDU, adds a MAC header, and then passes it to the physical layer. The physical layer converts the MAC PDU into a signal suitable for transmission over the wireless channel and sends it out through the antenna. The above embodiment describes in detail the encapsulation process from PROFINET protocol data unit (PDU) to 5G data packet. 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 multiple aspects such as data stream adaptation, compression, encryption, error correction, reordering, resource scheduling, encapsulation, and signal conversion. This series of operations not only ensures the efficient and secure transmission of industrial data in 5G wireless networks, but also meets the strict requirements of real-time, reliability, and security in industrial control scenarios. The entire process makes full use of the low latency, high bandwidth, and high reliability of 5G networks, providing key technical support for industrial wirelessization.
[0094] It should also be noted that the present invention has the following advantages:
[0095] 1. Rapid networking of industrial equipment: This invention uses wireless controllers to quickly adapt to environmental changes, enable remote data collection, monitoring and control services, and achieve 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 integrates seamlessly with existing PLC controllers, significantly improving the flexibility and efficiency of industrial networking.
[0096] 2. Heterogeneous device interconnection and message transmission optimization: The present invention processes different types of industrial protocol messages and realizes seamless connection and communication between heterogeneous devices. By simplifying the network architecture and reducing the need for protocol conversion, the efficiency of message transmission is improved, and it is highly adaptable to multi-device and multi-protocol business scenarios, promoting collaborative work and data exchange between industrial devices.
[0097] 3. 5G LAN network realizes wireless transmission of industrial protocols: A new method of realizing industrial protocol transmission by utilizing the wireless transmission capability of 5G LAN network. With the technical advantages of 5G LAN such as high reliability, low latency, wide coverage, high bandwidth and high security, as well as the application characteristics such as flexible networking, internal and external network integration, easy coverage and cost reduction, 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 flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, 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 also 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 method for industrial Ethernet and wireless network data exchange provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0100] The following is an introduction to the industrial Ethernet and wireless network data exchange device provided in the embodiment of the present application.
[0101] Figure 7 1 is a structural block diagram of an industrial Ethernet and wireless network data exchange device according to an embodiment of the present application. Figure 7 As shown, 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 parse the above-mentioned PROFIBUS DP message to obtain the parsed PROFIBUS DP message. The above-mentioned 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. The above-mentioned PROFIBUS DP message is a message generated by the PROFIBUS DP protocol.
[0103] Specifically, Figure 3The structural block diagram of the protocol adaptation system is shown, and the protocol adaptation system includes a processor and a 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 above-mentioned protocol adaptation system is connected to the I / O interface of the PLC controller through the I / O interface in the network interface, wherein the PLC controller adopts the PROFIBUSDP protocol for communication and networking, and can be configured as a master station or a slave station. 1. The above-mentioned processor and core control unit, with a high-performance ARM architecture multi-core processor as the main body of the core control unit, to handle the industrial protocol conversion task and wireless network data transmission between PROFINET and PROFIBUSDP protocols. The above-mentioned processor and core control unit are responsible for the overall control and scheduling inside 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. 1) Valid PROFIBUSDP messages are cached in the memory; invalid PROFIBUSDP messages are discarded and no further operation is performed; 2) A mapping relationship between the address of the 5G communication unit of the current protocol adapter device and the address of the PLC controller to which it is connected is established to form an address mapping table in which multiple protocol adapter devices correspond to multiple PLC controllers one by one; 3) Message parsing and protocol conversion are performed through the industrial protocol conversion unit; 4) The encapsulated 5G protocol is wirelessly connected to 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 above-mentioned parsed PROFIBUSDP message, and perform protocol conversion on the above-mentioned parsed PROFIBUSDP message between the above-mentioned PROFIBUSDP protocol and the PROFINET protocol to obtain PROFINET PDU data. The above-mentioned industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIBUSDP protocol. The above-mentioned PROFIBUSDP PDU data is PDU data generated using the PROFINET protocol.
[0105] Specifically, Figure 3As shown, the above industrial protocol conversion unit is mainly composed of a protocol adapter microchip, and also includes a PROFIBUS protocol microcontroller unit and a PROFINET protocol microcontroller unit, which supports the conversion of PROFINET and PROFIBUSDP 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) 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 PROFIBUSDP PDU data, wherein the PDU includes a function code, PLC application data and a data domain protocol field; 2) the protocol adapter microchip calls the communication data mapping relationship table, and according to the communication data relationship mapping table, confirms which data protocol this PROFIBUSDP communication request hopes to obtain, and performs protocol conversion on the above PROFIBUSDP PDU data, such as header adjustment, address conversion and protocol function mapping, to obtain the above PROFINET PDU data, the data content of the above communication data relationship mapping table includes: basic PLC information, master station DP configuration information, master station communication status, slave station DP configuration information, slave station communication status, slave station control, etc. The protocol header contains the source address, destination address, data length, checksum, etc. During the protocol conversion process, add, delete or modify the header field according to the industrial bus protocol. 3) Cache the effectively converted PROFINET PDU data to the memory.
[0106] The third control unit 30 is used to control the 5G communication unit to obtain the above-mentioned PROFINET PDU data from the memory of the above-mentioned industrial protocol conversion unit, and encapsulate the above-mentioned PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet. The above-mentioned 5G communication unit is responsible for encapsulating the message in the form of PROFINET protocol into a 5G data packet and performing 5G wireless transmission.
[0107] Specifically, Figure 3As shown, the above-mentioned 5G communication unit is mainly composed of a 5G baseband chip supporting the 5G NR standard, connected to components such as the 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, and is responsible for encapsulating PROFINET messages into 5G data packets and performing 5G wireless transmission, including the following steps: 1) obtaining PROFINET PDU data from the industrial protocol conversion unit; 2) using 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 to eventually form a 5G data packet. 3) According to the address mapping table in the processor and the core control unit memory, a transmission request is sent to the base station with the 5G LAN license function enabled, the 5G LAN network is accessed through the 5G base station scheduling, and an end-to-end connection is established 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-latency communication to ensure precise control and synchronous operation in the industrial automation process. With the development from Release-16 to Release-18, the functions and performance of 5G LAN have been continuously enhanced, including group member traffic characteristics and performance monitoring, cross-SMF management of VN Group, cross-VN Group communication, group management and group status 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 industrial Ethernet protocols such as PROFINET 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.
[0109] The fourth control unit 40 is used to control the wireless transmission of the above-mentioned 5G data packets in the 5G network.
[0110] Specifically, 5G data packets are transmitted wirelessly in the 5G LAN network. The addition of 5G LAN breaks the correspondence between the factory automation system configuration view and the underlying network view. Terminal devices no longer build LANs through several switches, but 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 back-end core network elements dispatch devices based on information such as industrial terminal equipment, 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 user database (Unified Data Management, UDM), the designated industrial terminal numbers are signed for services and divided into the same or different virtual network groups (Virtual Network, VN Group).
[0112] 5G PDU session establishment request, the 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 request to SMF, which will forward it to PCF (Policy Control Function) through UPF, and then PCF forwards it to UDM. Identity authentication is performed based on user information stored in the database.
[0114] Policy decision and resource allocation: After authentication, PCF tells SMF the corresponding transmission policy, and SMF instructs UPF and access network to open data connection for corresponding services.
[0115] LAN communication management: When a 5G LAN group member initiates a PDU session, SMF downloads the user's group contract information from UDM, and manages the corresponding access UPF based on the group contract to perform LAN communication management.
[0116] Data forwarding: When multiple UPFs serve the same 5G VN group, data can be forwarded between UPFs through the N19 interface session.
[0117] Through the above-mentioned protocol adaptation process, the present invention completes the conversion of 5G protocol data and PROFINET\PROFIBUSDP protocol data, and realizes the interconnection and interoperability of heterogeneous protocols. By integrating the protocol adaptation device and method of the present invention into the PLC controller, each layer performs corresponding processing and encapsulation on the PDU data to ensure that the data can be efficiently and reliably transmitted in the 5GLAN network wireless channel, and a wireless communication channel is built between PLC controllers, realizing ultra-reliable and strong real-time communication between PLC controllers. By making the PLC controller wireless, it will promote the wireless transformation of the factory and help build a smart factory while protecting the existing PLC controller asset investment.
[0118] In this embodiment, the industrial Ethernet and wireless network data exchange device sends PROFIBUS messages to the processor and the core control unit through the PLC controller; the processor and the core control unit receive the PROFIBUS messages sent by the PLC controller and parse the PROFIBUS messages; the industrial protocol conversion unit obtains the parsed PROFIBUS messages, performs PROFIBUS protocol and PROFINET protocol conversion, and obtains PROFINET PDU data; the 5G communication unit obtains PROFINET PDU data from the memory of the industrial protocol conversion unit, performs 5G protocol data encapsulation on the PROFINET PDU data, generates 5G data packets, and the 5G data packets are wirelessly transmitted in the 5G LAN network. Through the above-mentioned protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection and interoperability of heterogeneous protocols is realized. A wireless communication channel is built between PLC controllers, and ultra-reliable strong real-time communication between PLC controllers is realized. This application solves the problem that the prior art needs to introduce a protocol adapter or a protocol converter to realize the conversion of PROFIBUS protocol and PROFINET protocol, and there are long transmission paths and complex dependencies.
[0119] In order to improve the wireless nature of protocol conversion, in an optional implementation, the device further includes:
[0120] A sending unit is used for sending the PROFIBUSDP 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 sending cycle of the control instruction before the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller. The control instruction is an instruction for the control protocol conversion system to perform data protocol conversion and realize 5G wireless transmission.
[0121] In the above embodiment, the PLC controller sends PROFIBUSDP messages 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 sending cycle of the control instruction. Among them, the PLC controller uses the PROFIBUSDP protocol for communication and networking, and can be configured as a PROFIBUS master station or a PROFIBUS slave station, such as Figure 3 As shown. The PLC controller sends PROFIBUSDP messages to the processor and core control unit according to the established periodic control instructions. The periodic sending of control instructions 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 sends PROFIBUSDP messages, which is the starting point of the entire data conversion and transmission process, and starts the data conversion process from industrial Ethernet to wireless network. Through this step, data begins to flow in the system, thereby activating the subsequent protocol parsing, conversion and encapsulation mechanisms, realizing the wirelessization of PLC controllers and supporting industrial wireless control.
[0122] In order to improve the communication efficiency, flexibility and scalability of the industrial automation system, in an optional implementation, the device further includes:
[0123] The first establishing unit is used to establish a network topology and a logical connection relationship for each of the above-mentioned PLC controllers deployed at the industrial site according to industrial application requirements before the PLC controller sends the above-mentioned PROFIBUSDP message to the I / O interface of the above-mentioned processor and the core control unit through the I / O interface of the above-mentioned PLC controller according to the sending cycle of the control instruction, and determine the control attributes of each of the above-mentioned PLC controllers, and the above-mentioned control attributes are divided into a master station and a slave station;
[0124] A second establishing unit is used to establish an address mapping table according to the network topology, the logical connection relationship and the control attribute of each of the above-mentioned PLC controllers, wherein the address mapping table is a one-to-one mapping relationship between the address of each of the above-mentioned PLC controllers and the address of the corresponding connected 5G communication module;
[0125] The determination unit is used to establish the PROFIBUSDP protocol version and establish a wireless connection relationship between the 5G communication unit and the 5G base station.
[0126] In the above embodiment, if Figure 4As shown, system initialization includes the following steps: 1) Establish an address mapping table. According to the needs of industrial applications, engineers establish network topology and logical connections for PLC controllers deployed at industrial sites, and determine the control master 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 to it is established to form an address mapping table, which is 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 as needed. This embodiment takes the most widely used PROFIBUS-DP as an example for explanation. 3) Establish a 5G wireless network connection relationship. After the system is powered on, all PLC controllers and protocol adapters are initialized respectively. 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 work together to build a complete data transmission link from industrial field equipment to 5G wireless networks, achieving seamless connection between industrial Ethernet data and wireless networks, improving the communication efficiency, flexibility and scalability of industrial automation systems, and providing key technical support for the development of industrial wireless and intelligent technologies.
[0127] In order to avoid parsing and processing invalid data, in an optional implementation manner, the first control unit includes:
[0128] A first control module, used to control the processor and the core control unit to determine the validity of the PROFIBUSDP message according to the PROFIBUSDP protocol version;
[0129] A cache module, used to cache the valid PROFIBUSDP message to the memory of the processor and the core control unit, and discard the invalid PROFIBUSDP message;
[0130] The parsing module is used to control the processor and the core control unit to parse the valid PROFIBUSDP message in the memory in the storage order, so as to obtain the parsed PROFIBUSDP message according to the corresponding PROFIBUSDP protocol version. The parsed PROFIBUSDP message at least includes 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 domain protocol field.
[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 judge the validity of the data according to the PROFIBUS protocol version. For valid data, it is cached in the memory; for invalid data, it is discarded and no longer operated. By verifying whether the message conforms to the specific PROFIBUSDP protocol version, the integrity and correct format of the data can be ensured, and communication failure caused by data format errors can be avoided. Taking PROFIBUS-DP as an example, its physical layer adopts RS485 communication, and each character consists of 1 start bit, 8 data bits, 1 even parity bit and 1 end bit. When the baud rate is 1.5Mbps, the time of each bit is 0.6667μs. When the check is not satisfied, 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 parse the cached valid PROFIBUS messages in sequence, and obtain information such as address code, protocol data unit (PDU) and check code according to different PROFIBUS protocol versions. Avoiding the parsing and processing of invalid data reduces the workload of the processor and core control unit and improves the overall response speed of the system. Figure 5 It shows the differences in data processing between PROFINET and PROFIBUSDP, and the information added, deleted or modified at each layer of protocol conversion, such as Figure 5 As shown in the figure, when the PROFIBUSDP protocol processes data, only the physical layer and the data link layer perform message parsing to obtain the final parsed PROFIBUSDP message. Only valid messages are subsequently processed, which reduces the waste of invalid data and improves the data processing efficiency of the processor and the core control unit.
[0132] In order to enhance the interoperability and service scalability of heterogeneous devices in the industrial network, in an optional implementation manner, the second control unit includes:
[0133] The second control module is used to control the PROFIBUSDP micro control unit in the industrial protocol conversion unit to obtain the parsed PROFIBUSDP message from the memory of the processor and the core control unit to perform structural analysis and data extraction to obtain preliminary parsed data;
[0134] A removal module, used to remove the address code, protocol data unit and check code in the above preliminary parsed data to obtain PROFIBUSDP PDU data;
[0135] The third control module controls the PROFINET micro control unit in the industrial protocol conversion unit to convert the PROFIBUSDP protocol into the frame structure construction and data encapsulation of the PROFINET protocol on the PROFIBUSDP PDU data to obtain the PROFINET PDU data.
[0136] In the above embodiment, the PROFIBUSDP microcontroller unit in the industrial protocol conversion unit obtains and parses the PROFIBUSDP message from the memory of the processor and the core control unit, performs structural analysis and data extraction on the PROFIBUSDP data frame, and obtains the address code, PDU and check code according to the determined version of the PROFIBUSDP protocol; the PDU includes the function code, PLC application data and the data domain protocol field. Then remove the address code, check code and other information to obtain the PROFIBUSDP PDU data. The preliminary data after parsing removes the address code and check code fields in the message, reduces the redundant information in the subsequent transmission, improves the transmission efficiency, prepares the data domain 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 microcontroller unit in the industrial protocol conversion unit implements the frame structure construction and data encapsulation from PROFIBUSDP to 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 headers, TCP / UDP headers and possible other service layer headers. 3) Store the parsed and converted PROFINET PDU data in the memory of the industrial protocol conversion unit. In summary, by parsing, streamlining and encapsulating data, the conversion from PROFIBUSDP to PROFINET protocol is realized, providing the 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 scalability of heterogeneous devices in industrial networks, and is a key link in realizing data transmission in industrial automation and intelligent manufacturing.
[0137] In order to accurately perform protocol conversion, in an optional implementation manner, the third control module includes:
[0138] A first mapping submodule, configured to map the data stream of the PROFIBUSDP PDU data to a stream label of the PROFINET protocol;
[0139] A second mapping submodule is used to map the device address of the PROFIBUSDP PDU data to the IP address of the PROFINET protocol;
[0140] The frame format conversion submodule is used to convert the frame format of the PROFIBUSDP PDU data from the PROFIBUSDP protocol to the frame format under the PROFINET protocol to obtain the PROFINET PDU data.
[0141] In the above embodiment, the data stream of PROFIBUSDP PDU data is mapped to the stream label of PROFINET through VCR_ID to ensure the uniqueness and correctness of the data stream. Among them, 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 PROFIBUSDP PDU data is mapped to the IP address of PROFINET. An address mapping table is required to maintain this mapping relationship and perform search and replacement during the conversion process; by calling the data mapping relationship table of the communication data between the processor and the core control unit, the header adjustment, address conversion, and protocol function mapping of the data protocol that this PROFIBUSDP communication request hopes to obtain are confirmed according to the data mapping table for protocol conversion, and the data content included is basic PLC information, master station DP configuration information, master station communication status, slave station DP configuration information, slave station communication status, slave station control, etc. In the process of converting the PROFIBUSDP to PROFINET protocol frame format, PROFINET supports multiple communication modes, including TCP / IP, UDP, etc., while PROFIBUSDP is based on the master-slave communication mode. Specifically, the physical layer performs protocol adaptation; the data link layer converts the DP frame structure into the PROFINET Ethernet frame structure; the network layer adds an IP header, including the source IP and destination IP addresses; the transport layer adds a TCP / UDP header to ensure end-to-end data transmission; the application layer encapsulates data according to the PROFINET application layer protocol and adds IO, alarm, logging and other service information supported by PROFINET, such as Figure 5 shown.
[0142] In order to ensure efficient and secure transmission of industrial data in the 5G wireless network, in an optional implementation manner, the third control unit includes:
[0143] A fourth control module is used to control the service data adaptation protocol layer in the above-mentioned 5G communication unit to perform service adaptation on the above-mentioned PROFINET PDU data, complete the mapping to the wireless bearer in the form of a stream, and obtain SDAP PDU data;
[0144] A fifth control module is used to control the packet data convergence protocol layer in the above-mentioned 5G communication unit to perform header compression, data encryption and integrity protection processing on the PDU data in sequence to obtain PDCP PDU data;
[0145] a sixth control module, configured to control the radio link control layer in the 5G communication unit to process the received PDCP PDU data, perform data processing on the PDCP PDU data according to the configured working mode, generate RLC PDU data, and wait for a transmission instruction from the media access control layer, wherein the working mode includes a confirmation mode, a non-confirmation mode, and a transparent mode, the data processing includes at least transmission of upper layer PDU data, error correction through an automatic retransmission request, and reordering of data PDUs, and the transmission instruction is to transmit the RLC PDU data to the media access control layer;
[0146] A seventh control module, used to control the media access control layer in the 5G communication unit to instruct the radio link control layer to transmit the RLC PDU data to the coal access control layer, and the media access control layer encapsulates the RLC PDU data into MAC PDU data;
[0147] The eighth control module is used to control the physical layer transmission in the above-mentioned 5G communication unit to convert the above-mentioned MAC PDU data into a signal transmitted through the target wireless channel to obtain the above-mentioned 5G data packet.
[0148] In the above embodiment, Figure 6 FIG. 1 shows a schematic diagram of a process of encapsulating a PROFINET DP PDU into a 5G data packet and transmitting it wirelessly according to an embodiment of the present application, as shown in FIG. Figure 6As shown, first, the Service Data Adaptation Protocol Layer (SDAP) processes and performs service adaptation on the PROFINET PDU data, and completes the mapping to the wireless bearer in the form of a stream to ensure that the data can be correctly mapped to the wireless transmission link. Then, the Packet Data Convergence Protocol Layer (PDCP) is responsible for header compression, data encryption, and integrity protection of the PDU data, and provides sequential delivery of the upper layer PDU for 5G RLC. Header compression reduces the size of the header, improves transmission efficiency, and reduces the overhead of wireless transmission; data encryption protects the security of data transmission in the wireless network and prevents data from being eavesdropped or tampered with; integrity checks ensure that the data has not been changed during transmission, thereby improving the reliability of data transmission. After that, the Radio Link Control Layer (RLC) receives the data from the PDCP layer and processes it according to the configured Acknowledged Mode (AM), Unacknowledged Mode (UM) and Transparent Mode (TM), including the transmission of upper layer PDUs, error correction through Automatic Repeat-reQuest (ARQ) (only for AM data transmission), reordering of data PDUs (only for UM and AM data transmission), etc. In 5G NR, the RLC layer can generate RLC PDUs immediately and save them in the transmission warehouse, waiting for the transmission instruction from the MAC layer. After that, the Medium Access Control Layer (MAC) is responsible for the scheduling of wireless resources, allocating resources on the physical shared channel (PDSCH / PUSCH) to the UE, and selecting the appropriate Modulation and Coding Scheme (MCS) for data transmission. The MAC layer instructs the RLC layer that there is a transmission opportunity and specifies the amount of data that can be transmitted. The RLC layer passes the RLC PDU to the MAC layer according to the instruction. Finally, the physical layer (Physical Layer, PHY) layer processes it, and the MAC layer further encapsulates the RLC PDU into a MAC PDU, adds a MAC header, and then passes it to the physical layer. The physical layer converts the MAC PDU into a signal suitable for transmission over the wireless channel and sends it out through the antenna. The above embodiment describes in detail the encapsulation process from PROFINET protocol data unit (PDU) to 5G data packet. 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 multiple aspects such as data stream adaptation, compression, encryption, error correction, reordering, resource scheduling, encapsulation, and signal conversion. This series of operations not only ensures the efficient and secure transmission of industrial data in 5G wireless networks, but also meets the strict requirements of real-time, reliability, and security in industrial control scenarios. The entire process makes full use of the low latency, high bandwidth, and high reliability of 5G networks, providing key technical support for industrial wirelessization.
[0149] The industrial Ethernet and wireless network data exchange device includes a processor and a memory. 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 implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0150] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the problem that the existing technology needs to introduce a protocol adapter or a protocol converter to achieve the conversion between PROFIBUS protocol and PROFINET protocol, and the transmission path is long and the dependency is complex.
[0151] The memory may 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 RAM, and the memory includes at least one memory chip.
[0152] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the industrial Ethernet and wireless network data exchange method.
[0153] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the program executes the industrial Ethernet and wireless network data exchange method when running.
[0154] An embodiment of the present invention provides a protocol adaptation system, the protocol adaptation system includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0155] Step S201, the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and parse the PROFIBUSDP message to obtain the parsed 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. The PROFIBUSDP message is a message generated by the PROFIBUSDP protocol;
[0156] Step S202, controlling the industrial protocol conversion unit to obtain the parsed PROFIB USDP message, and performing protocol conversion between the PROFIB USDP protocol and the PROFINET protocol on the parsed PROFIB USDP message to obtain PROFINET PDU data, wherein the industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIB USDP protocol, and the PROFIB USDP PDU data is PDU data generated by the PROFINET protocol;
[0157] Step S203, controlling the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulating 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;
[0158] Step S204, controlling the wireless transmission of the above 5G data packet in the 5G network.
[0159] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0160] Step S201, the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and parse the PROFIBUSDP message to obtain the parsed 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. The PROFIBUSDP message is a message generated by the PROFIBUSDP protocol;
[0161] Step S202, controlling the industrial protocol conversion unit to obtain the parsed PROFIB USDP message, and performing protocol conversion between the PROFIB USDP protocol and the PROFINET protocol on the parsed PROFIB USDP message to obtain PROFINET PDU data, wherein the industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIB USDP protocol, and the PROFIB USDP PDU data is PDU data generated by the PROFINET protocol;
[0162] Step S203, controlling the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulating 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;
[0163] Step S204, controlling the wireless transmission of the above 5G data packet in the 5G network.
[0164] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0165] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0166] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0167] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0169] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0170] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0171] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0172] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0173] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0174] 1) The industrial Ethernet and wireless network data exchange method of the present application sends a 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 parse the PROFIBUS message; the industrial protocol conversion unit obtains the parsed PROFIBUS message, performs PROFIBUS protocol and PROFINET protocol conversion, and obtains PROFINET PDU data; the 5G communication unit obtains PROFINET PDU data from the memory of the industrial protocol conversion unit, performs 5G protocol data encapsulation on the PROFINET PDU data, generates a 5G data packet, and the 5G data packet is wirelessly transmitted in the 5G LAN network. Through the above-mentioned protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection and interoperability of heterogeneous protocols is realized. A wireless communication channel is built between PLC controllers, and ultra-reliable strong real-time communication between PLC controllers is realized. The present application solves the problem that the prior art needs to introduce a protocol adapter or a protocol converter to realize the conversion between PROFIBUS protocol and PROFINET protocol, and there is a long transmission path and complex dependencies.
[0175] 2) The industrial Ethernet and wireless network data exchange device of the present application sends PROFIBUS messages to the processor and the core control unit through the PLC controller; the processor and the core control unit receive the PROFIBUS messages sent by the PLC controller and parse the PROFIBUS messages; the industrial protocol conversion unit obtains the parsed PROFIBUS messages, performs PROFIBUS protocol and PROFINET protocol conversion, and obtains PROFINET PDU data; the 5G communication unit obtains PROFINET PDU data from the memory of the industrial protocol conversion unit, performs 5G protocol data encapsulation on the PROFINET PDU data, generates 5G data packets, and the 5G data packets are wirelessly transmitted in the 5G LAN network. Through the above-mentioned protocol adaptation process, the conversion of 5G protocol data and PROFINET\PROFIBUS protocol data is completed, and the interconnection and interoperability of heterogeneous protocols is realized. A wireless communication channel is built between PLC controllers, and ultra-reliable strong real-time communication between PLC controllers is realized. The present application solves the problem that the prior art needs to introduce a protocol adapter or a protocol converter to realize the conversion between PROFIBUS protocol and PROFINET protocol, and there are long transmission paths and complex dependencies.
[0176] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, 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 exchanging data between industrial Ethernet and wireless network, characterized in that: include: The control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and parse the PROFIBUSDP message to obtain the parsed 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. The PROFIBUSDP message is a message generated by the PROFIBUSDP protocol; Controlling the industrial protocol conversion unit to obtain the parsed PROFIB USDP message, and performing protocol conversion between the PROFIB USDP protocol and the PROFINET protocol on the parsed PROFIB USDP message to obtain PROFINET PDU data, wherein the industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIB USDP protocol, and the PROFIB USDP PDU data is PDU data generated using the PROFINET protocol; Control the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and 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 PROFINET protocol into a 5G data packet and performing 5G wireless transmission; Control the wireless transmission of the 5G data packet in the 5G network.
2. The method according to claim 1, characterized in that Before the control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, the method further includes: The PLC controller sends the PROFIBUSDP 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 sending cycle of the control instruction, and the control instruction is an 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 the core control unit through the I / O interface of the PLC controller according to the sending cycle of the control instruction, the method further includes: Establishing a network topology and a logical connection relationship for each of the PLC controllers deployed at the industrial site according to industrial application requirements, and determining control attributes of each of the PLC controllers, wherein the control attributes are divided into a master station and a slave station; An address mapping table is established according to the network topology, the logical connection relationship and the control attribute of each PLC controller, wherein 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 PROFIBUSDP protocol version and establish a wireless connection relationship between the 5G communication unit and the 5G base station.
4. The method according to claim 1, characterized in that: The control processor and the core control unit receive the PROFIBUSDP message sent by the PLC controller, and parse the PROFIBUSDP message to obtain the parsed PROFIBUSDP message, including: Controlling the processor and the core control unit to determine the validity of the PROFIBUSDP message according to the PROFIBUSDP protocol version; Cache the valid PROFIBUSDP message in the memory of the processor and the core control unit, and discard the invalid PROFIBUSDP message; Control the processor and the core control unit to parse the valid PROFIBUSDP message in the memory in a storage order to obtain the parsed PROFIBUSDP message according to the corresponding PROFIBUSDP protocol version, wherein the parsed PROFIBUSDP message at least includes an address code, a protocol data unit and a check code, and the protocol data unit includes a function code, PLC application data and a data domain protocol field.
5. The method according to claim 1, characterized in that The parsed PROFIBUSDP message is converted between the PROFIBUSDP protocol and the PROFINET protocol to obtain PROFINET PDU data, including: Control the PROFIBUSDP microcontroller unit in the industrial protocol conversion unit to obtain the parsed PROFIBUSDP message from the memory of the processor and the core control unit for structural analysis and data extraction to obtain preliminary parsed data; Remove the address code, protocol data unit and check code from the preliminary parsed data to obtain PROFIBUSDPPDU data; The PROFINET micro control unit in the industrial protocol conversion unit is controlled to convert the PROFIBUSDP PDU data into a frame structure construction and data encapsulation of the PROFIBUSDP protocol to obtain the PROFINET PDU data.
6. The method according to claim 5, characterized in that Controlling the PROFINET micro control unit in the industrial protocol conversion unit to perform frame structure construction and data encapsulation from the PROFIBUSDP protocol to the PROFINET protocol to obtain the PROFINET PDU data, including: Mapping the data stream of the PROFIBUSDP PDU data to the flow label of the PROFINET protocol; Mapping the device address of the PROFIBUSDP PDU data to the IP address of the PROFINET protocol; The frame format of the PROFIBUSDP PDU data is converted from the PROFIBUSDP protocol to the frame format under the PROFINET protocol to obtain the PROFINET PDU data.
7. The method according to claim 1, characterized in that Controlling the 5G communication unit to obtain the PROFINET PDU data from the memory of the industrial protocol conversion unit, and encapsulating the PROFINET PDU data layer by layer according to the 5G protocol stack to obtain a 5G data packet, including: Control the service data adaptation protocol layer in the 5G communication unit to perform service adaptation on the PROFINET PDU data, complete the mapping to the radio bearer in the form of a stream, and obtain the SDAP PDU data; 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 PDCP PDU data; Control the radio link control layer in the 5G communication unit to process and receive the PDCP PDU data, and perform data processing on the PDCP PDU data according to the configured working mode, generate RLC PDU data, and wait for a transmission indication from the media access control layer, wherein the working mode includes a confirmation mode, a non-confirmation mode, and a transparent mode, and the data processing includes at least transmission of upper layer PDU data, error correction through an automatic retransmission request, and reordering of data PDUs, and the transmission indication is to transmit the RLC PDU data to the media access control layer; Control the media access control layer in the 5G communication unit to instruct the radio link control layer to transmit the RLC PDU data to the radio link access control layer, and the media access control layer encapsulates the RLC PDU data into MAC PDU data; Control the physical layer transmission in the 5G communication unit to convert the above-mentioned MAC PDU data into a signal transmitted through the target wireless channel to obtain the 5G data packet.
8. An industrial Ethernet and wireless network data exchange device, characterized in that: The device comprises: A first control unit is used to control the processor and the core control unit to receive a PROFIBUSDP message sent by the PLC controller, and parse the PROFIBUSDP message to obtain a parsed PROFIBUSDP message. The processor and the core control unit are used to realize overall control and scheduling, manage and configure the industrial protocol conversion unit and the 5G communication unit. The PROFIBUSDP message is a message generated by the PROFIBUSDP protocol; A second control unit is used to control the industrial protocol conversion unit to obtain the parsed PROFIBUSDP message, and perform protocol conversion between the PROFIBUSDP protocol and the PROFINET protocol on the parsed PROFIBUSDP message to obtain PROFINET PDU data, wherein the industrial protocol conversion unit supports conversion between the PROFINET protocol and the PROFIBUSDP protocol, and the PROFINET PDU data is PDU data generated using the PROFINET protocol; A 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 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; A fourth control unit is used to control the wireless transmission of the 5G data packet in the 5G network.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. 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 are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.
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
Communication network optimization method, system and device and storage medium
CN116723102A
Protocol conversion device, method and equipment for AUTBUS and Profibus-DP bus
CN118250345A
Method for transferring data packets
EP2538619A1