1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 15:46:14 +01:00
Go to file
2021-06-09 08:58:27 +02:00
.github/workflows Update main.yml 2021-03-31 21:07:18 +01:00
.vscode Add readme add back extensions and settings from Dave and fix gitignore 2020-07-01 09:06:03 -04:00
Release - Architecture Doc Update Prod-Release-Notes.md 2021-01-21 10:19:34 -05:00
Release_Notes Update release_notes_v3.1.0.md 2021-05-15 22:13:33 -04:00
test subscriber topics ok 2021-05-07 09:08:09 +02:00
.gitattributes do not touch CR or CRLF of svg files 2020-11-26 15:55:52 +01:00
.gitignore Nano every2 (#129) 2021-03-07 15:58:35 -05:00
.travis.yml Initial commit 2020-05-25 01:43:34 -06:00
CommandDistributor.cpp Working inital version 2021-05-19 09:49:18 +02:00
CommandDistributor.h Passing outbound Ring to Withrottle 2020-10-26 13:31:51 +00:00
CommandStation-EX.ino Working inital version 2021-05-19 09:49:18 +02:00
config.example.h disabled WIFI andEthernet enabled MQTT 2021-05-20 16:31:13 +02:00
CONTRIBUTING.md Create CONTRIBUTING.md 2020-12-08 07:34:59 -05:00
csexpatch.sh addes v1 of the patch sh script 2021-04-16 21:24:16 +02:00
DCC.cpp Merge branch 'master' of https://github.com/DCC-EX/CommandStation-EX 2021-05-11 13:33:57 +01:00
DCC.h Fix auto rejoin after prog cmd (needs version n umber!) (#148) 2021-05-07 18:24:34 +01:00
DCCEX.h Working inital version 2021-05-19 09:49:18 +02:00
DCCEXParser.cpp Added ifndef to the <s> command not showing T/S/O 2021-06-07 09:42:46 +02:00
DCCEXParser.h Revisions to support Teensy 3.x and Teensy 4.x 2021-03-25 13:16:12 -04:00
DCCTimer.cpp Teensy/nanoEvery compiler warnings 2021-04-12 09:18:48 +01:00
DCCTimer.h Revisions to support Teensy 3.x and Teensy 4.x 2021-03-25 13:16:12 -04:00
DCCWaveform.cpp Fix auto rejoin after prog cmd (needs version n umber!) (#148) 2021-05-07 18:24:34 +01:00
DCCWaveform.h Fix auto rejoin after prog cmd (needs version n umber!) (#148) 2021-05-07 18:24:34 +01:00
defines.h Diag output over MQTT added 2021-06-03 21:42:14 +02:00
DIAG.h Diag output over MQTT added 2021-06-03 21:42:14 +02:00
DiagLogger.cpp Diag output over MQTT added 2021-06-03 21:42:14 +02:00
DiagLogger.h Diag output over MQTT added 2021-06-03 21:42:14 +02:00
EEStore.cpp <* *> wrapped diags 2021-03-25 14:23:38 +00:00
EEStore.h D EEPROM command 2020-10-04 21:20:13 +02:00
EthernetInterface.cpp <* *> wrapped diags 2021-03-25 14:23:38 +00:00
EthernetInterface.h MQ Init 2021-04-27 15:03:15 +02:00
freeMemory.cpp freememory() available more generally 2021-06-04 13:46:21 +02:00
freeMemory.h freememory() available more generally 2021-06-04 13:46:21 +02:00
FSH.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
GITHUB_SHA.h Committing a SHA 2021-05-16 02:13:48 +00:00
I2CManager.cpp Add I2C support functions 2021-03-31 12:19:55 +01:00
I2CManager.h Add I2C support functions 2021-03-31 12:19:55 +01:00
LCD_Implementation.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
LCD_LCD.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
LCD_NONE.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
LCD_OLED.h Update LCD_OLED.h 2021-03-31 12:24:32 +01:00
LCDDisplay.cpp Ensure loop2() doesn't run during initialisation if there's no display. 2021-03-16 22:02:39 +00:00
LCDDisplay.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
LCN.cpp <* *> wrapped diags 2021-03-25 14:23:38 +00:00
LCN.h Assorted bits (#138) 2021-03-23 10:37:05 -04:00
LICENSE Create LICENSE 2020-06-12 22:51:42 -06:00
LiquidCrystal_I2C.cpp Update LiquidCrystal_I2C.cpp 2021-04-03 23:22:13 +01:00
LiquidCrystal_I2C.h Add I2C support functions 2021-03-31 12:19:55 +01:00
MotorDriver.cpp Some additional fixes for typos. 2021-03-30 18:11:22 -04:00
MotorDriver.h Final Fix for T4 interrupts 2021-03-30 16:12:47 -04:00
MotorDrivers.h update driver for my shield 2021-04-16 15:27:49 +02:00
MQTTBrokers.h Broker handling / connection updated 2021-05-19 15:31:30 +02:00
MQTTCallbackHandlers.cpp Cleanup diags 2021-06-09 08:58:27 +02:00
MQTTInterface.cpp Refactored 2021-06-09 08:49:10 +02:00
MQTTInterface.h freememory() available more generally 2021-06-04 13:46:21 +02:00
objdump.bat Nano every2 (#129) 2021-03-07 15:58:35 -05:00
objdump.sh fix objdump.sh 2020-09-26 22:28:29 +02:00
ObjectPool.h Diag output over MQTT added 2021-06-03 21:42:14 +02:00
Outputs.cpp 3.0.9 newlines 2021-03-30 22:01:37 +01:00
Outputs.h add turnout, sensor and output states to 's'tatus message (#108) 2020-12-27 10:20:11 -05:00
platformio.ini More inital setup for MQTT 2021-04-27 09:56:16 +02:00
PWMServoDriver.cpp Add I2C support functions 2021-03-31 12:19:55 +01:00
PWMServoDriver.h Fix hanging turnouts 2020-07-23 12:48:38 +01:00
Queue.h Broker handling / connection updated 2021-05-19 15:31:30 +02:00
README.md Update README.md 2021-05-15 21:37:33 -04:00
release_notes.md Update release_notes.md 2021-05-15 22:12:09 -04:00
RingStream.cpp Working inital version 2021-05-19 09:49:18 +02:00
RingStream.h Working inital version 2021-05-19 09:49:18 +02:00
Sensors.cpp 3.0.9 newlines 2021-03-30 22:01:37 +01:00
Sensors.h no float in Sensor no more 2020-10-26 09:10:45 +01:00
SSD1306Ascii.cpp Update SSD1306Ascii.cpp 2021-04-13 23:13:27 +01:00
SSD1306Ascii.h Add I2C support functions 2021-03-31 12:19:55 +01:00
SSD1306font.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
SSD1306init.h Add I2C support functions 2021-03-31 12:19:55 +01:00
StringFormatter.cpp MQTT firt send/recv ok 2021-05-01 12:38:27 +02:00
StringFormatter.h update 2021-04-27 17:01:21 +02:00
Turnouts.cpp Fix turnout handling of EEPROM (#147) 2021-05-07 00:12:33 +01:00
Turnouts.h Fix turnout handling of EEPROM (#147) 2021-05-07 00:12:33 +01:00
version.h Update version.h 2021-05-14 23:49:04 -04:00
WifiInboundHandler.cpp <* *> wrapped diags 2021-03-25 14:23:38 +00:00
WifiInboundHandler.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
WifiInterface.cpp Frightrisk hostname fix (#144) 2021-04-27 10:37:54 -04:00
WifiInterface.h Nano every2 (#129) 2021-03-07 15:58:35 -05:00
WiThrottle.cpp Changed to Continuous analogReads for Teensy 2021-03-27 07:17:47 -04:00
WiThrottle.h Changed to Continuous analogReads for Teensy 2021-03-27 07:17:47 -04: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 manu 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. All sketch files are in the folder named CommandStation-EX and its subforlders.

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 to you, click HERE.

More information

You can learn more at the DCC++ EX website

  • November 14, 2020