开云体育


Re: Serial port issue with CMRI using Windows 10- JMRI crashes #cmri

 

Ken,

My experience is that making a big leap is not an issue with panels, unless custom items are out of place.

The problems are in the base JMRI directory, such as C:\Users\<username>\JMRI. ?There have been a lot of changes in profile handling since they were introduced in JMRI 3.8. ?

I have helped two local layouts upgrade from 3.10 to 5.x. ?The JMRI data directory is renamed. ?After removing and installing Java and JMRI, PanelPro is started which creates the default My JMRI Railroad profile. ?For these layouts, the roster directory and the layout data xml file are copied from the old directory. ?After rebuilding the roster index, the data flle is loaded and stored. ?

Dave Sand


----- Original message -----
From: Ken Cameron <kcameron@...>
Subject: Re: [jmriusers] Serial port issue with CMRI using Windows 10- JMRI crashes
Date: Tuesday, March 25, 2025 10:29 AM

Op:

?

I’ve got a feeling the biggest issue with getting up to date on your layout is many things were put in directories that conflict with newer versions. In short, everything for your layout should be in the JMRI directory in the home directory of the login user. At the least, that’s the connection information and the panel file. But long time ago, many users put custom icons and similar things into the JMRI directory under the \Program Files\ path.

?

Does this sound like a description that fits?

?

-Ken Cameron, Member JMRI Dev Team




?

?



Re: Chaining transits with a different locomotive #dispatcher

 

You need to terminate Transit A in the last step of the transit.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Re: Serial port issue with CMRI using Windows 10- JMRI crashes #cmri

 

开云体育

Op:

?

I’ve got a feeling the biggest issue with getting up to date on your layout is many things were put in directories that conflict with newer versions. In short, everything for your layout should be in the JMRI directory in the home directory of the login user. At the least, that’s the connection information and the panel file. But long time ago, many users put custom icons and similar things into the JMRI directory under the \Program Files\ path.

?

Does this sound like a description that fits?

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: Chaining transits with a different locomotive #dispatcher

 

Jean
I will take a look at it this aft/eve
Steve G.
?


Re: Serial port issue with CMRI using Windows 10- JMRI crashes #cmri

 

Have you tried using an emulator to run XP on W10?
?
In theory, you could upgrade JMRI/Java step by step until you reach a version that would have panels compatible with the latest.??
?
Another possibility, is if you get that to work, you might have to make W7 an interim step to the upgrades.
?
Then try copying the panel files over.
?
Perhaps the Devs could give the insight needed to see if this would work.


Re: Can‘t Connect WiThrottle with PanelPro WiFi server

 

开云体育


a)? which "server" ?? ?the JMRI WebServer is for panels,? the WiThrottle Server is for the Withrottle service,? they are different.? ?There are other JMRI servers as well as those two.? ?(And there isn't anything called a JMRI "WiFi server" ).

b)? check your PC's "firewall" settings, they could be blocking things.??




------ Original Message ------
Date 25/03/2025 14:02:51
Subject [jmriusers] Can‘t Connect WiThrottle with PanelPro WiFi server

Gentlemen,
?using latest version of PanelPro, Digitrax, Windows 11. ?I am unable to connect with WiThrottle App to control engines. I have a good connection either the Internet, and all other Apps on my iPhone function.?
When I open PanelPro a window opens that indicates the server is listening on a certain IP address which has functioned in the past. This failure is new.?
what‘s up?
Ed Nowicki


Re: Chaining transits with a different locomotive #dispatcher

 

Ken,

That is what I'm doing.

I run a transit A with a locomotive A, then I terminale transit A and load transit B with? a locomotive B. The transit B execute OK except that dispatcher is still running locomotive A.? That is maybe That is? laybe I use reverse at end in transit A?
?
What do tou think?

JeanLouisDelestre@...


De: "Ken Heywood via groups.io" <kheywood@...>
?: [email protected]
贰苍惫辞测é: Mardi 25 Mars 2025 10:13:08
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

So, you are not continuing this train with a new transit, you are in a "tag-team" with another train.
That is, somewhere in the middle or end of Transit A you want to run a different train on Transit B.
If you built transits with a 1:1 correspondence with trainonfo files, you can specify the locomotive in traininfo.
When you "load traininfo B" action in transit A and that traininfo file B specifies locomotive B, then Transit B will run loco B.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


Can‘t Connect WiThrottle with PanelPro WiFi server

 

Gentlemen,
?using latest version of PanelPro, Digitrax, Windows 11. ?I am unable to connect with WiThrottle App to control engines. I have a good connection either the Internet, and all other Apps on my iPhone function.?
When I open PanelPro a window opens that indicates the server is listening on a certain IP address which has functioned in the past. This failure is new.?
what‘s up?
Ed Nowicki


Re: java

 

I found Oracle JAVA to be really invasive.
It peppers stuff all over the place.
The only clean way to get rid of it is to use the Oracle removal tool.
I did that, then loaded Azul.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Re: Chaining transits with a different locomotive #dispatcher

 

So, you are not continuing this train with a new transit, you are in a "tag-team" with another train.
That is, somewhere in the middle or end of Transit A you want to run a different train on Transit B.
If you built transits with a 1:1 correspondence with trainonfo files, you can specify the locomotive in traininfo.
When you "load traininfo B" action in transit A and that traininfo file B specifies locomotive B, then Transit B will run loco B.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Re: Automatic Dispatching

 

If you upload the layout data xml file to the group's ProblemsBeingWorkedOn file folder we can review what you have done so far. ?Which turnout has the issue with the continuing route?

Dave Sand


----- Original message -----
From: "sontrak via groups.io" <sontrak=[email protected]>
Subject: [jmriusers] Automatic Dispatching
Date: Monday, March 24, 2025 9:25 PM

I've tried several different ways to get trains to run automatically, but I keep running into ( maybe I should say "creating my own") roadblocks.? At 83, I'm not sure how many more wrong ways to do it I can afford to try.
?
I've set signal heads all around the layout.? I try to set Blocks, Sections and a Transit to run a train and I get it set to go through several Sections, but then I get to a turnout and it will allow me to set the diverging route out, but the continuing route isn't available.? I can't find what's different between the Block on he diverging leg and the one on the continuing leg of the turnout.
?
So, I read some of the JMRI documentation and decided to try using Signal Masts and letting JMRI set up Sections and Transits on the fly.? I took a portion of the Panel and deleted the signal heads around a turnout to use the Set Signal Masts menu.? It sets the Masts for both routes entering the frog end of the turnout, but there's no option to set a Mast with signals for the points end of the same turnout.
?
Before I waste any more time on rabbit holes, can someone steer me to the easiest way to set up my goals?? Or point me at the page in the JMRI documents where I can read the proper steps to take and the order to build it?
I'd like to:
1.? Be able to send a train autonomously from the modeled layout into a specific staging track.
2.? Be able to have trains scheduled to come out of staging into the modeled area at preprogrammed clock times or upon specified events.
3.? Be able to manually trigger a train in staging? by selecting either the train or the track it's on and select where it needs to go.
?
?
This forum has been so great thanks to the helpful folks here who have been so willing to share their time and experience.


Re: Java version 21.0.6 #java

 

Thank you Peter.?? I see you are running that combination.? I will probably change to JMRI 5.11.4+, as I could be affected by the NCE consist backup/restore issue.
?
Dave Morgan
https://www.tcmr.club/


Re: Java version 21.0.6 #java

 
Edited

Keep using Java 21 unless you run into issues. If you do have issues, please report them.

--
Peter Ulvestad
Linux Mint 22.1, JMRI 5.11.4plus, Java 21.0.6
JMRI Users Group Moderator ( /g/jmriusers )
JMRI Developers Group Moderator ( )
Tam Valley Group Moderator ( )
Sprog-DCC Group Moderator ( )
Edmonton Model Railroad Association ( )


Java version 21.0.6 #java

 

I have just upgraded the club computer to Linux Mint 22.? As part of that upgrade, the system installed Java version 21.0.6.?? The JMRI version installed is5.2.?? I plan to upgrade it to 5.10.? Will that version of JMRI be compatible with java 21, or do I need to change to java 17??? I don't see that java 21 is recommended on the JMRI website.
?
Dave Morgan
https://www.tcmr.club/


Re: Automatic Dispatching

 

开云体育

Did you do the following
Create train length blocks / make each block into a section / create a layout panel without any switches / create the blocks physically by isolating the ends of each block and add detection to each block / physically on the actual layout ?include the switches you have at the end of a block / create sml virtual signals at the ends of every block on the layout panel-no real signals are needed / create transits /run trains.

That will enable you to run trains automatically from one point to an end point or continuously in loops including trains chasing each other.

If you want to use switching then create a second layout panel. ?Without changing your wiring physically now create a second layout panel with every switch in its own block.
Create ghost blocks for the switches-need latest test version of jmri software.
Or use logix to tell the virtual blocks you put switches in when to occupy them.

Tony




On Mar 24, 2025, at 10:25?PM, sontrak via groups.io <sontrak@...> wrote:

?
I've tried several different ways to get trains to run automatically, but I keep running into ( maybe I should say "creating my own") roadblocks.? At 83, I'm not sure how many more wrong ways to do it I can afford to try.
?
I've set signal heads all around the layout.? I try to set Blocks, Sections and a Transit to run a train and I get it set to go through several Sections, but then I get to a turnout and it will allow me to set the diverging route out, but the continuing route isn't available.? I can't find what's different between the Block on he diverging leg and the one on the continuing leg of the turnout.
?
So, I read some of the JMRI documentation and decided to try using Signal Masts and letting JMRI set up Sections and Transits on the fly.? I took a portion of the Panel and deleted the signal heads around a turnout to use the Set Signal Masts menu.? It sets the Masts for both routes entering the frog end of the turnout, but there's no option to set a Mast with signals for the points end of the same turnout.
?
Before I waste any more time on rabbit holes, can someone steer me to the easiest way to set up my goals?? Or point me at the page in the JMRI documents where I can read the proper steps to take and the order to build it?
I'd like to:
1.? Be able to send a train autonomously from the modeled layout into a specific staging track.
2.? Be able to have trains scheduled to come out of staging into the modeled area at preprogrammed clock times or upon specified events.
3.? Be able to manually trigger a train in staging? by selecting either the train or the track it's on and select where it needs to go.
?
?
This forum has been so great thanks to the helpful folks here who have been so willing to share their time and experience.


Automatic Dispatching

 

I've tried several different ways to get trains to run automatically, but I keep running into ( maybe I should say "creating my own") roadblocks.? At 83, I'm not sure how many more wrong ways to do it I can afford to try.
?
I've set signal heads all around the layout.? I try to set Blocks, Sections and a Transit to run a train and I get it set to go through several Sections, but then I get to a turnout and it will allow me to set the diverging route out, but the continuing route isn't available.? I can't find what's different between the Block on he diverging leg and the one on the continuing leg of the turnout.
?
So, I read some of the JMRI documentation and decided to try using Signal Masts and letting JMRI set up Sections and Transits on the fly.? I took a portion of the Panel and deleted the signal heads around a turnout to use the Set Signal Masts menu.? It sets the Masts for both routes entering the frog end of the turnout, but there's no option to set a Mast with signals for the points end of the same turnout.
?
Before I waste any more time on rabbit holes, can someone steer me to the easiest way to set up my goals?? Or point me at the page in the JMRI documents where I can read the proper steps to take and the order to build it?
I'd like to:
1.? Be able to send a train autonomously from the modeled layout into a specific staging track.
2.? Be able to have trains scheduled to come out of staging into the modeled area at preprogrammed clock times or upon specified events.
3.? Be able to manually trigger a train in staging? by selecting either the train or the track it's on and select where it needs to go.
?
?
This forum has been so great thanks to the helpful folks here who have been so willing to share their time and experience.


Re: Internal Sensors

 

It worked fine.? Thanks for the help.


Re: java

 

Ok thanks


On Mon, Mar 24, 2025, 1:08?PM John Griffin via <johng.sst=[email protected]> wrote:
Louis,
That's Oracle for ya!

Read this?short post:




On Mon, Mar 24, 2025 at 7:55?AM Louis Grundman via <louis.grundman=[email protected]> wrote:

Do you have to have a java subscription now. It sak me to subscribe.


On Sun, Mar 16, 2025, 1:54?PM Phil G via <phil=[email protected]> wrote:
Which version of JMRI are you trying to run??

It’s likely you’ll need at least JAVA 11

See JMRI.org/java for tons of helpful advice ?

Phil G

On 16 Mar 2025, at 17:31, Louis Grundman via <louis.grundman=[email protected]> wrote:

?
I have java version 8 it comes up with message?a java Exception has occurred what do i need to do

On Tue, Feb 25, 2025 at 8:03?PM Louis Grundman via <louis.grundman=[email protected]> wrote:
Hello I have a message that says java encryption?what does that mean jmri will not open? What do I have to do ? louis



--
John Griffin

Model Railroading Topics


Locked File /ProblemsBeingWorkedOn/dsand/Demo.py uploaded #file-notice

Group Notification
 

The following items have been added to the Files area of the [email protected] group.

By: Dave Sand <ds@...>

Description:
An example of using a PropertyChange listener to invoke an AbstractAutomaton class that uses waitMsec to avoid stopping the main JMRI thread.


Re: Script output delayed #scripting

 


This provides an example of the structure that you need to use when implementing your signal logic with the timed delays.

Dave Sand



----- Original message -----
From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=[email protected]>
Subject: Re: [jmriusers] Script output delayed #scripting
Date: Sunday, March 23, 2025 9:11 PM

Thanks, I will try that....
?
Currently the code it as follows.
?
from java.util import Date
from java.text import SimpleDateFormat
from java.lang import Thread
import time
import jmri
import java
import java.beans
formatter = SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
current_date_time = formatter.format(Date())
print("Current Date and Time: " + current_date_time)
print("Confirmation on the script starting. Track Detection.")
print("==================================================== ")
print(" ")
print("First Step, testing ou the ability to pause the program.")
thread.sleep(3000)
print("Did it work?")
print(" ")
print("Defining the listener to play a sound when a sensor goes active.")
class SoundListener(java.beans.PropertyChangeListener):
??
? def propertyChange(self, event):
? ? if ((event.newValue == ACTIVE) and (event.oldValue == INACTIVE)):
? ? ? ? self.snd.play()
? ? ? ? prin(" ? ?if statement is true.")
# ? ? ? ?signal_routine("Limited Clear")
? ? else:
? ? ? ? print(" ? ?no thruth to this at all!")
? ? ? ? signal_routine("Limitied Clear")
m = SoundListener()
m.snd = jmri.jmrit.Sound("resources/sounds/Crossing.wav")
print(" ? ?Finished defining the lisitener to play a sound.")
sensors.provideSensor("N4S55").addPropertyChangeListener(m)
?
def signal_routine (aspect):
? ? ##################################################################################
? ? print("Part 1")
? ? mast_1 = masts.getSignalMast('Signal Mast, Table 10, Track 5, West Bound')
? ? mast_1.setAspect('Limited Clear')
? ? print(" ? ? Signal Mast, Table 10, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? Current Date and Time: " + current_date_time)
? ? ##################################################################################
? ? print("Part 2")
? ? mast_2 = masts.getSignalMast('Signal Mast, Table 12, Track 5, West Bound')
? ? mast_2.setAspect('Limited Clear')
? ? print(" ? ? Signal Mast, Table 12, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? Before calling a wait statement.")
? ? self.waitMsec(3000)
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)
? ? ##################################################################################
? ? print("Part 3")
? ? mast_3 = masts.getSignalMast('Signal Bridge, Table 12, Track 5, West Bound')
? ? mast_3.setAspect('Limited Clear')
? ? print (" ? ?Signal Bridge, Table 12, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################

? ? print("Part 4")
? ? mast_4 = masts.getSignalMast('Signal Bridge, Table 11, Track 5, West Bound')
? ? mast_4.setAspect('Limited Clear')
? ? print (" ? ?Signal Bridge, Table 11, Track 5, West Bound is set to 'Limited Clear'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ?##################################################################################

? ? ##################################################################################
? ? print(" ")
? ? print("Reseting The signals.")
? ? print("=====================")
? ? print(" ")
? ? print("Part 1 - Restting")
? ? mast_1 = masts.getSignalMast('Signal Mast, Table 10, Track 5, West Bound')
? ? mast_1.setAspect('Stop Signal')
? ? print(" ? ? Signal Mast, Table 10, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? Current Date and Time: " + current_date_time)

? ? ##################################################################################
? ? print("Part 2 - Resetting")
? ? mast_2 = masts.getSignalMast('Signal Mast, Table 12, Track 5, West Bound')
? ? mast_2.setAspect('Stop Signal')
? ? print(" ? ? Signal Mast, Table 12, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################
? ? print("Part 3 - Resetting")
? ? mast_3 = masts.getSignalMast('Signal Bridge, Table 12, Track 5, West Bound')
? ? mast_3.setAspect('Stop Signal')
? ? print (" ? ?Signal Bridge, Table 12, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################

? ? print("Part 4 - Resetting")
? ? mast_4 = masts.getSignalMast('Signal Bridge, Table 11, Track 5, West Bound')
? ? mast_4.setAspect('Stop Signal')
? ? print (" ? ?Signal Bridge, Table 11, Track 5, West Bound is set to 'Stop Signal'.")
? ? current_date_time = formatter.format(Date())
? ? print(" ? ? After waiting... Current Date and Time: " + current_date_time)

? ? ##################################################################################
print("End of the script.")
?
?
?