Can't access H20 gimbal from PSDK on M300
CompletedI'm trying to access the laser ranging data from the H20 on an M300. I'm running the PSDK 3.4 sample, option k 'Run camera manager sample' and then option 14 'Get lidar ranging info'. I've tried all three mount positions, as well as other options to access the camera, such as 7 'Shoot single photo', but they always fail during the 'Step 1 Init camera manager module' step. The error I get is as follows:
[223.127][downloader]-[Error]-[DjiCameraManager_MediaDownloaderInit:270) Get remote addr failed, ret:228.
[223.127][cmu]-[Error]-[DjiCameraManager_Init:220) Init media downloader failed, error code: 0x000000EC.
[223.127][user]-[Error]-[DjiTest_CameraManagerRunSample:875) Init camera manager failed, error code: 0x000000EC
[223.328][linker]-[Warn]-[DjiCommand_SendAsyncHandle:862) Command async send retry: index = 0, retryTimes = 3, cmdSet = 5, cmdId = 11
[223.529][linker]-[Warn]-[DjiCommand_SendAsyncHandle:862) Command async send retry: index = 0, retryTimes = 2, cmdSet = 5, cmdId = 11
[223.730][linker]-[Warn]-[DjiCommand_SendAsyncHandle:862) Command async send retry: index = 0, retryTimes = 1, cmdSet = 5, cmdId = 11
[223.931][linker]-[Error]-[DjiCommand_SendAsyncHandle:874) Command async send error 0
[223.931][linker]-[Error]-[DjiCommand_SendSync:475) sendSync callback timeout
[223.931][collaboration]-[Error]-[DjiPayloadCollaboration_UnsubscribeOtherCameraSystemStateOnM300:701) unsubscribe other camera system state error: 0x000000E1.
[223.931][collaboration]-[Error]-[DjiPayloadCollaboration_DeInit:201) unsubscribe other camera system state error: 0x000000E1.
[224.132][linker]-[Warn]-[DjiCommand_SendAsyncHandle:862) Command async send retry: index = 0, retryTimes = 3, cmdSet = 5, cmdId = 11
[224.333][linker]-[Warn]-[DjiCommand_SendAsyncHandle:862) Command async send retry: index = 0, retryTimes = 2, cmdSet = 5, cmdId = 11
[224.534][linker]-[Warn]-[DjiCommand_SendAsyncHandle:862) Command async send retry: index = 0, retryTimes = 1, cmdSet = 5, cmdId = 11
[224.736][linker]-[Error]-[DjiCommand_SendAsyncHandle:874) Command async send error 0
After I run these commands, it seems like the gimbal resets, as it goes through its positioning test again. I tried using PSDK sample menu option a) 'Gimbal manager sample' on MountPosition No. 1, and that worked, the gimbal moved as expected.
Also, is there any way to turn on the laser rangefinder through the PSDK?
Thanks,
Peter
-
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. -
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) -
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...
Please sign in to leave a comment.
Comments
7 comments