specify re-sync protocol
authorGuenter Bartsch <guenter@zamia.org>
Sun, 1 Sep 2019 21:47:58 +0000 (23:47 +0200)
committerGuenter Bartsch <guenter@zamia.org>
Sun, 1 Sep 2019 21:47:58 +0000 (23:47 +0200)
ae-protocol.md

index 152e06ca3df67aa33af36074e3eae718bbe2cce1..800e06aee5d063ba48744862f9934a2c7eb10256 100644 (file)
@@ -24,9 +24,10 @@ Payload (if any)
 | n              | Payload                      |
 | 4              | CRC32                        |
 
-Each message is acknowledged by the receiving side by a 4-Byte "PkOk" response if the checksum matches.
+Each message is acknowledged by the receiving side by a 4-Byte "PkOk" response if the checksum matches, "PkRs" otherwise.
 
-FIXME: Reply if checksum doesn''t match? Re-sync/recovery?
+Recovery from checksum errors: on "PkRs" non-ack, the sending side re-sends the whole message until "PkOk" is received.
+FIXME: is this correct?
 
 Message types
 =============