运行实例程序时出现chmod: cannot access '/dev/ttyUSB0': No such file or directory 的错误

Completed

Comments

4 comments

  • DJI Developer Support
    ttyUSB0对应的是USB-TTL接入到机载计算机上识别的串口,接入USB-TTL后可通过ls /dev | grep ttyUSB* 来查看。如果串口端口不是ttyUSB0,对应将代码中的串口修改成实际连接的硬件端口。 hal_uart.h ![](https://djisdksupport.zendesk.com/attachments/token/hwB99sRJuXKIy9Ui9pN3eMfNo/?name=image.png)
    1
    Comment actions Permalink
  • tonglingwen

    感谢你的回复,现在我们遇到的问题是我们自己设计的板子无法识别到飞机的串口,/dev/*中也没有,这种情况该如何解决呢?

    0
    Comment actions Permalink
  • Sabrina BOUALIT

    I had the same problem, and I did initialize the UART configuration but I still could not solve it.

    0
    Comment actions Permalink
  • DJI Developer Support
    /dev/*识别的是串口端口,如果是USB-TTL模块,将USB-TTL接到机载计算机上,正常情况下就可以识别到此串口端口。如果是板子自己的串口,通常/dev下默认就有,串口识别与是否连接飞机无关。
    0
    Comment actions Permalink

Please sign in to leave a comment.