Introducing DCC++ ---a complete open-source DCC station and interface

Gregg Aug 25, 2015

  1. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi Dave,

    Thanks for testing, that's great news.

    You are just loading a page from the internet like any other, but I'm hoping everyone will now start to see the flexibility in this. The power is all in a bit of html code.

    You could indeed run Dave B's layout if he set things up that way, or anyone else's layout for that matter, it doesn't matter where the page comes from.
    However we're just testing the page formatting for now.

    Thanks again.

    Steve.
     
    Scott Eric Catalano likes this.
  2. ObiJay

    ObiJay New Member

    5
    6
    9
    I am looking at using this for my Z Scale layout. Is there a way to control this with a Standard Loconet throttle?
     
    Scott Eric Catalano likes this.
  3. oleoj

    oleoj New Member

    3
    4
    2
    Hi,
    I am new to DCC++ and still learning the basic. The tracks are done earlier and I have also added Faller car system to it and my goal is to use DCC++ for both the trains and the Faller car system.
    I have now been able to run my first setup with DCC++. I have been running my Roco locomotives + the Roco turnouts. I have also created a small c# program using the explanation in the "Commands for DCCpp basestation" on Github and the source code from Gregg. I just wanted to do that so that I understand the basics. One question about turnouts. When is the turnout thrown ?. I tough it was like this. Not thrown = straight and Thrown = to left or right. My Roco decoder is inverted ? It seems to be possible to switch this, but before I do, I want to make sure what the definition for Thrown is.

    To UK Steve if you read this, I have ordered the Wifi component, but it has not arrived. Keep up the good work.

    It seems like there is starting to be a little community around DCC++ and there are multiple software initiatives. Would it be an idea to join the forces and set up a little priority list on whats needed/wish list on things that would improve the solution. I have 20+ years experience in software development using c,c++ c# and different web application developer techniques like javascript, html and can help out if needed. I have some knowledge about java, but not much. I saw that someone mention that he had done some kind of web application with bootstrap. I am using bootstrap and other tool kits at work.

    Regards
    Ole
     
    Scott Eric Catalano and HVT like this.
  4. Dani

    Dani TrainBoard Member

    10
    17
    5
    Hello,

    I'm really new on DCC++, and I'm stunned about it. I just mounted one DCC++ command station using an Arduino UNO and had it working with JMRI in just a few minutes. Then I received some news from Rocrail, now it is also working with that software. This development is really getting famous. I would like to expand the possibilities of it and cooperate if possible, so I'm merging to the DCC++ code the MRRWA Loconet libraries. Now I'm able to move locomotive and activate functions through the Loconet connection and so manage trains with my throttles using an Arduino MEGA. Is not possible to use an Arduino UNO as both libraries (DCC++ and MRRWA Loconet) try to access the only existing high resolution hardware timer.

    But before that, I realized of two different behaviours in the standard DCC++ in comparison to my DCC command station:
    1) When a locomotive is removed from the track and put again on it, it "remembers" the speed and directions but not any function. If it had the lights on, when put again lights are off.
    2) With sound locomotives, I cannot activate the functions. May be sound functions are managed in a different way than normal functions?

    Is that normal? Someone else experienced that?

    Thanks,
    Dani
     
    Scott Eric Catalano and HVT like this.
  5. jafdezp

    jafdezp New Member

    3
    3
    5
    Hello,

    Yes, and the throttle of JMRI (I uses the 4.3.2 version) remains the lights "on", being necessary to turn off and on for recovering the lights functions. The same problem occurs with the Controller (Version 1.1.0)

    Greetings from Madrid,

    Jaime
     
    Scott Eric Catalano likes this.
  6. Davey H

    Davey H New Member

    3
    2
    8
    I've just joined Trainboard as I am fascinated by DCC++ and I thought I would tell you that the page loads and operates on the Ipad.

    Regards

    Davey
     
    Scott Eric Catalano likes this.
  7. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Thank you Davey,

    First report from an Apple user, good news.

    I'm currently working on the 'Page' to bring more features as suggested by Dave B. Also updating the server code to match.

    Could be a while 'till I get done. I'll post here as soon as.

    Steve.
     
    Scott Eric Catalano likes this.
  8. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    All,

    Here's a preview of the latest version of the Mobile Controller.

    All the buttons and switches are working now. The new additions are from suggestions by Dave B.

    Hope to have both sets of code tidied up very soon, and will be posting asap.

    Capture2.JPG

    Steve.
     
    Last edited: Mar 16, 2016
  9. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Looks great, Steve - Looking forward to giving it a try
    thanks!
    dave
     
    Scott Eric Catalano and HVT like this.
  10. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    All,

    New html and sketch is here, https://github.com/indev2/DCCpp-WebSocket

    Replace the html in its current directory with its other files or it won't load.

    Steve.

    Edit; On first use connect your Websocket and power up. Then hit Master Reset.
    This will clear and load the correct default values to the ESP8266 EEPROM.

    Then reconnect and enjoy. I await the inevitable bug reports. Thank You.

    Use Master Reset to terminate every session.
     
    Last edited: Mar 16, 2016
    Scott Eric Catalano likes this.
  11. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Steve - the front end looks nice!

    I copied the files to my server (see: http://trainelectronics.com/WiFi-esp8266/Setup/indexDCC++/indexDCC.html ) and the new control works but has lots of bugs.

    I don't see any packets going across from power on or off nor do I see anything from changes in direction or function buttons.
    The throttle changes come through but not with addresses above 255.
    I have tried the Master Reset but that doesn't seem to help -

    Could my issues be with the version on software that is on the ESP8266?

    dave
     
    Scott Eric Catalano likes this.
  12. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Dave,

    Yes, you will need to update to the new software. The sketch should be in the zip file from Github.

    Steve
     
    Scott Eric Catalano likes this.
  13. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Steve - All I see in the zip file is the HTML directory and a readme - am I missing something?
    dave
     
    Scott Eric Catalano likes this.
  14. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Yes, DCCppWebsocketServer.ino is definitely in the folder.

    Steve.

    Edit; Your link above still gets me the old page ?
     
    Scott Eric Catalano likes this.
  15. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    My error, Steve - I missed it lurking in the folder with the other files!
    The link gives me the updated file - try a shift/refresh to clear your buffer.

    dave
     
    Scott Eric Catalano likes this.
  16. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Much better now!
    Will do some more testing but most (all?) seems to be working properly
    thanks
    dave
     
    Scott Eric Catalano likes this.
  17. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Great stuff, thanks.

    Yes clearing the cache worked fine.

    Steve.
     
    Scott Eric Catalano likes this.
  18. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    WOW! .... I was traveling for a month (Cuba was fascinating) and can't believe what's been going on here .... I'm still trying to get Daves IR throttle working and now this new esp 8266 stuff is most exciting. UK Steve: have we got a hardware primer somewhere to get started so that I can catch up?
    Thanks
    Steve
     
    Scott Eric Catalano and HVT like this.
  19. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi Steve,

    If you just pop over to the Ethernet and WiFi thread Here then all my work is roughly documented there.
    It's only 2 pages, nothing heavy. To get started you just need a cheap ESP8266 module, suggestions are in my posts I think.
    That's it, all the rest is done in software, which I've posted on Github. Here.
    Dave B. is kindly hosting the 'Webpage' interface, which you can test on any device with a web browser. Here.

    Steve.
     
    Last edited: Mar 16, 2016
    Scott Eric Catalano and HVT like this.
  20. conrailandrew

    conrailandrew TrainBoard Member

    18
    29
    11
    This is looking really nice!

    Would it be possible to make a version with vertical sliders, as horizontal sliders aren't the easiest to operate when using only one hand on a phone while the other does switching stuff. (For me at least... ;) )

    Thanks,
    Andrew
     
    Last edited: Mar 16, 2016
    Scott Eric Catalano likes this.

Share This Page