Syntax
Arguments
Options
Usage
Read-Only Mode (Default)
Interactive Mode
Get Serial Port Info
A Net Held By Another Session
A UART device takes one reader at a time, so a second session on the same net is refused:Client reports whether the holder’s end of the connection is still there.
A holder whose client reads gone releases the net on its own within a
moment. One that reads connected belongs to somebody, so check before you
take it:
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

