I am using an Oak-D-PoE, works fine from Jetson TX2. For example, I can use the example python app: ./bootloader_version.py and it returns the IP and version as expected:
Found device with name: xxx.xxx.xxx.xxx
Version: 0.0.15
However, on from WSL2 I have Ubuntu (same version, ufw status inactive) installed, I can ping the camera, but can't find the camera from the same code:
./bootloader_version.py
No devices found
Any thoughts on how to get this to work? I have also tried using the static ip option, this also can't find the device (i have replaced xxx.xxx.xxx.xx with my devices PoE ip address.:
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 = "xxx.xxx.xxx.xxx" #put in my devices poe address
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
It returns:
Traceback (most recent call last):
File "test.py", line 17, in <module>
with dai.Device(pipeline, device_info) as device:
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND