protocol header, response
authorGuenter Bartsch <guenter@zamia.org>
Tue, 27 Aug 2019 19:23:42 +0000 (21:23 +0200)
committerGuenter Bartsch <guenter@zamia.org>
Tue, 27 Aug 2019 19:23:42 +0000 (21:23 +0200)
ae-protocol.md

index 176ef9d71ffecaa27b90e04f2464262d3b7360af..152e06ca3df67aa33af36074e3eae718bbe2cce1 100644 (file)
@@ -11,7 +11,22 @@ Message header
 
 | Bytes          | Content                      |
 | -------------- | ---------------------------- |
-| TODO           |                              |
+| 2              | Msg (see below)              |
+| 2              | Payload length               |
+| 4              | Sequence                     |
+| 4              | CRC32                        |
+
+Payload (if any)
+----------------
+
+| Bytes          | Content                      |
+| -------------- | ---------------------------- |
+| n              | Payload                      |
+| 4              | CRC32                        |
+
+Each message is acknowledged by the receiving side by a 4-Byte "PkOk" response if the checksum matches.
+
+FIXME: Reply if checksum doesn''t match? Re-sync/recovery?
 
 Message types
 =============
@@ -58,8 +73,8 @@ Message details
 ### TODO ###
 
 
-0x66 MSG_FILE_RECV - Write a file (PC -> Amiga)
------------------------------------------------
+0x66 MSG_FILE_RECV - Write a file (Client -> Amiga)
+---------------------------------------------------
 
 Payload: