我试图在M100无人机上运行djiosdk-flightcontrol-sample,但是我得到以下输出/错误:
pi@drone:~/drone/Onboard-SDK-3.3/build/bin $ ./djiosdk-flightcontrol-sample ../../sample/linux/common/UserConfig.txt
Read App ID
User Configuration read successfully.
STATUS/1 @ init, L37: Attempting to open device /dev/ttyUSB0 with baudrate 230400...
STATUS/1 @ init, L47: ...Serial started successfully.
STATUS/1 @ parseDroneVersionInfo, L568: Device Serial No. = 041DE52780
STATUS/1 @ parseDroneVersionInfo, L570: Hardware = M100
STATUS/1 @ parseDroneVersionInfo, L571: Firmware = 3.1.10.0
STATUS/1 @ parseDroneVersionInfo, L574: Version CRC = 0xA6453AAC
STATUS/1 @ functionalSetUp, L126: Subscriber not supported!
STATUS/1 @ functionalSetUp, L164: MFIO not supported!
ERROR/1 @ functionalSetUp, L182: Hardware Sync not supported!
STATUS/1 @ activate, L951: version 0x3010A00
STATUS/1 @ getErrorCodeMessage, L590: activate
STATUS/1 @ getCMDSetActivationMSG, L638: NEW_DEVICE_ERROR
ERROR/1 @ activate, L971: Failed to activate please retry SET 0x0 ID 0x1 code 0x3
STATUS/1 @ getErrorCodeMessage, L590: setupOSDK
STATUS/1 @ getCMDSetActivationMSG, L638: NEW_DEVICE_ERROR
Vehicle not initialized, exiting.
pi@drone:~/drone/Onboard-SDK-3.3/build/bin $
如您所见,计算机可以通过USB与M100通信:
-
M100通过UART_CAN2电缆和TTL-USB转换器连接到CPU .
-
OSDK可以读取/写入M100 :(它获取设备序列号等)
-
应用程序ID和密钥在配置文件中设置 .
-
助手正在另一个CPU(Mac)上运行
-
在DJI OSDK配置页面
,所有传输速率都不同于零且小于100Hz
一切看起来都正确,但它不起作用并给出了一个模糊的信息:
无法激活请重试SET 0x0 ID 0x1代码0x3
有任何想法吗?
1 回答
来自docs:
Q. The sample says Activation failed! and does not proceed.
答:请确保您打开DJI Go并将移动设备连接到互联网,并在config.json文件中找到正确的App ID和Key . 尝试几次,如果它不起作用,提出一个Github问题 .
NEW_DEVICE_ERROR表示激活无法验证您的应用ID和激活服务器的密钥 . 这可能是因为ID和密钥不匹配,但通常是因为DJI Go未打开或没有连接到Internet .
资料来源:https://github.com/dji-sdk/Onboard-SDK/issues/189#issuecomment-336981568