-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
53 lines (35 loc) · 1.53 KB
/
Copy pathREADME
File metadata and controls
53 lines (35 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Rpi chooses modules, locations and parameters for wires.
space seperated values
Link to the manual -https://docs.google.com/document/d/1h8VP7N_FWcMYxiyH7pzzA1065ZJ98JLBcauPc3oHvbI/edit?usp=sharing
BOOT SEQUENCE
BOOT - Sent from module. Parameter - module ID
DATA - Sent from Rpi to module. Parameters - free according to specific logic per module.
READY - Sent from module after all parameters are set correctly.
UNREADY - Sent from module. When module READY fails.
START - Sent from Rpi to start.
ACK - Response for START.
PERIODIC
TIME - Sent from rpi each ten seconds; Parameter - time in 10s resolution.
SOLUTION
BOOM - sent from rpi if bomb exploded.
TRIGGER - Sent from module if triggered.
PENALTY - Sent from module if penalty is assessed. Rpi decides penalty time.
SOLVED - Sent from module after it is solved correctly. No parameter
GENERAL
PING - Sent from Rpi/module. No parameter
MODULE SPECIFIC PROTOCOL
Big Red Button -
Data neeeded - whether all other modules have been solved.
Format - ALL_SOLVED:STATUS, where STATUS = 0 (not all other modules have been solved), 1 (otherwise).
Wires -
Data needed - wire locations (for each wire - color and if present), bomb state (According to defusal manual).
Format -
Wire locations - ROW_DATA:C1,C2,C3,C4,C5. Where Ci is letter representing color with the following options
Y - Yellow
R - Red
W - White
B - Black
G - Green
E - Empty
Wire locations need to be sent BEFORE Bomb state
Bomb state - SETUP_DATA:STATE_ID. ID is by manual in increasing order according to tables.