Jetson nano with d435i (RuntimeError: Frame didn't arrive within 5000)

trying to use jetson nano with d435i realsense camera, basic setup is done and able to successful instal Librealsense setup. Now Realsenser viewer is working okay for both depth as well color stream, but when run code for simple code for depth and color stream get error

ERROR: RuntimeError: Frame didn’t arrive within 5000

when run only depth stream code is working fine

hello robinlv,

may I know which sample code you’ve ran?
also, may I know which Jetpack/L4T release version you’re working with.

R32 (release), REVISION: 7.1, GCID: 29818004, BOARD: t210ref, EABI: aarch64, DATE: Sat Feb 19 17:05:08 UTC 2022

sample code used for testing is opencv_viewer_example.py

hello robinlv,

please debug into below.. please check whether you’re able to enable the stream.

config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)

please also note that,
these two format type is not supported by default, you must have update the driver layer to extend the supports.

hi jerryChang,

i did not get what changes need to make in code and driver, can you explain in more detail

hi,

i have check stream enable part with given code and its show both stream are enabled but still update driver part did not get how to do.

code:-

import pyrealsense2 as rs

pipeline = rs.pipeline()
config = rs.config()

config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)

pipeline.start(config)

try:
# Get current active streams from pipeline profile
profile = pipeline.get_active_profile()

depth_stream_enabled = False
color_stream_enabled = False

# Iterate over streams to check if depth and color streams are active
for stream in profile.get_streams():
    if stream.stream_type() == rs.stream.depth:
        depth_stream_enabled = True
    if stream.stream_type() == rs.stream.color:
        color_stream_enabled = True

if depth_stream_enabled and color_stream_enabled:
    print("Both Depth and Color streams are successfully enabled.")
else:
    print("One or both streams are not enabled.")

finally:
# Stop the pipeline
pipeline.stop()

hello robinlv,

let’s narrow down the issue, please refer to Applications Using V4L2 IOCTL Directly.
it’s application layer issue if you’re able to fetch the stream via v4l2 standard IOCTL.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.