Keyboard Shortcuts
Likes
Search
Serial port issue with CMRI using Windows 10- JMRI crashes
#cmri
开云体育Tom, Since we had an offline personal conversation about JMRI-CMRI compatibility problem 2 years ago, I am writing directly to you with CC the jmriusers? to make sure that someone sees this, My system info: Panel Pro 3.10.1-r28327 Java 1.8.0_421 (en.ca) Reason for using this old software is because my JMRI panels made many years ago were incompatible with current JMRI and Java when I upgraded my home computer to a Windows 10 machine in 2023.? The panel display was badly corrupted and Tom helped me instal old versions of JMRI and Java on the new Windows 10 machine in June 23, 2023 The executable JMRI panel file is ported to an old XP machine running the CMRI signalling system composed of CMRI RS232 to RS 484 Conversion card connected to 2 SMINI’s. ? This worked fine until the old XP machine died.? Trying to use a Windows computer running Windows 10, but when using the JMRI Panel Pro version 3.10.1 on simulation it ?works OK, but when going to Preferences to go on line and trying to connect to serial port, JMRI crashes whether saving or not. The JMRI program now has been corrupted.? Had to delete JMRI and copy in JMRI directory of files that we had saved.? Now Panel Pro starts up in Simulation mode but will not run in on line CMRI mode. Looks like the old version of JMRI executable is incompatible with Windows 10. ? Tried to instal latest JMRI into another machine to see if I could get JMRI latest release to run online to CMRI on the Windows 10 machine and it downloads all the way to the un instal JMRI program and goes no further and hangs up. That may be an issue with this computer’s Windows setup as it cannot uninstall any other applications either.? Have seen on JMRI user that there are issues with Windows 10 and serial ports.? . This crash happens whether the UTS-TOS USB to RS485/232 is plugged into or not to a USB port on the computer.? ?Tried both the 2 com Port COM! & COM3 that were offered.?? Then Panel Pro will not start at all even after rebooting the computer. ?Will try to download latest JMRI and Java into a different computer later. ? Thank you,? Bob Winterton ? I included the email chain with Tom Pearson below. On Jun 24, 2023, at 2:25 PM, bobwinterton@... wrote: ? Tom, Installed Java SE 8 , and JMRI 3.10.1 with your links , and all OK and up and running. The uninstall button on the JAVA in Windows 10 Settings did the job and had no problems installing Java releases.? ?I see no need to try the transitioning a release at a time to get up to date as proposed in some topic messages.? No plans to make any changes that I can't make with this old version of Panel Pro which I understand. It is serving us well with CTC and APBS? controls for 8 years. many thanks for your clear and concise instructions, so I did not have to wade through release notes and other documentation. ? As you noticed from my posts I did find that my Panels files were quite graphics incompatible with the current JMRI Panel Pro.??? Upgrading would be a nightmare in trying to redo the Panels.? Would have to start from scratch, about a year's worth of trial and error.? BTW, I had professional CPR railway personnel and railway documents that helped me get all the aspects for each location on Schreiber Division that we modelled correctly.? The retired railway operating guys ( not just CP) who have operated trains here in our op sessions really enjoy it immensely.? Bruce Chubb was also involved in helping us get good colour renditions for LED's, that I tested from a number of sources.??? Yes you guessed already ,? that I am an electrical engineer hardware and software developer and project manager in another life. ? Really appreciate all the work and time you and many others have put into this project.? Thank you all? !! Bob ? ? ? From: Tom <Texpearson@...> ? One thing I forgot to mention is cleaning up and removing versions of Java you aren’t using. ?Oracle has a Java Removal tool which does a good job of this ? ? I’m pretty sure you need to actually install Java. ? It appears that Java 1.6 can be downloaded from the Oracle archive site ? ? The version of JMRI you are looking for is on this page ? ? On Jun 23, 2023, at 7:37 PM, bobwinterton@... wrote: ? hello Tom,? thank you for contacting me, I tried just copy /paste of the old Java folder to new computer but the install of JMRI 3.30.1 could not find Java . Got error message " Failure Down loading JAVA? Please try manually from? http"//java.com/win offline- installer" I expect that that old version of Java that JMRI 3.30 is looking for after all these years is not downloadable any more.? ?? ? Any suggestions so I can use my existing panels that? I spent over a year to perfect, on the new computer? ? The suggestions by moderator Peter are quite trial and error it seems to find versions compatible with my Panels.? Updating to newer versions of JMRI may not solve my problem with the Panel files, as I have already discovered with latest JMRI and Java.? That did result in running the Panels but with lots of sensor errors initially because I forgot to set the Preferences to C/MRI to Simulation, as I am running offline.? But then I? found messed up track lines graphics and other graphic changes, likely because of many enhancements over the years. ? ? ? ? |
||||||
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. |
||||||
开云体育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
? ? |
||||||
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 ? ? |
||||||
Hi Bob,
?
I had a similar problem the other week when I tried to use a USB to Serial Adapter (for NCE Power Pro 5) with JMRI 5.6 on a Windows 11 laptop.
?
I solved the problem by editing (in Notepad++) the profile.xml file for JMRI and removing a section relating to the connection:
?
I looked for the section named </connections and then found a section that started <connection> that contained the connection for the NCE via serial interface.
?
I removed that entire section from <connection to </connection>? ?hopefully someone who knows more about JMRI can correct me if I wrote that down incorrectly or I'm not using the best solution or I was just lucky.
?
I then saved the profile.xml back where I found it, restarted JMRI Panel Pro and then it booted up correctly instead of hanging.
?
Regards
?
Nick
?
? |
||||||