wire / wire-format / uart-frame
A UART (Universal Asynchronous Receiver/Transmitter) frame: start bit (low), 5-9 data bits (LSB first), optional parity bit, 1-2 stop bits (high). No clock line; baud rate must be agreed upon. Common: 8 data bits, no parity, 1 stop bit (8N1) at 9600/115200 baud.
aka: UART frame (asynchronous serial)
spec: UART (asynchronous serial)
A UART (Universal Asynchronous Receiver/Transmitter) frame: start bit (low), 5-9 data bits (LSB first), optional parity bit, 1-2 stop bits (high). No clock line; baud rate must be agreed upon. Common: 8 data bits, no parity, 1 stop bit (8N1) at 9600/115200 baud.
| field | size | meaning |
|---|---|---|
| Start bit | 1 bit | Always 0 (low). Signals the beginning of a frame. |
| Data bits | 5-9 bits | Data, LSB first. Common: 8 bits. |
| Parity bit | 0 or 1 bit | Optional: even/odd/mark/space parity for error detection. |
| Stop bits | 1-2 bits | Always 1 (high). Signals the end of a frame. |
| Baud rate | config | Bits per second: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600, etc. |
| 8N1 | 10 bits | 8 data + no parity + 1 stop = 10 bits per byte. Most common configuration. |
example:
00 80 80 80 80 80 80 80 80 01
UART 8N1 frame for byte 0x00: start(0) + 8 data bits(0) + stop(1)
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/uart-frame
or /wire-format/uart-frame.json