Can't access H20 gimbal from PSDK on M300

Completed

Comments

7 comments

  • Peter Sherk

    Update: I also tried on PSDK 3.5, and got the following error:


    [16.236][user]-[Info]-[DjiTest_CameraManagerRunSample:869) Camera manager sample start, cameraManagerSampleSelect 15
    [16.236][user]-[Info]-[DjiTest_CameraManagerRunSample:872) --> Step 1: Init camera manager module
    [16.262][downloader]-[Error]-[DjiCameraManager_MediaDownloaderInit:276) Aircraft M300 is not support download media files over the network
    [16.262][downloader]-[Error]-[DjiCameraManager_MediaDownloaderInit:288) Get remote addr failed, ret:228.
    [16.262][cmu]-[Error]-[DjiCameraManager_Init:223) Init media downloader failed, error code: 0x000000EC.
    [16.262][user]-[Error]-[DjiTest_CameraManagerRunSample:876) Init camera manager failed, error code: 0x000000EC

    [16.463][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 3, cmdSet = 5, cmdId = 11
    [16.664][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 2, cmdSet = 5, cmdId = 11
    [16.865][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 1, cmdSet = 5, cmdId = 11
    [17.066][linker]-[Error]-[DjiCommand_SendAsyncHandle:887) Command async send error 0
    [17.066][linker]-[Error]-[DjiCommand_SendSync:488) sendSync callback timeout
    [17.066][collaboration]-[Error]-[DjiPayloadCollaboration_UnsubscribeOtherCameraSystemStateOnM300:705) unsubscribe other camera system state error: 0x000000E1.
    [17.066][collaboration]-[Error]-[DjiPayloadCollaboration_DeInit:203) unsubscribe other camera system state error: 0x000000E1.
    [17.267][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 3, cmdSet = 5, cmdId = 11
    [17.468][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 2, cmdSet = 5, cmdId = 11
    [17.669][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 1, cmdSet = 5, cmdId = 11
    [17.870][linker]-[Error]-[DjiCommand_SendAsyncHandle:887) Command async send error 0
    [17.870][linker]-[Error]-[DjiCommand_SendSync:488) sendSync callback timeout
    [17.870][collaboration]-[Error]-[DjiPayloadCollaboration_UnsubscribeOtherCameraLensParamOnM300:796) unsubscribe other camera lens parameters error: 0x000000E1.

    0
    Comment actions Permalink
  • DJI Developer Support
    Please check the settings of USB, For M300 OSDK port, it is need to set this to USB BULK. ![](https://djisdksupport.zendesk.com/attachments/token/FDr6XeEwXFzmpQWImlvDxknMX/?name=image.png)
    0
    Comment actions Permalink
  • Dji

    Hello,
    I'm having the same issue. The problem is I can't access the link you provided, even if I'm logged in to the support center.

    0
    Comment actions Permalink
  • Peter Sherk

    I changed the setting to USB BULK, and now the sample program is talking to the camera.  Unfortunately, I have a new error:

    [11.005][downloader]-[Warn]-[DjiCameraManager_GetLaserRangingInfo:2180) Camera a                   t position 1 don't support getting lidar ranging info.
    [11.005][user]-[Error]-[get_laser_ranging_info:74) Get mounted position 1 laser                    ranging info failed, error code: 0x000000E0.

    The Zenmuse H20 should be supported, right?  I made sure the laser was engaged, so we should be getting range info from it...

    0
    Comment actions Permalink
  • Peter Sherk

    Turns out I had to go to PSDK 3.5, the very latest one.

     

    Dji, go to dji_sdk_config.h, and change:

    #define CONFIG_HARDWARE_CONNECTION         DJI_USE_UART_AND_NETWORK_DEVICE

    to:

    #define CONFIG_HARDWARE_CONNECTION         DJI_USE_UART_AND_USB_BULK_DEVICE

    0
    Comment actions Permalink
  • Peter Sherk

    To further update this, I'm finding reading the laser rangefinder data is relatively quite slow, approx. 120-150 milliseconds.  Is there any way to speed this up?  We're logging our data at 10 Hz everywhere else.

    0
    Comment actions Permalink
  • DJI Developer Support
    The highest frequency of laser rangefinder data is 5HZ.
    0
    Comment actions Permalink

Please sign in to leave a comment.