CN113141299A - Communication gateway based on Ethernet protocol - Google Patents

Communication gateway based on Ethernet protocol Download PDF

Info

Publication number
CN113141299A
CN113141299A CN202010065051.8A CN202010065051A CN113141299A CN 113141299 A CN113141299 A CN 113141299A CN 202010065051 A CN202010065051 A CN 202010065051A CN 113141299 A CN113141299 A CN 113141299A
Authority
CN
China
Prior art keywords
protocol
transceiver
ethernet
data
ethernet protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010065051.8A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chuangyao Suzhou Communication Technology Co Ltd
Original Assignee
Chuangyao Suzhou Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chuangyao Suzhou Communication Technology Co Ltd filed Critical Chuangyao Suzhou Communication Technology Co Ltd
Priority to CN202010065051.8A priority Critical patent/CN113141299A/en
Publication of CN113141299A publication Critical patent/CN113141299A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a communication gateway based on Ethernet protocol, comprising: the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver and the first protocol slave transceiver are respectively used for receiving and transmitting protocol data of corresponding protocols; the first memories are respectively connected with the Ethernet protocol slave transceiver and the first protocol slave transceiver and are used for storing the received protocol data; and the RISC central controller is used for converting any type of received protocol data into other types of protocol data. By implementing the invention, the mutual communication between different equipment and different communication protocols under the Ethernet framework in the industrial automation control can be realized.

Description

Communication gateway based on Ethernet protocol
Technical Field
The invention relates to the field of automation control, in particular to a communication gateway based on an Ethernet protocol.
Background
With the rapid development of industrial automation, the fieldbus technology is widely applied, EtherCAT is an open architecture fieldbus system based on ethernet, and EtherCAT is widely applied to industrial automation due to the advantages of large transmission bandwidth, long distance and the like of ethernet.
In an industrial automation system, various devices may exist, different devices may have different communication protocols, and how to realize mutual communication between different communication protocols under an ethernet framework becomes an important issue.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to implement intercommunication between different communication protocols under an ethernet architecture, thereby providing a communication gateway based on an ethernet protocol.
According to a first aspect, the present embodiment provides an ethernet protocol-based communication gateway, including: the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver and the first protocol slave transceiver are respectively used for receiving and transmitting protocol data of corresponding protocols; the first memories are respectively connected with the Ethernet protocol slave transceiver and the first protocol slave transceiver and are used for storing the received protocol data; and the RISC central controller is used for converting any type of received protocol data into other types of protocol data.
With reference to the first aspect, in a first implementation manner of the first aspect, the communication gateway based on the ethernet protocol further includes a data processor, which is respectively connected to the ethernet protocol master transceiver, the ethernet protocol slave transceiver, the first protocol master transceiver, and the first protocol slave transceiver, and is configured to process received protocol data to obtain a protocol data frame, and transmit the protocol data frame to the RISC central controller.
With reference to the first aspect, in a second implementation manner of the first aspect, the ethernet protocol-based communication gateway further includes: and the second memory is connected with the RISC central controller.
With reference to the first aspect and any implementation manner of the first aspect, in a third implementation manner of the first aspect, the ethernet protocol-based communication gateway further includes: a power module for powering the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver, the first protocol slave transceiver, the first memory, the second memory, the data processor, and the RISC central controller.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the first memory includes a random access memory.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the protocols transceived by the first protocol master transceiver and the first protocol slave transceiver include: CAN bus protocol, RS232 protocol, and RS485 protocol.
The technical scheme of the invention has the following advantages:
1. the invention provides a communication gateway based on an Ethernet protocol, which realizes the mutual communication among different communication protocols of different devices under an Ethernet framework in industrial automation control through an Ethernet protocol master transceiver, an Ethernet protocol slave transceiver, a first protocol master transceiver, a first protocol slave transceiver, a plurality of first memories and a RISC central controller, and improves the reliability of data transmission among different communication protocols due to the arrangement of each slave transceiver corresponding to the master transceiver.
2. The communication gateway based on the Ethernet protocol provided by the invention utilizes the data processor to carry out data frame format conversion on data, the data frame comprises a frame head and a frame tail, and the frame head and the frame tail comprise some necessary control information, such as synchronous information, address information, error control information and the like, so that the safety of data transmission can be improved and the transmission error can be reduced.
3. The communication gateway based on the Ethernet protocol realizes that the protocol data is cached when the RISC central controller can not process the protocol data quickly through the second memory connected with the RISC central controller, and can solve the problem that the transmitted processing protocol data is too much to cause the frame loss of the protocol data, thereby improving the reliability of the transmission process of the protocol data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a diagram of a specific example of a communication gateway based on an ethernet protocol according to an embodiment of the present invention;
fig. 2 is a diagram of a specific example of a communication gateway based on an ethernet protocol according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The present embodiment provides a communication gateway based on an ethernet protocol, as shown in fig. 1, including:
the system comprises an Ethernet protocol master transceiver, an Ethernet protocol slave transceiver, a first protocol master transceiver, a first protocol slave transceiver, a plurality of first memories and a RISC central controller. The Ethernet protocol main transceiver is used for sending and receiving Ethernet protocol data in a normal state, converting the received and sent EtherCAT data into an electric signal which is in accordance with the Ethernet bus physical layer specification, and meanwhile, realizing the isolation protection of a protocol control circuit; the Ethernet protocol slave transceiver is used for replacing and completing the work of the Ethernet protocol master transceiver under the condition that the Ethernet protocol master transceiver fails; the first protocol master transceiver is used for sending and receiving other types of protocol data in a normal state, converting the received and sent data into an electric signal which is specified by a physical layer corresponding to the first protocol, and meanwhile, realizing the isolation protection of the protocol control circuit; the first protocol slave transceiver is used for replacing and completing the work of the first protocol master transceiver under the condition that the first protocol master transceiver fails; the first memories are respectively connected with the Ethernet protocol slave transceiver and the first protocol slave transceiver and are used for storing the received corresponding protocol data; and the RISC central controller is used for converting any type of received protocol data into other types of protocol data.
Illustratively, the specific process of the conversion of the different communication protocols can be described as follows: the RISC central controller sends a data request instruction to a target master transceiver, wherein the data request instruction comprises a protocol data type to be converted, a protocol data source address to be converted and a destination address of the converted protocol data, and the target master transceiver is any one of an Ethernet protocol master transceiver and a first protocol master transceiver.
As an optional implementation manner of this embodiment, the protocols transceived by the first protocol master transceiver and the first protocol slave transceiver include: any one or more of CAN bus protocol, RS232 protocol and RS485 protocol. I.e. it is indicated that the first protocol master/slave transceiver may be any one or more of a CAN bus protocol master/slave transceiver, an RS232 protocol master/slave transceiver, an RS485 protocol master/slave transceiver. The embodiment specifically expands the protocols received and transmitted by the first protocol master transceiver and the first protocol slave transceiver, and is beneficial to the interconversion between different communication protocols of different devices in the industrial automation system.
In this embodiment, a target master transceiver is taken as an example of a CAN bus protocol master transceiver, when a CAN bus protocol needs to be converted into an ethernet protocol, and when a RISC central controller receives CAN bus protocol data uploaded by the CAN bus protocol master transceiver within a target time length, the RISC central controller converts the received CAN bus protocol data into ethernet protocol data through logic operation, and sends the converted ethernet protocol data to the ethernet protocol master transceiver and a first memory connected to an ethernet protocol slave transceiver corresponding to the ethernet protocol master transceiver. .
When the RISC central controller does not receive CAN bus protocol data uploaded by the CAN bus protocol master transceiver in the target time length, the target time length CAN be 0.005 second, and when the CAN bus protocol master transceiver fails, a data request instruction is sent to the CAN bus protocol slave transceiver corresponding to the CAN bus protocol master transceiver, before the CAN bus protocol slave transceiver and the CAN bus protocol master transceiver have simultaneously received the target CAN bus protocol data, the CAN bus protocol slave transceiver stores the received CAN bus protocol data to the corresponding first memory, when the CAN bus protocol slave transceiver receives the data request instruction, the CAN bus protocol data in the corresponding first memory is sent to the RISC central controller, the received CAN bus protocol data is converted into Ethernet protocol data through logic operation, and the converted Ethernet protocol data is sent to the Ethernet protocol master transceiver and the Ethernet protocol master transceiver corresponding to the Ethernet protocol master transceiver A first memory connected from the transceiver. When the Ethernet protocol master transceiver fails, the Ethernet protocol receives the Ethernet protocol data stored in the corresponding first memory.
The target time length is not limited in this embodiment, and can be determined by those skilled in the art as needed.
The communication gateway based on the Ethernet protocol realizes the mutual communication between different communication protocols of different devices under an Ethernet framework in industrial automation control through the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver, the first protocol slave transceiver, the plurality of first memories and the RISC central controller, and improves the reliability of data transmission between different communication protocols due to the arrangement of the slave transceivers corresponding to the master transceiver.
As an optional implementation manner of this embodiment, as shown in fig. 2, the communication gateway based on the ethernet protocol further includes: and the data processor is respectively connected with the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver and the first protocol slave transceiver, and is used for processing the received protocol data to obtain a protocol data frame and transmitting the protocol data frame to the RISC central controller.
Illustratively, the data processor mainly transmits or receives, encodes or decodes data frames for data transmitted by the ethernet protocol master transceiver, the ethernet protocol slave transceiver, the first protocol master transceiver and the first protocol slave transceiver.
Taking the example of converting the ethernet protocol data into the CAN bus protocol data, after receiving the ethernet protocol data, the ethernet protocol transceiver sends the ethernet protocol data to the data processor, the data processor encodes the ethernet protocol data into an ethernet protocol data frame format, the data processor sends the ethernet protocol data frame to the RISC central controller, the RISC central controller converts the ethernet protocol data frame into the CAN bus protocol data frame according to the data request instruction and sends the CAN bus protocol data frame to the data processor corresponding to the CAN bus protocol transceiver, and the data processor decodes the CAN bus protocol data frame into the CAN bus protocol data for the CAN bus protocol transceiver to receive. The present embodiment does not limit the type of data protocol processed by the data processor, and those skilled in the art can determine the type as needed.
The communication gateway based on the Ethernet protocol provided by the invention utilizes the data processor to carry out data frame format conversion on data, the data frame comprises a frame head and a frame tail, and the frame head and the frame tail comprise some necessary control information, such as synchronous information, address information, error control information and the like, so that the safety of data transmission can be improved and the transmission error can be reduced.
As an optional implementation manner of this embodiment, as shown in fig. 2, the communication gateway based on the ethernet protocol further includes: and the second memory is connected with the RISC central controller.
The second memory may store processing programs, data, and configuration information, wherein the memory for storing the processing programs is composed of a nonvolatile flash memory or a nonvolatile ferroelectric memory and is used for permanently storing the application programs; the memory for storing data consists of a synchronous dynamic random access memory and is used for memory allocation and real-time data storage during code operation; the memory for storing configuration information is composed of a nonvolatile ferroelectric memory, and stores bus configuration information data, data for configuration information, and data to be permanently stored. The content and the mode of the second memory are not limited in this embodiment, and those skilled in the art can determine the content and the mode as needed.
When a large amount of different protocol data are transmitted, and the RISC central controller cannot rapidly process conversion among different protocol data, the second memory can buffer the real-time data, and after the RISC central controller finishes processing the current protocol data conversion, the protocol data buffered in the second memory can be read to perform conversion among the protocol data.
The communication gateway based on the ethernet protocol provided by this embodiment implements, through the second memory connected to the RISC central controller, that protocol data is cached when the RISC central controller cannot process the protocol data quickly, and can solve the problem of frame loss of the protocol data due to excessive transmitted processing protocol data, thereby improving the reliability of the protocol data transmission process.
As an optional implementation manner of this embodiment, as shown in fig. 2, the communication gateway based on the ethernet protocol further includes: and the power supply module is used for supplying power to the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver, the first protocol slave transceiver, the first memory, the second memory, the data processor and the RISC central controller.
As an alternative implementation of this embodiment, the first memory comprises a Random Access Memory (RAM). The first memory is used for storing the received corresponding protocol data, the time length for storing the protocol data can set a time threshold, when the time threshold is exceeded, the protocol data in the first memory is deleted, the available capacity of the first memory is ensured, and the time threshold can be 5 minutes. When the first memory is a random access memory, the condition of power failure without loss can be met, and the transmission and conversion of protocol data are more reliable. The time threshold is not limited in this embodiment, and can be determined by those skilled in the art as needed.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (6)

1. A communications gateway based on an ethernet protocol, comprising:
the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver and the first protocol slave transceiver are respectively used for receiving and transmitting protocol data of corresponding protocols;
the first memories are respectively connected with the Ethernet protocol slave transceiver and the first protocol slave transceiver and are used for storing the received protocol data;
and the RISC central controller is used for converting any type of received protocol data into other types of protocol data.
2. An ethernet protocol based communications gateway as claimed in claim 1, further comprising: and the data processor is respectively connected with the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver and the first protocol slave transceiver, and is used for processing the received protocol data to obtain a protocol data frame and transmitting the protocol data frame to the RISC central controller.
3. An ethernet protocol based communications gateway as claimed in claim 1, further comprising: and the second memory is connected with the RISC central controller.
4. An ethernet protocol based communications gateway according to any of claims 1-3, further comprising: a power module for powering the Ethernet protocol master transceiver, the Ethernet protocol slave transceiver, the first protocol master transceiver, the first protocol slave transceiver, the first memory, the second memory, the data processor, and the RISC central controller.
5. An ethernet protocol based communications gateway as claimed in claim 1, wherein said first memory comprises a random access memory.
6. An ethernet protocol based communications gateway as claimed in claim 1, wherein the protocols transceived by the first protocol master transceiver and the first protocol slave transceiver include: any one or more of CAN bus protocol, RS232 protocol and RS485 protocol.
CN202010065051.8A 2020-01-20 2020-01-20 Communication gateway based on Ethernet protocol Pending CN113141299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010065051.8A CN113141299A (en) 2020-01-20 2020-01-20 Communication gateway based on Ethernet protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010065051.8A CN113141299A (en) 2020-01-20 2020-01-20 Communication gateway based on Ethernet protocol

Publications (1)

Publication Number Publication Date
CN113141299A true CN113141299A (en) 2021-07-20

Family

ID=76809015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010065051.8A Pending CN113141299A (en) 2020-01-20 2020-01-20 Communication gateway based on Ethernet protocol

Country Status (1)

Country Link
CN (1) CN113141299A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080304499A1 (en) * 2007-06-11 2008-12-11 Jae Wook Jeon Gateway device, network system and data converting method applied to vehicle using plurality of network protocol different from each other
CN102118327A (en) * 2010-12-30 2011-07-06 中国民航信息网络股份有限公司 Multi-host gateway
CN102263709A (en) * 2011-08-23 2011-11-30 国电南京自动化股份有限公司 Gateway for realizing communication transformation between EtherCAT (Ethernet for control and automation technology) and RS485 and communication method thereof
KR20140072667A (en) * 2012-12-05 2014-06-13 한국전자통신연구원 Gateway and method for converting ip address in gateway
CN205510091U (en) * 2016-04-14 2016-08-24 罗平 Embedded intelligent gateway
US20170072876A1 (en) * 2015-09-14 2017-03-16 Broadcom Corporation Hardware-Accelerated Protocol Conversion in an Automotive Gateway Controller
CN107094149A (en) * 2017-05-19 2017-08-25 北京蓝涟科技有限责任公司 A kind of digital communication multi-protocol conversion device and its application method
CN108881001A (en) * 2017-05-16 2018-11-23 比亚迪股份有限公司 The gateway and method of data conversion are carried out based on CANopen agreement and Ethernet protocol
CN211352220U (en) * 2020-01-20 2020-08-25 创耀(苏州)通信科技股份有限公司 Communication gateway based on Ethernet protocol

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080304499A1 (en) * 2007-06-11 2008-12-11 Jae Wook Jeon Gateway device, network system and data converting method applied to vehicle using plurality of network protocol different from each other
CN102118327A (en) * 2010-12-30 2011-07-06 中国民航信息网络股份有限公司 Multi-host gateway
CN102263709A (en) * 2011-08-23 2011-11-30 国电南京自动化股份有限公司 Gateway for realizing communication transformation between EtherCAT (Ethernet for control and automation technology) and RS485 and communication method thereof
KR20140072667A (en) * 2012-12-05 2014-06-13 한국전자통신연구원 Gateway and method for converting ip address in gateway
US20170072876A1 (en) * 2015-09-14 2017-03-16 Broadcom Corporation Hardware-Accelerated Protocol Conversion in an Automotive Gateway Controller
CN205510091U (en) * 2016-04-14 2016-08-24 罗平 Embedded intelligent gateway
CN108881001A (en) * 2017-05-16 2018-11-23 比亚迪股份有限公司 The gateway and method of data conversion are carried out based on CANopen agreement and Ethernet protocol
CN107094149A (en) * 2017-05-19 2017-08-25 北京蓝涟科技有限责任公司 A kind of digital communication multi-protocol conversion device and its application method
CN211352220U (en) * 2020-01-20 2020-08-25 创耀(苏州)通信科技股份有限公司 Communication gateway based on Ethernet protocol

Similar Documents

Publication Publication Date Title
WO2018190568A1 (en) Lorawan-based remote inspection system
US9667699B2 (en) Method for transmitting data via a CANopen bus
JP2010272971A (en) Control system and method for rewriting control program
CN110912810A (en) Data transmission method, intelligent gateway, computer equipment and storage medium
CN108966046B (en) Two kinds of communication interface amalgamation MAC controller based on FPGA
CN106603506B (en) Data communication method, device and system based on multi-field bus
CN211352220U (en) Communication gateway based on Ethernet protocol
EP4102776A1 (en) Log acquisition method and apparatus, terminal, server, and computer readable storage medium
WO2020063865A1 (en) Can circuit structure and vehicle diagnostic device thereof
CN113141299A (en) Communication gateway based on Ethernet protocol
JP6420428B1 (en) Wireless device
CN101282174B (en) Encoding-decoding device based on optical fiber communication and high pressure frequency transformer control module
US20050141555A1 (en) Method for generating commands for network controller modules of peripheral devices
US20230403735A1 (en) Message Transmission Method, Terminal and Storage Medium
CN105955902A (en) Serial-to-wireless communicator
CN111800394B (en) TRDP and Modbus-based protocol conversion gateway method
JP2010193325A (en) Protocol conversion apparatus
KR100226781B1 (en) Method for recognizing node
CN111885028A (en) Data transmission device, data processing method, master, slave, and medium
JP2022522029A (en) Systems and methods for exchanging data between a control or evaluation device and a data generation device, more particularly between tools, network-enabled modules and tools with network-enabled modules.
CN110995789A (en) Inter-station communication method and system for three-terminal direct-current power transmission
CN205644530U (en) Serial ports changes wireless communicator
US20220374376A1 (en) Memory mapping of legacy i/f protocols over tdd
CN115514410B (en) Remote sensing satellite data transmission system based on Ethernet
KR101175149B1 (en) Method for controlling multidrop optical communication and multidrop optical repeater

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination