depthai-python icon indicating copy to clipboard operation
depthai-python copied to clipboard

Couldn't read data from stream: 'XX' (X_LINK_ERROR)

Open knelk opened this issue 1 year ago • 3 comments

  1. at mostly "random points in time", we are getting the following error: 'Couldn't read data from stream: 'XX' (X_LINK_ERROR). We have of course googled the issues and saw multiple people having similar issues.
  2. We are using the official Luxonis depth-ai ROS2 driver from you to query camera images.

i.e. it seems to have a tendency to occur after having operated the cameras for a while outdoors. So our current theory is that

  • Error might be due to the cold temperature (around 0 degrees Celsius)
  • Error might be caused by power supply issues
  • Error might be caused by the vibration of the drone

please help us

knelk avatar Feb 05 '25 19:02 knelk

Hi @knelk , Which camera do you have and how do you power it? Usually it's due to either power/communication issue, like perhaps the device brownouts. Also, what kind of pipeline (stereo depth, AI, video encoding...) are you running on there?

Erol444 avatar Feb 06 '25 10:02 Erol444

  • we have the luxonis oak d Wide OV9782.
  • we power through an external battery
  • we are running no network on the luxonis chip, simply streaming left grayscale and middle RGB image to the jetson via ros2 driver. all other pipelines are disabled (stereo, depth etc). the specific pipeline is called "StereoRGB"
  1. what communication issues are you refering to? commuication between luxonis and jetson?

thanks

knelk avatar Feb 06 '25 13:02 knelk

@knelk after how long does it happen? could it be that battery can't deliver enough power, eg that voltage dips a bit because jetson does some heavy compute for a few ms? Yes, comms between OAK cam and Jetson. If it's power-related I'd suggest to add some reconnection logic, so if device disconnects it will auto-connect to it again.

Erol444 avatar Feb 06 '25 13:02 Erol444