Serial monitor questions

Peter Hagenaars Mar 30, 2017

  1. Peter Hagenaars

    Peter Hagenaars TrainBoard Member

    18
    19
    8
    Hi,

    In the document "Commands for DCCpp BaseStation" it states that <e> should erase all definitions from EEPROM. I have tried it numerous times, but <e> does not erase anything.
    Now I have to erase each item individually.

    Furthermore the serial monitor has options to influence the output lines: No line ending, Newline, Carriage return and Both NL & CR. But no matter which settings I use, the outputs are all placed behind each other.
    It is rather hard to read when multiple commands have been given. I cannot empty the serial monitor window, so now every time the line is too long I have to close and re-open the serial monitor.

    - Why doesn't command <e> erase all from EEPROM?
    - Why doesn't the serial monitor e.g. feed new lines?

    Thanks for you help.
     
    Scott Eric Catalano likes this.
  2. Jimbo20

    Jimbo20 TrainBoard Member

    274
    178
    11
    Hi,
    I can't answer the question about <e> command - I must admit I've never tried it, I always individually erase each setting as required, rather than losing the whole lot!

    As regards the new line problem, the settings in the serial monitor only change what is sent to the DCC++ Arduino. What comes up on the screen is what the DCC++ Arduino sends back, and that doesn't seem to include any newline characters.

    If I need to monitor the returned strings in more detail, I tend to use Putty, a freeware terminal program, with this the characters 'wrap' in the window so making it more readable. You can also scroll up and down the screen of data.

    http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html


    Jim
     
    Last edited: Mar 30, 2017
    Scott Eric Catalano likes this.
  3. Peter Hagenaars

    Peter Hagenaars TrainBoard Member

    18
    19
    8
    Hi Jim,

    Thanks for your answer. I have recently started with dcc++ and am trying all sorts of things. So erasing all at once could be useful to start fresh. Now I delete everything piece by piece. But if <e> does not do the job, well so be it.

    Also thanks for the link but PuTTY is for Windows and I use a MacBookPro, but I can use your tip to use an external monitor. I'll look for one for my Mac and try that.

    Best regards,
    Peter
     
    Scott Eric Catalano likes this.
  4. Jimbo20

    Jimbo20 TrainBoard Member

    274
    178
    11
    Glad it helped Peter, I'm pretty new to railway modelling, and only 'discovered' DCC++ just before Christmas. I've started to build a very small n-gauge layout using an Arduino Nano as the DCC++ controller, which works fine so far.

    I'm also experimenting with an ESP8266 connected to the Nano, and this runs an automated shuttle railbus, and at the same time the ESP receives WiFi commands from a Handheld throttle (based on Dave Bodnars design), so I can manually control a shunter and 3 sets of points in a goods yard.
    Regards,
    Jim
     
    Scott Eric Catalano likes this.
  5. Peter Hagenaars

    Peter Hagenaars TrainBoard Member

    18
    19
    8
    Hi Jim,

    I am more than 40 years in railway modeling and have a (substantial) H0 scale layout all digitalized and automatically running with software (not JMRI).
    Last month I discovered dcc++ and want to use it with a small shunting layout. This consists of 6 blocks and 5 turnouts.
    I intend to use a free software program called Rocrail to run the trains. I learned that the switches can be operated with DCC stationary decoders and/or relais.

    My goal is to have 2 or 3 diesel engines running fully automated by Rocrail and 3 switches controlled by relais and 2 switches controlled by a DCC decoder. So far the prospects are looking good.

    By the way, strange that no one else has experienced (my) problems with the Arduino Serial Monitor. I can hardly imagine that I am the only one...
     
    Scott Eric Catalano likes this.

Share This Page