Hello,
I recently encountered a curious bug with one OAK-D-S2 and two OAK-D-SR cameras connected USB-C to USB-A (on the Pi). When I had any two cameras plugged in, a simple script to grab an image from the RGB feed was working. However, as soon as I plugged in all 3 cameras (and only ran the image script for one of them), I got the following error:
/home/hyloc/brain_disk_image/data/IDENT3/oak/cam_grab_cmd.py:21: DeprecationWarning: Input size no longer needed, automatically determined from first frame
videoEnc.setDefaultProfilePreset(camRgb.getVideoSize(), camRgb.getFps(), dai.VideoEncoderProperties.Profile.MJPEG)
/home/hyloc/brain_disk_image/data/IDENT3/oak/cam_grab_cmd.py:30: DeprecationWarning: Use constructor taking 'UsbSpeed' instead
with dai.Device(pipeline, dai.DeviceInfo(mxid)) as device:
Traceback (most recent call last):
File "/home/hyloc/brain_disk_image/data/IDENT3/oak/cam_grab_cmd.py", line 102, in <module>
cam_grab_s2(mxid=args.mxid, duration=args.duration, output_dir=args.output_dir)
File "/home/hyloc/brain_disk_image/data/IDENT3/oak/cam_grab_cmd.py", line 30, in cam_grab_s2
with dai.Device(pipeline, dai.DeviceInfo(mxid)) as device:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
[2024-10-22 20:32:19.070] [depthai] [warning] VideoEncoder setDefaultProfilePreset: passing 'width'/ 'height' is deprecated. The size is auto-determined from first frame
I can confirm that the RPi is able to see the MXIDs of all 3 cameras as well as see them connected over USB. Is there a power reason or commonly known issue as to why this happens?
Thanks!