Advanced Search

Search Results (Searched for: raspberry pi 3)

13 Feb 2024 22:54

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

Hey @rodw

I think I stated it somewhere in the thread over ther, but I used this image:
rpi-5-debian-bookworm-6.1.61-rt15-arm64-ext4-2023-11-17-1520.img.xz
from linuxcnc.org/downloads/
13 Feb 2024 18:09

linuxcnc 2.9.2 (live) on the intel n100 cpu

Category: Computers and Hardware

Isn't your pursuit somewhat of a wild goose chase? You're only running a servo thread so I'm assuming you have a hardware motion controller like a mesa card, and if that's the case, is there any benefit to having 20us max jitter vs 60 or even 80? I'm sure someone more knowledgeable will correct me if I'm wrong, but with a mesa board even 100us max jitter should be fine. In the context of linuxcnc (and real-time in general), it's more of a "works/doesn't work" rather than "this works faster".

I'm actually quite please with this computer. There are multiple threads here struggling with just the right raspberry pi config with a custom linuxcnc image, or threads about other SBCs working with linuxcnc at all - orange pi, banana pi, odroid and so on, while this one seems to work just fine out of the box with the regular x86 image. No messing about.

I'll do as tommylight suggested and run it overnight soon so we'll see, but that puts us back to the works/doesn't work thing. if it works fine with high jitter, it really doesn't matter that other cpus can do the same job with lower jitter, no?
13 Feb 2024 09:56
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Hey Richie, how did you go with the RPi 5? I have the same + Mesa 7i96s in Blenheim…
13 Feb 2024 09:39
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Thanks, I will give that a try tomorrow and report back.
13 Feb 2024 09:28
13 Feb 2024 09:24 - 13 Feb 2024 09:25
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

The good news is that the RPi and Mesa 7i96s are communicating and appeared to be doing so reliably using the Dragon GUI until a string of these messages appeared:

hm2/hm2_7i92.0: error queuing read! iter=xxx
hm2/hm2_7i92.0: error finishing write! iter=xxx

If I run the following, there appears to be dropped packets:

sudo chrt 99 ping -i .001 -q 10.10.10.10  /* forum.linuxcnc.org/27-driver-boards/4837...rite?start=20#266420 */

About 25% were dropped when using a 30 cm CAT cable (not sure what type, shown in photo above). Changing to a longer CAT 5e cable resulted in a tiny percentage of dropped packets. Nevertheless, the errors keep appearing when running Dragon GUI -- I'm not suggesting that Dragon GUI is the issue here.
13 Feb 2024 09:11
Replied by RNZ on topic 7i96 issue read/write

7i96 issue read/write

Category: Driver Boards

Did this ever get resolved?  I have a Raspberry Pi 5 and 7i96s and I am seeing the same issues:

hm2/hm2_7i92.0: error queuing read! iter=xxx
hm2/hm2_7i92.0: error finishing write! iter=xxx

forum.linuxcnc.org/9-installing-linuxcnc...i-5?start=110#293125
13 Feb 2024 05:08

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Yup, I find it kinda funny that a site catering to technology uses such a terrible editor :-D

I have used a lot of forums but never seen one this bad :-D

If it wasn't for the great people here it'd just be too painful hahahah.
13 Feb 2024 04:39 - 13 Feb 2024 04:43

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

@0x2102
Hey man, thanks for posting that.  I haven’t had this problem before, but I like learning new info in case I ever do!!!  Nice…


@ zmrdko
Thanks for sharing your info.  I knew the “generic” component was slower as Dominik had stated so years ago, and I always try to avoid hardware that is not already in the driver… 

 
12 Feb 2024 21:04

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.
12 Feb 2024 19:00

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

Regarding Bjarnes comments on your issue about debian could you advise if you are using the image on the Downloads page?
12 Feb 2024 18:22

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

Hi!
thanks for reply.

see output in attachment
12 Feb 2024 16:44

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

Install ethtool and run this in Terminal:

sudo apt install ethtool
ip a
sudo ethtool -c "NIC CARD NAME" and post your output.

In essence you are trying reduce the settings (buffer) as much as you can.

You can change the settings with:

sudo ethtool -C "NIC CARD NAME" "NEW SETTING".

Some drivers allow to reduce to 0, some others require a higher minimum number.
12 Feb 2024 15:22 - 12 Feb 2024 15:31

Raspberry Pi 5 EtherCAT master servo thread period

Category: EtherCAT

Hi,

i would like to share some research findings.

I have acquired RPi 5 since I wanted to check linuxcnc performance on this new single board PC.
The performance leap compared to RPi 4 is staggering. I tried to hook up Delta B3 EtherCAT drives, which was pretty straight-forward.
Browsing youtube for linuxcnc ethercat videos I come across this one:

So I thought that I should try this on raspberry pi 5. 125000ns was too much, but 250000ns was mostly OK.
But with this cycle times, servo drives started to have troubles with getting to OP mode.
Guys at etherlab found out, that ethercat master driver generic (DEVICE_MODULES="generic") is only good for 1000000ns threads/cycle time.
To reach better cycle times, I was told to try "genet" driver wich is working fine on Raspberry Pi 4. (RPi5 and RPi4 has the same ethernet chip BCM54213PE)

But the final verdict is, that RPi5 uses macb driver (Cadence GEM) and not genet.
Thats why we are stuck with generic device module.

Link to etherlab issue thread:
gitlab.com/etherlab.org/ethercat/-/issues/104
 
12 Feb 2024 04:41 - 13 Feb 2024 23:35
Replied by RNZ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I now have a RPi 5 8 GB model and Mesa 7i96S card. I have downloaded and installed onto a 32 GB micro SD card "LinuxCNC 2.9.2 Raspberry Pi 5 OS based on Debian Bookworm Raspberry Pi 5 Uspace compatible with Mesa Ethernet and SPI interface boards."

I have the Pi (10.10.10.1) talking over ethernet to 7i96S (10.10.10.10) following a W5 jumper change on 7i96S and Linux command:

sudo ip address add 10.10.10.1/24 dev eth0  /* this will work but DON'T USE THIS as it will not persist after a reboot */

ping 10.10.10.10

To ensure the settings persist after a reboot, AND noting that Linux networking commands seem to have recently changed, the following works:

nmcli con show  /* this will show the RPi 5 wireless and wired "ethernet" connections, and the NAME e.g. "Wired connection 1" for TYPE "ethernet" */

sudo nmcli con mod "Wired connection 1" ipv4.addresses 10.10.10.1/24  /* dunno where this gets saved in RPi OS */

Test if persistent by rebooting, then typing again:

nmcli con show  /* DEVICE should now = "eth0" */

ping 10.10.10.10  /* ping the Mesa 7i96 card -- I get a ping time of 30-40 us */

This editor is ghastly :-(
Displaying 586 - 600 out of 1053 results.
Time to create page: 0.697 seconds
Powered by Kunena Forum