esp32_uart_discovery
Capture UART bytes passively to identify baud rate, packet boundaries, and protocol candidates; optionally send probes in active mode to test attached hardware.
Instructions
STAGE 3-5 for UART. Passive-first interrogation: captures raw bytes, hex, ASCII where valid, per-packet timestamps and boundaries, repeated patterns, baud clues and protocol candidates (NMEA 0183, UBX, AT, PN532 framing). Optionally scans common baud rates passively to find the working rate. Defaults to PASSIVE mode — nothing is transmitted. ACTIVE mode sends whatever you put in transmit (any bytes), or the UART probes of a named component profile.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rx": "<rx>"
},
"name": "esp32_uart_discovery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rx | Yes | RX GPIO (REQUIRED) | |
| tx | No | TX GPIO (optional, only needed for ACTIVE mode) | |
| baud | No | Baud rate, 300-3000000 (default: 9600) | |
| mode | No | PASSIVE listens only; ACTIVE also runs profile probes (default: PASSIVE) | PASSIVE |
| port | No | Serial port (optional) | |
| parity | No | Parity (default: none) | none |
| dataBits | No | Data bits, 5-8 (default: 8) | |
| stopBits | No | Stop bits, 1 or 2 (default: 1) | |
| transmit | No | Arbitrary bytes to send in ACTIVE mode. Any byte sequence is accepted — no component profile or documented command set is required. | |
| component | No | Component profile id (required for ACTIVE mode) | |
| scanBauds | No | Passively try common baud rates and pick the most structured (default: false) | |
| timeoutMs | No | Request timeout in ms (optional) | |
| controller | No | UART controller 1 or 2 (UART0 carries the agent link) (default: 1) | |
| durationMs | No | Capture duration in ms, up to 30000 (default: 3000) | |
| readLength | No | Bytes to read back after transmitting (default: 64) | |
| flowControl | No | Flow control. Only "none" is available — the agent does not implement RTS/CTS. | none |