¿ªÔÆÌåÓý


Layout Editor displaying block contents #blockvalues

 

I¡¯ve got what seems like a beginner¡¯s Layout Editor question, but I¡¯ve never run across this before: How best to display block contents on a Layout Editor Panel?

There seem to be (at least) two methods in use:

A) Place a Block Contents Label on the panel

B) Attach a Memory to the Block via the Edit Block window, then place a Memory Icon on the panel

Solution (A) seems the most straightforward to me. It¡¯s the one recommended in the documentation. But I¡¯ve been given some panels to work on that use (B).

Is there a reason to prefer one approach or the other? Is something else recommended now?

Thanks in advance.

Bob

¡ª
Bob Jacobsen
rgj1927@...


Locked Re: Xnet Message queue not being send to layout #lenz #xpressnet

 

Hi Bob,
?
I did managed to test your build.
?
At first I faced an error, which is related to the fact that I rely on dispatcher with my autopilot script (I use transits, turnouts setting form there). The error is :?
2025-05-03T10:49:20,355 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0]
java.lang.NullPointerException: Cannot invoke "jmri.jmrit.dispatcher.DispatcherFrame.requestAllocation(jmri.jmrit.dispatcher.ActiveTrain, jmri.Section, int, int, boolean, jmri.util.JmriJFrame, boolean)" because "this.mDispatcher" is null
?
So I was not able to create an active train and in my configuration that prevents me from using my autopilot script. What I did to test your build was to create a simpler script that sends alternate speeds commands with some random time between command to 3 trains running at the same time.
?
First things first I used this script under current production release (5.10) and I quickly reproduced the problem of this topic. I then ran the same configuration on your provided build and after a much longer time running I didn't face any issue. Which is great.
?
I don't know then if the error I met with the dispatcher is a regression on your version or my implementation that needs to be upgraded.
?
Anyway seems we are moving forward many thanks.


Re: NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce

 

¿ªÔÆÌåÓý

Nimble,

?

I recall there is a command station option that will cause a signal decoder message to be repeated on the track bus a couple of times. I could see if that was set to 1 as a default, changing it up a bit might be the cure. I see the default for repeating as this in the PH5:

?

NUMBER OF ACCESSORY PACKETS

This adjusts the number of accessory control commands sent when an accessory or

signal is controlled. Factory default is 4. Press ENTER to skip setting this parameter.

?

That should be reasonable. This is under the Packet Management Setup part of the command station configuration. But maybe other values are worth trying.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce

 

¿ªÔÆÌåÓý

Nimble,

?

If you plan on keeping JMRI present in your layout operations, you can use it to gateway any other device to work with other devices. If your signal logic stays in JMRI it is very seamless.

?

Now anything that works with an AIU could also be moved onto the LCC or other RR-CirKits nodes. Just another choice and you could defer doing that to later.

?

-Ken Cameron, Member JMRI Dev Team

?

?


Re: NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce

 

¿ªÔÆÌåÓý

Greetings Lou,

I have just watched several of your YouTube videos. Thanks for taking the time to produce these helpful vids.

Just a couple of things I'd like to clarify regarding the signalling system you have settles on:

1. Am I to understand that you found BOTH the NCE Light-it & the RRCirKits HD2 to suffer the same/similar issue of "not being able to keep up?"

2. Thus you went to the RRCirKits "Signalman" decoder because it does the job properly, even though it be percieved by the NCE system to be a "loco" and addressed as such? [Thus abandoning the use of the separate "signal addressing" system.]

3. Can you confirm if it is the NCE AIU channels that "trip" the signals and inform JMRI of the status of things [including turnout feedback, which I am using]?

Any clarifications by you [or others] would be most appreciated.

Allan B [Nimble],

Land of Oz

--------------------------------------------

On 1/05/2025 6:41 am, louis.dirosso via groups.io wrote:

And, for what it's worth, I tried slowing down the commands and even added a line of code to resend commands automatically. It seemed as if the light-it was just overwhelmed. It was an ugly few months for me tracing, retracing, and retracing logix over and over before I ripped them out and replaced with signalman.
?
Lou
--
Modeling Conrail¡¯s Boston Line in HO


Dispatcher Q

 

Hello? Members
Im back again trying out JMRI,but have encountered same problems as Other Attempts.
I have made a simple layout plan,7 blocks no turnouts.(for testing)
Each block has detection,the first and last IR stopping sensors,all? appear to be acknowledged by JMRI
I can make a simple 7 block continuous transit,asking jmri to run a train till the Stopping sensor then Terminate
This i can execute,no problem.I can return the train manually then re do,works,but after this things go awry.
Questions
1.When i choose Stopping sensors in Sections,it Doesnt (appear) to? save them.When i go into edit they are not there.
Is this a Bug?
2.The most common problem i have is that if i run the same transit more than once,eventually the train will? stay in the First block,waiting for the next Block to? get allocated,but never does.
Once this happens,no transits will? ever work.
I have to restart NCE and JMRI,then it (may)work.
I spent many hours reading Posts here,and ive seen these problems ,but never seen a fix(for me anyway)
I will upload a file called JMRI to Look in the uploads
?
Any comments most welcome
Regards
Brett
?


Re: NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce

 

¿ªÔÆÌåÓý

Nimbles reply...I tried a few JMRI signal profiles, none proved any better than any others. The Light-its are using the Signal Decoder subset of addressing, as outlined in the NCE documentation and what JMRI lists as "check the offset box"? for each signal.

---------------------------

On 3/05/2025 4:06 am, Ken Cameron wrote:

My question to users of the Light-It, which method did you configure the decoder to use?

?

If the choice was Signal Address Decoder, I would not expect any single Light-It to get more than one command for quite a while. Each should be able to deal with that without concern what other addresses might be getting commands.

?

But if the choice was as loco decoder or accessory decoder, I could see some interference between the multiple commands for a combination of features.

?

Which have people been using when finding issues with the Light-It?

?


Re: NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce

 

¿ªÔÆÌåÓý

Hi Dave, Lou,

Dave, I understand what you are saying, but the problem is still evident even though I am using the "DCC Signal Decoder" option for the signal heads and just trying to employ some simple logix commands. I did try using the signal mast "Signal Head Controlled Mast" option, amongst others and always got to the same point, that is, signals would miss updates - somewhat randomly. Could be any of three aspects.

I could always update any given signal manually from the JMRI interface on my PC screen, no problem. But getting the signals to update absolutely reliably on the layout via the sensors/AIUs as the train moved around...nope! The JMRI screen would update and tell me "Signal 'x' is green' but on the layout it might have stayed at 'caution' or 'danger'.

I also noted that the more signal I added, the more likely I was to get update failures [not always the same signal either]. So random.

Nimble

--------------------

On 3/05/2025 1:13 am, Dave Sand wrote:

Lou,

The Light-It does support the NMRA Signal Decoder standard. ?This is supported in JMRI by using the "DCC Signal Decoder" option for the signal heads. ?You do need to modify some of the appearance numbers if using appearances other than red, yellow and green.

I suspect the problem might occur when using the signal mast "Signal Head Controlled Mast" option to combine multiple signal heads. ?For example, changing a two head mast aspect from Clear to Diverging Clear requires two signal head appearance commands. ?

Dave Sand


----- Original message -----
From: "louis.dirosso via groups.io" <louis.dirosso=[email protected]>
Subject: Re: [jmriusers] NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce
Date: Friday, May 02, 2025 8:10 AM

Thank you for the invitation!
before you go chewing out NCE, try to remember that the signal decoder are built without any sort of compatibility or NMRA standard to meet.?
?
The light-it decoder is intended to be used with a handheld NCE throttle and when it is, it works well. at no point was it designed to interface with JMRI and I would imagine not designed to accept the commands as JMRI. When we start interfacing third-party hardware with other third-party hardware and it doesn¡¯t work, as frustrating as it is, we should not blame the manufacturer. We should blame the standard.?
I held onto my light, it decoders and will use them as accessory lighting for buildings streets, etc.
?
Lou
--
Modeling Conrail¡¯s Boston Line in HO



Re: NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce

 

¿ªÔÆÌåÓý

Hi Lou,

The idea of using the NCE decoders to light buildings, even some street lamps etc... is something I am thinking about. I won't actually bin them...yet! And? you're right in saying they work okay via NCE throttles; and yes they do work from JMRI , but not without the issue[s] we've discussed. It would be nice if'n I known about these limitations before purchasing the hardware. NCE don't tell you, nor their supplier here in Sydney.

I guess my next questions is, "How much NCE hardware now becomes redundant [as far as signalling goes], if I use another product decoder?" For example, will any of the RRCirKits signal drivers simply replace the NCE ones and just hook-up onto the NCE track bus? If so, then I would be able to keep my NCE AIUs and the myriad of sensors [NCE BD20s] I have installed. OR...do I need to set up an entirely new and separate BUS for to carry the signal logic, etc... [An LLC control bus, for example] and would any of the NCE items still work with that?

Perhaps the answer are in you YouTube posting, which I will view shortly.

Thanks again for responding and helping me regain my composure.?

Nimble.

-------------------------------

On 2/05/2025 11:10 pm, louis.dirosso via groups.io wrote:

Thank you for the invitation!

before you go chewing out NCE, try to remember that the signal decoder are built without any sort of compatibility or NMRA standard to meet.?
?
The light-it decoder is intended to be used with a handheld NCE throttle and when it is, it works well. at no point was it designed to interface with JMRI and I would imagine not designed to accept the commands as JMRI. When we start interfacing third-party hardware with other third-party hardware and it doesn¡¯t work, as frustrating as it is, we should not blame the manufacturer. We should blame the standard.?

I held onto my light, it decoders and will use them as accessory lighting for buildings streets, etc.
?
Lou
--
Modeling Conrail¡¯s Boston Line in HO


Re: Trying to load JMRI 5, and JAVA 11 #java

 

Graeme,
Read this and be sure to run the Oracle utility if you ever had oracle java installed.



On Fri, May 2, 2025 at 5:54?PM Graeme Wilson via <graemedavidwilson=[email protected]> wrote:
but get?
LaunchJMRI - 0.1.31.0
Java not found in jre, default or Registry
try installing or using mklink jre {path to java version 11
very much a beginner.?
Thanks Graeme



--
John Griffin

Model Railroading Topics


Locked Re: Xnet Message queue not being send to layout #lenz #xpressnet

 

I may have a solution for this, but I¡¯ve got absolutely no way to test it.

Could you please try one of the installers available at:



And let me know whether this has made it better or worse.

Thanks, and sorry for the trouble.

Bob

On May 2, 2025, at 5:28?PM, vdrien via groups.io <adrien.virolleaud@...> wrote:

Hi,
My Autopilot logic uses two threads by train, one handling some specific logic like what are the speeds, stations, type of line the train is on, when this thread needs to adapt the train's speed it sends a target speed two a second one handling the throttle. Both threads inherit abstract automation and the one in charge of the throttle does so by calling GetThrottle yes.
Thanks for your time.
Adrien
¡ª
Bob Jacobsen
rgj1927@...


Trying to load JMRI 5, and JAVA 11 #java

 

but get?
LaunchJMRI - 0.1.31.0
Java not found in jre, default or Registry
try installing or using mklink jre {path to java version 11
very much a beginner.?
Thanks Graeme


Re: LogixNG best way with multiple sensors #logixng

 

Wow Nick that looks fantastic!
Brett


Locked Re: Xnet Message queue not being send to layout #lenz #xpressnet

 

Hi,
?
My Autopilot logic uses two threads by train, one handling some specific logic like what are the speeds, stations, type of line the train is on, when this thread needs to adapt the train's speed it sends a target speed two a second one handling the throttle. Both threads inherit abstract automation and the one in charge of the throttle does so by calling GetThrottle yes.
?
Thanks for your time.
?
Adrien


Re: LogixNG best way with multiple sensors #logixng

 

Fantastic - thanks for taking the time.? I need to read the Entry/Exit stuff again!??Thanks also for the example.
?
Just in case anyone is interested, this is the hardware panel....
?
?
Cheers,
?
Nick


Re: NCE ProCab- Light-it as signal decoder - Simultaneous commands #nce

 

¿ªÔÆÌåÓý

My question to users of the Light-It, which method did you configure the decoder to use?

?

If the choice was Signal Address Decoder, I would not expect any single Light-It to get more than one command for quite a while. Each should be able to deal with that without concern what other addresses might be getting commands.

?

But if the choice was as loco decoder or accessory decoder, I could see some interference between the multiple commands for a combination of features.

?

Which have people been using when finding issues with the Light-It?

?


Re: LogixNG best way with multiple sensors #logixng

 

Nick,

The blinking icons, the route selection and highlighting and releasing signals are all part of the JMRI tool.

Here is a small movie: ?

For your LogixNG question, look at "Listen on beans" in?. ?JMRI objects such as turnouts and sensors are implemented using Java Beans.

Here is an example of a "Listen on beans" action.
And the LogixNG.

A sensor group is used to insure that only one sensor can be active.


Dave Sand



----- Original message -----
From: "nicklocke via groups.io" <nick.locke=[email protected]>
Subject: Re: [jmriusers] LogixNG best way with multiple sensors
Date: Friday, May 02, 2025 1:22 PM

Hi Dave,
?
I'm not [yet].? I did have a look a while ago.? I think it will "out of the box" cope with setting a route between two buttons/sensors, but I don't think it will handle the complexities of flashing button lights etc.? Are you suggesting that I could use the Entry/Exit tool to handle the actual route setting, and then do something extra to drive the "button display oddities"?
?
I think, ultimately, it would still be good to now how best to get LogixNG to understand which one, from a number of sensors, triggered an action.
?
Thanks,
?
Nick


Re: LogixNG best way with multiple sensors #logixng

 

Hi Dave,
?
I'm not [yet].? I did have a look a while ago.? I think it will "out of the box" cope with setting a route between two buttons/sensors, but I don't think it will handle the complexities of flashing button lights etc.? Are you suggesting that I could use the Entry/Exit tool to handle the actual route setting, and then do something extra to drive the "button display oddities"?
?
I think, ultimately, it would still be good to now how best to get LogixNG to understand which one, from a number of sensors, triggered an action.
?
Thanks,
?
Nick


Re: Roster Missing

 

I've had this happen to me several times.? I would be using DecoderPro and then shut it down.? Start up little bit later and no roster.? There seems to be a bug that occasionally corrupts the preference settings that tell DecoderPro where the roster is stored.? I then have to use Windows explorer? to search my computer and find out where the roster is stored.? I then go to Preferences and correct the pointer so DecoderPro is looking in the correct location.? When I restart, and low and behold, the roster is back.? Pain in the a** but I've been able to recover every time.
Good Luck, John Moonan


Locked Re: Xnet Message queue not being send to layout #lenz #xpressnet

 

Thank you! That helps a lot.

It looks like you have a thread per train that you¡¯re running, and something goes wrong when a throttle request is queued.

How is your autopilot script structured? Is it running in a thread by inheriting from AbstractAutomaton? Or some other way?

If it¡¯s AbstractAutomaton, are you using its getThrottle method to obtain the XpressNet throttle you¡¯re using?

Thanks again

Bob

On May 2, 2025, at 2:50?AM, vdrien via groups.io <adrien.virolleaud@...> wrote:

Hi Bob, Hi everybody,
I finally came back to my layout, enabled debugging and reproduced the problem. It seems to only happen whit multiple train under my custom autopilot script but I can't be sure.
I just uploaded a log file to the problem section. at line 22389 the throttle is created for address 9. At line 27114 the speed message is received, subsequent message are not taken into account (line 27125). I also tried with JMRI built in throttle graphical interface to change the speed it doesn't work either (line 30010). From my last message I also tried with and without hardware flow control for the interface, this doesn't seems to change anything.
sessionxnetStops.log
¡ª
Bob Jacobsen
rgj1927@...