depthai: RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND with OAK-D Pro PoE

Check if issue already exists I found this post, but I couldn’t solve my issue.

Describe the bug I run the simple python scripts in this section but I got following error.

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

To Reproduce [Environment] PoE Hub: NETGEAR GS108PE (15.4W/port) Architecture: x86_64 OS: Ubuntu 20.04.4 LTS IP address and subnet mask: 169.254.1.1, 255.255.0.0 (Success to ping to 169.254.1.222) Python version: 3.8.10 Depthai version (installed by pip): 2.17.1.0

Run following scripts.

import cv2
import depthai as dai

pipeline = dai.Pipeline()

camRgb = pipeline.createColorCamera()

xoutRgb = pipeline.createXLinkOut()
xoutRgb.setStreamName("rgb")
camRgb.preview.link(xoutRgb.input)

device_info = dai.DeviceInfo("169.254.1.222")
device_info.state = dai.XLinkDeviceState.X_LINK_BOOTLOADER
device_info.protocol = dai.XLinkProtocol.X_LINK_TCP_IP

with dai.Device(pipeline, device_info) as device:
    qRgb = device.getOutputQueue(name="rgb", maxSize=4, blocking=False)
    while True:
        cv2.imshow("rgb", qRgb.get().getCvFrame())
        if cv2.waitKey(1) == ord('q'):
            break

Expected behavior A window show images captured by camera should be given.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (7 by maintainers)

Most upvoted comments

This was the problem for me:

It looks like the issue was that we had the machine on WiFI and the camera on a cable. It shares a network, but maybe something caused the TCP connection to fail.

Thanks for your help!

It looks like the issue was that we had the machine on WiFI and the camera on a cable. It shares a network, but maybe something caused the TCP connection to fail.

@YoshiyasuIzumi

Sorry for the issue - do you mind checking out the branch eeprom_version_v7_multi_cam_support_4lane in depthai-python repository, then run the python3 examples/install_requirements.py and afterwards the python3 examples/calibration/calibration_dump.py

Also, do still shot over an email to support, referencing this issue, so we can debug this down further.

Thanks!

I would like to mention, I have tried the ROS example on an x86 computer and it was fine. Could this be related to the fact that the jetson platform is ARM based?

I am running into the same issue with the ROS example (stereo inertial node) on jetson Xavier. I can run the camera just fine using the depthai_demo python script. For the ROS node, the camera is detected, and it prints the “Device Mx ID” but then fails after with the exact same runtime error mentioned above.