Serial Integration Checklist
- Build payload as UTF-8
:<port><route>string, with\n<json>body when required. - Prefix payload length (
4-byte BE). - Compute CRC16 over
Length || Payload. - Append CRC (
2-byte BE). - Send frame.
- Read and validate response frame.
- Parse response JSON as the standard response envelope.