Hi,
I currently have a convention as follows:
oak_d_poe = "1844301021A55C1200"
while True:
try:
# Connect to a device and start the pipeline
with dai.Device(pipeline, dai.DeviceInfo(oak_d_poe)) as device:
except RuntimeError as e:
print(f"Error: {e}")
print("Camera not detected. Retrying in 5 seconds...")
time.sleep(5)
Even if I set the timeout values to 4000 (corresponding to 4 s), I will get this issue. However, if I set it to 7000, I don't get the issue, but then the timeout period takes too long. @jakaskerl It seems like the device is temporarily unavailable from running the last pipeline, even though I am trying to modify the timeout variables. This happens even if I try to run it using DEPTHAI_WATCHDOG_INITIAL_DELAY=4000 DEPTHAI_BOOTUP_TIMEOUT=4000 python3 my_script.py.
To confirm, there's nothing in the hardware that would prevent, say, a 1000 ms (1 s) reconnect time and setting the timeout values to 1 s? Is there a spec on reconnect time and potentially removing it altogether? Wondering what the limits here are.