Under ubuntu use the serial port to view the log

Under ubuntu use the serial port tool

Tools: minicom

step:

安装。

 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退出
Released four original articles · won praise 10 · views 7087

Guess you like

Origin blog.csdn.net/m0_37931718/article/details/97371855