Michael Terzer
Michael Terzer
This issue may be related to this open issue https://github.com/OpenEtherCATsociety/SOEM/issues/430. I checked the return values by modifying the code snippet from **nicdrv.c**: ``` /* we use RAW packet socket, with...
Thank you! I called the getsocketopt() like this: ``` socklen_t len; r = getsockopt(*psock, SOL_SOCKET,SO_RCVTIMEO, &timeout, &len); printf("getsocketopt() SO_RCVTIMEO %d \n", r); printf("timeval.tvsec %jd \n", (intmax_t)timeout.tv_sec); printf("timeval.tvusec %jd \n", (intmax_t)timeout.tv_usec);...
I was able to get ``` *psock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK, htons(ETH_P_ECAT)); ``` working. I can confirm that the timeout is working with this tweak on my Ubuntu 18.04...
> @grandphil , can this issue be closed? did you test this on a platform yourself too?
I did a new testrun and recorded the requested traces: [wireshark.zip](https://github.com/OpenEtherCATsociety/SOEM/files/5102917/wireshark.zip) you can find the issue on each trace on packet 200-201. On this test the timeout was even ~10ms....
Thanks for the feedback. `"Soem uses two functions that need support from the OS. The socket receive function should be non-blocking, and the timer/clock function that should have enough granularity....
I tried this to let packets pass with a crc error: https://stackoverflow.com/a/24175679 Did not have to change the coalesce parameters, they were set to: ``` $ ethtool -c enp5s0 Coalesce...
Unfortunately also having: ``` $sudo ethtool -k enp5s0 ... rx-fcs: on rx-all: on ... ``` the issue returned, no return for over 4ms. Please see here the wireshark trace: [timeout.zip](https://github.com/OpenEtherCATsociety/SOEM/files/5128384/timeout.zip)
To exclude the hardware i did some tests on a totally different computer, having a intel i219 NIC. Additionally i used a preempt-rt 4.14.146-rt67 to see how it behaves on...
I think this has to do with the parsing of the xml [here](https://github.com/BehaviorTree/Groot/blob/fae38066a61068c966eefd4c825738bb650413cc/bt_editor/mainwindow.cpp#L432) that is not parsing the included file. Also i think that the [saveToXml() ](https://github.com/BehaviorTree/Groot/blob/fae38066a61068c966eefd4c825738bb650413cc/bt_editor/mainwindow.cpp#L435) function can't handle...