tio connects to serial TTY devices from the terminal with defaults, auto-reconnect, profiles, logging, and Lua scripting for embedded work.
Overview
tio is a serial device utility with a command-line interface and optional configuration files for everyday read and write access to TTY hardware. It targets embedded developers and hackers more than classic modem terminal features, and was introduced as a simpler option than screen when used with terminal multiplexers such as tmux.
Connection defaults follow common 115200 8n1 settings. The tool can wait for devices, reconnect after unplug events, detect ports automatically, and attach by stable device ID or topology ID when paths change. Listing modes show devices with driver metadata, uptime, and sorting options. Session features include normal, hex, and line modes, timestamps, line pulsing on modem control lines, character remapping, RX/TX statistics, and file logging with optional stripping of control sequences.
Configuration profiles live under standard XDG or home config paths and can be selected by name or pattern. Lua scripts run on connect for expect/send style automation, modem line control, and X/Y modem file transfers. I/O can be redirected to UNIX or IPv4/v6 sockets or shell commands for scripting and sharing sessions. RS-485 mode, non-standard baud rates, and mark or space parity are supported.
Packages are available through Linux distribution package managers, snap, Homebrew on macOS and Linux, and MSYS2 on Windows, with source installs via meson when needed.
Key features
- Auto-connect and auto-reconnect
- Serial port discovery and listing
- Configuration profiles
- Hex and line I/O modes
- Lua scripting on connect
- X-modem and Y-modem uploads
- Socket and pipe redirection
- RS-485 and custom baud rates
Use cases
- Embedded serial debugging
- Microcontroller console access
- Firmware upload sessions
- Automated serial test scripts
- Serial logging and capture