DCC++ Ethernet & Wifi Shield

Jean-Eric Jan 25, 2016

  1. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    New thread to focus on Connectivity...
     
    Scott Eric Catalano likes this.
  2. KC Smith

    KC Smith TrainBoard Member

    109
    111
    12

    Jean-Eric

    Could you change the thread name to DCC++ Ethernet & Wifi Shield
    Thanks
    KC
     
    Scott Eric Catalano likes this.
  3. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    I would love to of course! How do I do. I search but found no way. Before I contact administrator, did I miss something?


    JEZ
     
    Scott Eric Catalano likes this.
  4. KC Smith

    KC Smith TrainBoard Member

    109
    111
    12
    Perhaps just click on report on the first thread and asked to have DCC++ added to the header.
    I put a request in yesterday through to a forum moderator but haven't heard back.
    KC
     
    Scott Eric Catalano likes this.
  5. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Gregg/TwinDad
    Now that I have my setup using an Ethernet shield (tested as a WebServer with cable to router) .... Is there an example of code in our postings to use it wireless to connect Base station and Engine Driver?
    Steve
     
    Scott Eric Catalano likes this.
  6. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    Just did. Thank you Kevin
     
    Scott Eric Catalano likes this.
  7. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    So now the thread is ok, could you give me a reminder of what needs to be done to implement an Ethernet Shield to link a Base Station with JMRI?

    Thank you
     
    Scott Eric Catalano likes this.
  8. Gregg

    Gregg TrainBoard Member

    237
    311
    18
    Jean-Eric, is your question specific about the link back to JMRI or more generally about using an Ethernet Shield with Base Station? If the former, TD will have to weigh in here since I'm unfamiliar with JMRI. If the latter I can step you through the details and config parameters within the Base Station code. Can you remind me which specific shield are you using (and which motor shield)?
     
    Scott Eric Catalano likes this.
  9. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    Greg,
    I will need both.
    1- Setup the Ethernet
    2- Connect to JMRI

    I am currently using a Arduino Uno but with a dead Arduino MotorShield ;-)

    Tonight I will collect from the shop a brand new Arduino Mega, Arduino MotorShield, and Arduino Ethernet Shield.

    Thank you

    Jean-Eric
     
    Scott Eric Catalano likes this.
  10. Gregg

    Gregg TrainBoard Member

    237
    311
    18
    What is the specific Ethernet shield? There's one from Arduino.cc and one from Arduino.org. Both should work but I've only tested the latter myself.
     
  11. mikegillow

    mikegillow TrainBoard Member

    116
    117
    13
    FYI, see the DCC++ - JMRI thread. Attempting to operate a Base Station over an Ethernet connection to JMRI is currently not functioning (JMRI 4.3.2).

    I am using a Arduino.cc clone Ethernet shield on my Base Station. I simply had to plug it into my Mega and select it in Config.h before compiling the sketch. I am using the Pololu motor shield (I have some Arduino motor shields on order).
     
    Scott Eric Catalano likes this.
  12. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    image.png
    I ma planning to use this one:
     
    Scott Eric Catalano likes this.
  13. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    Ok thank you for explanation and Intel.
    Anyone successful with any other connection to JMRI than usb?
     
    Scott Eric Catalano likes this.
  14. Gregg

    Gregg TrainBoard Member

    237
    311
    18
    Jean-Eric, that Ethernet Shield should work fine with the Arduino Mega. In the DCC++ Base Station Config.h file there should be an option to select that specific model. The compiler will automatically select the proper library but you first need to download and install the library from the Arduino Org web site (the library built into the Arduino IDE will not work with this board). The Comm.h file should contain a link to the GitHub site for that library. Note that the library is part of the Arduino Org version of the IDE. You can download the entire Org IDE and install just the Ethernet2 library into the usual Arduino CC IDE (it's what I did on my own machine). Sort of a pain that you can't just download the library directly, and that the library is not readily available from the Arduino CC version of the IDE.

    If this sounds confusing, it is. Stems from the rift between the original founders of Arduino. Now there are two official Arduino IDEs, two official web sites, and of course two official versions of each board.
     
    Scott Eric Catalano likes this.
  15. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi Everyone

    From the DCC++ Software - JMRI thread

    I thought for a moment there, we were on the verge of a WiFi revolution.

    Anyway to that end, after lots of research I'm about to order one of these. In theory then the Base Station can become a standalone Host with lots of possibilities.

    And if I never get there I can no doubt use it on another project.

    It will be some time before it arrives though - slow route from China. Watch this space.

    Steve

     
    KC Smith, HVT, esfeld and 2 others like this.
  16. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi Everyone,

    I've recently been experimenting with an ESP8266 while waiting for the Yun shield to arrive.

    It's quite a capable little device. Trouble is there is a lot of information/misinformation out there.

    Anyway long story short, I've connected one (GND, RX, TX) to my mega Base Station as a serial wifi device and can send commands and receive replies over wifi from a kindle tablet.

    If anyone is interested and would like details, just ask.

    Possibilities for wireless throttles should be easy to do, the code can all reside on the one (esp8266) chip. Shame I don't have the coding skill for that just yet :( Oh and that can be done in C++ on the Arduino IDE.

    Steve.
     
  17. Jean-Eric

    Jean-Eric TrainBoard Member

    25
    24
    8
    Thank you Gregg. I am in the middle of the process to move to my new house. So As soon as I am in I will try that. Regards. Jean-Eric
     
    Scott Eric Catalano likes this.
  18. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi Everyone,

    In an update of my last post, I have figured out how to get DCC++Controller to connect directly (not via home network) to my ESP8266 WiFi Server/BaseStation.

    All working as expected, just a GND line issue to solve.

    Now if we could just port the app to phone/tablet ???.....Looking into that:unsure:
     
    HVT and Scott Eric Catalano like this.
  19. sierrasmith71

    sierrasmith71 New Member

    7
    13
    6
    Any details available?

    David G.
     
    Scott Eric Catalano likes this.
  20. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi David,

    Thanks for your interest. I'll try to get a how-to written up and posted in a day or two.

    If you'd like to experiment for yourself

    You'll need an esp8266 to play with, I got a few of these because they were very cheap and available without ordering from China. But any 8266 should work.

    esp8266WittyCloudDev.jpg

    Witty Cloud dev variant. Includes the serial programming interface on the lower board. You can separate and 'run' the top board on its own powered by 5V micro usb.

    Steve.
     
    Last edited: Feb 18, 2016

Share This Page