File transfer over a serial link. Mixes 128/1024-byte framed data blocks (selected by leading byte, not a length field) with completely bare single-byte control codes -- no envelope at all around ACK/NAK/EOT/CAN.
Physical UART Transport (115200 bps, 8N1.0)
Send command DataBlock128 (ID: 0x01)
Leading byte 0x01 (SOH) implies a 128-byte data field; nothing else about the length is transmitted.
Available only on servers:
Accepts the following message:
Leading byte 0x01 (SOH) implies a 128-byte data field; nothing else about the length is transmitted.
{
"command_id": 1,
"header": 1,
"blockNumber": 0,
"blockNumberComplement": 0,
"data": "string"
}
Send command DataBlock1024 (ID: 0x02)
Leading byte 0x02 (STX) implies a 1024-byte data field.
Available only on servers:
Accepts the following message:
Leading byte 0x02 (STX) implies a 1024-byte data field.
{
"command_id": 2,
"header": 2,
"blockNumber": 0,
"blockNumberComplement": 0,
"data": "string"
}
Send command EndOfTransmission (ID: 0x04)
A single bare byte, 0x04 -- no length field, no checksum, no envelope of any kind.
Available only on servers:
Accepts the following message:
A single bare byte, 0x04 -- no length field, no checksum, no envelope of any kind.
{
"command_id": 4,
"controlByte": 4
}
Send command Cancel (ID: 0x18)
Dispatch Cancel frame to microcontroller over serial line
Available only on servers:
Accepts the following message:
Command payload for Cancel
{
"command_id": 24,
"controlByte": 24
}
Unsolicited telemetry message Ack (ID: 0x06)
Unsolicited telemetry message from device: Ack
Available only on servers:
Accepts the following message:
Device-initiated telemetry payload for Ack
{
"controlByte": 6
}
Unsolicited telemetry message Nak (ID: 0x15)
Unsolicited telemetry message from device: Nak
Available only on servers:
Accepts the following message:
Device-initiated telemetry payload for Nak
{
"controlByte": 21
}
Leading byte 0x01 (SOH) implies a 128-byte data field; nothing else about the length is transmitted.
Leading byte 0x02 (STX) implies a 1024-byte data field.
A single bare byte, 0x04 -- no length field, no checksum, no envelope of any kind.
Command payload for Cancel
Device-initiated telemetry payload for Ack
Device-initiated telemetry payload for Nak