View my account

Handling USB problem when reading frames using Realsense API

Comments

4 comments

  • MartyG

    Hi Jsaunders  In program scripts that use multicam code, multiple cameras can each be assigned to their own individual pipeline.  It can automatically build a list of all attached cameras when the program is launched and auto-retrieve their unique serial numbers.  When a camera is unplugged or disconnected, only the pipeline associated with that particular camera is affected.

     

    The RealSense SDK C++ example program rs-multicam.cpp demonstrates these principles.

    https://github.com/IntelRealSense/librealsense/tree/master/examples/multicam

     

    When rs-multicam is launched with more than one camera, multiple stream panels from all attached cameras are displayed.  When a particular camera is disconnected, the stream panels associated with it freeze whilst the panels of the other cameras continue streaming.

     

    At the link below an Intel RealSense team member provides detailed advice about how multicam in the RealSense Viewer works.

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

    0
    Comment actions Permalink
  • Jsaunders

    Hi MartyG Thank you for your response.  I used the rs-multicam demo several months ago to get my application working initially.  Only as I add more features and start taxing the hardware (Jetson Nano) does it appear that I have a problem with the USB controller.  I know the Nano USB is power limited, and that a separate powered USB hub added to it would take care of my problem.  The part I am not understanding is why the entire Nano seems to hang.

     

    I will read through the rs-multicam code example again to ensure I didn't skip something in my app, but since it works most of the time I think I must be generally doing things correctly.  Also, as a test I just unplugged one camera while my app was runnig.  In that case the app terminates with an exception that I purposely generate, but does not hang.  So my problem seems to be tied to the USB controller somehow getting locked up rather than losing communication to a single camera.

    0
    Comment actions Permalink
  • MartyG

    Intel strongly recommend for Jetson Nano specifically if your model of Nano has a barrel jack power connector then it is enabled using the instructions at the link below.

    https://jetsonhacks.com/2019/04/10/jetson-nano-use-more-power/

    0
    Comment actions Permalink
  • Jsaunders

    Yes, long ago we switched to the barrel jack, but even that is limited so now we bring power in via the i/o header which is the way to get the most current with highest reliability to the Nano.  I am also getting some assistance from nVidia about how to troubleshoot our issue.

    0
    Comment actions Permalink

Please sign in to leave a comment.