-->

Sunday, March 23, 2025

Upgrading DCC-EX

I had an issue with DCC-EX and JMRI where the programming track would not be turned on automatically and I struggled configuring decoders for Roco or Piko engines. I decided to take a look and upgrade DCC-EX at the same time.


Upgrading from 5.0.9 to 5.4.6

As usual, I download the zip file from the release page:

https://github.com/DCC-EX/CommandStation-EX/releases

 I then extract the zip file and double click on the "CommandStation-EX.ino" file that opens the Arduino IDE and all the related files.


Customizing DCC-EX code

For the display, I have to adjust some code to display exactly what I want. I also provide here the config files.

CommandStation-EX.ino

CommandStation-EX.ino

CommandDistributor.cpp

WifiInterface.cpp

myAutomation.h

mySetup.h

config.h

 I can then compile and upload the code to the Arduino.


Testing the new release and config

And now, I have the new version and the programming track always on!


Positions of the wires for the Wifi module

Positions of the wires for the display and the 2 sets of tracks

 


Success!

It's now working for Piko engines, and likely for the Roco too: