Unable to view camera stream - Jetson Nano, Matrice 350

Completed

Comments

5 comments

  • DJI Developer Support
    The E-PORT USB on the M350 aircraft is used as the host, so it needs to be connected to the USB device/USB OTG port of the onboard computer device. You can choose to use RNDIS or BULK mode through DJI_USE_UART_AND_USB_NETWORK_DEVICE or DJI_USE_UART_AND_USB_BULK_DEVICE. It will be easier to set the USB device as RNDIS. After enable RNDIS, the RNDIS network port will be displayed on the onboard computer, and filled in the PSDK code, for example: #define LINUX_NETWORK___DEV "l4tbr0" In addition, set the VID and PID of the USB device. For example, NVIDIA jeston is usually set as follows: #define USB_NET___ADAPTER_VID (0x0955) #define USB_NET_ADAPTER_PID (0x7020)
    0
    Comment actions Permalink
  • Josh

    I have gotten this working with the RNDIS/l4tbr0, so now I can view video on my Jetson Nano from the Matrice 350 and its payloads.

    However, if I run

    dji_sdk_demo_linux_cxx

    and select

    [e] Start camera all features sample - you can operate the camera on DJI Pilot

    then I get the following error:

    [156.466][cam]-[Error]-[DjiPayloadCamera_Init:257) Can't support this function 
    [156.466][user]-[Error]-[DjiTest_CameraEmuBaseStartService:1240) init payload camera error:0x000000E0 
    [156.466][user]-[Error]-[main:137) camera emu common init error

    Is this example not able to run with the E-port development board and the Matrice 350?

    My end goal is to transmit video to the controller and view it in DJI Pilot 2. Do you have a code sample for doing this?

    0
    Comment actions Permalink
  • DJI Developer Support
    The M350 E-PORT port does not yet support the basic camera function (camera_emu), and subsequent PSDK versions will improve related function support. For details, please pay attention to the update of PSDK functions. https://developer.dji.com/doc/payload-sdk-tutorial/en/model-instruction/choose-develop-platform.html
    0
    Comment actions Permalink
  • Josh

    Ah wow, that is unfortunate because it really handicaps the payload that I am working on. I figured that the supported “camera stream liveview” meant that it could do exactly this, because that is what it sounds like.

    Will camera_emu be supported in the future? And if so, do you have some general timeline?

    0
    Comment actions Permalink
  • DJI Developer Support
    Push the third-party payload H264 stream to the drone (APP) side. Currently, only the gimbal port (skyport v2/X-PORT) is supported on the M350. There will be plans to support E-PORT port, but unfortunately, PSDK 3.5 does not support it yet
    0
    Comment actions Permalink

Please sign in to leave a comment.