Linux command
microcom 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
microcom -p [/dev/ttyXYZ] -s [baud_rate]
Example
microcom -t [hostname]:[port]
说明
microcom is a minimalistic terminal program for accessing remote devices via serial ports, CAN bus, or telnet connections from the console. It provides a simple, lightweight alternative to programs like minicom for basic serial communication needs. The program passes data between the terminal and the remote device, useful for accessing embedded systems, routers, network equipment, and other devices with serial console interfaces. Exit microcom by pressing Ctrl+\\ followed by q (or the configured escape sequence).
参数
- -p, --port _device_
- Serial port device to connect to (e.g., /dev/ttyUSB0)
- -s, --speed _baud_
- Baud rate for serial communication (e.g., 9600, 115200)
- -t, --telnet _host:port_
- Connect via telnet to the specified host and port
- -c, --can _interface_
- Connect to a CAN bus interface
- -l, --logfile _file_
- Log session to a file
FAQ
What is the microcom command used for?
microcom is a minimalistic terminal program for accessing remote devices via serial ports, CAN bus, or telnet connections from the console. It provides a simple, lightweight alternative to programs like minicom for basic serial communication needs. The program passes data between the terminal and the remote device, useful for accessing embedded systems, routers, network equipment, and other devices with serial console interfaces. Exit microcom by pressing Ctrl+\\ followed by q (or the configured escape sequence).
How do I run a basic microcom example?
Run `microcom -p [/dev/ttyXYZ] -s [baud_rate]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --port _device_ do in microcom?
Serial port device to connect to (e.g., /dev/ttyUSB0)