X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=protocol.txt;h=f9bca11e6a6a41b17efddadca0a426affaacf04f;hb=be20fd2ec154ea3fe7fbb3af3357062c09f1ad10;hp=416dea31f3de61b5ce5362f1b45a76e07e560bc1;hpb=09f6bee9b34515e38dcf40a5e56b3bd327f7ba7e;p=slotcarman.git diff --git a/protocol.txt b/protocol.txt index 416dea3..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 @@ -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 +55 D5 FF 00 00 04 FF FF CF 0xD6 - fuel level @@ -215,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