- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat drives not responding, mesa error finishing read
Ethercat drives not responding, mesa error finishing read
- nanowhat
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
10 Oct 2025 19:47 #336218
by nanowhat
Replied by nanowhat on topic Ethercat drives not responding, mesa error finishing read
I can try it, but since ethercat at the command line (linuxcnc isn't even running) shows ~50% lost uploads, what's the point?
I don't think this is a linuxcnc problem, but rather some networking or drive problem.
I don't think this is a linuxcnc problem, but rather some networking or drive problem.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20992
- Thank you received: 7158
10 Oct 2025 21:50 #336241
by tommylight
Replied by tommylight on topic Ethercat drives not responding, mesa error finishing read
sudo apt install wireshark
monitor the network card to see what is going on, look for retransmissions
monitor the network card to see what is going on, look for retransmissions
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 1067
- Thank you received: 359
10 Oct 2025 22:58 #336247
by Hakan
Replied by Hakan on topic Ethercat drives not responding, mesa error finishing read
So you built ethercat master from source? Rebuild with the option --disable-eoe or something that makes it exclude eoe.
The three lines you showed from the syslog says it want to establish eoe network interfaces. Disable that.
The three lines you showed from the syslog says it want to establish eoe network interfaces. Disable that.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 1067
- Thank you received: 359
11 Oct 2025 07:34 - 11 Oct 2025 07:35 #336266
by Hakan
Replied by Hakan on topic Ethercat drives not responding, mesa error finishing read
Since you have problems with the Realtek adapters, here is a tip.
Add an Intel PCIe network adapter. Of course you need a free PCIe slot. With an X4 slot you can use a board with multiple interfaces.
And if you only have an M.2 slot you can use that forum.linuxcnc.org/18-computer/55782-adding-a-m-2-ethernet-port
Add an Intel PCIe network adapter. Of course you need a free PCIe slot. With an X4 slot you can use a board with multiple interfaces.
And if you only have an M.2 slot you can use that forum.linuxcnc.org/18-computer/55782-adding-a-m-2-ethernet-port
Last edit: 11 Oct 2025 07:35 by Hakan.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11527
- Thank you received: 3860
12 Oct 2025 11:07 #336318
by rodw
Replied by rodw on topic Ethercat drives not responding, mesa error finishing read
You mentioned you should have an Intel driver. In which case the R8168-dkms won't be installed or do anything. Start at the beginning
what doeslspci | grep -i ethernet
report?
what doeslspci | grep -i ethernet
report?
Please Log in or Create an account to join the conversation.
- shaying526
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
14 Oct 2025 03:38 #336408
by shaying526
Replied by shaying526 on topic Ethercat drives not responding, mesa error finishing read
I have the same situation as you. If I solve it, I will reply below
Please Log in or Create an account to join the conversation.
- nanowhat
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
26 Nov 2025 22:40 - 26 Nov 2025 22:43 #339271
by nanowhat
Replied by nanowhat on topic Ethercat drives not responding, mesa error finishing read
Having mostly put the machine together and found ModbusTCP unsuitable, I took another attempt at Ethercat.
I see some "PLL error" failures sometimes, which can only be "solved" by restarting the control process. I've tried adjusting refClockSyncCycles and sync0Shift in accordance with some other threads, but I don't understand what those do or what they should actually be.
- I installed LinuxCNC 2.9.4 from the ISO on the nearest available beige box (which has a Realtek ethernet card)
- I installed the r8168-dkms driver
- I built ethercat from source to exclude EoE as follows:
- git clone gitlab.com/etherlab.org/ethercat.git ethercat-master
- cd ethercat-master/
- git checkout stable-1.6
- ./bootstrap (I didn't have autoconf or libtool installed: they are necessary)
- ./configure --sysconfdir=/etc/ --disable-8139too --enable-userlib --enable-generic --disable-eoe
- make all modules
- sudo su
- make modules_install install
- depmod
- exit
- sudo nano /etc/ethercat.conf
- sudo systemctl enable ethercat.service
- sudo systemctl start ethercat.service
- sudo systemctl status ethercat.service
- sudo chmod 666 /dev/EtherCAT0
- sudo nano /etc/udev/rules.d/99-ethercat.rules
- sudo udevadm control --reload-rules
- I installed linuxcnc-ethercat from the repository
- I installed the CIA402 module:
- git clone github.com/dbraun1981/hal-cia402
- sudo halcompile --install cia402.comp
I see some "PLL error" failures sometimes, which can only be "solved" by restarting the control process. I've tried adjusting refClockSyncCycles and sync0Shift in accordance with some other threads, but I don't understand what those do or what they should actually be.
Last edit: 26 Nov 2025 22:43 by nanowhat.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 1067
- Thank you received: 359
26 Nov 2025 22:51 #339274
by Hakan
Replied by Hakan on topic Ethercat drives not responding, mesa error finishing read
PLL was documented not long ago. Wasn't aware it can stop linuxcnc, that's a bit excessive.
github.com/linuxcnc-ethercat/linuxcnc-et...istributed-clocks.md
github.com/linuxcnc-ethercat/linuxcnc-et...istributed-clocks.md
Please Log in or Create an account to join the conversation.
- nanowhat
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
27 Nov 2025 02:27 #339281
by nanowhat
Replied by nanowhat on topic Ethercat drives not responding, mesa error finishing read
The PLL fault doesn't freeze or kill the process: one drive will stop responding to cyclic position commands. The only reset function I've built into my code so far toggles cia402.x.enable and cia402.x.fault-reset, and that doesn't seem to be enough to reestablish communication with the drive.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 1067
- Thank you received: 359
27 Nov 2025 06:41 - 27 Nov 2025 08:47 #339307
by Hakan
Replied by Hakan on topic Ethercat drives not responding, mesa error finishing read
Do you see pll-reset-count increasing?
What's the exact error message you get? I can search the code to see what's going on.
You can always try "ethercat rescan", sometimes it clears errors.
e-stop on when you do this.
Edit: I guess it is PLL error 0x32 error message you get.
Check for other messages in syslog, like missed datagrams.
Improved network latency is the answwer in that case.
Also the pll-reset-count as mentioned above.
What's the exact error message you get? I can search the code to see what's going on.
You can always try "ethercat rescan", sometimes it clears errors.
e-stop on when you do this.
Edit: I guess it is PLL error 0x32 error message you get.
Check for other messages in syslog, like missed datagrams.
Improved network latency is the answwer in that case.
Also the pll-reset-count as mentioned above.
Last edit: 27 Nov 2025 08:47 by Hakan.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat drives not responding, mesa error finishing read
Time to create page: 0.087 seconds