PSDK3.9.2 M300运行dji_sdk_demo_linux报错

评论

5 条评论

  • DJI Developer Support
    您好,您可以检查下/dev/tty*下的端口和您在hal_uart.h配置的端口号是否相同,可以通过热插拔确认,不一定是USB0,您需要根据实际端口号进行修改。
    0
    评论操作 固定链接
  • 844208394

    机载是jetson xavier NX,USB bulk配置可以使用提供jetson nano使用的配置文件吗

    0
    评论操作 固定链接
  • DJI Developer Support
    您好,M300不需要配置bulk环境的,硬件上连接没问题即可。
    0
    评论操作 固定链接
  • 844208394

    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
    请问是什么问题呢?

    0
    评论操作 固定链接
  • DJI Developer Support
    您好,选DJI_USE_UART_AND_USB_BULK_DEVICE即可,M300做Device设备,开发板不需要配置BULK环境,您线缆连接正确即可使用。 关于报错,这个是找不到与飞机通信的端口,请问您使用的串口是FT232还是其他型号?建议使用FT232,另外注意RX TX不要反接,可以交换这两个引脚再尝试下。
    0
    评论操作 固定链接

请先登录再写评论。