Raise host frame payload limit so multi-client UART replies fit.
Use a uint16 LE length and 1024-byte max payload so CLIENT_INFO and BATTERY_STATUS no longer fail encoding past ~10 connected pods. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -166,7 +166,7 @@ Hardware: **UART1**, **921600** baud, **TX = GPIO3**, **RX = GPIO2** (adapter TX
|
||||
| Field | Value |
|
||||
|-------|--------|
|
||||
| Start | `0xAA` |
|
||||
| Length | 1 byte, payload size 1–252 |
|
||||
| Length | 2 bytes little-endian, payload size 1–1024 |
|
||||
| Payload | `length` bytes |
|
||||
| Checksum | XOR of all payload bytes |
|
||||
| Stop | `0xCC` |
|
||||
@@ -178,7 +178,7 @@ Hardware: **UART1**, **921600** baud, **TX = GPIO3**, **RX = GPIO2** (adapter TX
|
||||
| 0 | Command ID (`MessageType` / `msg_id`) |
|
||||
| 1… | Arguments (handler receives bytes after ID only) |
|
||||
|
||||
Example VERSION request: single-byte payload `03` → frame `AA 01 03 03 CC`.
|
||||
Example VERSION request: single-byte payload `03` → frame `AA 01 00 03 03 CC`.
|
||||
|
||||
Logging:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user