I am able to ping the device with 169.254.1.222
ping 169.254.1.222
PING 169.254.1.222 (169.254.1.222): 56 data bytes
64 bytes from 169.254.1.222: icmp_seq=0 ttl=64 time=14.258 ms
64 bytes from 169.254.1.222: icmp_seq=1 ttl=64 time=12.993 ms
64 bytes from 169.254.1.222: icmp_seq=2 ttl=64 time=12.020 ms
:
But when I run the code:
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()
device_info.state = dai.XLinkDeviceState.X_LINK_BOOTLOADER
device_info.desc.protocol = dai.XLinkProtocol.X_LINK_TCP_IP
device_info.desc.name = "169.254.1.222"
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
I get the following error below
Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND