Module socket

Module socket 

Source
Expand description

This module provide the trait EthercatSocket, and several implementors allowing to use different physical layers for ethercat communication.

  • UDP socket allows to run multiple master, one ethercat segment each, on the same ethernet network (and same machine ethernet port). But exposes the ethercat network to possible delays due to ethernet packet collisions.
  • Raw socket allows one only master with one only ethercat segment on the ethernet network. It ensure no communication delay with an ethercat segment.

Both socket types allows the use of the same master ethernet port for other ethernet protocols such as normal internet operations.

socket typeallowed masters on networkallowed EC segments on networkpossible jitterother protocols allowed on same network
EthernetSocket11noneall non-ethercat protocols
UdpSocket2^322^32depend on traficall

Structs§

EthernetSocket
Raw socket allowing direct ethercat com, but only one segment on the ethernet network
UdpSocket
UDP socket with fixed port, allowing ethercat com through a regular switch

Traits§

EthercatSocket
trait implementing the ethercat frame encapsulation into some medium