【问题标题】:Failed to activate OSDK on DJI M100DJI M100 无法激活 OSDK
【发布时间】:2018-05-08 15:57:00
【问题描述】:

我正在尝试在 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:(它获取设备序列号等)
  • App ID 和 Key 在配置文件中设置。
  • 助手正在另一个 CPU(Mac)上运行
  • DJI OSDK 配置页面所有传输速率不为零且小于 100Hz

一切看起来都正确,但它不起作用并给出了晦涩的信息:

激活失败请重试SET 0x0 ID 0x1 code 0x3

有什么想法吗?

【问题讨论】:

    标签: dji-sdk


    【解决方案1】:

    来自docs

    问。示例显示激活失败!并且不继续。

    A.请确保您已打开 DJI Go 并且您的移动设备已连接到互联网,并且您的 config.json 文件中的 App ID 和 Key 正确。多试几次,如果还是不行,提出 Github 问题。

    NEW_DEVICE_ERROR 表示激活无法通过激活服务器验证您的应用 ID 和密钥。这可能是因为 ID 和 Key 不匹配,但通常是因为 DJI Go 没有打开或没有连接到互联网。

    来源:https://github.com/dji-sdk/Onboard-SDK/issues/189#issuecomment-336981568

    【讨论】:

    • 是的。将我的移动设备上的 DJI Go 连接到互联网解决了这个问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-20
    • 2017-11-13
    • 1970-01-01
    • 2019-06-28
    • 1970-01-01
    相关资源
    最近更新 更多