X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=protocol.txt;h=f9bca11e6a6a41b17efddadca0a426affaacf04f;hb=e5ecd9d0a9df93798930c678f4f4aa58e0e6a10a;hp=c09a5a20170f6ba851df7d4f540bbb2c9bab5e43;hpb=3c81eec463d9ccde4929137846bf2be694bdc82c;p=slotcarman.git diff --git a/protocol.txt b/protocol.txt index c09a5a2..f9bca11 100644 --- a/protocol.txt +++ b/protocol.txt @@ -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,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. - 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 +55 EE 83 78 E7 14 50 AA 04 # Car 2 enters pit lane too fast? + 0xFF - controller status