Dear Luxonis Depth-AI support community,
I hope this message finds you well. I am currently facing an issue with my OAK NN D camera, specifically regarding the reconnection process. I have written a C++ program that successfully connects to the camera, disconnects, and then attempts to reconnect. However, I have noticed that it takes approximately three failed re-connection attempts over the course of three seconds before a successful reconnection is established. Unfortunately, after repeating this process several times, the camera ends up in a state where it cannot be reconnected unless power is completely cut off for a short period.
I am reaching out to seek assistance from the knowledgeable developers in this community. I would greatly appreciate it if you could provide guidance on two aspects:
Faster reconnection method: I would like to know if there is a more efficient way to reconnect to the camera, as the current process takes several failed attempts before succeeding. If there are any specific configurations or techniques that can expedite the reconnection process, I would be eager to implement them.
Preventing soft locked connection state: It appears that repeating the connection and disconnection process eventually leads to a state where the camera becomes unresponsive until power is fully disconnected. I am keen to understand if there are any preventive measures that can be taken to avoid this soft locked connection state. Any insights or recommendations on how to maintain a stable connection with the camera would be greatly appreciated.
To help you better understand the situation, I have included the code I wrote below:
Additionally, here are the relevant output logs from running the code:
Connected cameras: [{socket: CAM_A, sensorName: IMX378, width: 4056, height: 3040, orientation: AUTO, supportedTypes: [COLOR], hasAutofocus: 1, name: color}, {socket: CAM_B, sensorName: OV9282, width: 1280, height: 800, orientation: AUTO, supportedTypes: [MONO], hasAutofocus: 0, name: left}, {socket: CAM_C, sensorName: OV9282, width: 1280, height: 800, orientation: AUTO, supportedTypes: [MONO], hasAutofocus: 0, name: right}]
connection successful
exception caught retrying, count: 1
exception caught retrying, count: 2
exception caught retrying, count: 3
Connected cameras: [{socket: CAM_A, sensorName: IMX378, width: 4056, height: 3040, orientation: AUTO, supportedTypes: [COLOR], hasAutofocus: 1, name: color}, {socket: CAM_B, sensorName: OV9282, width: 1280, height: 800, orientation: AUTO, supportedTypes: [MONO], hasAutofocus: 0, name: left}, {socket: CAM_C, sensorName: OV9282, width: 1280, height: 800, orientation: AUTO, supportedTypes: [MONO], hasAutofocus: 0, name: right}]
connection successful
Thank you so much for your time and support. I am grateful for any advice, suggestions, or solutions you can offer to help me resolve this issue. I look forward to hearing from the experienced members of this community.
Best regards, Winnie Crumpton