开云体育


Problems With dispatcher #dispatcher

 

Hello Friends
I would describe myself as a beginner when it comes to JRMI,been working on it around a week
The end goal is to automate a train.
As you see above i have entered Turnouts sensors and Signal Heads.I used SSL and i admit it was messy,so maybe thats come back to haunt me,but when i run a train Manually it seems to run nicely.Above you see a Train occupied in Platform 1.
Does it look okay?
So to the problem.I created a simple transit,using 3 sections Platform 1 to? a Turnout Block to A Mainline(left to right.
Everything looks good until i create a train in Dispatcher,as soon as i do the Dispatcher tells me the train is "waiting"and nothing happens
I have noticed the Green Lamp you see on Platform turns from Green to Red as soon as i run dispatcher,so its saying ahead is occupied but where.
Can anyone advise or ask me Questions to help solve
Again thanks for your time.


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

Interesting.? Thanks Trevor.? I'll go back and look at my udev rules again tomorrow.? Maybe I'm doing something that is causing it to link to the usb bus device rather than the tty.

Joel
?


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

I should also mention that I didn't manually set any options in jmri.conf or elsewhere when I set this up.? I just added the udev rules, then went in to JMRI and the DCCEX serial port was there for selection.
?
Trevor


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

OK, I should have checked first, and typed later...
?
I've just checked my laptop, and the DCCEX symbolic link isn't as I remember it.? It is just like Dave Sand's example.? Possibly I saw the bus/usb/xxx/yyy type of link when I was setting up my udev rules and before I had my final version established.
?
My current udev rule for my DCC-EX system is:
?
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idProduct}=="xxxx", ATTRS{idVendor}=="yyyy", SYMLINK+="DCCEX"
?
As you can see, the symbolic link name I'm using is the same as what Joel is trying to use (DCCEX), and JMRI works with it.
?
Here's the output from my System Console when starting this profile:
?
13:13:20,492 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- * JMRI log ** [main]
13:13:20,540 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is stored in file: /home/trevor/.jmri/log/session.log [main]
13:13:20,542 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is appended to file: /home/trevor/.jmri/log/messages.log [main]
13:13:20,631 apps.AppsBase ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- DecoderPro version 5.10+Rca461bd266 starts under Java 17.0.14 on Linux amd64 v6.8.0-53-generic at Tue Mar 11 13:13:20 ACDT 2025 [main]
13:13:23,646 apps.gui3.Apps3 ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile DCCEX_via_USB.3e69ea00 [main]
13:13:24,038 jmri.util.node.NodeIdentity ? ? ? ? ? INFO ?- Using be480800-a10f-4f01-98ed-c565af496af6 as the JMRI storage identity for profile id 3e69ea00 [AWT-EventQueue-0]
13:13:24,280 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "DCC++" [main]
13:13:24,450 jmri.jmrix.dccpp.serial.DCCppAdapter ?INFO ?- Connecting DCC++ to DCCEX User-Specified Port [main]
13:13:24,457 jmri.jmrix.dccpp.serial.DCCppAdapter ?INFO ?- DCC++: Port User-Specified Port opened at 115200 baud, sees DTR: true RTS: true DSR: false CTS: false DCD: false flow: NONE [main]
13:13:24,645 mrix.dccpp.DCCppInitializationManager INFO ?- DCC++ Initialization Complete [main]
13:13:25,657 jmri.jmrit.roster.Roster ? ? ? ? ? ? ?INFO ?- Reading roster file with rootFromName(/home/trevor/JMRI_Shared_Data/roster.xml) [main]
13:13:27,110 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path program: is /home/trevor/JMRI/ [main]
13:13:27,111 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path preference: is /home/trevor/JMRI_Shared_Data/ [main]
13:13:27,116 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path profile: is /home/trevor/.jmri/DCCEX_via_USB.jmri/ [main]
13:13:27,117 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path settings: is /home/trevor/.jmri/ [main]
13:13:27,121 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path home: is /home/trevor/ [main]
13:13:27,123 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path scripts: is /home/trevor/JMRI/jython/ [main]
13:13:28,050 t.permission.DefaultPermissionManager INFO ?- Permission file: /home/trevor/.jmri/.permissions.xml [main]
13:13:28,058 t.permission.DefaultPermissionManager INFO ?- Permission system is enabled: no [main]
13:13:34,655 jmri.jmrix.dccpp.DCCppCommandStation ?INFO ?- changing maxNumSlots from 12 to 50 [AWT-EventQueue-0]
13:13:34,738 jmri.jmrix.dccpp.DCCppCommandStation ?INFO ?- Station Type set to 'DCC-EX' [AWT-EventQueue-0]
13:13:34,741 jmri.jmrix.dccpp.DCCppCommandStation ?INFO ?- Build set to 'devel-202501021826Z' [AWT-EventQueue-0]
13:13:34,742 jmri.jmrix.dccpp.DCCppCommandStation ?INFO ?- Version set to '5.2.95' [AWT-EventQueue-0]
?
And a screenshot of my connection for this system:
?
So, based on my system, I can only say that JMRI can work with a DCC-EX system using a symbolic link to the USB port called "DCCEX".
?
Trevor.


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

I tried this again with the symlinks prefaced with "tty", but I still see the same behavior.? From the log it looks like the code is trying to connect to the devices before the additionl device names from the config file have actually been enumerated by the serial communication subsystem.? ??
?
Joel
?


Re: Track Analysis Tool #operationspro

 

Thank you Noel and Pete!
Noel - that’s pretty much how I have it set up.?
Pete - thanks for jogging my memory about putting 5# of coffee in a 3# can. ?I’ve done that before, just forgot. ?I don’t move cars “there” often so the 0’ long spurs will work nicely with the location and tracks I have set up as Noel describes.?


Re: NCE PowerPro with USB - no AIU getting to JMRI #nce

 

How is JMRI seeing 7.3.0 on a New System? That's seem its on the old system.
?
Inobu


Re: After Windows 11 upgrade I can no longer communicate via NCE USB module #nce #windows

 

I have put all four of the jumpers back on the board and changed to 19,200 in the advanced section.

I got a normal startup, I will monitor.

Thanks for the great help.

Bill

_____________________________________________
Bill Suarez - +1 508-735-7877 - wsuarez@...


From: "Ken Cameron via groups.io" <kcameron@...>
Sent: Monday, March 10, 2025 5:34 PM
To: [email protected]
Subject: Re: [jmriusers] After Windows 11 upgrade I can no longer communicate via NCE USB module

Bill S,
?
The 7.3.0 in the log says you have no jumpers on the NCE USB. That code tells JMRI that the system is a PowerCab and it has the old 1.28 firmware.. The error message says that’s not what you are telling the system connection.
?
If you have two profiles, one for a PowerCab so you can use it to have a programming track, another profile for an SB5, and both have the 1.65 firmware, you would do best to set all jumpers on the NCE USB. Then use 19,200 baud for the connection. You should see it report as 7.3.7 in the log which means all systems and both profiles would work correctly with their respective settings.
?
With a SB5 system it is important to set the right command station so JMRI know that only ops mode programming will work.
?
-Ken Cameron, Member JMRI Dev Team
?
?


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

I'm not sure if this will assist, but on my Linux laptop, I added udev rules to give my DCC-EX system a name that doesn't changed based on order of connecting USB devices, or which port it gets plugged into.? JMRI works successfully using that udev symbolic link name.
?
I'm not able to fire that laptop up right now, but my recollection is that my symbolic link looked very similar to what Joel showed (i.e. pointing to bus/usb/xxx/yyy)
?
I will check later today and confirm - just in case it helps.
?
Trevor


Re: NCE PowerPro with USB - no AIU getting to JMRI #nce

 

开云体育

Inobu,

?

Yes, the NCE USB device can only talk to a old command station like the PH1 or CS02 using the commands that throttles can do. Those command stations never had things like memory commands needed on the cab bus.

?

But the new PH5, with a built in serial USB, has all those commands of the old command stations, plus a few. Now we have the same sort of name issues that we have with the Power Pro vs PowerCab. Now we have the PH5 and new CS03 systems with this built in serial via USB, which is not the same as the NCE USB device.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: NCE PowerPro with USB - no AIU getting to JMRI #nce

 

I think Its from the Upgrade thread a few days ago. Instead of hijacking the thread a new one was started which is this one. Same person (Georgia).
?
I vaguely remember there is a command structure issue between the USB and Power Pro. The USB interface does not have the commands needed
to send the AIU info. SO the COmmand Station never see the AIU. This required the usage of the Serial Port.
?
Can't say 100% but it caused me to stop dealing with the AIU. It was too much trouble. Not sure if it is the case but keep it in mind.
?
Hopefully, someone will chime in and verify that it works or not.
?
Inobu


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

Joel,

A previous message had some list commands. ?The symbolic link looks strange. ?Here is what I see on a Raspberry Pi.
This is the udev rule:

SUBSYSTEM=="tty", ATTRS{interface}=="LocoBuffer-USB", SYMLINK+="ttyUSBLocoBuffer"

Dave Sand

----- Original message -----
From: "Joel Davidson via groups.io" <jrdst1100=[email protected]>
Subject: Re: [jmriusers] java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux
Date: Monday, March 10, 2025 3:30 PM

One thing I noticed is that if I define the devices in the udev rules as lower case names (dccex, tchlcc), then the names show up in the jmri config menu for the serial ports, but jmri still can't connect to them.? If I configure the jmri interface using ttyUSB0 and ttyUSB1 they connect ok.? Maybe I have multiple issues here?? Near as I can tell, all of the permissions are correct.??

Joel
?


Re: NCE PowerPro with USB - no AIU getting to JMRI #nce

 

开云体育

Inobu,

?

This case is a bit more involved or has mixed two different end users. I’m not 100% sure any more.

?

One case was about a user with a PowerCab and SB5. The other case was a user with a new PH5. The PH5, I walked him through a firmware update on the PH5. The PC/SB5 was running into the issue of which configuration the NCE USB needed to be to work with both setups. JMRI was complaining that the system code 7.3.0 was incorrect if he was using a SB5.

?

I’m hoping to see messages to night on either case, but I’m not sure if the threads have got mixed up. Last I heard on one of them was moving the AIU’s around found that one location wasn’t working but the other one was.

?

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: After Windows 11 upgrade I can no longer communicate via NCE USB module #nce #windows

 

开云体育

Bill S,

?

The 7.3.0 in the log says you have no jumpers on the NCE USB. That code tells JMRI that the system is a PowerCab and it has the old 1.28 firmware.. The error message says that’s not what you are telling the system connection.

?

If you have two profiles, one for a PowerCab so you can use it to have a programming track, another profile for an SB5, and both have the 1.65 firmware, you would do best to set all jumpers on the NCE USB. Then use 19,200 baud for the connection. You should see it report as 7.3.7 in the log which means all systems and both profiles would work correctly with their respective settings.

?

With a SB5 system it is important to set the right command station so JMRI know that only ops mode programming will work.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

One thing I noticed is that if I define the devices in the udev rules as lower case names (dccex, tchlcc), then the names show up in the jmri config menu for the serial ports, but jmri still can't connect to them.? If I configure the jmri interface using ttyUSB0 and ttyUSB1 they connect ok.? Maybe I have multiple issues here?? Near as I can tell, all of the permissions are correct.??

Joel
?


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

No good.? I tried changing just the config file to use ttyDCCEX and ttyTCHLCC, as well as changing the udev rules to create ttyDCCEX and ttyTCHLCC.? The devices get created as defined, but still seeing the same error on startup and the new devices don't appear in the connection configuration menu.

Joel
?


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

Joel,

Try including "tty" at the beginning of the device name, i.e. ttyDCCEX.

Dave Sand


----- Original message -----
From: "Joel Davidson via groups.io" <jrdst1100=[email protected]>
Subject: Re: [jmriusers] java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux
Date: Monday, March 10, 2025 2:48 PM

Thanks Dave.? Unfortunately, that didn't work either.? According to the comments in jmri.conf, for linux I don't need that path "/dev/", but I tried it both ways, using /dev/DCCEX as well as DCCEX, and in both cases the device wasn't found.
?
2025-03-10T14:30:37,129 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- * JMRI log ** [main]
2025-03-10T14:30:37,205 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is stored in file: /home/jmri/.jmri/log/session.log [main]
2025-03-10T14:30:37,210 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is appended to file: /home/jmri/.jmri/log/messages.log [main]
2025-03-10T14:30:37,325 apps.AppsBase ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- DecoderPro version 5.11.4+R87a9dadc80 starts under Java 17.0.14 on Linux aarch64 v6.1.21-v8+ at Mon Mar 10 14:30:37 CDT 2025 [main]
2025-03-10T14:30:38,045 gui3.Apps3 ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- Starting with profile HGVW.3f76bfa4 [main]
2025-03-10T14:30:38,343 node.NodeIdentity ? ? ? ? ? ? ? ? ? ? INFO ?- Using 6c786e77-a0ea-4429-9ee0-dba4434b6eea as the JMRI storage identity for profile id 3f76bfa4 [AWT-EventQueue-0]
2025-03-10T14:30:38,578 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "DCC++" [main]
2025-03-10T14:30:38,796 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - Serial port DCCEX not found: This port appears to have been shutdown or disconnected. [main]
2025-03-10T14:30:38,802 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - failed to connect DCC++ to DCCEX [main]
2025-03-10T14:30:38,805 jmrix.ConnectionConfigManager ? ? ? ? ERROR - Unable to create jmri.jmrix.dccpp.serial.configurexml.ConnectionConfigXml for [Element: <connection/>], load returned false [main]
2025-03-10T14:30:38,810 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.jmrix.ConnectionConfigManager: Unable to create several of your connections. [main]
2025-03-10T14:30:39,815 roster.Roster ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Reading roster file with rootFromName(/home/jmri/.jmri/HGVW.jmri/roster.xml) [main]
2025-03-10T14:30:54,942 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.util.startup.StartupActionsManager: jmri.util.prefs.InitializationException: Unable to run startup actions due to earlier failures. [main]
2025-03-10T14:31:03,014 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path program: is /opt/jmri/jmri_5.11.4/ [main]
2025-03-10T14:31:03,017 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path preference: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T14:31:03,020 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path profile: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T14:31:03,023 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path settings: is /home/jmri/.jmri/ [main]
2025-03-10T14:31:03,026 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path home: is /home/jmri/ [main]
2025-03-10T14:31:03,030 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path scripts: is /opt/jmri/jmri_5.11.4/jython/ [main]
2025-03-10T14:31:03,200 permission.DefaultPermissionManager ? INFO ?- Permission file: /home/jmri/.jmri/.permissions.xml [AWT-EventQueue-0]
2025-03-10T14:31:03,224 permission.DefaultPermissionManager ? INFO ?- Permission system is enabled: no [AWT-EventQueue-0]
2025-03-10T14:31:03,279 managers.DefaultShutDownManager ? ? ? INFO ?- Normal termination complete [Thread-2]
?
Config file (~/.jmri/jmri.conf):
default_options="--serial-ports=DCCEX,TCHLCC,sprog2"
?
Also tried with:
default_options="--serial-ports=/dev/DCCEX,/dev/TCHLCC,sprog2"
?
ll /dev/DCC*
lrwxrwxrwx 1 root root 15 Mar 10 14:42 /dev/DCCEX -> bus/usb/001/003
?
ll /dev/bus/usb/001/003
crw-rw-rw- 1 jmri staff 189, 2 Mar 10 14:42 /dev/bus/usb/001/003
?
id
uid=510(jmri) gid=501(staff) groups=501(staff),20(dialout),27(sudo)
?
So I think the permissions are all ok.? I'm baffled.

Joel
?
?


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

Thanks Dave.? Unfortunately, that didn't work either.? According to the comments in jmri.conf, for linux I don't need that path "/dev/", but I tried it both ways, using /dev/DCCEX as well as DCCEX, and in both cases the device wasn't found.
?
2025-03-10T14:30:37,129 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- * JMRI log ** [main]
2025-03-10T14:30:37,205 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is stored in file: /home/jmri/.jmri/log/session.log [main]
2025-03-10T14:30:37,210 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is appended to file: /home/jmri/.jmri/log/messages.log [main]
2025-03-10T14:30:37,325 apps.AppsBase ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- DecoderPro version 5.11.4+R87a9dadc80 starts under Java 17.0.14 on Linux aarch64 v6.1.21-v8+ at Mon Mar 10 14:30:37 CDT 2025 [main]
2025-03-10T14:30:38,045 gui3.Apps3 ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- Starting with profile HGVW.3f76bfa4 [main]
2025-03-10T14:30:38,343 node.NodeIdentity ? ? ? ? ? ? ? ? ? ? INFO ?- Using 6c786e77-a0ea-4429-9ee0-dba4434b6eea as the JMRI storage identity for profile id 3f76bfa4 [AWT-EventQueue-0]
2025-03-10T14:30:38,578 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "DCC++" [main]
2025-03-10T14:30:38,796 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - Serial port DCCEX not found: This port appears to have been shutdown or disconnected. [main]
2025-03-10T14:30:38,802 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - failed to connect DCC++ to DCCEX [main]
2025-03-10T14:30:38,805 jmrix.ConnectionConfigManager ? ? ? ? ERROR - Unable to create jmri.jmrix.dccpp.serial.configurexml.ConnectionConfigXml for [Element: <connection/>], load returned false [main]
2025-03-10T14:30:38,810 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.jmrix.ConnectionConfigManager: Unable to create several of your connections. [main]
2025-03-10T14:30:39,815 roster.Roster ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Reading roster file with rootFromName(/home/jmri/.jmri/HGVW.jmri/roster.xml) [main]
2025-03-10T14:30:54,942 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.util.startup.StartupActionsManager: jmri.util.prefs.InitializationException: Unable to run startup actions due to earlier failures. [main]
2025-03-10T14:31:03,014 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path program: is /opt/jmri/jmri_5.11.4/ [main]
2025-03-10T14:31:03,017 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path preference: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T14:31:03,020 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path profile: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T14:31:03,023 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path settings: is /home/jmri/.jmri/ [main]
2025-03-10T14:31:03,026 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path home: is /home/jmri/ [main]
2025-03-10T14:31:03,030 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path scripts: is /opt/jmri/jmri_5.11.4/jython/ [main]
2025-03-10T14:31:03,200 permission.DefaultPermissionManager ? INFO ?- Permission file: /home/jmri/.jmri/.permissions.xml [AWT-EventQueue-0]
2025-03-10T14:31:03,224 permission.DefaultPermissionManager ? INFO ?- Permission system is enabled: no [AWT-EventQueue-0]
2025-03-10T14:31:03,279 managers.DefaultShutDownManager ? ? ? INFO ?- Normal termination complete [Thread-2]
?
Config file (~/.jmri/jmri.conf):
default_options="--serial-ports=DCCEX,TCHLCC,sprog2"
?
Also tried with:
default_options="--serial-ports=/dev/DCCEX,/dev/TCHLCC,sprog2"
?
ll /dev/DCC*
lrwxrwxrwx 1 root root 15 Mar 10 14:42 /dev/DCCEX -> bus/usb/001/003
?
ll /dev/bus/usb/001/003
crw-rw-rw- 1 jmri staff 189, 2 Mar 10 14:42 /dev/bus/usb/001/003
?
id
uid=510(jmri) gid=501(staff) groups=501(staff),20(dialout),27(sudo)
?
So I think the permissions are all ok.? I'm baffled.

Joel
?
?


Re: java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

Joel,

Try using jmri.conf. ?Copy the installed version to ~/.jmri and modify it. ?

default_options="--serial-ports=/dev/ttyUSB_NCE_PH_Pro, /dev/ttyUSB_PowrCab”

Dave Sand


----- Original message -----
From: "Joel Davidson via groups.io" <jrdst1100=[email protected]>
Subject: [jmriusers] java portnamepattern not recognized until after connection fails #dcc-ex #linux #startup
Date: Monday, March 10, 2025 2:01 PM

I'm trying to get my new dcc system recognized by jmri running on linux.? Based on my reading of previous messages, I have my udev rules configured to create /dev/DCCEX and /dev/TCHLCC, and in my .bashrc I have
JMRI_OPTIONS= -Dpurejavacomm.portnamepattern=(ttyACM0|ttyUSB0|DCCEX|TCHLCC|sprog2)
?
At the moment I've only got my DCCEX connection configured in decoderpro, so I'm not worried about the LCC connection just yet.
?
When I start DecoderPro, I get an error that the device DCCEX is not found, and then later on in the log, I see DCCEX and TCHLCC are added as matching patterns for serial ports.? How can I get the matching patterns to be set?before?decoderpro tries to open the ports?? Here's my session.log:
?
2025-03-10T13:47:42,798 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- * JMRI log ** [main]
2025-03-10T13:47:42,860 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is stored in file: /home/jmri/.jmri/log/session.log [main]
2025-03-10T13:47:42,863 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is appended to file: /home/jmri/.jmri/log/messages.log [main]
2025-03-10T13:47:42,961 apps.AppsBase ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- DecoderPro version 5.11.4+R87a9dadc80 starts under Java 17.0.14 on Linux aarch64 v6.1.21-v8+ at Mon Mar 10 13:47:42 CDT 2025 [main]
2025-03-10T13:47:43,863 gui3.Apps3 ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- Starting with profile HGVW.3f76bfa4 [main]
2025-03-10T13:47:44,089 node.NodeIdentity ? ? ? ? ? ? ? ? ? ? INFO ?- Using 6c786e77-a0ea-4429-9ee0-dba4434b6eea as the JMRI storage identity for profile id 3f76bfa4 [AWT-EventQueue-0]
2025-03-10T13:47:44,299 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "DCC++" [main]
2025-03-10T13:47:44,534 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - Serial port DCCEX not found: This port appears to have been shutdown or disconnected. [main]
2025-03-10T13:47:44,540 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - failed to connect DCC++ to DCCEX [main]
2025-03-10T13:47:44,544 jmrix.ConnectionConfigManager ? ? ? ? ERROR - Unable to create jmri.jmrix.dccpp.serial.configurexml.ConnectionConfigXml for [Element: <connection/>], load returned false [main]
2025-03-10T13:47:44,550 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.jmrix.ConnectionConfigManager: Unable to create several of your connections. [main]
2025-03-10T13:47:45,647 roster.Roster ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Reading roster file with rootFromName(/home/jmri/.jmri/HGVW.jmri/roster.xml) [main]
2025-03-10T13:48:00,702 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.util.startup.StartupActionsManager: jmri.util.prefs.InitializationException: Unable to run startup actions due to earlier failures. [main]
2025-03-10T13:48:09,441 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path program: is /opt/jmri/jmri_5.11.4/ [main]
2025-03-10T13:48:09,444 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path preference: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T13:48:09,446 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path profile: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T13:48:09,449 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path settings: is /home/jmri/.jmri/ [main]
2025-03-10T13:48:09,452 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path home: is /home/jmri/ [main]
2025-03-10T13:48:09,455 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path scripts: is /opt/jmri/jmri_5.11.4/jython/ [main]
2025-03-10T13:48:10,552 permission.DefaultPermissionManager ? INFO ?- Permission file: /home/jmri/.jmri/.permissions.xml [main]
2025-03-10T13:48:10,563 permission.DefaultPermissionManager ? INFO ?- Permission system is enabled: no [main]
2025-03-10T13:48:11,237 throttle.PowerManagerButton ? ? ? ? ? INFO ?- No power manager instance found, panel not active [main]
2025-03-10T13:48:29,767 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding symlink port [serial1, serial0] [main]
2025-03-10T13:48:29,780 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding user-specified ports [TCHLCC, DCCEX] matching pattern (ttyACM0|ttyUSB0|DCCEX|TCHLCC|sprog2) [main]
2025-03-10T13:48:29,803 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding symlink port [serial1, serial0] [main]
2025-03-10T13:48:29,810 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding user-specified ports [TCHLCC, DCCEX] matching pattern (ttyACM0|ttyUSB0|DCCEX|TCHLCC|sprog2) [main]
2025-03-10T13:49:12,464 throttle.PowerManagerButton ? ? ? ? ? INFO ?- No power manager instance found, panel not active [Thread-5]
2025-03-10T13:49:16,538 managers.DefaultShutDownManager ? ? ? INFO ?- Normal termination complete [Thread-5]
?
Thanks.
?
Joel
--
Joel Davidson
Austin TX


java portnamepattern not recognized until after connection fails #startup #dcc-ex #linux

 

I'm trying to get my new dcc system recognized by jmri running on linux.? Based on my reading of previous messages, I have my udev rules configured to create /dev/DCCEX and /dev/TCHLCC, and in my .bashrc I have
JMRI_OPTIONS= -Dpurejavacomm.portnamepattern=(ttyACM0|ttyUSB0|DCCEX|TCHLCC|sprog2)
?
At the moment I've only got my DCCEX connection configured in decoderpro, so I'm not worried about the LCC connection just yet.
?
When I start DecoderPro, I get an error that the device DCCEX is not found, and then later on in the log, I see DCCEX and TCHLCC are added as matching patterns for serial ports.? How can I get the matching patterns to be set?before?decoderpro tries to open the ports?? Here's my session.log:
?
2025-03-10T13:47:42,798 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- * JMRI log ** [main]
2025-03-10T13:47:42,860 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is stored in file: /home/jmri/.jmri/log/session.log [main]
2025-03-10T13:47:42,863 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is appended to file: /home/jmri/.jmri/log/messages.log [main]
2025-03-10T13:47:42,961 apps.AppsBase ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- DecoderPro version 5.11.4+R87a9dadc80 starts under Java 17.0.14 on Linux aarch64 v6.1.21-v8+ at Mon Mar 10 13:47:42 CDT 2025 [main]
2025-03-10T13:47:43,863 gui3.Apps3 ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- Starting with profile HGVW.3f76bfa4 [main]
2025-03-10T13:47:44,089 node.NodeIdentity ? ? ? ? ? ? ? ? ? ? INFO ?- Using 6c786e77-a0ea-4429-9ee0-dba4434b6eea as the JMRI storage identity for profile id 3f76bfa4 [AWT-EventQueue-0]
2025-03-10T13:47:44,299 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "DCC++" [main]
2025-03-10T13:47:44,534 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - Serial port DCCEX not found: This port appears to have been shutdown or disconnected. [main]
2025-03-10T13:47:44,540 serial.DCCppAdapter ? ? ? ? ? ? ? ? ? ERROR - failed to connect DCC++ to DCCEX [main]
2025-03-10T13:47:44,544 jmrix.ConnectionConfigManager ? ? ? ? ERROR - Unable to create jmri.jmrix.dccpp.serial.configurexml.ConnectionConfigXml for [Element: <connection/>], load returned false [main]
2025-03-10T13:47:44,550 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.jmrix.ConnectionConfigManager: Unable to create several of your connections. [main]
2025-03-10T13:47:45,647 roster.Roster ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Reading roster file with rootFromName(/home/jmri/.jmri/HGVW.jmri/roster.xml) [main]
2025-03-10T13:48:00,702 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.util.startup.StartupActionsManager: jmri.util.prefs.InitializationException: Unable to run startup actions due to earlier failures. [main]
2025-03-10T13:48:09,441 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path program: is /opt/jmri/jmri_5.11.4/ [main]
2025-03-10T13:48:09,444 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path preference: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T13:48:09,446 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path profile: is /home/jmri/.jmri/HGVW.jmri/ [main]
2025-03-10T13:48:09,449 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path settings: is /home/jmri/.jmri/ [main]
2025-03-10T13:48:09,452 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path home: is /home/jmri/ [main]
2025-03-10T13:48:09,455 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path scripts: is /opt/jmri/jmri_5.11.4/jython/ [main]
2025-03-10T13:48:10,552 permission.DefaultPermissionManager ? INFO ?- Permission file: /home/jmri/.jmri/.permissions.xml [main]
2025-03-10T13:48:10,563 permission.DefaultPermissionManager ? INFO ?- Permission system is enabled: no [main]
2025-03-10T13:48:11,237 throttle.PowerManagerButton ? ? ? ? ? INFO ?- No power manager instance found, panel not active [main]
2025-03-10T13:48:29,767 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding symlink port [serial1, serial0] [main]
2025-03-10T13:48:29,780 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding user-specified ports [TCHLCC, DCCEX] matching pattern (ttyACM0|ttyUSB0|DCCEX|TCHLCC|sprog2) [main]
2025-03-10T13:48:29,803 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding symlink port [serial1, serial0] [main]
2025-03-10T13:48:29,810 jserialcomm.JSerialPort ? ? ? ? ? ? ? INFO ?- Adding user-specified ports [TCHLCC, DCCEX] matching pattern (ttyACM0|ttyUSB0|DCCEX|TCHLCC|sprog2) [main]
2025-03-10T13:49:12,464 throttle.PowerManagerButton ? ? ? ? ? INFO ?- No power manager instance found, panel not active [Thread-5]
2025-03-10T13:49:16,538 managers.DefaultShutDownManager ? ? ? INFO ?- Normal termination complete [Thread-5]
?
Thanks.
?
Joel
--
Joel Davidson
Austin TX