• Community
  • Luxonis OAK-D X_LINK_DEVICE_NOT_FOUND

I have a Luxonis OAK-D camera connected to a NUC edge device through a USB cable. The camera is working fine when plugged in my laptop but it is giving an error when connected to the edge device. Here is the error in the log:

Traceback (most recent call last):
File "rgb_preview.py", line 24, in <module>
with dai.Device(pipeline) as device:
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

I ran lsusb in Ubuntu that is connected through ssh with the edge device and it listed the MyriadX but the module itself cannot seem to find the device.

Thanks in advance,
Queen

  • erik replied to this.

    Hello queennie01, do you externally power the device (via barrel jack)? I assume NUC could have an issue powering the device via the USB.
    Thanks, Erik

      erik yes, the luxonis is connected to power using the power brick included in the package of the camera

      • erik replied to this.

        Hello queennie01 , sorry about that, I believe you haven't installed dependencies (specifically USB rules). Could you run:

        echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
        sudo udevadm control --reload-rules && sudo udevadm trigger

        Thanks, Erik

        Hi Erik,

        I already ran the USB rules that you sent but it still has the same error. I already tried redeploying the code and power cycling the Luxonis camera again, but same error is still being displayed in the logs.

        Also, if it could help, this is the content of the settings.json in the module that I deployed in the NUC device.

        {
        "version": "1.0",
        "type": "docker",
        "status": "running",
        "restartPolicy": "always",
        "settings": {
        "createOptions": {
        "HostConfig": {
        "Privileged": true
        }
        }
        }
        }

        • erik replied to this.

          Hello queennie01 , what exactly is this json? Are you running your code in inside the docker? If so, did you start from this image?

          Hi Erik,

          Since the edge device that I am currently also requires me to start in a certain docker image, I deployed the code directly to the edge device instead and ran it as a service. This works well in my use case also. Thanks!

          • erik replied to this.