uart
¶
glasgow run uart¶
Transmit and receive data via UART.
Any baud rate is supported. Only 8 data bits and 1 stop bits are supported, with configurable parity.
The automatic baud rate determination algorithm works by locking onto the shortest bit time in the receive stream. It will determine the baud rate incorrectly in presence of glitches as well as insufficiently diverse data (e.g. when receiving data consisting only of the letter “a”, the baud rate that is determined will be one half of the actual baud rate). To reduce spurious baud rate changes, the algorithm is only consulted when frame or (if enabled) parity errors are present in received data.
usage: glasgow run uart [-h] [-V SPEC] [--rx PIN] [--tx PIN] [--parity PARITY]
[-b RATE] [-a]
OPERATION ...
- -h, --help¶
show this help message and exit
- -V <spec>, --voltage <spec>¶
configure I/O port voltage to SPEC (e.g.: ‘3.3’, ‘A=5.0,B=3.3’, ‘A=SA’)
- --rx <pin>¶
bind the applet I/O line ‘rx’ to PIN (default: A0)
- --tx <pin>¶
bind the applet I/O line ‘tx’ to PIN (default: A1)
- --parity {none,zero,one,odd,even}¶
send and receive parity bit as PARITY (default: none)
- -b <rate>, --baud <rate>¶
set baud rate to RATE bits per second (default: 115200)
- -a, --auto-baud¶
automatically estimate baud rate in response to RX errors
glasgow run uart pty¶
usage: glasgow run uart pty [-h]
- -h, --help¶
show this help message and exit
glasgow run uart socket¶
usage: glasgow run uart socket [-h] ENDPOINT
- endpoint¶
listen at ENDPOINT, either unix:PATH or tcp:HOST:PORT
- -h, --help¶
show this help message and exit
glasgow run uart tty¶
usage: glasgow run uart tty [-h] [-s]
- -h, --help¶
show this help message and exit
- -s, --stream¶
continue reading from I/O port even after an end-of-file condition on stdin