开云体育

Date

Locked Re: Problems with Persistent PI4 USB ports

 

开云体育

I’m running 5.9.3 currently and could update to .4 as a test.?

John ?Bauchiero
- D&H Model Railroad
- NCE PH-Pro & PowerCab, Pi4B, DCC-EX
- JMRI current test version

On Sep 29, 2024, at 12:20?AM, Dave Sand via groups.io <ds@...> wrote:

?
John,

What version of JMRI are you running? ?

The serial library changed after 5.6. ?I believe the symbolic device link issue was fixed with 5.9.3.

Dave Sand


----- Original message -----
From: John Bauchiero <john4dhmr@...>
Subject: Re: [jmriusers] Problems with Persistent PI4 USB ports
Date: Saturday, September 28, 2024 9:38 PM

Robert,

Incorrect terminology. ?As you stated, I updated the ?'10-usb-serial.rules’ file to the new idVendor and idProduct codes for the new PHPro adapter, then reloaded ?’sudo udevadm trigger’ ?and devices un-plugged and plugged, with the results ?‘ls -l /dev/ttyUSB*’ showing the assigned bindings.?

My deviation to your process was not using - the rules need to be reloaded ("sudo udevadm control -R") and the device unpluged and plugged in again - which I will try tomorrow. ?Different process but same results, that I don’t know?

It’s the fact that JMRI doesn’t acknowledge the bound devices in port connections is what perplexes me. They were there once before, when it stopped I don’t know.?
?
John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version

On Sep 28, 2024, at 9:35?PM, Robert Heller via groups.io <heller@...> wrote:

At Sat, 28 Sep 2024 21:21:40 -0400 [email protected] wrote:



When assigning connections for my two NCE CS, I used to be able to select
for each NCE CS connection the communication port by the names as assigned
in persistent bindings. This came to light when my RS232 to USB adapter
needed replacement. The new adapter has different idVendor and idProduct
codes than its predecessor. The bindings dialog was updated and binds as
desired but in Preferences > Connections does not show up as the available
serial ports. All that is available is USB0 and USB1, when I used to see
'NCE_PHPro' and "NCE_PowerCab". Thereby, always attaching to the correct
product by its assign names to its intended port.

I am not sure what the bindings dialog is, but the usual way of creating
persistent names for devices is with udev rules. These rules use the idVendor
and idProduct values. So, somewhere in /etc/udev/rules.d/ is a file with a
name ending in .rules that needs to be updated with the new idVendor and
idProduct codes for your new RS232 to USB adapter. Then the rules need to be
reloaded ("sudo udevadm control -R") and the device unpluged and plugged in
again.


I'm trying to determine what caused this change, an upgrade of PiOS, JMRI or
the introduction of the new adapter? Now it is hit or miss as to which
device gets which port. If I check ' ls -l /dev/ttyUSB* ' I see the devices
as they were assigned.

Has anyone experienced this issue? I am assuming new versions of the PiOS
may not respond to the bindings the same as older version but why would that
have changed?.

John ?Bauchiero
- D&H Model Railroad
- NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version










--
Robert Heller ????????????-- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software ???????-- Custom Software Services
http://www.deepsoft.com/ ?-- Linux Administration Services
heller@... ??????-- Webhosting Services







Locked Re: Problems with Persistent PI4 USB ports

 

John,

What version of JMRI are you running? ?

The serial library changed after 5.6. ?I believe the symbolic device link issue was fixed with 5.9.3.

Dave Sand


----- Original message -----
From: John Bauchiero <john4dhmr@...>
Subject: Re: [jmriusers] Problems with Persistent PI4 USB ports
Date: Saturday, September 28, 2024 9:38 PM

Robert,

Incorrect terminology. ?As you stated, I updated the ?'10-usb-serial.rules’ file to the new idVendor and idProduct codes for the new PHPro adapter, then reloaded ?’sudo udevadm trigger’ ?and devices un-plugged and plugged, with the results ?‘ls -l /dev/ttyUSB*’ showing the assigned bindings.?

My deviation to your process was not using - the rules need to be reloaded ("sudo udevadm control -R") and the device unpluged and plugged in again - which I will try tomorrow. ?Different process but same results, that I don’t know?

It’s the fact that JMRI doesn’t acknowledge the bound devices in port connections is what perplexes me. They were there once before, when it stopped I don’t know.?
?
John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version

On Sep 28, 2024, at 9:35?PM, Robert Heller via groups.io <heller@...> wrote:

At Sat, 28 Sep 2024 21:21:40 -0400 [email protected] wrote:



When assigning connections for my two NCE CS, I used to be able to select
for each NCE CS connection the communication port by the names as assigned
in persistent bindings. This came to light when my RS232 to USB adapter
needed replacement. The new adapter has different idVendor and idProduct
codes than its predecessor. The bindings dialog was updated and binds as
desired but in Preferences > Connections does not show up as the available
serial ports. All that is available is USB0 and USB1, when I used to see
'NCE_PHPro' and "NCE_PowerCab". Thereby, always attaching to the correct
product by its assign names to its intended port.

I am not sure what the bindings dialog is, but the usual way of creating
persistent names for devices is with udev rules. These rules use the idVendor
and idProduct values. So, somewhere in /etc/udev/rules.d/ is a file with a
name ending in .rules that needs to be updated with the new idVendor and
idProduct codes for your new RS232 to USB adapter. Then the rules need to be
reloaded ("sudo udevadm control -R") and the device unpluged and plugged in
again.


I'm trying to determine what caused this change, an upgrade of PiOS, JMRI or
the introduction of the new adapter? Now it is hit or miss as to which
device gets which port. If I check ' ls -l /dev/ttyUSB* ' I see the devices
as they were assigned.

Has anyone experienced this issue? I am assuming new versions of the PiOS
may not respond to the bindings the same as older version but why would that
have changed?.

John ?Bauchiero
- D&H Model Railroad
- NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version










--
Robert Heller ????????????-- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software ???????-- Custom Software Services
http://www.deepsoft.com/ ?-- Linux Administration Services
heller@... ??????-- Webhosting Services







Locked Re: Problems with Persistent PI4 USB ports

 

开云体育

Robert,

Incorrect terminology. ?As you stated, I updated the ?'10-usb-serial.rules’ file to the new idVendor and idProduct codes for the new PHPro adapter, then reloaded ?’sudo udevadm trigger’ ?and devices un-plugged and plugged, with the results ?‘ls -l /dev/ttyUSB*’ showing the assigned bindings.?

My deviation to your process was not using - the rules need to be reloaded ("sudo udevadm control -R") and the device unpluged and plugged in again - which I will try tomorrow. ?Different process but same results, that I don’t know?

It’s the fact that JMRI doesn’t acknowledge the bound devices in port connections is what perplexes me. They were there once before, when it stopped I don’t know.?
?
John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version

On Sep 28, 2024, at 9:35?PM, Robert Heller via groups.io <heller@...> wrote:

At Sat, 28 Sep 2024 21:21:40 -0400 [email protected] wrote:



When assigning connections for my two NCE CS, I used to be able to select
for each NCE CS connection the communication port by the names as assigned
in persistent bindings. This came to light when my RS232 to USB adapter
needed replacement. The new adapter has different idVendor and idProduct
codes than its predecessor. The bindings dialog was updated and binds as
desired but in Preferences > Connections does not show up as the available
serial ports. All that is available is USB0 and USB1, when I used to see
'NCE_PHPro' and "NCE_PowerCab". Thereby, always attaching to the correct
product by its assign names to its intended port.

I am not sure what the bindings dialog is, but the usual way of creating
persistent names for devices is with udev rules. These rules use the idVendor
and idProduct values. So, somewhere in /etc/udev/rules.d/ is a file with a
name ending in .rules that needs to be updated with the new idVendor and
idProduct codes for your new RS232 to USB adapter. Then the rules need to be
reloaded ("sudo udevadm control -R") and the device unpluged and plugged in
again.


I'm trying to determine what caused this change, an upgrade of PiOS, JMRI or
the introduction of the new adapter? Now it is hit or miss as to which
device gets which port. If I check ' ls -l /dev/ttyUSB* ' I see the devices
as they were assigned.

Has anyone experienced this issue? I am assuming new versions of the PiOS
may not respond to the bindings the same as older version but why would that
have changed?.

John ?Bauchiero
- D&H Model Railroad
- NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version











--
Robert Heller ????????????-- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software ???????-- Custom Software Services
http://www.deepsoft.com/ ?-- Linux Administration Services
heller@... ??????-- Webhosting Services








Locked Re: JMRI Error: Service mode programmer NCE is offline. #nce

 

开云体育

Hi En-TACT

?

Is your Power Cab plugged in to the PCP (Panel) ?

Do you have the PCP Red LED illuminated ?

?

Regards

Marcus

?

From: [email protected] <[email protected]> On Behalf Of En-TACT
Sent: Sunday, 29 September 2024 10:54 AM
To: [email protected]
Subject: Re: [jmriusers] JMRI Error: Service mode programmer NCE is offline. #nce

?

20:52:47,554 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- * JMRI log ** [main]
20:52:47,578 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is stored in file: C:\Users\ncred\JMRI\log\session.log [main]
20:52:47,578 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is appended to file: C:\Users\ncred\JMRI\log\messages.log [main]
20:52:47,608 apps.AppsBase ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- DecoderPro version 5.8+Rbc21ce2ce7 starts under Java 11.0.21 on Windows 10 amd64 v10.0 at Sat Sep 28 20:52:47 EDT 2024 [main]
20:52:47,743 apps.gui3.Apps3 ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile My_JMRI_Railroad.3f401755 [main]
20:52:47,910 jmri.util.node.NodeIdentity ? ? ? ? ? INFO ?- Using e0cbe18a-b6bd-4cd2-9171-60bb6dd788d2 as the JMRI storage identity for profile id 3f401755 [AWT-EventQueue-0]
20:52:47,993 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "NCE" [main]
20:52:48,062 .jmrix.nce.usbdriver.UsbDriverAdapter INFO ?- Connecting NCE USB to COM4 USB Serial [main]
20:52:48,066 .jmrix.nce.usbdriver.UsbDriverAdapter INFO ?- Port COM4 USB-SERIAL CH340 (COM4) opened at 19200 baud, sees DTR: true RTS: true DSR: false CTS: false DCD: false flow: NONE [main]
20:52:48,463 jmri.jmrit.roster.Roster ? ? ? ? ? ? ?INFO ?- Reading roster file with rootFromName(C:\Users\ncred\JMRI\My_JMRI_Railroad.jmri\roster.xml) [main]
20:52:48,735 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path program: is C:\Program Files (x86)\JMRI\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path preference: is C:\Users\ncred\JMRI\My_JMRI_Railroad.jmri\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path profile: is C:\Users\ncred\JMRI\My_JMRI_Railroad.jmri\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path settings: is C:\Users\ncred\JMRI\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path home: is C:\Users\ncred\ [main]
20:52:48,737 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
20:52:58,206 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:52:58,316 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- Incorrect or no response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:08,318 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 1 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:08,429 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:18,443 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 2 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:18,555 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:28,559 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 3 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:28,667 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:38,677 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 4 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:38,786 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
----------- Begin Stack Trace -----------

_._,_._,_


Virus-free.


Locked Re: Problems with Persistent PI4 USB ports

 

At Sat, 28 Sep 2024 21:21:40 -0400 [email protected] wrote:

When assigning connections for my two NCE CS, I used to be able to select
for each NCE CS connection the communication port by the names as assigned
in persistent bindings. This came to light when my RS232 to USB adapter
needed replacement. The new adapter has different idVendor and idProduct
codes than its predecessor. The bindings dialog was updated and binds as
desired but in Preferences > Connections does not show up as the available
serial ports. All that is available is USB0 and USB1, when I used to see
'NCE_PHPro' and "NCE_PowerCab". Thereby, always attaching to the correct
product by its assign names to its intended port.
I am not sure what the bindings dialog is, but the usual way of creating
persistent names for devices is with udev rules. These rules use the idVendor
and idProduct values. So, somewhere in /etc/udev/rules.d/ is a file with a
name ending in .rules that needs to be updated with the new idVendor and
idProduct codes for your new RS232 to USB adapter. Then the rules need to be
reloaded ("sudo udevadm control -R") and the device unpluged and plugged in
again.


I'm trying to determine what caused this change, an upgrade of PiOS, JMRI or
the introduction of the new adapter? Now it is hit or miss as to which
device gets which port. If I check ' ls -l /dev/ttyUSB* ' I see the devices
as they were assigned.

Has anyone experienced this issue? I am assuming new versions of the PiOS
may not respond to the bindings the same as older version but why would that
have changed?.

John Bauchiero
- D&H Model Railroad
- NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version









--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
-- Linux Administration Services
heller@... -- Webhosting Services


Locked Problems with Persistent PI4 USB ports

 

开云体育

When assigning connections for my two NCE CS, I used to be able to select for each NCE CS connection the communication port by the names as assigned in persistent bindings. This came to light when my RS232 to USB adapter needed replacement. The new adapter has different idVendor and idProduct codes than its predecessor. The bindings dialog was updated and binds as desired but in Preferences > Connections does not show up as the available serial ports. All that is available is USB0 and USB1, when I used to see 'NCE_PHPro' and ‘NCE_PowerCab’. Thereby, always attaching to the correct product by its assign names to its intended port.?

I’m trying to determine what caused this change, an upgrade of PiOS, JMRI or the introduction of the new adapter? ?Now it is hit or miss as to which device gets which port. ?If I check ' ls -l /dev/ttyUSB* ' I see the devices as they were assigned.?

Has anyone experienced this issue? ?I am assuming new versions of the PiOS may not respond to the bindings the same as older version but why would that have changed?.?

John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version




Locked Re: NCE Accessory Event Monitoring and possibly CS-105 #nce

 

On Sat, Sep 28, 2024 at 06:07 PM, <trevor@...> wrote:
Just wanted to thank you @Dan - I didn't know that the PHPro reported turnout status and I switched all my points to "Monitoring" and it works a charm. Super excellent. Thank you.?
You're welcome, it was the very first Java program I wrote for JMRI in 2007.? There's also the ability to lock a NCE turnout.
?
?
Dan


Locked Re: JMRI Error: Service mode programmer NCE is offline. #nce

 

20:52:47,554 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- * JMRI log ** [main]
20:52:47,578 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is stored in file: C:\Users\ncred\JMRI\log\session.log [main]
20:52:47,578 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is appended to file: C:\Users\ncred\JMRI\log\messages.log [main]
20:52:47,608 apps.AppsBase ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- DecoderPro version 5.8+Rbc21ce2ce7 starts under Java 11.0.21 on Windows 10 amd64 v10.0 at Sat Sep 28 20:52:47 EDT 2024 [main]
20:52:47,743 apps.gui3.Apps3 ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile My_JMRI_Railroad.3f401755 [main]
20:52:47,910 jmri.util.node.NodeIdentity ? ? ? ? ? INFO ?- Using e0cbe18a-b6bd-4cd2-9171-60bb6dd788d2 as the JMRI storage identity for profile id 3f401755 [AWT-EventQueue-0]
20:52:47,993 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "NCE" [main]
20:52:48,062 .jmrix.nce.usbdriver.UsbDriverAdapter INFO ?- Connecting NCE USB to COM4 USB Serial [main]
20:52:48,066 .jmrix.nce.usbdriver.UsbDriverAdapter INFO ?- Port COM4 USB-SERIAL CH340 (COM4) opened at 19200 baud, sees DTR: true RTS: true DSR: false CTS: false DCD: false flow: NONE [main]
20:52:48,463 jmri.jmrit.roster.Roster ? ? ? ? ? ? ?INFO ?- Reading roster file with rootFromName(C:\Users\ncred\JMRI\My_JMRI_Railroad.jmri\roster.xml) [main]
20:52:48,735 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path program: is C:\Program Files (x86)\JMRI\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path preference: is C:\Users\ncred\JMRI\My_JMRI_Railroad.jmri\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path profile: is C:\Users\ncred\JMRI\My_JMRI_Railroad.jmri\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path settings: is C:\Users\ncred\JMRI\ [main]
20:52:48,736 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path home: is C:\Users\ncred\ [main]
20:52:48,737 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
20:52:58,206 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:52:58,316 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- Incorrect or no response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:08,318 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 1 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:08,429 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:18,443 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 2 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:18,555 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:28,559 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 3 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:28,667 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
20:53:38,677 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 4 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:38,786 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]
----------- Begin Stack Trace -----------
-----------------------------------------
[2] Reference Handler
? [email protected]/java.lang.ref.Reference.waitForReferencePendingList(Native Method)
? [email protected]/java.lang.ref.Reference.processPendingReferences(Unknown Source)
? [email protected]/java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
-----------------------------------------
[24] nce.NceTrafficController Receive thread
? app//com.fazecast.jSerialComm.SerialPort.readBytes(Native Method)
? app//com.fazecast.jSerialComm.SerialPort.readBytes(SerialPort.java:827)
? app//com.fazecast.jSerialComm.SerialPort$SerialPortInputStream.read(SerialPort.java:2025)
? [email protected]/java.io.DataInputStream.read(Unknown Source)
? app//jmri.jmrix.AbstractMRTrafficController.readByteProtected(AbstractMRTrafficController.java:994)
? app//jmri.jmrix.AbstractMRTrafficController.loadChars(AbstractMRTrafficController.java:1025)
? app//jmri.jmrix.AbstractMRTrafficController.handleOneIncomingReply(AbstractMRTrafficController.java:1098)
? app//jmri.jmrix.AbstractMRTrafficController.receiveLoop(AbstractMRTrafficController.java:907)
? app//jmri.jmrix.AbstractMRTrafficController$2.run(AbstractMRTrafficController.java:830)
? [email protected]/java.lang.Thread.run(Unknown Source)
-----------------------------------------
[5] Attach Listener
-----------------------------------------
[15] AWT-Shutdown
? [email protected]/java.lang.Object.wait(Native Method)
? [email protected]/java.lang.Object.wait(Unknown Source)
? [email protected]/sun.awt.AWTAutoShutdown.run(Unknown Source)
? [email protected]/java.lang.Thread.run(Unknown Source)
-----------------------------------------
[23] nce.NceTrafficController Transmit thread
? [email protected]/java.lang.Object.wait(Native Method)
? app//jmri.jmrix.AbstractMRTrafficController.transmitWait(AbstractMRTrafficController.java:537)
? app//jmri.jmrix.AbstractMRTrafficController.transmitLoop(AbstractMRTrafficController.java:504)
? app//jmri.jmrix.AbstractMRTrafficController$1.run(AbstractMRTrafficController.java:805)
? [email protected]/java.lang.Thread.run(Unknown Source)
-----------------------------------------
[18] AWT-EventQueue-0
? java.base/java.lang.Thread.getStackTrace(Unknown Source)
? apps.SystemConsole.performStackTrace(SystemConsole.java:529)
? apps.SystemConsole.lambda$createFrame$3(SystemConsole.java:256)
? java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
? java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
? java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
? java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
? java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
? java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
? java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
? java.desktop/java.awt.Component.processEvent(Unknown Source)
? java.desktop/java.awt.Container.processEvent(Unknown Source)
? java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
? java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
? java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
? java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
? java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
? java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
? java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
? java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
? java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
? java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
? java.desktop/java.awt.EventQueue$4.run(Unknown Source)
? java.desktop/java.awt.EventQueue$4.run(Unknown Source)
? java.base/java.security.AccessController.doPrivileged(Native Method)
? java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
? java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
? java.desktop/java.awt.EventQueue$5.run(Unknown Source)
? java.desktop/java.awt.EventQueue$5.run(Unknown Source)
? java.base/java.security.AccessController.doPrivileged(Native Method)
? java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
? java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
? java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
? java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
? java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
? java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
? java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
? java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
-----------------------------------------
[3] Finalizer
? [email protected]/java.lang.Object.wait(Native Method)
? [email protected]/java.lang.ref.ReferenceQueue.remove(Unknown Source)
? [email protected]/java.lang.ref.ReferenceQueue.remove(Unknown Source)
? [email protected]/java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
-----------------------------------------
[4] Signal Dispatcher
-----------------------------------------
[19] TimerQueue
? [email protected]/jdk.internal.misc.Unsafe.park(Native Method)
? [email protected]/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
? [email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
? [email protected]/java.util.concurrent.DelayQueue.take(Unknown Source)
? [email protected]/javax.swing.TimerQueue.run(Unknown Source)
? [email protected]/java.lang.Thread.run(Unknown Source)
-----------------------------------------
[12] Common-Cleaner
? [email protected]/java.lang.Object.wait(Native Method)
? [email protected]/java.lang.ref.ReferenceQueue.remove(Unknown Source)
? [email protected]/jdk.internal.ref.CleanerImpl.run(Unknown Source)
? [email protected]/java.lang.Thread.run(Unknown Source)
? [email protected]/jdk.internal.misc.InnocuousThread.run(Unknown Source)
-----------------------------------------
[28] DestroyJavaVM
-----------------------------------------
[14] Java2D Disposer
? [email protected]/java.lang.Object.wait(Native Method)
? [email protected]/java.lang.ref.ReferenceQueue.remove(Unknown Source)
? [email protected]/java.lang.ref.ReferenceQueue.remove(Unknown Source)
? [email protected]/sun.java2d.Disposer.run(Unknown Source)
? [email protected]/java.lang.Thread.run(Unknown Source)
-----------------------------------------
[16] AWT-Windows
? [email protected]/sun.awt.windows.WToolkit.eventLoop(Native Method)
? [email protected]/sun.awt.windows.WToolkit.run(Unknown Source)
? [email protected]/java.lang.Thread.run(Unknown Source)
-----------------------------------------
----------- ?End Stack Trace ?-----------
20:53:48,795 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 5 in nce.NceTrafficController [nce.NceTrafficController Transmit thread]
20:53:48,904 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread]


Locked Re: JMRI Error: Service mode programmer NCE is offline. #nce

 

Hello Marcus,
?
I'm on Windows 10 64-bit and here are CH340's settings and driver info in Device Manager:
?
?
?
?
?
?


Locked Re: Execute a Windows Batch File from LogixNG or Script #logixng

 

I guess I can just call the script from LogixNG. That will be fine.


Locked Re: Execute a Windows Batch File from LogixNG or Script #logixng

 

Thank you Bob!
Any chance this be done in LogixNG?


Locked Re: NCE Accessory Event Monitoring and possibly CS-105 #nce

 

Just wanted to thank you @Dan - I didn't know that the PHPro reported turnout status and I switched all my points to "Monitoring" and it works a charm. Super excellent. Thank you.?


Locked Re: Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path. #blockvalues #anyrail #layouteditor

 

Dave,
Once again thank you so much for your support.? The Anyrail people say they didn't make any changes going from version 6 to 7, but I have been working with anyrail since version 5.
It's all working great now.
Seth Olitzky


Locked Re: LogixNG and Execute Always/OnChange and Listen/No-listen #logixng

 

Thank you!


Locked Re: Execute a Windows Batch File from LogixNG or Script #logixng

 

Try this bit of jython

Import java
command = “foo.bat”
argument = “something or blank"
java.lang.Runtime.getRuntime().exec([command, argument])

Bob


On Sep 28, 2024, at 1:50?PM, Vinny DeRobertis via groups.io <vinny.derobertis@...> wrote:

Team,
How can I execute a .bat file from either LogixNG or Jython script?
--

Many thanks in advance!

Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR

Windows 7 Pro / Java 11 / JMRI v5.7.7
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
Interface: Samsung A7 10.4" Tablets/Fully Kiosk.
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1

Bob Jacobsen
rgj1927@...


Locked Execute a Windows Batch File from LogixNG or Script #logixng

 

Team,
How can I execute a .bat file from either LogixNG or Jython script?
--

Many thanks in advance!

Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR

Windows 7 Pro / Java 11 / JMRI v5.7.7
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
Interface: Samsung A7 10.4" Tablets/Fully Kiosk.
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


Locked Re: LogixNG and Execute Always/OnChange and Listen/No-listen #logixng

 

Jos,

When "listen" is enabled for an object, such as a sensor, in LogixNG, a Java PropertyChangeListener is registered with the object. ?When the object state changes, it notifies all of the registered listeners of the change along with the before and after states. ?There is no polling.

When one of the "listened" objects in a CNG is changed, the CNG starts executing at the beginning. ?The results will depend on the logic structure , the execute modes, and which object changed.

Dave Sand


----- Original message -----
From: Jos Smeele <jossmeele@...>
Subject: Re: [jmriusers] LogixNG and Execute Always/OnChange and Listen/No-listen #logixng
Date: Saturday, September 28, 2024 8:12 AM

Dave,
Thank you, that makes sense.
What determines the frequency of checking for changes of sensors and other items in a CNG?
Jos


Locked Re: LogixNG and Execute Always/OnChange and Listen/No-listen #logixng

 

Dave,
Thank you, that makes sense.
What determines the frequency of checking for changes of sensors and other items in a CNG?
Jos


Locked Re: LogixNG and Execute Always/OnChange and Listen/No-listen #logixng

 

I especially like line 6 in the example.

Kind regards,
W-outer


On Sat, 28 Sept 2024 at 00:52, Dave Sand via <ds=[email protected]> wrote:
Jos,

You "listen" for events that need to start the ConditionalNG logic.? For example, the "code" button on a CTC panel.? Other items that provide state information do not need to have "listen" enabled, such as switch and signal lever positions.? In this scenario, changes to the levers don't trigger the CNG.

"On change" only runs if the expression state has changed between true and false. ?"Always execute" will do the "Then" or "Else" depending on the current state of the expression.

Note: For Modules, use "Always Execute" since Modules don't have a change of state.? They are called by a LogixNG (or another Module).

Dave Sand


----- Original message -----
From: Jos Smeele <jossmeele@...>
Subject: [jmriusers] LogixNG and Execute Always/OnChange and Listen/No-listen
Date: Friday, September 27, 2024 5:58 PM

I'm using ConditionalNGs (CNG) quite successfully to help automate my small layout but I'm lacking in understanding how to set certain options for the If-Then-Else flow control.
Where in the example below should I use Execute Always and where Execute OnChange and where do we Listen to a sensor or memory value and where do we turn that off?
Thanks,
Jos
?ConditionalNG: Example

?! A? ? If Then Else. Always execute

? ?? If ? Sensor SantaFe Sside-Syard is Active?? ? //virtual sensor to activate a Dispatch

? ?! Then Many

?? ??? ! A2? ?If Then Else. Always execute

???? ? ? If ?And. Evaluate All

????? ? E1??Sensor Stop W-outer is Inactive? ? ? ? ? ? ? ? ? //check if there is no train on the route AND

????? ? E2??Memory CROSSoccupied is equal to "0"? //check that the dblcrossing is free. Set by a Timed CNG that checks if blocks connected to the dblcrossing are free or not.

????? ? ! Then??Many? //good to go

????? ! A2??Many

????? ? ?? ! A1??If Then Else. Execute on change

??????? ?? If??Sensor Stop RV SyardMID is Inactive?

??????? ?! Then??Many ?//we reached the destination, there are two trains stacked in the yard, hence the mid-yard IR-sensor that is the end for this train

???????? ??? ! A1??Terminate train X_SantaFe_Wout_to_Syard.xml?

???????? ??? ! A2??Set sensor Occupancy S-yard to state Active

???????? ??? ! A3?Set sensor SantaFe Sside-Syard to state Inactive

??????? ?! Else?Many? //the route is clear and we are not yet in the yard so go to Wout which is the point from where we'll reverse the train.

???????? ??? ! A1??Start train using train info file X_SantaFe_Sside_Wout.xml

???????? ??? ! A2??Set memory SFdestination to "Syard"

???? ? ! Else?If Then Else. Always execute??

? ? ? ? ? ? If?And. Evaluate All

????? ? ? ? ? ?? E1?Sensor Stop W-outer is Active? //reached the point where the train needs to reverse into the yard

????? ? ? ? ? ?? E2?Memory SFdestination is equal to "Syard"

? ? ? ? ? ! Then?Many

????? ? ? ? ?? ! A1?Start train using train info file X_SantaFe_Wout_to_Syard.xml

????? ? ? ? ? ?! A2?Set turnout pin44/45 #7 S-yard to state Closed (-)

? ? ? ? ? ! Else

? ?! Else

??

?

?


Locked Re: MACOS 15 (Sequoia) JMRI program halt #mac-os

 

"Profiles within profiles" ?This probably means I am using JMRI data sets incorrectly with this cit and spice technique I have crudely described. As we speak, I realized I know nothing about the data structure of xml nor how JMRI has been developed to use it. ?I'm not a programmer although 40 years ago I was supervising analysis projects that included a programming group, All I ever did with databases was read Boyce-Codd on relational tables and their difference to hierarchical data sets, so I could explain to the programmers what needed to be done. This makes me dangerous today.
?
I need to read more in the JMRI manual about merging and configuration - I have a suspicion way I am creating panels from existing panels ( outside the club's "live' JMRI data set ) may not be as it was intended to be used. ?