Version: 0.1.0-alpha.10
DCCExpressHub is a model railway control and automation application supporting the DCC-EX, Z21 + R-BUS, and LocoNet protocols.
Drive locomotives, operate turnouts and signals, design your track layout, monitor occupancy sensors, and run automatic movements and timetables—all from one interface.
Available for:
- Windows — desktop application and server powered by .NET 10.
- Linux — runs as a server, with the interface available in a web browser.
- Android — standalone app with its own .NET 10 Hub and tablet-optimized interface; it can also serve other devices over the local network. Tablet recommended.
Warning
Android – Layout Editing
Layout creation and editing must be performed on a PC. The Android app is intended for controlling and operating existing layouts.
On Android, enable Allow other devices on LAN to access the Hub from browsers on the same network. This also allows you to create and edit layouts remotely from a PC browser while the Hub runs on your Android device.
Android support is experimental; network command-station connections are available, but USB/serial connections are not yet supported.
You can also control your railway from a computer, tablet, or phone on the same local network.
Warning
DCCExpressHub is not a command station. A connected command station generates the track signal; the Hub provides control, layout and automation on top of it.
Automatic Movements and train tracking work in both Occupancy and Reed / Point mode — no scripts required. Occupancy sensors provide continuous block feedback. In Reed / Point mode, the Hub uses momentary contacts together with the saved route graph, locomotive assignments and block reservations to run built-in automatic movements and track train arrivals. A reed pulse does not continuously prove that a block is free: correct sensor-to-block mapping, turnout states, direction and logical reservations remain essential. Test routes and safety behavior carefully before unattended operation.
- Locomotive control — speed, direction, and functions.
- Turnouts and signals — operate accessories from the control panel or track layout.
- Visual layout editor — create and manage your model railway track plan.
- Occupancy and train tracking — built-in locomotive tracking with continuous occupancy sensors or Alpha10's Reed / Point contacts, including manual driving.
- Routes and automatic movements — automate movements with occupancy or reed contacts, without writing scripts.
- Timetables — schedule automatic operations.
- Flows and scripts — set up event-driven automation; generate a starter script from a saved route graph.
- Sound — use audio announcements and other event-driven actions.
- Decoder programming — read and write supported CVs.
- External devices — DCCExpress S88 Adapter and ROCO Z21 WLANMAUS newGen handheld integration.
- Gamepad control — use compatible Bluetooth or USB controllers.
- Multiple devices — access the same railway from PCs, tablets, and phones.
- Built-in automatic operation with reed contacts — Automatic Movements, Sequential Movements and timetable-controlled movements can use destination reed pulses for arrival confirmation and logical block transitions. No user script is needed. Select Reed / Point instead of continuous Occupancy feedback in the layout's automation settings.
- Manual driving with reed feedback — the Hub attempts to match reed arrivals to an assigned locomotive using the saved route graph, travel direction and current turnout states. Unmatched or ambiguous arrivals are reported.
- Sensor safety checks — unexpected or ambiguous reed triggers may result in an automatic safety E-STOP, including when a movement is active. Investigate the indicated sensor, block and assignment before resuming.
- Optional route-based scripting — generate an editable script from a saved, direction-aware route graph for custom automation. Scripts are not required for the built-in reed-based Movements, sequences or timetables.
- Tracking and movement refinements — improvements to block transitions, route handling, visual feedback and turnout lock indicators.
Choose the detection mode in the layout's automation settings. Both modes support the Hub's built-in automatic movement system; scripts are optional.
- Occupancy — continuous block feedback allows the Hub to monitor physically detected occupancy throughout a movement.
- Reed / Point — momentary contacts confirm a train's arrival at a configured block. Automatic Movements, Sequential Movements and timetable-controlled movements use the saved route graph, turnout states and logical block reservations; the destination reed event confirms arrival and advances the block assignment. Manually driven locomotives can also be tracked when exactly one locomotive and valid route match the sensor event.
For example, an automatic A1 → B1 Movement can run using a reed sensor assigned to B1: the Hub manages the movement and records arrival when that sensor is triggered, without a custom script. Before operation, assign locomotives to their starting blocks, map block reed sensors, verify directions and turnouts, and test the route and safety behavior at low speed. Reed contacts do not prove continuous occupancy or physical clearance between pulses; logical free/reserved states depend on the accuracy of the layout and tracking.
Use a compatible Bluetooth or USB gamepad with the mobile control interface to drive locomotives, activate functions, stop trains, and operate available layout controls.
Configure button assignments on the Gamepad page. Settings are saved for the browser/device you use. Gamepad availability depends on your browser and controller.
DCCExpressHub can act as a Z21-compatible UDP server for the ROCO WLANMAUS newGen handheld controller. Connect the WLANMAUS to the same Wi-Fi network as the Hub and configure its Z21 IP address to the computer running DCCExpressHub. Enable the Z21 WLANMAUS external device in the Hub (default UDP port 21105). Firewall: Allow inbound UDP port 21105 on the computer running DCCExpressHub (for example, in Windows Defender Firewall), and make sure the handheld can reach the Hub on the local network. Restrict this firewall rule to your trusted/private network.
The handheld can control locomotive speed, direction and functions, operate turnouts, and send track power and emergency-stop commands. Locomotive speed, direction, function states and turnout states are synchronized between the handheld and DCCExpressHub, so changes made from either interface can be reflected on the other.
The rotary knob increases speed when turned right, decreases it when turned left, and can change direction when pressed. The STOP button supports the WLANMAUS's configured track power off or emergency stop mode. This integration has been tested with a physical WLANMAUS newGen and DCC-EX command station; behavior with other hardware may vary.
The DCCExpress S88 Adapter adds S88 / s88-N occupancy feedback to a DCC-EX CommandStation-EX setup. An Arduino Uno-based adapter reads S88 feedback modules and makes their states available to DCC-EX through an I2C HAL driver. The command station then reports ordinary DCC-EX sensor events (<Q> / <q>), which DCCExpressHub can use for occupancy monitoring and automation. Direct USB serial feedback is also supported.
The adapter supports up to 256 feedback inputs (32 S88 bytes), with configurable I2C address and input count. It has been tested with YaMoRC YD6016ES-CS modules, including two chained 16-input modules.
Important — 3.3 V ↔ 5 V level conversion: The Arduino Uno adapter uses 5 V logic, while many modern DCC-EX controllers use 3.3 V I2C logic. Use a suitable bidirectional I2C level shifter between SDA/SCL (with a shared ground) unless the controller is explicitly 5 V tolerant. Do not connect 5 V I2C signals directly to a non-5 V-tolerant 3.3 V controller. Also check the s88-N bus supply: the tested YD6016ES-CS must not receive more than 5 V, even though other s88-N devices may support different voltages.
For wiring, firmware and DCC-EX HAL installation, see the S88 Adapter repository.
DCCExpressHub supports DCC-EX, Z21, and LocoNet communication protocols on Windows, Linux, and Android (network connections only on Android), with transport-specific connection options. Select the protocol supported by your command station and connect the corresponding interface.
| Protocol / connection | Tested on (command stations) | Feedback | CV programming |
|---|---|---|---|
| DCC-EX — TCP/IP or USB/serial | DCC-EX (including EX-CSB1) | DCC-EX sensor reporting; optional S88 adapter | Service-track CV programming and supported operations-mode programming |
| Z21 + R-BUS — LAN/UDP | Roco z21 / Z21; YaMoRC YD7010 in Z21-compatible mode | R-BUS occupancy sensors, with configurable offset | Supported Z21 programming operations (subject to command station capabilities) |
| LocoNet — TCP (LBServer) | YaMoRC YD7010 with LocoNet server enabled | LocoNet occupancy feedback (including supported S88 modules), with configurable offset | Native LocoNet service-track CV reading/writing, locomotive POM, and accessory POM writing |
| LocoNet — USB/Serial (COM) | LocoNet-compatible serial interface (YaMoRC YD7010 USB configuration under evaluation) | Native LocoNet sensor feedback; serial interface and feedback compatibility depend on hardware | Native LocoNet service-track CV read/write, locomotive POM and accessory POM commands implemented; hardware validation pending |
Connect to a DCC-EX command station over TCP/IP or USB/serial. The HUB uses the DCC-EX command protocol for locomotive control, functions, turnouts, sensors, and supported CV programming.
For S88 / s88-N occupancy feedback, see the separate DCCExpress S88 Adapter project.
Connect over the Z21 LAN protocol (UDP). This profile supports Roco z21 / Z21 and the YaMoRC YD7010 in Z21-compatible mode. Locomotive control, functions, turnouts, and accessories use the Z21 interface. Configure R-BUS feedback and its sensor offset in the connection settings.
The white z21 supports R-BUS; hardware variants and their available feedback interfaces differ. Do not assume that black Z21 CAN, S88, or LocoNet feedback is exposed through this R-BUS profile.
Connect to the YaMoRC YD7010 LocoNet LBServer over TCP (typically port 1234, depending on configuration), or select LocoNet Serial with the relevant COM port and baud rate (for example, COM16 @ 115200 baud in the current test setup). Both transports carry LocoNet messages using separate transport drivers, not the Z21 UDP protocol. Opening the COM port alone does not confirm the interface's protocol compatibility.
The HUB supports locomotive control and functions, turnouts, basic accessories, extended signal aspects, LocoNet sensor feedback, and native LocoNet CV programming. The Programming page includes the Decoder Profile reader. Service-mode programming requires the decoder to be connected to the command station's isolated programming-track output. Reading many CVs can take several minutes.
YaMoRC YD7010: Choose Z21 + R-BUS, native LocoNet TCP, or LocoNet Serial according to the available interface and feedback bus. The LocoNet Serial implementation still requires end-to-end hardware verification. Their connection settings and sensor offsets are independent; do not enable both profiles for one connection unless you intentionally configured a supported arrangement.
Requirements: Windows 10 or 11 (64-bit), Microsoft Edge WebView2 Runtime, and network or USB access to your command station.
- Open GitHub Releases.
- Download the Windows package:
DCCExpressHub-<version>-win-x64.zip. - Extract the ZIP into a writable folder.
- Start
DCCExpressHub.Desktop.exe. - Follow the initial setup to choose your command station and connection settings.
The Windows package includes the required .NET runtime. You do not need to install the .NET SDK.
Do not launch the application from inside the ZIP file. Alpha releases may be unsigned; if Windows SmartScreen displays a warning, verify the download came from the official Releases page.
Your application data is stored separately from the program files:
%LOCALAPPDATA%\DCCExpressHub\workspace
The application can also be made available to other devices on your trusted local network.
DCCExpressHub runs on Linux as a server. Open its interface from a browser on the computer or another device on your local network.
Requirements: Linux (x64 or ARM64), Git, .NET 10 SDK, Node.js 20.19+ or 22.12+, and npm. Debian 12 (x64) is a tested environment.
There is no prepackaged Linux release yet. Install the prerequisites if needed (instructions below), then use this quick start:
git clone https://github.com/DCCExpress/DCCExpressHub.git
cd DCCExpressHub
git switch alpha10
./run-linux.sh --build
./run-linux.shOn first launch, choose your command station and enter its connection details when prompted.
To change the saved Linux configuration later (command station, connection settings, HTTP port, or workspace), run:
./run-linux.sh --configureThis opens the interactive configuration menu and starts the backend after saving. To open only the configuration menu, without launching the backend, use:
./run-linux-config.shThe configuration is saved locally in desktop/DCCExpressHub.Net/.env.linux. To display the current configuration without starting the backend:
./run-linux.sh --showThe interactive menu uses the dialog utility and requires a terminal.
To update:
git pull
./run-linux.shIf Git, .NET 10, Node.js and npm are not installed yet, follow the instructions for your distribution below. Then return to the Quick Start commands above.
Install the basic tools and Microsoft package repository:
sudo apt update
sudo apt install -y curl wget git ca-certificates
source /etc/os-release
wget https://packages.microsoft.com/config/debian/$VERSION_ID/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.debInstall the .NET 10 SDK:
sudo apt update
sudo apt install -y dotnet-sdk-10.0Install Node.js 22 LTS and npm:
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejsInstall Git, curl, .NET 10, then Node.js 22 LTS:
sudo apt update
sudo apt install -y curl git ca-certificates dotnet-sdk-10.0
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejsFor Ubuntu 22.04, enable the Ubuntu .NET backports repository first:
sudo apt update
sudo apt install -y curl git ca-certificates software-properties-common
sudo add-apt-repository -y ppa:dotnet/backports
sudo apt update
sudo apt install -y dotnet-sdk-10.0
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejsVerify the required tools:
dotnet --version
node --version
npm --version
git --versionFor DCC-EX USB/serial connections on Debian-based systems, you may need to grant serial-port access:
sudo usermod -aG dialout $USERLog out and back in for the group change to take effect.
- Use the emergency stop controls whenever immediate intervention is needed.
- Automatic operation depends on correct layout configuration, sensor feedback, turnout states and locomotive assignments. Reed/point events alone do not guarantee a free block. Always test routes on your railway before leaving movements unattended.
- This is alpha software. Features and supported hardware behavior may change, and issues may still occur.
LocoNet® is a registered trademark of Digitrax, Inc. Z21, z21, ROCO, FLEISCHMANN, DCC-EX, and YaMoRC are trademarks or names of their respective owners. DCCExpressHub is an independent project and is not affiliated with or endorsed by these owners.
See LICENSE for license information.



