Translate protocol spec, fix inconsistencies

This commit is contained in:
Midgard 2020-08-06 18:09:30 +02:00
parent a8a19e3cb1
commit 8e65f4bbd1
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -3,23 +3,25 @@ ______________________________________
Recap: message in CAN protocol
↓ 11b ↓ 64b (8 bytes)
+----+-----------------+ - - -
| id | body | dont care
| id | body | dont care for now
+----+-----------------+ - - -
Priority is controlled by the ID: if a message with a higher ID is on the bus, lower messages will
be silenced due to the design of CAN.
______________________________________
OBUS-messageformat
OBUS message specification
ID:
b bb bbbbbbbb
| | ↓
| ↓ module-ID: 2⁸=256
↓ type: 2²=4
priority?
priority bit (so that each type can send priority messages if need be)
type:
- 0 controller
module-ID is type of message
- 0 controller; module ID is ignored
- 1 puzzel
- 2 needy
- 3 reserved for future use
@ -46,9 +48,9 @@ Types for controller:
- 2 game start
[ X B B B B B B B ]
-------- - ---
time left ↓ reserved
#strikes
-------- - - -
time left ↓ reserved
#strikes #max strikes
- 3 state (every x ms e.g. in the middle of each second)
[ X B B B B B B B ]