• DepthAI
  • No depth ai devices found - wsl2 - ping works

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

      SarveshRathi

      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 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?

        6 days later

        jakaskerl No it does not.

        Based on our discussion,

        Could you please summarize steps in order that I should check?

        How about trying with a super simple script like this one that reads the IMU version? Just replace the line in it that Jaka provided above to set the IP address for the device and see what it comes back with.

          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.

          4 days later

          kneave

          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.

          The latest update:

          kneave

          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.

          Please use code blocks when pasting output from the command line as it makes it much easier to read. You need to do three of these ` on a line before and after each block. Note, it isn't an apostrophe but the key that is typically under the escape key on most keyboards. It's annoying that it looks like an apostrophe and often confuses people when it doesn't work.

          Please provide the full output from ifconfig and ipconfig from the same moment in time as it looks like things are changing and I can't understand what is going on. I suspect in the update you posted you tried to manually set the IP address in WSL or similar? if and ipconfig output in the same format so the ip addr result isn't that useful to me as it makes it harder to compare.

          Also please post the code you used for the IMU script, it needed to be altered before use and if you didn't do that it definitely wont work. Right now I've no idea what IP you're trying to connect to as you left that detail out so can't offer any advice. If you've tried something new please include that as otherwise we can't help you.

          I don't work for Luxonis and I'm doing this in my free time, please make it easy for me as I'm very busy and otherwise just wont be able to help.

            kneave Thanks for the feedback. Hopefully this reply is in a better format. Thanks for your time

            ifconfig output

            ipconfig output

            imu script

            I got what I need from these images but next time please use code blocks. If you use images the content can't be copied and pasted to search for error codes for example and you can't expect people to manually type out things like that. You have to understand that forums like this are typically "best effort" for support which means you need to make it as easy as possible for people to help you, otherwise they just wont.

            That said, it seems what has happened here is that you've manually set the addresses for your network adapters and the addresses just wont work the way you've set them. You are trying to connect to a device on 192.168.56.2 but that's the address you've assigned the adapter on your PC, not the IP address of the camera.

            Go back in to wherever you set all this and chance it back to automatic, I'm guessing a bunch of other things have broken as a result of this, and follow the steps here:
            https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/getting-started-with-poe/#dhcp-and-static-ip

            I think you need to look for a tutorial on networking and how it all works so you have a better understanding of the concepts involved, if you learn more about that side of things it'll make troubleshooting this a lot easier for you.

              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?

              No, only the IP address of the interface you're connecting the POE device to

                kneave

                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