开云体育

Date

Locked Re: Precise position of trains and maneuvers automation

 

Thank you very much for your answers.

As I was reading the "Warrants" manual page [1], in the section "The
Importance of Block Path Lengths", I have seen that JMRI?detect the
position of a train when it enter a block.

But this section also say that: "All other positional information must
be calculated".

Does that mean that JMRI can calculate the train position inside a block??



[1]



"Klaus Killinger" <klaus.killinger@...> writes:

厂é产补蝉迟颈别苍,

Am 06.09.2024 um 14:31 schrieb Sébastien Gendre:
I have difficulties to understand what a "sound-follows-loco in VSD" is.
(Sorry, english is not my main language).
VSD is the "Virtual Sound Decoder" application in JMRI. VSD provides a
way for those who do not have sound-equipped locomotives (or who are
not satisfied with the hardware sound decoder options in smaller
scales) to enjoy throttle-controlled locomotive sounds from their
computer speakers.

My goal with VSD was to change the sound position accordingly to the
locomotive position. JMRI's 3D audio capability (OpenAL 3D sound
based) allows to send the sound to a position on the model railroad
layout. I called this "sound-follows-loco".
(my native language is german).


Does the "LayoutEditor-Train Simulator Proof of Concept" is only a
simulation of train??
Yes, but the implementation of the concept in VSD can drive real model
railroad locomotives.


By position, do you detect/calculate the exact position AND occupation
of the train?? Like where it begin and where it end on the track and where
the couplings are on the train??
I only calculate the position of the locomotive within a track segment
of the layout. The length of the train is not known.


How do you precede to detect/calculate the train position??
A detection device is not necessary. But VSD also supports locomotive
tracking hardware, which is recommended.
VSD assumes that the starting position is the center of a track
segment. When the locomotive moves, the position is calculated. VSD
knows through the layout the starting and ending point of the track
segment, the angle and the distance. JMRI provides the locomotive
speed and the traveling direction.

Klaus



Locked Re: Getting throttle settings with LogixNG #logixng

 

开云体育

Dave,

> For Dispatcher, the DispatcherFrame class is both the Dispatcher manager and the main JmriJFrame.? The "InstanceManager" function returns the JFrame, not the object.

Can you explain this?

Create a ConditionalNG that calls the InstanceManager to get the instance of DispatcherFrame and put it in a local variable. Then use LogLocalVariables with show class name. What class name do you get?

Daniel

On 2024-09-06 16:43, Dave Sand wrote:

Daniel,

It could be done using LogixNG except for one problem.

The "InstanceManager" function normally returns a manager object, for example using a formula such as:

mgr = InstanceManager.getDefault("jmri.Sensor")

where "mgr" is a local variable. ?For Dispatcher, the DispatcherFrame class is both the Dispatcher manager and the main JmriJFrame. ?The "InstanceManager" function returns the JFrame, not the object.

Dave Sand


----- Original message -----
From: danielb987 <jmri@...>
Subject: Re: [jmriusers] Getting throttle settings with LogixNG
Date: Friday, September 06, 2024 9:07 AM

Jos,

No, not currently. But you can use a Jython script to do that. Hopefully someone else will join in and give you an example on a Jython script for it.

Daniel

On 2024-09-06 15:11, Jos Smeele wrote:
Is there a way that I can query an active throttle with LogixNG and, for instance, store the current speed in a local variable with LogixNG?
I want to get the current train speed with LogixNG when Dispatcher is executing Transits.
I've learned that Memory variables can be queried with: memories.getMemory(<memory name>) so is there something similar for throttle data?
Thanks,
Jos


Locked Re: Precise position of trains and maneuvers automation

 

厂é产补蝉迟颈别苍,

Am 06.09.2024 um 14:31 schrieb Sébastien Gendre:
I have difficulties to understand what a "sound-follows-loco in VSD" is.
(Sorry, english is not my main language).
VSD is the "Virtual Sound Decoder" application in JMRI. VSD provides a way for those who do not have sound-equipped locomotives (or who are not satisfied with the hardware sound decoder options in smaller scales) to enjoy throttle-controlled locomotive sounds from their computer speakers.

My goal with VSD was to change the sound position accordingly to the locomotive position. JMRI's 3D audio capability (OpenAL 3D sound based) allows to send the sound to a position on the model railroad layout. I called this "sound-follows-loco".
(my native language is german).


Does the "LayoutEditor-Train Simulator Proof of Concept" is only a
simulation of train??
Yes, but the implementation of the concept in VSD can drive real model railroad locomotives.


By position, do you detect/calculate the exact position AND occupation
of the train?? Like where it begin and where it end on the track and where
the couplings are on the train??
I only calculate the position of the locomotive within a track segment of the layout. The length of the train is not known.


How do you precede to detect/calculate the train position??
A detection device is not necessary. But VSD also supports locomotive tracking hardware, which is recommended.
VSD assumes that the starting position is the center of a track segment. When the locomotive moves, the position is calculated. VSD knows through the layout the starting and ending point of the track segment, the angle and the distance. JMRI provides the locomotive speed and the traveling direction.

Klaus


Locked Re: Lighting control with JMRI

 

?
An update for anyone with LogixNG experience:
?
I'm using the following Jython code to control my LIFX globes:
?
from subprocess import Popen
.
.
PM = "8b1c2496-xxxx-yyyy-zzzz-27b6eb2afdfd"
p = Popen(['lifx.cmd', '-c', PM])
.
.
?
Where PM in the above line is the identifier for a scene. All the scenes have unique ID numbers.? The xxxx-yyyy-zzzz are other Hex characters that I have removed for security...


Locked Re: Adding Consist Column to DecoderPro Roster Screen #roster

 

Scott,

Read this...




On Fri, Sep 6, 2024 at 4:18?PM Scott Stearns via <scott_b_stearns=hotmail.com@groups.io> wrote:
Is there a way to add columns to the DecoderPro Roster Screen.? It would be very helpful if we could have the CONSIST assignment listed and sortable.
?
Thanks,
Scott Stearns
Zumbrota, MN



--
John Griffin

Model Railroading Topics


Locked Re: Lighting control with JMRI

 

Leo:
?
I'm sorry, but I have no idea if LogixNG could do what I did.
?
Maybe others that have better knowledge about both LogixNG and Jython could assist.
?
If LogixNG can be made to perform an operating system command complete with command line arguments then I believe it could be done.
?
I'll be interested to see if others can confirm this myself.?
?
Cheers,?
Trevor


Locked Re: SML signal mast problem #sml

 

Ken,

AAR-1946 is similar to PRR-1956. ?If you use a xml aware editor such as NotePad++, you can do a search for AAR-1946 and replace with PRR-1956. ? This will change the signal mast system names. ?This only works because the mast type names are the same.

I recommend that you delete all of the signal mast logic first. ?Store the changes. ?Then do the search and replace and save as a different name. ?Then start PanelPro and use Tools -> Signals -> Signal Mast Logic to do the Auto Generate Signaling Pairs.

If you want a really clean reset, run the GrandReset.py script using "Scripting -> Run Script". ?This deletes transits, sections, signal mast logic and block paths. ?Do this before the signal system rename.

You also have 4 signal masts that are defined using the "DCC Signal Mast Decoder" driver. ?These create errors during xml file loading.

I also noticed there are some turnouts that have signal masts attached but don't have icons such as LT2. ?This can be fixed by right clicking on the turnout and select Set Signal Masts. ?Set "Right Hand Side" for each mast and click on Done.

Dave Sand


----- Original message -----
From: Ken Fordham <j.kenneth.fordman@...>
Subject: Re: [jmriusers] SML signal mast problem #sml
Date: Friday, September 06, 2024 9:20 PM

Perfect. Have a good weekend.


Locked Re: SML signal mast problem #sml

 

Perfect. Have a good weekend.


Locked Re: SML signal mast problem #sml

 

Ken,

The PRR-1956 signal system looks good.

Dave Sand


----- Original message -----
From: Ken Fordham <j.kenneth.fordman@...>
Subject: Re: [jmriusers] SML signal mast problem #sml
Date: Friday, September 06, 2024 7:44 PM

I made the changes on the double crossover.
I was thinking of using the PRR signal system since my layout is PA based. Do you see any problem with those mast types?


Locked Re: Adding Consist Column to DecoderPro Roster Screen #roster

 

This thread will certainly get closed as this has been discussed as far back as 2005.

Use the search tool to see the reasons why this is not implemented and possible alternative solutions.

Marc


Locked Re: Getting throttle settings with LogixNG #logixng

 

On Fri, Sep 6, 2024 at 03:02 PM, Jos Smeele wrote:
when two trains approach a crossing and Dispatcher doesn't always stop one of the trains to avoid a crash
This indicates that there is a serious problem. Dispatcher will always stop a train from entering a? block not allocated to it, when not interfered with.
Possible issues are grade crossing not indicated as such but just two tracks drawn over one another, use of permissive signaling systems, locos drifting into a block due to high momentum, failure to ensure that the entire train is detectable, transit actions forcing speeds, and other user errors.?
Steve G.
?


Locked Re: SML signal mast problem #sml

 

I made the changes on the double crossover.
I was thinking of using the PRR signal system since my layout is PA based. Do you see any problem with those mast types?


Locked Re: SML signal mast problem #sml

 

Hi Dave
Thanks for the analysis and time spent. The signal that I was working with was 24 that had the original problem. I had not tried to do anything with switch 3, the crossover so I will make the corrections you suggest.?
I really appreciate your help and will work on it on Sunday.?
?
Best regards
Ken F


Locked Re: SML signal mast problem #sml

 

Ken,

You did not indicate which signal masts were not working as expected. ?After working with the file that you uploaded, the original problem might be resolved after cleaning up several major issues.

Double Crossover

The first problem is the double crossover (LT3). ?The block routing data structures only support a single connection between two blocks. ?The double crossover has two blocks, 814 and 818, which means there are two connections based on the upper to lower and the lower to upper blocks. ?The normal solution is to split the upper or lower straight track into to two blocks. ?Since the double crossover is part of two larger blocks, the following arrangement seems to work.
Ignore the red X for the signal masts.

Signal System Mast Types

The selected signal system is AAR-1946. ?The mast types are "Double position light high signal" and "Single position light high permissive signal".

The double head mast uses Lunar for Permissive, Restricting and Permissive Medium. ?The single head uses Lunar for Permissive. ?Signal heads don't have a Lunar "Appearance". ?Normally a flashing appearance is used to represent Lunar. ?Since you are using "Signal Head Controlled" masts, when a Lunar appearance is sent to the SE8C signal head definition, an error occurs. ?

An additional issue for the double head mast is that the "danger" state is mapped to Restricting. ?This means that anytime the signal mast logic wants to set the double head mast to "Stop", the Restricting Lunar appearance is send to the signal head which creates an error.

My understanding is that the single head masts should be absolute unless they are being used as intermediate block signals.

The solution is to pick a different mast type or a different signal system.

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

Once these two issues have been resolved, we can then see if there is still a problem with the siding signal mast aspects.

Dave Sand

?

----- Original message -----
From: Ken Fordham <j.kenneth.fordman@...>
Subject: Re: [jmriusers] SML signal mast problem #sml
Date: Friday, September 06, 2024 4:05 PM

Hi Dave
I sent the file. I hope it is the right file.
?
Best
Ken F


Locked Re: Adding Consist Column to DecoderPro Roster Screen #roster

 

On 9/6/2024 6:13 PM, Scott Stearns wrote:
It would be very helpful if we could have the CONSIST assignment listed and sortable.
Oh, no! Here we go again...

We REALLY need to ut this question into the JMRI "FAQ" and also some sort of FAQ for this list!

Regards,
Billybob


Locked Adding Consist Column to DecoderPro Roster Screen #roster

 

Is there a way to add columns to the DecoderPro Roster Screen.? It would be very helpful if we could have the CONSIST assignment listed and sortable.
?
Thanks,
Scott Stearns
Zumbrota, MN


Locked Re: LT1017 - LT1020 #digitrax

 

Thank you Robin and Billybob.
?
In fact we are implanting a second control bus.?
?
Extra caution seemed worth the effort for future maintenance and possible modifications.?
?
Cliff
?


Locked Re: LT1017 - LT1020 #digitrax

 

On 9/6/2024 1:14 PM, Cliff Anderson wrote:

Please excuse my ignorance, but where is the documentation for the statement, "I 'm aware that LT1017 to LT1020 are reserved for LocoNet use?"
FWIW, my notes do not say that _any_ "LTxxx" address is "reserved". JMRI doesn't do anything to "reserve" any LocoNet address.

JMRI _interprets_ some LocoNet messages with the switch" addresses between 1017-1020 as "Interrogation" commands. This can be seen in the "LocoNet Personal Edition" spec.

(But JMRI also interprets the "switch" addresses between 2041-2044 as "Interrogate" messages. I wonder why, because this does not seem to be accurate...)

Our club layout expansion plans could easily reach into that range as most of the lower numbers have been parceled out into small clusters and we need several large blocks of contiguous addresses for the various yards.
If you need huge numbers of switches, perhaps you should implement an additional "LocoNet", for those devices that do _not_ need to be controlled via a throttle... JMRI can easily handle multiple LocoNet connections...

We are well aware of the NMRA reserved turnout addresses, although I seem to have misplaced that reference information.
I believe this is covered in NMRA "Standard" S-9.2.1, Section 2.4.3.

Regards,
Billybob


Locked Re: SML signal mast problem #sml

 

Hi Dave
I sent the file. I hope it is the right file.
?
Best
Ken F


Locked Re: LT1017 - LT1020 #digitrax

 

开云体育

Cliff,

Those are the Loconet Stationary Decoder Interrogation addresses.? They are in the Loconet spec, although it may say somewhat different numbers due to different interpretation of the bits in the messages.? The QuadLN manual documents this BTW.
Robin

Robin Becker
San Diego CA

Sep 6, 2024 12:14:31 PM Cliff Anderson <cliffaa@...>:

It is not my intent to highjack this thread, but OP has touched on a closely related topic.
?
Please excuse my ignorance, but where is the documentation for the statement, "I'm aware that LT1017 to LT1020 are reserved for LocoNet use?"
?
Our club layout expansion plans could easily reach into that range as most of the lower numbers have been parceled out into small clusters and we need several large blocks of contiguous addresses for the various yards.
?
We are well aware of the NMRA reserved turnout addresses, although I seem to have misplaced that reference information.?
?
Thanks in advance,
?
Cliff in Baja SoCal