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

Gregg Aug 25, 2015

  1. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Steve
    it's been along day ......... having trouble converting the file to html and transferring to my tablet ........ if you can please leave me what you can and I will continue in the morning. thank you
    Steve
     
    Scott Eric Catalano likes this.
  2. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Not sure what you mean by 'converting the file'. You just need to right click it and select rename. Then simply move the cursor to the end, go backspace 3 characters and type html.
    I have to post as a .txt as that is one of the few 'types' allowed on the forum. The underlying text in the file is your .html no conversion required.

    Steve.
     
    Scott Eric Catalano likes this.
  3. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    I know, I've done it many times when I do it now it opens with the HTML text in the browser not the actual site.
     
    Scott Eric Catalano likes this.
  4. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Strange, it works for me.

    Here's another version with some subtle changes to the background code that I just got done.
    Good night for now. I'm up very early.

    Don't forget the dependencies must be in the same location that you open from.
     

    Attached Files:

    Scott Eric Catalano likes this.
  5. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8

    Hello Greg,

    So I just did everything you suggest with my Mega (After lunch I will try with the UNO).
    Still -1 for acknowledgment :-(
    The short circuit protection did not trigger so I did not change the current-sample-max.

    Any new idea?

    Kind regards

    JEZ

    Update: I just compile for the UNO. Still the same problem...
     
    Last edited: May 5, 2016
    Scott Eric Catalano likes this.
  6. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Steve
    Got everything worked out overnight ...... thank you, again, for your patience. Hope you have a good day.
    Regards
    Steve F
     
    Scott Eric Catalano likes this.
  7. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    Is there any one else using Z scale for whom everything is working?

    Regards

    JEZ
     
    Scott Eric Catalano likes this.
  8. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi Steve,

    I'm back for the next several hours. Great to hear all is well.
    Were there any issues that I might need to work on?

    Steve.
     
    Scott Eric Catalano likes this.
  9. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Steve
    No issues at all ... renders beautifully on tablet and phone ... had to jigger a bunch to convert it to html as just renaming did not work ...... I am sure it's some configuration error on my desktop computer. Thank you again. Anxiously awaiting your further development.
    Regards
    Steve F
     
    Scott Eric Catalano likes this.
  10. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    I'm thinking a CV programming page might be useful. Then further along perhaps a turnout switchboard, though that'll be when my programming skills are somewhat better. ;-)
    Of course if you or anyone else can think of anything, I'm up for the challenge.

    S
     
    Scott Eric Catalano likes this.
  11. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8

    Problem Solved!
    When I build my Programing track I did not use the track with capacitor and anti parasite system from marklin (ref:8590). Just a track with two wires. I tried back with the marklin ref 8590 (including capacitor) and it works whatever the voltage used and without the modification with analogReference function

    Now I can go forward with JMRI

    Thank you for your support!!$

    JEZ
     
    Scott Eric Catalano likes this.
  12. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Hi Gregg .... interesting ps ..in my builds I bent the Vin pin out of the way instead of cutting the trace ...... I use the same 15 volt power to the motor shield yo do ...... are you saying that with a 12 volt power to the motor shield I can bend the pin back for Vin and do away with a power wire to the UNO?
    Steve
     
    Scott Eric Catalano likes this.
  13. w8one

    w8one TrainBoard Member

    89
    109
    5
    I looked in SerialCommand.cpp and the D command it still there. It is a capital D you have to send in the serial monitor window. Here is the usage instructions https://github.com/DccPlusPlus/BaseStation/wiki/Diagnostics---D---Command I hope this helps.
     
    Scott Eric Catalano likes this.
  14. KC Smith

    KC Smith TrainBoard Member

    109
    111
    12
    UK Steve,

    Nice layout Steve your on a hot streak.

    An idea came to mind, some future version of this Web throttle with a live video image in the upper center of the throttle, above the power switch, which shows the Engineers scale view of the layout as its running.

    During holiday public displays, we run a few HO scale engines with small video cameras in the front cabs nose that show a live video feed to a wall projector for the audience to see a engineers scale view of train running on the layout. Would be nice to feed this video back up to the throttle.

    In theory this should allow a grandchild in one part of the world using this Web Throttle to be running an engine on his grandparents large home layout in another part of the world and be seeing the layout live from a ground level scale perspective.

    A Model Railroad Engine Drone...

    Don't mind me I was just having a "Image If" moment while having my morning coffee......

    Kevin
     
    Last edited: May 7, 2016
    Scott Eric Catalano likes this.
  15. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Sweet idea Kevin,

    Not sure what work has been done re video streaming but I like the concept. Leave it with me ;-)

    Steve.
     
    Scott Eric Catalano and KC Smith like this.
  16. crusader27529

    crusader27529 TrainBoard Member

    247
    167
    11
    The <D> command is NOT in the 1.2.1 version of Base Station, but it IS in the 2.0 version.

    It'd be nice to know which features & enhancements were in various versions instead of guessing based on a date in the topic postings.
     
    Scott Eric Catalano likes this.
  17. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Steve F,

    Hi Steve, I've done some more housekeeping on the 'Page' code. Managed to get rid of 5KB of clutter and added a few refinements.
    No more guesswork on the throttle settings, you get a precise readout before you let go and send the command to Base Station.
    Let me know if you would like a fresh copy.

    Steve.
     
    Last edited: May 8, 2016
    Scott Eric Catalano likes this.
  18. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Always ready for your latest work. I hope you are aware of how appreciative I am of your efforts.
    Steve, how hard would it be to incorporate a simple IP scanner into the page? Since I use so many ESPs I always check (with an IP scanner) to insure that I have the correct IP to enter.
    Regards
    Steve F
     
    Last edited: May 9, 2016
    Scott Eric Catalano likes this.
  19. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi Steve,

    That's a tricky one. When the ESP first boots up, and logs on to your network. The IP that your router assigns is output along with other bits of info, and this goes direct over the hardware serial line.
    You can read it in any serial monitor attached at the time.
    The problem for us being on the wifi side, is that we've yet to establish a connection to be able to get at that data. However all is not lost.
    What I have found, and I hope may apply in your case. Is that your router, even though it assigns clients with DHCP, tends to always issue the same IP address to known MAC addresses of devices
    logging on to the network. In my case once a device (the ESP) has been assigned an IP in the first instance, it will get the same address over and over.
    There is a feature in the page code where by you hard code the known IP, then using the spiffs server method calling the matched page. Or starting a matched example locally, it will auto connect
    the websocket instantly. This saves any user input of IP addresses, just needs a bit of forward planning.

    Hope the above makes sense. Let me know if you need help.

    Steve.
     
    Scott Eric Catalano likes this.
  20. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Steve
    Got it, so if I put "ws//10.0.0.11/ws" here: onclick="connect(server.value)">Connect</button> .... in place of server.value would I always connect to ESP 10.0.0.11? ...... or on second thought put it in: placeholder="Server 'IP Address'" .... instead of ...Server 'IP Address
    Steve F
     
    Last edited: May 9, 2016
    Scott Eric Catalano likes this.

Share This Page