• DepthAI
  • error message: X_LINK_DEVICE_NOT_FOUND

Hello skb_1 ,
are you on the same LAN as the device? Are there any firewalls blocking, or are you using VPN? I would also suggest checking out POE troubleshooting docs.
Thanks, Erik

    erik Hi Erik, thanks for the response.
    Yes, Iā€™m on the same LAN and have been able to ping the device successfully. There are no firewalls or VPN active.

    Hi @skb_1,
    have you tried manually specifying the IP as shown here? I'm assuming you already ran the install_requirements.py, but you could also try to run that file from the develop branch. If nothing works, you can also install python 3.8.

      Hi Mojo , sorry for the late response. I have specified the IP manually in depthai_demo.py, but it's still showing me the same error, but now without the Avaliable devices: portion - .
      Using depthai module from: /home/sravan/.local/lib/python3.6/site-packages/depthai.cpython-36m-x86_64-linux-gnu.so
      Depthai version installed: 2.10.0.0
      Traceback (most recent call last):
      File "depthai_demo.py", line 145, in <module>
      with dai.Device(pm.pipeline.getOpenVINOVersion(), deviceInfo, usb2Mode=conf.args.usbSpeed == "usb2") as device:
      RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

      I have also tried running install_requirements.py from the develop branch and then running the demo script from both the main and the develop branches. Still the same RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND error.

      I've also tried running the demo using python3.8 (I was using python3 earlier). Still the same problem.

      I did want to clarify that this is a POE device and I notice the error mentions usbMode=conf.args.usbSpeed == "usb2". Is this a possible source of the problem?

      There are a couple more details I'd like to add -

      1. The lights on the poe switch (rated for 65W power budget) flash when I attempt to launch the demo script, and they're solid otherwise.
      2. When I try to ping the device at the same time as when a demo script is running, I lose some packets (about 40%), and do not lose any packets when I just do the ping without running the script.
      • erik replied to this.

        Hello skb_1 ,
        just to double check, did you install requirements for DepthAI? Since it's a common error if you don't install these prior to running the library.
        Thanks, Erik

          Hi erik I didn't install those requirements earlier, but just did it now and re-ran python3 install_requirements.py
          However, the same error still shows up.

          • erik replied to this.

            skb_1 Just to double-check; did you try with develop branch of depthai or depthai-python repo? Please try with the latter, as we have added some additional PoE fixes to it.
            So checkout to develop branch on depthai-python repo, run python3 examples/install_requirements.py, run any example code, eg. python3 examples/rgb_preview.py.
            Thanks, Erik

            Hi @erik That worked! Thanks so much! I was able to view both rgb_preview and depth_preview. Time to start experimenting! šŸ˜ƒ

              Hi erik Just to follow up - I am now trying to run the example main.py code in the subfolder gen2-camera-demo code of the depthai-experiments repo. I'm facing the same error as in the opening post above (X_LINK_DEVICE_NOT_FOUND). Any suggestions on what I can try to run this? I've tried both the main and the develop_spi_in branches.

              • Mojo replied to this.

                Hi skb_1,
                I tried running that just now and it works on OAK-1-PoE. However I've been informed there are some issues with depthai 2.7.2.0 version. Please install the depthai 2.10.0.0 with the following command: pip3 install depthai==2.10.0.0 and try to run the example again.