Model Train-related Notes Blog -- these are personal notes and musings on the subject of model train control, automation, electronics, or whatever I find interesting. I also have more posts in a blog dedicated to the maintenance of the Randall Museum Model Railroad.
2014-09-07 - JMRI WiThrottle protocol
Category Jmri
This is my own understanding of the JMRI WiThrottle protocol based on reading the JMRI source code and connecting to a local JMRI server. I apologize in advance for the highly condensed notation style. I originally started looking into this to create my own python program; then back in 2014/2015 I used this to create a Python extension of Scratch running on a Raspberry Pi to control JMRI. It was pointless yet it was absolutely cool and totally worth it. Eventually I used that same information to create my own Cab Engineer: DCC Throttle android app.
-- (start of info dump) --
JRMI WiThrottle protocol in action using [WiThrottle protocol doc].
Server code:
- DeviceServer.java for main codes (old sourceforge link: DeviceServer.java).
- ThrottleController.java for single throttle (T and S codes) (old sourceforge link: ThrottleController.java):
[2020 update: code now at https://github.com/JMRI/JMRI. Also note that all T/S throttle commands are now considered obsolete, using the MT multi-throttle commands is pretty much a given.]
Click here to continue reading...