UDP to DCC++

Chris Cook May 19, 2016

Tags:
  1. Chris Cook

    Chris Cook New Member

    5
    0
    1
    I have a DCC++ base station working on an Arduino Mega 2560 with a motor and network shield. I would like to be able to send commands to the base station via UDP. Has anyone else tried this or have any information on a UDP to DCC++ server.
     
  2. DrGonzo

    DrGonzo TrainBoard Member

    26
    5
    5
    Are you talking about UDP and TCP network protocols?
    In that case, UDP wouldn't work since there is no receipt confirmation mechanism.
     
  3. Chris Cook

    Chris Cook New Member

    5
    0
    1
     
  4. DrGonzo

    DrGonzo TrainBoard Member

    26
    5
    5
    Maybe I'm not understanding your question correctly..
    You are looking for a client / server network setup where some client device
    sends information to a DCC+ server via ethernet?
     
    Last edited: May 19, 2016
  5. Chris Cook

    Chris Cook New Member

    5
    0
    1
  6. Chris Cook

    Chris Cook New Member

    5
    0
    1
    I would like to develop a web front end to communicate with the base station....and again...thank you for your help.
     
  7. DrGonzo

    DrGonzo TrainBoard Member

    26
    5
    5
    OK.
    I'm not sure that an ethernet capable DCC++ server exists at this time.
    This might be something that Greg was planning on building at some point.
    At any rate - you should ask about this in the DCC++ thread.
     
  8. Chris Cook

    Chris Cook New Member

    5
    0
    1
    Thank you
     
  9. VernonNV

    VernonNV TrainBoard Member

    11
    2
    2
  10. TwinDad

    TwinDad TrainBoard Member

    1,844
    551
    34
    DCC++ already supports receiving commands over a TCP link... either wired or wireless. Check the "#define COMM_INTERFACE" in Config.h

    Just below that are #defines for the IP address, port, and MAC address of the Arduino.

    You'll want to check the most recent pages of the "Introducing DCC++" thread, and maybe a couple others in that folder... some folks have already developed a web based throttle that works in a browser and/or on a variety of mobile phones, etc...
     
    Chris Cook likes this.
  11. MarkInLA

    MarkInLA Permanently dispatched

    1,970
    80
    29
    Is this model railroading ? Or is it how to wire the panel of a cruise ship !! I went from analog to DCC with NCE and that was/ is just fine. What you guys are talking about in relation to this hobby, model trains, scares the beJeezus out of me !!
     
  12. RossNZ

    RossNZ TrainBoard Member

    12
    12
    5
    MarklinLA, Oh YES , its model railroading alright. At intelligent prices.
    The BIG difference is the cost of DCC++ compared to any other system. It is SO economical
     
  13. MarkInLA

    MarkInLA Permanently dispatched

    1,970
    80
    29
    Still not sure what you guys are doing. But whatever floats your boat (or train barge )... My handle is 'Mark in LA' , not 'MarklinLA as has been mistaken before....
     
  14. TwinDad

    TwinDad TrainBoard Member

    1,844
    551
    34
    Just working out the nuts and bolts of controlling a DCC layout remotely via a computer/network.
     
  15. DougL

    DougL TrainBoard Member

    82
    46
    10
    I know, right? And all we wanted was some frickin' sharks with frickin' laser beams on their heads.

    Now I am also looking forward to controlling the layout remotely. It all started when I read Bruce Chubb's article on computer control in (gasp) a hardcopy magazine, and a slippery slope from there.

    Following in the footsteps of more knowledgeable people. Got the NCE system up and running, now building a base station with an Arduino. Onward to remote control and a dead rail system. Step by small step.
     
    Simon Mitchell likes this.

Share This Page