PSDK3.9.2 M300运行dji_sdk_demo_linux报错
E-port USB 2.0没接负载,UART通过USB转TTL和机载AI连接,通过mobaxteram的SSH连接的机载AI。
飞行器与机载AI连接方式选择的是:
#define CONFIG_HARDWARE_CONNECTION DJI_USE_ONLY_UART
Cmake构建之后,运行示例程序报错。
-
M300不支持和机载网口连接
#define DJI_USE_ONLY_UART (0)
#define DJI_USE_UART_AND_USB_BULK_DEVICE (1)
那这两个连接方式选择哪一个?使用DJI_USE_UART_AND_USB_BULK_DEVICE,不是要进行bulk端点配置吗?
通过热插拔确定了端口号是USB0;在通过E-port USB2.0连接到机载USB端口,飞行器上电后,新增端口号ACM0。运行示例程序后出现(连接方式选择的是DJI_USE_ONLY_UART,DEV1为/dev/ttyUSB0,DEV2为/dev/ttyACM0):
[0.011][core]-[Info]-[DjiCore_Init:106) Payload SDK Version : V3.9.2-beta.0ld.2125
[2.329][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 connon failed. Probably because SDK adapter or aircraft not finish init or UARTnect error.
[4.706][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 connon failed. Probably because SDK adapter or aircraft not finish init or UARTnect error.
[7.093][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 connon failed. Probably because SDK adapter or aircraft not finish init or UARTnect error.
[9.495][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 connon failed. Probably because SDK adapter or aircraft not finish init or UARTnect error.
[11.906][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 conion failed. Probably because SDK adapter or aircraft not finish init or UARnnect error.
[14.328][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 conion failed. Probably because SDK adapter or aircraft not finish init or UARnnect error.
[16.753][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 conion failed. Probably because SDK adapter or aircraft not finish init or UARnnect error.
[19.191][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 conion failed. Probably because SDK adapter or aircraft not finish init or UARnnect error.
[21.636][adapter]-[Info]-[DjiAccessAdapter_Init:215) Try identify UART0 conion failed. Probably because SDK adapter or aircraft not finish init or UARnnect error.
[21.636][adapter]-[Error]-[DjiAccessAdapter_Init:220) Try identify UART0 cotion timeout. Probably because SDK adapter or aircraft not finish init or Uconnect error.
[21.636][core]-[Error]-[DjiCore_Init:126) Access adapter init error, stat:2
[21.636][user]-[Error]-[main:131) Core init error
请问是什么问题呢?
Please sign in to leave a comment.
Comments
5 comments