我正在尝试在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通信:
一切看起来都是正确的,但它不起作用,并给出了晦涩的信息:
无法激活请重试SET 0x0 ID 0x1代码0x3
有什么想法吗?
答案 0 :(得分:2)
来自docs:
问。样本说激活失败了!并且不会继续。
一个。请确保您打开DJI Go并将移动设备连接到互联网,并在config.json文件中找到正确的App ID和Key。尝试几次,如果不起作用,就提出一个Github问题。
NEW_DEVICE_ERROR表示激活无法验证您的应用ID和激活服务器的密钥。这可能是因为ID和Key不匹配,但通常是因为DJI Go未打开或没有连接到Internet。
来源:https://github.com/dji-sdk/Onboard-SDK/issues/189#issuecomment-336981568