- Posts: 9
- Thank you received: 0
How do I configure the connection of two mesa 7i92 via ethernet?
1 year 9 months ago #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.
Please Log in to join the conversation.
1 year 9 months ago #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.
Please Log in to join the conversation.
1 year 9 months ago #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 to join the conversation.
1 year 9 months ago #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 to join the conversation.
1 year 9 months ago #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 to join the conversation.
1 year 9 months ago #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:
Attachment not found
and here are the hal and ini files for the test setup:
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.721 seconds
