Data transmission method, device and system

By integrating multiple communication protocols and bridge nodes in the controller, efficient data transmission between industrial controllers and heterogeneous protocol devices is achieved, solving the problems of low transmission efficiency and high equipment complexity, and reducing configuration and cost.

CN119211385APending Publication Date: 2024-12-27SHENZHEN INOVANCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411341851.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, data transmission efficiency between industrial controllers and heterogeneous protocol devices is low, requiring multiple data mapping configurations, resulting in cumbersome processes and equipment costs.

Method used

By integrating multiple communication protocols in the controller and using bridge nodes to communicate and connect with the controller and multiple heterogeneous protocol devices, data frame encapsulation and forwarding are realized, data transmission is carried out based on a single intermediate device, reducing device configuration and hardware complexity Spend.

Benefits of technology

It improves the data transmission efficiency between industrial controllers and heterogeneous protocol devices, reduces equipment costs and hardware complexity, and simplifies the data transmission process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211385A_ABST
    Figure CN119211385A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, device and system, and relates to the technical field of industrial automation, the data transmission method is applied to a controller, the controller is integrated with multiple communication protocols, and a bridge node is in communication connection with the controller and industrial equipment with multiple heterogeneous protocols. The data transmission method comprises the following steps: packaging a first data frame to obtain a downlink data frame; the downlink data frame is sent to the bridging node, so that after the bridging node receives the downlink data frame, the downlink data frame is forwarded to a target industrial device in the multiple industrial devices based on first address information in the downlink data frame, the first address information and a first port in the bridging node have a mapping relation, and the target industrial device in the multiple industrial devices has the mapping relation. The first port is a port connected with the target industrial equipment in the bridging node. According to the invention, the efficiency of data transmission between the industrial controller and the heterogeneous protocol equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial automation technology, and in particular to a data transmission method, device and data transmission system. Background Art

[0002] In the field of industrial automation technology, PLC (Programmable Logic Controller) is a commonly used core control unit, widely used in various industrial environments, responsible for monitoring and controlling various industrial equipment.

[0003] At present, PLC is usually designed to support only a single communication protocol in order to improve communication efficiency. However, due to the continuous development of industrial Ethernet technology, the diversity and complexity of equipment in industrial scenarios have significantly increased, and a situation where multiple different types of communication protocols coexist has been formed. In the face of this situation, the commonly used heterogeneous protocol device communication method is to set up an intermediate device as a communication bridge. The intermediate device needs to be compatible with the respective communication protocols of the PLC and the industrial equipment to be communicated to perform data conversion, thereby realizing data transmission between the PLC and the heterogeneous industrial equipment. In this way, since the intermediate devices required for data transmission between industrial equipment of different protocols and the PLC may be different, it is necessary to perform data mapping configuration on different intermediate devices multiple times. The configuration process is cumbersome, which leads to the problem of low efficiency of data transmission between the PLC and heterogeneous protocol devices.

[0004] Therefore, how to improve the efficiency of data transmission between industrial controllers and heterogeneous protocol devices is a problem that needs to be solved urgently. Summary of the invention

[0005] The main purpose of the present application is to provide a data transmission method, device and data transmission system, aiming to improve the efficiency of data transmission between industrial controllers and heterogeneous protocol devices.

[0006] To achieve the above object, the present application provides a data transmission method, which is applied to a controller, wherein the controller integrates multiple communication protocols, and a bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication, and the data transmission method includes:

[0007] Encapsulating the first data frame to obtain a downlink data frame;

[0008] The downlink data frame is sent to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein a mapping relationship exists between the first address information and a first port in the bridge node, and the first port is a port in the bridge node connected to the target industrial device.

[0009] In one embodiment, the method further comprises:

[0010] A preset address information is respectively allocated to the protocol stack corresponding to each of the plurality of industrial devices connected to each port in the bridge node, and a port mapping relationship is established between each of the preset address information and the port of the bridge node, and a port information table is generated based on each of the port mapping relationships.

[0011] In one embodiment, the step of encapsulating the first data frame to obtain a downlink data frame includes:

[0012] The first address information corresponding to the first port is searched from the port information table, and the first data frame is encapsulated based on the first address information to obtain a downlink data frame.

[0013] In one embodiment, the step of encapsulating the first data frame based on the first address information to obtain a downlink data frame includes:

[0014] Adding the first address information to a preset first preamble structure to obtain a first preamble;

[0015] The first preamble code and the frame structure of the first data frame are encapsulated to obtain a downlink data frame.

[0016] In one embodiment, the step of sending the downlink data frame to the bridge node includes:

[0017] It is determined that the protocol type of the downlink data frame corresponds to a preset first transmission period, and the downlink data frame is sent to the bridge node in the first transmission period.

[0018] The present application provides a data transmission method, which is applied to a bridge node, wherein the bridge node is respectively connected to a controller and industrial devices of multiple heterogeneous protocols for communication, and the data transmission method includes:

[0019] Receive a downlink data frame sent by the controller, and forward the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein the downlink data frame is obtained after the controller encapsulates the first data frame, and there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0020] In one embodiment, the step of forwarding the downlink data frame to a target industrial device among the plurality of industrial devices based on the first address information in the downlink data frame includes:

[0021] Based on the first address information in the downlink data frame, the downlink data frame is forwarded from the first port to a target industrial device among the plurality of industrial devices.

[0022] In one embodiment, the step of forwarding the downlink data frame from the port represented by the first address information to a target industrial device among the plurality of industrial devices based on the first address information in the downlink data frame includes:

[0023] Based on the first address information in the downlink data frame, forwarding the downlink data frame from the first port to a target network domain, wherein the target network domain is a network domain of a preset protocol stack corresponding to the first address information;

[0024] In the target network domain, according to the rule of the preset protocol stack corresponding to the first address information, the downlink data frame is forwarded to the target industrial device among the multiple industrial devices.

[0025] In one embodiment, the step of forwarding the downlink data frame to a target industrial device among the plurality of industrial devices includes:

[0026] It is determined that the protocol type of the downlink data frame corresponds to a preset second transmission time period, and the downlink data frame is forwarded to a target industrial device among the plurality of industrial devices in the second transmission time period.

[0027] The present application provides a data transmission method, which is applied to a controller, wherein the controller integrates multiple communication protocols, and a bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication. The data transmission method includes:

[0028] Receive an uplink data frame forwarded by the bridge node, wherein the uplink data frame is obtained by repackaging the second data frame based on the preset second address information corresponding to the controller after the bridge node receives the second data frame sent by any of the industrial devices, and there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

[0029] In one embodiment, the method further comprises:

[0030] Second address information is allocated to the controller connected to the bridge node, and a mapping relationship between the second address information and the second port is established.

[0031] In one embodiment, after the step of receiving the uplink data frame forwarded by the bridge node, the method further includes:

[0032] Based on the third address information in the uplink data frame, the uplink data frame is sent to a preset target protocol stack corresponding to the third address information, wherein the third address information is the destination address information in the second data frame.

[0033] In one embodiment, the uplink data frame is sent by the bridge node from the second port based on the second address information in the uplink data frame.

[0034] In one embodiment, the uplink data frame is sent by the bridge node in the third transmission time period after determining that the protocol type of the uplink data frame corresponds to a preset third transmission time period.

[0035] The present application provides a data transmission method, which is applied to a bridge node, wherein the bridge node is respectively connected to a controller and industrial devices of multiple heterogeneous protocols for communication, and the data transmission method includes:

[0036] receiving a second data frame sent by any of the industrial devices, and repackaging the second data frame based on the second address information preset by the controller to obtain an uplink data frame;

[0037] The uplink data frame is forwarded to the controller, wherein a mapping relationship exists between the second address information and a second port in the bridge node, and the second port is a port in the bridge node connected to the controller.

[0038] In one embodiment, the step of repackaging the second data frame based on the second address information preset by the controller to obtain an uplink data frame includes:

[0039] Adding the preset second address information corresponding to the controller to the preset second preamble structure to obtain a second preamble;

[0040] The frame structure of the second preamble code and the second data frame is repackaged to obtain an uplink data frame.

[0041] In one embodiment, the step of forwarding the uplink data frame to the controller includes:

[0042] Based on the second address information in the uplink data frame, the uplink data frame is forwarded from the second port to the controller, so that the controller can send the uplink data frame to the preset target protocol stack corresponding to the third address information based on the third address information in the uplink data frame, wherein the third address information is the destination address information in the second data frame.

[0043] In one embodiment, the step of forwarding the uplink data frame to the controller includes:

[0044] It is determined that the protocol type of the uplink data frame corresponds to a preset third transmission time period, and the uplink data frame is forwarded to the controller in the third transmission time period.

[0045] In addition, to achieve the above purpose, the present application also provides a data transmission device, which is applied to a controller, wherein the controller integrates multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication, and the data transmission device includes:

[0046] A downlink transmission module is used to encapsulate the first data frame to obtain a downlink data frame; send the downlink data frame to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein a mapping relationship exists between the first address information and the first port in the bridge node, and the first port is a port in the bridge node connected to the target industrial device.

[0047] In addition, to achieve the above purpose, the present application also provides a data transmission device, which is applied to a bridge node, and the bridge node is respectively connected to a controller and a plurality of industrial devices of heterogeneous protocols for communication, and the data transmission device includes:

[0048] A downlink transmission module is used to receive a downlink data frame sent by the controller, and based on the first address information in the downlink data frame, forward the downlink data frame to a target industrial device among the multiple industrial devices, wherein the downlink data frame is obtained after the controller encapsulates the first data frame, and there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0049] In addition, to achieve the above purpose, the present application also provides a data transmission device, which is applied to a controller, wherein the controller integrates multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication, and the data transmission device includes:

[0050] An uplink transmission module is used to receive an uplink data frame forwarded by the bridge node, wherein the uplink data frame is obtained by repackaging the second data frame after the bridge node receives the second data frame sent by any of the industrial devices based on the preset second address information corresponding to the controller, and there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

[0051] In addition, to achieve the above purpose, the present application also provides a data transmission device, which is applied to a bridge node, and the bridge node is respectively connected to a controller and a plurality of industrial devices of heterogeneous protocols for communication, and the data transmission device includes:

[0052] An uplink transmission module is used to receive a second data frame sent by any of the industrial devices, repackage the second data frame based on the preset second address information corresponding to the controller to obtain an uplink data frame; and forward the uplink data frame to the controller, wherein a mapping relationship exists between the second address information and the second port in the bridge node, and the second port is a port in the bridge node connected to the controller.

[0053] In addition, to achieve the above-mentioned purpose, the present application also provides a data transmission system, the data transmission system comprising: a controller, a bridge node and a plurality of industrial devices of heterogeneous protocols, the bridge node being respectively communicatively connected with the controller and the plurality of industrial devices;

[0054] The controller is used to execute the steps of the data transmission method described above;

[0055] The bridge node is used to execute the steps of the data transmission method as described above.

[0056] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a program for implementing the data transmission method is stored on the computer-readable storage medium. The program for implementing the data transmission method is executed by a processor to implement the steps of the data transmission method as described above.

[0057] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data transmission method when executed by a processor.

[0058] The present application provides a data transmission method, which is applied to a controller, the controller is integrated with multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols. The controller of the present application encapsulates and processes the first data frame to obtain a downlink data frame, and then sends the downlink data frame to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among multiple industrial devices based on the first address information in the downlink data frame, wherein there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0059] In this way, compared with the traditional method of using different intermediate devices to realize data transmission between industrial controllers and devices with different protocols, the present application integrates multiple communication protocols in the controller, and communicates with the controller and multiple industrial devices of different protocol types through a bridge node, that is, it is possible to connect multiple protocol devices through a single intermediate device (i.e., a bridge node), without the need to perform multiple data mapping configurations on multiple different intermediate devices, and then encapsulates the first data frame to obtain a downlink data frame, and sends the downlink data frame to the bridge node, so that the bridge node forwards the downlink data frame to the receiving end of the data transmission, i.e., the target industrial device, thereby realizing data transmission between the controller and industrial devices with heterogeneous protocols based on a single intermediate device, thereby improving the efficiency of data transmission between the industrial controller and heterogeneous protocol devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0062] Figure 1 This is a flow chart of the first embodiment of the data transmission method of the present application;

[0063] Figure 2 This is a schematic diagram of a multi-protocol PLC architecture involved in an embodiment of a data transmission method of the present application;

[0064] Figure 3 This is a schematic diagram of data frame encapsulation involved in an embodiment of a data transmission method of the present application;

[0065] Figure 4 A schematic diagram of the division of transmission channels involved in an embodiment of the data transmission method of the present application;

[0066] Figure 5 A schematic diagram of a downlink transmission process involved in an embodiment of a data transmission method of the present application;

[0067] Figure 6 This is a flow chart of the second embodiment of the data transmission method of the present application;

[0068] Figure 7 A schematic diagram of a bridge node architecture involved in an embodiment of the data transmission method of the present application

[0069] Figure 8 This is a flow chart of a third embodiment of the data transmission method of the present application;

[0070] Fig. 9 This is a flow chart of a fourth embodiment of the data transmission method of the present application;

[0071] Fig.10 A schematic diagram of a multi-protocol hybrid networking architecture involved in an embodiment of the data transmission method of the present application;

[0072] Fig.11 A schematic diagram of an uplink transmission process involved in an embodiment of the data transmission method of the present application;

[0073] Fig.12 This is a schematic diagram of the first module structure of the gas valve control device of this application;

[0074] Fig.13 This is a schematic diagram of the second module structure of the gas valve control device of this application;

[0075] Fig.14 This is a schematic diagram of the third module structure of the gas valve control device of this application;

[0076] Fig.15 This is a schematic diagram of the structure of the fourth module of the gas valve control device of this application;

[0077] Fig.16A schematic diagram of the data transmission device structure of the hardware operating environment involved in the data transmission method in the embodiment of the present application.

[0078] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0079] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0080] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0081] The main solution of the present application is: encapsulate the first data frame to obtain a downlink data frame; send the downlink data frame to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein a mapping relationship exists between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0082] At present, PLC is usually designed to support only a single communication protocol in order to improve communication efficiency. However, due to the continuous development of industrial Ethernet technology, the diversity and complexity of equipment in industrial scenarios have significantly increased, and a situation where multiple different types of communication protocols coexist has been formed. In the face of this situation, the commonly used heterogeneous protocol device communication method is to set up an intermediate device as a communication bridge. The intermediate device needs to be compatible with the respective communication protocols of the PLC and the industrial equipment to be communicated to perform data conversion, thereby realizing data transmission between the PLC and the heterogeneous industrial equipment. In this way, since the intermediate devices required for data transmission between industrial equipment of different protocols and the PLC may be different, it is necessary to perform data mapping configuration on different intermediate devices multiple times. The configuration process is cumbersome, which leads to the problem of low efficiency of data transmission between the PLC and heterogeneous protocol devices.

[0083] Specifically, the diversification of automation technology makes machine integration a complex and cost-intensive task. In fact, manufacturers are increasingly using industrial Ethernet solutions. But even if the technical advantages are obvious, functional systems based on traditional fieldbuses will not automatically become obsolete. In addition, there are many communication protocols that emerged at the same time. They are all based on Ethernet, but when they coexist in a certain network infrastructure, they cannot help but affect performance and real-time characteristics in a negative way. Due to the historical development of industrial Ethernet, a situation where many protocols coexist has been formed in the industry. However, devices with industrial network protocols cannot communicate directly. A large number of PLC controllers and networks need to communicate with each other, so an intermediate device is required, which makes it difficult for the host computer or PLC to centrally monitor or collect data. At present, industrial networks cannot support mixed networking of devices with different types of protocols. Devices with different types of protocols need to convert data through gateway devices when transmitting data. The use process requires data mapping configuration of the gateway device. The configuration process is cumbersome and the integrity of the data mapping cannot be guaranteed. At the same time, the additional gateway device will increase the user's equipment cost.

[0084] The present application integrates multiple communication protocols in the controller, and communicates with the controller and multiple industrial devices of different protocol types through a bridge node, that is, it can connect multiple protocol devices through a single intermediate device (i.e., a bridge node), without the need to perform multiple data mapping configurations on multiple different intermediate devices, and then obtains a target data frame by repackaging the initial data frame to be sent by the sender, obtains a downlink data frame by repackaging the first data frame to be sent, and sends the downlink data frame to the bridge node, so that the bridge node forwards the downlink data frame to the receiving end of the data transmission, i.e., the target industrial device, thereby realizing data transmission between the controller and industrial devices of heterogeneous protocols based on a single intermediate device, saving equipment costs, and significantly reducing the number of communication interfaces, thereby significantly reducing the hardware complexity of machines and facilities, and thereby improving the efficiency of data transmission between industrial controllers and heterogeneous protocol devices.

[0085] It should be noted that the execution subject of the method in each embodiment of the energy storage system configuration method of the present application may be a controller or a bridge node.

[0086] Based on this, the present application proposes a data transmission method of the first embodiment. The execution subject of the first embodiment of the present application is a controller, that is, the data transmission method is applied to the controller, the controller integrates multiple communication protocols, and the bridge node communicates with the controller and multiple industrial devices of heterogeneous protocols respectively. Please refer to Figure 1 , the data transmission method comprises steps A10 to A20:

[0087] Step A10, encapsulating the first data frame to obtain a downlink data frame;

[0088] Step A20, sending the downlink data frame to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0089] It should be noted that, in this embodiment, the data transmission method of the present application is applied to the controller, wherein the embodiment of the present application does not limit the specific type of the controller, and can be any industrial controller that meets the actual needs, such as a programmable logic controller. The controller integrates a variety of communication protocols. Exemplarily, the communication protocols integrated in the PLC include but are not limited to EtherCAT and Ethernet / IP. The bridge node is respectively connected to the controller and industrial devices of multiple heterogeneous protocols. The frame structure of the initial data frame to be sent by the PLC (hereinafter referred to as the first data frame to distinguish) is a standard Ethernet frame structure. The data transmission direction in the data transmission method of the present application includes a downlink direction, and the downlink direction is the direction in which the controller sends the data frame to the industrial device, that is, the sending end is the controller and the receiving end is any industrial device. The target industrial device is the receiving end in the current data transmission process. The port connected to the target industrial device in the bridge node is called the first port to distinguish. The embodiment of the present application predefines the address information corresponding to each port of the bridge node, and the first address information is the preset address information that has a mapping relationship with the first port. In addition, the PLC also includes a public adaptation scheduling layer for time scheduling, port mapping relationship conversion, and data frame unpacking / encapsulation of the sending port. The PLC also includes a network port, which is used for communication connection with the bridge node.

[0090] For example, Figure 2 The figure shows a schematic diagram of a multi-protocol PLC architecture. The PLC proposed in the embodiment of the present application integrates multiple industrial network protocols, including but not limited to NGIN (Next Generation Industrial Network), EtherCAT and Ethernet / IP. It should be noted that the NGIN protocol aims to establish a "universal" deterministic transmission mechanism for the Ethernet protocol to ensure the real-time, deterministic and low latency of network data transmission. The protocol can be used to realize heterogeneous network data transmission.

[0091] The controller encapsulates the first data frame to obtain a new data frame (hereinafter referred to as a downlink data frame for distinction), and sends the re-encapsulated downlink data frame to the bridge node, so that after receiving the downlink data frame, the bridge node can forward the downlink data frame to the target industrial device among the multiple industrial devices based on the first address information in the downlink data frame.

[0092] In this embodiment, the data transmission method of the present application further includes:

[0093] Step B10, respectively assign a preset address information to the protocol stack corresponding to each of the plurality of industrial devices connected to each port in the bridge node, establish a port mapping relationship between each of the preset address information and the port of the bridge node, and generate a port information table based on each of the port mapping relationships.

[0094] It should be noted that the controller supports multiple different types of protocol stacks, each of which is bound to an address identifier, that is, a preset address identifier (i.e., the above-mentioned preset address information) is assigned to the protocol stack of the industrial equipment connected to each port in the bridge node. It should be understood that there is a unique corresponding mapping relationship between the port, the protocol stack, and the preset address information, and the preset address information corresponding to each protocol stack is different.

[0095] Before data transmission, a preset address information is allocated to the protocol stack corresponding to each industrial device connected to each port in the bridge node, and a mapping relationship between each preset address information and the port of the bridge node is established (hereinafter referred to as the port mapping relationship for distinction), and then an information table is generated based on each port mapping relationship (hereinafter referred to as the port information table for distinction). That is, the port information table stores each port, each preset address information, and the mapping relationship between each port and the preset address information.

[0096] Exemplarily, the PLC configures the port information table of each protocol stack according to the predefined port positions of industrial devices of different protocols accessing the bridge node. For example, the port information table includes the port P1 of the bridge node corresponding to the protocol stack EtherCAT where the industrial device is located.

[0097] In a feasible implementation manner, the step A10 may include:

[0098] Step A101: searching the port information table for first address information corresponding to the first port, and encapsulating the first data frame based on the first address information to obtain a downlink data frame.

[0099] The controller decapsulates the first data frame, and then encapsulates the address information of the receiving end of the current data transmission (ie, the first address information) and the decapsulated data frame structure to obtain a downlink data frame.

[0100] In this implementation, the step A101 may include:

[0101] Step A1011, adding the first address information to a preset first preamble structure to obtain a first preamble;

[0102] Step A1012: encapsulate the frame structure of the first preamble code and the first data frame to obtain a downlink data frame.

[0103] It should be noted that the frame structure of the first data frame is a standard Ethernet frame structure, including an Ethernet frame header, a protocol header, data to be transmitted and an FCS (Frame Check Sequence). A preamble structure (hereinafter referred to as the first preamble structure for distinction) is pre-set, and the first preamble structure is used to store the first address information.

[0104] The first address information is added to a preset first preamble structure to obtain a preamble containing the first address information (hereinafter referred to as the first preamble for distinction), and then the first preamble and the frame structure of the first data frame are encapsulated to obtain a downlink data frame.

[0105] Exemplarily, the first data frame is parsed to obtain a standard Ethernet frame structure, the preamble storing the first address information is concatenated with the Ethernet frame header in the standard Ethernet frame structure, and re-encapsulated to obtain a downlink data frame, for example, Figure 3 The figure shows a schematic diagram of data frame encapsulation. The preamble in the NGIN data frame stores the address information corresponding to the port in the bridge node connected to the industrial equipment supporting the NGIN protocol; the preamble in the EtherCAT data frame stores the address information corresponding to the port in the bridge node connected to the industrial equipment supporting the EtherCAT protocol; the preamble in the Ethemet / IP data frame stores the address information corresponding to the port in the bridge node connected to the industrial equipment supporting the Ethemet / IP protocol.

[0106] In this embodiment, the step A10 may include:

[0107] Step A102: determine that the protocol type of the downlink data frame corresponds to a preset first transmission period, and send the downlink data frame to the bridge node in the first transmission period.

[0108] It should be noted that PLC realizes the division of transmission channels through the public adaptation scheduling layer, such as Figure 4The figure shows a schematic diagram of the division of transmission channels, which is divided by the PLC into time periods for the PLC to send and receive different types of data frames in the uplink and downlink directions of data transmission. Exemplarily, each time period includes but is not limited to an NGIN time period, an EtherCAT time period, and an Ethernet / IP time period, so that the PLC can send data frames of the corresponding protocol type in a preset time period. That is, it can be understood that the embodiment of the present application predefines the mapping relationship between the protocol type of the data frame and the time period when the PLC sends the data frame (hereinafter referred to as the first mapping relationship for distinction).

[0109] The controller determines the protocol type of the downlink data frame, determines the protocol type of the downlink data frame corresponding to a preset transmission period (hereinafter referred to as the first transmission period for distinction) based on a predefined first mapping relationship, and sends the downlink data frame to the bridge node in the first transmission period.

[0110] For example, Figure 5 The figure shows a schematic diagram of the downlink transmission process. The transmission process of PLC sending data to industrial equipment is as follows: the public adaptation scheduling layer of PLC repackages the first data frame to be sent, that is, adds the first address information to the preamble of the data frame to obtain the downlink data frame; PLC sends the downlink data frame to the bridge node in the first transmission period based on the time slot division of the transmission channel; after receiving the downlink data frame, the bridge node identifies the first address information to forward the downlink data frame to the first port, that is, the downlink data frame is forwarded to the corresponding network domain; then the data frame is forwarded to the target industrial equipment in the network domain according to the protocol type of the downlink data frame. In this way, the embodiment of the present application realizes data transmission in the downlink direction by defining the ports connected to the industrial equipment in the bridge node, repackaging the initial data frame, and dividing the transmission periods of data frames of different protocol types, that is, it realizes sending data frames from PLC to any industrial equipment.

[0111] In this way, the present application integrates multiple communication protocols in the controller, and communicates with the controller and multiple industrial devices of different protocol types through a bridge node, that is, it can connect multiple protocol devices through a single intermediate device (i.e., a bridge node) without the need to perform multiple data mapping configurations on multiple different intermediate devices. Then, by encapsulating the first data frame, a downlink data frame is obtained, and the downlink data frame is sent to the bridge node, so that the bridge node forwards the downlink data frame to the receiving end of the data transmission, i.e., the target industrial device, thereby realizing data transmission between the controller and industrial devices of heterogeneous protocols based on a single intermediate device, thereby improving the efficiency of data transmission between the industrial controller and heterogeneous protocol devices.

[0112] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and no further description will be given later. The execution subject of the second embodiment of the present application is a bridge node, that is, the data transmission method is applied to the bridge node, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols. On this basis, please refer to Figure 6 , the data transmission method comprises step C10:

[0113] Step C10, receiving a downlink data frame sent by the controller, and forwarding the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein the downlink data frame is obtained after the controller encapsulates the first data frame, and there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0114] It should be noted that the first data frame is a data frame of a standard Ethernet frame structure to be sent by the controller. The first port is a port in the bridge node connected to the target industrial device, and there is a mapping relationship between the first address information and the first port. The downlink data frame is a data frame obtained by encapsulating the first data frame based on the first address information. It should be understood that after the bridge node determines the first address information from the downlink data frame, it can determine the port represented by the port address information based on the first address information, and forward the downlink data frame from the port to the receiving end of the data transmission, that is, the above-mentioned target industrial device.

[0115] After receiving the downlink data frame sent by the PLC, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame.

[0116] For example, Figure 7 The figure shows a schematic diagram of the bridge node architecture. The bridge node includes multiple ports, which are marked as P0, P1, P2 and P3. It is predefined that P0 is connected to the network port of the PLC, P1 is connected to the industrial equipment of the EtherCAT protocol type, P2 is connected to the industrial equipment of the NGIN protocol type, and P3 is connected to the industrial equipment of the Ethernet / IP protocol type. In addition, the bridge node includes a preamble address information recognition module, which has a preamble address information recognition function, that is, the bridge node can recognize the preamble (that is, the above-mentioned port address information) in the received data frame to determine which port the data frame is forwarded to.

[0117] In a feasible implementation manner, the step C10 may include:

[0118] Step C101 : forwarding the downlink data frame from the first port to a target industrial device among the plurality of industrial devices based on the first address information in the downlink data frame.

[0119] The bridge node forwards the downlink data frame to the receiving end from the first port represented by the first address information based on the first address information in the downlink data frame.

[0120] In this implementation, the step C101 may include:

[0121] Step C1011: forwarding the downlink data frame from the first port to a target network domain based on the first address information in the downlink data frame, wherein the target network domain is a network domain of a preset protocol stack corresponding to the first address information;

[0122] Step C1011, in the target network domain, according to the rule of the preset protocol stack corresponding to the first address information, forwarding the downlink data frame to the target industrial device among the multiple industrial devices.

[0123] It should be noted that the network domain of the protocol stack corresponding to the first address information is referred to as the above-mentioned target network domain.

[0124] Based on the first address information in the downlink data frame, the downlink data frame is forwarded from the first port to the target network domain, and then in the target network domain, the downlink data frame is forwarded to the target industrial device according to the protocol rule of the preset protocol stack corresponding to the first address information.

[0125] In this embodiment, the step C10 may include:

[0126] Step C102: determining that the protocol type of the downlink data frame corresponds to a preset second transmission period, and forwarding the downlink data frame to a target industrial device among the plurality of industrial devices in the second transmission period.

[0127] It should be noted that the bridge node also has a transmission channel division configuration function, which can divide the time periods for the bridge node to send and receive different types of data frames in the upstream and downstream directions of data transmission. Exemplarily, each time period also includes but is not limited to an NGIN time period, an EtherCAT time period, and an Ethernet / IP time period, so that the bridge node can send data frames of the corresponding protocol type in a preset time period. That is, it can be understood that the embodiment of the present application predefines the mapping relationship between the protocol type of the data frame and the time period when the bridge node sends the data frame (hereinafter referred to as the second mapping relationship for distinction).

[0128] The protocol type of the downlink data frame is determined by the bridge node, and the protocol type of the downlink data frame corresponds to a preset transmission period (hereinafter referred to as the second transmission period for distinction) based on a predefined second mapping relationship, and the downlink data frame is sent to the controller in the second transmission period.

[0129] In this way, the embodiment of the present application sets up a bridging node as a communication bridge between the controller and industrial equipment of various heterogeneous protocols, configures the connection ports between the bridging node and each industrial equipment and the controller, and sets up transmission channels for data frames of different protocols. It plays a role in forwarding data frames during data transmission and can ensure the integrity and accuracy of data frames, thereby realizing data transmission in the downstream direction from the controller to industrial equipment of various heterogeneous protocols.

[0130] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and no further description will be given later. The execution subject of the third embodiment of the present application is a controller, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols. On this basis, please refer to Figure 8 , the data transmission method comprises step D10:

[0131] Step D10, receiving an uplink data frame forwarded by the bridge node, wherein the uplink data frame is obtained by repackaging the second data frame based on the preset second address information corresponding to the controller after the bridge node receives the second data frame sent by any of the industrial devices, and there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

[0132] It should be noted that, in this embodiment, the data transmission direction in the data transmission method of the present application also includes an uplink direction, and the uplink direction is the direction in which the industrial device sends a data frame to the controller, that is, the sending end is any industrial device and the receiving end is the controller. The second data frame is a data frame of a standard Ethernet frame structure to be sent by any industrial device. The second port is a port in the bridge node connected to the controller. The second address information is preset address information that has a mapping relationship with the second port. The uplink data frame is a data frame obtained by repackaging the second data frame based on the second address information.

[0133] The industrial equipment sends a second data frame to the bridge node, so that after receiving the second data frame, the bridge node re-encapsulates the second data frame based on the preset second address information corresponding to the second data frame to obtain an uplink data frame, and forwards the uplink data frame to the controller, so that the controller receives the uplink data frame forwarded by the bridge node.

[0134] In this embodiment, the data transmission method of the present application further includes:

[0135] Step E10: allocate second address information to the controller to which the bridge node is connected, and establish a mapping relationship between the second address information and the second port.

[0136] After determining the second port connected to the controller in the bridge node, the controller connected to the bridge node is assigned preset address information (hereinafter referred to as the second address information for distinction), and a mapping relationship between the second address information and the second port is constructed, so that the bridge node can add the second address information to the second data frame sent by the industrial device, and send the second data frame to the controller according to the second address information. It should be understood that the preset address information corresponding to each endpoint of the bridge node is different.

[0137] In this embodiment, after step D10, the data transmission method of the present application further includes:

[0138] Step F10: Based on the third address information in the uplink data frame, the uplink data frame is sent to a preset target protocol stack corresponding to the third address information, wherein the third address information is the destination address information in the second data frame.

[0139] It should be noted that the frame structure of the second data frame is a standard Ethernet frame structure, and the destination address information in the second data frame can be stored in the Ethernet frame header or the protocol header. The destination address information in the second data frame is referred to as the third address information for distinction. And the third address information points to a certain protocol stack integrated in the controller (hereinafter referred to as the target protocol stack for distinction), that is, the destination address information in the data frame sent by the industrial equipment has a preset mapping relationship with the protocol stack in the controller.

[0140] Based on the third address information in the uplink data frame, the uplink data frame is sent to a preset target protocol stack corresponding to the third address information.

[0141] In this embodiment, the uplink data frame is sent by the bridge node from the second port based on the second address information in the uplink data frame.

[0142] The bridge node forwards the downlink data frame to the controller from the second port corresponding to the second address information based on the second address information in the uplink data frame.

[0143] In this embodiment, the uplink data frame is sent by the bridge node in the third transmission time period after determining that the protocol type of the uplink data frame corresponds to the preset third transmission time period.

[0144] The bridge node determines the protocol type of the uplink data frame, determines the protocol type of the uplink data frame corresponding to a preset transmission period (hereinafter referred to as the third transmission period for distinction) based on a predefined second mapping relationship, and sends the uplink data frame to the controller in the third transmission period.

[0145] In this way, the embodiment of the present application receives the uplink data frame forwarded by the bridge node, and forwards the uplink data frame to the corresponding protocol stack based on the third address information in the uplink data frame, so as to realize data transmission in the uplink direction.

[0146] Based on the first embodiment, the second embodiment and / or the third embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and no further description will be given later. The execution subject of the fourth embodiment of the present application is a bridge node, which is respectively connected to the controller and industrial devices of multiple heterogeneous protocols. On this basis, please refer to Fig. 9 , the data transmission method comprises steps G10 to G20:

[0147] Step G10, receiving a second data frame sent by any of the industrial devices, and repackaging the second data frame based on the second address information preset by the controller to obtain an uplink data frame;

[0148] Step G20: forwarding the uplink data frame to the controller, wherein a mapping relationship exists between the second address information and a second port in the bridge node, and the second port is a port in the bridge node connected to the controller.

[0149] It should be noted that the second data frame is a data frame of a standard Ethernet frame structure to be sent by any industrial device. The second address information corresponds to the port in the bridge node that is connected to the receiving end (i.e., the controller) of the current data transmission when the data transmission direction is the uplink direction, i.e., the second port. The uplink data frame is a data frame obtained by repackaging the second data frame based on the second address information. It should be understood that after the bridge node determines the second address information from the uplink data frame, it can determine the port represented by the port address information based on the second address information, and forward the uplink data frame from the port to the receiving end of the current data transmission, i.e., the PLC. The preset address information (i.e., the above-mentioned second address information) is pre-assigned to the controller, and a mapping relationship between the second address information and the second port is constructed.

[0150] After receiving the second data frame sent by the industrial equipment, the bridge node re-encapsulates the second data frame based on the second address information preset corresponding to the controller to obtain an uplink data frame, and forwards the uplink data frame to the PLC.

[0151] In a feasible implementation manner, the step G10 may include:

[0152] Step G101, adding the preset second address information corresponding to the controller to the preset second preamble structure to obtain a second preamble;

[0153] Step G102, re-encapsulate the frame structure of the second preamble code and the second data frame to obtain an uplink data frame.

[0154] It should be noted that the frame structure of the second data frame is also a standard Ethernet frame structure, including an Ethernet frame header, a protocol header, data to be transmitted and an FCS. A preamble structure (hereinafter referred to as the second preamble structure for distinction) is pre-set, and the second preamble structure is used to store the second address information.

[0155] For example, refer to Figure 3 , parse the second data frame to obtain a standard Ethernet frame structure, splice the preamble storing the second address information with the Ethernet frame header in the standard Ethernet frame structure, and re-encapsulate to obtain an uplink data frame.

[0156] In a feasible implementation manner, the step G20 may include:

[0157] Step G201, based on the second address information in the uplink data frame, forward the uplink data frame from the second port to the controller, so that the controller can send the uplink data frame to the preset target protocol stack corresponding to the third address information based on the third address information in the uplink data frame, wherein the third address information is the destination address information in the second data frame.

[0158] It should be noted that the frame structure of the second data frame is a standard Ethernet frame structure, and the destination address information in the second data frame can be stored in the Ethernet frame header or the protocol header. The destination address information in the second data frame is referred to as the third address information for distinction. And the third address information points to the target protocol stack integrated in the controller, that is, there is a pre-set mapping relationship between the destination address information in the data frame sent by the industrial equipment and the protocol stack in the controller.

[0159] The bridge node forwards the downlink data frame to the controller from the second port represented by the second address information based on the second address information in the uplink data frame, so that the controller sends the uplink data frame to the preset target protocol stack corresponding to the third address information based on the third address information in the uplink data frame.

[0160] In this embodiment, the step G20 may include:

[0161] Step G202: determine that the protocol type of the uplink data frame corresponds to a preset third transmission time period, and forward the uplink data frame to the controller in the third transmission time period.

[0162] The bridge node determines the protocol type of the uplink data frame, determines that the protocol type of the uplink data frame corresponds to a preset third transmission period based on a predefined second mapping relationship, and sends the uplink data frame to the controller in the third transmission period.

[0163] For example, Fig.10 The figure shows a schematic diagram of a multi-protocol hybrid networking architecture, which includes a PLC, at least one bridge node (NGIN-Bridge) and multiple industrial devices of different protocols. Among them, the protocols integrated in the PLC include but are not limited to NGIN-Controller, ECATMaster (master device in the EtherCAT network) and Etnernet / IP. Port P0 of the first bridge node is connected to the PLC, port P1 of the first bridge node is connected to the industrial device of the EtherCAT protocol, port P2 of the first bridge node is connected to the industrial device of the NGIN protocol, port P3 of the first bridge node is connected to port P0 of the second bridge node, port P1 of the second bridge node is connected to the industrial device of the NGIN protocol, and port P2 of the second bridge node is connected to the industrial device of the Etnernet / IP protocol. The EtherCAT data stream can be transmitted from the PLC through the first bridge node to each industrial device of the EtherCAT protocol, namely EtherCAT Slave 1, EtherCAT Slave 2, EtherCAT Slave 3 and EtherCAT Slave 4. The EtherCAT data stream can also be transmitted from each industrial device of the EtherCAT protocol to the PLC through the first bridge node; the Etnernet / IP data stream can be transmitted from the PLC through the first bridge node and the second bridge node in sequence to each industrial device of the Etnernet / IP protocol. Similarly, the Etnernet / IP data stream can also be transmitted from each industrial device of the Etnernet / IP protocol to the PLC through the first bridge node and the second bridge node in sequence. It should be noted that when the embodiment of the present application is for a large number of heterogeneous protocol types, it is necessary to set up multiple bridging nodes to form a communication bridge. However, the traditional method requires the use of different intermediate devices to realize data transmission between PLC and devices with different protocols, which leads to the problem of cumbersome configuration of the intermediate devices. The bridging node in the embodiment of the present application only needs to be configured with the port for access of industrial equipment of heterogeneous protocols, and one bridge node can access multiple industrial equipment of different protocols. Therefore, compared with the traditional method, the embodiment of the present application can improve the efficiency of data transmission between industrial controllers and heterogeneous protocol devices.

[0164] In this way, the embodiment of the present application forwards the data frames sent by the industrial equipment to the controller through the bridge node, thereby realizing data transmission in the uplink direction from the industrial equipment of various heterogeneous protocols to the controller.

[0165] Based on the first embodiment, the second embodiment, the third embodiment and / or the fourth embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1, embodiment 2, embodiment 3 and / or embodiment 4 can be referred to the above introduction, and no further description will be given later. The execution subject of the fifth embodiment of the present application is an industrial device, and the bridge node is respectively connected to the industrial device and the controller for communication. On this basis, the data transmission method includes steps H10 to H20:

[0166] Step H10, sending a second data frame to the bridge node, so that after receiving the second data frame, the bridge node re-encapsulates the second data frame based on the second address information preset corresponding to the controller to obtain an uplink data frame, and forwards the uplink data frame to the controller, wherein a mapping relationship exists between the second address information and a second port in the bridge node, and the second port is a port in the bridge node connected to the controller;

[0167] The industrial device sends a second data frame to the bridge node, so that after receiving the second data frame, the bridge node repackages the second data frame based on the preset second address information corresponding to the second data frame to obtain an uplink data frame, and forwards the uplink data frame to the controller.

[0168] For example, when the industrial equipment is connected to the bridge node port, the bridge node can re-encapsulate the data forwarded from the designated port and add the address information pointing to the master station in the preamble, that is, the second address information. Figure 3 , add the second address information to the preamble to obtain an uplink data frame.

[0169] For example, Fig.11 The figure shows a schematic diagram of the uplink transmission process, and the transmission process of the industrial equipment sending data to the PLC is as follows: the industrial equipment sends the second data frame to the bridge node; after receiving the second data frame, the bridge node re-encapsulates the second data frame, that is, adds the second address information to the preamble of the data frame to obtain the uplink data frame; the bridge node sends the uplink data frame to the PLC in the second transmission period according to the time slot division of the transmission channel; after receiving the uplink data frame, the PLC identifies the address identifier (that is, the address information) in the data frame to pass the uplink data to the corresponding protocol stack, that is, the above-mentioned target protocol stack, according to the address identifier.

[0170] Step H20, receiving a downlink data frame forwarded by the bridge node, wherein the downlink data frame is obtained after the controller encapsulates and processes the first data frame, and the downlink data frame is forwarded by the bridge node based on the first address information in the downlink data frame after receiving the downlink data frame sent by the controller, and there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial equipment.

[0171] The controller encapsulates the first data frame to obtain a downlink data frame, and sends the downlink data frame to the bridge node. After receiving the downlink data frame, the bridge node forwards the downlink data frame to the industrial equipment based on the first address information in the downlink data frame, so that the industrial equipment can receive the downlink data frame forwarded by the bridge node.

[0172] In this way, the embodiment of the present application realizes data transmission in the uplink direction by repackaging the initial data frame through the bridge node and dividing the transmission time periods of the data frames of different protocol types, that is, realizing the sending of data frames from any industrial device to the PLC. And, the embodiment of the present application realizes data transmission in the downlink direction by receiving the downlink data frame sent by the PLC forwarded by the bridge node through the industrial device, that is, realizing the sending of data frames from the PLC to any industrial device.

[0173] The present application also provides a data transmission device. Fig.12 The data transmission device is applied to a controller, the controller integrates multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication. The data transmission device includes:

[0174] The downlink transmission module 10 is used to encapsulate the first data frame to obtain a downlink data frame; send the downlink data frame to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0175] Optionally, the downlink transmission module 10 is further used for:

[0176] A preset address information is respectively allocated to the protocol stack corresponding to each of the plurality of industrial devices connected to each port in the bridge node, and a port mapping relationship is established between each of the preset address information and the port of the bridge node, and a port information table is generated based on each of the port mapping relationships.

[0177] Optionally, the downlink transmission module 10 is further used for:

[0178] The first address information corresponding to the first port is searched from the port information table, and the first data frame is encapsulated based on the first address information to obtain a downlink data frame.

[0179] Optionally, the downlink transmission module 10 is further used for:

[0180] Adding the first address information to a preset first preamble structure to obtain a first preamble;

[0181] The first preamble code and the frame structure of the first data frame are encapsulated to obtain a downlink data frame.

[0182] Optionally, the downlink transmission module 10 is further used for:

[0183] It is determined that the protocol type of the downlink data frame corresponds to a preset first transmission period, and the downlink data frame is sent to the bridge node in the first transmission period.

[0184] The present application also provides a data transmission device. Fig.13 The data transmission device is applied to a bridge node, and the bridge node is respectively connected to a controller and a plurality of industrial devices of heterogeneous protocols for communication, and the data transmission device includes:

[0185] The downlink transmission module 20 is used to receive the downlink data frame sent by the controller, and forward the downlink data frame to the target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein the downlink data frame is obtained after the controller encapsulates the first data frame, and there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

[0186] Optionally, the downlink transmission module 20 is further configured to:

[0187] Based on the first address information in the downlink data frame, the downlink data frame is forwarded from the first port to a target industrial device among the plurality of industrial devices.

[0188] Optionally, the downlink transmission module 20 is further configured to:

[0189] Based on the first address information in the downlink data frame, forwarding the downlink data frame from the first port to a target network domain, wherein the target network domain is a network domain of a preset protocol stack corresponding to the first address information;

[0190] In the target network domain, according to the rule of the preset protocol stack corresponding to the first address information, the downlink data frame is forwarded to the target industrial device among the multiple industrial devices.

[0191] Optionally, the downlink transmission module 20 is further configured to:

[0192] It is determined that the protocol type of the downlink data frame corresponds to a preset second transmission time period, and the downlink data frame is forwarded to a target industrial device among the plurality of industrial devices in the second transmission time period.

[0193] The present application also provides a data transmission device. Fig.14 The data transmission device is applied to a controller, the controller integrates multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication. The data transmission device includes:

[0194] An uplink transmission module 30 is used to receive an uplink data frame forwarded by the bridge node, wherein the uplink data frame is obtained by repackaging the second data frame after the bridge node receives the second data frame sent by any of the industrial devices based on the preset second address information corresponding to the controller, and there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

[0195] Optionally, the uplink transmission module 30 is further used for:

[0196] Receive an uplink data frame forwarded by the bridge node, wherein the uplink data frame is obtained by repackaging the second data frame based on the preset second address information corresponding to the controller after the bridge node receives the second data frame sent by any of the industrial devices, and there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

[0197] Optionally, the uplink transmission module 30 is further used for:

[0198] Second address information is allocated to the controller connected to the bridge node, and a mapping relationship between the second address information and the second port is established.

[0199] Optionally, the uplink data frame is sent by the bridge node from the second port based on second address information in the uplink data frame.

[0200] Optionally, the uplink data frame is sent by the bridge node in the third transmission time period after determining that the protocol type of the uplink data frame corresponds to a preset third transmission time period.

[0201] The present application also provides a data transmission device. Fig.15 The data transmission device is applied to a bridge node, and the bridge node is respectively connected to a controller and a plurality of industrial devices of heterogeneous protocols for communication, and the data transmission device includes:

[0202] The uplink transmission module 40 is used to receive a second data frame sent by any of the industrial devices, re-encapsulate the second data frame based on the preset second address information corresponding to the controller to obtain an uplink data frame; forward the uplink data frame to the controller, wherein there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

[0203] Optionally, the uplink transmission module 40 is further used for:

[0204] Adding the preset second address information corresponding to the controller to the preset second preamble structure to obtain a second preamble;

[0205] The frame structure of the second preamble code and the second data frame is repackaged to obtain an uplink data frame.

[0206] Optionally, the uplink transmission module 40 is further used for:

[0207] Based on the second address information in the uplink data frame, the uplink data frame is forwarded from the second port to the controller, so that the controller can send the uplink data frame to the preset target protocol stack corresponding to the third address information based on the third address information in the uplink data frame, wherein the third address information is the destination address information in the second data frame.

[0208] Optionally, the uplink transmission module 40 is further used for:

[0209] It is determined that the protocol type of the uplink data frame corresponds to a preset third transmission time period, and the uplink data frame is forwarded to the controller in the third transmission time period.

[0210] The present application provides a data transmission device, which is a controller, a bridge node or an industrial device. The data transmission device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the data transmission method in the above-mentioned embodiment 1.

[0211] Reference below Fig.16 , which shows a schematic diagram of the structure of a data transmission device suitable for implementing the embodiment of the present application. Fig.16 As shown, the data transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data transmission device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the data transmission device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0212] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0213] The data transmission device provided by the present application adopts the data transmission method in the above embodiment, which can solve the technical problem of how to improve the efficiency of data transmission between industrial controllers and heterogeneous protocol devices. Compared with the prior art, the beneficial effects of the data transmission device provided by the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, and the other technical features in the data transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0214] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0215] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0216] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the data transmission method in the above-mentioned embodiment.

[0217] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0218] The computer-readable storage medium may be included in the data transmission device; or may exist independently without being assembled into the data transmission device.

[0219] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the data transmission device, the data transmission device: encapsulates the first data frame to obtain a downlink data frame; sends the downlink data frame to the bridge node, so that after the bridge node receives the downlink data frame, it forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein the first address information represents the port in the bridge node connected to the target industrial device.

[0220] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0221] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0222] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0223] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data transmission method, and can solve the technical problem of how to improve the efficiency of data transmission between industrial controllers and heterogeneous protocol devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data transmission method provided by the above-mentioned embodiment, and will not be repeated here.

[0224] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the above-mentioned data transmission method when executed by a processor.

[0225] The computer program product provided by the present application can improve the efficiency of data transmission between industrial controllers and heterogeneous protocol devices. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, which will not be repeated here.

[0226] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A data transmission method, characterized in that: The data transmission method is applied to a controller, wherein the controller integrates multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication. The data transmission method includes: Encapsulating the first data frame to obtain a downlink data frame; The downlink data frame is sent to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein a mapping relationship exists between the first address information and a first port in the bridge node, and the first port is a port in the bridge node connected to the target industrial device.

2. The method according to claim 1, characterized in that The method further comprises: A preset address information is respectively allocated to the protocol stack corresponding to each of the plurality of industrial devices connected to each port in the bridge node, and a port mapping relationship is established between each of the preset address information and the port of the bridge node, and a port information table is generated based on each of the port mapping relationships.

3. The method according to claim 2, characterized in that The step of encapsulating the first data frame to obtain a downlink data frame includes: The first address information corresponding to the first port is searched from the port information table, and the first data frame is encapsulated based on the first address information to obtain a downlink data frame.

4. The method according to claim 3, characterized in that The step of encapsulating the first data frame based on the first address information to obtain a downlink data frame includes: Adding the first address information to a preset first preamble structure to obtain a first preamble; The first preamble code and the frame structure of the first data frame are encapsulated to obtain a downlink data frame.

5. The method according to claim 1, characterized in that The step of sending the downlink data frame to the bridge node comprises: It is determined that the protocol type of the downlink data frame corresponds to a preset first transmission period, and the downlink data frame is sent to the bridge node in the first transmission period.

6. A data transmission method, characterized in that: The data transmission method is applied to a bridge node, wherein the bridge node is respectively connected to a controller and industrial devices of multiple heterogeneous protocols for communication, and the data transmission method includes: Receive a downlink data frame sent by the controller, and forward the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein the downlink data frame is obtained after the controller encapsulates the first data frame, and there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

7. The method according to claim 6, characterized in that The step of forwarding the downlink data frame to a target industrial device among the plurality of industrial devices based on the first address information in the downlink data frame comprises: Based on the first address information in the downlink data frame, the downlink data frame is forwarded from the first port to a target industrial device among the plurality of industrial devices.

8. The method according to claim 7, characterized in that The step of forwarding the downlink data frame to a target industrial device among the plurality of industrial devices from a port represented by the first address information based on the first address information in the downlink data frame comprises: Based on the first address information in the downlink data frame, forwarding the downlink data frame from the first port to a target network domain, wherein the target network domain is a network domain of a preset protocol stack corresponding to the first address information; In the target network domain, according to the rule of the preset protocol stack corresponding to the first address information, the downlink data frame is forwarded to the target industrial device among the multiple industrial devices.

9. The method according to claim 6, characterized in that The step of forwarding the downlink data frame to a target industrial device among the plurality of industrial devices comprises: It is determined that the protocol type of the downlink data frame corresponds to a preset second transmission time period, and the downlink data frame is forwarded to a target industrial device among the plurality of industrial devices in the second transmission time period.

10. A data transmission method, characterized in that: The data transmission method is applied to a controller, wherein the controller integrates multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication. The data transmission method includes: Receive an uplink data frame forwarded by the bridge node, wherein the uplink data frame is obtained by repackaging the second data frame based on the preset second address information corresponding to the controller after the bridge node receives the second data frame sent by any of the industrial devices, and there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

11. The method according to claim 10, characterized in that The method further comprises: Second address information is allocated to the controller connected to the bridge node, and a mapping relationship between the second address information and the second port is established.

12. The method according to claim 10, characterized in that After the step of receiving the uplink data frame forwarded by the bridge node, the method further includes: Based on the third address information in the uplink data frame, the uplink data frame is sent to a preset target protocol stack corresponding to the third address information, wherein the third address information is the destination address information in the second data frame.

13. The method according to claim 10, characterized in that The uplink data frame is sent from the second port by the bridge node based on the second address information in the uplink data frame.

14. The method according to claim 10, characterized in that The uplink data frame is sent by the bridge node in the third transmission time period after determining that the protocol type of the uplink data frame corresponds to the preset third transmission time period.

15. A data transmission method, characterized in that: The data transmission method is applied to a bridge node, wherein the bridge node is respectively connected to a controller and industrial devices of multiple heterogeneous protocols for communication, and the data transmission method includes: Receiving a second data frame sent by any of the industrial devices, and repackaging the second data frame based on the second address information preset by the controller to obtain an uplink data frame; The uplink data frame is forwarded to the controller, wherein a mapping relationship exists between the second address information and a second port in the bridge node, and the second port is a port in the bridge node connected to the controller.

16. The method according to claim 15, characterized in that The step of repackaging the second data frame based on the second address information preset by the controller to obtain an uplink data frame includes: Adding the preset second address information corresponding to the controller to the preset second preamble structure to obtain a second preamble; The frame structure of the second preamble code and the second data frame is repackaged to obtain an uplink data frame.

17. The method according to claim 15, characterized in that The step of forwarding the uplink data frame to the controller comprises: Based on the second address information in the uplink data frame, the uplink data frame is forwarded from the second port to the controller, so that the controller can send the uplink data frame to the preset target protocol stack corresponding to the third address information based on the third address information in the uplink data frame, wherein the third address information is the destination address information in the second data frame.

18. The method according to claim 15, characterized in that The step of forwarding the uplink data frame to the controller comprises: It is determined that the protocol type of the uplink data frame corresponds to a preset third transmission time period, and the uplink data frame is forwarded to the controller in the third transmission time period.

19. A data transmission device, characterized in that: The data transmission device is applied to a controller, the controller is integrated with multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication. The data transmission device includes: A downlink transmission module is used to encapsulate the first data frame to obtain a downlink data frame; send the downlink data frame to the bridge node, so that after receiving the downlink data frame, the bridge node forwards the downlink data frame to a target industrial device among the multiple industrial devices based on the first address information in the downlink data frame, wherein a mapping relationship exists between the first address information and the first port in the bridge node, and the first port is a port in the bridge node connected to the target industrial device.

20. A data transmission device, characterized in that: The data transmission device is applied to a bridge node, and the bridge node is respectively connected to a controller and a plurality of industrial devices of heterogeneous protocols for communication. The data transmission device includes: A downlink transmission module is used to receive a downlink data frame sent by the controller, and based on the first address information in the downlink data frame, forward the downlink data frame to a target industrial device among the multiple industrial devices, wherein the downlink data frame is obtained after the controller encapsulates the first data frame, and there is a mapping relationship between the first address information and the first port in the bridge node, and the first port is the port in the bridge node connected to the target industrial device.

21. A data transmission device, characterized in that: The data transmission device is applied to a controller, the controller is integrated with multiple communication protocols, and the bridge node is respectively connected to the controller and multiple industrial devices of heterogeneous protocols for communication. The data transmission device includes: An uplink transmission module is used to receive an uplink data frame forwarded by the bridge node, wherein the uplink data frame is obtained by repackaging the second data frame after the bridge node receives the second data frame sent by any of the industrial devices based on the preset second address information corresponding to the controller, and there is a mapping relationship between the second address information and the second port in the bridge node, and the second port is the port in the bridge node connected to the controller.

22. A data transmission device, characterized in that: The data transmission device is applied to a bridge node, and the bridge node is respectively connected to a controller and a plurality of industrial devices of heterogeneous protocols for communication. The data transmission device includes: An uplink transmission module is used to receive a second data frame sent by any of the industrial devices, repackage the second data frame based on the preset second address information corresponding to the controller to obtain an uplink data frame; and forward the uplink data frame to the controller, wherein a mapping relationship exists between the second address information and the second port in the bridge node, and the second port is a port in the bridge node connected to the controller.

23. A data transmission system, characterized in that: The data transmission system comprises: a controller, a bridge node and a plurality of industrial devices of heterogeneous protocols, wherein the bridge node is respectively connected to the controller and the plurality of industrial devices for communication; The controller is used to perform the steps of the data transmission method according to any one of claims 1 to 5 or 6 to 9; The bridge node is used to perform the steps of the data transmission method according to any one of claims 10 to 14 or 15 to 18.