- LinuxCNC
- General LinuxCNC Questions
- How do I configure the connection of two mesa 7i92 via ethernet?
How do I configure the connection of two mesa 7i92 via ethernet?
- nicton
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
12 Jan 2025 10:01 - 12 Jan 2025 10:08 #318745
by nicton
How do I configure the connection of two mesa 7i92 via ethernet? was created by nicton
Я сделал конфигурацию через pcconf, но linux cnc на нем не загружается. Если я загружаю конфигурацию с одной платой, то запускается linux cnc. Должен ли мой компьютер иметь два порта LAN для подключения двух плат?
Last edit: 12 Jan 2025 10:08 by nicton.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18061
- Thank you received: 4872
12 Jan 2025 15:45 - 12 Jan 2025 15:46 #318784
by PCW
Replied by PCW on topic How do I configure the connection of two mesa 7i92 via ethernet?
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.
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.
- nicton
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
12 Jan 2025 18:33 - 12 Jan 2025 19:08 #318810
by nicton
Replied by nicton on topic How do I configure the connection of two mesa 7i92 via ethernet?
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.
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.
- PCW
- Away
- Moderator
Less
More
- Posts: 18061
- Thank you received: 4872
12 Jan 2025 19:08 #318813
by PCW
Replied by PCW on topic How do I configure the connection of two mesa 7i92 via ethernet?
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.
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.
- nicton
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
13 Jan 2025 02:53 #318845
by nicton
Replied by nicton on topic How do I configure the connection of two mesa 7i92 via ethernet?
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
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.
- nicton
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
15 Jan 2025 05:41 #319001
by nicton
Replied by nicton on topic How do I configure the connection of two mesa 7i92 via ethernet?
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.
- PCW
- Away
- Moderator
Less
More
- Posts: 18061
- Thank you received: 4872
15 Jan 2025 16:02 - 16 Jan 2025 00:22 #319034
by PCW
Replied by PCW on topic How do I configure the connection of two mesa 7i92 via ethernet?
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:
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:
Attachments:
Last edit: 16 Jan 2025 00:22 by PCW.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- How do I configure the connection of two mesa 7i92 via ethernet?
Time to create page: 0.082 seconds