kneave Thanks for your time. Ill try a couple of things. Hopefully its not a hardware issue is what im hoping.
SarveshRathi

- May 6, 2024
- Joined Mar 27, 2024
- 0 best answers
kneave I have the ros environment installed and running in wsl.
Can you recommend another script and a suggestion for changing the line where I should make the static ip change ? Maybe something that does not use imu. Lets say for example rgb_video.py?
@Jackmarks In the case imu is not working, will it be possible to send a replacement for the device?
kneave I already have a .wslconfig file with networkingMode=mirrored.
All 3 ips for ethernet 3, Luxonis and Hyper-V manager as defined in windows are responding to the ping inside wsl. Even static ip ping is working. This does mean that there is no bridge issue right?
running imu_version still outputs:
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
kneave what mode should I change it to?
- Edited
Based on ifconfig (wsl)
eth0 inet ip is 172.26.220.210/20
Based on ipconfig (windows)
192.168.56.1 255.255.255.0
After adding 169.254.1.10/16 in eth0, it says no device found. without it its saying RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
When I use 169.254.1.222 in imu_version.py,
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
kneave Thanks for your feedback! Will take care from next time to help you debug.
I have done a reset to the network settings. Based on this article suggestion, I should change ethernet 3, ethernet adapter wsl and eth0 inet ips right?
kneave Thanks for the feedback. Hopefully this reply is in a better format. Thanks for your time
ifconfig output
ipconfig output
imu script
- Edited
The latest update:
Ifconfig output
ip addr show output - better than ifconfig
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:8e:0c:d0 brd ff:ff:ff:ff:ff:ff inet 192.168.56.3/24 brd 192.168.56.255 scope global eth0 valid_lft forever preferred_lft forever inet 192.168.56.2/24 scope global secondary eth0 valid_lft forever preferred_lft forever inet 192.168.56.1/24 scope global secondary eth0 valid_lft forever preferred_lft forever inet6 fe80::215:5dff:fe8e:cd0/64 scope link valid_lft forever preferred_lft forever
Ipconfig output
ipconfig
Windows IP Configuration
Ethernet adapter Ethernet 3:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : <>
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter OAK D Luxonis:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : <>
IPv4 Address. . . . . . . . . . . : 192.168.56.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : attlocal.net
IPv6 Address. . . . . . . . . . . : <>
IPv6 Address. . . . . . . . . . . : <>
Temporary IPv6 Address. . . . . . : <>
Link-local IPv6 Address . . . . . : <>
IPv4 Address. . . . . . . . . . . : 192.168.1.229
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : <>
192\.168.1.254
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL (Hyper-V firewall)):
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : <>
IPv4 Address. . . . . . . . . . . : 192.168.56.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Note ping works for ip 192.168.56.1 / .2 /.3 all work on wsl and powershell. Also note that I have connected the ethernet cable through the ethernet to usb converter to my laptop. Also, the imu script still shows no device connected.
kneave IMU script also shows no device connected
- Edited
Ifconfig output
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.26.220.210 netmask 255.255.240.0 broadcast 172.26.223.255 inet6 fe80::215:5dff:fe8e:cd0 prefixlen 64 scopeid 0x20<link> ether 00:15:5d:8e:0c:d0 txqueuelen 1000 (Ethernet) RX packets 10937 bytes 15523198 (15.5 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1164 bytes 108959 (108.9 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Ipconfig output
Windows IP Configuration
Ethernet adapter Ethernet 3:
Connection-specific DNS Suffix .
Link-local IPv6 Address . . . . . : <>
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . .
Ethernet adapter Ethernet 5:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : <>
Autoconfiguration IPv4 Address. . : 169.254.216.136
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . .
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : attlocal.net
IPv6 Address. . . . . . . . . . . : <>
IPv6 Address. . . . . . . . . . . : <>
Temporary IPv6 Address. . . . . . : <>
Link-local IPv6 Address . . . . . : <>
IPv4 Address. . . . . . . . . . . : 192.168.1.229
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : <>
192\.168.1.254
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix .
Ethernet adapter vEthernet (WSL (Hyper-V firewall)):
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : <>
IPv4 Address. . . . . . . . . . . : 172.26.208.1
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . .
Note ping works for ip 169.254.216.136 both on wsl and powershell. Also note that I have connected the ethernet cable through the ethernet to usb converter to my laptop.
kneave Thanks Kneave. I will try that and get back to you shortly. On the other hand, does me using a Tplink ethernet to usb converter to connect to camera make any difference? I can get ip and subnet from control panel and it says its in the dhcp network but dont find it when using ip addr show.
jakaskerl No it does not.
Based on our discussion,
Could you please summarize steps in order that I should check?
jakaskerl I think the midspan injector meets the rating requirements. So i feel it shouldnt hamper the connectivity issues. Does it boil down to firewall based on all the debugging done above? if yes, how do you suggest I start debugging?
jakaskerl Where do I update the IP in depthai_demo.py script?
- Edited
jakaskerl I dont see a light at ETH port, but the POE and power indications are on. Ping works.
Traceroute shows 0.2ms 0.003ms 0.003ms
jakaskerl The Se 3005 switch does not support POE. So I have to use the midspan injector which is rated Single port 95 Watt/55V DC/1.73A, 802.3at. This should work right?
Im not sure what is the issue exactly, but right now it finds the device then returns RuntimeError: Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
How does this look?
This is the current output
RuntimeError: Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
- Edited
Thanks jakaskerl
Ok. So the issue is resolved.
I had to add the ip in same subnet.
sudo ip addr add 192.168.50.X/24 dev eth0
where x can be any number
How do I inspect the network traffic? Since right now I can connect the camera through the injector, but as soon as I move it crashes.
I think that worked. Now I am getting a new error message.
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND