From d89dd0d1fa4a05161b5ac9955c7dd893e070f95d Mon Sep 17 00:00:00 2001 From: Asbelos Date: Mon, 13 Mar 2023 00:53:42 +0000 Subject: [PATCH] command ref work in progress --- Release_Notes/CommandRef.md | 76 +++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 28 deletions(-) diff --git a/Release_Notes/CommandRef.md b/Release_Notes/CommandRef.md index 6420471..c06e388 100644 --- a/Release_Notes/CommandRef.md +++ b/Release_Notes/CommandRef.md @@ -4,24 +4,37 @@ General points: - Commands below have a single character opcode and parameters. Even is actually read as - Keyword parameters are shown in upper case but may be entered in mixed case. - - value parameters are numeric. + - value parameters are decimal numeric (unless otherwise noted) - [something] indicates its optional. - - Not all commands have a response, and not all responses come from the last commands that you have issued. + - Not all commands have a response, and broadcasts mean that not all responses come from the last commands that you have issued. Startup status - + Return status like + + also returns defined turnout list: + 1=thrown -Track power management -<1> -<1 MAIN|PROG|JOIN> -<0> -<0 MAIN|PROG> +Track power management. After power commands a power state is broadcast to all throttles. + +<1> Power on all +<1 MAIN|PROG|JOIN> Power on MAIN or PROG track +<1 JOIN> Power on MAIN and PROG track but send main track data on both. +<0> Power off all tracks +<0 MAIN|PROG> Power off main or prog track + +Basic manual loco control + Throttle loco. + speed in JMRI-form (-1=ESTOP, 0=STOP, 1..126 = DCC speeds 2..127) + direction 1=forward, 0=reverse + For response see broadcast + + Set loco function 1=ON, 0-OFF + For response see broadcast + + emergency stop all locos + Control turnout id, 0=C=Closed, 1=T=Thrown + response broadcast -Basic manual control - - - - DCC accessory control @@ -35,25 +48,30 @@ Note: Turnouts are best defined in myAutomation.h where a turnout description ca + Valid commands respond with + +Outputs (Used by JMRI, not required by EXRAIL) + Define an output pin that JMRI can set by id + Activate an output pin by id -Outputs - - +Sensors (Used by JMRI, not required by EXRAIL) + define a sensor to be monitored. + Responses and as sensor changes -Sensors - +Decoder programming - main track + POM write value to cv on loco + POM write bit to cv on loco -Decoder programming - - - - - - - - - +Decoder Programming - prog track + Clear consist and write new cab id (includes long/short settings) + Responds or for error + Write value to cv + + Read cv value, much faster if prediction is correct. + Read CV bit + + Read drive-away loco id. (May be a consist id) @@ -152,6 +170,8 @@ Obsolete commands/formats + V command is much faster if prediction is correct. + V command is much faster if prediction is correct. Broadcast responses Note: broadcasts are sent to all throttles when appropriate (usually because something has changed)