我正在尝试通过 TCP/IP 通信与机械臂通信。它在 Windows 上运行良好,但是当我在 linux matlab 上尝试时,我无法连接到 arm。Matlab 一次又一次地尝试连接
Connecting to 169.254.131.130:10300
Connecting to 169.254.131.130:10300
Connecting to 169.254.131.130:10300
Connecting to 169.254.131.130:10300
当我 ping 我得到
PING 169.254.131.130 (169.254.131.130) 56(84) bytes of data.
From 192.168.2.4 icmp_seq=1 Destination Host Unreachable
From 192.168.2.4 icmp_seq=2 Destination Host Unreachable
From 192.168.2.4 icmp_seq=3 Destination Host Unreachable
From 192.168.2.4 icmp_seq=4 Destination Host Unreachable
From 192.168.2.4 icmp_seq=5 Destination Host Unreachable
From 192.168.2.4 icmp_seq=6 Destination Host Unreachable
From 192.168.2.4 icmp_seq=7 Destination Host Unreachable
From 192.168.2.4 icmp_seq=8 Destination Host Unreachable
From 192.168.2.4 icmp_seq=9 Destination Host Unreachable
From 192.168.2.4 icmp_seq=10 Destination Host Unreachable
From 192.168.2.4 icmp_seq=11 Destination Host Unreachable
From 192.168.2.4 icmp_seq=12 Destination Host Unreachable
^C
--- 169.254.131.130 ping statistics ---
13 packets transmitted, 0 received, +12 errors, 100% packet loss, time 12055ms
pipe 3
问题可能是linux ip设置。你有什么建议?
因为 169.254.xx 本身不是有效的 IP 范围。意味着 windows 框尝试通过 DHCP 获取 IP 失败,只是从该范围内随机选择了一个。在与 192.168.2.4 相同的子网中分配一个正确的 ip,你应该很好
我发现了问题。您只需要将有线网络编辑为共享到其他计算机的自动连接设备,例如我的设备。