开云体育


Print Car List #operationspro

 

When editing a location there is an option to show cars under the tools menu.
?
Is there a way to print the list from JMRI once it loads?? Right now I am taking a screen shot, pasting it into another software and printing it that way
?
?
Thanks in advance!


Extra storage for C/I tracks #operationspro

 

I have a yard setup with 8 C/I tracks for various next destinations so we can sort cars as they come into the yard.
?
I also want some extra storage space available to each C/I track so if a given track has 8 car spots available but 10 cars that should be placed on the C/I track the software has somewhere to put them.
?
To make it more complicated lets assume that the outbound train can only handle eight cars
?
So, ten cars come into the yard for Woodsville.? Eight go onto the Woodsville C&I track and the other two go into "general storage"
?
When the time comes for the Woodsville train it grabs the eight from the C/I track, freeing up room for the other two cars to be placed on the C/I track for the next train.
?
A yard job then runs and puts the two from general storage onto the Woodsville C/I track
?
Two questions:
What would the real railroad do?
Is there a way to accomplish either my idea or the prototype solution in JMRI?
?
Thanks!


Re: The future of control and automation - thoughts?

 

You should check out LCC (Layout Command Control):


/g/layoutcommandcontrol

This is a "network" of MCUs (and possibly SBCs) connected via a CAN (Community
Area Network), Ethernet, and WiFi. It is a peer-to-peer network meant to
operate autonomously (eg without "computer control" -- generally meaning with a
master central "PC" running JMRI or something like that).

At Tue, 18 Mar 2025 11:41:45 -0700 "peterparsons.pub via groups.io" <peterparsons.pub@...> wrote:


All,
I am still quite new to DCC model railroading - working on a trial N scale layout with about 18 blocks, 4 trains etc, controlled with JMRI etc.? THe learning curve, and some frustrations with Digitrax, loconet, and JMRI 'steep' learning curve have me wondering what the future (near and longer term) of control may look like
(and I am a career chip design engineer currently trying to learn about AI topics for electronics design- so a bit of an electronics nerd).

So I am eager to hear from the prognosticators, naysayers, and visionaries on this group. Are there big technology changes coming in the near and mid term?

* Bluetooth communications to all trains/rolling stock/sensors/lights - is IoT coming to the model trail world?
* What about other ways to know where your trains are?? micro GPS locating? Has anyone done a system where one or more video cameras is used to look at the layout, using vision processing in real time? (sure seems like a task made for AI)?
* And AI - is anyone using AI to write their JMRI scripts or otherwise control their layout?
* How about lighting? I foresee doing an entire set up for lighting from a single strand of individually addressable LEDs (controlled by an Arduino perhaps) under my layout and running a fiber optic to each 'lighting point' up through the layout.. Is that done?

Perhaps I am being too geeky - I really like the real time operations and control challenges with this so far - and am just starting to think about the aesthetics - of scenery and themes.

Thoughts? - or point me to the dark corners where this discussed!
-Peter






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


The future of control and automation - thoughts?

 

All,
?I am still quite new to DCC model railroading - working on a trial N scale layout with about 18 blocks, 4 trains etc, controlled with JMRI etc.? THe learning curve, and some frustrations with Digitrax, loconet, and JMRI 'steep' learning curve have me wondering what the future (near and longer term) of control may look like?
(and I am a career chip design engineer currently trying to learn about AI topics for electronics design- so a bit of an electronics nerd).
?
So I am eager to hear from the prognosticators, naysayers, and visionaries on this group. Are there big technology changes coming in the near and mid term??
?
  • Bluetooth communications to all trains/rolling stock/sensors/lights - is IoT coming to the model trail world??
  • What about other ways to know where your trains are?? micro GPS locating? Has anyone done a system where one or more video cameras is used to look at the layout, using vision processing in real time? (sure seems like a task made for AI)??
  • And AI - is anyone using AI to write their JMRI scripts or otherwise control their layout??
  • How about lighting? I foresee doing an entire set up for lighting from a single strand of individually addressable LEDs (controlled by an Arduino perhaps) under my layout and running a fiber optic to each 'lighting point' up through the layout.. Is that done??
?
Perhaps I am being too geeky - I really like the real time operations and control challenges with this so far - and am just starting to think about the aesthetics - of scenery and themes.?
?
Thoughts? - or point me to the dark corners where this discussed!
-Peter
?
?


Labels in JMRI Roster

 

Why when adding a BLI locomotive are labels automatically imported, but when adding a locomotive with an ESU decoder there are not any labels.

Is this in the decoder default mapping and is this something that can be updated? I really do not want to have to manually enter all the labels on every locomotive with an ESU decoder.
?
Or is this operator error?
--

Heath @ Human[c]ity



Re: Current state of DMX support on Apple Silicon Macs? #mac-m1 #powerline

 

TLDR: I’ve done a little more work on why JMRI’s USB HDI support, used by e.g. the Anyma DMX support, doesn’t work in native mode on Apple Silicon. We _do_ have a version of that code that should work natively, but it’s not working on my M1 Mac. Is this due to an improper setup on my part, or something broken in the .jar JMRI uses? I could use some help sorting that out from somebody who understands dynamic linking on the Mac in Java. Please contact me off list if you can help. Thanks!

Longer:

When the Apple Silicon version used by JMRI fails to load, we get this:

[java] 16:19:03,132 mri.jmrix.AbstractUsbConnectionConfig ERROR - UnsatisfiedLinkError - the serial library has not been installed properly [AWT-EventQueue-0]
[java] 16:19:03,132 mri.jmrix.AbstractUsbConnectionConfig ERROR - java.library.path=/Users/jake/Documents/Trains/JMRI/projects/JMRI:/Users/jake/Documents/Trains/JMRI/projects/JMRI/lib/macosx/aarch64:/Users/jake/Documents/Trains/JMRI/projects/JMRI/lib/macosx:/Users/jake/Documents/Trains/JMRI/projects/JMRI/lib [AWT-EventQueue-0]
[java] 16:19:03,132 mri.jmrix.AbstractUsbConnectionConfig ERROR - Exception is {} [AWT-EventQueue-0]
[java] java.lang.UnsatisfiedLinkError: /private/var/folders/b5/7f3mtqj55fd7pxzhnckz68nh0000gn/T/usb4java12025525072169804161.tmp/libusb4java.dylib: dlopen(/private/var/folders/b5/7f3mtqj55fd7pxzhnckz68nh0000gn/T/usb4java12025525072169804161.tmp/libusb4java.dylib, 0x0001): Library not loaded: /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib
[java] Referenced from: <D242CF53-6770-32AD-BCF1-717B7A28DDA7> /private/var/folders/b5/7f3mtqj55fd7pxzhnckz68nh0000gn/T/usb4java12025525072169804161.tmp/libusb4java.dylib
[java] Reason: tried: '/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/lib/libusb-1.0.0.dylib' (no such file, not in dyld cache)
[java] at jdk.internal.loader.NativeLibraries.load(Native Method) ~[?:?]
[java] at jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388) ~[?:?]
[java] at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232) ~[?:?]
[java] at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174) ~[?:?]
[java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394) ~[?:?]
[java] at java.lang.Runtime.load0(Runtime.java:755) ~[?:?]
[java] at java.lang.System.load(System.java:1953) ~[?:?]
[java] at org.usb4java.Loader.load(Loader.java:323) ~[usb4java-1.3.0.jar:?]

The line about "the serial library has not been installed properly” is from a JMRI error handler, so I don’t think that really means much.

These lines seem to be the core of the problem:

[java] 16:19:03,132 mri.jmrix.AbstractUsbConnectionConfig ERROR - Exception is {} [AWT-EventQueue-0]
[java] java.lang.UnsatisfiedLinkError: /private/var/folders/b5/7f3mtqj55fd7pxzhnckz68nh0000gn/T/usb4java12025525072169804161.tmp/libusb4java.dylib: dlopen(/private/var/folders/b5/7f3mtqj55fd7pxzhnckz68nh0000gn/T/usb4java12025525072169804161.tmp/libusb4java.dylib, 0x0001): Library not loaded: /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib
[java] Referenced from: <D242CF53-6770-32AD-BCF1-717B7A28DDA7> /private/var/folders/b5/7f3mtqj55fd7pxzhnckz68nh0000gn/T/usb4java12025525072169804161.tmp/libusb4java.dylib
[java] Reason: tried: '/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/lib/libusb-1.0.0.dylib' (no such file, not in dyld cache)

I _think_ those mean that the jar-contained org/usb4java/darwin-aarch64/libusb4java.dylib library was found and loading started, but then the process failed when that in turn tried to access /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib

But I don’t have a /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib file, or anything close to that. There’s not even a /opt/homebrew/opt, let alone the rest of the path.

It seems that the org/usb4java/darwin-aarch64/libusb4java.dylib in the .jar file has that string baked in.

I do have a file by that name at a different path. Homebrew decided to install it at /usr/local/Cellar/libusb/1.0.27/lib/libusb-1.0.0.dylib

If I make a symbolic link from /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib to the file I have, then the file gets found (yeah!), but we get a new error because that file has x86_64 architecture (??)

% file /opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib
/opt/homebrew/opt/libusb/lib/libusb-1.0.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64

I _think_ when I copied my system from my previous Intel machine, all the Intel-format libraries were copied over and are still here. But I don’t know what to do about this.

Anybody have any ideas? If so, perhaps contact me off list. This is getting quite technical.

Thanks in advance!

Bob


On Mar 16, 2025, at 5:19?PM, Paul Anderson via groups.io <paul@...> wrote:

The problem of the missing darwin-aarch64 code in the libusb4java project is pretty simple. While the /dist/darwin/build script builds both darwin-x86-64 and darwin-aarch64, the /dist/bundle script omits the darwin-aarch64 platform, so it's not in the jar file.
Or somebody might take that open-source () and create one themselves.
I don't love the idea from a maintainability standpoint, but forking our own libusb4java project could resolve this.
Sorry there doesn’t seem to be a more explicit answer.
Sometimes, that's the norm for distributed software development. I get it. We just have to rattle the necessary cages or roll our own until these dependent projects get some love.

Bob Jacobsen
rgj1927@...


JMRI / CMRI over ethernet

 

I see some posts about JMRI / CMRI over ethernet. Is this possible? I'm lost and can't figure out how to post to a certain user.?
Any help appreciated.
?
Jim Loftin


Re: PanelPro Startup

 

开云体育

Dave

Start JMRI under the new profile just created.

FRom the start screen,go "Edit>Preferences"

Choose "File Locations" from the list on the left (3rd down)

The top right boxes should then have the locations relating to the new profile, so click "set" and then from the "Select Directory" box use the navigation up and down to find the directory relating to your original profile.

Click that and it should appear in the box.

Then Save (Bottom left) and restart.

You should then be able to access your "Old" panel through the "New" profile.

Brian Clark

Bedford UK

On 18/03/2025 07:03, David Smith via groups.io wrote:

Hi,
?
Thank you for that, I can see that I can create a new profile, but how do I share the same panel, with one for a MERG & Sprog connection and the other for no connection for simulation ?
?
?


LogixNG vs Jython performance #jython #logixng

 

I'm just starting to delve into LogixNG. It certainly looks ingenious and powerful. But I wonder, how does it compare in performance to performing the same tasks in a Jython program? Is there any overhead?
?
Thanks
George


Re: How to make multiple trains chase each other #automation #dispatcher

 

Scott,
Based on an example from I thought Dave Sand: transit_chaining.py , with thanks for that,? I wrote a modified script in Python.?
This resulted in two python scripts, controlling my trains.?
First script is Transits_SPV23.py, always running.?
In this script you create a separate transit list for each train. This contains the transit list, the train info file and the waiting time between the transits in seconds. From this file the trains are started by means of a sensor. (Start-train).
Then a separate Python script is started for each train. This script ensures that the trains run automatically under Dispatcher.?If desired you can modify the scripts. For example by replacing the start sensors with a time table.
Enclosed a screen image of layout panel in which train 515_m1 is running.
And also three python scripts as an example. Hope that this will help you.
?
Best regards? Willem
Almere, the Netherlands.?
?
?


Re: How to make multiple trains chase each other #automation #dispatcher

 

Assuming there are no issues with contiguous blocks, sections verified, and real/virtual signals (if used) working, then:
Each train should have its own transit, even if each follows the same route.
Two trains cannot use the same transit at the same time.
?
As a rule, I always use a traininfo file and transit pair to define a unique train run.
That keeps things from becoming confused.
?
Mostly I use each run as "to safe sections", especially when I have passing movements.
For reversing movements on the main, I sparingly use "as far as".
?
I can't stress enough that you treat each train movement as choreography.
Walk each movement through logically and in concert with every other train's interaction.
Automation is more of a dance routine than just pressing the "go" button and watch what happens.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


Re: PanelPro Startup

 

Hi,
?
Thank you for that, I can see that I can create a new profile, but how do I share the same panel, with one for a MERG & Sprog connection and the other for no connection for simulation ?
?
?


Re: Making a plant switcher work correctly #operationspro

 

I think I got it!! We are moving cars from interchange drawers to ADM Pass. Then ADM pass to the spurs, yard tracks and C/I tracks. Then to Yard Lead and back to Interchange Drawers.. Seems to be working.
Pete, a most hearty THANK YOU for all your help. I am very grateful.


Re: Upgrading #upgrading

 

All they could tell me for sure, without being at the club, is it is windows 10. Ugh.


Re: Making a plant switcher work correctly #operationspro

 

On Mon, Mar 17, 2025 at 10:39 AM, John Buckley wrote:
When Cov Hoppers are taken to the Interchange they will be empty. When they turn around thats when the have corn in them.?
?
Hey John,
?
Yes, I understood that to be the case, so if you look at image 3, this is the filter on the track at "Interchange" (remember, I used only one track to have the local do it's work before and after ADM).? The filter reflects the loads and the one MTY that are allowed INTO the interchange track.? Because, for this example, I tasked the Grain Hopps to do double duty (i.e. it can load with Corn in the Interchange and with DDG at ADM), they need to be allowed in in either load state (loaded with DDG or as an MTY).? Also, look at the image (image 4) of the schedule for the Interchange called "Load Exchanger".? You will note that the "Grain Hopp" lines receive both DDG and convert to MTY, as well as receive an MTY and convert it to Corn.? The line that applies depends on which way the car shows up when it is delivered here.
?
Part of the reason this may not seem right, is that I did not create a separate type of hopper for the DDG and the Corn.? This was due to the small forum discussion over whether the same car could indeed deliver corn and then reload with DDG occasionally.? Again, for my example, I supposed they could be used for both and did not create a third car type for this exercise.? If you want to have "4bay Cov Hopp" cars be the DDG vehicle, then create a new car type and substitute it into the appropriate places in my example.? Bear in mind that doing so will exclude the occasional respot at ADM from Pits 2 & 3, over to the DDG track.
?
As another perspective, take a look at the attached train manifests for the two trains I used.
?
This exercise was about trying to answer your original question of whether JMRI could work one industry.? Short is yes, and I built this example to show you how.? We can tweak the operation however you desire, just keep the details coming...
?
Happy to help, hope it helps,
<Pete Johnson>


Re: How to make multiple trains chase each other #automation #dispatcher

 

Scott,
?
? ? ?Make duplicate transits so each train has it's own transit.
?
? ? ?I usually have virtual signals or physical ones look at two blocks ahead so no moving into train ahead.
?
Roger


Re: BDL 716 etc #digitrax

 

Thanks for getting back to me.

Somebody volunteered to help with some testing. Unfortunately, none of the four methods JMRI knows for setting op switches seemed to work for the BDL716. So we’re somewhat stuck at this point. The next step is to try to do some reverse engineering of what the BDL716 understands, but that’s a slow and complicated process, and I don’t have direct access to a BDL716.

Bob

On Mar 17, 2025, at 10:49?AM, Paul Wash via groups.io <paul.wash@...> wrote:

@BobJacobsen - not sure if anyone responded. We are using a 716 (and a 168) - and have the latest version of JMRI and can install test versions/etc. What do you need to write a decoder definition for it? We can help.
While the 716 seems to be working, I have noticed unexpected behavior on occasion. For example, a sensor(s) will go inactive when occupied and nothing has moved. The hack is to clear the section/re-occupy the section and the sensor is back active (and behaving). It may be related to toggling layout power or restarting JMRI - but have not found a pattern.

Bob Jacobsen
rgj1927@...


Re: How to make multiple trains chase each other #automation #dispatcher

 

开云体育

I have been trying to get 8 trains running in automation on 4 loops for at least 5 years or more and have not succeeded. ?The first issue is mechanical. Can you run the specific engine and cars over the route you want with a throttle ,stopping and starting, changing speeds, for at least 15 minutes without any car or engine coming off the track especially when going over switches. ?If you can then you can run that train over that route for 15 minutes before physical failure. ?

You must have a different transit for every train you run. Each of your 10 transits can have the same sections but each transit ?may require a different starting section. ?I dont know if the same list of sections with a different name will work. ?You have to experiment. But if you have 10 trains in a yard then you have 10 tracks and each track must be its own section and have its own detection. ?You create a section starting at that tracks section ,list the sections in the route you want and finish with the yards starting section. You can tell the transit to end or repeat although i dont know if you repeat wether you can insert a 10 minute delay.

The next issue is how many trains are running at the same time. The best i have done is 4 trains for 5 minutes before software/comuter/loconet failure.

I assume you’re using digitrax and loconet. If you are using something else then everything i say may not be accurate. ?The next problem is digitrax detection bxp88’s. ?I just had 5 of the go bad at a single instant of time and digitrax wants 3-6 months to repair them. One was brand new,recently bought to replace one that went bad. ?So my layout is down for 6 months because the rumor is digitrax got a large batch of bad chips.

The issue is that the jmri automation software can only keep track of the trains if the loconet command occur in the proper order. ?As you increase the no of trains in automation at the same time commands on the loconet can overlap or not get executed. The automation software will slow down a train when it’s 2 sections away from a train in front of it. ? This constant change of speeds of multiple trains can overload the loconet and cause issues in the automation. ?You can by controlling the default speeds keep them the same so the slow down speed is the same as the running speed. You should not use momentum unless the momentum does not cause the train to leave the section it was suppose to stop in. ?If it overruns your automation will fail.

Because of my difficulty in running trains in automation i bought a European program. ‘ITrains’. ? It’s not much better except it’s easier to restart an automated train should it fail. ?Also i was using an older apple mac computer and changed to a latest dell windows computer which seamed to give better results perhaps because its faster.
The issue is both the jmri and iTrains software was written to run one train along a route and not multiple trains in loops as apparantly i am the only one in the world trying to run 8 trains,2 per loop, on an 8x8 n scale layout.

If you succeed please let me know what you did to get 10 trains running at the same time.

Tony





On Mar 17, 2025, at 2:19?PM, Scott Nelson via groups.io <wa6blf@...> wrote:

?
What is the best way to do this automation? ?My goal is to have trains start from a yard, one after another, go the whole layout and the park back in the yard and rest about 10 minutes. ?I hope to keep about 10 trains running at any time, while another 10 are resting.
?
It’s a large layout. I’ve added block detection throughout the layout, and used the tools to create sections. We have seven layouts all permanently interconnected, so there are multiple routes to make a loop.
?
So, I have started by trying to dispatch a train after I had successfully started another train (automatically run) along a particular transit, but that transit isn’t in the list!
?
Am I going about this in the wrong way? Does this mean I need to create at least 10 transits that use the same sections in the same order?
?
Thanks for any suggestions or advice.


Re: PanelPro Startup

 

David,

Look at?

Dave Sand


----- Original message -----
From: "David Smith via groups.io" <daversmth=[email protected]>
Subject: Re: [jmriusers] PanelPro Startup
Date: Monday, March 17, 2025 1:44 PM

Thank you, that sounds like just what I need, but I have no idea how to create or use profiles.
Can anyone point me in the right direction?


Re: How to make multiple trains chase each other #automation #dispatcher

 

Hi
Each train has to start in a seperate section, so you should have 1 transit for each train.
So if you have 20 staged trains parked in sections S1-S20 you have 20 transists? S1->S1, S2->S2 ...... S20->S20.
Steve G.
?