Advanced Search

Search Results (Searched for: raspberry pi 3)

14 Feb 2024 21:31
Replied by PCW on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Any packet loss means serious driver/hardware issues.
I would not expect to see any loss even after weeks of uptime.
14 Feb 2024 21:17
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

It would be prudent to disable EEE in the kernel with  the boot parameter I mentioned.
From what I read, some cards it is always on and they do not respect the ethtool settings anyway.
Networking Including the ethercat generic driver is not real time 
Ethercat has a very limited range of network drivers that are real time, but I don't think they are distributed in their debs. YOU need to build fro  source (please check me here as I might be wrong)
14 Feb 2024 21:15 - 14 Feb 2024 21:21
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I have tried several CAT cables (5, 5e, 6) between Pi 5 and 7i96s and it seems that ethernet comms just stops after some short period of time.

(I am using CAT 6 below.)

Whenever it stops, the green ethernet connector LEDs both remain steady ON (they flash during data transfer).

Once they are steady ON, PINGing the 7i96s results in no reply.

cnc@linuxcnc:/usr/sbin$ sudo chrt 99 ping -i .001 -q 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.

--- 10.10.10.10 ping statistics ---
94246 packets transmitted, 93613 received, 0.671647% packet loss, time 100046ms
rtt min/avg/max/mdev = 0.101/0.113/0.286/0.007 ms
^Ccnc@linuxcnc:/usr/sbinping-q 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.

Initially there was only 1 packet loss (approx. 1 in 30,000), then the ethernet comms stopped and the packet loss is obviously 100% after that.

WHILE I AM TYPING THIS the comms surprisingly just restarted, indicated by the ping commands receiving a reply.

And after about 100 pings, comms stopped again (both green LEDs steady ON.

And a few minutes later the pings have started again :-)
14 Feb 2024 20:59
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Ok, bit of a learning curve here... so EtherCat is a protocol over an ethernet physical layer designed for cycle times; ≤ 100 μs with low communication jitter for precise synchronization purposes; ≤ 1 μs.

en.wikipedia.org/wiki/EtherCAT

I'm presuming that Mesa cards use this?

So you are saying that due to this protocol, it is unlikely that EEE would be negotiated, as that would assume the Mesa card supported EEE. The implication therefore would be that the RPi 5 would NOT be using EEE since it would not be negotiated during initial configuration?

ethtool is not installed on the Pi image (0.29.2 IIRC) but I installed it using sudo apt-get install ethtool. However, it won't run...

First, the OS cannot find it (whereis says /usr/sbin) and second, executing ./ethtool --show-eee eth0 results in "netlink error: Operation not supported".

Someone said that ethtool has been deprecated and to use nmcli however I'm not sure if it is possible to access EEE data using nmcli.
14 Feb 2024 20:40
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

FWIW, here is another page discussing EEE (energy efficient ethernet).

askubuntu.com/questions/1411536/how-do-i...-on-my-ethernet-card
14 Feb 2024 18:04

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

EEE is a problem for low-latency, reliable networking, but it seems odd that it'd *ever* be on for Ethercat hardware. It's supposed to be negotiated between devices as part of the autonegotiation process (along with duplex, flow control, and so forth), and I'd be really surprised if many Ethercat devices used hardware that was able to negotiate for EEE.

What does `ethtool --show-eee <device>` show, where <device> is your Ethercat Ethernet interface?

I don't have a RPi 5 handy, but running against a PC with a Realtec RTL8125 connected to an EK1100, I see:
$ ethtool --show-eee enp1s0
EEE settings for enp1s0:
        EEE status: enabled - inactive
        Tx LPI: disabled
        Supported EEE link modes:  100baseT/Full
                                   1000baseT/Full
        Advertised EEE link modes:  100baseT/Full
                                    1000baseT/Full
        Link partner advertised EEE link modes:  Not reported

Interestingly, I see more or less the same thing on the port connected to a Unifi switch.  No EEE there, either.  FWIW, RPi 4s look pretty much identical here.  And the one device that I have handy that is connected to a switch that *can* support EEE apparently has EEE support entirely disabled in the driver.

If you *do* see EEE problems with Ethercat hardware, consider throwing a Beckhoff EK1100 or similar in front of your device, maybe?  EEE is negotiated on a per-link basis, and even if you have a device that (somehow) wants to negotiate EEE, then throwing a non-EEE device in the middle should disable it entirely unless it's *really* broken.
14 Feb 2024 09:19
14 Feb 2024 00:31
14 Feb 2024 00:30 - 14 Feb 2024 00:31

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

Now try to reducing those two settings:

sudo ethtool -C eth0 rx-usecs 0
sudo ethtool -C eth0 tx-usecs 0

If that errors out, try 1 or the lowest number the driver accepts.
 

Thanks for suggestion.
I set bot values to 0.
Do you have any suggestion, how to verify, if its working?
I tried 250 000 ns thread and it did not make any difference (random first drive failing to get to OP)
14 Feb 2024 00:19
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Hmm, wasn't a bad guess. :) Doing it at the kernel level as I suggested should be more stable. Please try and report back
14 Feb 2024 00:02
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Being new hardware, its possible you are a victim of enegy efficient ethernet.

ref: www.juniper.net/documentation/us/en/soft...e%20link%20is%20idle.

Could you try disbale it by adding
igb.EEE=0

to your boot parameters (where you put isolcpus) I think its boot.txt on the pi
I have no idea if this will work!
 
13 Feb 2024 23:33 - 15 Feb 2024 01:03
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Running this on RPi 5 8 GB with Mesa 7i96s:

latency-histogram --nobase --sbinsize 1000

With essentially no load on the Pi, have after about 400 seconds:

min (us) = -18.8
max (us) = 19.2
sdev (us) = 0.9

With 1x Glxgears, after about 80 seconds:

min (us) = -16.6
max (us) = 14.5
sdev (us) = 0.9

With 2x Glxgears, after about 80 seconds:

min (us) = -20.4
max (us) = 15.2
sdev (us) = 1.6

With 3x Glxgears, after about 80 seconds:

min (us) = -18.6
max (us) = 16.5
sdev (us) = 2.2

With 4x Glxgears, after about 80 seconds:

min (us) = -17.2
max (us) = 18.3
sdev (us) = 2.6

With 5x Glxgears, after about 80 seconds:

min (us) = -21.6
max (us) = 20.6
sdev (us) = 3.0

With 6x Glxgears, after about 80 seconds:

min (us) = -16.5
max (us) = 18.1
sdev (us) = 3.1

With 10x Glxgears, after about 80 seconds:

min (us) = -23.8
max (us) = 16.6
sdev (us) = 3.5

Seems that the 7i96s ethernet connection to the Pi has died again during these tests.

======================

Repeating the 10 gears version on HP i5 8100 Elite SFF x86_64 6.1.0-13-rt-amd64 2.9.1 3.6 GHz

With 10x Glxgears, after about 200 seconds:

(1000 us servo thread)
min (us) = -80.8
max (us) = 79.3
sdev (us) = 1.5

(25 us base thread)
min (us) = -24.9
max (us) = 42.4
sdev (us) = 0.8
 
13 Feb 2024 23:04

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

@CORBETT

good point - I myself try to search here, which hardware work.
I bought some used hp prodesk, just to find out that it has realtek NIC, which has problems with latency.
Now I bought two dell optiplexes and they have intel NIC and much more settings available in BIOS regarding latency tuning.
But with new raspberry pi 5, someone has to find out first :)

Anyway, last comment from Bjarne says, that it is possible to port macb driver and suggested to compare some existing drivers (orig vs ethercat) to see what it takes.
However this is beyond my knowledge, so we have to find someone who is capable and willing to do it.

Or I can ask for quote at IGH.
Displaying 571 - 585 out of 1053 results.
Time to create page: 0.809 seconds
Powered by Kunena Forum