Linux command
tio 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Connect to serial device
tio [/dev/ttyUSB0]
Connect with baud rate
tio -b [115200] [/dev/ttyUSB0]
Connect with settings
tio -b [9600] -d [8] -s [1] -p [none] [/dev/ttyUSB0]
Enable local echo
tio -e [/dev/ttyUSB0]
Log session to file
tio -l [session.log] [/dev/ttyUSB0]
说明
tio is a simple serial device terminal emulator designed as a modern, user-friendly alternative to minicom and screen for serial communication. It connects to serial ports with sensible defaults (115200 baud, 8N1) and supports automatic reconnection when a device is plugged in or becomes available. The tool provides essential serial communication features including configurable baud rates, data bits, stop bits, parity settings, local echo, session logging, and timestamps. The prefix key Ctrl+t provides access to in-session commands, with Ctrl+t q to quit.
参数
- -b _rate_
- Baud rate (default 115200).
- -d _bits_
- Data bits (5, 6, 7, 8).
- -s _bits_
- Stop bits (1, 2).
- -p _parity_
- Parity (none, odd, even).
- -e
- Enable local echo.
- -l _file_
- Log to file.
- -t
- Enable timestamps.
- -m _map_
- Map special characters.
FAQ
What is the tio command used for?
tio is a simple serial device terminal emulator designed as a modern, user-friendly alternative to minicom and screen for serial communication. It connects to serial ports with sensible defaults (115200 baud, 8N1) and supports automatic reconnection when a device is plugged in or becomes available. The tool provides essential serial communication features including configurable baud rates, data bits, stop bits, parity settings, local echo, session logging, and timestamps. The prefix key Ctrl+t provides access to in-session commands, with Ctrl+t q to quit.
How do I run a basic tio example?
Run `tio [/dev/ttyUSB0]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b _rate_ do in tio?
Baud rate (default 115200).