Raspberry Pi 3 & Arduino DCC++

dfronin Mar 4, 2017

Tags:
  1. dfronin

    dfronin New Member

    9
    1
    8
    I'm having an issue where I can send regular commands on JMRI such as direction, lights, or speed. I can no longer program any decoders like I did under windows it also states "No Service Mode Programmer Available", "No Operations Mode Programmer Available" and the port is red when I go to the preferences. Anyone else have this issue?
     
  2. Atani

    Atani TrainBoard Member

    1,466
    1,736
    37
    what version of JMRI? Did you update any software on the rPi? Does the user you are running JMRI as have read/write access to /dev/ttyACM0? Does /dev/ttyACM0 exist?
     
  3. dfronin

    dfronin New Member

    9
    1
    8
    If I "ls /dev/tty*" ttyACM0 shows up on the list. Whether the user has read/write access I am not sure how to tell, but wouldn't it have access to write if it is sending messages to the decoders?
     
  4. Atani

    Atani TrainBoard Member

    1,466
    1,736
    37
    True, you should have write access if JMRI is sending normal commands. Didn't catch that. Just going down a list of possible reasons.

    Other possibilities.... Recently I observed a case where JMRI would default to Internal mode rather than DCC++ for the Programmer. When on the main roster page, if you select a loco does it have only the "Edit Only" radio button above Program? Also if you click on "New Loco" at the top does it default to "Internal" in the dropdown at the top?

    If so, you likely have encountered the same corruption in the JMRI profile as I did. Cause is not known yet but the solution is to recreate the profile (rename your JMRI preferences folder and have it recreate it, you can reimport your roster file as well)
     
  5. dfronin

    dfronin New Member

    9
    1
    8
    No worries... It does have only the "Edit Only" radio and defaults to internal when I click on "New Loco".

    Where is the "JMRI preferences" folder? I'm not familiar with JMRI under Linux.

    Thanks for the help...
     
  6. Atani

    Atani TrainBoard Member

    1,466
    1,736
    37
    Look in ~/JMRI I believe that is the default for linux (under your home directory). You can simply rename the folder and restart JMRI and it should recreate the preferences.
     
    Rajesh Desai and dfronin like this.
  7. dfronin

    dfronin New Member

    9
    1
    8
    AMAZING!!!! Renamed ~/.jmri (All the JMRI Preferences are contained here) to "~/.jmri-old". I restarted JMRI and it went through the "first time initialization options" and it worked.

    Bravo Zulu to ATANI!!! Thank you very much!
     
    Atani likes this.

Share This Page