DCC++ Software - JMRI

TwinDad Jan 25, 2016

  1. Erik84750

    Erik84750 TrainBoard Member

    95
    52
    5
    Hi, if I understand this correctly I can adjust the baud rate in the DCCpp_UNO sketch to a lower rate then 115200 and still communicate between JMRI and DCC++ on the Arduino?
     
    Scott Eric Catalano likes this.
  2. RCMan

    RCMan TrainBoard Member

    123
    79
    5
    No, I believe you have to keep the 115200 baud rate as JMRI does not allow you to change it. The Baud rate pull down window in the DCC++ preferences is blank. That means no options other than the fixed 115200 baud rate.
     
    Scott Eric Catalano likes this.
  3. Erik84750

    Erik84750 TrainBoard Member

    95
    52
    5
    Thks! This limits the options in wireless communications. I experiment succesfully with HC-12 (868MHz) thanks to David Bodnar's work. But not much else would be possible. Is there any chance this option will become available in JMRI?
     
    Scott Eric Catalano likes this.
  4. safir3

    safir3 New Member

    2
    2
    3
    Hello all, I have a question regarding turnouts. I have my turnouts working in table list and layout editor however i would like to use control panel for block sensing etc. If i create an internal indicator turnout the icon changes in control panel and layout panel but will not switch the turnout. If I create a DCCPPT# turnout (there is a white cross on the icon) the turnout works but the internal icon does not. Any thoughts appreciated
     
    Scott Eric Catalano likes this.
  5. Kristine

    Kristine New Member

    7
    4
    1
    DCC++ and JMRI programming question -

    my 1st DCC and at present only DCC Locomotive is an OEM install of a tsunami DCC/sound card in a F/n3 55 ton 3 truck shay
    for my hardware I'm using an Arduino Mega with an Arduino motor shield, and presently have JMRI installed on my laptop, and control the loco using WiThrottle on my cell phone via Wifi connection. - this for basic functions works great!

    however, programing has been a challenge. when using the advanced programming interface from JMRI set to the same engine it almost seems as if the JMRI programmer isn't talking to the engine, then when I request to read the CV's is populated with 123 - looking, these settings always seem to be set to internal, however the default CV's look correct.

    when trying to talk to the loco via Direct CV programming, I've found that I needed to Set ACK_SAMPLE_THREASHOLD from 30 to 15, as well as everything for DCC++, and that this only works while set to and wired as the programming track.

    ideally, I would like to use the JRMI advanced programmer, but am not able to switch it to DCC++ on the main track, is there some sort of setting/work around that I'm missing.

    regards
    Kristine
     
    Scott Eric Catalano likes this.
  6. Kristine

    Kristine New Member

    7
    4
    1
    ha, figured it out. still a little weird, but I've been able to use the JMRI programmer now
     
    Scott Eric Catalano likes this.
  7. Erik84750

    Erik84750 TrainBoard Member

    95
    52
    5
    Hi Kristine, that is nice; can you describe what you did, it may be usefull for others reading this thread?
    Erik
     
    Scott Eric Catalano likes this.
  8. Kristine

    Kristine New Member

    7
    4
    1
     
    Scott Eric Catalano likes this.
  9. dompondaco

    dompondaco TrainBoard Member

    30
    3
    2
    I realize this threat is little over a year old, but original post back in 2016 said this is the place for JMRI issues/questions. Here's my situation. Using ATMEGA 2560 Vellman board with Pololu MC33926. Using JMRI verison 4.12+Rb6a9bb1. Using the DCC++ software connected to JMRI with USB port. All defaults in JMRI are set to DCC++. Basically things are working fine, I set up a loco which was previously programmed with a NEC system on the program track and tried to read some CVs. What I get is error 308 no acknowledge from loco. Put the loco on main track and it responds to throttle and light commands no problem. Back on the programming track loco does move sightly and light flashes when I try to read a CV but then JMRI shuts down the programmer with the error message (308). Any help if anyone still monitors this thread.
     
  10. Erik84750

    Erik84750 TrainBoard Member

    95
    52
    5
    For what it's worth (I haven't have time for the past year for my hobby) I remember this might have to do with the Polulu motor drive board. I used L298 arduino motor boards without issues on either program track or main track. Maybe check too with David Bodnar's fantastic website on this subject.
     
    dompondaco likes this.
  11. RCMan

    RCMan TrainBoard Member

    123
    79
    5
    I am running the Pololu MC33926 with JMRI verison 4.12+Rb6a9bb1 and works just in both in Windows 10 and Linux.

    First thing is check your JMRI preference 'Defaults for the DCC++ system that all the options are set for the DCC++ system, especially the programing. All 6 should be set for DCC++.

    Defaults
    [​IMG]

    If you are using multiple connections, e.g. a LocoNet Connection and a MERG Connection, the Defaults pane lets you select which connection you want to use for a particular purpose.

    The Internal connection is the default connection, however, since this is almost always undesirable, JMRI applications will notify you if the Internal connection is the default for every purpose. To silence this notification, edit the profile properties, setting the property jmri-managers.allInternalDefaults to true.
     
  12. dompondaco

    dompondaco TrainBoard Member

    30
    3
    2
    Thanks for your reply after all this time. After checking through the forum posts I made sure the default was set for DCC++. One thing I did notice was that when on the main I get 000,)% for current when the motor is running. This may have something to do with the CV not being read, will have to dig deeper. Glasd to hear great folks like yourself are still listening.
     
  13. dompondaco

    dompondaco TrainBoard Member

    30
    3
    2
    Completely understand lack of time for important stuff:whistle: I will follow your suggestion and look to David's site. I think the Pololu may be the problem as I get 0% current when the motor is running on the main track. seem to remember something about the Vref having to be set to correct value.
     
  14. NScaleKen

    NScaleKen TrainBoard Member

    37
    22
    2
    I use the Pololu MC33926 and a Uno, in the DCC++ sketch one needs to set the 'type of motor driver shield' setting from as I recall 0 to 1. the pins are slightly different and the 0 is for the default arduino shield, the 1 sets the sketch up for the Pololu. Sorry if that is something you already did, wasn't sure. As well, I had trouble reading CV's without a strong power supply. I am using a 350w 12v PSU of the type for a 3d printer or LED light display, as soon as I hooked that up I was having no problems with reading programming or running my Kato p42 with a digitrax sound decoder on full volume and lights.

    Edit: that setting for a Pololu motor shield is in Config.h its the first setting, change it to a 1 and save the sketch. Or open config.h in notepad++ (note regular notepad) and make the changes, then save from that app.
     
  15. dompondaco

    dompondaco TrainBoard Member

    30
    3
    2
    Thanks for your inputs. Yes first thing I did was to set the motor shield to a 1 for Pololu, nothing worked at first but this got it going. As far as power I am using a laptop power supply (15v 3Amp) I believe this is a regulated supply so there should be plenty of power for n scale decoder. I will try a real regulated power supply and see if that makes a difference.
     
  16. RCMan

    RCMan TrainBoard Member

    123
    79
    5
    Computer power supply's are good and are regulated, I use them all the time.

    What companies decoder are you trying to read, if it is Digtrax then I might have the fix. Ignore the power window for now, there is a sketch out there that is not setup correctly for that to work. i do not remember which one right now, mine does not work right either and have to find the correct files and recompile the sketch again.

    The Pololu is good for 3 amps and I am running 'G' Scale trains with it.
     
  17. Pieter

    Pieter TrainBoard Member

    49
    32
    4
    Check you pin settings: pin 2 to 8, 7 to 12, 9 to D12, 11 to D2PWM and cut traces 4, 10 & 12. Also check your connection to your programming track. Awhile ago I had similar 308 problem and it turned out my shield didn't sit 100% level on the Mega. If the shield feels a bit 'loose' bent one row of the pin slightly out.
     
  18. dompondaco

    dompondaco TrainBoard Member

    30
    3
    2
    OK thought computer power supply would be sufficient. It is s Digitrax decoder (DZ123). I will look through documents for sketch if I find it will let you know.
     
  19. dompondaco

    dompondaco TrainBoard Member

    30
    3
    2
    ok wiring is same as you mention (Assume you mean 9 to D2not rather than D12). Will check the wiring once again for loose/bad connections
     
  20. NScaleKen

    NScaleKen TrainBoard Member

    37
    22
    2
    I had to dig quite a long way into the Pololu to cut the traces, shockingly deep though I am not cutting a lot of traces, maybe once or twice a year for various Arduino projects. Seemed like the PCB is abnormally thick. I shined a light through the PCB till I knew it was cut. Kept scrapping, kept shining the light through and seeing I wasn't down to it yet, then when I got to it it seemed really tough to get to actually separate. I used the tip of an exacto knife, reversed it to make it a better micro wedge chisel and carefully dug away till it was done. Just my 1.1415 cents worth on that MC 33026 motor shield trace cutting.
     

Share This Page