better protocol decode info
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 12 Dec 2014 14:16:49 +0000 (15:16 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 12 Dec 2014 14:16:49 +0000 (15:16 +0100)
dumps/Portmon1.log.txt

index 0e7d04d..2c02c27 100644 (file)
@@ -2,7 +2,7 @@ protocol:
 
 send:
 
-LL TT XX XX EE CC
+LL TT AT Z0 AA EE CC
 
 LL - length of message (including checksum)
 TT - type of message
@@ -12,10 +12,25 @@ TT - type of message
        03 - error?
        0A - software version
        80 - change params
-XX - data
+AT - Address Type (from AdmAddressType)
+       0,"Symbolic address"
+       1,"Absolute address"
+       2,"Command"
+Z1 - always 0?
+AA - symbol to query (from SymbolNames table for type 00)
 EE - expected return value (length of reply - 3 bytes)
 CC - checksum
 
+reponse:
+
+LL SS DD DD ... CC
+
+LL - length
+SS - status
+       00 - ok
+       01 - checksum error
+DD - return values
+CC - checksum
 
 # hardware version
 > 07 02 00 00 00 04 C4 
@@ -1224,9 +1239,9 @@ CC - checksum
 < 08 00 00 93 0B 09 FB 0B 
 > 07 00 00 00 26 0A A6 
 < 0D 00 1D 1D 16 16 18 16 14 14 96 64 7C 
+
 > 07 02 00 00 00 04 C4 
 < 08 00 00 93 0B 09 FB 0B 
-
 > 07 00 00 00 39 02 90 
 < 05 00 04 06 26 
 > 07 00 00 00 18 03 D3 
@@ -1255,6 +1270,8 @@ CC - checksum
 < 04 00 0F 1F 
 > 07 00 00 00 05 01 EB 
 < 04 00 0F 1F 
+
+
 > 07 02 00 00 00 04 C4 
 < 08 00 00 93 0B 09 FB 0B 
 > 07 00 00 00 39 02 90 
@@ -1285,6 +1302,7 @@ CC - checksum
 < 04 00 0F 1F 
 > 07 00 00 00 05 01 EB 
 < 04 00 0F 1F 
+
 > 07 02 00 00 00 04 C4 
 < 08 00 00 93 0B 09 FB 0B 
 > 07 00 00 00 39 02 90