DCC++ Update Project 2020

FlightRisk Feb 16, 2020

  1. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Went back and tried to do the manual method and it still errored out saying that config.h does not exist.

    Then did auto install and it works!
     
  2. Mani

    Mani TrainBoard Member

    76
    15
    4
    That's good. But just for FYI, if it says 'config.h' does not exist means it's missing may be renaming not done well or got deleted.


    Sent from my GM1901 using Tapatalk
     
  3. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Powered down the Arduino and powered up again. Uploaded the code and it errored out again.

    Wish I could figure out what I am doing wrong!
     
  4. lyncher

    lyncher TrainBoard Member

    16
    11
    14
    Alan,
    First, make sure you completely exit and restart the Arduino IDE inbetween changes to the file system (such as renaming files). The IDE only reads some stuff on startup.

    Second, if you haven't already, go into File>Preferences and check the two boxes for "Show verbose output during: [] compilation [] upload" . Restart the IDE and try the compile/upload sequence again. Use the "Copy error messages" button on the main window to copy all the error messages and post them here. That'll help a lot with others here in diagnosing your problem. -lyncher
     
  5. lyncher

    lyncher TrainBoard Member

    16
    11
    14
    oops, my bad, just saw the new thread on the config.h issue. Alan, please post the error messages over there. I'll respond over there. -lyncher
     
  6. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    I do not see a "COPY ERROR MESSAGES" button
     
  7. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Lets try this:

    CommandStation-EX:12:10: fatal error: config.h: No such file or directory
    ResolveLibrary(config.h) #include "config.h"
     
  8. Mani

    Mani TrainBoard Member

    76
    15
    4
    It's still saying 'config.h' missing.. that means that file did not exists.. check if the file exists in "CommendStation-EX" folder.. you may not renamed it properly or deleted the the file.

    Sent from my GM1901 using Tapatalk
     
  9. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    The file is present in the folder and it shows config.h
     
  10. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    FYI for those looking at posting. Problem solved thanks to lyncher. File extensions were hidden there for when I renamed the original file it ended up with two ( 2 ) extension which the IDE does not like.

    Always something simple!!
     
    FlightRisk and Sumner like this.
  11. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Is there a way to include a static IP address (of the base station) in the DCC++ EX basic Wifi version as it stands now ...... or will it be included at some time in the future? I have several wireless throttles that work with previous base station editions that have static IP addresses........and I would like to maintain continuity with them before testing EX.
     
  12. FlightRisk

    FlightRisk TrainBoard Member

    548
    237
    14
    So you were using an ESP8266 and the old WiFi code in the Base Station? Just checking since DCC++ Classic never had WiFi, but we did after Atani's version. Or were you using a wireless throttle connecting to your router and then connecting DCC++ to JMRI via the Ethernet Shield?

    For WiFi (connecting a WiThrottle compatible throttle directly to the CS) In Station mode the Router is responsible for choosing the IP address so there isn't a conflict. You connect the CS through the router to the IP of the CS. In AP mode, the CS is effectively the router and IP addresses it uses are not in the same network as any you might have elsewhere on your network. For WiFi, you can send any AT commands you like after boot, so you could add a sequence of commands in the .ino file to override it. You can test with the new <+> command so you could try <+CIPSTA_DEF:192.168.1.50> for station (client) mode or <+CIPAP_DEF xxx.xxx.xxx.xxx> for AP mode.
     
  13. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Using several CS code ... one that Steve Lowery and I worked on back in 2016 with ESP 8266 and Mikes (Atani) ESP32 version (having worked extensively with both Mike and Norm (Normhal on the ESP 32). I just find it easier to troubleshoot network connections if both CS and throttle have a static IP.
     
    FlightRisk likes this.
  14. BigJake

    BigJake TrainBoard Member

    3,259
    6,172
    70
    You can still have a "static" (unchanging) IP address if you reserve the IP address the router assigns. This is usually done via either an app or the router's administrative webpage, depending on the router.
     
  15. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Andy thanks ... I am aware of that route ... my question was if the DCC++ EX auto install utility (as opposed to download and compile) had a config file facility to enable a static IP of one choosing ......
     
  16. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Just received some Mega/8266 boards and am starting to experiment with them ...... is there a current reference to the dcc-ex start wifi-setup .. the link quoted throws a 404 erreo. Thanks
    Steve
     
  17. Ash

    Ash TrainBoard Member

    106
    66
    8
    There have been numerous changes in the website. Some of the links within need to be updated, and I use the (Chrome) browser on my PC when I have difficulty with the site on my phone.

    https://dcc-ex.com/reference/hardware/wifi-boards.html
    https://dcc-ex.com/reference//get-started/wifi-setup.html 404 error
    https://dcc-ex.com/advanced-setup/wifi-config.html
    https://dcc-ex.com/get-started/wifi-setup.html
     
  18. FlightRisk

    FlightRisk TrainBoard Member

    548
    237
    14
  19. FlightRisk

    FlightRisk TrainBoard Member

    548
    237
    14
    Not yet. We had a large discussion about the merits of static IP and how to handle that. Off the top of my head, the consensus was this was an advanced feature and we would provide instructions for usint <+> commands to send AT strings to the ESP-8266 to change it. That would not require a recompile, just sending config commands. I'll go over the notes to see where we stand on that. If you would like to contribute to the project, with an idea or some code you would like merged in, just let me know.
     
    Last edited: Dec 26, 2020
  20. huub

    huub New Member

    6
    2
    1
    Hello to all
    Just to let you know, I installed the latest version yesterday, and it worked perfect with ROCRAIL.
    Programming track speed is very fast now
    Best regards
    Huub
     

Share This Page