¿ªÔÆÌåÓý

Date

Locked Re: Question with turnout setup in panelpro

 

Kirk,

Sending "throw" commands to two different addresses to set the position of one "switch machine" is quite unusual.

I would define the turnout as an internal turnout in JMRI and use Logix to send the appropriate commands to the servo controller. This way JMRI is isolated from the hardware quirks.

Dave Sand



----- Original message -----
From: Kirk Ervin <kirkajervin@...>
Subject: [jmriusers] Question with turnout setup in panelpro
Date: Tuesday, November 05, 2019 11:35 AM

Maybe this has been answered before and it¡¯s a quick point to it.

I have a turnout controlled by team digital¡¯s SMC4 servo controller.? I have the decoder set up so that the turnout is thrown by sending it a throw command via switch 9.? To close it, I must send a throw command via switch 11.

How can I get the turnout icon in panelpro to update itself based on these two turnout commands?? That is, what setting must I use?




Locked Re: Withrottle

 

Agree with others. WiThrottle is great. ?I haven¡¯t used My Locomotive, but here are features that I like in WiThrottle (lots of others too):
- can select loco from any JMRI roster list or group,
- can select loco from list of most currently used
- can control 2 locos from one screen at same time on iPhone and up to 4 on iPad
- has free version that can control 1 loco at a time (great for grandkids)
- downloads function key labels from JMRI roster for each loco
- can hide unlabeled function keys
- can change throttle sensitivity
- can throw turnouts?
- can turn off track power
- can use on a different network than JMRI computer via network address translation (again, great fun for remote grandkids)

how does My Locomotive compare?

Jerry
___________________________________
jerryg2003@...


Locked Re: Question with turnout setup in panelpro

 

Kirk,

For using two JMRI Turnout objects to control one physical device, you might consider a "three-way" switch or "slip switch" or "double slip switch", or even "multi-sensor".

- three-way switches are readily available via the "Panel Editor".
- single- and double-slip switches are readily available via the "Layout Editor".
- multi-sensor objects are available via the "Layout Editor", but work with three sensors, not turnouts, and not two items.

The biggest potential problem with three-way and slip switches would be that clicking on the icon will toggle thru three different combinations of settings of the two Turnouts, so if you have two positions and two turnouts, there will be a "third" click in the sequence which does something (exactly what would be specific to the SMC4's behavior).

While I am not an expert in the various JMRI panel types, I know that in Layout Editor, you may change the "icons" associated with a given single- or double-slip object or multi-sensor object, so you could change its look to some set of images other than the defaults.

Something like a 3-position semaphore may be best controlled via a Signal Mast definition, if the right JMRI setup can be found to match the SMC4's needs.

Regards,
Billybob


Locked Re: Withrottle

 

¿ªÔÆÌåÓý

?Just spend the few bucks for the full version.... its a terrific (and relative cheap) ?throttle! Added bonus: supporting JMRI ....

Verstuurd vanaf mijn iPhone

Op 6 nov. 2019 om 14:22 heeft Phil in gorgeous Young Harris via Groups.Io <philabernathy@...> het volgende geschreven:

?Or try the WiThrottle Lite for NO cost.


Locked Trains do not run with JMRI Throttle

 

Dear fellow modelrailroaders. I am an longtime user of JMRI. Last month the (very) old laptop I was running it on, just died on me. So I bought a refurbisched Dell Laptop, about 4 years old. I will use it only to run JMRI. Setting up JMRI and Sprog3 went like a song, but then I encountered a strange problem.?
I can read and program ESU, Uhlenbrock and Zimo decoders. Using the throttle function panel, I can switch on lights, and I can play all sounds that are in the decoder. But .... the engine will not respond to the control panel. It just won't move. Using my digitrax DCS100 or DCS50 everything runs smoothly, so it shouldn't be something with the engine or the decoder.
In other words: the function panel and adress panel are doing OK, the control panel does nothing.

I use JMRI 4.16 en Java 1.8.0_231, Dell and Sprog3 hardware. I have installed JMRI multiple times, but that doesn't help. What can this be ? And ... how can it be solved ???
I ame thankful for all ideas,
Regards, Henk Lindner, Holland


Locked Re: Withrottle

 

Or try the WiThrottle Lite for NO cost.


Locked Re: Where to put shutdown.py script and how to use it? #scripting

 

I have a thought that might solve my problem of executing two items in the shutdown script.? Sometimes sleeping on it helps.? I'm going to try to run another script within the shutdown script.

I will try this:

import time
import jmri

# Define the shutdown task
class MyShutDownTask(jmri.implementation.AbstractShutDownTask):
def execute(self):
execfile(jmri.util.FileUtil.getExternalFilename("scripts:ShutDownTasks.py"))

time.sleep(5)

return True # True to shutdown, False to abort shutdown

shutdown.register(MyShutDownTask("Example"))

I'm hoping since only one task, the first one, is the only thing that can be executed and the sleep() function seemed to work too I can just run one script and give it 5 seconds or more to run then it may be able to execute two or more commands before shutdown.This way I can update the "ShutDownTasks.py" with more items if needed in the future. Does this make sense?? I won't be able to test it until later this evening.

--
Thank you,

Jasen


Locked Re: Withrottle

Randall Wood
 

Since Engine Driver is not available for iOS, it's not an option if WiThrottle and MyLocomotive are being considered.

WiThrottle (the app) is by far the better choice because its developer is the developer of the WiThrottle (the protocol) and is an active contributor to JMRI (i.e. if you want your money to go into JMRI support, buy WiThrottle).


Locked Re: How To Block for Automation #automation

 

Other considerations for automation include speed restrictions and crossing loops.

The block preceding any turnout will be speed restricting when the diverging route is set so you may want to break up long blocks so trains don¡¯t crawl for too long approaching the turnout.

Also I found that if trains are entering crossing loops from both directions at the same time I saw memory management issues over time. This was avoided by breaking each block in between either end of the loop into 2 blocks. Careful location of these blocks also helped with stopping trains at the desired positions within passing loops (eg at a station).

Panel Pro Automation is still in its infancy so be prepared to have to do some experimentation. Also reliable block detection is critical for successful automation.

Have fun
Don McGilvery


Locked Re: Withrottle

 

¿ªÔÆÌåÓý

Which is ¡°better¡± ¨C Pepsi or Coke ?

?

MyLocomotive, from the developer¡¯s webpage doesn¡¯t appear to

a)????? ?Import Throttle labels, or latching/non-latching behaviour from the JMRI WiThrottle Server.? So each App has to be setup for specific use, rather than just getting its settings from the WiThrottle server

b)????? Offer control of turnouts or routes

c)?????? Offer control of Panels served from JMRI

?

Whether that matters depends on what you¡¯re doing.?

?

?

If price is the driver (which the 50% less may imply), then EngineDriver on Android is free and seems to have more features and options than anything else.?? However, when discussing Apps which cost about $10, my question would be ¡°does the price matter ?¡±? what matters to my thinking is whether the App does what you want.??

?

?

-????????? Nigel

?

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Jim Kirwan via Groups.Io
Sent: 06 November 2019 04:03
To: [email protected]
Subject: [jmriusers] Withrottle

?

Which app is ¡°better¡±? Withrottle, or MyLocomotive (for 50% less). Both seem to have the same features. Thanks.?

?

Jim K

Sent from my Steve Jobs PopTart.?


Locked Re: VSD CLICKING SOUNDS REDUX #vsdecoder

 

Conrad,

If you like, you can send me the file per PM. My audio editor is Audacity, which might give a different result.

Klaus


Am 06.11.2019 um 02:41 schrieb conrad:

No rush.? I've trimmed both the start and end of the "idle.wav" many times with no success.? Still get clicks but some trims give slightly different clicks.? Some time back it was discussed that clicks are removed by getting file to start/end at a zero crossing.? Problem is my wav editor never shows a zero sample.? Seems odd, but my scanning at high magnification never show a 0 value.? It's always something.? I'm working with uncompressed, 8 bit, 11025Hz sample rate.
The idle.wav file is 1,110ms long.? I get it down to 1,000ms ¡À and 750ms ¡À but still clicks.
I've tried start trim, end trim and auto trim.? Auto trim automatically lops off silences at the start and end of the file.? And, as a last resort, DC offset correction.


Locked Withrottle

 

Which app is ¡°better¡±? Withrottle, or MyLocomotive (for 50% less). Both seem to have the same features. Thanks.?

Jim K


Sent from my Steve Jobs PopTart.?


Locked Re: How To Block for Automation #automation

 

Scott,

I create block boundaries where something needs to be protected by a signal. ?The "something" is normally a turnout. ?It can also be a group of turnouts that implement an interlocking plant. ?For normal turnouts, such as a siding, the turnout has its own block.

Most layouts do not have long main line runs, so intermediate blocks are not normally created.

Crossovers have at least two blocks so that two trains can run past each other. ?A slip only has one block since it can only hold one train at a time. ?A level crossing normally has two blocks even though only one train can be in the crossing at the same time. ?The two blocks insure that the block routing required for signal mast logic and automation makes sense.

When in doubt, look at the prototype that the layout is based on. ?Even free lance layout owners have a tendency to follow a prototype practice even if it is done subconsciously.

Dave Sand



----- Original message -----
From: Scott Nelson <wa6blf@...>
Subject: [jmriusers] How To Block for Automation #automation
Date: Tuesday, November 05, 2019 9:13 PM

Hello, fellow jmriusers!

I am helping a model train museum to move to DCC and to eventually automate some of their layouts.

As part of that, I am starting to design blocks, sections, routes, etc., and I am wondering is how do you determine where to split up the lines to make blocks. ?I can understand one should block so that a turnout is protected, but do you create other blocks?

In particular:

  • should I make the turnout be in its own block, separate from the throat and the other tracks leading out from it?
  • what about if it is a X-over or a slip?
  • Should I create a block just before the turnout so that the train can slow down and stop before the turnout
I would be interested in your thoughts before I commit to something that would be less than ideal.

Thank you,
Scott


Locked How To Block for Automation #automation

 

Hello, fellow jmriusers!

I am helping a model train museum to move to DCC and to eventually automate some of their layouts.

As part of that, I am starting to design blocks, sections, routes, etc., and I am wondering is how do you determine where to split up the lines to make blocks. ?I can understand one should block so that a turnout is protected, but do you create other blocks?

In particular:
  • should I make the turnout be in its own block, separate from the throat and the other tracks leading out from it?
  • what about if it is a X-over or a slip?
  • Should I create a block just before the turnout so that the train can slow down and stop before the turnout
I would be interested in your thoughts before I commit to something that would be less than ideal.

Thank you,
Scott


Locked Re: Question with turnout setup in panelpro

 

I also use the servo controller for semaphores where i want to have a half position.? To do this, the SMC4 must use the three address mode.? I was hoping for a missing setting which would have been an easy solution.

I¡¯ll be writing some automate code to control the trains, so the code will be able to just send the correct switch commands to make the turnout go the correct way. ?

Panelpro has the ability to switch the turnout by clicking on the turnout, and I was hoping for a non-tricky way.? I¡¯ll play with the magic so that I can have the panel control it as it¡¯s better than using the DCC throttle.

BTW, it¡¯s Kirk.? And I¡¯m using a Raspberry pi to control the trains.? I also use the pi to control some more servos and a stepper motor.? If I use it, and not the DCC command center, then JMRI doesn¡¯t have that interface to update the turnout position unless I do some position feedback.? The fun of electronics!? Many ways to make things work.? Thanks for your comments.

Kirk


On Tuesday, November 5, 2019, billybob experimenter <jawhugrps@...> wrote:
Kirk(?),

JMRI's Turnout objects typically respond to only one address.? Using two separate addresses to control one JMRI turnout object is something I haven't seen before.? (I am assuming you are controlling a "simple" turnout using the Team Digital SMC4, not controlling a three-way, crossover or double-slip turnout.)

So I suspect that you will have to resort to some trickery.? One "tricky" way to do this is to place a "virtual" turnout on the panel (perhaps IT512), and use Logix to control that virtual turnout based on accesses to switch 9 and 11.
- when switch 9 is thrown, set IT512 to thrown;
- when switch 11 is closed, set IT512 to closed.

I think it is likely that others will have different "tricky" ways to do this.? Or even have some way to configure JMRI in some "natural" way that will give proper display without requiring any tricks.

Of course, you could perhaps re-configure the Team Digital hardware so that the turnout was controlled in a more-conventional manner, and then you would not need to jump thru these hoops!? Is there a compelling reason why you cannot change the SMC4 configuration?

Regards,
Billybob






Locked Re: Set raspberry pi date and time from Engine Driver client

 

Thank you all for the responses.

RTC (real time clock) is a cheap hardware option and not too hard to configure.? I hadn't thought of that.
An Android time server app is a simple solution. This could go on the tablet I use as my console.
Using a public time server doesn't work because the Pi has no internet connection. The Pi would do this already anytime it has an internet connection.
I could run an Ethernet cable to my home router but I don't really want the Pi to be online.
An Android SSH app with a button to send the "date -s ..." command would work.
Using the JMRI memory variable option has potential.

I know of several people with their Raspberry Pi offline, mainly for providing withrottle access and I'm sure there are many, many more. Of course, it's not essential for them to have the correct date or time though it does help me or them to diagnose situations if they have at least near correct timestamps.? So I'm hoping for a solution that is simple for non-tech people to implement so a simple to deploy and simple to use software solution is my favoured option, particularly if it can be embedded or partially embedded in the RPi-JMRI image and/or WiThrottle/Engine Driver apps.

Kind regards,
Dave Mc.


Locked Re: VSD CLICKING SOUNDS REDUX #vsdecoder

 

On Tue, Nov 5, 2019 at 04:48 AM, Klaus Killinger wrote:
I added the lengths because I found them useful.
Klaus,

No rush.? I've trimmed both the start and end of the "idle.wav" many times with no success.? Still get clicks but some trims give slightly different clicks.? Some time back it was discussed that clicks are removed by getting file to start/end at a zero crossing.? Problem is my wav editor never shows a zero sample.? Seems odd, but my scanning at high magnification never show a 0 value.? It's always something.? I'm working with uncompressed, 8 bit, 11025Hz sample rate.??

The idle.wav file is 1,110ms long.? I get it down to 1,000ms +/- and 750ms +/- but still clicks.

I've tried start trim, end trim and auto trim.? Auto trim automatically lops off silences at the start and end of the file.? And, as a last resort, DC offset correction.

Conrad


Locked Re: Question with turnout setup in panelpro

 

Kirk(?),

JMRI's Turnout objects typically respond to only one address. Using two separate addresses to control one JMRI turnout object is something I haven't seen before. (I am assuming you are controlling a "simple" turnout using the Team Digital SMC4, not controlling a three-way, crossover or double-slip turnout.)

So I suspect that you will have to resort to some trickery. One "tricky" way to do this is to place a "virtual" turnout on the panel (perhaps IT512), and use Logix to control that virtual turnout based on accesses to switch 9 and 11.
- when switch 9 is thrown, set IT512 to thrown;
- when switch 11 is closed, set IT512 to closed.

I think it is likely that others will have different "tricky" ways to do this. Or even have some way to configure JMRI in some "natural" way that will give proper display without requiring any tricks.

Of course, you could perhaps re-configure the Team Digital hardware so that the turnout was controlled in a more-conventional manner, and then you would not need to jump thru these hoops! Is there a compelling reason why you cannot change the SMC4 configuration?

Regards,
Billybob


Locked Re: Where to put shutdown.py script and how to use it? #scripting

 

Bob,

I¡¯m sad to report back that adding time and sleep delay did not affect the shutdown at all other than its slower Still only the first command runs not the second.

I may need to submit a new post specie for this issue. Unless you think it¡¯s best to keep it here.

Thank you,

Jasen

On Nov 5, 2019, at 10:02 AM, Bob Jacobsen <rgj1927@...> wrote:

?¡°Example¡± is just a name for this action; it can be anything that¡¯s useful. The program doesn¡¯t care.

That code looks right to me but I haven¡¯t tried it. If it doesn¡¯t work, you can also try the sleep(2) in between the turnouts and powermanager lines.

Bob

On Nov 5, 2019, at 4:16 AM, Jasen Krueger via Groups.Io <jasenk2@...> wrote:

Bob,

I want to confirm what you are suggesting.

I should change the script to this:

import time
import jmri

# Define the shutdown task
class MyShutDownTask(jmri.implementation.AbstractShutDownTask):
def execute(self):
turnouts.provideTurnout('DT1017').setState(THROWN)
powermanager.setPower(jmri.PowerManager.OFF)

time.sleep(2)

return True # True to shutdown, False to abort shutdown

shutdown.register(MyShutDownTask("Example"))

Does that allow time for the two tasks to execute before shutdown happens? I will try this tonight if I get a chance.
Another Question as I'm learning Python, does "example" have to be "example" Could it be anything?

--
Thank you,
--
Bob Jacobsen
rgj1927@...





--
Thank you,


Locked Re: #digitrax DB200 problem #digitrax

 

The Digitrax forum would be more appropriate for your question. /g/Digitrax-Users
This is off topic for this group.

--
Peter Ulvestad

JMRI Users Group Moderator - ( )
Tam Valley Group Moderator - ( )
Sprog-DCC Group Moderator - ( )
Edmonton Model Railroad Association -