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
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
SarveshRathi Failed to find device after booting
This usually signifies a power issue, could you check you are getting enough power? I found I have this issue when using injector instead of POE switch.
You might learn more by inspecting the network traffic to see if it gets routed correctly.
Thanks,
Jaka
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.
Hi @SarveshRathi
Great!
SarveshRathi How do I inspect the network traffic?
I usually use wireshark to check the traffic.
SarveshRathi Since right now I can connect the camera through the injector, but as soon as I move it crashes.
What do you mean by as soon as I move it? Have you tried using a switch instead?
Thanks,
Jaka
How does this look?
This is the current output
RuntimeError: Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
Hi @SarveshRathi
This looks ok as long as the switch is rated correctly (https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/powering_poe_devices/#poe-switch-or-injector). You don't need the switch inbetween since it does nothing essentially. My suggestion was to use a POE switch, which can be used directly - without the POE injector to power the camera.
I still don't understand what you mean by "as soon as I move it crashes". Do you suspect a bad contact issue?
Thanks,
Jaka
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
Hi @SarveshRathi
As long as you can see the lights on the ETH port, the layer 2 network devices should have no problem correctly routing the traffic, so I'll assume the issue is still on the PC.
Does pinging work in this setup? Check the traffic or tracert function to see if correct routes are used.
Thanks,
Jaka
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 When not specifying the device IP when calling dai.Device() the library will send a broadcast which will not be received if there are issues with the subnet. When providing IP, this will be skipped and should work outside subnets iirc.
dai.Device(pipeline, deviceInfo=dai.DeviceInfo("IP of your device"), maxUsbSpeed=dai.UsbSpeed.SUPER)
And you are using the IP to connect to the device? I don't see why this wouldn't work then, unless there are firewall issues.
Thanks,
Jaka
jakaskerl Where do I update the IP in depthai_demo.py script?
Hi @SarveshRathi
I'd suggest against using depthai_demo until you get the connection working, but luxonis/depthaiblob/main/depthai_demo.py#L210 has the deviceInfo part which you can hardcode with the IP.
Thanks,
Jaka
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?
Hi @SarveshRathi
Does it work when you explicitly set the IP?
Thanks,
Jaka
jakaskerl No it does not.
Based on our discussion,
Could you please summarize steps in order that I should check?
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.
Can you do ifconfig
in WSL and ipconfig
in Powershell please?
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 IMU script also shows no device connected