Linux 中 Busybox microcom 的用法
2021/7/23 7:13:40
本文主要是介绍Linux 中 Busybox microcom 的用法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
在Linux下,集成有minicom软件,可以实现串口调试功能,但是有的不会集成minicom软件。如果你使用的是busybox的文件系统,有一个更加简单的串口工具microcom,用法如下:
/ # busybox microcom -h microcom: invalid option -- 'h' BusyBox v1.29.0 (2020-12-23 13:09:27 CST) multi-call binary. Usage: microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY Copy bytes for stdin to TTY and from TTY to stdout -d Wait up to DELAY ms for TTY output before sending every next byte to it -t Exit if both stdin and TTY are silent for TIMEOUT ms -s Set serial line to SPEED -X Disable special meaning of NUL and Ctrl-X from stdin /*----------------------------------
-t 单位毫秒,无操作自动退出时间。
-s 单位bps,串口波特率。
另外两个没多大用
----------------------------------*/
举例:设置5s内无操作退出,且波特率为115200的ttyUSB1
/ # busybox microcom -t 5000 -s 115200 /dev/ttyUSB1 //输入指令 ati;+cpin?;+csq;+cops?;+cgreg? Quectel EC200S Revision: EC200SCNAAR01A09M16 +CSQ: 23,99 +CGREG: 0,0 +CME ERROR: 10 / # //5S后自动退出
这篇关于Linux 中 Busybox microcom 的用法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-11Linux部署Scrapy学习:入门级指南
- 2024-09-11Linux部署Scrapy:入门级指南
- 2024-08-21【Linux】分区向左扩容的方法
- 2024-08-21【Linux】gnome桌面环境切换KDE Plasma
- 2024-08-19如何安装 VMware Tools (macOS, Linux, Windows)
- 2024-08-15Linux部署Scrapy教程:入门级指南
- 2024-07-29linux命令行下好用的性能监控工具atop
- 2024-07-04Linux系统上离线升级SSH服务的具体操作步骤-icode9专业技术文章分享
- 2024-06-0600-macOS和Linux安装和管理多个Python版本
- 2024-03-30[译]漫画SELinux概念