SOEM icon indicating copy to clipboard operation
SOEM copied to clipboard

Which network cards support RAW socket?

Open kkmserver opened this issue 1 year ago • 2 comments

Hello.

Your documentation says:

NIC that can connect to a RAW socket. Can you decipher what this means?

  1. Which network cards are suitable for experimenting on a PC?
  2. And will they work on network cards on Raspberry pi and Orange Pi boards?

Thank you

kkmserver avatar Jan 30 '24 10:01 kkmserver

A RAW socket means that every byte of the packet that is going to be transmitted can be controlled by SOEM (except the 32bit CRC). This is necessary because EtherCAT is a protocol that is not supported by any standard OS network stack. In principle all NIC support RAW packets. The question is do the OS and NIC driver support RAW packets?

For windows this is difficult, NPCAP is needed as a shim between the NDIS driver and SOEM. THis works well, but windows is not a very good real-time OS.

Linux is in general easy, no special drivers or hardware is needed. Real-time performance is mostly good, but depends on the exact hardware.

RPi works too, but older RPi's have the network adapter connected via USB, this is not fast, and has quite some timing jitter.

ArthurKetels avatar Jan 30 '24 15:01 ArthurKetels

Thanks for the quick response.

kkmserver avatar Jan 30 '24 18:01 kkmserver