开云体育

Date

Locked Re: Physical button to toggle track power #dcc-ex

 

Hi JSa1987
?
Your questions really relate to the DCC-EX side of the system, so they would be best dealt with on the DCC-EX Discord server, where the development team and experienced users answer questions like this.? They also have a specific area of their Discord Server devoted to questions about EX-RAIL.? This is a link to join their Discord server:
https://discord.gg/y2sB4Fp
?
Having said that, assuming you are using a relatively recent version of DCC-EX (v5.x), then it is possible to send Track Power commands via EX-RAIL, and I believe this could be achieved from a physical button or switch connected to an IO pin on the Mega.? Take a look at the DCC-EX Web Site in the EX-RAIL Command Reference section, specifically this link:
?
I also assume you are aware that the DCC-EX system can be setup to apply track power automatically when it is turned on.
?
Cheers,
Trevor


Locked Re: SPINS in JMRI #operationspro

 

I have been using ATSF CLIC data on my model RR for years.? This is the ATSF version of SPINS.? It works great.? The track diagram at each area shows the CLIC spot data.? The switchlist gives both the CLIC spot info and the industry name.? The industry name is easy to spot on most structures, as is the door number (if labeled).


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

 

Dave, FYI -> Log files uploaded.?
?
?


Locked Re: Signal heads/ masts

 

John Bm

If you've moved the user names to something else, you should be able
to delete the old IHxxx signal. In general, if something else is still
using it, it will not delete and tell you about it. The other way to
know it isn't being used would be searching the xml file and if it
only happens once, it should delete. For somethings there is a 'where
used' tool but I'm not sure if signal heads or masts is something it
knows about. I've never used it.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com


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

 

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: JMRI Error: Service mode programmer NCE is offline. #nce

 

开云体育

Hi En-TACT

?

Go to Device Manager

What exactly is displayed for the “Ports (COM & LPT)” line with the USB Interface connected?

?

Regards

Marcus

?

?

From: [email protected] <[email protected]> On Behalf Of Marcus Ammann
Sent: Friday, 27 September 2024 11:51 PM
To: [email protected]
Subject: Re: [jmriusers] JMRI Error: Service mode programmer NCE is offline. #nce

?

Hi En-TACT.

?

Forget I mentioned making the Cab Address of the USB Interface to “10”.

You’ll be using the USB Interface at the DEFAULT Cab Address of “3”.

?

Connect the USB Interface to the Laptop.

Using the Laptop’s Device Manager the List? will include a “Ports (COM & LPT)” selection, if the correct Driver has been installed for your Cable.

Click on the “Ports (COM & LPT)” selection.

Shown will be: USB-SERIAL CH340 with a COM Port Number. This also confirms the operation of your USB Cable.

The highlighted COM Port Number is what you need to enter in the Decoder Pro’s Preferences “Connection” Tab for the Serial Port.

Also Check TICK the “Additional Connection Setting” box then select a Baud Rate of 19,200.

Then select “SAVE”?

?

If you cannot get connected, include a “System Console” printout under the Hep Tab in Decoder Pro.

?

Regards

Marcus

?

From: [email protected] <[email protected]> On Behalf Of En-TACT
Sent: Friday, 27 September 2024 12:23 PM
To: [email protected]
Subject: Re: [jmriusers] JMRI Error: Service mode programmer NCE is offline. #nce

?

It was changed to from COM10 COM3 after the screenshot.

?

How do I change the cab address of the USB interface to 10 - sorry I'm new.

?

Virus-free.


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

 

On Fri, Sep 27, 2024 at 06:58 PM, Jos Smeele wrote
Sorry I made a mistake in my example, this line ?? If??Sensor Stop RV SyardMID is Inactive?
Should read ???? If??Sensor Stop RV SyardMID is Active


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

 

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: Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path. #blockvalues #anyrail #layouteditor

 

Seth,

The changes are minor.

Right click the extra track segment and select Edit.

Select the correct block name from the drop down list.
Click on Done.
Repeat for the other leg.


Dave Sand



----- Original message -----
From: S Olitzky <solitzky@...>
Subject: Re: [jmriusers] Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path.
Date: Friday, September 27, 2024 4:13 PM

Dave,
?
I looked at the xml files for the old and newer exports, but really can't figure out how to fix the problem.
I sent off the information regarding the problem, the anyrail file and your comments to the Anyrail support email.
Hopefully they will get back to me in the future.? Anyrail prevents taking a current layout and loading it back into an older version of anyrail, so I am temporarily stuck.
Thanks again for your help.?
Seth


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,
?
I looked at the xml files for the old and newer exports, but really can't figure out how to fix the problem.
I sent off the information regarding the problem, the anyrail file and your comments to the Anyrail support email.
Hopefully they will get back to me in the future.? Anyrail prevents taking a current layout and loading it back into an older version of anyrail, so I am temporarily stuck.
Thanks again for your help.?
Seth


Locked Re: Title Bar of Preferences window is off screen. How do I move the window? #preferences

 

If using libwc.?
To create a move window hotkey on Ctrl+Alt+v
Do not use C-A-m that is an accessability hotkey.
You can? edit a file at $HOME/.config/labwc/rc.xml
?
and add after?? <keyboard>
? ? <keybind key="C-A-v">
? ? ? <action name="move">
? ? ? </action>
? ? </keybind>

If the file doesnt exist? do this in terminal
?
mkdir $HOME/.config/libwc
cat > $HOME/.config/libwc/rc.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
? <keyboard>
? ? <keybind key="C-A-v">
? ? ? <action name="move">
? ? ? </action>
? ? </keybind>
? </keyboard>
</openbox_config>
EOF
?


Locked Re: JMRI in a Docker container #linux

 

The members of thr "jmri-developers" list at groups.io might be interested...

Regards,
Billybob


Locked Re: Title Bar of Preferences window is off screen. How do I move the window? #preferences

 

Hi
1 - try using the appropriate hot key for your windows manager. (if using libwc you will have to do some configuration).
?if using X with lxde you could try dragging with Alt+Left mouse button or Alt-Space to get the frame menu. and select Move, Alt-M may work.
?
2 - I edited my user-interface.xml and it worked fine. Make sure you have got the right one.?
?
Are you getting the preferences due to an error during startup or by selecting preferences? because they are subtably different, and editing user preferences doesnt work for the format. That was fixed as an 80% windows centred on screen 1.
?
Steve G.
?


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

 

Thanks, I will take a look at it in more detail.? I did upgrade to a newer version of Anyrail in the last couple of months.? After I do some research I will contact anyrail about this.
?
Seth Olitzky


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

 

Seth,

The "West Mainline" block extends beyond the ends of the turnout legs for turnout "TYard West". ?Since the block boundaries are now at anchor points, the turnout position is not relevant. ?

It appears that the AnyRail export adds extra track segments to turnouts.

Dave Sand


----- Original message -----
From: S Olitzky <solitzky@...>
Subject: Re: [jmriusers] Block Values Passing thru both thrown and closed legs of a turnout/switch, should only go thru the connected path.
Date: Friday, September 27, 2024 2:09 PM

I have uploaded the file to ProblemsBeingWorkOn
Seth Olitzky #234795
?
I also installed 5.8 and still have the same problem.?
?
I will attempt some debugging on my own later today.
?
The only block issues were the unblocked tracks connected to the turntable.
?
Seth Olitzky


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

 

Mike,

The session.log file has the current/last session. ?The messages.log file has all of the log entries up to 1 MB.

The "No view" message is curious. ?

The "StoreAndCompare" messages are from a process that runs during shutdown to see if there are changes that have not been stored.

To upload a file, go to?/g/jmriusers/files. ?Select the ProblemsBeingWorkedOn file folder. ?Create a folder with your name and upload a file.

Dave Sand


----- Original message -----
From: MICHAEL SHIELDS <mikesjmri@...>
Subject: Re: [jmriusers] MACOS 15 (Sequoia) JMRI program halt
Date: Friday, September 27, 2024 2:04 PM

Dave,
?
Thanks for the quick response!
?
Note that I am laying out track and turnouts on a new panel. Chopping and changing like crazy.
?
Session Log seems to reset each run, so when it bombs again, I'll immediately look there.
I am laying out track and turnouts on a new panel. Chopping and changing like crazy.
?
I did notice in messages.log several sequences similar to the following at the end of three recent sessions:
?
"ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0]"
"WARN ?- No View found for TrackSegment T33 c1:{A4 (POS_POINT)}, c2:{A13 (POS_POINT)} class class"
?
JMRI seems unhappy with TrackSegment T33?and after a bit of repeating these two lines the following occurred:
?
configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? comparing file1:"/Users/mikeshields/Mikes JMRI Test Panels/Mikes_JMRI_Test_Panels.jmri/LAMRS Harbor v4.xml" [AWT-EventQueue-0]
2024-09-26T09:33:20,316 configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? ? ? ? ?to file2:"/var/folders/wg/tp9k_qq54jn4lpl71_gpx5d80000gn/T/f5014636-87a5-4b0d-a0ba-2e88a48f7768.xml" [AWT-EventQueue-0]
2024-09-26T09:33:30,905 server.WebServer ? ? ? ? ? ? ? ? ? ? ?INFO ?- Stopping Web Server [JMRI ShutDown - Main Tasks]
2024-09-26T09:33:31,928 managers.DefaultShutDownManager ? ? ? INFO ?- Normal termination complete [Thread-45]
?
I cannot recall if these would be an instance of a program halt, but there are three session sets of this message pattern that might have been halts.
?
Shall I post the messages.log file or wait until I have a Session Log from an actual program halt? ?(Can you repeat where/how to upload files?
?
-=m=-
MIkeS


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

 

I have uploaded the file to ProblemsBeingWorkOn
Seth Olitzky #234795
?
I also installed 5.8 and still have the same problem.?
?
I will attempt some debugging on my own later today.
?
The only block issues were the unblocked tracks connected to the turntable.
?
Seth Olitzky


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

 

Dave,
?
Thanks for the quick response!
?
Note that I am laying out track and turnouts on a new panel. Chopping and changing like crazy.
?
Session Log seems to reset each run, so when it bombs again, I'll immediately look there.
I am laying out track and turnouts on a new panel. Chopping and changing like crazy.
?
I did notice in messages.log several sequences similar to the following at the end of three recent sessions:
?
"ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0]"
"WARN ?- No View found for TrackSegment T33 c1:{A4 (POS_POINT)}, c2:{A13 (POS_POINT)} class class"
?
JMRI seems unhappy with TrackSegment T33?and after a bit of repeating these two lines the following occurred:
?
configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? comparing file1:"/Users/mikeshields/Mikes JMRI Test Panels/Mikes_JMRI_Test_Panels.jmri/LAMRS Harbor v4.xml" [AWT-EventQueue-0]
2024-09-26T09:33:20,316 configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? ? ? ? ?to file2:"/var/folders/wg/tp9k_qq54jn4lpl71_gpx5d80000gn/T/f5014636-87a5-4b0d-a0ba-2e88a48f7768.xml" [AWT-EventQueue-0]
2024-09-26T09:33:30,905 server.WebServer ? ? ? ? ? ? ? ? ? ? ?INFO ?- Stopping Web Server [JMRI ShutDown - Main Tasks]
2024-09-26T09:33:31,928 managers.DefaultShutDownManager ? ? ? INFO ?- Normal termination complete [Thread-45]
?
I cannot recall if these would be an instance of a program halt, but there are three session sets of this message pattern that might have been halts.
?
Shall I post the messages.log file or wait until I have a Session Log from an actual program halt? ?(Can you repeat where/how to upload files?
?
-=m=-
MIkeS


Locked Re: Signal heads/ masts

 

开云体育

Ken C,

An update. First of all Thank you. The virtual signals all named and then moved to the real hardware names even though some but not all of the real hardware is in place on the railroad. The hardware that were being used as the turnout indicators are being re-purposed for traffic. I didn’t, as yet, remove any of the virtual signals from the table not being sure if I could.

I’m pleased you steered me into the naming method, otherwise I was going to program myself into a hell of a mess. As it was I messed up on the virtual naming which generated a Parse error with duplicate names. I jumped back to an older version and started over after realizing how complex the .XML file had become.?

I can delete the IHxxx entries now? Yes?
?
John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version

On Sep 26, 2024, at 9:38?PM, Ken Cameron via groups.io <kcameron@...> wrote:

John B,

Here is the suggestion. You create virtual signals at first. Give them
meaningful user names. Build the logic for them. Later when you get
real hardware, you 'move' (it's a right click option) the user name to
the real hardware. You also replace the signal on the panel with the
username (if you didn't from the start) and it will follow the
hardware for your display of the signals. That way you never lose the
logic, it is tied to the user name.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com










Locked Physical button to toggle track power #dcc-ex

 

I have recently setup an EX-CommandStation based on an Arduino Mega and I'm really liking it!
I'm currently running it connected to RPi3b running JMRI and using WiThrottle Lite on my phone. Each time I want to run a train I need to VNC into the RPi3b running JMRI just to turn on the track power, this is quite inconvenient.
?
I was therefore wondering if it could be possible to wire a physical button to one of the Arduino GPIO and use this to toggle the track power. I have tried? to do some online searching for this, but I have not found anything.
?
Can this be implemented via an EX-Rail automation? I.e. the button triggers the automation that sends the <1 MAIN> command? I have not found any reference that Ex-Rail automation can send DCC-EX Native Commands.
?
Alternative could somebody point me to some examples or guide me no how to edit the EX-CommandStation? code to add a physical button to toggle track power?
?
Thank you!
?