¿ªÔÆÌåÓý

Date

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


Locked Re: SML signal mast problem #sml

 

Ken,
  1. Go to?/g/jmriusers. Logon if necessary.
  2. Click on "Files" in the left column.
  3. Scroll down to "ProblemsBeingWorkedOn" and click on the link.
  4. Click on the "New/Upload" button and select "Upload File".
  5. Follow the prompts to find your file and click on Upload.

Dave Sand



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

Hi Dave
I don't know how to send you the file. I have the file but don't know how to move it to you.
?
Ken


Locked Re: Getting throttle settings with LogixNG #logixng

 

Jos,

I made some assumptions.

Here is a script:

# Called by LogixNG to get the current throttle speed setting for an auto active train.

# The train name is in the trainName local variable.
# Return the train speed in the speed local variable.? -2 indicates no train, -1 indicates emergency stop, 0.0 to 1.0 is the train speed

import java
import jmri

trainName = symbolTable.getValue('trainName')
speed = -2.0??? # Default to no train found

dispFrame = jmri.InstanceManager.getDefault(jmri.jmrit.dispatcher.DispatcherFrame)

for at in dispFrame.getActiveTrainsList():
??? if at.getAutoRun():
??????? if at.getTrainName() == trainName:
??????????? aat = at.getAutoActiveTrain()
??????????? speed = aat.getTargetSpeed()

symbolTable.setValue('speed', speed)

And a test LogixNG:

LogixNG: Get Train Speed
??? ConditionalNG: IQC:AUTO:0001 ::: Startup
??????? ! A
??????????? Many
?????????????? ::: Local variable "trainName", init to String "asdf"
?????????????? ::: Local variable "speed", init to Floating number "-3.0"
??????????????? ! A1
??????????????????? Execute script: Run script. Script preference:trainspeed.py
??????????????? ! A2
??????????????????? Log local variables

Dave Sand



----- Original message -----
From: Dave Sand <ds@...>
Subject: Re: [jmriusers] Getting throttle settings with LogixNG #logixng
Date: Friday, September 06, 2024 2:38 PM

Jos,

What is in the memory variable? ?A string or a roster entry? ?If it is a string, what does the string value represent?

How does the ConditionalNG stop and start a train?

Dave Sand


----- Original message -----
From: Jos Smeele <jossmeele@...>
Subject: Re: [jmriusers] Getting throttle settings with LogixNG #logixng
Date: Friday, September 06, 2024 2:02 PM

If I start a Dispatch then I can follow the train around the track by querying the Block-comment.
I wrote a ConditionalNG to resolve a conflicting situation when two trains approach a crossing and Dispatcher doesn't always stop one of the trains to avoid a crash. I use the Block-comment to determine which train to stop and which to allow to continue.
The ConditionalNG will stop one train, then restart it when the other train has passed. I've got this working but would like to restart the stopped train at the same speed it was running before it got stopped.
Jos



Locked Re: SML signal mast problem #sml

 

Hi Dave
I don't know how to send you the file. I have the file but don't know how to move it to you.
?
Ken


Locked Re: Getting throttle settings with LogixNG #logixng

 

Jos,

What is in the memory variable? ?A string or a roster entry? ?If it is a string, what does the string value represent?

How does the ConditionalNG stop and start a train?

Dave Sand


----- Original message -----
From: Jos Smeele <jossmeele@...>
Subject: Re: [jmriusers] Getting throttle settings with LogixNG #logixng
Date: Friday, September 06, 2024 2:02 PM

If I start a Dispatch then I can follow the train around the track by querying the Block-comment.
I wrote a ConditionalNG to resolve a conflicting situation when two trains approach a crossing and Dispatcher doesn't always stop one of the trains to avoid a crash. I use the Block-comment to determine which train to stop and which to allow to continue.
The ConditionalNG will stop one train, then restart it when the other train has passed. I've got this working but would like to restart the stopped train at the same speed it was running before it got stopped.
Jos


Locked Re: Lighting control with JMRI

 

Vinny,?
I sent an e-mail?asking for a discount.? We'll see what he says....thanks again for your help.

On Fri, Sep 6, 2024 at 6:51?AM Vinny DeRobertis via <vinny.derobertis=[email protected]> wrote:

I would never pay the $700 asking price. Like I said, Bob gave it to me for free. Talk to?

bob@...

I think the board is worth about $100.


Locked Re: Getting throttle settings with LogixNG #logixng

 

If I start a Dispatch then I can follow the train around the track by querying the Block-comment.
I wrote a ConditionalNG to resolve a conflicting situation when two trains approach a crossing and Dispatcher doesn't always stop one of the trains to avoid a crash. I use the Block-comment to determine which train to stop and which to allow to continue.
The ConditionalNG will stop one train, then restart it when the other train has passed. I've got this working but would like to restart the stopped train at the same speed it was running before it got stopped.
Jos


Locked Re: LT1017 - LT1020 #digitrax

 

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


Locked Re: Precise position of trains and maneuvers automation

 

About the position detection/calculation in JMRI:

Does it JMRI can calculate the position of each vehicle of a train??
Like, for example, telling that a train begin at cm X and end at cm Y, with couplings
at cm A, B, and C??


About TrainController, I've searched but found nothing about train
position other than telling which block is occupied. Do you have more
information??


"Ian Blease" <ianbritmanone@...> writes:

From what I I know about JMRI, it will do the things you ask for, however there a very steep learning curve, in my opinion and you need to
understand programing to get the best results.

A better solution, in my humble opinion (still with a learning curve, but much less than JMRI) is to use TrainController (Gold Version), apart form
automation it is very easy to draw your layout in TrainController.
Another advantage to TrainController is that there are very good YouTube videos available from several authors that will take you through the
process of learning how to use TrainContoller.

I understand that the price of TrainController Gold Version at approximately US$800+ (less costly versions of TrainController are available at
lower cost and functionality), will be off-putting for some people. However if you have a DCC based train layout your investment in DCC
technology will probably be in the several thousands of $. For example the price of x2 well equipped high end loco¡¯s with sound can cost more
than TrainController.Gold

I am sure that others will have varying levels of viewpoint than mine.

Ian Blease

On Aug 7, 2024, at 8:51?AM, S¨¦bastien Gendre via groups.io <seb@...> wrote:

Hello,

I have a few questions.

Does JMRI can deduce the precise location of a train from its speed, it's size and a few object detectors ?

If yes:

* With which precision ?
* Does JMRI can use train precise location to automate the maneuvers, including uncoupling and train formation ?


Do you know of other software than JMRI who can do that ?


For my diploma work for engineering, I need to develop a system that can measure, or deduce, the precise location of a train, with a
precision of 2-3 cm.
Then, using this location, the system need to automate the maneuvers, including uncoupling and train formation.

But before developing this system, I need to document what's already exist in the field of model making. And then found a new way of
doing it.
I'm only allowed to develop something that nobody have already done.

For the detectors, it's seems that model makers have already done every possibilities.
Including using 2 objects detectors to measure speed (and JMRI already have a speedometer).

For positon deduced from other data, I have seen that JMRI already have a Train Tracker [1].
But, as I have only used the Decoder Pro until now, I don't know if the Train Tracker correspond to what I'm asked to develop or not.

Best regards.

PS: If my diploma work can be done, I plan to release the result software and hardware as free (as in freedom) software and hardware.
And all the documents in similar licence. And if it implies modifying JMRI, I would be very happy to send my modifications as
contribution to JMRI.

[1]


Locked Re: Precise position of trains and maneuvers automation

 

I have difficulties to understand what a "sound-follows-loco in VSD" is.
(Sorry, english is not my main language).

Does the "LayoutEditor-Train Simulator Proof of Concept" is only a
simulation of train??

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??

How do you precede to detect/calculate the train position??


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

³§¨¦²ú²¹²õ³Ù¾±±ð²Ô,

Does JMRI can deduce the precise location of a train from its speed,
it's size and a few object detectors ?

Yes. I have used the "LayoutEditor-Train Simulator Proof of Concept"
to implement sound-follows-loco in VSD. See the attached screenshot.
JMRI PanelPro and a LayoutEditor panel is needed.

Here is the location calculation:



With which precision ?
I think with a precision of 2-3 cm.


Does JMRI can use train precise location to automate the maneuvers,
including uncoupling and train formation ?

Partly. Not sure how "uncoupling" could be done. And I only used
locomotive info, no train info.

Klaus

Am 07.08.2024 um 14:51 schrieb S¨¦bastien Gendre:
Hello,
I have a few questions.
Does JMRI can deduce the precise location of a train from its speed,
it's size and a few object detectors ?
If yes:
* With which precision ?
* Does JMRI can use train precise location to automate the maneuvers, including uncoupling and train formation ?
Do you know of other software than JMRI who can do that ?
For my diploma work for engineering, I need to develop a system that
can measure, or deduce, the precise location of a train, with a
precision of 2-3 cm.
Then, using this location, the system need to automate the
maneuvers, including uncoupling and train formation.
But before developing this system, I need to document what's already
exist in the field of model making. And then found a new way of
doing it.
I'm only allowed to develop something that nobody have already done.
For the detectors, it's seems that model makers have already done
every possibilities.
Including using 2 objects detectors to measure speed (and JMRI already have a speedometer).
For positon deduced from other data, I have seen that JMRI already
have a Train Tracker [1].
But, as I have only used the Decoder Pro until now, I don't know if the Train Tracker correspond to what I'm asked to develop or not.
Best regards.
PS: If my diploma work can be done, I plan to release the result
software and hardware as free (as in freedom) software and hardware.
And all the documents in similar licence. And if it implies modifying JMRI, I would be very happy to send my modifications as contribution to JMRI.
[1]



Locked Re: Precise position of trains and maneuvers automation

 

From what I understanding:

With warrants, JMRI can calculate the position of the train after it
entering into a block and using the train speed and block length.

But the position calculated only tell the position of the train as a
point on the track. It did not know where the train begin and end on the
track?? And it did not know the position of the couplings of the train??


"Nags via groups.io" <snowy999@...> writes:

Warrants use block and path lengths with train speed to calculate position. It also has the capability to adjust the warrant to reflect actual
running.
JMRI: Warrants Help
JMRI: Warrant Speeds Help


Locked Re: Precise position of trains and maneuvers automation

 

I have considered the radar distance detector

But it have some disadvantage: It need to be installed in the axis of a
straight track and have no obstacle.

If the track is the main one of the station, and at the in and out of
the station you also have straight track, you can't install the radar.

And if you do train maneuver and place a wagon between your train and
the radar, it can no longer measure train position.



Now, I am thinking of using 2?light sensors (with IR) to detect train
arriving, measure its speed and signature (amount of IR reflected).

From it's speed and signature, calculate it's length and coupling
position.

And from speed, time and length, calculate its position.

But if JMRI already do the calculation part, it wont be original enough.
And I maybe need to found another idea.



"Ken Heywood via groups.io" <kheywood@...> writes:

My first step would be to profile locomotive speed with the JMRI profiler (bottom of the "roster" menu).
That correlates speed step with actual locomotive speed over the entire configured decoder speed range.
So, if you know the throttle speed step as you enter a detected section of track and the length of the section, you can calculate position (d=v/t).
Assuming, of course, that the speed step doesn't change.
Otherwise, you need more sophisticated technology like those radar distance detectors used in robots.


Locked Re: Precise position of trains and maneuvers automation

 

A warrant is a fixed point on the map that tell which train pass by it??

"Nags via groups.io" <snowy999@...> writes:

Warrants use block and path lengths with train speed to calculate position. It also has the capability to adjust the warrant to reflect actual
running.
JMRI: Warrants Help
JMRI: Warrant Speeds Help


Locked Re: Getting throttle settings with LogixNG #logixng

 

Jos,

In your original post you indicate that you want to get a throttle setting for an auto active train in Dispatcher.

When developing program logic, the first question is "Select a throttle based on what?". ?The transit, the train info file, a DCC address, a roster entry, etc.? ?What is the input to the query?

Dave Sand

----- Original message -----
From: Jos Smeele <jossmeele@...>
Subject: Re: [jmriusers] Getting throttle settings with LogixNG
Date: Friday, September 06, 2024 10:57 AM

Dave,
Thanks, it seems that I should learn more about Jython, I'd appreciate an example of this.
Where can I find documentation about formulas that can query the JMRI system from within LogixNG,
like the tip you gave me in an earlier post about getting Memory data with memories.getMemory(<memory name>)?
Thanks,
Jos
?


Locked Re: SML signal mast problem #sml

 

Ken,

There are many possible issues.

Please upload your layout xml data file to the group's ProblemsBeingWorkedOn file folder.

Dave Sand


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

Hi
I have just started to convert my ssl signals to sml and I have the signals operating at one of the switches. When I run a train on the mainline the switches activate on the siding and when I operate the train on the siding the signals on the mainline operate as though they were on the siding. I have tried everything I can think of to make the switches operate on the correct route but I am at a loss. I know that one of you knows a very easy fix. Thanks in advance for your thoughts.
Ken
Ecuador
?
?
?


Locked Re: Getting throttle settings with LogixNG #logixng

 

Dave,
Thanks, it seems that I should learn more about Jython, I'd appreciate an example of this.
Where can I find documentation about formulas that can query the JMRI system from within LogixNG,
like the tip you gave me in an earlier post about getting Memory data with memories.getMemory(<memory name>)?
Thanks,
Jos
?


Locked SML signal mast problem #sml

 

Hi
I have just started to convert my ssl signals to sml and I have the signals operating at one of the switches. When I run a train on the mainline the switches activate on the siding and when I operate the train on the siding the signals on the mainline operate as though they were on the siding. I have tried everything I can think of to make the switches operate on the correct route but I am at a loss. I know that one of you knows a very easy fix. Thanks in advance for your thoughts.
Ken
Ecuador
?
?
?


Locked Re: Getting throttle settings with LogixNG #logixng

 

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: Getting throttle settings with LogixNG #logixng

 

¿ªÔÆÌåÓý

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 Getting throttle settings with LogixNG #logixng

 

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