[1773251.468]STATUS/1 @ functionalSetUp, L282: Shake hand with drone Fail ! Cannot get drone version. ( 6/20 )
[1773251.468]STATUS/1 @ functionalSetUp, L284: Try again after 1 second ......
[1773253.824]ERRORLOG/1 @ getDroneVersion, L1706: Drone version not obtained! Please do not proceed.
Possible reasons:
Serial port connection:
* SDK is not enabled, please check DJI Assistant2 -> SDK -> [v] Enable API Control.
* Baudrate is not correct, please double-check from DJI Assistant2 -> SDK -> baudrate.
* TX and RX pins are invert
上面的是错误。
编译环境是Ubuntu 18.04 64位, usb ttl小板是ch340的。 连接方式如下
usb ttl小板未连接gcc ,rx和tx来回切换也尝试了
usb插入无人机osdk地方的‘上下’调换也尝试了
最下图的的, DJI Assistant2 波特率从 100000 到 115200 都尝试了下。
[color=rgba(0, 0, 0, 0.85)]UserConfig.txt 也对应修改了
每次都chmod 777 /dev/ttyUSBx 了 |