DCC-EX Static IP

esfeld Apr 26, 2022

  1. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Has anybody had any success setting a DCC-EX command station to a static IP. I am still plagued by the inability of this feature to work. It is included in the code but does not work!
     
  2. Sumner

    Sumner TrainBoard Member

    2,829
    5,949
    63
    I couldn't get a mega that has WiFi on board to work in either mode but using a Makerfab WiFi shield on another mega got it to work in AP mode right away....

    http://1fatgmc.com/RailRoad/DCC/page-1.html

    Haven't tried what you are trying to do though.

    If you haven't done it I'd ask the question with the Discord Group.....

    https://discord.com/invite/PuPnNMp8Qf

    One way is use the Support (Open a ticket) option. They are usually quick to respond,

    Sumner
     
  3. Ash

    Ash TrainBoard Member

    106
    67
    8
    The parameter in config.h to define a static IP is applicable to Ethernet; it is not used for WiFi.

    To get the same IP address each time, reserve the IP address in your router. Probably easiest to let the CS connect the first time, so the router will have captured the mac address, etc., and then reserve that IP.

    ---------------- a second option ------------------
    Various WiFi settings can be defined using 'AT' commands. AT commands are entered directly into the serial monitor in real-time or as setup commands in the mySetup.h file.
    https://dcc-ex.com/reference/software/command-reference.html#wifi-at-commands

    And if you use the 'AT' commands, you may need to add
    #define DONT_TOUCH_WIFI_CONF
    https://dcc-ex.com/advanced-setup/wifi-config.html#define-dont-touch-wifi-conf

    Note that even when you define the static IP, you will still want to reserve it in your router.
     

Share This Page