DJI M100 激活 OSDK 失败
Failed to activate OSDK on DJI M100
我正在尝试 运行 M100 无人机上的 djiosdk-flightcontrol-sample 但我得到以下 output/error:
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 可以read/write from/to M100:(获取设备序列号等)
- App ID和Key在配置文件中设置。
- 智能助理 运行正在另一个 CPU(一个 Mac)
- DJI OSDK配置页面所有传输速率均不为零且小于100Hz
一切看起来都正确,但它不起作用并给出模糊的消息:
Failed to activate please retry SET 0x0 ID 0x1 code 0x3
有什么想法吗?
来自docs:
问。示例显示激活失败!并且没有继续。
一个。请确保您已打开 DJI Go,并且您的移动设备已连接到互联网,并且您的 config.json 文件中的 App ID 和密钥正确。多试几次,如果不行,提出Github问题。
NEW_DEVICE_ERROR表示激活无法通过激活服务器验证您的应用程序 ID 和密钥。这可能是因为ID和Key不匹配,但通常是因为DJI Go没有打开或没有连接到互联网。
来源:https://github.com/dji-sdk/Onboard-SDK/issues/189#issuecomment-336981568
我正在尝试 运行 M100 无人机上的 djiosdk-flightcontrol-sample 但我得到以下 output/error:
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 可以read/write from/to M100:(获取设备序列号等)
- App ID和Key在配置文件中设置。
- 智能助理 运行正在另一个 CPU(一个 Mac)
- DJI OSDK配置页面所有传输速率均不为零且小于100Hz
一切看起来都正确,但它不起作用并给出模糊的消息:
Failed to activate please retry SET 0x0 ID 0x1 code 0x3
有什么想法吗?
来自docs:
问。示例显示激活失败!并且没有继续。
一个。请确保您已打开 DJI Go,并且您的移动设备已连接到互联网,并且您的 config.json 文件中的 App ID 和密钥正确。多试几次,如果不行,提出Github问题。
NEW_DEVICE_ERROR表示激活无法通过激活服务器验证您的应用程序 ID 和密钥。这可能是因为ID和Key不匹配,但通常是因为DJI Go没有打开或没有连接到互联网。
来源:https://github.com/dji-sdk/Onboard-SDK/issues/189#issuecomment-336981568