socket raw Eth.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
08 Feb 2026 09:21 #342638
by BIBIGUL
socket raw Eth. was created by BIBIGUL
Hello. Who has worked with ETH raw socket on Linux cnc? I'm writing an application running on raw socket, after compiling I run - sudo setcap cap_net_raw+ep NAME.so - Since raw socket requires root, I need to run setcap. Does this break Linux cnc?
Please Log in or Create an account to join the conversation.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
08 Feb 2026 13:06 - 08 Feb 2026 13:10 #342651
by BIBIGUL
Replied by BIBIGUL on topic socket raw Eth.
Hello everyone. Who has ever worked with socket raw on linux cnc? raw socket requires a set cap, does it break Linux Cnc? I wrote a test driver, on raw socket, receiving data via mmap. As a controller, I use STM32F7 (4 PWM encoders). Maybe I'm doing something wrong, I don't understand the specifics of Mesa, but the first tests show some kind of prohibitive bandwidth, the jitter is lower than on mesa.
Last edit: 08 Feb 2026 13:10 by BIBIGUL.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17668
- Thank you received: 5165
09 Feb 2026 02:09 #342686
by PCW
Replied by PCW on topic socket raw Eth.
We did some tests last year comparing IP network access vs raw packets
with Mesa HostMot2 and the statistical improvement of peak latency was
minimal so decided it was not worth the effort.
There no issue with root access and LinuxCNC as direct hardware access
requires this and the blocking of normal network traffic on the real time
Ethernet channel also requires root priviledges.
with Mesa HostMot2 and the statistical improvement of peak latency was
minimal so decided it was not worth the effort.
There no issue with root access and LinuxCNC as direct hardware access
requires this and the blocking of normal network traffic on the real time
Ethernet channel also requires root priviledges.
Please Log in or Create an account to join the conversation.
Time to create page: 0.056 seconds