I'm trying to connect to the OAK-D camera using WSL2 for Linux development but there seems to be an issue when initializing.

I followed this tutorial for adding USB devices to WSL using USBIPD-WIN.

Everything works properly when connecting to the camera using Windows (there are a few disconnections and reconnections but once it's fully initialized it's fine) - but when using Ubuntu, as soon as the camera reboots, the camera cannot be found anymore. I believe that when the camera reboots, the Bus ID on the Linux side (lsusb) changes and so the camera cannot be found.

My code:

import depthai as dai

pipeline = dai.Pipeline()

with dai.Device(pipeline) as device:
    print('MxId:', device.getDeviceInfo().getMxId())
    print('USB speed:', device.getUsbSpeed())
    print('Connected cameras:', device.getConnectedCameras())

Error code:

RuntimeError                              Traceback (most recent call last)
File <FILEPATH>/test.py:6
      2 import depthai as dai
      4 pipeline = dai.Pipeline()
----> 6 with dai.Device(pipeline) as device:
      7     print('MxId:', device.getDeviceInfo().getMxId())
      8     print('USB speed:', device.getUsbSpeed())

RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND"

Please advise on how to approach this issue