LinuxCNC and Linux and Ubuntu and PC and RPi ping issues with Mesa 7i96s

More
2 years 8 months ago - 2 years 8 months ago #293574 by RNZ
Hi, I’m hoping that someone with a RPi Raspberry Pi 4 or 5 or a LinuxCNC desktop/laptop and Mesa 7i96s (or similar Ethernet card) can give me a little bit of assistance.

Could someone please try pinging the Mesa card for 5 or 10 or 15 minutes using the following commands to see if the ethernet comms stops communicating?

I have tried this myself using quite a few different permutations as hinted at in this post title, and in every case I have found the ethernet communications to fail within a few minutes. I am documenting this now and will post it below in a day or two.

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

These are the commands I use on a fresh OS install and with Mesa card set to 10.10.10.10 using the W5 jumper.

nmcli con show // look for the ethernet name, probably “Wired connection 1”

sudo nmcli con mod “Wired connection 1” ipv4.addresses 10.10.10.11/24  // See the ethernet port to this address with mask 255.255.255.0

ping 10.10.10.10  // ping the Mesa card to see if the ethernet comms is working (assuming card is at address 10.10.10.10)

sudo chrt 99 ping -i 0.001 10.10.10.10  // repeatedly ping the card at 1 ms intervals and wait to see if the comms stops (5 minutes typ. in my experience)

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

If you don’t get a failure of the communications, could you please post the version of Linux that you are using? You can use the following command.

uname -a

Thanks in advance.

For reference: 7i92 intermittant comms --->  forum.linuxcnc.org/27-driver-boards/3656...2-read-error?start=0

 
Last edit: 2 years 8 months ago by RNZ.

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

More
2 years 8 months ago #293577 by rodw
Why don't you set the IP address as described in man hm2_eth?
Does it make any difference?
The following user(s) said Thank You: RNZ

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

More
2 years 8 months ago - 2 years 8 months ago #293582 by RNZ
Hi Rod, are you referring to this?

Configure network with static address

Add these lines to the file /etc/network/interfaces to configure eth1 with a static address:

auto eth1
iface eth1 inet static
address 192.168.1.1
hardware-irq-coalesce-rx-usecs 0

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

"hardware-irq-coalesce-rx-usecs" decreases time waiting to receive a packet on most systems, but on at least some Marvel-chipset NICs it is harmful. If the line does not improve system performance, then remove it. A reboot is required for the value to be set back to its power-on default. This requires the ethtool package to be installed.

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

knowledge.informatica.com/s/article/80204?language=en_US

"Interrupt coalescing is the standard terminology for batching network data at the network interface card (NIC) in order to increase the amount of data delivered to the kernel with one hardware interrupt."

rx-usecs  "Number of microseconds to delay an RX interrupt after packet arrival. If 0, only rx-max-frames is used."
Last edit: 2 years 8 months ago by RNZ.

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

More
2 years 8 months ago #293588 by tommylight
The following user(s) said Thank You: RNZ

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

More
2 years 8 months ago #293590 by rodw

Rod is still sleeping, but yes, he is referring to that.
Its actually early evening here. :)
The coalesce settings are required for intel NICs for RT performance.
I have a feeling that the broadcom NIC's may have some similar settings.
The following user(s) said Thank You: tommylight, RNZ

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

More
2 years 8 months ago #293591 by tommylight
The following user(s) said Thank You: rodw, RNZ

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

Time to create page: 0.165 seconds
Powered by Kunena Forum