]> www.fi.muni.cz Git - slotcarman.git/blobdiff - protocol.txt
Sound: joined sound files
[slotcarman.git] / protocol.txt
index 416dea31f3de61b5ce5362f1b45a76e07e560bc1..ed2ec77fe714cbd984c4efb7b52e43c18197bc09 100644 (file)
@@ -112,9 +112,14 @@ Example:
 55 D4 01 00 02 08 00 E8 32  (round 2)
 55 D4 01 00 02 0D 00 B6 3C  (round 3)
 55 D4 01 00 04 0C 04 98 69  (round 4)
 55 D4 01 00 02 08 00 E8 32  (round 2)
 55 D4 01 00 02 0D 00 B6 3C  (round 3)
 55 D4 01 00 04 0C 04 98 69  (round 4)
+Box entry example
+32.203 55 d4 02 00 06 0d 00 fe 4f 05 # Car 2 round 7 time ff ..
+32.315 55 d4 02 00 06 01 00 00 a9 05 # Car 2 round 7 time 00
+34.005 55 d4 02 00 06 09 fe fe 13 05 # Here the back button has been presed
 
 
 
 
-0xD5 - race start
+
+0xD5 - race setup
 -----------------
 Format: 0x055 0xD5 DI R2-R0 0xFF 0xFF CRC
 
 -----------------
 Format: 0x055 0xD5 DI R2-R0 0xFF 0xFF CRC
 
@@ -128,6 +133,7 @@ R2-R0 - number of laps. Only lower 4 bits are used, so the count
 
 Example:
 55 D5 00 FF FF FF FF FF 83
 
 Example:
 55 D5 00 FF FF FF FF FF 83
+55 D5 FF 00 00 04 FF FF CF
 
 
 0xD6 - fuel level
 
 
 0xD6 - fuel level
@@ -147,6 +153,11 @@ Example:
 55 D6 88 88 88 00 50 AA 3D
 55 D6 88 18 88 14 50 AA 7F
 
 55 D6 88 88 88 00 50 AA 3D
 55 D6 88 18 88 14 50 AA 7F
 
+A packet with 0xA fuel level has been seen:
+55 D6 AA 88 88 14 50 AA 25
+- this is with cars 0 and 1 active. The meaning of this still has to be
+determined.
+
 
 0xD7 - brake setting
 --------------------
 
 0xD7 - brake setting
 --------------------
@@ -215,12 +226,15 @@ Sent after the car crosses the finish line and sends back its ID.
 R0-R5 - one byte for each car. 0xE7 means that this car has crossed the
        finish line, every other value means it did not cross it:
        0xAA is sent for unconnected controllers.
 R0-R5 - one byte for each car. 0xE7 means that this car has crossed the
        finish line, every other value means it did not cross it:
        0xAA is sent for unconnected controllers.
-       My pit box with 020 firmware has been seen sending either
-       0xF0 or 0xFE values as well
 
 Example:
 55 EE F0 E7 F0 AA AA AA 3C
 
 Example:
 55 EE F0 E7 F0 AA AA AA 3C
-55 EE FE FE E7 AA AA AA 1E
+55 EE FE FE E7 AA AA AA 1E # Car 2 crosses normal finish line
+55 EE 02 00 E7 01 00 00 CF # Car 2 drives through pit lane
+55 EE 82 FF E7 FF FF Ff 90 # Car 2 enters pit lane too fast
+55 EE F0 F0 E7 AA AA AA B1 # Car 2 enters pit lane
+55 EE 83 78 E7 14 50 AA 04 # Car 2 enters pit lane too fast?
+
 
 
 0xFF - controller status
 
 
 0xFF - controller status