From: ian Date: Wed, 23 Apr 2008 16:44:54 +0000 (+0000) Subject: move hostside commands from README to README.commands X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=5ea738b880b78e369c3e46ea90007729a724b12f;p=trains.git move hostside commands from README to README.commands --- diff --git a/hostside/README b/hostside/README index 39d1695..0ff3535 100644 --- a/hostside/README +++ b/hostside/README @@ -26,57 +26,3 @@ to tell decoder 3 to go speed 13 backwards every 10ms for 1000 times, ie 10s To test: ./hostside-old -st nmra_bytes 0348 && binview t - - - - -Protocol over new hostside stdin: - Example (always the same msg): - P> nmra [] [...]] nmra speed28 3 13 1 - P> nmra [] [=] nmra =0348 - P> nmra [] [:] nmra :03484b - P> nmra [] [_] nmra _7f7f00644197 - in each case (if present) is * or % and - indicates that the message should be put in the retransmission - cycle, and cancels any previous message with the same . - may be empty. * indicates urgent - P> nmra - cancels the relevant retransmission. - - Example (always the same msg): - P> pic = pic =a003 - P> pic [ and - nmra _ - do exactly the same. - - P> polarity .... - where, eg, with 14 segments, - [ 1] [111 1111] reversible - [123] [56 7890] [123 4567] segment number - 1 0010 000 1 000 1000 0 111 1010 example POLARITY - 1 0010 RRR 1 RRR RRRR 0 RRR R--- from README.protocol - RRR RRR RRRR RRR R actual R bits - \__ ___/\__ ___/ ... which map ... - RRRRRRRR RRRRRR ... into data ... - RRRRRRRR RRRRRR-- ... like this. - 00000010 00111100 - [ 1111111] reversible - [12345678] [90123456] segment number - 0x02 0x3c hex values - 023c hex data string - - Up< pic-out - Up< pic-in - - U< count - eg count polarity 14 - U< pic detect 1|0 - U< pic point

- U< pic pointed

- U< pic charged

- U< polarity .... - U< polarised .... diff --git a/hostside/README.commands b/hostside/README.commands new file mode 100644 index 0000000..7359940 --- /dev/null +++ b/hostside/README.commands @@ -0,0 +1,51 @@ +Protocol over new hostside stdin and to multiplexer: + + Example (always the same msg): + P> nmra [] [...]] nmra speed28 3 13 1 + P> nmra [] [=] nmra =0348 + P> nmra [] [:] nmra :03484b + P> nmra [] [_] nmra _7f7f00644197 + in each case (if present) is * or % and + indicates that the message should be put in the retransmission + cycle, and cancels any previous message with the same . + may be empty. * indicates urgent + P> nmra + cancels the relevant retransmission. + + Example (always the same msg): + P> pic = pic =a003 + P> pic [ and + nmra _ + do exactly the same. + + P> polarity .... + where, eg, with 14 segments, + [ 1] [111 1111] reversible + [123] [56 7890] [123 4567] segment number + 1 0010 000 1 000 1000 0 111 1010 example POLARITY + 1 0010 RRR 1 RRR RRRR 0 RRR R--- from README.protocol + RRR RRR RRRR RRR R actual R bits + \__ ___/\__ ___/ ... which map ... + RRRRRRRR RRRRRR ... into data ... + RRRRRRRR RRRRRR-- ... like this. + 00000010 00111100 + [ 1111111] reversible + [12345678] [90123456] segment number + 0x02 0x3c hex values + 023c hex data string + + Up< pic-out + Up< pic-in + + U< count + eg count polarity 14 + U< pic detect 1|0 + U< pic point

+ U< pic pointed

+ U< pic charged

+ U< polarity .... + U< polarised ....