Hello all.
I'm new to Computer vision and I am interested in learning depthAI. However , as I am new and not very experienced, I have run into an error, that I have not been able to resolve. Below is the error message I receive when I attempt to run the demo. I would greatly appreciate some direction and guidance on this issue, if any will provide. Thank you.
File "/home/pi/depthai/depthai_demo.py", line 625, in run
self.instance.run_all(self.conf)
File "/home/pi/depthai/depthai_demo.py", line 119, in run_all
self.run()
File "/home/pi/depthai/depthai_demo.py", line 322, in run
self.loop()
File "/home/pi/depthai/depthai_demo.py", line 354, in loop
self._pv.prepareFrames(callback=self.onNewFrame)
File "/home/pi/depthai/depthai_sdk/src/depthai_sdk/managers/preview_manager.py", line 148, in prepareFrames
packet = queue.tryGet()
Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'color' (X_LINK_ERROR)'

  • erik replied to this.

    Hello TAR , this is usually the cause if you are using USB2 cable/malfunctioned USB3 cable. Could you try a different USB3 cable? Could you also share the full log when you run the depthai_demo?
    Thanks, Erik

    thank you for your response. At the moment I don't have another usb to try.
    This is the full log.
    pi@raspberrypi:~ $ cd depthai
    pi@raspberrypi:/depthai $ python3 depthai_demo.py
    Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
    Depthai version installed: 2.13.3.0.dev+c0d306db16bd76a98ca9b96297e21668c3176277
    Setting up demo...
    Available devices:
    [0] 18443010D10AE50F00 [X_LINK_UNBOOTED]
    [1] <error> [X_LINK_UNBOOTED]
    USB Connection speed: UsbSpeed.HIGH
    Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
    [18443010D10AE50F00] [88.701] [SpatialDetectionNetwork(14)] [warning] Network compiled for 6 shaves, maximum available 9, compiling for 4 shaves likely will yield in better performance
    Stopping demo...
    === TOTAL FPS ===
    File "/home/pi/depthai/depthai_demo.py", line 625, in run
    self.instance.run_all(self.conf)
    File "/home/pi/depthai/depthai_demo.py", line 119, in run_all
    self.run()
    File "/home/pi/depthai/depthai_demo.py", line 322, in run
    self.loop()
    File "/home/pi/depthai/depthai_demo.py", line 354, in loop
    self._pv.prepareFrames(callback=self.onNewFrame)
    File "/home/pi/depthai/depthai_sdk/src/depthai_sdk/managers/preview_manager.py", line 148, in prepareFrames
    packet = queue.tryGet()
    Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'color' (X_LINK_ERROR)'
    libEGL warning: DRI2: failed to authenticate
    pi@raspberrypi:/depthai $

    • erik replied to this.

      Hello TAR , as expected, it's USB2 (in the log it says USB HIGH, not USB SUPER, which would be USB3). If you don't have an USB3 cable, you can also force USB2 communication with python3 depthai_demo.py -usbs usb2, which should fix your issue.
      Thanks, Erik

      • TAR replied to this.
      • TAR likes this.