]> www.fi.muni.cz Git - slotcarman.git/blobdiff - protocol.txt
More debugging.
[slotcarman.git] / protocol.txt
index c09a5a20170f6ba851df7d4f540bbb2c9bab5e43..80c377858797182bd092541ea1176ad7eba67fb5 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)
+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
 
@@ -216,12 +221,14 @@ 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.
-       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
-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
+
 
 
 0xFF - controller status