1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-05-12 05:44:55 +02:00
Asbelos fa00e9e11b Squashed commit of the following:
commit f13824164b853b2fec66f67b7f3296e2264a861b
Author: Asbelos <asbelos@btinternet.com>
Date:   Thu Oct 10 16:07:42 2024 +0100

    _s7 keyword generator

commit 8a7dc2643cd15a6d55dd1f257c4940d4167702fc
Author: Asbelos <asbelos@btinternet.com>
Date:   Mon Oct 7 10:54:05 2024 +0100

    comments

commit 801cddfef70a5ced01da9f022d4b0ad603264e0a
Author: Asbelos <asbelos@btinternet.com>
Date:   Sun Oct 6 13:24:07 2024 +0100

    simpler macro insert

commit 5883f474ee79274aaeca94aee13b2235accddbd6
Author: Asbelos <asbelos@btinternet.com>
Date:   Sun Oct 6 13:18:29 2024 +0100

    Auto include

commit 312fc255e4eb8aa4f77dcedbe7206aca22e00af6
Author: Asbelos <asbelos@btinternet.com>
Date:   Sun Oct 6 13:12:51 2024 +0100

    Cleanup to one class

commit 309407434928f14f22fef1ff2cdd0f29238f33fb
Author: Asbelos <asbelos@btinternet.com>
Date:   Sun Oct 6 10:34:16 2024 +0100

    peeled back

commit aa2a6ad1191dbcd6ed75416d457e47b68373277d
Author: Asbelos <asbelos@btinternet.com>
Date:   Sat Oct 5 18:27:43 2024 +0100

    all fastpins

commit 931baf4b6d4d5b4d55389a64efd5885eeb2218ff
Author: Asbelos <asbelos@btinternet.com>
Date:   Sat Oct 5 16:28:03 2024 +0100

    Partial lib extract

commit 47bc3b55fc2259cbec9ab830850ea07044ef66be
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Oct 4 15:41:51 2024 +0100

    fixes and SEG7 macro

commit 3f26ca2d1a39203428de60cb27f31008847c4233
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Oct 4 14:33:23 2024 +0100

    enums for exrail easy

commit 7e7c00594bf34ebfc331485befc9feaf66cc32ff
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Oct 4 13:16:57 2024 +0100

    Working

commit fc4df878482ee3eca6e1232a1ed49ac0c06d2a55
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Oct 4 09:27:46 2024 +0100

    leds and buttons
2024-10-10 19:38:35 +01:00
2022-03-29 11:59:40 -04:00
2023-10-10 12:11:49 +01:00
2020-05-25 01:43:34 -06:00
2024-09-23 09:34:26 +01:00
2020-12-08 07:34:59 -05:00
2024-08-08 10:45:44 +02:00
2024-08-08 10:45:44 +02:00
2024-01-10 12:11:14 +00:00
2024-09-22 20:58:17 +02:00
2024-02-20 15:06:07 +01:00
2024-02-20 15:06:07 +01:00
2024-09-30 16:13:00 +08:00
2024-02-20 15:06:07 +01:00
2023-11-15 19:29:24 +00:00
2023-02-23 10:36:42 +00:00
2022-07-30 23:08:42 +02:00
2022-05-17 18:06:08 +08:00
2024-09-28 19:48:11 +08:00
2024-09-28 19:48:11 +08:00
2024-09-22 12:37:38 +01:00
2024-09-22 12:37:38 +01:00
2024-09-22 12:37:38 +01:00
2024-09-22 12:37:38 +01:00
2024-04-13 10:16:26 +01:00
2024-09-23 08:42:49 +01:00
2024-09-30 10:07:07 +02:00
2023-02-10 18:21:06 +00:00
2024-09-30 16:13:00 +08:00
2023-02-25 11:43:36 +00:00
2024-09-22 12:37:38 +01:00
2023-04-11 10:26:15 +10:00
2022-02-16 12:02:11 -05:00
2023-04-11 10:26:15 +10:00
2023-03-31 17:58:30 +01:00
2023-04-05 23:19:43 +01:00
2024-01-20 22:15:47 +01:00
2024-02-24 17:24:55 +01:00
2024-04-12 17:25:00 +08:00
2024-09-22 12:37:38 +01:00
2023-09-23 16:10:16 +01:00
2024-03-23 13:31:34 +10:00
2024-09-22 12:37:38 +01:00
2024-10-10 19:38:35 +01:00
2023-11-26 12:31:41 +00:00
2024-09-22 12:37:38 +01:00
2024-10-10 19:38:35 +01:00
2023-02-12 20:35:57 +01:00
2022-01-07 02:28:35 +01:00
2020-06-12 22:51:42 -06:00
2024-09-28 19:48:11 +08:00
2022-06-18 13:58:46 +01:00
2020-09-26 22:28:29 +02:00
2022-01-07 02:28:35 +01:00
2022-01-07 02:28:35 +01:00
2024-09-28 19:48:11 +08:00
2022-02-17 15:00:59 -05:00
2022-12-16 13:14:48 +00:00
2024-02-07 22:11:27 +00:00
2024-02-07 22:11:27 +00:00
2023-02-25 11:42:43 +00:00
2023-02-16 16:41:13 +00:00
2022-06-10 12:22:28 +01:00
2022-12-16 13:14:48 +00:00
2024-07-10 09:57:03 +01:00
2023-11-14 19:41:05 +00:00
2024-03-18 21:17:51 +01:00
2024-04-22 08:12:08 +02:00
2024-02-20 15:13:22 +01:00
2023-10-12 13:42:14 +10:00
2024-10-03 09:28:55 +08:00
2024-09-22 20:58:17 +02:00
2024-09-22 20:58:17 +02:00
2022-12-16 13:14:48 +00:00
2022-12-16 13:14:48 +00:00
2024-09-30 16:13:00 +08:00
2022-12-16 13:14:48 +00:00

What is DCC++ EX?

DCC++ EX is the organization maintaining several codebases that together represent a fully open source DCC system. Currently, this includes the following:

  • CommandStation-EX - the latest take on the DCC++ command station for controlling your trains. Runs on an Arduino board, and includes advanced features such as a WiThrottle server implementation, turnout operation, general purpose inputs and outputs (I/O), and JMRI integration.
  • exWebThrottle - a simple web based controller for your DCC++ command station.
  • BaseStation-installer - an installer executable that takes care of downloading and installing DCC++ firmware onto your hardware setup.
  • BaseStation-Classic - the original DCC++ software, packaged in a stable release. No active development, bug fixes only.

A basic DCC++ EX hardware setup can use easy to find, widely avalable Arduino boards that you can assemble yourself.

Both CommandStation-EX and BaseStation-Classic support much of the NMRA Digital Command Control (DCC) standards, including:

  • simultaneous control of multiple locomotives
  • 2-byte and 4-byte locomotive addressing
  • 28 or 128-step speed throttling
  • Activate/de-activate all accessory function addresses 0-2048
  • Control of all cab functions F0-F28 and F29-F68
  • Main Track: Write configuration variable bytes and set/clear specific configuration variable (CV) bits (aka Programming on Main or POM)
  • Programming Track: Same as the main track with the addition of reading configuration variable bytes
  • And many more custom features. see What's new in CommandStation-EX?

Whats in this Repository?

This repository, CommandStation-EX, contains a complete DCC++ EX Commmand Station sketch designed for compiling and uploading into an Arduino Uno, Mega, or Nano.

To utilize this sketch, you can use the following:

  1. (beginner) our automated installer
  2. (intermediate) download the latest version from the releases page
  3. (advanced) use git clone on this repository

Not using the installer? Open the file "CommandStation-EX.ino" in the Arduino IDE. Please do not rename the folder containing the sketch code, nor add any files in that folder. The Arduino IDE relies on the structure and name of the folder to properly display and compile the code. Rename or copy config.example.h to config.h. If you do not have the standard setup, you must edit config.h according to the help texts in config.h.

What's new in CommandStation-EX?

  • WiThrottle server built in. Connect Engine Driver or WiThrottle clients directly to your Command Station (or through JMRI as before)
  • WiFi and Ethernet shield support
  • No more jumpers or soldering!
  • Direct support for all the most popular motor control boards including single pin (Arduino) or dual pin (IBT_2) type PWM inputs without the need for an adapter circuit
  • I2C Display support (LCD and OLED)
  • Improved short circuit detection and automatic reset from an overload
  • Current reading, sensing and ACK detection settings in milliAmps instead of just pin readings
  • Improved adherence to the NMRA DCC specification
  • Complete support for all the old commands and front ends like JMRI
  • Railcom cutout (beta)
  • Simpler, modular, faster code with an API Library for developers for easy expansion
  • New features and functions in JMRI
  • Ability to join MAIN and PROG tracks into one MAIN track to run your locos
  • "Drive-Away" feature - Throttles with support, like Engine Driver, can allow a loco to be programmed on a usable, electrically isolated programming track and then drive off onto the main track
  • Diagnostic commands to test decoders that aren't reading or writing correctly
  • Support for Uno, Nano, Mega, Nano Every and Teensy microcontrollers
  • User Functions: Filter regular commands (like a turnout or output command) and pass it to your own function or accessory
  • Support for LCN (layout control nodes)
  • mySetup.h file that acts like an Autoexec.Bat command to send startup commands to the CS
  • High Accuracty Waveform option for rock steady DCC signals
  • New current response outputs current in mA, overlimit current, and maximum board capable current. Support for new current meter in JMRI
  • USB Browser based EX-WebThrottle
  • New, simpler, function control command
  • Number of locos discovery command <#>
  • Emergency stop command <!>
  • Release cabs from memory command <-> all cabs, <- CAB> for just one loco address
  • Automatic slot (register) management
  • Automation (coming soon)

NOTE: DCC-EX is a major rewrite to the code. We started over and rebuilt it from the ground up! For what that means, you can read HERE.

More information

You can learn more at the DCC++ EX website

  • November 14, 2020
Description
No description provided
Readme GPL-3.0 32 MiB
Languages
C++ 84.4%
C 13.5%
PowerShell 1.6%
Shell 0.4%
Batchfile 0.1%