CN214627012U - One-master multi-slave real-time communication system based on Ethernet PHY - Google Patents

One-master multi-slave real-time communication system based on Ethernet PHY Download PDF

Info

Publication number
CN214627012U
CN214627012U CN202120536958.8U CN202120536958U CN214627012U CN 214627012 U CN214627012 U CN 214627012U CN 202120536958 U CN202120536958 U CN 202120536958U CN 214627012 U CN214627012 U CN 214627012U
Authority
CN
China
Prior art keywords
slave
network
port
node
master
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.)
Expired - Fee Related
Application number
CN202120536958.8U
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.)
Guangzhou Railway Polytechnic
Original Assignee
Guangzhou Railway Polytechnic
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 Guangzhou Railway Polytechnic filed Critical Guangzhou Railway Polytechnic
Priority to CN202120536958.8U priority Critical patent/CN214627012U/en
Application granted granted Critical
Publication of CN214627012U publication Critical patent/CN214627012U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a motion control real-time communication system, and more particularly, to a one-master multi-slave real-time communication system and method based on ethernet PHY. The system comprises a main node and a slave node, wherein the main node comprises an industrial control computer and an NIC network card unit, and the slave node comprises an FPGA main control unit, a PHY unit, a network transformer unit and an RJ45 network port. The main node connects the NIC to the input port of the slave node through the network cable, the output port of the slave node is connected to the input port of the next slave node, and a main multi-slave communication network is formed in sequence. By means of a physical layer communication link provided by a gigabit Ethernet PHY and by writing FPGA control logic, data transmission with strong real-time performance, large throughput and high reliability can be realized; the method has the advantages of simple implementation mode, multi-node communication, high reliability, high real-time performance and capability of realizing data transmission with strong real-time performance, large throughput and high reliability.

Description

One-master multi-slave real-time communication system based on Ethernet PHY
Technical Field
The present invention relates to a motion control real-time communication system, and more particularly, to a one-master multi-slave real-time communication system based on ethernet PHY.
Background
In the field of industrial motion control, data interaction between devices is often required to be performed in real time at high speed. When the distance between the devices is long, RS485, CAN, Ethernet and other transmission media CAN be adopted, and the reliability of data interaction is ensured by combining with upper-layer protocols. RS485 and CAN buses are generally suitable for occasions with small data volume and low requirements on refresh cycles; and the common Ethernet communication has no real-time performance and can not be directly used in the occasions with strict requirements on the real-time performance of industrial communication, such as robots, motion control systems and the like.
Some communication protocols, such as EtherCAT, Powerlink, PROFINET, etc., have been derived based on ethernet transmission media. On one hand, such protocols are generally complex and have certain requirements on hardware, which increases the difficulty of application. On the other hand, the Ethernet technology has specificity and closure, and a certain royalty needs to be paid to the Ethernet technology during application. However, in the field of partial motion control, a complete routing mechanism and flow control are not needed, but a high real-time data interaction mode is needed.
SUMMERY OF THE UTILITY MODEL
The present invention provides a primary-secondary real-time communication system based on ethernet PHY, which has the advantages of high reliability, high real-time performance, and multi-node communication.
In order to solve the technical problem, the technical scheme adopted by the novel method is as follows: a one-master multi-slave real-time communication system based on an Ethernet PHY comprises a master node and slave nodes; the main node comprises an industrial control computer and an NIC network card unit; the slave node comprises an FPGA main control chip, a first physical layer PHY chip, a second physical layer PHY chip, a first network transformer, a second network transformer, a first RJ45 network port and a second RJ45 network port; the industrial control computer is in communication connection with the NIC network card; the FPGA main control chip is electrically connected with one end of a first physical layer PHY chip, the other end of the first physical layer PHY chip is electrically connected with one end of a first network transformer, and the other end of the first network transformer is electrically connected with a first RJ45 network port; the FPGA main control chip is also electrically connected with one end of a second physical layer PHY chip, the other end of the second physical layer PHY chip is electrically connected with one end of a second network transformer, and the other end of the second network transformer is electrically connected with a second RJ45 network port; the master node and the slave node are connected through a network cable.
In one embodiment, the host node further includes a NIC driving unit and a first data exchange format defining unit; the slave node also comprises a slave node control unit and a second data exchange format definition unit; the NIC driving unit and the first data exchange format defining unit are respectively in communication connection with the industrial personal computer; and the slave node control unit and the second data exchange format definition unit are respectively in communication connection with the FPGA main control chip.
In one embodiment, the industrial computer is in communication connection with the NIC network card through a PCI or PCIe bus.
In one embodiment, the FPGA master control chip is connected to the first physical layer PHY chip and the second physical layer PHY chip through RMII interfaces, respectively.
In one embodiment, the first RJ45 port and the second RJ45 port are full duplex, and the communication rate is 100Mbps or 1000 Mbps.
In one embodiment, the network card unit of the master node NIC is communicatively connected to the first RJ45 network port of the slave node through a network cable.
In one embodiment, the slave nodes are provided with a plurality of groups, and the plurality of groups of slave nodes are connected in series through a network cable.
In one embodiment, the second RJ45 port of a slave node is communicatively connected to the first RJ45 port of another slave node via a network cable.
In one embodiment, the number of the slave nodes is less than or equal to 65535, and the distance between two adjacent slave nodes is less than or equal to 100 meters.
In one embodiment, the first RJ45 port is an input port; the second RJ45 port is an output port.
Compared with the prior art, the beneficial effects are: the utility model provides a one-master multi-slave real-time communication system based on Ethernet PHY, with the help of the physical layer communication link that gigabit Ethernet PHY provided, through compiling FPGA control logic, can realize strong real-time, big throughput, high reliability data transmission; the novel implementation mode is simple, multi-node communication is achieved, reliability is high, real-time performance is high, and data transmission with strong real-time performance, large throughput and high reliability can be achieved.
Drawings
Fig. 1 is a schematic diagram of the structure of the novel system.
Fig. 2 is a block diagram of the communication unit of the slave node of the present invention.
Fig. 3 is a flow of the novel real-time communication data interaction.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the present disclosure; for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted. The positional relationships depicted in the drawings are for illustrative purposes only and are not to be construed as limiting the present invention.
Example 1
The embodiment provides a master-slave real-time communication system based on an Ethernet PHY, which comprises a master node and slave nodes; the main node comprises an industrial control computer and an NIC network card unit; the slave node comprises an FPGA main control chip, a first physical layer PHY chip, a second physical layer PHY chip, a first network transformer, a second network transformer, a first RJ45 network port and a second RJ45 network port; the industrial control computer is connected with the NIC network card through a PCI or PCIe bus; the FPGA main control chip is electrically connected with one end of the first physical layer PHY chip, the other end of the first physical layer PHY chip is electrically connected with one end of the first network transformer, and the other end of the first network transformer is electrically connected with the first RJ45 port; the FPGA main control chip is also electrically connected with one end of a second physical layer PHY chip, the other end of the second physical layer PHY chip is electrically connected with one end of a second network transformer, and the other end of the second network transformer is electrically connected with a second RJ45 network port; the master node and the slave node are connected through a network cable.
In one embodiment, the master node further includes a NIC driving unit and a first data exchange format defining unit; the slave node further comprises a slave node control unit and a second data exchange format definition unit; the NIC driving unit and the first data exchange format defining unit are respectively in communication connection with the industrial personal computer; and the slave node control unit and the second data exchange format definition unit are respectively in communication connection with the FPGA main control chip.
In one embodiment, the FPGA master control chip is connected to the first physical layer PHY chip and the second physical layer PHY chip through RMII interfaces, respectively.
In one embodiment, the first RJ45 port and the second RJ45 port are full duplex, and the communication rate is 100Mbps or 1000 Mbps.
In one embodiment, the NIC network card unit of the master node is communicatively connected to the first RJ45 network port of the slave node through a network cable.
In one embodiment, the slave nodes are provided with a plurality of groups, and the plurality of groups of slave nodes are connected in series through the network cable.
In one embodiment, the second RJ45 port of a slave node is communicatively connected to the first RJ45 port of another slave node via a network cable.
In one embodiment, the number of the slave nodes is less than or equal to 65535, and the distance between two adjacent slave nodes is less than or equal to 100 meters.
In one embodiment, the first RJ45 port is an input port; the second RJ45 port is an output port.
The embodiment also provides a master-slave real-time communication method based on the ethernet PHY, and the use of the master-slave real-time communication system based on the ethernet PHY in embodiment 1 specifically includes the following steps: when a data updating period comes, the NIC driving unit packages data to be sent into a package according to the definition of an agreed data exchange format, the NIC driving unit fills the data sending buffer area, and the data is sent to an input network port of a first slave node through a network transformer; and the slave node FPGA main control chip receives data flow from the input network port, defines, analyzes and secondarily packages the data flow according to an agreed data exchange format, then sends the data flow to the input network port of the next slave node from the slave node output network port, and so on until the data exchange of all the nodes in the network is completed.
The NIC driving unit works in a kernel mode and performs data interaction with the real-time task layer in a memory sharing mode; the NIC driving unit removes an interface interacted with an upper layer protocol stack and increases an interaction interface with a real-time task layer; the NIC driving unit turns off the functions of power management, dormancy and the like so as to enhance the real-time performance; the NIC driving unit comprises a hardware initialization function, a cache initialization function, a data sending processing function, a data receiving processing function, a state updating function and a data packaging and analyzing function; the data transmission flow is that a data encapsulation and analysis function encapsulates data transmitted by a real-time task layer in a shared memory mode according to a data exchange format, then a descriptor is assigned and transmitted according to skb through a data transmission processing function, and then a hardware transmission register is enabled to directly transmit the data out; the data receiving process comprises the steps that an interrupt mechanism is set by an initialization function to receive a data packet, when the interrupt is received, a data receiving processing function copies data from a receiving descriptor according to skb, and then a data analysis function is called to transmit effective data to a real-time task layer in a shared memory mode; the state update function in the NIC driving unit may report the number of the transceiving packets, the network connection state, the number of the slave nodes, the transmission and reception rates, and the like to the user layer.
The slave node FPGA main control chip is configured with control programs including PYH initialization functions, data transceiving processing functions, data packaging and analyzing functions; the PHY initialization function comprises auto-negotiation mode configuration, rate configuration, RMII reset and RMII enabling; the slave nodes can automatically arrange address codes according to the physical connection sequence in the network; the data receiving and transmitting processing function receives the data stream from the first network port and carries out CRC (cyclic redundancy check) check; the slave node reads data from the corresponding data segment according to the address code of the slave node, inserts new data to be sent, accumulates the counter in the data packet by 1, performs integral CRC (cyclic redundancy check) on the new data packet, and fills the new check data into the data packet; the slave nodes send out the newly processed data packets from the second network port according to the bit stream until the data packets processed by the last node in the network are returned to the master node one by one through each slave node; as shown in fig. 3, the whole communication process is operated in a full-duplex mode, and each slave node implements update processing on a data packet in a pure hardware manner.
The data exchange format protocol unit comprises an Ethernet lead code, a frame start delimiter, a slave node address code, data length, user data, a data packet counter, a synchronous clock, data verification and the like; the preamble is 7 bytes 0x55, a series of 1 and 0 interval data streams, which represents signal synchronization; the start of frame delimiter is 1 byte 0xD5, indicating the start of valid data; the slave node address code is 2 bytes and is automatically filled according to the position of the slave node in the network; the data length is 2 bytes; the data packet counter is 2 bytes, represents the number of times of the present data packet is processed, is used for the network communication to diagnose; the synchronous clock is 4 bytes and represents the time sequence synchronization of each slave node; the data is checked for 4 bytes and the CRC32 checks all data from the start delimiter of the frame to the last byte of the sync clock and fills in the end of the packet.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate orientations and positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the device or element so referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to specific circumstances.
In the present disclosure, unless explicitly stated or limited otherwise, a first feature may be "on" or "under" a second feature in direct contact with the first and second features, or in indirect contact with the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
While embodiments of the present invention have been shown and described, it is to be understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that changes, modifications, substitutions and alterations may be made therein by those of ordinary skill in the art without departing from the scope of the present invention.
It should be understood that the above examples of the present invention are merely examples for clearly illustrating the present invention and are not intended to limit the embodiments of the present invention. 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. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A one-master multi-slave real-time communication system based on an Ethernet PHY is characterized by comprising a master node and slave nodes; the main node comprises an industrial control computer and an NIC network card unit; the slave node comprises an FPGA main control chip, a first physical layer PHY chip, a second physical layer PHY chip, a first network transformer, a second network transformer, a first RJ45 network port and a second RJ45 network port; the industrial control computer is in communication connection with the NIC network card; the FPGA main control chip is electrically connected with one end of a first physical layer PHY chip, the other end of the first physical layer PHY chip is electrically connected with one end of a first network transformer, and the other end of the first network transformer is electrically connected with a first RJ45 network port; the FPGA main control chip is also electrically connected with one end of a second physical layer PHY chip, the other end of the second physical layer PHY chip is electrically connected with one end of a second network transformer, and the other end of the second network transformer is electrically connected with a second RJ45 network port; the master node and the slave node are connected through a network cable.
2. The ethernet PHY-based one-master multi-slave real-time communication system of claim 1, wherein the master node further comprises a NIC driving unit and a first data exchange format defining unit; the slave node also comprises a slave node control unit and a second data exchange format definition unit; the NIC driving unit and the first data exchange format defining unit are respectively in communication connection with the industrial personal computer; and the slave node control unit and the second data exchange format definition unit are respectively in communication connection with the FPGA main control chip.
3. The Ethernet PHY-based one-master multi-slave real-time communication system of claim 2, wherein the industrial computer is communicatively connected to the NIC card unit via a PCI or PCIe bus.
4. The Ethernet PHY-based one-master multi-slave real-time communication system of claim 2, wherein the FPGA master control chip is connected to the first PHY chip and the second PHY chip via RMII interfaces respectively.
5. The ethernet PHY based master-slave real-time communication system of claim 2, wherein the first RJ45 port and the second RJ45 port are full duplex and have a communication rate of 100Mbps or 1000 Mbps.
6. The ethernet PHY based one-master multi-slave real-time communication system of claim 2, wherein the NIC network card unit of the master node is communicatively connected to the first RJ45 port of the slave node through a network cable.
7. An Ethernet PHY-based master-slave real-time communication system according to any of claims 2 to 6, wherein a plurality of slave nodes are provided, and the plurality of slave nodes are connected in series via a network cable.
8. The ethernet PHY based one master multiple slave real time communication system of claim 7, wherein the second RJ45 port of a slave node is communicatively coupled to the first RJ45 port of another slave node via a network cable.
9. The Ethernet PHY-based one-master-multiple-slave real-time communication system of claim 8, wherein the number of the slave nodes is 65535 or less, and the distance between two adjacent slave nodes is 100 meters or less.
10. The ethernet PHY based master-slave real-time communication system according to claim 8, wherein the first RJ45 port is the input port; the second RJ45 port is an output port.
CN202120536958.8U 2021-03-15 2021-03-15 One-master multi-slave real-time communication system based on Ethernet PHY Expired - Fee Related CN214627012U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202120536958.8U CN214627012U (en) 2021-03-15 2021-03-15 One-master multi-slave real-time communication system based on Ethernet PHY

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202120536958.8U CN214627012U (en) 2021-03-15 2021-03-15 One-master multi-slave real-time communication system based on Ethernet PHY

Publications (1)

Publication Number Publication Date
CN214627012U true CN214627012U (en) 2021-11-05

Family

ID=78394999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202120536958.8U Expired - Fee Related CN214627012U (en) 2021-03-15 2021-03-15 One-master multi-slave real-time communication system based on Ethernet PHY

Country Status (1)

Country Link
CN (1) CN214627012U (en)

Similar Documents

Publication Publication Date Title
Birrittella et al. Intel® omni-path architecture: Enabling scalable, high performance fabrics
US5041963A (en) Local area network with an active star topology comprising ring controllers having ring monitor logic function
US5896383A (en) System and method for encoding instruction fields within data packets
US4939724A (en) Cluster link interface for a local area network
US5247626A (en) Fddi controller having flexible buffer management
US7519076B2 (en) Method and node for using a communication network in parallel for real-time applications and non-real-time applications
US6651107B1 (en) Reduced hardware network adapter and communication
EP2003823B1 (en) Autonegotiation over an interface for which no autonegotiation standard exists
EP1775884B1 (en) Apparatus and method of remote physical layer auto-negotiation
EP0879518B1 (en) Automatic speed switching repeater
CN106953853B (en) Network-on-chip gigabit Ethernet resource node and working method thereof
CN102185833B (en) Fiber channel (FC) input/output (I/O) parallel processing method based on field programmable gate array (FPGA)
US20050132089A1 (en) Directly connected low latency network and interface
WO2020038191A1 (en) Time delay measuring method and network device
CN108021525B (en) A kind of redundancy exchange system based on the more primary interconnects of PCIE bus
US11973826B2 (en) Data transmission method and automation communication network
US7644194B2 (en) Method and system for addressing a plurality of Ethernet controllers integrated into a single chip which utilizes a single bus interface
CN113709047A (en) Data forwarding system and method for automobile domain controller
CN108228521A (en) A kind of Serial Communication at High Speed on MS network
CN101106504A (en) Distributed communication system for intelligent independent robot based on CAN bus
CN112968822A (en) One-master multi-slave real-time communication system and method based on Ethernet PHY
JP2986798B2 (en) Data transmission control method and data communication device
CN214627012U (en) One-master multi-slave real-time communication system based on Ethernet PHY
CN111614533A (en) POWERLINK slave station module capacity expansion system and interaction method of slave station and bus master node
CN113938443B (en) Wireless internet of things protocol switch

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20211105