I'm trying to flash my application to work in standalone mode on an OAK-D S2 PoE.
I'm able to flash any application which is based on the API.
However, I am not able to flash an application which is based on the SDK. If I use:
with OakCamera() as oak:
then later in the with
block, I get:
bootloader = dai.DeviceBootloader(bl)
RuntimeError: Device not in UNBOOTED, BOOTLOADER or FLASH_BOOTED state
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): sentry.luxonis.com:443
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
DEBUG:urllib3.connectionpool:https://sentry.luxonis.com:443 "POST /api/3/envelope/ HTTP/1.1" 200 41
So, I tried calling DeviceBootloader
before calling OakCamera
but I get:
with OakCamera() as oakc:
File "(......)/.venv/lib/python3.10/site-packages/depthai_sdk/oak_camera.py", line 95, in __init__
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): sentry.luxonis.com:443
self._init_device(config, device)
File "(......)/.venv/lib/python3.10/site-packages/depthai_sdk/oak_camera.py", line 378, in _init_device
self._oak.device = dai.Device(
RuntimeError: Failed to connect to device, error message: X_LINK_DEVICE_NOT_FOUND
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
DEBUG:urllib3.connectionpool:https://sentry.luxonis.com:443 "POST /api/3/envelope/ HTTP/1.1" 200 41
So, how do I use the SDK and flash my standalone application?