Serial Transport Profile
- Encoding: UTF-8
- One request in flight per connection/session
Frame format (common to both protocol variants described in 4.1):
+----------------------+-------------------+-------------------+
| Length (4 bytes, BE) | Payload (N bytes) | CRC16 (2 bytes,BE)|
+----------------------+-------------------+-------------------+
Rules:
Lengthis payload size in bytes, unsigned big-endian.CRC16is calculated overLength || Payload.- CRC algorithm: CRC16-IBM (
0x8005, initial0x0000). - No extra transport ACK/NACK layer is defined.
- Frames with CRC mismatch must be discarded.
Response payload is always the standard JSON response envelope (see section 6), for both protocol variants.