• DepthAI
  • OAK D PoE devices listed multiple times, unable to connect to some

I have a network with 3 OAK D PoE devices and a server. When I use depthai_demo.py, it shows output like:

Available devices:
[0] 192.168.1.4 [X_LINK_BOOTLOADER]
[1] 192.168.1.3 [X_LINK_BOOTLOADER]
[2] 192.168.1.2 [X_LINK_BOOTLOADER]
[3] 192.168.1.3 [X_LINK_BOOTLOADER]
[4] 192.168.1.2 [X_LINK_BOOTLOADER]
[5] 192.168.1.4 [X_LINK_BOOTLOADER]

It seems odd that some of the devices are showing up multiple times.

I'm able to connect to two of those devices by IP (*.3 and .4), but connections fail to the third one (.2). It produces errors like this:

File "C:\chhs\depthai\depthai_demo.py", line 560, in run
self.instance.run_all(self.conf)
File "C:\chhs\depthai\depthai_demo.py", line 62, in run_all
self.setup(conf)
File "C:\chhs\depthai\depthai_demo.py", line 135, in setup
self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
Failed to connect to device, error message: X_LINK_COMMUNICATION_NOT_OPEN

Anyone have any ideas how to fix it?

  • erik replied to this.

    Hi tekt ,
    I believe the reason for duplicate devices found was due to multiple interfaces connected (ETH + WIFI), but we have fixed this issue in depthai 2.17.0.0 (latest). Could you try updating your depthai version and trying agian (in depthai repo run git pull and python3 install_requirements.py)?

    Thanks, Erik

    • tekt replied to this.

      erik I'm now only seeing each device once, and they're showing some sort of hex ids instead of ips.
      But it's still unable to connect to one of them.

      [0] 18443010D129BF0800 [X_LINK_BOOTLOADER]
      [1] 18443010C1E60D0900 [X_LINK_BOOTLOADER]
      [2] 184430100155000900 [X_LINK_BOOTLOADER]
      File "C:\chhs\depthai\depthai_demo.py", line 670, in run
      self.instance.run_all(self.conf)
      File "C:\chhs\depthai\depthai_demo.py", line 131, in run_all
      self.setup(conf)
      File "C:\chhs\depthai\depthai_demo.py", line 212, in setup
      self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
      RuntimeError: Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND

        erik I've tried to change the IP settings on the device, but device_manager is unable to connect to it. It seems to be able to query its state and configuration, but when I try to flash the configuration, it fails (see below).

        I don't currently have physical access to the device, but it's starting to seem like that might be necessary to fix this, with a direct usb connection as described here:
        https://docs.luxonis.com/projects/api/en/latest/components/bootloader/#boot-switches

        The error:
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 264; Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 373; Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 243; 'NoneType' object has no attribute 'isEmbeddedVersion'
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 279; Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 373; Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 243; 'NoneType' object has no attribute 'isEmbeddedVersion'
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 373; Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 344; 'NoneType' object has no attribute 'getType'
        Exception in C:\chhs\depthai-python\utilities\device_manager.py, line 243; 'NoneType' object has no attribute 'isEmbeddedVersion'