ESP32CommandStation
ESP32CommandStation copied to clipboard
CDI: Missing ability to control OPS track power. All other options should be added as well...
There's no button in the JMRI/CDI to create an event to turn the OPS track power on/off.
Kinda bummer if you want to control something like that from a panel and not a WebUI.
For that matter, all of the rest of the options should be added (Turnouts, Sensors...)
Jmri doesn't expose the option today but you can control on/off state of OPS track by send events to the bus. Similarly estop can be sent.
This will need to be enhanced on the jmri side. For panels, you could have them fire the events.
well-known events that control the areas you are after:
- turn OPS track off: 01.00.00.00.00.00.FF.FF
- turn OPS track on: 01.00.00.00.00.00.FF.FE
- e-stop (all): 01.00.00.00.00.00.FF.FD
- e-stop (all) clear: 01.00.00.00.00.00.FF.FC
The current iteration of sensors will not be added to the CDI as it doesn't make sense due to limited number of IO pins available. S88 Sensors may be added to the CDI at some point in the future but that can be tracked via it's own issue.
Turnouts can be controlled via DCC address or via LCC events:
- 01.01.02.00.00.FF.<12-bit DCC address> -- activate
- 01.01.02.00.00.FE.<12-bit DCC address> -- deactivate Note: turnout control via events are not part of the currently adopted standards but are supported/implemented in various libraries (including OpenMRN) and have been for quite some time.
Other well-known events that may be generated by the CS:
- 01.00.00.00.00.00.FF.F1 -- brownout detected (not yet implemented)