How do I configure the connection of two mesa 7i92 via ethernet?

More
12 Jan 2025 10:01 - 12 Jan 2025 10:08 #318745 by nicton
Я сделал конфигурацию через pcconf, но linux cnc на нем не загружается. Если я загружаю конфигурацию с одной платой, то запускается linux cnc. Должен ли мой компьютер иметь два порта LAN для подключения двух плат?
Attachments:
Last edit: 12 Jan 2025 10:08 by nicton.

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

More
12 Jan 2025 15:45 - 12 Jan 2025 15:46 #318784 by PCW
No, you do not need two LAN ports, one port and a dedicated Ethernet switch will do,
but you do need two different IP addresses on the 7I92s.

I would suggest 10.10.10.10 and 10.10.10.11 and a host address of 10.10.10.100.

In addition for efficiency the reads should be queued, that is, instead of:

addf 7i92.0.read servo-thread
addf 7i92.1.read servo-thread
__________________________________ bunch of other addfs

addf 7i92.0.write servo-thread
addf 7i92.1.write servo-thread

You should have:

addf 7i92.0.read-request servo-thread
addf 7i92.1.read-request servo-thread
addf 7i92.0.read servo-thread
addf 7i92.1.read servo-thread
__________________________________ bunch of other addfs

addf 7i92.0.write servo-thread
addf 7i92.1.write servo-thread


This is more time efficient as is does not wait for the first 7I92s response
before requesting read data from the second.
 
Last edit: 12 Jan 2025 15:46 by PCW.
The following user(s) said Thank You: tommylight

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

More
12 Jan 2025 18:33 - 12 Jan 2025 19:08 #318810 by nicton
The boards have different ip addresses, on a separate switch without wi-fi and without internet. There are only three elements in the network: the host and two boards, all have different static ip addresses. I noticed that the LAN is completely blocked when linux cnc is running with one board, even ping does not work.
An error occurs on this line from hal:
loadrt hm2_eth board_ip="192.168.0.121, 192.168.0.122" config="num_encoders=6 num_pwmgens=1 num_stepgens=5, num_encoders=2 num_pwmgens=2 num_stepgens=10 sserial_port_0=0xxxxxxx"

From log:
hm2_eth: 192.168.0.121: INFO: Hardware address (MAC): 06:2e:1b:12:00:38
hm2_eth: ERROR: can't connect: Network is unreachable

The first board connects, the network is blocked, and the second board cannot connect.
Last edit: 12 Jan 2025 19:08 by nicton.

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

More
12 Jan 2025 19:08 #318813 by PCW
Yes, all access is blocked to the interface that LInuxCNC uses
when LinuxCNC is running.

I would use 10.10.10.10 and 10.10.10.11 addresses for the 7I92 cards
to avoid possible overlap with local NAT address ranges.

Once this is done and you have set a static host IP of say 10.10.10.100
you can test the network setup by pinging 10.10.10.10 and 10.10.10.11

Then LinuxCNC setup must match.

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

More
13 Jan 2025 02:53 #318845 by nicton
The ip change did not affect the error.

Host ip=10.10.10.100
hal:
loadrt hm2_eth board_ip="10.10.10.10, 10.10.10.11" config="num_encoders=6 num_pwmgens=1 num_stepgens=5, num_encoders=2 num_pwmgens=2 num_stepgens=10 sserial_port_0=0xxxxxxx"

log:
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 06:2e:1b:12:00:38
hm2_eth: ERROR: can't connect: Network is unreachable

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

More
15 Jan 2025 05:41 #319001 by nicton
I installed a second LAN in the computer. Linux cnc starts with two boards if they are on different networks and the initialization of the boards in the hal takes place in a certain order (apparently it has something to do with the order of the LAN addresses).

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

More
15 Jan 2025 16:02 - 16 Jan 2025 00:22 #319034 by PCW
That's odd, I have run up to 4 hm2 cards from one switch
I will try and duplicate this.

I cannot duplicate this error, here's a screenshot of LinuxCNC running with two 7I92T's,
one at 10.10.10.10 and the other at 10.10.10.11, both running from a single Ethernet
port going to a switch:


 


and here are the hal and ini files for the test setup:


 

File Attachment:

File Name: 7i92x2.zip
File Size:4 KB
Attachments:
Last edit: 16 Jan 2025 00:22 by PCW.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum