Many model railroaders enjoy using a hand-held throttle or smartphone app that connects to a centralized DCC command station that sends DCC over the tracks to decoder-equipped locomotives, and some “dead-railers” enjoy a similar experience using specialized hand-held transmitters such as the CVP Airwire or Stanton Cab throttles. These dead-rail throttles are expensive and sometimes hard to find due to supply chain problems. Other hand-held dead-rail throttles only support their proprietary receivers and “vendor-lock” users because they have no interoperability with other dead-rail vendors 🙁
On another page, I showed how easy it was to use a smartphone equipped with a “wiThrottle-compliant” app in conjunction with the ProMiniAir transmitter to control your dead-rail locomotive(s) fitted with a variety of receivers such as ProMiniAir, Tam Valley Depot DRS1, CVP Airwire, Stanton Cab, QSI Gwire, and NCE. The downside was that you must invest in a WiFi device for the DCC base station connected to the ProMiniAir transmitter. Many folks pushed back on the additional cost and infrastructure to use their smartphone app for dead-rail control using the ProMiniAir transmitter.
I searched for a way to provide a low-cost way to use your smartphone in conjunction with the ProMiniAir transmitter, and this post shows the low-cost solution that I offer for sale.
The solution: I came across a low-cost way to create a small DCC base station equipped with WiFi at a very active group, DCC-EX, and I will describe how I configured this base station to use a smartphone to control dead-rail locomotives equipped with ProMiniAir, Tam Valley Depot, CVP Airwire, QSI Gwire, NCE, or Stanton Cab receivers.
The wiThrottle-protocol smartphone apps that will work with this solution include (this list is from DCC-EX):
- Engine Driver (Android)
- DCCpp CAB (Android)
- Cab Engineer: DCC Throttle (Android)
- DigiTrainsPro (Android)
- WiThrottle (iOS)
- Locontrol (iOS)
- SRCP Client (iOS)
- RtDtive DCC++ (Android)
- Train Driver (iOS)
The critical point is that the ProMiniAir transmitter, coupled with the WiFi-equipped EX-CommandStation, is an entirely self-contained solution for $49.99 on eBay (search on eBay with “ProMiniAir” to find this device). All you need to do is apply power and then connect with a smartphone throttle app for mobile control of dead-rail.
If you don’t want to go through the details of the solution, you can jump to the Instructions below.
An EX-CommandStation is a simple but powerful, DCC Command Station that you can assemble yourself and which is made using widely available Arduino boards. It supports much of the NMRA Digital Command Control (DCC) standards, including
- Simultaneous control of multiple locomotives and their functions
- Control of accessory/function decoders
- Programming Track
- Programming on Main Track
It includes advanced features such as:
- A wiThrottle Server implementation,
- General purpose inputs and outputs (I/O) for extensibility, and
- JMRI integration
The primary intention of the EX-CommandStation is to receive commands from multiple throttles and send out DCC on tracks. These throttles can be “wired” or “wireless:”
With the WiFi-equipped EX-CommandStation, you can use a wiThrottle-protocol smartphone app that connects to the EX-CommandStation via WiFi. Then the EX-CommandStation’s +3.3V logic DCC output is not sent to a “motor shield” to power tracks but instead serves as a direct input to the ProMiniAir transmitter for dead-rail control. It’s that simple; the technique was easy to implement and is low-cost ($49.99 on eBay, instead of paying for a WiFi device that connects to a commercial DCC throttle, a total of over $200).
Instructions for Using the ProMiniAir Transmitter/WiFi-Equipped EX-CommandStation with a Smartphone
What you need:
- A smartphone loaded with the wiThrottle-compliant app. See the list above.
- A properly configured ProMiniAir Transmitter/WiFi-equipped EX-CommandStation. We provide this.
- A locomotive(s) equipped with receivers compatible with the ProMiniAir transmitter, such as:
- ProMiniAir receiver
- Tam Valley Depot DRS1 receiver
- CVP Airwire receiver: CONVRTR 15/25/60, G-3/4
- Gwire receiver
- Stanton Cab receiver
- NCE D13DRJ wireless decoder
- Plug the USB power into the PMA Tx/WiFi-equipped EX-CommandStation, which turns on the ESP32 WiFi transceiver to broadcast information for your smartphone to pick up, boots up the EX-CommandStation itself, and powers up the ProMiniAir receiver and the OLED displays. You can connect a USB battery pack to the ProMiniAir transmitter/WiFi-equipped EX-Command station for “take it anywhere” capability.
- Go to the smartphone’s WiFi settings:
- If you have a home router, turn off auto-join, which prevents your smartphone from jumping to your home router rather than the DCC-EX WiFi router.
- Select the EX-CommandStation’s WiFi router. The router’s name is “DCCEX_123456,” where “123456” is a unique series of numbers and letters (the “MAC address” of the WiFi transceiver).
- When asked for a password, enter “PASS_123456”, where “123456” is the exact string of numbers and letters in the router’s name. You will probably need to enter the password only once since your smartphone will probably remember the password.
- The “fiddle factor:” Sometimes, the smartphone will complain it cannot connect to the DCCEX router or that the password is incorrect. Ignore this complaint (assuming you entered the password correctly) and try connecting again. The smartphone will often successfully connect once you select the DCCEX router again.
- You might want to turn on the auto-join option for this router so that your smartphone will automatically try to connect once the WiFi-equipped EX-CommandStation is powered up.
- Once connected, go to your throttle app:
- When asked for WiFI router configuration, set the IP address to “192.168.4.1” and the port to “2560“.
- Once your throttle app connects to the EX-CommandStation, you can select your loco(s), etc.
- Turn on your dead-rail locomotives, and control them with your smartphone app!
- Once finished with the throttle app, you can go back to settings and re-select the auto-join option for your home router.
So here is the “proof of principle” demo. The photo below shows the prototype solution: a low-cost EX-CommandStation with integrated WiFi connected to a ProMiniAir transmitter. The video shows the iOS “Locontrol” app connected to the PMA Tx/EX-CommandStation with WiFi to control a dead-rail locomotive equipped with a ProMiniAir receiver and a DCC decoder that controls loco speed and direction, lighting, sound, and smoke. The Locontrol app is excellent because you can record video while controlling the locomotive.
Programming on the Main (PoM) or Service Mode
OK, these smartphone throttle apps are great, but they have a limitation: they can’t currently send commands in PoM (OPS) mode or Service Mode to change the value of configuration variables “CV” in a decoder. This capability is necessary when you need to change the configuration of the ProMiniAir transmitter (whose default DCC address is 9900), such as the wireless channel (CV255 = 0-18) or power level (CV254=1-10). Of course, you might also need to make CV changes to your dead-rail locomotive’s DCC decoder using PoM (OPS) mode, too!
See the DCC-ex.com site for a full list of DCC-EX commands that you can send to the EX-CommandStation and ultimately to the dead-rail locomotives or DCC accessories.
You may NEVER change the ProMiniAir’s configuration, but you might. How to do this?
Both iOS and Android have apps that come to the rescue: TCP/IP to Serial Terminal and Serial WiFi Terminal. The apps provide a wireless connection to the EX-CommandStation to reconfigure the ProMiniAir transmitter (or receiver, for that matter!) or your dead-rail locomotive’s DCC decoder in PoM mode.
Since I own an iPhone, I’ll show you what to do using TCP/IP to Serial Terminal.
What you need:
- An iPhone or iPad with TCP/IP to Serial Terminal
- A Wifi-equipped EX-CommandStation
- Select the app and enter the IP address and port number, and then connect:
- Test using the status command, entering
- See the response:
- Enter the command to change the value of CV 255 at address 9900 to a value of 5 by entering
<w 9900 255 5>(case sensitive):
- Verify that the ProMiniAir transmitter Channel, which is at DCC address 9900, has changed to 5:
The steps for using the Android app Serial WiFi Terminal should be similar.
Service Mode setting of CVs is also possible. The Service Mode command for changing the CV number
CVnum to a value
<W CVnum CVval>. The “
W” must be uppercase. Changing the DCC address is even simpler:
<W new_address>. Care must be used, since PoM commands will be used by all “listening” receivers, regardless of their DCC address!
So, there you have it, a wireless way to control a WiFi-equipped EX-CommandStation in Programming on the Main (PoM) mode (OPS mode) and Service Mode. While we need these apps to send PoM commands to reconfigure the ProMiniAir transmitter, you can enter any DCC-EX Command! Have fun!
If you have a Windows, macOS, or Linux computer or laptop, you can interact with the WiFi-equipped EX-Command station, including reconfiguring the ProMin Air transmitter. The technique is based on the “curl” program.
What you need:
- A Windows, macOS, or Linux computer or laptop.
- A WiFI-equipped EX-CommandStation
- Connect the EX-CommandStation’s USB cable+USB converter to power. This powers up the WiFi-equipped EX-CommandStation and the ProMiniAir transmitter with its LCD.
- On your computer, select the DCCEX_123456 wireless router and, if asked, enter the password PASS_123456, where “123456” is a unique string representing the MAC address of the ESP8266 WiFi transceiver integrated with the EX-CommandStation.
- On your computer, start up a “terminal” session. A terminal session allows you to type in commands.
- Enter the following command
curl telnet://192.168.4.1:2560. This opens a simple telnet-protocol connection between the computer and the WiFi-equipped EX-CommandStation at address 192.168.4.1 port 2560, the default EX-CommandStation address and port.
- Your command line will now wait for you to enter the text transmitted to the EX-CommandStation! As a test, type in
RETURN, and you should see a response such as
<iDCC-EX V-4.0.0 / MEGA / PMA_Tx G-a26d988>
If using curl on Windows, you may need to press
CONTROL+z) and then
RETURNagain to “flush” out the response from the EX-CommandStation.
- OK! Now let’s change the ProMiniAir transmitter’s channel to “5” by using a PoM (OPS) command (DCC Address: 9900, CV#: 255, CV value: 5): type in
<w 9900 255 5>and press
ENTER. You will not see a response (sigh), but if you look at the ProMiniAir transmitter’s LCD, you will see the following:
- You exit the session by hitting < control>+C.
This solution is NOT all wireless but demonstrates how to use the Web-based WebThrottle-EX to control the EX-CommandStation.
What you need:
- A computer or laptop
- A WiFi-equipped EX-CommandStation
- The USB cable that came with your EX-CommandStation
- Connect the USB cable from the EX-CommandStation to your computer/laptop. This connection provides power and a data link to the PC.
- On your computer or laptop’s Chrome web browser, navigate this link: https://dcc-ex.github.io/WebThrottle-EX. An excellent throttle application will start, and the DCC-EX team has excellent instructions for using this application. We will concentrate on our narrow goal: getting OPS mode instructions to the ProMiniAir transmitter.
- Select the “Connect DCC++ EX” button to activate the USB serial connection to the EX-CommandStation.
- You will see a pull-down menu of USB ports. Select the serial port you think is correct, and if it is, the log window at the bottom will cheer your success. If not, try another USB port from the pull-down list.
- Now look at the Debug Console and ensure Debug in “ON.”
- In the “Direct Command” entry, type in a “direct” command. In our example, we want to send an OPS mode command (“w” for write) to DCC address 9900 (the PMA transmitter) to change CV 255 (channel selection) to the value of 3 (the channel we want to transmit on):
w 9900 255 3.
- Press “Send,” and you should see the log window indicating the send. You should also see the PMA Tx’s LCD show a changed value, now with a new channel!
- Disconnect the USB cable.
- Use your smartphone to connect the ProMiniAir Tx/WiFi-equipped EX-CommandStation as described above.
- Have fun controlling the locomotive(s)!
Of course, if you maintain the USB cable connection, you can play with the WebThrottle-EX to control the dead-rail locomotive! The DCC+EX website has excellent instructions for using WebThrottle-EX. The traditional locomotive control capability and the powerful direct control capability are valuable and fun.
An important point: These instructions are ONLY for reconfiguring the ProMiniAir transmitter or changing the CVs in your DCC decoder. Under regular smartphone throttle app use, you do NOT need to connect anything other than the power to the WiFi-equipped EX-CommandStation to activate the ProMiniAir transmitter!
While I called this approach for using a smartphone app with the ProMiniAir transmitter a “compromise solution,” if you think about it, with a more centrally-located ProMiniAir transmitter coupled to a small, inexpensive WiFi-equipped DCC base station, you achieve good layout coverage because the base station is acting as an optimally-located “repeater,” potentially reaching more of the layout than your smartphone app. This approach is a valuable “division of labor:” the smartphone gives you the mobility to enjoy different vantages, and the central transmitter covers the layout optimally. So, maybe this approach is better than a “compromise solution,” after all.