microcom串口调试工具使用

microcom串口助手使用介绍

microcom是一个在终端中使用的串口助手,类似平常使用SSCOM一样的东西,不过是在终端中使用而已。

使用的是busybox构建的文件系统

microcom源码路径:busybox/miscutils/microcom.c

microcom 参数:

bash 复制代码
[rsu7012: ~]$ microcom --help
BusyBox v1.29.3 (2023-10-17 08:27:14 EDT) 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
  • -d :表示延时时间。
  • -t :表示超时时间,超多少时间就自动退出(单位为 ms)。
  • -s :表示传输速度,波特率的意思,这个根据自己的情况而定。
  • -X :从 stdin 禁用 NUL 和 Ctrl-X 的特殊含义。

示例:

c 复制代码
microcom -s 38400 /dev/ttylmc0

microcom命令使用

相关推荐
思麟呀25 分钟前
Linux的基础IO流
linux·运维·服务器·开发语言·c++
winner88811 小时前
嵌入式Linux驱动开发全流程:工具协作+核心概念拆解(从入门到理解)
linux·运维·驱动开发
ShiinaKaze1 小时前
fatal error: bits/c++config.h: No such file or directory
linux·gcc·g++
Archy_Wang_12 小时前
脚本自动生成专业Linux巡检报告
linux·运维·服务器
java_logo2 小时前
SGLANG Docker容器化部署指南
linux·运维·docker·容器·eureka·1024程序员节
敲代码的瓦龙3 小时前
操作系统?进程!!!
linux·c++·操作系统
打不了嗝 ᥬ᭄4 小时前
数据链路层
linux·网络·网络协议·http
piaoxue8204 小时前
MFA MACOS 安装流程
linux·运维·服务器
鱼干~5 小时前
electron基础
linux·javascript·electron
apocelipes5 小时前
POSIX兼容系统上read和write系统调用的行为总结
linux·c语言·c++·python·golang·linux编程