chiark / gitweb /
document new state behaviours for OFF and CDU
[trains.git] / cebpic / README.protocol
index 42caca3cc3ea5182359667025061037600279a36..df31395c25d08045bf0ff54cc05282694f8f2360 100644 (file)
@@ -23,7 +23,9 @@ From host to PIC:
  > 0 0010 001             (11) ON        Power on
  > 0 0010 000             (10) OFF       Power off
 
- > 00000000                     CRASHED   Acknowledge panic, go to readout mode
+;> 00000000                     CRASHED   Acknowledge panic, go to readout mode
+;> 00001002               (0a) TELLMODE  Confirm mode - say HELLO or CRASHED
+;                                          if crashed, undoes the effect of ack
 
 ; In crash readout mode:
 ;
@@ -124,6 +126,11 @@ should be reenabled when the host transmits ON.
                                      (User Fault indicator lit)
 
 
+If OFF is issued in the first 500ms following a short circuit, it will
+be ignored; if the short circuit persists, OFF during the following
+period will go to the `Track and CDU disabled' state without sending
+FIXED.
+
 
 POINTS and CDU
 --------------
@@ -153,6 +160,10 @@ not check that the received P value is 0; they may simply assume it).
        is recharging  <----POINTED----  Point is changing
 
 
+Note that OFF will turn the CDU off, and a short circuit (FAULT) will
+turn it off 500ms later (this delay avoids losing races where the host
+sends a point change instruction just before a short happens).
+
 
 PING and PONG
 -------------