Gateway and data transmission method
By designing a gateway that supports multiple industrial Ethernet protocols, the problems of high network complexity and high cost in the existing technology are solved, and the support and forwarding of multiple protocols are realized, and data interaction efficiency is improved.
Patent Information
- Application Number
- CN202311127560.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, field devices that support different industrial Ethernet protocols need to communicate with control devices through different gateways, resulting in high network complexity and high cost.
A gateway is designed that includes an Ethernet interface supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core and a first module. The gateway can receive field device messages from different protocols and forward them through real-time processing cores and modules to achieve support and forwarding of different protocols.
Through this design, multiple field devices that support different industrial Ethernet protocols can be accessed into a gateway, reducing network complexity and cost, and improving data interaction efficiency between field devices and control devices.
Smart Images

Figure CN119544409A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a gateway and a data transmission method. Background Art
[0002] In the communication system, the communication between the field device and the control device can be realized based on the industrial Ethernet protocol. Among them, the control device can communicate with the field device through a gateway that supports the industrial Ethernet protocol, that is, the gateway can forward the data of the field device to the control device, or forward the data of the control device to the field device.
[0003] Among them, the industrial Ethernet protocols supported by different field devices can be the same or different. Field devices supporting different industrial Ethernet protocols need to communicate with control devices through different gateways, resulting in complex networking, high equipment costs and equipment maintenance costs.
[0004] Therefore, how to reduce the complexity and cost of networking has become an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present application provide a gateway and a data transmission method, which can reduce the complexity of networking and reduce the cost of networking.
[0006] In a first aspect, an embodiment of the present application provides a gateway, which includes: at least two Ethernet interfaces supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core, and a first module; each Ethernet interface is used to receive messages from a field device and send messages to the Ethernet real-time processing core; the Ethernet real-time processing core is used to receive messages from the Ethernet interface and send messages to the first module; the first module is used to receive messages from the Ethernet real-time processing core and send messages to the control device; wherein the industrial Ethernet protocol supported by the field device associated with the Ethernet interface is the same as the industrial Ethernet protocol supported by the Ethernet interface.
[0007] Based on the first aspect, since the gateway includes at least two Ethernet interfaces that support at least two industrial Ethernet protocols, multiple field devices that support different industrial Ethernet protocols can be connected to one gateway, which can reduce the complexity of networking and reduce the cost of networking; since the gateway includes an Ethernet real-time processing core, the Ethernet interface and the first module can be connected, and messages can be sent from the Ethernet interface to the first module, which can ensure the real-time transmission of messages between the Ethernet interface and the first module; since the gateway includes the first module, messages from field devices can be forwarded to the control device, communication between the field device and the control device can be achieved, and the efficiency of data interaction between the field device and the control device can be improved.
[0008] In one possible design, the first module is further used to receive one or more forwarding rules from the control device; wherein each forwarding rule corresponds to one or more industrial Ethernet protocols.
[0009] In one possible design, the gateway also includes: a data processing core; the data processing core is used to receive one or more forwarding rules from the first module and send one or more forwarding rules to the real-time processing core.
[0010] In one possible design, the Ethernet real-time processing core is also used to receive one or more forwarding rules from the data processing core, and send messages to the first module according to the one or more forwarding rules.
[0011] Based on the above three possible designs, the control device sends one or more forwarding rules to the first module, which can avoid distinguishing gateways as much as possible. That is, for a gateway that only supports one industrial Ethernet protocol, multiple field devices that support different industrial Ethernet protocols need to access multiple gateways, and the control device needs to determine the forwarding rules corresponding to each gateway, or the control device needs to determine the corresponding gateway according to each forwarding rule, and then send the forwarding rules to the gateway; and for the gateway that supports at least two industrial Ethernet protocols in this application, field devices that support different industrial Ethernet protocols can access one gateway, and the control device can send the forwarding rules directly to the gateway, which can improve the efficiency of information interaction between the gateway and the control device, reduce transmission overhead, and save resources.
[0012] In one possible design, the Ethernet real-time processing core is specifically used to determine a forwarding rule corresponding to the message according to the industrial Ethernet protocol corresponding to the message, and send the message to the first module according to the forwarding rule corresponding to the message.
[0013] Based on this possible design, the Ethernet real-time processing core sends messages to the first module according to the forwarding rules, which can meet the control device's needs for messages associated with different industrial Ethernet protocols. The gateway can determine the processing and forwarding of messages according to the forwarding rules, which can improve the efficiency of communication between field devices and control devices.
[0014] In one possible design, the Ethernet real-time processing core is specifically used to determine the industrial Ethernet protocol corresponding to the message based on the Ethernet interface corresponding to the message; or, the Ethernet real-time processing core is specifically used to determine the industrial Ethernet protocol corresponding to the message based on the first indication information in the message; wherein the first indication information is used to indicate the industrial Ethernet protocol corresponding to the message.
[0015] Based on this possible design, the Ethernet real-time processing core can determine the industrial Ethernet protocol corresponding to the message according to the above two methods; the Ethernet real-time processing core determines the corresponding industrial Ethernet protocol according to the Ethernet interface, which can reduce the transmission overhead compared to the first indication information; determining the corresponding industrial Ethernet protocol according to the first indication information in the message can avoid the Ethernet real-time processing core from misjudging the protocol corresponding to the Ethernet interface, and can improve the reliability of communication; further, the Ethernet real-time processing core can determine the forwarding rules corresponding to the message according to the industrial Ethernet protocol corresponding to the message, and send the message to the first module.
[0016] In one possible design, the first module is a wireless module; or, the first module is a Bluetooth module; or, the first module is a narrowband Internet of Things module; or, the first module is a mobile communication module.
[0017] Based on this possible design, the first module can be the above-mentioned modules. The gateway can support the access of multiple control devices that support the above-mentioned modules through the first module, which can simplify the way of establishing communication connection between the gateway and the control device, reduce networking costs, reduce networking complexity, and improve the communication efficiency between the gateway and the control device.
[0018] In a possible design, the first module is further used to receive a first request message from the control device and send the first request message to the data processing core; the data processing core is further used to receive a first request message from the first module and send a first response message to the first module according to the first request message; the first module is further used to receive a first response message from the data processing core and send a first response message to the control device. The first request message is used to request to obtain the identification information of the gateway, and the first response message is used to indicate the identification information of the gateway.
[0019] Based on this possible design, the gateway establishes a connection with the control device through the first request information and the first response information, which can avoid setting the configuration information associated with establishing the connection at the gateway as much as possible, can achieve seamless network configuration, can simplify the way in which the gateway and the control device establish a communication connection, and can reduce the complexity of the control device accessing the gateway.
[0020] In a possible design, the Ethernet real-time processing core includes a memory, and the first module is further used to read a message in the memory and send the message to the control device, wherein the memory is used to cache the message.
[0021] Based on this possible design, the memory is divided on the Ethernet real-time processing core to store messages from the Ethernet interface. The gateway can receive the message completely before sending it, which can better solve the problem of inconsistency between the sending rate and the receiving rate, reduce the bit error rate, and improve the reliability of message transmission; the first module reads the message in the memory, which can increase the speed of forwarding the message, thereby ensuring the real-time transmission of the message between the Ethernet interface and the first module, and improving the communication performance.
[0022] In a second aspect, an embodiment of the present application provides a communication system, which includes a gateway as described in the above-mentioned first aspect or any possible design of the first aspect.
[0023] In a third aspect, an embodiment of the present application provides a data transmission method, which is applied to a gateway, and the method may include: the gateway receives a message from a field device through an Ethernet interface; the gateway sends a message to a control device through a first module. The gateway includes at least two Ethernet interfaces supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core, and a first module; the Ethernet real-time processing core is used to receive a message from the Ethernet interface and send a message to the first module.
[0024] Based on the third aspect, since the gateway includes at least two Ethernet interfaces that support at least two industrial Ethernet protocols, multiple field devices that support different industrial Ethernet protocols can be connected to one gateway. The gateway can receive messages from field devices of different industrial Ethernet protocols through the Ethernet interface, which can reduce the complexity of networking and reduce the cost of networking; the gateway can forward messages from field devices to control devices, realize communication between field devices and control devices, and improve the efficiency of data interaction between field devices and control devices.
[0025] In a possible design, the gateway receives one or more forwarding rules from the control device through the first module; the gateway determines the forwarding rules corresponding to the message through the Ethernet real-time processing core according to the industrial Ethernet protocol corresponding to the message; according to the forwarding rules corresponding to the message, the gateway sends the message to the control device through the first module. Each forwarding rule corresponds to one or more industrial Ethernet protocols.
[0026] Based on this possible design, the gateway can receive one or more forwarding rules from the control device, so that the control device can avoid distinguishing gateways as much as possible. That is, for a gateway that only supports one industrial Ethernet protocol, multiple field devices that support different industrial Ethernet protocols need to access multiple gateways, and the control device needs to determine the forwarding rules corresponding to each gateway, or the control device needs to determine the corresponding gateway according to each forwarding rule, and then send the forwarding rules to the gateway; and for the gateway that supports at least two industrial Ethernet protocols in this application, field devices that support different industrial Ethernet protocols can access one gateway, and the control device can send the forwarding rules directly to the gateway, which can improve the efficiency of information interaction between the gateway and the control device, reduce transmission overhead, and save resources.
[0027] In one possible design, the gateway determines the industrial Ethernet protocol corresponding to the message through the Ethernet real-time processing core according to the Ethernet interface corresponding to the message; or, the gateway determines the industrial Ethernet protocol corresponding to the message through the Ethernet real-time processing core according to the first indication information in the message; wherein the first indication information is used to indicate the industrial Ethernet protocol corresponding to the message.
[0028] Based on this possible design, the gateway determines the corresponding industrial Ethernet protocol according to the Ethernet interface, which can reduce the message overhead compared to the first indication information; the gateway determines the corresponding industrial Ethernet protocol according to the first indication information, which can avoid the misjudgment of the protocol corresponding to the Ethernet interface by Ethernet real-time processing, and can improve the reliability of communication; further, the gateway can determine the forwarding rules corresponding to the message according to the industrial Ethernet protocol corresponding to the message, and send the message to the control device.
[0029] In one possible design, the gateway receives a first request message from a control device through a first module; the gateway sends a first response message to the control device through the first module; wherein the first request message is used to request the identification information of the gateway, and the first response message is used to indicate the identification information of the gateway.
[0030] Based on this possible design, the gateway can establish a connection with the control device through the first request information and the first response information, can avoid setting the configuration information associated with establishing the connection at the gateway as much as possible, can realize senseless network configuration, can simplify the way in which the gateway and the control device establish a communication connection, can reduce the complexity of the control device accessing the gateway, and improve the effectiveness of communication between the gateway and the control device.
[0031] In a fourth aspect, a communication device is provided, and the beneficial effects can be found in the description of the third aspect and will not be repeated here. The communication device has the function of implementing the behavior in the method example of the third aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In one possible design, the communication device includes: a transceiver module and a processing module, the transceiver module is used to receive messages from field equipment; the transceiver module is also used to send messages to the control device. These modules can perform the corresponding functions in the method example of the third aspect, please refer to the detailed description in the method example for details, and will not be repeated here.
[0032] In a fifth aspect, a communication device is provided, which may be a gateway in the above method embodiment, or a chip set in a gateway. The communication device includes one or more processors; one or more processors are used to run a computer program or instruction, and when the one or more processors execute the computer program or instruction, the communication device executes the data transmission method described in the third aspect or any possible design of the third aspect.
[0033] In one possible design, the communication device further includes one or more memories, one or more memories are coupled to one or more processors, and the one or more memories are used to store the above-mentioned computer programs or instructions. In one possible implementation, the memory is located outside the communication device. In another possible implementation, the memory is located inside the communication device. In an embodiment of the present application, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together. In one possible implementation, the communication device further includes a transceiver, and the transceiver is used to receive information and / or send information.
[0034] In one possible design, the communication device also includes one or more communication interfaces, the one or more communication interfaces are coupled to the one or more processors, and the one or more communication interfaces are used to communicate with other modules outside the communication device.
[0035] In a sixth aspect, an embodiment of the present application provides a communication device, which may be a gateway in the above method embodiment, or a chip set in a gateway. The communication device includes an input / output interface and a logic circuit; the input / output interface is used to input and / or output information; the logic circuit is used to execute the data transmission method described in the third aspect or any possible design of the third aspect, and process and / or generate information according to the information.
[0036] In a seventh aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed, the method performed by the gateway in the above aspects is executed.
[0037] In an eighth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the method performed by the gateway in the above aspects is implemented.
[0038] In a ninth aspect, an embodiment of the present application provides a computer program, which, when executed on a computer, enables the data transmission method described in the third aspect or any possible design of the third aspect to be executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a gateway and a control device based on wireless transmission provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of a master-slave mode provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of a communication system provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of a gateway provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of communication between a control device and a field device provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of a gateway provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of communication between a gateway and a control device provided in an embodiment of the present application;
[0046] Figure 8 A schematic diagram of communication between a field device, a gateway and a control device provided in an embodiment of the present application;
[0047] Fig. 9 An interactive schematic diagram of a data transmission method provided in an embodiment of the present application;
[0048] Fig.10 An interactive schematic diagram of a data transmission method provided in an embodiment of the present application;
[0049] Fig.11 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0050] Fig.12 A schematic diagram of the composition of a communication device provided in an embodiment of the present application;
[0051] Fig.13 A schematic diagram of the structure of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
[0053] In the description of this application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
[0054] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0055] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0056] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0057] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0058] It can be understood that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects, or may be combined with other features according to needs in certain scenarios. Accordingly, the devices provided in the embodiments of the present application may also realize these features or functions accordingly, which will not be elaborated here.
[0059] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In each embodiment of this application, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. The following description of the implementation methods of this application does not constitute a limitation on the scope of protection of this application.
[0060] In order to facilitate understanding of the technical solutions of the embodiments of the present application, a brief introduction to the related technologies of the present application is first given as follows.
[0061] 1) Fieldbus technology
[0062] Fieldbus technology was developed internationally in the 1990s and can be used in process automation, manufacturing automation, building automation and other fields.
[0063] However, with the development of technology, the amount of data exchanged between control devices and field devices in the production process has exploded. Therefore, Ethernet technology has gradually replaced fieldbus technology.
[0064] 2) Industrial Ethernet Protocol
[0065] With the introduction of the concept of Industry 4.0, information technology / operation technology (IT / OT) are moving towards integration based on the industrial internet of things (IIoT), resulting in industrial technological changes becoming increasingly data-driven, and gradually forming industrial Ethernet technology based on the industrial Ethernet protocol.
[0066] Exemplarily, the mainstream industrial Ethernet protocols may be the following three: Ethernet for control automation technology (EtherCAT) protocol, real-time industrial Ethernet (PROFINET) protocol, or Ethernet industrial protocol (Ethernet / IP).
[0067] Among them, the above three industrial Ethernet protocols can be used in industrial Ethernet technology.
[0068] Optionally, the above three industrial Ethernet protocols can perform data transmission based on wired communication, which can improve the reliability of data transmission and ensure real-time control of field equipment.
[0069] In large factories, there are numerous field devices. It is not realistic to connect all field devices to control devices, which may cause the control devices to be overloaded. Therefore, the control devices can communicate with the field devices through a gateway that supports the industrial Ethernet protocol. That is, the gateway can forward the data of the field devices to the control devices, or vice versa.
[0070] For example, taking the case where the field equipment is not easily accessible (such as the field equipment is at sea, or in a harsh environment, and wiring between the control equipment and the field equipment is difficult), as follows Figure 1 As shown, the field device can be connected to the gateway, and the gateway communicates with the control device through wireless communication, thereby realizing communication between the field device and the control device.
[0071] For example, the gateway can realize the communication between the field device and the control device through Bluetooth, IEEE802.11 protocol, low-power local area network (ZigBee, or IEEE802.15.4) protocol, etc.
[0072] However, different field devices may support the same or different industrial Ethernet protocols. Field devices supporting different industrial Ethernet protocols need to communicate with control devices through different gateways, resulting in complex networking and high equipment and maintenance costs.
[0073] For example, the following Figure 2 As shown, in the factory, the master-slave mode can be used to implement Ethernet networking, that is, the slave station can be a field device that controls robotic arms, motors, conveyor belts and other equipment, and the master station (which can be a gateway, and the industrial Ethernet protocol supported by the master station is the same as the industrial Ethernet protocol supported by the connected field equipment) can be a device for managing the slave stations in the network, and the control equipment can establish connections with multiple master stations, thereby realizing dynamic monitoring and management of the entire production line and the entire field equipment.
[0074] For example, if the industrial Ethernet protocol supported by field device 11, field device 12, ..., field device 1N is Ethernet / IP protocol, then field device 11, field device 12, ..., field device 1N needs to access gateway 1 supporting Ethernet / IP protocol; similarly, if the industrial Ethernet protocol supported by field device 21, field device 22, ..., field device 2N is EtherCAT protocol, then field device 21, field device 22, ..., field device 2N needs to access gateway 2 supporting EtherCAT protocol; similarly, if the industrial Ethernet protocol supported by field device 31, field device 32, ..., field device 3N is PROFINET protocol, then field device 31, field device 32, ..., field device 3N needs to access gateway 3 supporting PROFINET protocol. Further, gateway 1, gateway 2 and gateway 3 can establish a connection with the control device to realize communication between the field device and the control device.
[0075] Wherein, N is a positive integer.
[0076] In order to solve the above technical problems, the present application proposes a gateway, which includes at least two Ethernet interfaces supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core, and a first module; each Ethernet interface is used to receive messages from field devices and send messages to the Ethernet real-time processing core; the Ethernet real-time processing core is used to receive messages from the Ethernet interface and send messages to the first module; the first module is used to receive messages from the Ethernet real-time processing core and send messages to the control device. Among them, the industrial Ethernet protocol supported by the field device associated with the Ethernet interface is the same as the industrial Ethernet protocol supported by the Ethernet interface.
[0077] In the gateway provided in the embodiment of the present application, since the gateway includes at least two Ethernet interfaces that support at least two industrial Ethernet protocols, multiple field devices that support different industrial Ethernet protocols can be connected to one gateway, which can reduce the complexity of networking and reduce the cost of networking; since the gateway includes an Ethernet real-time processing core, the Ethernet interface and the first module can be connected, and messages can be sent from the Ethernet interface to the first module, which can ensure the real-time transmission of messages between the Ethernet interface and the first module; since the gateway includes the first module, messages from field devices can be forwarded to the control device, communication between the field device and the control device can be achieved, and the efficiency of data interaction between the field device and the control device can be improved.
[0078] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
[0079] The technical solution of the embodiment of the present application can be used in various communication systems, which may be a third generation partnership project (3GPP) communication system, for example, a fourth generation (4G), long term evolution (LTE), a fifth generation (5G) mobile communication system, a new radio (NR), or a system of hybrid networking of LTE and 5G, or a non-terrestrial network (NTN) system, or a sixth generation (6G) and other mobile communication systems evolved after 5G, a vehicle to everything (V2X) system, or a device-to-device (D2D) communication system, a machine to machine (M2M) communication system, the Internet of Things (IoT), a narrow band-internet of things (NB-IoT), other next generation communication systems, perception and communication integrated systems, satellite communication systems, etc. The communication system may also be a non-3GPP communication system, such as a wireless local area network (WLAN) system such as wireless fidelity (Wi-Fi), without limitation.
[0080] Below Figure 3 Take the communication system provided in the embodiment of the present application as an example to describe.
[0081] Figure 3A schematic diagram of a communication system provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the communication system may include one or more field devices, one or more gateways, and one or more control devices.
[0082] Among them, the field device can access the gateway through the Ethernet interface and send the collected data to the gateway through the Ethernet interface; the gateway can forward the data collected by the field device to the control device; correspondingly, the control device can also send instruction information to the gateway.
[0083] As an exemplary example, taking the indication information as indicating the gateway to forward information, the control device may send the indication information to the gateway, and the gateway may forward the data collected by the field device according to the indication information.
[0084] In another exemplary embodiment, taking the indication information as instructing the field device to collect data, the control device can send the indication information to the gateway, and the gateway can forward the indication information to the field device. Further, the field device can collect data according to the indication information.
[0085] in, Figure 3 The field devices in the system are used to collect data, encapsulate the collected data according to the supported industrial Ethernet protocol, obtain messages, and then send the messages to the gateway.
[0086] Exemplarily, the field device may be a terminal in industrial control (such as a device for controlling a robotic arm, a motor, a conveyor belt, a fixture, a guide rail, etc.); the field device may also be a robot in industry, without limitation.
[0087] in, Figure 3 The gateway (also known as an internetwork connector or protocol converter) can be a hardware device, or it can be an application installed on a hardware device; the gateway can be connected to field devices and control devices based on a wireless connection or a wired connection, without restriction.
[0088] Exemplarily, the gateway may support multiple access methods such as Ethernet, serial port, Bluetooth, Wi-Fi, etc. without limitation.
[0089] Exemplarily, the gateway may be a gateway in an industrial scenario, a gateway in a mobile communication scenario, a gateway in a medical scenario, or a gateway in other communication scenarios, without limitation.
[0090] in, Figure 3The control device in the embodiment can be a terminal device (terminal device for controlling field devices) using a mobile communication mechanism. The control device can be a device with a wireless transceiver function (e.g., a mobile terminal device) or a chip or chip system that can be set in the device (e.g., a mobile communication chip set in a mobile terminal device); the control device can receive messages sent by the gateway and can also send indication information to the gateway. The control device can also be a terminal device with a human machine interface (HMI).
[0091] Exemplarily, taking the control device as an HMI device, the HMI device can be a station (STA), which serves as a client of the dynamic host configuration protocol (DHCP) and accesses the gateway; correspondingly, the gateway can be an access point (AP), which serves as a server of DHCP and waits for the control device to access.
[0092] It should be noted that the communication system described in the embodiment of the present application is for the purpose of more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0093] Combine the following Figure 3 The communication system shown in FIG. Figure 4 , a detailed description is given of the gateway provided in the embodiment of the present application.
[0094] Figure 4 A schematic diagram of the composition of a gateway provided in an embodiment of the present application, such as Figure 4 As shown, the gateway may include: at least two Ethernet interfaces supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core, and a first module.
[0095] The Ethernet real-time processing core is connected to the Ethernet interface and the first module.
[0096] in, Figure 4 Each Ethernet interface in the system is used to receive messages from field devices and send messages to the Ethernet real-time processing core.
[0097] The industrial Ethernet protocol supported by the field device associated with the Ethernet interface is the same as the industrial Ethernet protocol supported by the Ethernet interface.
[0098] Exemplarily, the gateway may include multiple Ethernet interfaces, each Ethernet interface supports an industrial Ethernet protocol, and the industrial Ethernet protocols supported by the gateway may include at least two or more industrial Ethernet protocols.
[0099] Optional, for the above Figure 4 The description of the gateway shown is different from the above Figure 2 As shown in the figure, in a factory, multiple field devices supporting different industrial Ethernet protocols can communicate with one Figure 4 The gateway connection shown is connected to the control device, which can realize dynamic monitoring and management of the entire production line and the entire on-site equipment.
[0100] For example, the following Figure 5 As shown, the industrial Ethernet protocol supported by field devices 11, field devices 12, ..., field devices 1N may be the Ethernet / IP protocol, and the Ethernet interface 11, Ethernet interface 12, ..., the industrial Ethernet protocol supported by Ethernet interface 1N may be the Ethernet / IP protocol; the industrial Ethernet protocol supported by field devices 21, field devices 22, ..., field devices 2N may be the EtherCAT protocol, and the Ethernet interface 21, Ethernet interface 22, ..., the industrial Ethernet protocol supported by Ethernet interface 2N may be the EtherCAT protocol; the industrial Ethernet protocol supported by field devices 31, field devices 32, ..., field devices 3N may be the PROFINET protocol, and the Ethernet interface 31, Ethernet interface 32, ..., the industrial Ethernet protocol supported by Ethernet interface 3N may be the PROFINET protocol.
[0101] For example, field device 11, field device 12,…, field device 1N can be connected to Ethernet interface 11, Ethernet interface 12,…, Ethernet interface 1N in the gateway; field device 21, field device 22,…, field device 2N can be connected to Ethernet interface 21, Ethernet interface 22,…, Ethernet interface 2N in the gateway; field device 31, field device 32,…, field device 3N can be connected to Ethernet interface 31, Ethernet interface 32,…, Ethernet interface 3N in the gateway; further, the gateway can be connected to the control device, so as to realize communication between the field device and the control device.
[0102] in, Figure 4 The Ethernet real-time processing core in the processor is used to receive the message from the Ethernet interface and send the message to the first module.
[0103] Optionally, an Ethernet real-time processing core can be used to handle real-time tasks.
[0104] Among them, the gateway processes the message through the Ethernet real-time processing core, which can improve the transmission speed of the message.
[0105] Optionally, the Ethernet real-time processing core may run without an operating system (OS), and the image is loaded and started by the data processing core.
[0106] Among them, the data processing core is described in the following content and will not be repeated here.
[0107] Optionally, the Ethernet real-time processing core can more quickly determine the Industrial Ethernet protocol to which the message is associated.
[0108] Optionally, the Ethernet real-time processing core can be partitioned into a fixed size memory.
[0109] The memory is used to cache messages, and the cached messages may be sent messages or received messages.
[0110] in, Figure 4 The first module in the system is used to receive messages from the Ethernet real-time processing core and send messages to the control device.
[0111] Exemplarily, the first module may be a wireless module, a Bluetooth module, a narrowband Internet of Things module, or a mobile communication module, without limitation.
[0112] For example, when the first module is a wireless module, the first module can serve as a DHCP client in an AP manner and wait for the control device to access.
[0113] For another example, when the first module is a mobile communication module, the first module may be a 2G module, a 3G module, a 4G module, a 5G module, a 6G module or a next generation mobile communication module.
[0114] It can be understood that the first module is the above-mentioned modules. The gateway can support the access of multiple control devices that support the above-mentioned modules through the first module, which can simplify the way of establishing communication connection between the gateway and the control device, reduce the networking cost, reduce the networking complexity, and improve the communication efficiency between the gateway and the control device.
[0115] Based on the above description of the Ethernet real-time processing core and the first module, the first module is also used to read the message in the memory of the Ethernet real-time processing core and send the message to the control device; accordingly, the Ethernet real-time processing core can map the cached message to the first module, that is, the Ethernet real-time processing core can share the cached message with the first module, which can ensure the real-time performance of data transmission between the Ethernet interface and the Ethernet real-time processing core.
[0116] Among them, the memory is divided on the Ethernet real-time processing core to store messages from the Ethernet interface. The gateway can receive the message completely before sending it, which can better solve the problem of inconsistency between the sending rate and the receiving rate, reduce the bit error rate, and improve the reliability of message transmission; the first module reads the message in the memory, which can increase the speed of forwarding the message, thereby ensuring the real-time transmission of the message between the Ethernet interface and the first module, and improving the communication performance.
[0117] Optionally, control and data interaction can be achieved between the Ethernet real-time processing core and the Ethernet interface through a management data input / output (MDIO) line and a medium independent interface (MII).
[0118] based on Figure 4 The gateway shown, since the gateway includes at least two Ethernet interfaces that support at least two industrial Ethernet protocols, can enable multiple field devices that support different industrial Ethernet protocols to access one gateway, which can reduce the complexity of networking and the cost of networking; since the gateway includes an Ethernet real-time processing core, the Ethernet interface and the first module can be connected, and messages can be sent from the Ethernet interface to the first module, which can ensure the real-time performance of message transmission between the Ethernet interface and the first module; since the gateway includes the first module, messages from field devices can be forwarded to the control device, communication between the field device and the control device can be achieved, and the efficiency of data interaction between the field device and the control device can be improved.
[0119] based on Figure 4 and Figure 5 The gateway shown is as follows Figure 6 As shown, the gateway may also include a data processing core.
[0120] The data processing core may be a high-performance reduced instruction set computer (RISC) machine (ARM) data processing core, which may be used to process non-real-time tasks.
[0121] Exemplarily, non-real-time tasks may be industrial protocol stacks and industrial applications.
[0122] For example, the industrial protocol stacks of the above three industrial Ethernet protocols all have mature protocol stacks and their own industrial applications.
[0123] Optionally, the Ethernet real-time processing core and the data processing core may communicate with each other via a serial peripheral interface (SPI) protocol.
[0124] Optionally, the data processing core may be configured to receive one or more forwarding rules from the first module, and send one or more forwarding rules to the real-time processing core.
[0125] Each of the forwarding rules corresponds to one or more industrial Ethernet protocols.
[0126] Based on the relationship between one or more forwarding rules and one or more industrial Ethernet protocols, this application proposes several possible embodiments:
[0127] In a first possible embodiment, the control device may send a forwarding rule to the gateway, where the forwarding rule corresponds to multiple industrial Ethernet protocols.
[0128] Exemplarily, taking multiple industrial Ethernet protocols including EtherNet / IP protocol, EtherCAT protocol and PROFINET protocol as an example, a forwarding rule may include: in time period 1, the gateway sends the messages associated with the EtherNet / IP protocol to the control device through the first module; in time period 2, the gateway sends the messages associated with the EtherCAT protocol and the messages associated with the PROFINET protocol to the control device through the first module.
[0129] In a second possible embodiment, the control device may send a plurality of forwarding rules to the gateway, each of the plurality of forwarding rules corresponding to an industrial Ethernet protocol.
[0130] Exemplarily, taking multiple industrial Ethernet protocols including EtherNet / IP protocol, EtherCAT protocol and PROFINET protocol as an example, forwarding rule 1 may include: in time period 1, the gateway sends the message associated with the EtherNet / IP protocol to the control device through the first module; forwarding rule 2 may include: in time period 2, the gateway sends the message associated with the EtherCAT protocol to the control device through the first module; forwarding rule 3 may include: in time period 3, the gateway sends the message associated with the PROFINET protocol to the control device through the first module.
[0131] In a third possible embodiment, the control device may send multiple forwarding rules to the gateway, and each of the multiple forwarding rules may correspond to one industrial Ethernet protocol or may correspond to multiple industrial Ethernet protocols.
[0132] The one or more forwarding rules of the first module come from the control device, that is, the first module is also used to receive the one or more forwarding rules from the control device.
[0133] Furthermore, the Ethernet real-time processing core is also used to receive one or more forwarding rules from the data processing core, and send messages to the first module according to the one or more forwarding rules.
[0134] It can be understood that the control device sends one or more forwarding rules to the first module, which can avoid distinguishing gateways as much as possible. That is, for a gateway that only supports one industrial Ethernet protocol, multiple field devices that support different industrial Ethernet protocols need to access multiple gateways, and the control device needs to determine the forwarding rules corresponding to each gateway, or the control device needs to determine the corresponding gateway according to each forwarding rule, and then send the forwarding rules to the gateway; and for the gateway that supports at least two industrial Ethernet protocols in this application, field devices that support different industrial Ethernet protocols can access one gateway, and the control device can send the forwarding rules directly to the gateway, which can improve the efficiency of information interaction between the gateway and the control device, reduce transmission overhead, and save resources.
[0135] The Ethernet real-time processing core is specifically used to determine a forwarding rule corresponding to the message according to the industrial Ethernet protocol corresponding to the message, and send the message to the first module according to the forwarding rule corresponding to the message.
[0136] It can be understood that the Ethernet real-time processing core sends messages to the first module according to one or more forwarding rules, which can meet the control device's needs for messages associated with different industrial Ethernet protocols. The gateway can determine the processing and forwarding of messages according to one or more forwarding rules, which can improve the efficiency of communication between field devices and control devices.
[0137] Among them, the Ethernet real-time processing core can identify the industrial Ethernet protocol corresponding to the message. This application proposes several possible embodiments for the Ethernet real-time processing core to identify the industrial Ethernet protocol corresponding to the message:
[0138] In a first possible embodiment, the Ethernet real-time processing core may determine the industrial Ethernet protocol corresponding to the message according to the Ethernet interface corresponding to the message.
[0139] Exemplarily, field devices supporting different industrial Ethernet protocols may be connected to a fixed Ethernet interface, and the industrial Ethernet protocol supported by the Ethernet interface is the same as the industrial Ethernet protocol supported by the field device.
[0140] For example, taking the case where field device 1 is connected to Ethernet interface 1 (e.g., the industrial Ethernet protocol supported by field device 1 and the industrial Ethernet protocol supported by Ethernet interface 1 may be the EtherCAT protocol), field device 2 is connected to Ethernet interface 2 (e.g., the industrial Ethernet protocol supported by field device 2 and the industrial Ethernet protocol supported by Ethernet interface 2 may be the EtherNet / IP protocol), and field device 3 is connected to Ethernet interface 3 (e.g., the industrial Ethernet protocol supported by field device 3 and the industrial Ethernet protocol supported by Ethernet interface 3 may be the PROFINET protocol), the Ethernet real-time processing core may determine, based on Ethernet interface 1, that the industrial Ethernet protocol corresponding to the message received from Ethernet interface 1 is the EtherCAT protocol; correspondingly, the Ethernet real-time processing core may determine, based on Ethernet interface 2, that the industrial Ethernet protocol corresponding to the message received from Ethernet interface 2 is the EtherNet / IP protocol; correspondingly, the Ethernet real-time processing core may determine, based on Ethernet interface 3, that the industrial Ethernet protocol corresponding to the message received from Ethernet interface 3 is the PROFINET protocol.
[0141] In a second possible embodiment, the Ethernet real-time processing core may determine the industrial Ethernet protocol corresponding to the message according to the first indication information in the message.
[0142] The first indication information is used to indicate the industrial Ethernet protocol corresponding to the message.
[0143] In a first exemplary embodiment, the first indication information may be a fixed field used to indicate a corresponding industrial Ethernet protocol.
[0144] For example, a fixed field may be an Ethernet type (Ether Type). When the value of Ether Type is 0x88A4, it indicates that the industrial Ethernet protocol corresponding to the message is the EtherCAT protocol; when the value of Ether Type is 0x8892, it indicates that the industrial Ethernet protocol corresponding to the message is the PROFINET protocol.
[0145] In a second exemplary embodiment, the first indication information may be a bit map, and each bit indicates a different industrial Ethernet protocol.
[0146] For example, taking the bit map as 3 bits, when the bit value is 100, it means that the industrial Ethernet protocol corresponding to the message is EtherCAT; when the bit value is 010, it means that the industrial Ethernet protocol corresponding to the message is EtherCAT protocol; when the bit value is 001, it means that the industrial Ethernet protocol corresponding to the message is EtherNet / IP protocol.
[0147] In a third exemplary embodiment, the first indication information may indicate multiple Industrial Ethernet protocols through multiple bits, and different values of the multiple bits may correspond to different Industrial Ethernet protocols.
[0148] For example, taking 2 bits as an example, when the bit value is 00, it means that the industrial Ethernet protocol corresponding to the message is the EtherCAT protocol; when the bit value is 01, it means that the industrial Ethernet protocol corresponding to the message is the EtherCAT protocol; when the bit value is 10, it means that the industrial Ethernet protocol corresponding to the message is the EtherNet / IP protocol.
[0149] In a third possible embodiment, the Ethernet real-time processing core may determine the industrial Ethernet protocol corresponding to the message according to the Ethernet interface corresponding to the message and the first indication information in the message.
[0150] Exemplarily, the Ethernet real-time processing core can determine that the industrial Ethernet protocol is Industrial Ethernet Protocol 1 based on the Ethernet interface corresponding to the message, and can determine that the corresponding Industrial Ethernet protocol is Industrial Ethernet Protocol 2 based on the first indication information in the message. When Industrial Ethernet Protocol 1 and Industrial Ethernet Protocol 2 are the same, the Ethernet real-time processing core can determine the Industrial Ethernet protocol corresponding to the message; when Industrial Ethernet Protocol 1 and Industrial Ethernet Protocol 2 are different, the Ethernet real-time processing core does not process the message.
[0151] It is understandable that the Ethernet real-time processing core can send messages directly to the first module, or determine the industrial Ethernet protocol based on the message, determine the forwarding rules corresponding to the industrial Ethernet protocol, and then send the message to the first module according to the forwarding rules corresponding to the message, without restriction.
[0152] Based on the above-mentioned method for the Ethernet real-time processing core to determine the industrial Ethernet protocol corresponding to the message, the Ethernet real-time processing core determines the corresponding industrial Ethernet protocol according to the Ethernet interface, which can reduce the transmission overhead compared to the first indication information; determining the corresponding industrial Ethernet protocol according to the first indication information can avoid the Ethernet real-time processing core from misjudging the protocol corresponding to the Ethernet interface, and can improve the reliability of communication; further, the Ethernet real-time processing core can determine the forwarding rule corresponding to the message according to the industrial Ethernet protocol corresponding to the message, and send the message to the first module.
[0153] Based on Figures 4 to 6 The gateway shown is as follows Figure 7 As shown, the first module can receive first request information from the control device to enable the control device to access the gateway.
[0154] Among them, the following Figure 7As shown, the first module is also used to receive the first request information from the control device and send the first request information to the data processing core; correspondingly, the data processing core is also used to receive the first request information from the first module and send the first response information to the first module according to the first request information.
[0155] The first request information is used to request to obtain the identification information of the gateway; the first response information is used to indicate the identification information of the gateway. The present application proposes several possible embodiments according to the identification information of the gateway:
[0156] In the first possible embodiment, taking the gateway identification information as an IP address as an example, after receiving the first request information, the data processing core determines the first response information carrying the gateway IP address and sends the first response information to the first module; the first module forwards the received first response information to the control device to enable the control device to access the gateway.
[0157] In a second possible embodiment, taking the gateway's identification information as a MAC address as an example, after receiving the first request information, the data processing core determines the first response information carrying the gateway's MAC address and sends the first response information to the first module; the first module forwards the received first response information to the control device to enable the control device to access the gateway.
[0158] In a third possible embodiment, taking the identification information of the gateway as a unique identification code (such as an 18-digit unique identification code) as an example, after the data processing core receives the first request information, it determines the first response information carrying the unique identification code of the gateway and sends the first response information to the first module; the first module forwards the received first response information to the control device to enable the control device to access the gateway.
[0159] Based on the above Figure 7 According to the description, the gateway establishes a connection with the control device through the first request information and the first response information, which can avoid setting the configuration information associated with the connection (such as IP address, communication protocol, etc.) at the gateway as much as possible, and can achieve seamless network configuration. It can simplify the way in which the gateway and the control device establish a communication connection and reduce the complexity of the control device accessing the gateway.
[0160] based on Figure 4-Figure 7 The description is as follows Figure 8 As shown, the present application proposes a possible implementation based on realizing communication between field devices and control devices through a gateway:
[0161] One or more field devices are connected to the gateway through one or more Ethernet interfaces, and the field devices can send messages through the Ethernet interface; the Ethernet interface sends the received messages to the Ethernet real-time processing core, and the real-time processing core can send the messages to the first module; the first module sends the received messages to the control device, so that the control device obtains the messages from the field devices, and then can parse the messages according to the relevant parsing protocols to obtain data.
[0162] It should be noted that the above gateway can expand the number of Ethernet interfaces according to business requirements and actual communication requirements.
[0163] The data transmission method provided by the embodiment of the present application will be described below in conjunction with the accompanying drawings. It is understandable that in the embodiment of the present application, the terminal device, the first network device or the second network device can perform some or all of the steps in the embodiment of the present application, and these steps or operations are only examples. The embodiment of the present application can also perform other operations or variations of various operations. In addition, each step can be performed in a different order presented in the embodiment of the present application, and it is possible not to perform all the operations in the embodiment of the present application.
[0164] Based on the above Figure 3-Figure 8 The field device, gateway and control device shown in FIG9 below are interactive diagrams of a data transmission method provided by the present application. Fig. 9 , the data transmission method comprises the following steps:
[0165] S901. The field device sends a message to the gateway through the Ethernet interface; correspondingly, the gateway receives the message from the field device through the Ethernet interface.
[0166] Among them, the field device can collect data, encapsulate the data according to the industrial Ethernet protocol supported by the field device to obtain a message, and further, the field device sends the message to the gateway.
[0167] The gateway includes at least two Ethernet interfaces supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core, and a first module.
[0168] The Ethernet real-time processing core is used to receive messages from the Ethernet interface and send messages to the first module.
[0169] S902: The gateway sends a message to the control device through the first module; correspondingly, the control device receives the message from the gateway.
[0170] The gateway may forward the received message without any other processing; it may also identify the industrial Ethernet protocol corresponding to the message and send the message to the control device according to the forwarding rules without any restriction.
[0171] Optionally, the control device may send one or more forwarding rules to the gateway; correspondingly, the gateway may receive one or more forwarding rules from the control device through the first module.
[0172] Each forwarding rule corresponds to one or more industrial Ethernet protocols. The specific content of the forwarding rule can be referred to above. Figure 5 The contents shown will not be repeated here.
[0173] It can be understood that the gateway can receive one or more forwarding rules from the control device, so that the control device can avoid distinguishing gateways as much as possible. That is, for a gateway that only supports one industrial Ethernet protocol, multiple field devices that support different industrial Ethernet protocols need to access multiple gateways, and the control device needs to determine the forwarding rules corresponding to each gateway, or the control device needs to determine the corresponding gateway according to each forwarding rule, and then send the forwarding rules to the gateway; and for the gateway that supports at least two industrial Ethernet protocols in this application, field devices that support different industrial Ethernet protocols can access one gateway, and the control device can send the forwarding rules directly to the gateway, which can improve the efficiency of information interaction between the gateway and the control device, reduce transmission overhead, and save resources.
[0174] Further, the gateway determines the industrial Ethernet protocol corresponding to the message through the Ethernet real-time processing core according to the Ethernet interface corresponding to the message; or, the gateway determines the industrial Ethernet protocol corresponding to the message through the Ethernet real-time processing core according to the first indication information in the message; wherein the first indication information is used to indicate the industrial Ethernet protocol corresponding to the message.
[0175] It can be understood that the gateway determines the corresponding industrial Ethernet protocol based on the Ethernet interface, which can reduce the message overhead compared to the first indication information; the gateway determines the corresponding industrial Ethernet protocol based on the first indication information, which can avoid the misjudgment of the protocol corresponding to the Ethernet interface by the Ethernet real-time processing, and can improve the reliability of communication; further, the gateway can determine the forwarding rules corresponding to the message based on the industrial Ethernet protocol corresponding to the message, and send the message to the control device.
[0176] Furthermore, the gateway may send the message to the control device through the first module of the gateway according to the forwarding rule corresponding to the message; correspondingly, the control device may receive the message from the gateway.
[0177] The gateway may directly forward the message from the field device to the control device, or the gateway may forward the message from the field device to the control device according to the forwarding rule without restriction.
[0178] S903: The control device parses the message.
[0179] Among them, the control device can pre-store the message parsing method of different industrial Ethernet protocols, and can parse the messages of different industrial Ethernet protocols to obtain the data of the field device.
[0180] Based on the above Fig. 9 The method described above, since the gateway includes at least two Ethernet interfaces supporting at least two industrial Ethernet protocols, can enable multiple field devices supporting different industrial Ethernet protocols to access one gateway, and the gateway can receive messages from field devices of different industrial Ethernet protocols through the Ethernet interface, which can reduce the complexity of networking and the cost of networking; the gateway can forward the messages of the field devices to the control device, which can realize the communication between the field devices and the control device, and can improve the efficiency of data interaction between the field devices and the control device.
[0181] Based on the above Fig. 9 The method described is as follows Fig.10 As shown, the present application also proposes a method for establishing a connection between the gateway and the control device:
[0182] S900: The control device sends a first request message to the gateway; correspondingly, the gateway receives the first request message from the control device through the first module.
[0183] The first request information is used to request to obtain the identification information of the gateway.
[0184] S900a. The gateway sends first response information to the control device through the first module; correspondingly, the control device receives the first response information from the gateway.
[0185] The first response information is used to indicate the identification information of the gateway.
[0186] The first indication information and the first response information are specifically referred to above. Figure 7 The contents described above will not be repeated here.
[0187] based on Fig.10 According to the method shown, the gateway can establish a connection with the control device through the first request information and the first response information, and can avoid setting the configuration information associated with establishing the connection at the gateway as much as possible, so as to realize the senseless network configuration, simplify the way in which the gateway and the control device establish a communication connection, reduce the complexity of the control device accessing the gateway, and improve the effectiveness of the communication between the gateway and the control device.
[0188] It should be noted that the field devices, gateways and control devices in the embodiments of the present application are merely exemplary drawings, and the number of devices is not limited.
[0189] Optionally, based on the above description of the field device, gateway and control device, in specific implementation, the field device, gateway and control device may also be implemented as Fig.11 The structure shown, or including Fig.11 Parts shown. Fig.11 A schematic diagram of the composition of a communication device 110 provided in an embodiment of the present application, wherein the communication device 110 may be a field device or a chip or a system on chip in a field device; may also be a gateway or a chip or a system on chip in a gateway; may also be a control device or a chip or a system on chip in a control device.
[0190] like Fig.11 As shown, the communication device 110 includes one or more processors 1101. Further, the communication device 110 may also include a communication bus 1102 and at least one communication interface ( Fig.11 The above description is merely exemplary, and the communication device 110 includes a communication interface 1104 and a processor 1101 as an example for explanation). Optionally, the communication device 110 may further include a memory 1103.
[0191] The processor 1101 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application, or a processing core for processing data (such as computer program instructions). The processor may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
[0192] In a specific implementation, as an embodiment, the processor 1101 may include one or more CPUs, such as Fig.11 CPU0 and CPU1 in.
[0193] The communication bus 1102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The communication bus 1102 is used to connect different components in the communication device 110 so that different components in the communication device 110 can communicate with each other.
[0194] The communication interface 1104 may be a transceiver module for communicating with other devices or a communication network, such as Ethernet, RAN, or WLAN. Exemplarily, the communication interface 1104 may be a device such as a transceiver or a transceiver. Alternatively, the communication interface 1104 may also be a transceiver circuit located in the processor 1101, for implementing signal input and signal output of the processor.
[0195] The memory 1103 may be a device with a storage function. For example, it may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via the communication bus 1102. The memory may also be integrated with the processor.
[0196] Exemplarily, the memory 1103 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 1101. The processor 1101 is used to execute the computer-executable instructions stored in the memory 1103, thereby implementing the data transmission method provided in the embodiment of the present application.
[0197] Alternatively, optionally, in an embodiment of the present application, the processor 1101 may also perform processing-related functions in the data transmission method provided in the above embodiment of the present application, and the communication interface 1104 is responsible for communicating with other devices or communication networks, which is not specifically limited in the embodiment of the present application.
[0198] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.
[0199] In a specific implementation, as an embodiment, the communication device 110 may further include an output device 1105 and an input device 1106. The output device 1105 communicates with the processor 1101 and may display information in a variety of ways. For example, the output device 1105 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 1106 communicates with the processor 1101 and may receive user input in a variety of ways. For example, the input device 1106 may be a mouse, a keyboard, a touch screen device, or a sensor device.
[0200] It should be noted that Fig.11 The structure shown in the figure does not constitute a limitation on the communication device, except Fig.11 In addition to the components shown, the communication device may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0201] In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.
[0202] It should be noted that the various embodiments of the present application can be implemented independently or in combination without limitation. If there is no special explanation or logical conflict, the terms and / or descriptions of the different embodiments provided in the present application are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0203] It is understandable that in the embodiments of the present application, the execution subject may execute some or all of the steps in the embodiments of the present application, and these steps or operations are only examples. The embodiments of the present application may also execute other operations or variations of various operations. In addition, the various steps may be executed in different orders presented in the embodiments of the present application, and it is possible that not all operations in the embodiments of the present application need to be executed.
[0204] The above mainly introduces the solution provided by the present application from the perspective of interaction between various devices. Correspondingly, the present application also provides a communication device, which is used to implement the above various methods. The communication device can be a field device in the above method embodiment, or a device including the above field device, or a component that can be used for the field device; or, the communication device can be a gateway involved in the above method embodiment, or a device including the gateway, or a component that can be used for the gateway; or, the communication device can be a control device involved in the above method embodiment, or a device including the control device, or a component that can be used for the control device.
[0205] It is understandable that, in order to realize the above functions, the communication device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0206] The embodiment of the present application can divide the functional modules of the communication device according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0207] In the case of dividing each functional module into corresponding functional modules, Fig.12 A communication device 120 is shown, which can perform the above Fig. 9 and Fig.10 The actions performed by the field device, gateway and control device in the method shown, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and the technical effects that can be obtained can refer to the above method embodiment, which will not be repeated here.
[0208] Wherein, the communication device 120 may include a transceiver module 1201 and a processing module 1202. Exemplarily, the communication device 120 may be a communication device, or a chip applied to a communication device, or other combined devices, components, etc. having the functions of the above-mentioned communication device. When the communication device 120 is a communication device, the transceiver module 1201 may be a transceiver, and the transceiver may include an antenna and a radio frequency circuit, etc.; the processing module 1202 may be a processor (or a processing circuit), such as a baseband processor, and the baseband processor may include one or more CPUs. When the communication device 120 is a component having the functions of the above-mentioned communication device, the transceiver module 1201 may be a radio frequency unit; the processing module 1202 may be a processor (or a processing circuit), such as a baseband processor. When the communication device 120 is a chip system, the transceiver module 1201 may be an input and output interface of a chip (such as a baseband chip); the processing module 1202 may be a processor (or a processing circuit) of the chip system, and may include one or more central processing units. It should be understood that the transceiver module 1201 in the embodiment of the present application can be implemented by a transceiver or a transceiver-related circuit component; the processing module 1202 can be implemented by a processor or a processor-related circuit component (or, referred to as a processing circuit).
[0209] For example, the transceiver module 1201 can be used to perform Fig. 9 and Fig.10 All transceiver operations performed by the communication device in the embodiment shown, and / or other processes used to support the technology described herein; the processing module 1202 can be used to perform Fig. 9 and Fig.10 All operations except the transceiver operations performed by the communication device in the illustrated embodiment, and / or other processes for supporting the technology described herein.
[0210] In the present application, the communication device 120 is presented in the form of dividing various functional modules in an integrated manner. The "module" here may refer to an ASIC, a circuit, a processor and a memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above functions.
[0211] In some embodiments, in terms of hardware implementation, those skilled in the art may imagine that the terminal device 120 may use Fig.11 The form of the communication device 110 is shown.
[0212] As an example, Fig.12 The function / implementation process of the processing module 1202 in can be Fig.11 The processor 1101 in the communication device 110 shown calls the computer execution instructions stored in the memory 1103 to implement. Fig.12The function / implementation process of the transceiver module 1201 can be Fig.11 The communication interface 1104 in the communication device 110 is shown to be implemented.
[0213] As another possible way to achieve this, Fig.12 The transceiver module 1201 in the embodiment may be replaced by a transceiver, and the transceiver may integrate the functions of the transceiver module 1201; the processing module 1202 may be replaced by a processor, and the processor may integrate the functions of the processing module 1202. Further, Fig.12 The illustrated communication device 120 may also include a memory.
[0214] Alternatively, when the processing module 1202 is replaced by a processor and the transceiver module 1201 is replaced by a transceiver, the communication device 120 involved in the embodiment of the present application can also be Fig.13 The communication device 130 shown, wherein the processor may be a logic circuit 1301, and the transceiver may be an interface circuit 1302. Further, Fig.13 The communication device 130 shown may also include a memory 1303 .
[0215] The embodiments of the present application also provide a computer program product, which can implement the functions of any of the above method embodiments when executed by a computer.
[0216] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by a computer program to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be an internal storage unit of the terminal (including the data sending end and / or the data receiving end) of any of the above embodiments, such as the hard disk or memory of the terminal. The above computer-readable storage medium can also be an external storage device of the above terminal, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above terminal. Further, the above computer-readable storage medium can also include both the internal storage unit of the above terminal and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above terminal. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output. The present application also provides a computer-readable storage medium, on which a computer program or instruction is stored, and the computer program or instruction is executed by a computer to implement the functions of any of the above method embodiments.
[0217] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0218] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0219] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0220] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0221] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0222] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, all or part of the processes (or functions) described in the embodiments of the present application are implemented. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may contain one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state drive (SSD)), etc. In the embodiment of the present application, the computer may include the aforementioned device.
[0223] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in a claim. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0224] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A gateway, characterized in that: include: At least two Ethernet interfaces supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core, and a first module; Each Ethernet interface is used to receive a message from a field device and send the message to the Ethernet real-time processing core; wherein the industrial Ethernet protocol supported by the field device associated with the Ethernet interface is the same as the industrial Ethernet protocol supported by the Ethernet interface; The Ethernet real-time processing core is used to receive the message from the Ethernet interface and send the message to the first module; The first module is used to receive the message from the Ethernet real-time processing core and send the message to the control device.
2. The gateway according to claim 1, characterized in that: The first module is further configured to receive one or more forwarding rules from the control device; wherein each of the forwarding rules corresponds to one or more industrial Ethernet protocols.
3. The gateway according to claim 2, characterized in that: The gateway also includes: a data processing core; The data processing core is used to receive the one or more forwarding rules from the first module, and send the one or more forwarding rules to the real-time processing core.
4. The gateway according to claim 3, characterized in that: The Ethernet real-time processing core is further configured to receive the one or more forwarding rules from the data processing core, and send the message to the first module according to the one or more forwarding rules.
5. The gateway according to claim 4, characterized in that: The Ethernet real-time processing core is specifically used to determine a forwarding rule corresponding to the message according to the industrial Ethernet protocol corresponding to the message, and send the message to the first module according to the forwarding rule corresponding to the message.
6. The gateway according to claim 5, characterized in that: The Ethernet real-time processing core is specifically used to determine the industrial Ethernet protocol corresponding to the message according to the Ethernet interface corresponding to the message; or, The Ethernet real-time processing core is specifically used to determine the industrial Ethernet protocol corresponding to the message according to the first indication information in the message; wherein the first indication information is used to indicate the industrial Ethernet protocol corresponding to the message.
7. The gateway according to any one of claims 1 to 6, characterized in that: The first module is a wireless module; or, The first module is a Bluetooth module; or, The first module is a narrowband Internet of Things module, or, The first module is a mobile communication module.
8. The gateway according to claim 7, characterized in that: The first module is further used to receive the first request information from the control device, and send the first request information to the data processing core; wherein the first request information is used to request to obtain the identification information of the gateway; The data processing core is further used to receive the first request information from the first module, and send first response information to the first module according to the first request information; wherein the first response information is used to indicate the identification information of the gateway; The first module is further used to receive the first response information from the data processing core, and send the first response information to the control device.
9. The gateway according to any one of claims 1 to 8, characterized in that: The Ethernet real-time processing core includes a memory; wherein the memory is used to cache the message; The first module is further used to read the message in the memory and send the message to the control device.
10. A communication system, characterized in that: The communication system comprises the gateway according to any one of claims 1-9.
11. A data transmission method, characterized in that: The method is applied to a gateway, comprising: The gateway receives messages from field devices through an Ethernet interface; wherein the gateway comprises at least two Ethernet interfaces supporting at least two industrial Ethernet protocols, an Ethernet real-time processing core, and a first module; the Ethernet real-time processing core is used to receive the messages from the Ethernet interfaces and send the messages to the first module; The gateway sends the message to the control device through the first module.
12. The method according to claim 11, characterized in that The gateway sends the message to the control device through the first module, including: The gateway receives one or more forwarding rules from the control device through the first module; wherein each of the forwarding rules corresponds to one or more industrial Ethernet protocols; The gateway determines the forwarding rule corresponding to the message according to the industrial Ethernet protocol corresponding to the message through the Ethernet real-time processing core; According to the forwarding rule corresponding to the message, the gateway sends the message to the control device through the first module.
13. The method according to claim 12, characterized in that The gateway determines the industrial Ethernet protocol corresponding to the message through the Ethernet real-time processing core according to the Ethernet interface corresponding to the message; or, The gateway determines the industrial Ethernet protocol corresponding to the message according to the first indication information in the message through the Ethernet real-time processing core; wherein the first indication information is used to indicate the industrial Ethernet protocol corresponding to the message.
14. The method according to any one of claims 11 to 13, characterized in that: Before sending the message to the control device, the method further includes: The gateway receives first request information from the control device through the first module; wherein the first request information is used to request to obtain identification information of the gateway; The gateway sends first response information to the control device through the first module; wherein the first response information is used to indicate identification information of the gateway.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions or programs. When the computer instructions or programs are executed on a computer, the data transmission method according to any one of claims 11 to 14 is executed.
16. A computer program product, characterized in that The computer program product includes computer instructions; when part or all of the computer instructions are run on a computer, the data transmission method according to any one of claims 11 to 14 is executed.
Citation Information
Cited By
Data transmission method and device, storage medium and computer equipment
CN119922252A
Data transmission method and device, storage medium and computer device
CN119922252B