M210 RTK V2-OSDK 3.8 / 3.8.1和视频流不起作用(样本不起作用)

时间:2019-06-04 11:18:18

标签: dji-sdk

我已经使用M210 RTK V2(Frimware 1.0.0450)和Zenmuse X4S成功执行了有关遥测,FPV摄像机等的所有OSDK 3.8 / 3.8.1示例。但是,我已经在Ubuntu 16.04中测试了OSDK 3.8和3.8.1,但无法成功使用预制的主摄像机样本(在这种情况下,是用于检索主摄像机图像的camera-stream-callback-sample)。

问题是(OSDK 3.8.1)camera-stream-callback-sample无法正常工作(RC已打开)。它给出了以下错误:

Please enter the type of camera stream you want to view
m: Main Camera
f: FPV  Camera
m
Read App ID
User Configuration read successfully. 


STATUS/1 @ init, L55: Attempting to open device /dev/ttyUSB0 with baudrate 921600...

STATUS/1 @ init, L65: ...Serial started successfully.

STATUS/1 @ parseDroneVersionInfo, L727: Device Serial No. = 1DADG3E00100TW

STATUS/1 @ parseDroneVersionInfo, L729: Hardware = PM420

STATUS/1 @ parseDroneVersionInfo, L730: Firmware = 3.4.3.31

ERRORLOG/1 @ initVirtualRC, L1103: Virtual RC is not supported on this platform!

STATUS/1 @ init, L49: Looking for USB device...

STATUS/1 @ init, L65: Found 13 USB devices, identifying DJI device...

STATUS/1 @ init, L83: Found a DJI device...

STATUS/1 @ init, L96: Attempting to open DJI USB device...

STATUS/1 @ init, L134: ...DJI USB device started successfully.

STATUS/1 @ activate, L1313: version 0x304031F

STATUS/1 @ activate, L1326: 
STATUS/1 @ verify, L244: Verify subscription successful.
STATUS/1 @ initGimbal, L890: Checking if gimbal is connected ...
STATUS/1 @ startPackage, L350: Start package 0 result: 0.
STATUS/1 @ startPackage, L352: Package 0 info: freq=50, nTopics=1.

STATUS/1 @ removePackage, L468: Remove package 0 successful.
STATUS/1 @ init, L55: Attempting to open device  with baudrate 230400...

ERRORLOG/1 @ _serialOpen, L175: cannot open device 

ERRORLOG/1 @ init, L60: ...Failed to start serial

STATUS/1 @ keep_camera_x5s_state, L44: Sending heart beat

ERRORLOG/1 @ sendData, L189: Port closed
STATUS/1 Connect to MAIN_CAMERA successful

STATUS/1 All components for decoding initialized ...

STATUS/1 User callback thread created successfully!

STATUS/1 **** MAIN_CAMERA data reading thread start! ****

STATUS/1 ****** Decoder Callback Thread Start ******

ERRORLOG/1 @ sendData, L189: 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 

对于OSDK 3.8,结果如下

1 2

我不知道该怎么办,因为它是带有受支持的M210RTK V2和Zenmuse X4S的官方OSDK。我已经测试了FPV,并且可以成功运行。

有人可以提供帮助吗?先感谢您。

1 个答案:

答案 0 :(得分:1)

解决方案:在具有M210 RTK V2的Ubuntu 16.04和OSDK 3.8.1中(所有清单均已满足且RC已打开),必须按以下方式调用示例:

./camera-stream-callback-sample UserConfig.txt /dev/ttyACM0

希望有帮助。