View my account

Realsense D435: "RuntimeError: Frame didn't arrive within 5000"

Comments

3 comments

  • MartyG

    Hi Yuya Okada

    If the RealSense SDK stops receiving new frames from the camera because of a disconnection then streaming will resume automatically if re-connection occurs within 5 seconds.  If a new frame is not received for 5 seconds then the program time-outs and the error RuntimeError: Frame didn't arrive within 5000 is generated..

     

    When cameras are attached to mobile robots or vehicles, motion may cause the camera's USB cable to move in the USB port and cause disconnection.  Use of a USB cable with screw-locks on its connector can help to avoid this.  On the micro-sized USB port on the side of the camera there are a pair of small holes either side of the port for receiving screw-lock threads.

     

    In mobile applications where the vehicle that the camera is attached to is traversing rough terrain, such as agricultural land, using vibration dampening pads on the camera mounting point may help to dampen severe vibration.

    0
    Comment actions Permalink
  • Yuya Okada

    Hi MartyG,

    Thank you for your solution to my problem. 

    I will try to use USB cable with screw-locks. 

     

    I have an additional question. 

    If that error occurs, is it possible to resume the camera stream by executing pyrealsense2 or LINUX commands? 

    I am considering a command-based recovery when this error occurs and have tried various methods, but have not been successful. 

    If you know of a solution, please let me know. 

     

    0
    Comment actions Permalink
  • MartyG

    A couple of possible approaches are to reset the entire USB port with an Ubuntu bash script such as 'usbreset', or to initiate a reset of the camera specifically if the RuntimeError occurs.  Both approaches are discussed for Python at the link below.

    https://github.com/IntelRealSense/librealsense/issues/8393

    0
    Comment actions Permalink

Please sign in to leave a comment.