RealSense Support

D555 Python API + WSL discovery

Comments

4 comments

  • MartyX Grover

    Hi Michaela Freed  As you are aiming to use WSL, is your D555 and python data collection script running on Windows when it is working, please?  And you are aiming to convert to running in a Linux environment in WSL2?

     

    A key difference between using D555 on Windows and Linux is that in Windows the MTU value is set to 9014, whilst in Linux it should be set to 9000.

     

    Also, are you using a USB connection or a PoE ethernet connection?  If you are using your D555 in ethernet mode then another important consideration is that the simulated Linux environment supports a virtual ethernet adaptor, similar to how WSL2 provides simulation of the USB system to enable USB devices to be accessed with it.  For ethernet networking, WSL2 provides a configurable virtual ethernet interface via Hyper-V.

    0
    Comment actions Permalink
  • Michaela Freed

    Hi MartyX Grover thank you for the response.

    is your D555 and python data collection script running on Windows when it is working, please?  And you are aiming to convert to running in a Linux environment in WSL2?

    Yes exactly, my D555 and python data collection script is running and working on Windows. I am aiming to convert to running in a linux (Ubuntu 20.04) environment in WSL2.

    in Windows the MTU value is set to 9014, whilst in Linux it should be set to 9000

    I already have the MTU set to 9000 in Linux. Should I also change the Windows Jumbo packet sizes to 9000 when I want to run WSL?

    are you using a USB connection or a PoE ethernet connection?

    I am using ethernet connection. I already have Hyper-V enabled.

    I believe it is the jumbo packets that are causing problems. I can ping the camera in wsl terminal (ping ip-addr), but when I try to ping (ping -M do -s 8972 ip-addr) with jumbo packets, I get no response. I've also noticed that I can see the camera and get the serial number/profiles available in python in the WSL environment, but the script fails at the step when I try to stream the video/depth data (the jumbo packets). Also, when I monitor the comms, I also don't see any packets above 1000, even when I have MTU on Ubuntu set to 9000. Any additional configuration I have to do to get this camera working with WSL, Ubuntu 20.04 ? 

    0
    Comment actions Permalink
  • MartyX Grover

    Thanks very much for the information.  I recommend leaving the Windows jumbo packet setting on 9014.

     

    WSL2 apparently has a default MTU packet size of 1500 (i.e non-jumbo) and packets larger than 1500 may not get forwarded.  1500 is also the default MTU value of the majority of physical ethernet switch devices, and a particular model of switch must usually support jumbo frames in order for an MTU of 9000 to be used.

     

    In situations where an MTU value greater than 1500 cannot be used, the D555's 'rs-dds-config' DDS configuration tool allows a --transmission-delay parameter to be set that allows a low MTU to be used, at the cost of a slower data transfer rate.

    https://github.com/realsenseai/librealsense/tree/master/tools/dds/dds-config

     

    The supported range of delay values is 0-144, in increments of 3 microseconds.  So if we are aiming to set support for 1500, you could try setting the MTU to 1500 and the delay to the maximum of 144.

    rs-dds-config --mtu 1500 --transmission-delay 144
    0
    Comment actions Permalink
  • MartyX Grover

    Hi Michaela Freed  Do you require further assistance with this case, please?  Thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.