Syntax
Arguments
Options
Usage
Read-Only Mode (Default)
Interactive Mode
Get Serial Port Info
Serial Configuration
Baudrate
Common baudrates:- 9600 (default for many devices)
- 19200
- 38400
- 57600
- 115200 (common for embedded development)
- 230400
- 460800
- 921600
Data Format
Flow Control
Flow control types cannot be combined.
Line Endings
Use
--opost to automatically convert line endings on output.
Supported USB Serial Adapters
The following USB-to-serial adapters are automatically detected and supported:
These adapters are automatically recognized by
lager instruments and can be configured as UART nets.
Device Path Support
UART nets can reference devices two ways: USB Serial Number (preferred):Examples
WebSocket Connection
The UART command uses WebSocket for communication:- Provides real-time bidirectional data
- Supports both read-only and interactive modes
- Automatically reconnects on connection loss
Troubleshooting
Device Not Found
Permission Denied
No Output
- Check baudrate matches device
- Verify TX/RX connections
- Try interactive mode to test input
- Check flow control settings
Notes
- Interactive mode requires a TTY terminal
- USB serial numbers are truncated for display
- Default net can be set with
lager defaults add --uart-net - Connection retry logic handles temporary disconnections
See Also
- Python UART API — Access UART nets from Python scripts
- Python Serial API — Native pyserial support for advanced serial use cases

