I have assigned static IPs to camera to overcome this. The camera works perfect for hours but suddenly they stop working. When I restart the code immediately, It gives me one of LINK errors. And after waiting for sometime they start working again. Now in exception handling I wait for cool off period and try to reconnect the cameras.
OAK-D-PoE Connection Errors, RuntimeError, X_LINK_ERROR, X_LINK_DEVICE_NOT_FOUND
Okay now I understood your Problem correctly.
So did you already try recording the temperature data from the camera?
No I don't have any idea about temperature data. Is there any correlation ?
I'm also not sure, but maybe it's getting too hot.
I would try recording the temperature data as a first attempt.
For recording the data have a look at: https://docs.luxonis.com/projects/api/en/latest/samples/SystemLogger/system_information/
InzamamAnwar does it happen with shorter cables as well? You might want to increase delays.
I haven't tested with shorter cables for longer times. I will increase delay as you suggested
InzamamAnwar Please do try it as well, as it might help.
- Edited
erik What are the maximum lengths of cables have you tested internally?
erik After increasing the delay as you suggested, I am not encountering the LINK errors. Rather, the stream is stopped randomly
Hi InzamamAnwar ,
Have you tried the shorter cables as well? We did try with 15m (longest in our office) and it worked as expected. Also, are you using cat6 cable?
Thanks, Erik
Following are the steps I took to make cameras work with ~30m cables:
- Update the depthai: This was rather a simple step but I was hesitant to upgrade. Though I have regularly updated the firmware. Up-gradation from 2.19 to 2.21.
- I was getting raw frames from the color camera which may trigger CPU to 100% usage over time. This may result in halting of camera. Changed this pipeline to use encoded frame and it worked like a charm.
@erik, Though, I don't know whether my deductions are correct or not, However, I would like to know what do you think?
Thanks!