Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
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 selectI 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. -- 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 |
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 |
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: 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 |
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:— Bob Jacobsen rgj1927@... |
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 |
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 |
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:
|
"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. ? |
As I mentioned, I’m drawing new track into an existing panel and at the same time carving away about 2/3 of the that previously drawn track on this already existing panel to create a ‘new’ panel we need as part of the touch screen control of a certain portion of the layout. ?It may be that in deleting portions of the graphics on screen left “crumbs on the table” for lack of a better description. This info, for what it is worth….file is loaded |
Mike, I have reviewed the log files. You appear to have both Java 11 and Java 17 installed. ?JMRI is using Java 11. ?That is not an issue. The track segment error appears to be a random issue. ?If you could, upload?/Users/mikeshields/Mikes JMRI Test Panels/Mikes_JMRI_Test_Panels.jmri/LAMRS Harbor v4.xml There are some errors relating to profiles within profiles. ? I don't find any clues to the "halt" issue. Dave Sand ----- Original message ----- From: MICHAEL SHIELDS <mikesjmri@...> Subject: Re: [jmriusers] MACOS 15 (Sequoia) JMRI program halt Date: Friday, September 27, 2024 7:30 PM Dave, FYI -> Log files uploaded.? ? ? |
Locked
Re: Signal heads/ masts
开云体育Ken C,Yes, I confirm signal heads and masts do show in ‘where used’, it IDs the connected functions. IHxxx heads are now removed. ? ?? ? ? ? ? ?? John ?Bauchiero - D&H Model Railroad -?NCE PH-Pro & PowerCab, Pi4b, DCC-EX - JMRI current test version
|
Locked
Re: SPINS in JMRI
#operationspro
I use CP equivalents to SPINS - SLC (Shippers Location Code).? I think?the SLCs are used in EDI messaging between the railroads - i.e. railroad?number?+ SLC kind of like bank routing codes. Each station has a number i.e. Calgary is 8200, Vancouver (Coquitlam) is 9714.? Yard tracks are 8200001, 8200002, etc.? Sidings in the Calgary region are 8201001, etc.? But I also name the locations in JMRI because as was said Names are more human readable.? But the numbers help physically locate things (Siding 8901001 is somewhere between Calgary and Vancouver...) On Thu, Sep 26, 2024 at 10:34?AM Dennis Drury via <cowrr1984=[email protected]> wrote:
|