5.20. Linux SockRaw - emllSockRaw

The SockRaw Link Layer is always part of the EC-Simulator for Linux package. It does not need the atemsys driver and uses already established Ethernet adapters, e.g. eth0, eth1, etc. It is strongly recommended to use a separate network adapter to connect EtherCAT devices. If the main network adapter is used for both EtherCAT devices and the local area network there may be a main impact on the local area network operation.


The SockRaw cannot be used for real time applications and may need cycle time of 4 ms or higher.

The parameters to the SockRaw Link Layer are setup-specific. The function CreateLinkParmsFromCmdLineSockRaw() in EcSelectLinkLayer.cpp demonstrates how to initialize the Link Layer instance.

Public Members

Common link parameters. Signature must be set to EC_LINK_PARMS_SIGNATURE_SOCKRAW

Native ETH device name, e.g. “eth0” (zero terminated)

Don’t change target MAC address to FF:FF:FF:FF:FF:FF

Prevent adding Ethernet padding to work-around EtherCAT corruption bugs from native Linux driver(s).


Set Coalescing parameters to enhance the link layer performance