ubuntu下使用串口查看串口日志

ubuntu下使用串口工具

工具: minicom

步骤:

安装。

 sudo apt-get install minicom

查看所有串口。

     cd /
     ls dev/tty*

连接串口线,查看正在使用的串口。

 dmesg | grep tty // usb 3-4: pl2303 converter now attached to ttyUSB0,其中attached to xx表示目前正在使用的串口为xx。

修改minicom配置。

     sudo minicom -s
     选择Serial port setup
     再按a,修改serial device值为上一步的xx串口
     按回车回到菜单页,在选择save as dfl保存设置

打开串口查看日志。
sudo minicom 打开串口连接,ctrl+a再按x退出
发布了4 篇原创文章 · 获赞 10 · 访问量 7087

猜你喜欢

转载自blog.csdn.net/m0_37931718/article/details/97371855
今日推荐