socket raw Eth.

More
8 months 3 weeks ago #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.

More
8 months 3 weeks ago - 8 months 3 weeks ago #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: 8 months 3 weeks ago by BIBIGUL.

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago #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.
 
The following user(s) said Thank You: NWE

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #342933 by BIBIGUL
Replied by BIBIGUL on topic socket raw Eth.
A question about compilation. Wrote such a makefile - "MODULE_NAME := ABMIO44 MODINC := /usr/share/linuxcnc/Makefile.modinc SRC_DIR := SrcINC_DIR := Inc SRC_FILES := $(wildcard $(SRC_DIR)/*.c)OBJ_FILES := $(notdir $(SRC_FILES:.c=.o)) $(MODULE_NAME)-objs := $(OBJ_FILES)obj-m += $(MODULE_NAME).o export BUILD_VERBOSE := 1 include $(MODINC) EXTRA_CFLAGS += -I$(shell pwd)/$(SRC_DIR)EXTRA_CFLAGS += -I$(shell pwd)/$(INC_DIR) EXTRA_CFLAGS += -O2 EXTRA_CFLAGS += -march=x86-64 EXTRA_CFLAGS += -mtune=generic EXTRA_CFLAGS += -fno-fast-math EXTRA_CFLAGS += -fno-unsafe-math-optimizations  %.o: $(SRC_DIR)/%.c$(CC) $(EXTRA_CFLAGS) -c $< -o $@ all:make -S modules  clean:rm -f *.ko *.so *.o *.tmp *.ver *.order"the flags that I use do not violate the rtapi rules? Will this affect the operation of Linux cnc? Is it redundant and unnecessary?

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #342938 by Aciera
Replied by Aciera on topic socket raw Eth.
@BIBIGUL
No double posting please.

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #342990 by BIBIGUL
Replied by BIBIGUL on topic socket raw Eth.
@Aciera Why did they delete My Post and New Topic? Did I uncover a Masonic secret about compiling components for linux cnc??????

Please Log in or Create an account to join the conversation.

Time to create page: 0.370 seconds
Powered by Kunena Forum